@emilgroup/tenant-sdk-node 1.0.0-beta.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +30 -56
- package/api/custom-schema-api.ts +77 -69
- package/api/data-report-api.ts +687 -0
- package/api/data-report-executor-api.ts +19 -17
- package/api/invite-organizations-api.ts +379 -0
- package/api/invite-users-api.ts +670 -0
- package/api/organizations-api.ts +343 -0
- package/api/users-api.ts +181 -721
- package/api.ts +9 -20
- package/base.ts +2 -1
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/custom-schema-api.d.ts +59 -59
- package/dist/api/custom-schema-api.js +51 -44
- package/dist/api/data-report-api.d.ts +380 -0
- package/dist/api/{dashboard-api.js → data-report-api.js} +162 -241
- package/dist/api/data-report-executor-api.d.ts +13 -13
- package/dist/api/data-report-executor-api.js +12 -10
- package/dist/api/invite-organizations-api.d.ts +216 -0
- package/dist/api/invite-organizations-api.js +370 -0
- package/dist/api/invite-users-api.d.ts +368 -0
- package/dist/api/{reports-api.js → invite-users-api.js} +178 -292
- package/dist/api/organizations-api.d.ts +197 -0
- package/dist/api/{tariff-comparisons-api.js → organizations-api.js} +104 -160
- package/dist/api/users-api.d.ts +136 -432
- package/dist/api/users-api.js +114 -567
- package/dist/api.d.ts +5 -12
- package/dist/api.js +5 -14
- package/dist/base.d.ts +3 -2
- package/dist/base.js +2 -1
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -2
- package/dist/models/assign-user-roles-request-dto.d.ts +1 -1
- package/dist/models/assign-user-roles-request-dto.js +1 -1
- package/dist/models/assign-user-roles-response-class.d.ts +1 -1
- package/dist/models/assign-user-roles-response-class.js +1 -1
- package/dist/models/batch-delete-request-dto.d.ts +2 -2
- package/dist/models/batch-delete-request-dto.js +1 -1
- package/dist/models/{get-embedded-url-response-class.d.ts → batch-delete-response-class.d.ts} +7 -7
- package/dist/models/{alert-class.js → batch-delete-response-class.js} +1 -1
- package/dist/models/create-custom-schema-request-dto.d.ts +1 -1
- package/dist/models/create-custom-schema-request-dto.js +1 -1
- package/dist/models/create-custom-schema-response-class.d.ts +1 -1
- package/dist/models/create-custom-schema-response-class.js +1 -1
- package/dist/models/create-data-report-request-dto.d.ts +61 -0
- package/dist/models/{alert-history-class.js → create-data-report-request-dto.js} +1 -1
- package/dist/models/{channel-response-class.d.ts → create-data-report-response-class.d.ts} +8 -13
- package/dist/models/{compare-tariffs-response-class.js → create-data-report-response-class.js} +1 -1
- package/dist/models/create-permission-request-dto.d.ts +1 -7
- package/dist/models/create-permission-request-dto.js +1 -1
- package/dist/models/create-role-request-dto.d.ts +2 -2
- package/dist/models/create-role-request-dto.js +1 -1
- package/dist/models/create-tenant-request-dto.d.ts +1 -1
- package/dist/models/create-tenant-request-dto.js +1 -1
- package/dist/models/custom-field-dto.d.ts +1 -1
- package/dist/models/custom-field-dto.js +1 -1
- package/dist/models/custom-schema-class.d.ts +1 -1
- package/dist/models/custom-schema-class.js +1 -1
- package/dist/models/data-report-class.d.ts +79 -0
- package/dist/models/{channel-response-class.js → data-report-class.js} +1 -1
- package/dist/models/data-report-filter-class.d.ts +72 -0
- package/dist/models/data-report-filter-class.js +15 -0
- package/dist/models/data-report-filter-dto.d.ts +48 -0
- package/dist/models/data-report-filter-dto.js +15 -0
- package/dist/models/data-report-filter-single-value-dto.d.ts +5 -5
- package/dist/models/data-report-filter-single-value-dto.js +1 -1
- package/dist/models/data-report-filter-value-dto.d.ts +2 -2
- package/dist/models/data-report-filter-value-dto.js +1 -1
- package/dist/models/dbconfig-dto.d.ts +1 -1
- package/dist/models/dbconfig-dto.js +1 -1
- package/dist/models/{manage-subscription-request-dto.d.ts → delete-response-class.d.ts} +6 -6
- package/dist/models/delete-response-class.js +15 -0
- package/dist/models/disable-user-response-class.d.ts +1 -1
- package/dist/models/disable-user-response-class.js +1 -1
- package/dist/models/disable-users-request-dto.d.ts +1 -1
- package/dist/models/disable-users-request-dto.js +1 -1
- package/dist/models/{insurance-company-response-class.d.ts → disable-users-response-class.d.ts} +7 -7
- package/dist/models/disable-users-response-class.js +15 -0
- package/dist/models/enable-user-response-class.d.ts +1 -1
- package/dist/models/enable-user-response-class.js +1 -1
- package/dist/models/enable-users-request-dto.d.ts +1 -1
- package/dist/models/enable-users-request-dto.js +1 -1
- package/dist/models/{insurance-response-class.d.ts → enable-users-response-class.d.ts} +7 -7
- package/dist/models/enable-users-response-class.js +15 -0
- package/dist/models/get-custom-schema-response-class.d.ts +1 -1
- package/dist/models/get-custom-schema-response-class.js +1 -1
- package/dist/models/{create-alert-response-class.d.ts → get-data-report-response-class.d.ts} +8 -8
- package/dist/models/get-data-report-response-class.js +15 -0
- package/dist/models/{create-dashboard-response-class.d.ts → get-organization-response-class.d.ts} +8 -8
- package/dist/models/get-organization-response-class.js +15 -0
- package/dist/models/{get-alert-response-class.d.ts → get-settings-response-class.d.ts} +7 -8
- package/dist/models/get-settings-response-class.js +15 -0
- package/dist/models/get-user-response-class.d.ts +1 -1
- package/dist/models/get-user-response-class.js +1 -1
- package/dist/models/index.d.ts +26 -49
- package/dist/models/index.js +26 -49
- package/dist/models/invite-class.d.ts +10 -9
- package/dist/models/invite-class.js +1 -1
- package/dist/models/invite-org-request-dto.d.ts +90 -0
- package/dist/models/invite-org-request-dto.js +21 -0
- package/dist/models/invite-user-request-dto.d.ts +9 -3
- package/dist/models/invite-user-request-dto.js +1 -1
- package/dist/models/invite-user-response-class.d.ts +2 -2
- package/dist/models/invite-user-response-class.js +1 -1
- package/dist/models/invite-users-request-dto.d.ts +3 -3
- package/dist/models/invite-users-request-dto.js +1 -1
- package/dist/models/invite-users-response-class.d.ts +24 -0
- package/dist/models/invite-users-response-class.js +15 -0
- package/dist/models/list-custom-schemas-response-class.d.ts +1 -1
- package/dist/models/list-custom-schemas-response-class.js +1 -1
- package/dist/models/list-data-reports-response-class.d.ts +31 -0
- package/dist/models/list-data-reports-response-class.js +15 -0
- package/dist/models/list-invites-response-class.d.ts +3 -3
- package/dist/models/list-invites-response-class.js +1 -1
- package/dist/models/list-org-invitations-response-class.d.ts +31 -0
- package/dist/models/list-org-invitations-response-class.js +15 -0
- package/dist/models/list-organizations-response-class.d.ts +31 -0
- package/dist/models/list-organizations-response-class.js +15 -0
- package/dist/models/list-users-response-class.d.ts +1 -1
- package/dist/models/list-users-response-class.js +1 -1
- package/dist/models/org-invitation-class.d.ts +115 -0
- package/dist/models/{update-alert-request-dto.js → org-invitation-class.js} +6 -6
- package/dist/models/org-invitation-response-class.d.ts +25 -0
- package/dist/models/org-invitation-response-class.js +15 -0
- package/dist/models/organization-class.d.ts +90 -0
- package/dist/models/{condition-dto.js → organization-class.js} +6 -7
- package/dist/models/permission-class.d.ts +60 -0
- package/dist/models/permission-class.js +15 -0
- package/dist/models/role-class.d.ts +61 -0
- package/dist/models/role-class.js +15 -0
- package/dist/models/run-data-report-request-dto.d.ts +2 -2
- package/dist/models/run-data-report-request-dto.js +1 -1
- package/dist/models/run-data-report-response-class.d.ts +2 -2
- package/dist/models/run-data-report-response-class.js +1 -1
- package/dist/models/{set-user-setting-request-dto.d.ts → set-setting-request-dto.d.ts} +15 -9
- package/dist/models/set-setting-request-dto.js +15 -0
- package/dist/models/set-user-setting-response-class.d.ts +36 -0
- package/dist/models/set-user-setting-response-class.js +15 -0
- package/dist/models/subscription-class.d.ts +12 -5
- package/dist/models/subscription-class.js +1 -1
- package/dist/models/tenant-admin-user-dto.d.ts +1 -1
- package/dist/models/tenant-admin-user-dto.js +1 -1
- package/dist/models/update-custom-schema-request-dto.d.ts +1 -1
- package/dist/models/update-custom-schema-request-dto.js +1 -1
- package/dist/models/update-custom-schema-response-class.d.ts +1 -1
- package/dist/models/update-custom-schema-response-class.js +1 -1
- package/dist/models/update-data-report-request-dto.d.ts +61 -0
- package/dist/models/update-data-report-request-dto.js +15 -0
- package/dist/models/{create-report-response-class.d.ts → update-data-report-response-class.d.ts} +8 -8
- package/dist/models/update-data-report-response-class.js +15 -0
- package/dist/models/update-role-request-dto.d.ts +4 -4
- package/dist/models/update-role-request-dto.js +1 -1
- package/dist/models/user-class.d.ts +14 -6
- package/dist/models/user-class.js +1 -1
- package/index.ts +2 -2
- package/models/assign-user-roles-request-dto.ts +1 -1
- package/models/assign-user-roles-response-class.ts +1 -1
- package/models/batch-delete-request-dto.ts +2 -2
- package/models/{get-embedded-url-response-class.ts → batch-delete-response-class.ts} +7 -7
- package/models/create-custom-schema-request-dto.ts +1 -1
- package/models/create-custom-schema-response-class.ts +1 -1
- package/models/create-data-report-request-dto.ts +67 -0
- package/models/{create-dashboard-response-class.ts → create-data-report-response-class.ts} +8 -8
- package/models/create-permission-request-dto.ts +1 -7
- package/models/create-role-request-dto.ts +2 -2
- package/models/create-tenant-request-dto.ts +1 -1
- package/models/custom-field-dto.ts +1 -1
- package/models/custom-schema-class.ts +1 -1
- package/models/data-report-class.ts +85 -0
- package/models/data-report-filter-class.ts +78 -0
- package/models/data-report-filter-dto.ts +54 -0
- package/models/data-report-filter-single-value-dto.ts +5 -5
- package/models/data-report-filter-value-dto.ts +2 -2
- package/models/dbconfig-dto.ts +1 -1
- package/models/{manage-subscription-request-dto.ts → delete-response-class.ts} +6 -6
- package/models/disable-user-response-class.ts +1 -1
- package/models/disable-users-request-dto.ts +1 -1
- package/models/{insurance-company-response-class.ts → disable-users-response-class.ts} +7 -7
- package/models/enable-user-response-class.ts +1 -1
- package/models/enable-users-request-dto.ts +1 -1
- package/models/{insurance-response-class.ts → enable-users-response-class.ts} +7 -7
- package/models/get-custom-schema-response-class.ts +1 -1
- package/models/{channel-response-class.ts → get-data-report-response-class.ts} +8 -13
- package/models/{create-alert-response-class.ts → get-organization-response-class.ts} +8 -8
- package/models/{get-alert-response-class.ts → get-settings-response-class.ts} +7 -8
- package/models/get-user-response-class.ts +1 -1
- package/models/index.ts +26 -49
- package/models/invite-class.ts +10 -9
- package/models/invite-org-request-dto.ts +99 -0
- package/models/invite-user-request-dto.ts +9 -3
- package/models/invite-user-response-class.ts +2 -2
- package/models/invite-users-request-dto.ts +3 -3
- package/models/invite-users-response-class.ts +30 -0
- package/models/list-custom-schemas-response-class.ts +1 -1
- package/models/{list-dashboards-response-class.ts → list-data-reports-response-class.ts} +10 -10
- package/models/list-invites-response-class.ts +3 -3
- package/models/{list-alert-history-response-class.ts → list-org-invitations-response-class.ts} +10 -10
- package/models/{list-alerts-response-class.ts → list-organizations-response-class.ts} +10 -10
- package/models/list-users-response-class.ts +1 -1
- package/models/org-invitation-class.ts +124 -0
- package/models/org-invitation-response-class.ts +31 -0
- package/models/organization-class.ts +99 -0
- package/models/{report-class.ts → permission-class.ts} +20 -26
- package/models/role-class.ts +67 -0
- package/models/run-data-report-request-dto.ts +2 -2
- package/models/run-data-report-response-class.ts +3 -2
- package/models/{set-user-setting-request-dto.ts → set-setting-request-dto.ts} +15 -9
- package/models/set-user-setting-response-class.ts +42 -0
- package/models/subscription-class.ts +12 -5
- package/models/tenant-admin-user-dto.ts +1 -1
- package/models/update-custom-schema-request-dto.ts +1 -1
- package/models/update-custom-schema-response-class.ts +1 -1
- package/models/update-data-report-request-dto.ts +67 -0
- package/models/{create-report-response-class.ts → update-data-report-response-class.ts} +8 -8
- package/models/update-role-request-dto.ts +4 -4
- package/models/user-class.ts +14 -6
- package/package.json +2 -2
- package/api/alerts-api.ts +0 -860
- package/api/dashboard-api.ts +0 -792
- package/api/reports-api.ts +0 -860
- package/api/scenario-analysis-api.ts +0 -977
- package/api/settings-api.ts +0 -478
- package/api/tariff-comparisons-api.ts +0 -381
- package/api/user-subscription-api.ts +0 -191
- package/dist/api/alerts-api.d.ts +0 -479
- package/dist/api/alerts-api.js +0 -752
- package/dist/api/dashboard-api.d.ts +0 -434
- package/dist/api/reports-api.d.ts +0 -479
- package/dist/api/scenario-analysis-api.d.ts +0 -529
- package/dist/api/scenario-analysis-api.js +0 -895
- package/dist/api/settings-api.d.ts +0 -261
- package/dist/api/settings-api.js +0 -509
- package/dist/api/tariff-comparisons-api.d.ts +0 -206
- package/dist/api/user-subscription-api.d.ts +0 -111
- package/dist/api/user-subscription-api.js +0 -236
- package/dist/models/alert-class.d.ts +0 -90
- package/dist/models/alert-history-class.d.ts +0 -108
- package/dist/models/compare-tariffs-request-dto.d.ts +0 -37
- package/dist/models/compare-tariffs-request-dto.js +0 -22
- package/dist/models/compare-tariffs-response-class.d.ts +0 -31
- package/dist/models/condition-dto.d.ts +0 -43
- package/dist/models/create-alert-request-dto.d.ts +0 -79
- package/dist/models/create-alert-request-dto.js +0 -27
- package/dist/models/create-alert-response-class.js +0 -15
- package/dist/models/create-dashboard-request-dto.d.ts +0 -70
- package/dist/models/create-dashboard-request-dto.js +0 -29
- package/dist/models/create-dashboard-response-class.js +0 -15
- package/dist/models/create-report-request-dto.d.ts +0 -49
- package/dist/models/create-report-request-dto.js +0 -22
- package/dist/models/create-report-response-class.js +0 -15
- package/dist/models/create-scenario-analysis-request-dto.d.ts +0 -74
- package/dist/models/create-scenario-analysis-request-dto.js +0 -22
- package/dist/models/create-scenario-analysis-response-class.d.ts +0 -25
- package/dist/models/create-scenario-analysis-response-class.js +0 -15
- package/dist/models/dashboard-class.d.ts +0 -78
- package/dist/models/dashboard-class.js +0 -15
- package/dist/models/get-alert-response-class.js +0 -15
- package/dist/models/get-dashboard-response-class.d.ts +0 -25
- package/dist/models/get-dashboard-response-class.js +0 -15
- package/dist/models/get-embedded-url-response-class.js +0 -15
- package/dist/models/get-report-response-class.d.ts +0 -25
- package/dist/models/get-report-response-class.js +0 -15
- package/dist/models/get-scenario-analysis-response-class.d.ts +0 -25
- package/dist/models/get-scenario-analysis-response-class.js +0 -15
- package/dist/models/grouped-tariff-class.d.ts +0 -30
- package/dist/models/grouped-tariff-class.js +0 -15
- package/dist/models/insurance-company-response-class.js +0 -15
- package/dist/models/insurance-response-class.js +0 -15
- package/dist/models/list-alert-history-response-class.d.ts +0 -31
- package/dist/models/list-alert-history-response-class.js +0 -15
- package/dist/models/list-alerts-response-class.d.ts +0 -31
- package/dist/models/list-alerts-response-class.js +0 -15
- package/dist/models/list-channels-response-class.d.ts +0 -25
- package/dist/models/list-channels-response-class.js +0 -15
- package/dist/models/list-dashboards-response-class.d.ts +0 -31
- package/dist/models/list-dashboards-response-class.js +0 -15
- package/dist/models/list-insurance-companies-response-class.d.ts +0 -25
- package/dist/models/list-insurance-companies-response-class.js +0 -15
- package/dist/models/list-report-history-response-class.d.ts +0 -31
- package/dist/models/list-report-history-response-class.js +0 -15
- package/dist/models/list-reports-response-class.d.ts +0 -31
- package/dist/models/list-reports-response-class.js +0 -15
- package/dist/models/list-scenario-analyses-response-class.d.ts +0 -31
- package/dist/models/list-scenario-analyses-response-class.js +0 -15
- package/dist/models/list-scenario-analysis-dates-response-class.d.ts +0 -25
- package/dist/models/list-scenario-analysis-dates-response-class.js +0 -15
- package/dist/models/list-tariff-insurance-companies-response-class.d.ts +0 -25
- package/dist/models/list-tariff-insurance-companies-response-class.js +0 -15
- package/dist/models/list-tariffs-response-class.d.ts +0 -25
- package/dist/models/list-tariffs-response-class.js +0 -15
- package/dist/models/manage-subscription-request-dto.js +0 -15
- package/dist/models/manage-subscription-response-class.d.ts +0 -25
- package/dist/models/manage-subscription-response-class.js +0 -15
- package/dist/models/report-class.d.ts +0 -66
- package/dist/models/report-class.js +0 -15
- package/dist/models/report-history-class.d.ts +0 -48
- package/dist/models/report-history-class.js +0 -15
- package/dist/models/scenario-analysis-class.d.ts +0 -108
- package/dist/models/scenario-analysis-class.js +0 -15
- package/dist/models/scenario-analysis-date-response-class.d.ts +0 -36
- package/dist/models/scenario-analysis-date-response-class.js +0 -15
- package/dist/models/set-user-setting-request-dto.js +0 -15
- package/dist/models/update-alert-request-dto.d.ts +0 -72
- package/dist/models/update-alert-response-class.d.ts +0 -25
- package/dist/models/update-alert-response-class.js +0 -15
- package/dist/models/update-dashboard-request-dto.d.ts +0 -76
- package/dist/models/update-dashboard-request-dto.js +0 -29
- package/dist/models/update-dashboard-response-class.d.ts +0 -25
- package/dist/models/update-dashboard-response-class.js +0 -15
- package/dist/models/update-report-request-dto.d.ts +0 -55
- package/dist/models/update-report-request-dto.js +0 -22
- package/dist/models/update-report-response-class.d.ts +0 -25
- package/dist/models/update-report-response-class.js +0 -15
- package/dist/models/update-scenario-analysis-request-dto.d.ts +0 -74
- package/dist/models/update-scenario-analysis-request-dto.js +0 -22
- package/dist/models/update-scenario-analysis-response-class.d.ts +0 -25
- package/dist/models/update-scenario-analysis-response-class.js +0 -15
- package/models/alert-class.ts +0 -96
- package/models/alert-history-class.ts +0 -114
- package/models/compare-tariffs-request-dto.ts +0 -46
- package/models/compare-tariffs-response-class.ts +0 -37
- package/models/condition-dto.ts +0 -52
- package/models/create-alert-request-dto.ts +0 -89
- package/models/create-dashboard-request-dto.ts +0 -81
- package/models/create-report-request-dto.ts +0 -58
- package/models/create-scenario-analysis-request-dto.ts +0 -83
- package/models/create-scenario-analysis-response-class.ts +0 -31
- package/models/dashboard-class.ts +0 -84
- package/models/get-dashboard-response-class.ts +0 -31
- package/models/get-report-response-class.ts +0 -31
- package/models/get-scenario-analysis-response-class.ts +0 -31
- package/models/grouped-tariff-class.ts +0 -36
- package/models/list-channels-response-class.ts +0 -31
- package/models/list-insurance-companies-response-class.ts +0 -31
- package/models/list-report-history-response-class.ts +0 -37
- package/models/list-reports-response-class.ts +0 -37
- package/models/list-scenario-analyses-response-class.ts +0 -37
- package/models/list-scenario-analysis-dates-response-class.ts +0 -31
- package/models/list-tariff-insurance-companies-response-class.ts +0 -31
- package/models/list-tariffs-response-class.ts +0 -31
- package/models/manage-subscription-response-class.ts +0 -31
- package/models/report-history-class.ts +0 -54
- package/models/scenario-analysis-class.ts +0 -114
- package/models/scenario-analysis-date-response-class.ts +0 -42
- package/models/update-alert-request-dto.ts +0 -81
- package/models/update-alert-response-class.ts +0 -31
- package/models/update-dashboard-request-dto.ts +0 -87
- package/models/update-dashboard-response-class.ts +0 -31
- package/models/update-report-request-dto.ts +0 -64
- package/models/update-report-response-class.ts +0 -31
- package/models/update-scenario-analysis-request-dto.ts +0 -83
- package/models/update-scenario-analysis-response-class.ts +0 -31
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL Tenant Service
|
|
3
|
+
* The EMIL TenantService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { GetOrganizationResponseClass } from '../models';
|
|
16
|
+
import { ListOrganizationsResponseClass } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* OrganizationsApi - axios parameter creator
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export declare const OrganizationsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
|
+
/**
|
|
23
|
+
* Get Organization by code
|
|
24
|
+
* @summary Retrieve the Organization
|
|
25
|
+
* @param {string} authorization Bearer Token
|
|
26
|
+
* @param {string} code
|
|
27
|
+
* @param {*} [options] Override http request option.
|
|
28
|
+
* @throws {RequiredError}
|
|
29
|
+
*/
|
|
30
|
+
getOrganization: (authorization: string, code: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
|
+
/**
|
|
32
|
+
* This will fetch list of organizations
|
|
33
|
+
* @summary List organizations
|
|
34
|
+
* @param {string} authorization Bearer Token
|
|
35
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
36
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
37
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
38
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
39
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
40
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
listOrganizations: (authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* OrganizationsApi - functional programming interface
|
|
48
|
+
* @export
|
|
49
|
+
*/
|
|
50
|
+
export declare const OrganizationsApiFp: (configuration?: Configuration) => {
|
|
51
|
+
/**
|
|
52
|
+
* Get Organization by code
|
|
53
|
+
* @summary Retrieve the Organization
|
|
54
|
+
* @param {string} authorization Bearer Token
|
|
55
|
+
* @param {string} code
|
|
56
|
+
* @param {*} [options] Override http request option.
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
*/
|
|
59
|
+
getOrganization(authorization: string, code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrganizationResponseClass>>;
|
|
60
|
+
/**
|
|
61
|
+
* This will fetch list of organizations
|
|
62
|
+
* @summary List organizations
|
|
63
|
+
* @param {string} authorization Bearer Token
|
|
64
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
65
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
66
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
67
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
68
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
69
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
70
|
+
* @param {*} [options] Override http request option.
|
|
71
|
+
* @throws {RequiredError}
|
|
72
|
+
*/
|
|
73
|
+
listOrganizations(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOrganizationsResponseClass>>;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* OrganizationsApi - factory interface
|
|
77
|
+
* @export
|
|
78
|
+
*/
|
|
79
|
+
export declare const OrganizationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
80
|
+
/**
|
|
81
|
+
* Get Organization by code
|
|
82
|
+
* @summary Retrieve the Organization
|
|
83
|
+
* @param {string} authorization Bearer Token
|
|
84
|
+
* @param {string} code
|
|
85
|
+
* @param {*} [options] Override http request option.
|
|
86
|
+
* @throws {RequiredError}
|
|
87
|
+
*/
|
|
88
|
+
getOrganization(authorization: string, code: string, options?: any): AxiosPromise<GetOrganizationResponseClass>;
|
|
89
|
+
/**
|
|
90
|
+
* This will fetch list of organizations
|
|
91
|
+
* @summary List organizations
|
|
92
|
+
* @param {string} authorization Bearer Token
|
|
93
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
94
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
95
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
96
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
97
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
98
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
*/
|
|
102
|
+
listOrganizations(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListOrganizationsResponseClass>;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Request parameters for getOrganization operation in OrganizationsApi.
|
|
106
|
+
* @export
|
|
107
|
+
* @interface OrganizationsApiGetOrganizationRequest
|
|
108
|
+
*/
|
|
109
|
+
export interface OrganizationsApiGetOrganizationRequest {
|
|
110
|
+
/**
|
|
111
|
+
* Bearer Token
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof OrganizationsApiGetOrganization
|
|
114
|
+
*/
|
|
115
|
+
readonly authorization: string;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof OrganizationsApiGetOrganization
|
|
120
|
+
*/
|
|
121
|
+
readonly code: string;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Request parameters for listOrganizations operation in OrganizationsApi.
|
|
125
|
+
* @export
|
|
126
|
+
* @interface OrganizationsApiListOrganizationsRequest
|
|
127
|
+
*/
|
|
128
|
+
export interface OrganizationsApiListOrganizationsRequest {
|
|
129
|
+
/**
|
|
130
|
+
* Bearer Token
|
|
131
|
+
* @type {string}
|
|
132
|
+
* @memberof OrganizationsApiListOrganizations
|
|
133
|
+
*/
|
|
134
|
+
readonly authorization: string;
|
|
135
|
+
/**
|
|
136
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
137
|
+
* @type {any}
|
|
138
|
+
* @memberof OrganizationsApiListOrganizations
|
|
139
|
+
*/
|
|
140
|
+
readonly pageSize?: any;
|
|
141
|
+
/**
|
|
142
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
143
|
+
* @type {any}
|
|
144
|
+
* @memberof OrganizationsApiListOrganizations
|
|
145
|
+
*/
|
|
146
|
+
readonly pageToken?: any;
|
|
147
|
+
/**
|
|
148
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
149
|
+
* @type {any}
|
|
150
|
+
* @memberof OrganizationsApiListOrganizations
|
|
151
|
+
*/
|
|
152
|
+
readonly filter?: any;
|
|
153
|
+
/**
|
|
154
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
155
|
+
* @type {any}
|
|
156
|
+
* @memberof OrganizationsApiListOrganizations
|
|
157
|
+
*/
|
|
158
|
+
readonly search?: any;
|
|
159
|
+
/**
|
|
160
|
+
* The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
161
|
+
* @type {any}
|
|
162
|
+
* @memberof OrganizationsApiListOrganizations
|
|
163
|
+
*/
|
|
164
|
+
readonly order?: any;
|
|
165
|
+
/**
|
|
166
|
+
* Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
167
|
+
* @type {any}
|
|
168
|
+
* @memberof OrganizationsApiListOrganizations
|
|
169
|
+
*/
|
|
170
|
+
readonly expand?: any;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* OrganizationsApi - object-oriented interface
|
|
174
|
+
* @export
|
|
175
|
+
* @class OrganizationsApi
|
|
176
|
+
* @extends {BaseAPI}
|
|
177
|
+
*/
|
|
178
|
+
export declare class OrganizationsApi extends BaseAPI {
|
|
179
|
+
/**
|
|
180
|
+
* Get Organization by code
|
|
181
|
+
* @summary Retrieve the Organization
|
|
182
|
+
* @param {OrganizationsApiGetOrganizationRequest} requestParameters Request parameters.
|
|
183
|
+
* @param {*} [options] Override http request option.
|
|
184
|
+
* @throws {RequiredError}
|
|
185
|
+
* @memberof OrganizationsApi
|
|
186
|
+
*/
|
|
187
|
+
getOrganization(requestParameters: OrganizationsApiGetOrganizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetOrganizationResponseClass, any>>;
|
|
188
|
+
/**
|
|
189
|
+
* This will fetch list of organizations
|
|
190
|
+
* @summary List organizations
|
|
191
|
+
* @param {OrganizationsApiListOrganizationsRequest} requestParameters Request parameters.
|
|
192
|
+
* @param {*} [options] Override http request option.
|
|
193
|
+
* @throws {RequiredError}
|
|
194
|
+
* @memberof OrganizationsApi
|
|
195
|
+
*/
|
|
196
|
+
listOrganizations(requestParameters: OrganizationsApiListOrganizationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListOrganizationsResponseClass, any>>;
|
|
197
|
+
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* The EMIL TenantService API description
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
78
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
79
|
};
|
|
80
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.
|
|
81
|
+
exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = void 0;
|
|
82
82
|
var axios_1 = __importDefault(require("axios"));
|
|
83
83
|
// Some imports not used depending on template conditions
|
|
84
84
|
// @ts-ignore
|
|
@@ -90,35 +90,39 @@ var base_1 = require("../base");
|
|
|
90
90
|
var url_1 = require("url");
|
|
91
91
|
var FormData = require('form-data');
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* OrganizationsApi - axios parameter creator
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
var
|
|
96
|
+
var OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
101
|
-
* @
|
|
102
|
-
* @param {string}
|
|
100
|
+
* Get Organization by code
|
|
101
|
+
* @summary Retrieve the Organization
|
|
102
|
+
* @param {string} authorization Bearer Token
|
|
103
|
+
* @param {string} code
|
|
103
104
|
* @param {*} [options] Override http request option.
|
|
104
105
|
* @throws {RequiredError}
|
|
105
106
|
*/
|
|
106
|
-
|
|
107
|
+
getOrganization: function (authorization, code, options) {
|
|
107
108
|
if (options === void 0) { options = {}; }
|
|
108
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
109
110
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
110
111
|
return __generator(this, function (_a) {
|
|
111
112
|
switch (_a.label) {
|
|
112
113
|
case 0:
|
|
113
|
-
// verify required parameter '
|
|
114
|
-
(0, common_1.assertParamExists)('
|
|
115
|
-
|
|
114
|
+
// verify required parameter 'authorization' is not null or undefined
|
|
115
|
+
(0, common_1.assertParamExists)('getOrganization', 'authorization', authorization);
|
|
116
|
+
// verify required parameter 'code' is not null or undefined
|
|
117
|
+
(0, common_1.assertParamExists)('getOrganization', 'code', code);
|
|
118
|
+
localVarPath = "/tenantservice/v1/organizations/{code}"
|
|
119
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
116
120
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
117
121
|
if (configuration) {
|
|
118
122
|
baseOptions = configuration.baseOptions;
|
|
119
123
|
baseAccessToken = configuration.accessToken;
|
|
120
124
|
}
|
|
121
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
125
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
122
126
|
localVarHeaderParameter = {};
|
|
123
127
|
localVarQueryParameter = {};
|
|
124
128
|
// authentication bearer required
|
|
@@ -131,11 +135,9 @@ var TariffComparisonsApiAxiosParamCreator = function (configuration) {
|
|
|
131
135
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
132
136
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
133
137
|
}
|
|
134
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
135
138
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
136
139
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
137
140
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
138
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(compareTariffsRequestDto, localVarRequestOptions, configuration);
|
|
139
141
|
return [2 /*return*/, {
|
|
140
142
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
141
143
|
options: localVarRequestOptions,
|
|
@@ -145,20 +147,28 @@ var TariffComparisonsApiAxiosParamCreator = function (configuration) {
|
|
|
145
147
|
});
|
|
146
148
|
},
|
|
147
149
|
/**
|
|
148
|
-
*
|
|
149
|
-
* @
|
|
150
|
-
* @param {
|
|
150
|
+
* This will fetch list of organizations
|
|
151
|
+
* @summary List organizations
|
|
152
|
+
* @param {string} authorization Bearer Token
|
|
153
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
154
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
155
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
156
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
157
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
158
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
151
159
|
* @param {*} [options] Override http request option.
|
|
152
160
|
* @throws {RequiredError}
|
|
153
161
|
*/
|
|
154
|
-
|
|
162
|
+
listOrganizations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
155
163
|
if (options === void 0) { options = {}; }
|
|
156
164
|
return __awaiter(_this, void 0, void 0, function () {
|
|
157
165
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
158
166
|
return __generator(this, function (_a) {
|
|
159
167
|
switch (_a.label) {
|
|
160
168
|
case 0:
|
|
161
|
-
|
|
169
|
+
// verify required parameter 'authorization' is not null or undefined
|
|
170
|
+
(0, common_1.assertParamExists)('listOrganizations', 'authorization', authorization);
|
|
171
|
+
localVarPath = "/tenantservice/v1/organizations";
|
|
162
172
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
163
173
|
if (configuration) {
|
|
164
174
|
baseOptions = configuration.baseOptions;
|
|
@@ -174,61 +184,23 @@ var TariffComparisonsApiAxiosParamCreator = function (configuration) {
|
|
|
174
184
|
// authentication bearer required
|
|
175
185
|
// http bearer authentication required
|
|
176
186
|
_a.sent();
|
|
177
|
-
if (
|
|
178
|
-
localVarQueryParameter['
|
|
187
|
+
if (pageSize !== undefined) {
|
|
188
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
179
189
|
}
|
|
180
|
-
if (
|
|
181
|
-
|
|
190
|
+
if (pageToken !== undefined) {
|
|
191
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
182
192
|
}
|
|
183
|
-
(
|
|
184
|
-
|
|
185
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
186
|
-
return [2 /*return*/, {
|
|
187
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
188
|
-
options: localVarRequestOptions,
|
|
189
|
-
}];
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
});
|
|
193
|
-
},
|
|
194
|
-
/**
|
|
195
|
-
*
|
|
196
|
-
* @param {string} insurerName Insurer name
|
|
197
|
-
* @param {string} [authorization] Bearer Token
|
|
198
|
-
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product
|
|
199
|
-
* @param {*} [options] Override http request option.
|
|
200
|
-
* @throws {RequiredError}
|
|
201
|
-
*/
|
|
202
|
-
listTariffs: function (insurerName, authorization, product, options) {
|
|
203
|
-
if (options === void 0) { options = {}; }
|
|
204
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
205
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
206
|
-
return __generator(this, function (_a) {
|
|
207
|
-
switch (_a.label) {
|
|
208
|
-
case 0:
|
|
209
|
-
// verify required parameter 'insurerName' is not null or undefined
|
|
210
|
-
(0, common_1.assertParamExists)('listTariffs', 'insurerName', insurerName);
|
|
211
|
-
localVarPath = "/tenantservice/v1/tariff-comparisons/tariffs";
|
|
212
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
213
|
-
if (configuration) {
|
|
214
|
-
baseOptions = configuration.baseOptions;
|
|
215
|
-
baseAccessToken = configuration.accessToken;
|
|
193
|
+
if (filter !== undefined) {
|
|
194
|
+
localVarQueryParameter['filter'] = filter;
|
|
216
195
|
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
223
|
-
case 1:
|
|
224
|
-
// authentication bearer required
|
|
225
|
-
// http bearer authentication required
|
|
226
|
-
_a.sent();
|
|
227
|
-
if (insurerName !== undefined) {
|
|
228
|
-
localVarQueryParameter['insurerName'] = insurerName;
|
|
196
|
+
if (search !== undefined) {
|
|
197
|
+
localVarQueryParameter['search'] = search;
|
|
198
|
+
}
|
|
199
|
+
if (order !== undefined) {
|
|
200
|
+
localVarQueryParameter['order'] = order;
|
|
229
201
|
}
|
|
230
|
-
if (
|
|
231
|
-
localVarQueryParameter['
|
|
202
|
+
if (expand !== undefined) {
|
|
203
|
+
localVarQueryParameter['expand'] = expand;
|
|
232
204
|
}
|
|
233
205
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
234
206
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
@@ -246,27 +218,28 @@ var TariffComparisonsApiAxiosParamCreator = function (configuration) {
|
|
|
246
218
|
},
|
|
247
219
|
};
|
|
248
220
|
};
|
|
249
|
-
exports.
|
|
221
|
+
exports.OrganizationsApiAxiosParamCreator = OrganizationsApiAxiosParamCreator;
|
|
250
222
|
/**
|
|
251
|
-
*
|
|
223
|
+
* OrganizationsApi - functional programming interface
|
|
252
224
|
* @export
|
|
253
225
|
*/
|
|
254
|
-
var
|
|
255
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
226
|
+
var OrganizationsApiFp = function (configuration) {
|
|
227
|
+
var localVarAxiosParamCreator = (0, exports.OrganizationsApiAxiosParamCreator)(configuration);
|
|
256
228
|
return {
|
|
257
229
|
/**
|
|
258
|
-
*
|
|
259
|
-
* @
|
|
260
|
-
* @param {string}
|
|
230
|
+
* Get Organization by code
|
|
231
|
+
* @summary Retrieve the Organization
|
|
232
|
+
* @param {string} authorization Bearer Token
|
|
233
|
+
* @param {string} code
|
|
261
234
|
* @param {*} [options] Override http request option.
|
|
262
235
|
* @throws {RequiredError}
|
|
263
236
|
*/
|
|
264
|
-
|
|
237
|
+
getOrganization: function (authorization, code, options) {
|
|
265
238
|
return __awaiter(this, void 0, void 0, function () {
|
|
266
239
|
var localVarAxiosArgs;
|
|
267
240
|
return __generator(this, function (_a) {
|
|
268
241
|
switch (_a.label) {
|
|
269
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
242
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getOrganization(authorization, code, options)];
|
|
270
243
|
case 1:
|
|
271
244
|
localVarAxiosArgs = _a.sent();
|
|
272
245
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -275,39 +248,24 @@ var TariffComparisonsApiFp = function (configuration) {
|
|
|
275
248
|
});
|
|
276
249
|
},
|
|
277
250
|
/**
|
|
278
|
-
*
|
|
279
|
-
* @
|
|
280
|
-
* @param {
|
|
251
|
+
* This will fetch list of organizations
|
|
252
|
+
* @summary List organizations
|
|
253
|
+
* @param {string} authorization Bearer Token
|
|
254
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
255
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
256
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
257
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
258
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
259
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
281
260
|
* @param {*} [options] Override http request option.
|
|
282
261
|
* @throws {RequiredError}
|
|
283
262
|
*/
|
|
284
|
-
|
|
263
|
+
listOrganizations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
285
264
|
return __awaiter(this, void 0, void 0, function () {
|
|
286
265
|
var localVarAxiosArgs;
|
|
287
266
|
return __generator(this, function (_a) {
|
|
288
267
|
switch (_a.label) {
|
|
289
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
290
|
-
case 1:
|
|
291
|
-
localVarAxiosArgs = _a.sent();
|
|
292
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
293
|
-
}
|
|
294
|
-
});
|
|
295
|
-
});
|
|
296
|
-
},
|
|
297
|
-
/**
|
|
298
|
-
*
|
|
299
|
-
* @param {string} insurerName Insurer name
|
|
300
|
-
* @param {string} [authorization] Bearer Token
|
|
301
|
-
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product
|
|
302
|
-
* @param {*} [options] Override http request option.
|
|
303
|
-
* @throws {RequiredError}
|
|
304
|
-
*/
|
|
305
|
-
listTariffs: function (insurerName, authorization, product, options) {
|
|
306
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
307
|
-
var localVarAxiosArgs;
|
|
308
|
-
return __generator(this, function (_a) {
|
|
309
|
-
switch (_a.label) {
|
|
310
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTariffs(insurerName, authorization, product, options)];
|
|
268
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOrganizations(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
311
269
|
case 1:
|
|
312
270
|
localVarAxiosArgs = _a.sent();
|
|
313
271
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -317,93 +275,79 @@ var TariffComparisonsApiFp = function (configuration) {
|
|
|
317
275
|
},
|
|
318
276
|
};
|
|
319
277
|
};
|
|
320
|
-
exports.
|
|
278
|
+
exports.OrganizationsApiFp = OrganizationsApiFp;
|
|
321
279
|
/**
|
|
322
|
-
*
|
|
280
|
+
* OrganizationsApi - factory interface
|
|
323
281
|
* @export
|
|
324
282
|
*/
|
|
325
|
-
var
|
|
326
|
-
var localVarFp = (0, exports.
|
|
283
|
+
var OrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
284
|
+
var localVarFp = (0, exports.OrganizationsApiFp)(configuration);
|
|
327
285
|
return {
|
|
328
286
|
/**
|
|
329
|
-
*
|
|
330
|
-
* @
|
|
331
|
-
* @param {string}
|
|
332
|
-
* @param {
|
|
333
|
-
* @throws {RequiredError}
|
|
334
|
-
*/
|
|
335
|
-
compareTariffs: function (compareTariffsRequestDto, authorization, options) {
|
|
336
|
-
return localVarFp.compareTariffs(compareTariffsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
337
|
-
},
|
|
338
|
-
/**
|
|
339
|
-
*
|
|
340
|
-
* @param {string} [authorization] Bearer Token
|
|
341
|
-
* @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
|
|
287
|
+
* Get Organization by code
|
|
288
|
+
* @summary Retrieve the Organization
|
|
289
|
+
* @param {string} authorization Bearer Token
|
|
290
|
+
* @param {string} code
|
|
342
291
|
* @param {*} [options] Override http request option.
|
|
343
292
|
* @throws {RequiredError}
|
|
344
293
|
*/
|
|
345
|
-
|
|
346
|
-
return localVarFp.
|
|
294
|
+
getOrganization: function (authorization, code, options) {
|
|
295
|
+
return localVarFp.getOrganization(authorization, code, options).then(function (request) { return request(axios, basePath); });
|
|
347
296
|
},
|
|
348
297
|
/**
|
|
349
|
-
*
|
|
350
|
-
* @
|
|
351
|
-
* @param {string}
|
|
352
|
-
* @param {
|
|
298
|
+
* This will fetch list of organizations
|
|
299
|
+
* @summary List organizations
|
|
300
|
+
* @param {string} authorization Bearer Token
|
|
301
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
302
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
303
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
304
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
305
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
306
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
353
307
|
* @param {*} [options] Override http request option.
|
|
354
308
|
* @throws {RequiredError}
|
|
355
309
|
*/
|
|
356
|
-
|
|
357
|
-
return localVarFp.
|
|
310
|
+
listOrganizations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
311
|
+
return localVarFp.listOrganizations(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
358
312
|
},
|
|
359
313
|
};
|
|
360
314
|
};
|
|
361
|
-
exports.
|
|
315
|
+
exports.OrganizationsApiFactory = OrganizationsApiFactory;
|
|
362
316
|
/**
|
|
363
|
-
*
|
|
317
|
+
* OrganizationsApi - object-oriented interface
|
|
364
318
|
* @export
|
|
365
|
-
* @class
|
|
319
|
+
* @class OrganizationsApi
|
|
366
320
|
* @extends {BaseAPI}
|
|
367
321
|
*/
|
|
368
|
-
var
|
|
369
|
-
__extends(
|
|
370
|
-
function
|
|
322
|
+
var OrganizationsApi = /** @class */ (function (_super) {
|
|
323
|
+
__extends(OrganizationsApi, _super);
|
|
324
|
+
function OrganizationsApi() {
|
|
371
325
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
372
326
|
}
|
|
373
327
|
/**
|
|
374
|
-
*
|
|
375
|
-
* @
|
|
376
|
-
* @param {
|
|
377
|
-
* @throws {RequiredError}
|
|
378
|
-
* @memberof TariffComparisonsApi
|
|
379
|
-
*/
|
|
380
|
-
TariffComparisonsApi.prototype.compareTariffs = function (requestParameters, options) {
|
|
381
|
-
var _this = this;
|
|
382
|
-
return (0, exports.TariffComparisonsApiFp)(this.configuration).compareTariffs(requestParameters.compareTariffsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
383
|
-
};
|
|
384
|
-
/**
|
|
385
|
-
*
|
|
386
|
-
* @param {TariffComparisonsApiListTariffInsuranceCompaniesRequest} requestParameters Request parameters.
|
|
328
|
+
* Get Organization by code
|
|
329
|
+
* @summary Retrieve the Organization
|
|
330
|
+
* @param {OrganizationsApiGetOrganizationRequest} requestParameters Request parameters.
|
|
387
331
|
* @param {*} [options] Override http request option.
|
|
388
332
|
* @throws {RequiredError}
|
|
389
|
-
* @memberof
|
|
333
|
+
* @memberof OrganizationsApi
|
|
390
334
|
*/
|
|
391
|
-
|
|
335
|
+
OrganizationsApi.prototype.getOrganization = function (requestParameters, options) {
|
|
392
336
|
var _this = this;
|
|
393
|
-
|
|
394
|
-
return (0, exports.TariffComparisonsApiFp)(this.configuration).listTariffInsuranceCompanies(requestParameters.authorization, requestParameters.product, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
337
|
+
return (0, exports.OrganizationsApiFp)(this.configuration).getOrganization(requestParameters.authorization, requestParameters.code, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
395
338
|
};
|
|
396
339
|
/**
|
|
397
|
-
*
|
|
398
|
-
* @
|
|
340
|
+
* This will fetch list of organizations
|
|
341
|
+
* @summary List organizations
|
|
342
|
+
* @param {OrganizationsApiListOrganizationsRequest} requestParameters Request parameters.
|
|
399
343
|
* @param {*} [options] Override http request option.
|
|
400
344
|
* @throws {RequiredError}
|
|
401
|
-
* @memberof
|
|
345
|
+
* @memberof OrganizationsApi
|
|
402
346
|
*/
|
|
403
|
-
|
|
347
|
+
OrganizationsApi.prototype.listOrganizations = function (requestParameters, options) {
|
|
404
348
|
var _this = this;
|
|
405
|
-
return (0, exports.
|
|
349
|
+
return (0, exports.OrganizationsApiFp)(this.configuration).listOrganizations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
406
350
|
};
|
|
407
|
-
return
|
|
351
|
+
return OrganizationsApi;
|
|
408
352
|
}(base_1.BaseAPI));
|
|
409
|
-
exports.
|
|
353
|
+
exports.OrganizationsApi = OrganizationsApi;
|