コード例 #1
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_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")
        ]
コード例 #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")
        ]
コード例 #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)
        ]
コード例 #4
0
ファイル: tagging.py プロジェクト: sommalia/moco-wrapper
    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")
        ]
コード例 #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")
        ]
コード例 #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)
        ]
コード例 #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)
        ]
コード例 #8
0
ファイル: company.py プロジェクト: sommalia/moco-wrapper
    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)
        ]
コード例 #9
0
ファイル: deal.py プロジェクト: sommalia/moco-wrapper
    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)
        ]
コード例 #10
0
ファイル: user_holiday.py プロジェクト: sommalia/moco-wrapper
    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")
        ]
コード例 #11
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_internal_hourly_rate_get",
                     "/account/internal_hourly_rates", "GET",
                     om.AccountInternalHourlyRate),
            Endpoint("account_internal_hourly_rate_update",
                     "/account/internal_hourly_rates", "PATCH")
        ]
コード例 #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")
        ]
コード例 #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)
        ]
コード例 #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)
        ]
コード例 #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)
        ]
コード例 #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)
        ]
コード例 #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),
        ]
コード例 #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")
        ]
コード例 #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")
        ]
コード例 #20
0
ファイル: activity.py プロジェクト: sommalia/moco-wrapper
    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")
        ]
コード例 #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)
        ]
コード例 #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")
        ]
コード例 #23
0
ファイル: project_task.py プロジェクト: sommalia/moco-wrapper
    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")
        ]
コード例 #24
0
ファイル: user.py プロジェクト: sommalia/moco-wrapper
    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)
        ]
コード例 #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")
        ]