def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`

        """
        return [
            Endpoint("project_recurring_expense_create",
                     "/projects/{project_id}/recurring_expenses", "POST",
                     om.ProjectRecurringExpense),
            Endpoint(
                "project_recurring_expense_update",
                "/projects/{project_id}/recurring_expenses/{recurring_expense_id}",
                "PUT", om.ProjectRecurringExpense),
            Endpoint(
                "project_recurring_expense_get",
                "/projects/{project_id}/recurring_expenses/{recurring_expense_id}",
                "GET", om.ProjectRecurringExpense),
            Endpoint("project_recurring_expense_getlist",
                     "/projects/{project_id}/recurring_expenses", "GET",
                     om.ProjectRecurringExpense),
            Endpoint(
                "project_recurring_expense_delete",
                "/projects/{project_id}/recurring_expenses/{recurring_expense_id}",
                "DELETE")
        ]
Example #2
0
    def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`

        """
        return [
            Endpoint("project_contract_create",
                     "/projects/{project_id}/contracts", "POST",
                     om.ProjectContract),
            Endpoint("project_contract_update",
                     "/projects/{project_id}/contracts/{contract_id}", "PUT",
                     om.ProjectContract),
            Endpoint("project_contract_get",
                     "/projects/{project_id}/contracts/{contract_id}", "GET",
                     om.ProjectContract),
            Endpoint("project_contract_getlist",
                     "/projects/{project_id}/contracts", "GET",
                     om.ProjectContract),
            Endpoint("project_contract_delete",
                     "/projects/{project_id}/contracts/{contract_id}",
                     "DELETE")
        ]
Example #3
0
    def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`

        """
        return [
            Endpoint("unit_get", "/units/{id}", "GET", om.Unit),
            Endpoint("unit_getlist", "/units", "GET", om.Unit)
        ]
Example #4
0
    def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`

        """
        return [
            Endpoint("tagging_add", "/taggings/{entity}/{entity_id}", "PATCH"),
            Endpoint("tagging_replace", "/taggings/{entity}/{entity_id}", "PUT"),
            Endpoint("tagging_get", "/taggings/{entity}/{entity_id}", "GET"),
            Endpoint("tagging_delete", "/taggings/{entity}/{entity_id}", "DELETE")
        ]
Example #5
0
    def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`

        """
        return [
            Endpoint("project_expense_create",
                     "/projects/{project_id}/expenses", "POST",
                     om.ProjectExpense),
            Endpoint("project_expense_create_bulk",
                     "/projects/{project_id}/expenses/bulk", "POST",
                     om.ProjectExpense),
            Endpoint("project_expense_update",
                     "/projects/{project_id}/expenses/{expense_id}", "PUT",
                     om.ProjectExpense),
            Endpoint("project_expense_get",
                     "/projects/{project_id}/expenses/{expense_id}", "GET",
                     om.ProjectExpense),
            Endpoint("project_expense_getlist",
                     "/projects/{project_id}/expenses", "GET",
                     om.ProjectExpense),
            Endpoint("project_expense_getall", "/projects/expenses", "GET",
                     om.ProjectExpense),
            Endpoint("project_expense_delete",
                     "/projects/{project_id}/expenses/{expense_id}", "DELETE"),
            Endpoint("project_expense_disregard",
                     "/projects/{project_id}/expenses/disregard", "POST")
        ]
Example #6
0
    def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`

        """
        return [
            Endpoint("purchase_category_get", "/purchases/categories/{id}",
                     "GET", om.PurchaseCategory),
            Endpoint("purchase_category_getlist", "/purchases/categories",
                     "GET", om.PurchaseCategory)
        ]
Example #7
0
    def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`

        """
        return [
            Endpoint("session_auth", "/session", "POST",
                     om.SessionAuthentication),
            Endpoint("session_verify", "/session", "GET",
                     om.SessionVerification)
        ]
Example #8
0
    def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`

        """
        return [
            Endpoint("company_create", "/companies", "POST", om.Company),
            Endpoint("company_update", "/companies/{id}", "PUT", om.Company),
            Endpoint("company_get", "/companies/{id}", "GET", om.Company),
            Endpoint("company_getlist", "/companies", "GET", om.Company)
        ]
Example #9
0
    def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`

        """
        return [
            Endpoint("deal_create", "/deals", "POST", om.Deal),
            Endpoint("deal_update", "/deals/{id}", "PUT", om.Deal),
            Endpoint("deal_getlist", "/deals", "GET", om.Deal),
            Endpoint("deal_get", "/deals/{id}", "GET", om.Deal)
        ]
