@emilgroup/tenant-sdk 1.0.0 → 1.0.1
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 +57 -14
- package/README.md +2 -2
- package/api/alerts-api.ts +860 -0
- package/api/custom-schema-api.ts +60 -52
- package/api/dashboard-api.ts +792 -0
- package/api/data-report-api.ts +75 -65
- package/api/data-report-executor-api.ts +26 -10
- package/api/invite-users-api.ts +79 -75
- package/api/reports-api.ts +860 -0
- package/api/scenario-analysis-api.ts +977 -0
- package/api/settings-api.ts +484 -0
- package/api/tariff-comparisons-api.ts +381 -0
- package/api/{invite-organizations-api.ts → user-subscription-api.ts} +161 -139
- package/api/users-api.ts +148 -138
- package/api.ts +14 -4
- package/dist/api/alerts-api.d.ts +479 -0
- package/dist/api/alerts-api.js +752 -0
- package/dist/api/custom-schema-api.d.ts +42 -42
- package/dist/api/custom-schema-api.js +38 -31
- package/dist/api/dashboard-api.d.ts +434 -0
- package/dist/api/dashboard-api.js +724 -0
- package/dist/api/data-report-api.d.ts +52 -52
- package/dist/api/data-report-api.js +49 -40
- package/dist/api/data-report-executor-api.d.ts +16 -7
- package/dist/api/data-report-executor-api.js +17 -9
- package/dist/api/invite-users-api.d.ts +60 -63
- package/dist/api/invite-users-api.js +49 -40
- package/dist/api/reports-api.d.ts +479 -0
- package/dist/api/reports-api.js +752 -0
- package/dist/api/scenario-analysis-api.d.ts +529 -0
- package/dist/api/scenario-analysis-api.js +895 -0
- package/dist/api/settings-api.d.ts +264 -0
- package/dist/api/settings-api.js +509 -0
- package/dist/api/tariff-comparisons-api.d.ts +206 -0
- package/dist/api/{organizations-api.js → tariff-comparisons-api.js} +158 -99
- package/dist/api/{organizations-api.d.ts → user-subscription-api.d.ts} +103 -88
- package/dist/api/{invite-organizations-api.js → user-subscription-api.js} +114 -106
- package/dist/api/users-api.d.ts +109 -113
- package/dist/api/users-api.js +93 -76
- package/dist/api.d.ts +7 -2
- package/dist/api.js +7 -2
- package/dist/models/alert-class.d.ts +90 -0
- package/dist/models/alert-history-class.d.ts +108 -0
- package/dist/models/assign-user-roles-request-dto.d.ts +2 -2
- package/dist/models/channel-response-class.d.ts +30 -0
- package/dist/models/compare-tariffs-request-dto.d.ts +37 -0
- package/dist/models/compare-tariffs-request-dto.js +22 -0
- package/dist/models/compare-tariffs-response-class.d.ts +31 -0
- package/dist/models/condition-dto.d.ts +43 -0
- package/dist/models/condition-dto.js +22 -0
- package/dist/models/create-alert-request-dto.d.ts +79 -0
- package/dist/models/create-alert-request-dto.js +27 -0
- package/dist/models/create-alert-response-class.d.ts +25 -0
- package/dist/models/create-custom-schema-request-dto.d.ts +0 -1
- package/dist/models/create-custom-schema-request-dto.js +1 -2
- package/dist/models/create-dashboard-request-dto.d.ts +70 -0
- package/dist/models/create-dashboard-request-dto.js +29 -0
- package/dist/models/create-dashboard-response-class.d.ts +25 -0
- package/dist/models/create-report-request-dto.d.ts +49 -0
- package/dist/models/create-report-request-dto.js +22 -0
- package/dist/models/create-report-response-class.d.ts +25 -0
- package/dist/models/create-scenario-analysis-request-dto.d.ts +74 -0
- package/dist/models/create-scenario-analysis-request-dto.js +22 -0
- package/dist/models/create-scenario-analysis-response-class.d.ts +25 -0
- package/dist/models/dashboard-class.d.ts +78 -0
- package/dist/models/get-alert-response-class.d.ts +25 -0
- package/dist/models/get-dashboard-response-class.d.ts +25 -0
- package/dist/models/{delete-response-class.d.ts → get-embedded-url-response-class.d.ts} +6 -6
- package/dist/models/get-report-response-class.d.ts +25 -0
- package/dist/models/get-report-response-class.js +15 -0
- package/dist/models/get-scenario-analysis-response-class.d.ts +25 -0
- package/dist/models/get-scenario-analysis-response-class.js +15 -0
- package/dist/models/grouped-tariff-class.d.ts +30 -0
- package/dist/models/grouped-tariff-class.js +15 -0
- package/dist/models/index.d.ts +50 -12
- package/dist/models/index.js +50 -12
- package/dist/models/{enable-users-response-class.d.ts → insurance-company-response-class.d.ts} +6 -6
- package/dist/models/insurance-company-response-class.js +15 -0
- package/dist/models/{disable-users-response-class.d.ts → insurance-response-class.d.ts} +6 -6
- package/dist/models/insurance-response-class.js +15 -0
- package/dist/models/invite-user-request-dto.d.ts +2 -8
- package/dist/models/invite-users-request-dto.d.ts +2 -2
- package/dist/models/{list-organizations-response-class.d.ts → list-alert-history-response-class.d.ts} +9 -9
- package/dist/models/list-alert-history-response-class.js +15 -0
- package/dist/models/list-alerts-response-class.d.ts +31 -0
- package/dist/models/list-alerts-response-class.js +15 -0
- package/dist/models/list-channels-response-class.d.ts +25 -0
- package/dist/models/list-channels-response-class.js +15 -0
- package/dist/models/list-dashboards-response-class.d.ts +31 -0
- package/dist/models/list-dashboards-response-class.js +15 -0
- package/dist/models/list-insurance-companies-response-class.d.ts +25 -0
- package/dist/models/list-insurance-companies-response-class.js +15 -0
- package/dist/models/list-report-history-response-class.d.ts +31 -0
- package/dist/models/list-report-history-response-class.js +15 -0
- package/dist/models/list-reports-response-class.d.ts +31 -0
- package/dist/models/list-reports-response-class.js +15 -0
- package/dist/models/list-scenario-analyses-response-class.d.ts +31 -0
- package/dist/models/list-scenario-analyses-response-class.js +15 -0
- package/dist/models/list-scenario-analysis-dates-response-class.d.ts +25 -0
- package/dist/models/list-scenario-analysis-dates-response-class.js +15 -0
- package/dist/models/list-tariff-insurance-companies-response-class.d.ts +25 -0
- package/dist/models/list-tariff-insurance-companies-response-class.js +15 -0
- package/dist/models/list-tariffs-response-class.d.ts +25 -0
- package/dist/models/list-tariffs-response-class.js +15 -0
- package/dist/models/{list-org-invitations-response-class.d.ts → list-user-subscriptions-response-class.d.ts} +8 -8
- package/dist/models/list-user-subscriptions-response-class.js +15 -0
- package/dist/models/{batch-delete-response-class.d.ts → manage-subscription-request-dto.d.ts} +5 -5
- package/dist/models/manage-subscription-request-dto.js +15 -0
- package/dist/models/manage-subscription-response-class.d.ts +25 -0
- package/dist/models/manage-subscription-response-class.js +15 -0
- package/dist/models/report-class.d.ts +66 -0
- package/dist/models/report-class.js +15 -0
- package/dist/models/report-history-class.d.ts +48 -0
- package/dist/models/report-history-class.js +15 -0
- package/dist/models/scenario-analysis-class.d.ts +108 -0
- package/dist/models/scenario-analysis-class.js +15 -0
- package/dist/models/scenario-analysis-date-response-class.d.ts +36 -0
- package/dist/models/scenario-analysis-date-response-class.js +15 -0
- package/dist/models/set-setting-request-dto.d.ts +4 -10
- package/dist/models/set-tenant-setting-response-class.d.ts +36 -0
- package/dist/models/set-tenant-setting-response-class.js +15 -0
- package/dist/models/subscription-class.d.ts +2 -9
- package/dist/models/update-alert-request-dto.d.ts +72 -0
- package/dist/models/update-alert-request-dto.js +21 -0
- package/dist/models/update-alert-response-class.d.ts +25 -0
- package/dist/models/update-alert-response-class.js +15 -0
- package/dist/models/update-custom-schema-request-dto.d.ts +0 -1
- package/dist/models/update-custom-schema-request-dto.js +1 -2
- package/dist/models/update-dashboard-request-dto.d.ts +76 -0
- package/dist/models/update-dashboard-request-dto.js +29 -0
- package/dist/models/update-dashboard-response-class.d.ts +25 -0
- package/dist/models/update-dashboard-response-class.js +15 -0
- package/dist/models/update-report-request-dto.d.ts +55 -0
- package/dist/models/update-report-request-dto.js +22 -0
- package/dist/models/update-report-response-class.d.ts +25 -0
- package/dist/models/update-report-response-class.js +15 -0
- package/dist/models/update-scenario-analysis-request-dto.d.ts +74 -0
- package/dist/models/update-scenario-analysis-request-dto.js +22 -0
- package/dist/models/update-scenario-analysis-response-class.d.ts +25 -0
- package/dist/models/update-scenario-analysis-response-class.js +15 -0
- package/dist/models/user-class.d.ts +5 -13
- package/models/alert-class.ts +96 -0
- package/models/alert-history-class.ts +114 -0
- package/models/assign-user-roles-request-dto.ts +2 -2
- package/models/channel-response-class.ts +36 -0
- package/models/compare-tariffs-request-dto.ts +46 -0
- package/models/compare-tariffs-response-class.ts +37 -0
- package/models/condition-dto.ts +52 -0
- package/models/create-alert-request-dto.ts +89 -0
- package/models/create-alert-response-class.ts +31 -0
- package/models/create-custom-schema-request-dto.ts +1 -2
- package/models/create-dashboard-request-dto.ts +81 -0
- package/models/create-dashboard-response-class.ts +31 -0
- package/models/create-report-request-dto.ts +58 -0
- package/models/create-report-response-class.ts +31 -0
- package/models/create-scenario-analysis-request-dto.ts +83 -0
- package/models/create-scenario-analysis-response-class.ts +31 -0
- package/models/dashboard-class.ts +84 -0
- package/models/get-alert-response-class.ts +31 -0
- package/models/get-dashboard-response-class.ts +31 -0
- package/models/{disable-users-response-class.ts → get-embedded-url-response-class.ts} +6 -6
- package/models/get-report-response-class.ts +31 -0
- package/models/get-scenario-analysis-response-class.ts +31 -0
- package/models/grouped-tariff-class.ts +36 -0
- package/models/index.ts +50 -12
- package/models/{enable-users-response-class.ts → insurance-company-response-class.ts} +6 -6
- package/models/{delete-response-class.ts → insurance-response-class.ts} +6 -6
- package/models/invite-user-request-dto.ts +2 -8
- package/models/invite-users-request-dto.ts +2 -2
- package/models/{list-organizations-response-class.ts → list-alert-history-response-class.ts} +9 -9
- package/models/list-alerts-response-class.ts +37 -0
- package/models/list-channels-response-class.ts +31 -0
- package/models/list-dashboards-response-class.ts +37 -0
- package/models/list-insurance-companies-response-class.ts +31 -0
- package/models/list-report-history-response-class.ts +37 -0
- package/models/list-reports-response-class.ts +37 -0
- package/models/list-scenario-analyses-response-class.ts +37 -0
- package/models/list-scenario-analysis-dates-response-class.ts +31 -0
- package/models/list-tariff-insurance-companies-response-class.ts +31 -0
- package/models/list-tariffs-response-class.ts +31 -0
- package/models/{list-org-invitations-response-class.ts → list-user-subscriptions-response-class.ts} +8 -8
- package/models/{batch-delete-response-class.ts → manage-subscription-request-dto.ts} +5 -5
- package/models/manage-subscription-response-class.ts +31 -0
- package/models/report-class.ts +72 -0
- package/models/report-history-class.ts +54 -0
- package/models/scenario-analysis-class.ts +114 -0
- package/models/scenario-analysis-date-response-class.ts +42 -0
- package/models/set-setting-request-dto.ts +4 -10
- package/models/set-tenant-setting-response-class.ts +42 -0
- package/models/subscription-class.ts +2 -9
- package/models/update-alert-request-dto.ts +81 -0
- package/models/update-alert-response-class.ts +31 -0
- package/models/update-custom-schema-request-dto.ts +1 -2
- package/models/update-dashboard-request-dto.ts +87 -0
- package/models/update-dashboard-response-class.ts +31 -0
- package/models/update-report-request-dto.ts +64 -0
- package/models/update-report-response-class.ts +31 -0
- package/models/update-scenario-analysis-request-dto.ts +83 -0
- package/models/update-scenario-analysis-response-class.ts +31 -0
- package/models/user-class.ts +5 -13
- package/package.json +1 -1
- package/api/organizations-api.ts +0 -339
- package/dist/api/invite-organizations-api.d.ts +0 -198
- package/dist/models/get-organization-response-class.d.ts +0 -25
- package/dist/models/invite-org-request-dto.d.ts +0 -78
- package/dist/models/invite-users-response-class.d.ts +0 -24
- package/dist/models/org-invitation-class.d.ts +0 -103
- package/dist/models/org-invitation-response-class.d.ts +0 -25
- package/dist/models/organization-class.d.ts +0 -84
- package/models/get-organization-response-class.ts +0 -31
- package/models/invite-org-request-dto.ts +0 -84
- package/models/invite-users-response-class.ts +0 -30
- package/models/org-invitation-class.ts +0 -109
- package/models/org-invitation-response-class.ts +0 -31
- package/models/organization-class.ts +0 -90
- /package/dist/models/{batch-delete-response-class.js → alert-class.js} +0 -0
- /package/dist/models/{delete-response-class.js → alert-history-class.js} +0 -0
- /package/dist/models/{disable-users-response-class.js → channel-response-class.js} +0 -0
- /package/dist/models/{enable-users-response-class.js → compare-tariffs-response-class.js} +0 -0
- /package/dist/models/{get-organization-response-class.js → create-alert-response-class.js} +0 -0
- /package/dist/models/{invite-org-request-dto.js → create-dashboard-response-class.js} +0 -0
- /package/dist/models/{invite-users-response-class.js → create-report-response-class.js} +0 -0
- /package/dist/models/{list-org-invitations-response-class.js → create-scenario-analysis-response-class.js} +0 -0
- /package/dist/models/{list-organizations-response-class.js → dashboard-class.js} +0 -0
- /package/dist/models/{org-invitation-class.js → get-alert-response-class.js} +0 -0
- /package/dist/models/{org-invitation-response-class.js → get-dashboard-response-class.js} +0 -0
- /package/dist/models/{organization-class.js → get-embedded-url-response-class.js} +0 -0
|
@@ -21,33 +21,36 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
-
import {
|
|
24
|
+
import { ListUserSubscriptionsResponseClass } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
-
import {
|
|
26
|
+
import { ManageSubscriptionRequestDto } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
|
-
import {
|
|
28
|
+
import { ManageSubscriptionResponseClass } from '../models';
|
|
29
29
|
// URLSearchParams not necessarily used
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
import { URL, URLSearchParams } from 'url';
|
|
32
32
|
const FormData = require('form-data');
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* UserSubscriptionApi - axios parameter creator
|
|
35
35
|
* @export
|
|
36
36
|
*/
|
|
37
|
-
export const
|
|
37
|
+
export const UserSubscriptionApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
38
38
|
return {
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
41
|
-
* @summary
|
|
42
|
-
* @param {
|
|
43
|
-
* @param {
|
|
40
|
+
* Returns a list of user subscriptions you have previously created. The user subscriptions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
41
|
+
* @summary List user subscriptions
|
|
42
|
+
* @param {string} [authorization] Bearer Token
|
|
43
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
44
|
+
* @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.
|
|
45
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
46
|
+
* @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.
|
|
47
|
+
* @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.
|
|
48
|
+
* @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.
|
|
44
49
|
* @param {*} [options] Override http request option.
|
|
45
50
|
* @throws {RequiredError}
|
|
46
51
|
*/
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
assertParamExists('inviteOrg', 'inviteOrgRequestDto', inviteOrgRequestDto)
|
|
50
|
-
const localVarPath = `/tenantservice/v1/invitations/organizations`;
|
|
52
|
+
listInvites: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
53
|
+
const localVarPath = `/tenantservice/v1/subscriptions`;
|
|
51
54
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
52
55
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
53
56
|
let baseOptions;
|
|
@@ -57,7 +60,7 @@ export const InviteOrganizationsApiAxiosParamCreator = function (configuration?:
|
|
|
57
60
|
baseAccessToken = configuration.accessToken;
|
|
58
61
|
}
|
|
59
62
|
|
|
60
|
-
const localVarRequestOptions = { method: '
|
|
63
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
61
64
|
const localVarHeaderParameter = {} as any;
|
|
62
65
|
const localVarQueryParameter = {} as any;
|
|
63
66
|
|
|
@@ -65,18 +68,39 @@ export const InviteOrganizationsApiAxiosParamCreator = function (configuration?:
|
|
|
65
68
|
// http bearer authentication required
|
|
66
69
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
67
70
|
|
|
71
|
+
if (pageSize !== undefined) {
|
|
72
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if (pageToken !== undefined) {
|
|
76
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if (filter !== undefined) {
|
|
80
|
+
localVarQueryParameter['filter'] = filter;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
if (search !== undefined) {
|
|
84
|
+
localVarQueryParameter['search'] = search;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if (order !== undefined) {
|
|
88
|
+
localVarQueryParameter['order'] = order;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if (expand !== undefined) {
|
|
92
|
+
localVarQueryParameter['expand'] = expand;
|
|
93
|
+
}
|
|
94
|
+
|
|
68
95
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
69
96
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
70
97
|
}
|
|
71
98
|
|
|
72
99
|
|
|
73
100
|
|
|
74
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
75
|
-
|
|
76
101
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
77
102
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
78
103
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
79
|
-
localVarRequestOptions.data = serializeDataIfNeeded(inviteOrgRequestDto, localVarRequestOptions, configuration)
|
|
80
104
|
|
|
81
105
|
return {
|
|
82
106
|
url: toPathString(localVarUrlObj),
|
|
@@ -84,20 +108,24 @@ export const InviteOrganizationsApiAxiosParamCreator = function (configuration?:
|
|
|
84
108
|
};
|
|
85
109
|
},
|
|
86
110
|
/**
|
|
87
|
-
*
|
|
88
|
-
* @
|
|
89
|
-
* @param {
|
|
90
|
-
* @param {
|
|
91
|
-
* @param {
|
|
92
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
93
|
-
* @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.
|
|
94
|
-
* @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.
|
|
95
|
-
* @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.
|
|
111
|
+
*
|
|
112
|
+
* @param {string} entity
|
|
113
|
+
* @param {number} entityId
|
|
114
|
+
* @param {ManageSubscriptionRequestDto} manageSubscriptionRequestDto
|
|
115
|
+
* @param {string} [authorization] Bearer Token
|
|
96
116
|
* @param {*} [options] Override http request option.
|
|
97
117
|
* @throws {RequiredError}
|
|
98
118
|
*/
|
|
99
|
-
|
|
100
|
-
|
|
119
|
+
manageSubscription: async (entity: string, entityId: number, manageSubscriptionRequestDto: ManageSubscriptionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
120
|
+
// verify required parameter 'entity' is not null or undefined
|
|
121
|
+
assertParamExists('manageSubscription', 'entity', entity)
|
|
122
|
+
// verify required parameter 'entityId' is not null or undefined
|
|
123
|
+
assertParamExists('manageSubscription', 'entityId', entityId)
|
|
124
|
+
// verify required parameter 'manageSubscriptionRequestDto' is not null or undefined
|
|
125
|
+
assertParamExists('manageSubscription', 'manageSubscriptionRequestDto', manageSubscriptionRequestDto)
|
|
126
|
+
const localVarPath = `/tenantservice/v1/subscriptions/{entity}/{entityId}`
|
|
127
|
+
.replace(`{${"entity"}}`, encodeURIComponent(String(entity)))
|
|
128
|
+
.replace(`{${"entityId"}}`, encodeURIComponent(String(entityId)));
|
|
101
129
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
102
130
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
103
131
|
let baseOptions;
|
|
@@ -107,7 +135,7 @@ export const InviteOrganizationsApiAxiosParamCreator = function (configuration?:
|
|
|
107
135
|
baseAccessToken = configuration.accessToken;
|
|
108
136
|
}
|
|
109
137
|
|
|
110
|
-
const localVarRequestOptions = { method: '
|
|
138
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
111
139
|
const localVarHeaderParameter = {} as any;
|
|
112
140
|
const localVarQueryParameter = {} as any;
|
|
113
141
|
|
|
@@ -115,39 +143,18 @@ export const InviteOrganizationsApiAxiosParamCreator = function (configuration?:
|
|
|
115
143
|
// http bearer authentication required
|
|
116
144
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
117
145
|
|
|
118
|
-
if (pageSize !== undefined) {
|
|
119
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
if (pageToken !== undefined) {
|
|
123
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
if (filter !== undefined) {
|
|
127
|
-
localVarQueryParameter['filter'] = filter;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
if (search !== undefined) {
|
|
131
|
-
localVarQueryParameter['search'] = search;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
if (order !== undefined) {
|
|
135
|
-
localVarQueryParameter['order'] = order;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
if (expand !== undefined) {
|
|
139
|
-
localVarQueryParameter['expand'] = expand;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
146
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
143
147
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
144
148
|
}
|
|
145
149
|
|
|
146
150
|
|
|
147
151
|
|
|
152
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
153
|
+
|
|
148
154
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
149
155
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
150
156
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
157
|
+
localVarRequestOptions.data = serializeDataIfNeeded(manageSubscriptionRequestDto, localVarRequestOptions, configuration)
|
|
151
158
|
|
|
152
159
|
return {
|
|
153
160
|
url: toPathString(localVarUrlObj),
|
|
@@ -158,28 +165,16 @@ export const InviteOrganizationsApiAxiosParamCreator = function (configuration?:
|
|
|
158
165
|
};
|
|
159
166
|
|
|
160
167
|
/**
|
|
161
|
-
*
|
|
168
|
+
* UserSubscriptionApi - functional programming interface
|
|
162
169
|
* @export
|
|
163
170
|
*/
|
|
164
|
-
export const
|
|
165
|
-
const localVarAxiosParamCreator =
|
|
171
|
+
export const UserSubscriptionApiFp = function(configuration?: Configuration) {
|
|
172
|
+
const localVarAxiosParamCreator = UserSubscriptionApiAxiosParamCreator(configuration)
|
|
166
173
|
return {
|
|
167
174
|
/**
|
|
168
|
-
*
|
|
169
|
-
* @summary
|
|
170
|
-
* @param {
|
|
171
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
172
|
-
* @param {*} [options] Override http request option.
|
|
173
|
-
* @throws {RequiredError}
|
|
174
|
-
*/
|
|
175
|
-
async inviteOrg(inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgInvitationResponseClass>> {
|
|
176
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteOrg(inviteOrgRequestDto, authorization, options);
|
|
177
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
178
|
-
},
|
|
179
|
-
/**
|
|
180
|
-
* Returns a list of org invitations you have previously created. The org invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
181
|
-
* @summary List org invitations
|
|
182
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
175
|
+
* Returns a list of user subscriptions you have previously created. The user subscriptions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
176
|
+
* @summary List user subscriptions
|
|
177
|
+
* @param {string} [authorization] Bearer Token
|
|
183
178
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
184
179
|
* @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.
|
|
185
180
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -189,35 +184,37 @@ export const InviteOrganizationsApiFp = function(configuration?: Configuration)
|
|
|
189
184
|
* @param {*} [options] Override http request option.
|
|
190
185
|
* @throws {RequiredError}
|
|
191
186
|
*/
|
|
192
|
-
async
|
|
193
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
187
|
+
async listInvites(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListUserSubscriptionsResponseClass>> {
|
|
188
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listInvites(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
189
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
190
|
+
},
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @param {string} entity
|
|
194
|
+
* @param {number} entityId
|
|
195
|
+
* @param {ManageSubscriptionRequestDto} manageSubscriptionRequestDto
|
|
196
|
+
* @param {string} [authorization] Bearer Token
|
|
197
|
+
* @param {*} [options] Override http request option.
|
|
198
|
+
* @throws {RequiredError}
|
|
199
|
+
*/
|
|
200
|
+
async manageSubscription(entity: string, entityId: number, manageSubscriptionRequestDto: ManageSubscriptionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManageSubscriptionResponseClass>> {
|
|
201
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.manageSubscription(entity, entityId, manageSubscriptionRequestDto, authorization, options);
|
|
194
202
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
195
203
|
},
|
|
196
204
|
}
|
|
197
205
|
};
|
|
198
206
|
|
|
199
207
|
/**
|
|
200
|
-
*
|
|
208
|
+
* UserSubscriptionApi - factory interface
|
|
201
209
|
* @export
|
|
202
210
|
*/
|
|
203
|
-
export const
|
|
204
|
-
const localVarFp =
|
|
211
|
+
export const UserSubscriptionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
212
|
+
const localVarFp = UserSubscriptionApiFp(configuration)
|
|
205
213
|
return {
|
|
206
214
|
/**
|
|
207
|
-
*
|
|
208
|
-
* @summary
|
|
209
|
-
* @param {
|
|
210
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
211
|
-
* @param {*} [options] Override http request option.
|
|
212
|
-
* @throws {RequiredError}
|
|
213
|
-
*/
|
|
214
|
-
inviteOrg(inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options?: any): AxiosPromise<OrgInvitationResponseClass> {
|
|
215
|
-
return localVarFp.inviteOrg(inviteOrgRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
216
|
-
},
|
|
217
|
-
/**
|
|
218
|
-
* Returns a list of org invitations you have previously created. The org invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
219
|
-
* @summary List org invitations
|
|
220
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
215
|
+
* Returns a list of user subscriptions you have previously created. The user subscriptions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
216
|
+
* @summary List user subscriptions
|
|
217
|
+
* @param {string} [authorization] Bearer Token
|
|
221
218
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
222
219
|
* @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.
|
|
223
220
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -227,117 +224,142 @@ export const InviteOrganizationsApiFactory = function (configuration?: Configura
|
|
|
227
224
|
* @param {*} [options] Override http request option.
|
|
228
225
|
* @throws {RequiredError}
|
|
229
226
|
*/
|
|
230
|
-
|
|
231
|
-
return localVarFp.
|
|
227
|
+
listInvites(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListUserSubscriptionsResponseClass> {
|
|
228
|
+
return localVarFp.listInvites(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
229
|
+
},
|
|
230
|
+
/**
|
|
231
|
+
*
|
|
232
|
+
* @param {string} entity
|
|
233
|
+
* @param {number} entityId
|
|
234
|
+
* @param {ManageSubscriptionRequestDto} manageSubscriptionRequestDto
|
|
235
|
+
* @param {string} [authorization] Bearer Token
|
|
236
|
+
* @param {*} [options] Override http request option.
|
|
237
|
+
* @throws {RequiredError}
|
|
238
|
+
*/
|
|
239
|
+
manageSubscription(entity: string, entityId: number, manageSubscriptionRequestDto: ManageSubscriptionRequestDto, authorization?: string, options?: any): AxiosPromise<ManageSubscriptionResponseClass> {
|
|
240
|
+
return localVarFp.manageSubscription(entity, entityId, manageSubscriptionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
232
241
|
},
|
|
233
242
|
};
|
|
234
243
|
};
|
|
235
244
|
|
|
236
245
|
/**
|
|
237
|
-
* Request parameters for
|
|
246
|
+
* Request parameters for listInvites operation in UserSubscriptionApi.
|
|
238
247
|
* @export
|
|
239
|
-
* @interface
|
|
248
|
+
* @interface UserSubscriptionApiListInvitesRequest
|
|
240
249
|
*/
|
|
241
|
-
export interface
|
|
242
|
-
/**
|
|
243
|
-
*
|
|
244
|
-
* @type {InviteOrgRequestDto}
|
|
245
|
-
* @memberof InviteOrganizationsApiInviteOrg
|
|
246
|
-
*/
|
|
247
|
-
readonly inviteOrgRequestDto: InviteOrgRequestDto
|
|
248
|
-
|
|
250
|
+
export interface UserSubscriptionApiListInvitesRequest {
|
|
249
251
|
/**
|
|
250
|
-
* Bearer Token
|
|
252
|
+
* Bearer Token
|
|
251
253
|
* @type {string}
|
|
252
|
-
* @memberof
|
|
253
|
-
*/
|
|
254
|
-
readonly authorization?: string
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* Request parameters for listOrgInvitations operation in InviteOrganizationsApi.
|
|
259
|
-
* @export
|
|
260
|
-
* @interface InviteOrganizationsApiListOrgInvitationsRequest
|
|
261
|
-
*/
|
|
262
|
-
export interface InviteOrganizationsApiListOrgInvitationsRequest {
|
|
263
|
-
/**
|
|
264
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
265
|
-
* @type {string}
|
|
266
|
-
* @memberof InviteOrganizationsApiListOrgInvitations
|
|
254
|
+
* @memberof UserSubscriptionApiListInvites
|
|
267
255
|
*/
|
|
268
256
|
readonly authorization?: string
|
|
269
257
|
|
|
270
258
|
/**
|
|
271
259
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
272
260
|
* @type {any}
|
|
273
|
-
* @memberof
|
|
261
|
+
* @memberof UserSubscriptionApiListInvites
|
|
274
262
|
*/
|
|
275
263
|
readonly pageSize?: any
|
|
276
264
|
|
|
277
265
|
/**
|
|
278
266
|
* 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.
|
|
279
267
|
* @type {any}
|
|
280
|
-
* @memberof
|
|
268
|
+
* @memberof UserSubscriptionApiListInvites
|
|
281
269
|
*/
|
|
282
270
|
readonly pageToken?: any
|
|
283
271
|
|
|
284
272
|
/**
|
|
285
273
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
286
274
|
* @type {any}
|
|
287
|
-
* @memberof
|
|
275
|
+
* @memberof UserSubscriptionApiListInvites
|
|
288
276
|
*/
|
|
289
277
|
readonly filter?: any
|
|
290
278
|
|
|
291
279
|
/**
|
|
292
280
|
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
293
281
|
* @type {any}
|
|
294
|
-
* @memberof
|
|
282
|
+
* @memberof UserSubscriptionApiListInvites
|
|
295
283
|
*/
|
|
296
284
|
readonly search?: any
|
|
297
285
|
|
|
298
286
|
/**
|
|
299
287
|
* 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.
|
|
300
288
|
* @type {any}
|
|
301
|
-
* @memberof
|
|
289
|
+
* @memberof UserSubscriptionApiListInvites
|
|
302
290
|
*/
|
|
303
291
|
readonly order?: any
|
|
304
292
|
|
|
305
293
|
/**
|
|
306
294
|
* 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.
|
|
307
295
|
* @type {any}
|
|
308
|
-
* @memberof
|
|
296
|
+
* @memberof UserSubscriptionApiListInvites
|
|
309
297
|
*/
|
|
310
298
|
readonly expand?: any
|
|
311
299
|
}
|
|
312
300
|
|
|
313
301
|
/**
|
|
314
|
-
*
|
|
302
|
+
* Request parameters for manageSubscription operation in UserSubscriptionApi.
|
|
315
303
|
* @export
|
|
316
|
-
* @
|
|
304
|
+
* @interface UserSubscriptionApiManageSubscriptionRequest
|
|
305
|
+
*/
|
|
306
|
+
export interface UserSubscriptionApiManageSubscriptionRequest {
|
|
307
|
+
/**
|
|
308
|
+
*
|
|
309
|
+
* @type {string}
|
|
310
|
+
* @memberof UserSubscriptionApiManageSubscription
|
|
311
|
+
*/
|
|
312
|
+
readonly entity: string
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
*
|
|
316
|
+
* @type {number}
|
|
317
|
+
* @memberof UserSubscriptionApiManageSubscription
|
|
318
|
+
*/
|
|
319
|
+
readonly entityId: number
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
*
|
|
323
|
+
* @type {ManageSubscriptionRequestDto}
|
|
324
|
+
* @memberof UserSubscriptionApiManageSubscription
|
|
325
|
+
*/
|
|
326
|
+
readonly manageSubscriptionRequestDto: ManageSubscriptionRequestDto
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Bearer Token
|
|
330
|
+
* @type {string}
|
|
331
|
+
* @memberof UserSubscriptionApiManageSubscription
|
|
332
|
+
*/
|
|
333
|
+
readonly authorization?: string
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* UserSubscriptionApi - object-oriented interface
|
|
338
|
+
* @export
|
|
339
|
+
* @class UserSubscriptionApi
|
|
317
340
|
* @extends {BaseAPI}
|
|
318
341
|
*/
|
|
319
|
-
export class
|
|
342
|
+
export class UserSubscriptionApi extends BaseAPI {
|
|
320
343
|
/**
|
|
321
|
-
*
|
|
322
|
-
* @summary
|
|
323
|
-
* @param {
|
|
344
|
+
* Returns a list of user subscriptions you have previously created. The user subscriptions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
345
|
+
* @summary List user subscriptions
|
|
346
|
+
* @param {UserSubscriptionApiListInvitesRequest} requestParameters Request parameters.
|
|
324
347
|
* @param {*} [options] Override http request option.
|
|
325
348
|
* @throws {RequiredError}
|
|
326
|
-
* @memberof
|
|
349
|
+
* @memberof UserSubscriptionApi
|
|
327
350
|
*/
|
|
328
|
-
public
|
|
329
|
-
return
|
|
351
|
+
public listInvites(requestParameters: UserSubscriptionApiListInvitesRequest = {}, options?: AxiosRequestConfig) {
|
|
352
|
+
return UserSubscriptionApiFp(this.configuration).listInvites(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
330
353
|
}
|
|
331
354
|
|
|
332
355
|
/**
|
|
333
|
-
*
|
|
334
|
-
* @
|
|
335
|
-
* @param {InviteOrganizationsApiListOrgInvitationsRequest} requestParameters Request parameters.
|
|
356
|
+
*
|
|
357
|
+
* @param {UserSubscriptionApiManageSubscriptionRequest} requestParameters Request parameters.
|
|
336
358
|
* @param {*} [options] Override http request option.
|
|
337
359
|
* @throws {RequiredError}
|
|
338
|
-
* @memberof
|
|
360
|
+
* @memberof UserSubscriptionApi
|
|
339
361
|
*/
|
|
340
|
-
public
|
|
341
|
-
return
|
|
362
|
+
public manageSubscription(requestParameters: UserSubscriptionApiManageSubscriptionRequest, options?: AxiosRequestConfig) {
|
|
363
|
+
return UserSubscriptionApiFp(this.configuration).manageSubscription(requestParameters.entity, requestParameters.entityId, requestParameters.manageSubscriptionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
342
364
|
}
|
|
343
365
|
}
|