@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
|
@@ -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.UserSubscriptionApi = exports.UserSubscriptionApiFactory = exports.UserSubscriptionApiFp = exports.UserSubscriptionApiAxiosParamCreator = 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,36 +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
|
+
* UserSubscriptionApi - axios parameter creator
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
var
|
|
96
|
+
var UserSubscriptionApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
101
|
-
* @summary
|
|
102
|
-
* @param {
|
|
103
|
-
* @param {
|
|
100
|
+
* 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.
|
|
101
|
+
* @summary List user subscriptions
|
|
102
|
+
* @param {string} [authorization] Bearer Token
|
|
103
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
104
|
+
* @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.
|
|
105
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
106
|
+
* @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.
|
|
107
|
+
* @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.
|
|
108
|
+
* @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.
|
|
104
109
|
* @param {*} [options] Override http request option.
|
|
105
110
|
* @throws {RequiredError}
|
|
106
111
|
*/
|
|
107
|
-
|
|
112
|
+
listInvites: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
108
113
|
if (options === void 0) { options = {}; }
|
|
109
114
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
115
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
116
|
return __generator(this, function (_a) {
|
|
112
117
|
switch (_a.label) {
|
|
113
118
|
case 0:
|
|
114
|
-
|
|
115
|
-
(0, common_1.assertParamExists)('inviteOrg', 'inviteOrgRequestDto', inviteOrgRequestDto);
|
|
116
|
-
localVarPath = "/tenantservice/v1/invitations/organizations";
|
|
119
|
+
localVarPath = "/tenantservice/v1/subscriptions";
|
|
117
120
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
118
121
|
if (configuration) {
|
|
119
122
|
baseOptions = configuration.baseOptions;
|
|
120
123
|
baseAccessToken = configuration.accessToken;
|
|
121
124
|
}
|
|
122
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
125
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
123
126
|
localVarHeaderParameter = {};
|
|
124
127
|
localVarQueryParameter = {};
|
|
125
128
|
// authentication bearer required
|
|
@@ -129,14 +132,30 @@ var InviteOrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
129
132
|
// authentication bearer required
|
|
130
133
|
// http bearer authentication required
|
|
131
134
|
_a.sent();
|
|
135
|
+
if (pageSize !== undefined) {
|
|
136
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
137
|
+
}
|
|
138
|
+
if (pageToken !== undefined) {
|
|
139
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
140
|
+
}
|
|
141
|
+
if (filter !== undefined) {
|
|
142
|
+
localVarQueryParameter['filter'] = filter;
|
|
143
|
+
}
|
|
144
|
+
if (search !== undefined) {
|
|
145
|
+
localVarQueryParameter['search'] = search;
|
|
146
|
+
}
|
|
147
|
+
if (order !== undefined) {
|
|
148
|
+
localVarQueryParameter['order'] = order;
|
|
149
|
+
}
|
|
150
|
+
if (expand !== undefined) {
|
|
151
|
+
localVarQueryParameter['expand'] = expand;
|
|
152
|
+
}
|
|
132
153
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
154
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
134
155
|
}
|
|
135
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
156
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
157
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
158
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
139
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(inviteOrgRequestDto, localVarRequestOptions, configuration);
|
|
140
159
|
return [2 /*return*/, {
|
|
141
160
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
142
161
|
options: localVarRequestOptions,
|
|
@@ -146,32 +165,36 @@ var InviteOrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
146
165
|
});
|
|
147
166
|
},
|
|
148
167
|
/**
|
|
149
|
-
*
|
|
150
|
-
* @
|
|
151
|
-
* @param {
|
|
152
|
-
* @param {
|
|
153
|
-
* @param {
|
|
154
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
155
|
-
* @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.
|
|
156
|
-
* @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.
|
|
157
|
-
* @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.
|
|
168
|
+
*
|
|
169
|
+
* @param {string} entity
|
|
170
|
+
* @param {number} entityId
|
|
171
|
+
* @param {ManageSubscriptionRequestDto} manageSubscriptionRequestDto
|
|
172
|
+
* @param {string} [authorization] Bearer Token
|
|
158
173
|
* @param {*} [options] Override http request option.
|
|
159
174
|
* @throws {RequiredError}
|
|
160
175
|
*/
|
|
161
|
-
|
|
176
|
+
manageSubscription: function (entity, entityId, manageSubscriptionRequestDto, authorization, options) {
|
|
162
177
|
if (options === void 0) { options = {}; }
|
|
163
178
|
return __awaiter(_this, void 0, void 0, function () {
|
|
164
179
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
165
180
|
return __generator(this, function (_a) {
|
|
166
181
|
switch (_a.label) {
|
|
167
182
|
case 0:
|
|
168
|
-
|
|
183
|
+
// verify required parameter 'entity' is not null or undefined
|
|
184
|
+
(0, common_1.assertParamExists)('manageSubscription', 'entity', entity);
|
|
185
|
+
// verify required parameter 'entityId' is not null or undefined
|
|
186
|
+
(0, common_1.assertParamExists)('manageSubscription', 'entityId', entityId);
|
|
187
|
+
// verify required parameter 'manageSubscriptionRequestDto' is not null or undefined
|
|
188
|
+
(0, common_1.assertParamExists)('manageSubscription', 'manageSubscriptionRequestDto', manageSubscriptionRequestDto);
|
|
189
|
+
localVarPath = "/tenantservice/v1/subscriptions/{entity}/{entityId}"
|
|
190
|
+
.replace("{".concat("entity", "}"), encodeURIComponent(String(entity)))
|
|
191
|
+
.replace("{".concat("entityId", "}"), encodeURIComponent(String(entityId)));
|
|
169
192
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
170
193
|
if (configuration) {
|
|
171
194
|
baseOptions = configuration.baseOptions;
|
|
172
195
|
baseAccessToken = configuration.accessToken;
|
|
173
196
|
}
|
|
174
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
197
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
175
198
|
localVarHeaderParameter = {};
|
|
176
199
|
localVarQueryParameter = {};
|
|
177
200
|
// authentication bearer required
|
|
@@ -181,30 +204,14 @@ var InviteOrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
181
204
|
// authentication bearer required
|
|
182
205
|
// http bearer authentication required
|
|
183
206
|
_a.sent();
|
|
184
|
-
if (pageSize !== undefined) {
|
|
185
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
186
|
-
}
|
|
187
|
-
if (pageToken !== undefined) {
|
|
188
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
189
|
-
}
|
|
190
|
-
if (filter !== undefined) {
|
|
191
|
-
localVarQueryParameter['filter'] = filter;
|
|
192
|
-
}
|
|
193
|
-
if (search !== undefined) {
|
|
194
|
-
localVarQueryParameter['search'] = search;
|
|
195
|
-
}
|
|
196
|
-
if (order !== undefined) {
|
|
197
|
-
localVarQueryParameter['order'] = order;
|
|
198
|
-
}
|
|
199
|
-
if (expand !== undefined) {
|
|
200
|
-
localVarQueryParameter['expand'] = expand;
|
|
201
|
-
}
|
|
202
207
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
203
208
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
204
209
|
}
|
|
210
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
205
211
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
206
212
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
207
213
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
214
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(manageSubscriptionRequestDto, localVarRequestOptions, configuration);
|
|
208
215
|
return [2 /*return*/, {
|
|
209
216
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
210
217
|
options: localVarRequestOptions,
|
|
@@ -215,28 +222,33 @@ var InviteOrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
215
222
|
},
|
|
216
223
|
};
|
|
217
224
|
};
|
|
218
|
-
exports.
|
|
225
|
+
exports.UserSubscriptionApiAxiosParamCreator = UserSubscriptionApiAxiosParamCreator;
|
|
219
226
|
/**
|
|
220
|
-
*
|
|
227
|
+
* UserSubscriptionApi - functional programming interface
|
|
221
228
|
* @export
|
|
222
229
|
*/
|
|
223
|
-
var
|
|
224
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
230
|
+
var UserSubscriptionApiFp = function (configuration) {
|
|
231
|
+
var localVarAxiosParamCreator = (0, exports.UserSubscriptionApiAxiosParamCreator)(configuration);
|
|
225
232
|
return {
|
|
226
233
|
/**
|
|
227
|
-
*
|
|
228
|
-
* @summary
|
|
229
|
-
* @param {
|
|
230
|
-
* @param {
|
|
234
|
+
* 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.
|
|
235
|
+
* @summary List user subscriptions
|
|
236
|
+
* @param {string} [authorization] Bearer Token
|
|
237
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
238
|
+
* @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.
|
|
239
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
240
|
+
* @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.
|
|
241
|
+
* @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.
|
|
242
|
+
* @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.
|
|
231
243
|
* @param {*} [options] Override http request option.
|
|
232
244
|
* @throws {RequiredError}
|
|
233
245
|
*/
|
|
234
|
-
|
|
246
|
+
listInvites: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
235
247
|
return __awaiter(this, void 0, void 0, function () {
|
|
236
248
|
var localVarAxiosArgs;
|
|
237
249
|
return __generator(this, function (_a) {
|
|
238
250
|
switch (_a.label) {
|
|
239
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
251
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listInvites(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
240
252
|
case 1:
|
|
241
253
|
localVarAxiosArgs = _a.sent();
|
|
242
254
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -245,24 +257,20 @@ var InviteOrganizationsApiFp = function (configuration) {
|
|
|
245
257
|
});
|
|
246
258
|
},
|
|
247
259
|
/**
|
|
248
|
-
*
|
|
249
|
-
* @
|
|
250
|
-
* @param {
|
|
251
|
-
* @param {
|
|
252
|
-
* @param {
|
|
253
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
254
|
-
* @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.
|
|
255
|
-
* @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.
|
|
256
|
-
* @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.
|
|
260
|
+
*
|
|
261
|
+
* @param {string} entity
|
|
262
|
+
* @param {number} entityId
|
|
263
|
+
* @param {ManageSubscriptionRequestDto} manageSubscriptionRequestDto
|
|
264
|
+
* @param {string} [authorization] Bearer Token
|
|
257
265
|
* @param {*} [options] Override http request option.
|
|
258
266
|
* @throws {RequiredError}
|
|
259
267
|
*/
|
|
260
|
-
|
|
268
|
+
manageSubscription: function (entity, entityId, manageSubscriptionRequestDto, authorization, options) {
|
|
261
269
|
return __awaiter(this, void 0, void 0, function () {
|
|
262
270
|
var localVarAxiosArgs;
|
|
263
271
|
return __generator(this, function (_a) {
|
|
264
272
|
switch (_a.label) {
|
|
265
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
273
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.manageSubscription(entity, entityId, manageSubscriptionRequestDto, authorization, options)];
|
|
266
274
|
case 1:
|
|
267
275
|
localVarAxiosArgs = _a.sent();
|
|
268
276
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -272,29 +280,18 @@ var InviteOrganizationsApiFp = function (configuration) {
|
|
|
272
280
|
},
|
|
273
281
|
};
|
|
274
282
|
};
|
|
275
|
-
exports.
|
|
283
|
+
exports.UserSubscriptionApiFp = UserSubscriptionApiFp;
|
|
276
284
|
/**
|
|
277
|
-
*
|
|
285
|
+
* UserSubscriptionApi - factory interface
|
|
278
286
|
* @export
|
|
279
287
|
*/
|
|
280
|
-
var
|
|
281
|
-
var localVarFp = (0, exports.
|
|
288
|
+
var UserSubscriptionApiFactory = function (configuration, basePath, axios) {
|
|
289
|
+
var localVarFp = (0, exports.UserSubscriptionApiFp)(configuration);
|
|
282
290
|
return {
|
|
283
291
|
/**
|
|
284
|
-
*
|
|
285
|
-
* @summary
|
|
286
|
-
* @param {
|
|
287
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
288
|
-
* @param {*} [options] Override http request option.
|
|
289
|
-
* @throws {RequiredError}
|
|
290
|
-
*/
|
|
291
|
-
inviteOrg: function (inviteOrgRequestDto, authorization, options) {
|
|
292
|
-
return localVarFp.inviteOrg(inviteOrgRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
293
|
-
},
|
|
294
|
-
/**
|
|
295
|
-
* 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.
|
|
296
|
-
* @summary List org invitations
|
|
297
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
292
|
+
* 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.
|
|
293
|
+
* @summary List user subscriptions
|
|
294
|
+
* @param {string} [authorization] Bearer Token
|
|
298
295
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
299
296
|
* @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.
|
|
300
297
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -304,48 +301,59 @@ var InviteOrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
|
304
301
|
* @param {*} [options] Override http request option.
|
|
305
302
|
* @throws {RequiredError}
|
|
306
303
|
*/
|
|
307
|
-
|
|
308
|
-
return localVarFp.
|
|
304
|
+
listInvites: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
305
|
+
return localVarFp.listInvites(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
306
|
+
},
|
|
307
|
+
/**
|
|
308
|
+
*
|
|
309
|
+
* @param {string} entity
|
|
310
|
+
* @param {number} entityId
|
|
311
|
+
* @param {ManageSubscriptionRequestDto} manageSubscriptionRequestDto
|
|
312
|
+
* @param {string} [authorization] Bearer Token
|
|
313
|
+
* @param {*} [options] Override http request option.
|
|
314
|
+
* @throws {RequiredError}
|
|
315
|
+
*/
|
|
316
|
+
manageSubscription: function (entity, entityId, manageSubscriptionRequestDto, authorization, options) {
|
|
317
|
+
return localVarFp.manageSubscription(entity, entityId, manageSubscriptionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
309
318
|
},
|
|
310
319
|
};
|
|
311
320
|
};
|
|
312
|
-
exports.
|
|
321
|
+
exports.UserSubscriptionApiFactory = UserSubscriptionApiFactory;
|
|
313
322
|
/**
|
|
314
|
-
*
|
|
323
|
+
* UserSubscriptionApi - object-oriented interface
|
|
315
324
|
* @export
|
|
316
|
-
* @class
|
|
325
|
+
* @class UserSubscriptionApi
|
|
317
326
|
* @extends {BaseAPI}
|
|
318
327
|
*/
|
|
319
|
-
var
|
|
320
|
-
__extends(
|
|
321
|
-
function
|
|
328
|
+
var UserSubscriptionApi = /** @class */ (function (_super) {
|
|
329
|
+
__extends(UserSubscriptionApi, _super);
|
|
330
|
+
function UserSubscriptionApi() {
|
|
322
331
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
323
332
|
}
|
|
324
333
|
/**
|
|
325
|
-
*
|
|
326
|
-
* @summary
|
|
327
|
-
* @param {
|
|
334
|
+
* 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.
|
|
335
|
+
* @summary List user subscriptions
|
|
336
|
+
* @param {UserSubscriptionApiListInvitesRequest} requestParameters Request parameters.
|
|
328
337
|
* @param {*} [options] Override http request option.
|
|
329
338
|
* @throws {RequiredError}
|
|
330
|
-
* @memberof
|
|
339
|
+
* @memberof UserSubscriptionApi
|
|
331
340
|
*/
|
|
332
|
-
|
|
341
|
+
UserSubscriptionApi.prototype.listInvites = function (requestParameters, options) {
|
|
333
342
|
var _this = this;
|
|
334
|
-
|
|
343
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
344
|
+
return (0, exports.UserSubscriptionApiFp)(this.configuration).listInvites(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
335
345
|
};
|
|
336
346
|
/**
|
|
337
|
-
*
|
|
338
|
-
* @
|
|
339
|
-
* @param {InviteOrganizationsApiListOrgInvitationsRequest} requestParameters Request parameters.
|
|
347
|
+
*
|
|
348
|
+
* @param {UserSubscriptionApiManageSubscriptionRequest} requestParameters Request parameters.
|
|
340
349
|
* @param {*} [options] Override http request option.
|
|
341
350
|
* @throws {RequiredError}
|
|
342
|
-
* @memberof
|
|
351
|
+
* @memberof UserSubscriptionApi
|
|
343
352
|
*/
|
|
344
|
-
|
|
353
|
+
UserSubscriptionApi.prototype.manageSubscription = function (requestParameters, options) {
|
|
345
354
|
var _this = this;
|
|
346
|
-
|
|
347
|
-
return (0, exports.InviteOrganizationsApiFp)(this.configuration).listOrgInvitations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
355
|
+
return (0, exports.UserSubscriptionApiFp)(this.configuration).manageSubscription(requestParameters.entity, requestParameters.entityId, requestParameters.manageSubscriptionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
348
356
|
};
|
|
349
|
-
return
|
|
357
|
+
return UserSubscriptionApi;
|
|
350
358
|
}(base_1.BaseAPI));
|
|
351
|
-
exports.
|
|
359
|
+
exports.UserSubscriptionApi = UserSubscriptionApi;
|