Example #10
0
    def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`

        """
        return [
            Endpoint("holiday_create", "/users/holidays", "POST", om.UserHoliday),
            Endpoint("holiday_update", "/users/holidays/{id}", "PUT", om.UserHoliday),
            Endpoint("holiday_get", "/users/holidays/{id}", "GET", om.UserHoliday),
            Endpoint("holiday_getlist", "/users/holidays", "GET", om.UserHoliday),
            Endpoint("holiday_delete", "/users/holidays/{id}", "DELETE")
        ]
    def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`

        """
        return [
            Endpoint("account_internal_hourly_rate_get",
                     "/account/internal_hourly_rates", "GET",
                     om.AccountInternalHourlyRate),
            Endpoint("account_internal_hourly_rate_update",
                     "/account/internal_hourly_rates", "PATCH")
        ]
Example #12
0
    def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`

        """
        return [
            Endpoint("purchase_draft_getlist", "/purchases/drafts", "GET",
                     om.PurchaseDraft),
            Endpoint("purchase_draft_get", "/purchases/drafts/{id}", "GET",
                     om.PurchaseDraft),
            Endpoint("purchase_draft_pdf", "/purchases/drafts/{id}.pdf", "GET")
        ]
Example #13
0
    def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`

        """
        return [
            Endpoint("offer_create", "/offers", "POST", om.Offer),
            Endpoint("offer_get", "/offers/{id}", "GET", om.Offer),
            Endpoint("offer_getlist", "/offers", "GET", om.Offer),
            Endpoint("offer_pdf", "/offers/{id}.pdf", "GET"),
            Endpoint("offer_update_status", "/offers/{id}/update_status",
                     "PUT", om.Offer)
        ]
Example #14
0
    def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`

        """
        return [
            Endpoint("schedule_create", "/schedules", "POST", om.Schedule),
            Endpoint("schedule_update", "/schedules/{id}", "PUT", om.Schedule),
            Endpoint("schedule_get", "/schedules/{id}", "GET", om.Schedule),
            Endpoint("schedule_getlist", "/schedules", "GET", om.Schedule),
            Endpoint("schedule_delete", "/schedules/{id}", "DELETE",
                     om.Schedule)
        ]
Example #15
0
    def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`

        """
        return [
            Endpoint("invoice_create", "/invoices", "POST", om.Invoice),
            Endpoint("invoice_update", "/invoices/{id}", "PUT", om.Invoice),
            Endpoint("invoice_get", "/invoices/{id}", "GET", om.Invoice),
            Endpoint("invoice_getlist", "/invoices", "GET", om.Invoice),
            Endpoint("invoice_send_email", "/invoices/{id}/send_email", "POST", om.InvoiceEmail),
            Endpoint("invoice_update_status", "/invoices/{id}/update_status", "PUT", om.Invoice),
            Endpoint("invoice_locked", "/invoices/locked", "GET", om.Invoice),
            Endpoint("invoice_pdf", "/invoices/{id}.pdf", "GET"),
            Endpoint("invoice_timesheet_pdf", "/invoices/{id}/timesheet.pdf", "GET"),
            Endpoint("invoice_timesheet_activities", "/invoices/{id}/timesheet", "GET", om.Activity)
        ]
Example #16
0
    def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`

        """
        return [
            Endpoint("planning_entry_create", "/planning_entries", "POST",
                     om.PlanningEntry),
            Endpoint("planning_entry_update", "/planning_entries/{id}", "PUT",
                     om.PlanningEntry),
            Endpoint("planning_entry_get", "/planning_entries/{id}", "GET",
                     om.PlanningEntry),
            Endpoint("planning_entry_getlist", "/planning_entries", "GET",
                     om.PlanningEntry),
            Endpoint("planning_entry_delete", "/planning_entries/{id}",
                     "DELETE", om.PlanningEntry)
        ]
Example #17
0
    def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`

        """
        return [
            Endpoint("account_fixed_cost_getlist", "/account/fixed_costs", "GET", om.AccountFixedCost),
        ]
Example #18
0
    def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`

        """
        return [
            Endpoint("project_payment_schedule_create",
                     "/projects/{project_id}/payment_schedules", "POST",
                     om.ProjectPaymentSchedule),
            Endpoint("project_payment_schedule_update",
                     "/projects/{project_id}/payment_schedules/{schedule_id}",
                     "PUT", om.ProjectPaymentSchedule),
            Endpoint("project_payment_schedule_get",
                     "/projects/{project_id}/payment_schedules/{schedule_id}",
                     "GET", om.ProjectPaymentSchedule),
            Endpoint("project_payment_schedule_getlist",
                     "/projects/{project_id}/payment_schedules", "GET",
                     om.ProjectPaymentSchedule),
            Endpoint("project_payment_schedule_getall",
                     "/projects/payment_schedules", "GET",
                     om.ProjectPaymentSchedule),
            Endpoint("project_payment_schedule_delete",
                     "/projects/{project_id}/payment_schedules/{schedule_id}",
                     "DELETE")
        ]
Example #19
0
    def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`

        """
        return [
            Endpoint("project_create", "/projects", "POST", om.Project),
            Endpoint("project_update", "/projects/{id}", "PUT", om.Project),
            Endpoint("project_archive", "/projects/{id}/archive", "PUT", om.Project),
            Endpoint("project_unarchive", "/projects/{id}/unarchive", "PUT", om.Project),
            Endpoint("project_get", "/projects/{id}", "GET", om.Project),
            Endpoint("project_getlist", "/projects", "GET", om.Project),
            Endpoint("project_assigned", "/projects/assigned", "GET", om.Project),
            Endpoint("project_report", "/projects/{id}/report", "GET", om.ProjectReport),
            Endpoint("project_destroy", "/projects/{id}", "DELETE")
        ]
Example #20
0
    def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`

        """
        return [
            Endpoint("activity_get", "/activities/{id}", "GET", om.Activity),
            Endpoint("activity_getlist", "/activities", "GET", om.Activity),
            Endpoint("activity_create", "/activities", "POST", om.Activity),
            Endpoint("activity_update", "/activities/{id}", "PUT",
                     om.Activity),
            Endpoint("activity_delete", "/activities/{id}", "DELETE",
                     om.Activity),
            Endpoint("activity_start_timer", "/activities/{id}/start_timer",
                     "PATCH", om.Activity),
            Endpoint("activity_stop_timer", "/activities/{id}/stop_timer",
                     "PATCH", om.Activity),
            Endpoint("activity_disregard", "/activities/disregard", "POST")
        ]
Example #21
0
    def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`
        """
        return [
            Endpoint("purchase_getlist", "/purchases", "GET", om.Purchase),
            Endpoint("purchase_get", "/purchases/{id}", "GET", om.Purchase),
            Endpoint("purchase_create", "/purchases", "POST", om.Purchase),
            Endpoint("purchase_delete", "/purchases/{id}", "DELETE", om.Purchase),
            Endpoint("purchase_update_status", "/purchases/{id}/update_status", "PATCH", om.Purchase),
            Endpoint("purchase_store_document", "/purchases/{id}/store_document", "PATCH", om.Purchase)
        ]
Example #22
0
    def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`

        """
        return [
            Endpoint("invoice_payment_create", "/invoices/payments", "POST", om.InvoicePayment),
            Endpoint("invoice_payment_update", "/invoices/payments/{id}", "PUT", om.InvoicePayment),
            Endpoint("invoice_payment_create_bulk", "/invoices/payments/bulk", "POST", om.InvoicePayment),
            Endpoint("invoice_payment_get", "/invoices/payments/{id}", "GET", om.InvoicePayment),
            Endpoint("invoice_payment_getlist", "/invoices/payments", "GET", om.InvoicePayment),
            Endpoint("invoice_payment_delete", "/invoices/payments/{id}", "DELETE")
        ]
Example #23
0
    def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`

        """
        return [
            Endpoint("project_task_create", "/projects/{project_id}/tasks", "POST", om.ProjectTask),
            Endpoint("project_task_update", "/projects/{project_id}/tasks/{task_id}", "PUT", om.ProjectTask),
            Endpoint("project_task_get", "/projects/{project_id}/tasks/{task_id}", "GET", om.ProjectTask),
            Endpoint("project_task_getlist", "/projects/{project_id}/tasks", "GET", om.ProjectTask),
            Endpoint("project_task_delete", "/projects/{project_id}/tasks/{task_id}", "DELETE"),
            Endpoint("project_task_destroy_all", "/projects/{project_id}/tasks/destroy_all", "DELETE")
        ]
Example #24
0
    def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`

        """
        return [
            Endpoint("user_create", "/users", "POST", om.User),
            Endpoint("user_update", "/users/{id}", "PUT", om.User),
            Endpoint("user_delete", "/users/{id}", "DELETE"),
            Endpoint("user_get", "/users/{id}", "GET", om.User),
            Endpoint("user_getlist", "/users", "GET", om.User),
            Endpoint("user_performance_report",
                     "/users/{id}/performance_report", "GET",
                     om.UserPerformanceReport)
        ]
Example #25
0
    def endpoints() -> List[Endpoint]:
        """
        Returns all endpoints associated with the model

        :returns: List of Endpoint objects
        :rtype: :class:`moco_wrapper.util.endpoint.Endpoint`

        """
        return [
            Endpoint("presence_create", "/users/presences", "POST",
                     om.UserPresence),
            Endpoint("presence_update", "/users/presences/{id}", "PUT",
                     om.UserPresence),
            Endpoint("presence_get", "/users/presences/{id}", "GET",
                     om.UserPresence),
            Endpoint("presence_getlist", "/users/presences", "GET",
                     om.UserPresence),
            Endpoint("presence_delete", "/users/presences/{id}", "DELETE"),
            Endpoint("presence_touch", "/users/presences/touch", "POST")
        ]