@emilgroup/tenant-sdk 1.0.1 → 1.1.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 +14 -57
- package/README.md +2 -2
- package/api/custom-schema-api.ts +52 -60
- package/api/data-report-api.ts +65 -75
- package/api/data-report-executor-api.ts +10 -26
- package/api/{user-subscription-api.ts → invite-organizations-api.ts} +139 -161
- package/api/invite-users-api.ts +75 -79
- package/api/organizations-api.ts +455 -0
- package/api/users-api.ts +138 -148
- package/api.ts +4 -14
- package/dist/api/custom-schema-api.d.ts +42 -42
- package/dist/api/custom-schema-api.js +31 -38
- package/dist/api/data-report-api.d.ts +52 -52
- package/dist/api/data-report-api.js +40 -49
- package/dist/api/data-report-executor-api.d.ts +7 -16
- package/dist/api/data-report-executor-api.js +9 -17
- package/dist/api/{user-subscription-api.d.ts → invite-organizations-api.d.ts} +89 -103
- package/dist/api/{user-subscription-api.js → invite-organizations-api.js} +106 -114
- package/dist/api/invite-users-api.d.ts +63 -60
- package/dist/api/invite-users-api.js +40 -49
- package/dist/api/organizations-api.d.ts +261 -0
- package/dist/api/{settings-api.js → organizations-api.js} +135 -195
- package/dist/api/users-api.d.ts +113 -109
- package/dist/api/users-api.js +76 -93
- package/dist/api.d.ts +2 -7
- package/dist/api.js +2 -7
- package/dist/models/assign-user-roles-request-dto.d.ts +2 -2
- package/dist/models/{manage-subscription-request-dto.d.ts → batch-delete-response-class.d.ts} +5 -5
- package/dist/models/create-custom-schema-request-dto.d.ts +1 -0
- package/dist/models/create-custom-schema-request-dto.js +2 -1
- package/dist/models/{insurance-response-class.d.ts → delete-response-class.d.ts} +6 -6
- package/dist/models/{get-embedded-url-response-class.d.ts → disable-users-response-class.d.ts} +6 -6
- package/dist/models/{insurance-company-response-class.d.ts → enable-users-response-class.d.ts} +6 -6
- package/dist/models/{create-alert-response-class.d.ts → get-organization-response-class.d.ts} +7 -7
- package/dist/models/index.d.ts +12 -50
- package/dist/models/index.js +12 -50
- package/dist/models/invite-org-request-dto.d.ts +78 -0
- package/dist/models/invite-user-request-dto.d.ts +8 -2
- package/dist/models/invite-users-request-dto.d.ts +2 -2
- package/dist/models/invite-users-response-class.d.ts +24 -0
- package/dist/models/{list-user-subscriptions-response-class.d.ts → list-org-invitations-response-class.d.ts} +8 -8
- package/dist/models/{list-alert-history-response-class.d.ts → list-organizations-response-class.d.ts} +9 -9
- package/dist/models/org-invitation-class.d.ts +103 -0
- package/dist/models/{create-dashboard-response-class.d.ts → org-invitation-response-class.d.ts} +7 -7
- package/dist/models/organization-class.d.ts +84 -0
- package/dist/models/set-setting-request-dto.d.ts +10 -4
- package/dist/models/subscription-class.d.ts +9 -2
- package/dist/models/update-custom-schema-request-dto.d.ts +1 -0
- package/dist/models/update-custom-schema-request-dto.js +2 -1
- package/dist/models/user-class.d.ts +13 -5
- package/models/assign-user-roles-request-dto.ts +2 -2
- package/models/{manage-subscription-request-dto.ts → batch-delete-response-class.ts} +5 -5
- package/models/create-custom-schema-request-dto.ts +2 -1
- package/models/{insurance-response-class.ts → delete-response-class.ts} +6 -6
- package/models/{get-embedded-url-response-class.ts → disable-users-response-class.ts} +6 -6
- package/models/{insurance-company-response-class.ts → enable-users-response-class.ts} +6 -6
- package/models/{channel-response-class.ts → get-organization-response-class.ts} +7 -12
- package/models/index.ts +12 -50
- package/models/invite-org-request-dto.ts +84 -0
- package/models/invite-user-request-dto.ts +8 -2
- package/models/invite-users-request-dto.ts +2 -2
- package/models/invite-users-response-class.ts +30 -0
- package/models/{list-user-subscriptions-response-class.ts → list-org-invitations-response-class.ts} +8 -8
- package/models/{list-alert-history-response-class.ts → list-organizations-response-class.ts} +9 -9
- package/models/org-invitation-class.ts +109 -0
- package/models/{create-alert-response-class.ts → org-invitation-response-class.ts} +7 -7
- package/models/organization-class.ts +90 -0
- package/models/set-setting-request-dto.ts +10 -4
- package/models/subscription-class.ts +9 -2
- package/models/update-custom-schema-request-dto.ts +2 -1
- package/models/user-class.ts +13 -5
- package/package.json +1 -1
- 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 -484
- package/api/tariff-comparisons-api.ts +0 -381
- 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/dashboard-api.js +0 -724
- package/dist/api/reports-api.d.ts +0 -479
- package/dist/api/reports-api.js +0 -752
- 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 -264
- package/dist/api/tariff-comparisons-api.d.ts +0 -206
- package/dist/api/tariff-comparisons-api.js +0 -409
- package/dist/models/alert-class.d.ts +0 -90
- package/dist/models/alert-history-class.d.ts +0 -108
- package/dist/models/channel-response-class.d.ts +0 -30
- 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/condition-dto.js +0 -22
- 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-dashboard-request-dto.d.ts +0 -70
- package/dist/models/create-dashboard-request-dto.js +0 -29
- 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.d.ts +0 -25
- 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/dashboard-class.d.ts +0 -78
- package/dist/models/get-alert-response-class.d.ts +0 -25
- package/dist/models/get-dashboard-response-class.d.ts +0 -25
- 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.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/list-user-subscriptions-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-tenant-setting-response-class.d.ts +0 -36
- package/dist/models/set-tenant-setting-response-class.js +0 -15
- package/dist/models/update-alert-request-dto.d.ts +0 -72
- package/dist/models/update-alert-request-dto.js +0 -21
- 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-dashboard-response-class.ts +0 -31
- package/models/create-report-request-dto.ts +0 -58
- package/models/create-report-response-class.ts +0 -31
- 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-alert-response-class.ts +0 -31
- 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-alerts-response-class.ts +0 -37
- package/models/list-channels-response-class.ts +0 -31
- package/models/list-dashboards-response-class.ts +0 -37
- 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-class.ts +0 -72
- 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/set-tenant-setting-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
- /package/dist/models/{alert-class.js → batch-delete-response-class.js} +0 -0
- /package/dist/models/{alert-history-class.js → delete-response-class.js} +0 -0
- /package/dist/models/{channel-response-class.js → disable-users-response-class.js} +0 -0
- /package/dist/models/{compare-tariffs-response-class.js → enable-users-response-class.js} +0 -0
- /package/dist/models/{create-alert-response-class.js → get-organization-response-class.js} +0 -0
- /package/dist/models/{create-dashboard-response-class.js → invite-org-request-dto.js} +0 -0
- /package/dist/models/{create-report-response-class.js → invite-users-response-class.js} +0 -0
- /package/dist/models/{create-scenario-analysis-response-class.js → list-org-invitations-response-class.js} +0 -0
- /package/dist/models/{dashboard-class.js → list-organizations-response-class.js} +0 -0
- /package/dist/models/{get-alert-response-class.js → org-invitation-class.js} +0 -0
- /package/dist/models/{get-dashboard-response-class.js → org-invitation-response-class.js} +0 -0
- /package/dist/models/{get-embedded-url-response-class.js → organization-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.InviteOrganizationsApi = exports.InviteOrganizationsApiFactory = exports.InviteOrganizationsApiFp = exports.InviteOrganizationsApiAxiosParamCreator = 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,39 +90,36 @@ var base_1 = require("../base");
|
|
|
90
90
|
var url_1 = require("url");
|
|
91
91
|
var FormData = require('form-data');
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* InviteOrganizationsApi - axios parameter creator
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
var
|
|
96
|
+
var InviteOrganizationsApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
101
|
-
* @summary
|
|
102
|
-
* @param {
|
|
103
|
-
* @param {
|
|
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.
|
|
100
|
+
* This sends an email to invite an organization.
|
|
101
|
+
* @summary Invite an organization
|
|
102
|
+
* @param {InviteOrgRequestDto} inviteOrgRequestDto
|
|
103
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
109
104
|
* @param {*} [options] Override http request option.
|
|
110
105
|
* @throws {RequiredError}
|
|
111
106
|
*/
|
|
112
|
-
|
|
107
|
+
inviteOrg: function (inviteOrgRequestDto, authorization, options) {
|
|
113
108
|
if (options === void 0) { options = {}; }
|
|
114
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
115
110
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
116
111
|
return __generator(this, function (_a) {
|
|
117
112
|
switch (_a.label) {
|
|
118
113
|
case 0:
|
|
119
|
-
|
|
114
|
+
// verify required parameter 'inviteOrgRequestDto' is not null or undefined
|
|
115
|
+
(0, common_1.assertParamExists)('inviteOrg', 'inviteOrgRequestDto', inviteOrgRequestDto);
|
|
116
|
+
localVarPath = "/tenantservice/v1/invitations/organizations";
|
|
120
117
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
121
118
|
if (configuration) {
|
|
122
119
|
baseOptions = configuration.baseOptions;
|
|
123
120
|
baseAccessToken = configuration.accessToken;
|
|
124
121
|
}
|
|
125
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
122
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
126
123
|
localVarHeaderParameter = {};
|
|
127
124
|
localVarQueryParameter = {};
|
|
128
125
|
// authentication bearer required
|
|
@@ -132,30 +129,14 @@ var UserSubscriptionApiAxiosParamCreator = function (configuration) {
|
|
|
132
129
|
// authentication bearer required
|
|
133
130
|
// http bearer authentication required
|
|
134
131
|
_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
|
-
}
|
|
153
132
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
154
133
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
155
134
|
}
|
|
135
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
156
136
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
157
137
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
158
138
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
139
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(inviteOrgRequestDto, localVarRequestOptions, configuration);
|
|
159
140
|
return [2 /*return*/, {
|
|
160
141
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
161
142
|
options: localVarRequestOptions,
|
|
@@ -165,36 +146,32 @@ var UserSubscriptionApiAxiosParamCreator = function (configuration) {
|
|
|
165
146
|
});
|
|
166
147
|
},
|
|
167
148
|
/**
|
|
168
|
-
*
|
|
169
|
-
* @
|
|
170
|
-
* @param {
|
|
171
|
-
* @param {
|
|
172
|
-
* @param {
|
|
149
|
+
* 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.
|
|
150
|
+
* @summary List org invitations
|
|
151
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
152
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
153
|
+
* @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.
|
|
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.
|
|
173
158
|
* @param {*} [options] Override http request option.
|
|
174
159
|
* @throws {RequiredError}
|
|
175
160
|
*/
|
|
176
|
-
|
|
161
|
+
listOrgInvitations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
177
162
|
if (options === void 0) { options = {}; }
|
|
178
163
|
return __awaiter(_this, void 0, void 0, function () {
|
|
179
164
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
180
165
|
return __generator(this, function (_a) {
|
|
181
166
|
switch (_a.label) {
|
|
182
167
|
case 0:
|
|
183
|
-
|
|
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)));
|
|
168
|
+
localVarPath = "/tenantservice/v1/invitations/organizations";
|
|
192
169
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
193
170
|
if (configuration) {
|
|
194
171
|
baseOptions = configuration.baseOptions;
|
|
195
172
|
baseAccessToken = configuration.accessToken;
|
|
196
173
|
}
|
|
197
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
174
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
198
175
|
localVarHeaderParameter = {};
|
|
199
176
|
localVarQueryParameter = {};
|
|
200
177
|
// authentication bearer required
|
|
@@ -204,14 +181,30 @@ var UserSubscriptionApiAxiosParamCreator = function (configuration) {
|
|
|
204
181
|
// authentication bearer required
|
|
205
182
|
// http bearer authentication required
|
|
206
183
|
_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
|
+
}
|
|
207
202
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
208
203
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
209
204
|
}
|
|
210
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
211
205
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
212
206
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
213
207
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
214
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(manageSubscriptionRequestDto, localVarRequestOptions, configuration);
|
|
215
208
|
return [2 /*return*/, {
|
|
216
209
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
217
210
|
options: localVarRequestOptions,
|
|
@@ -222,33 +215,28 @@ var UserSubscriptionApiAxiosParamCreator = function (configuration) {
|
|
|
222
215
|
},
|
|
223
216
|
};
|
|
224
217
|
};
|
|
225
|
-
exports.
|
|
218
|
+
exports.InviteOrganizationsApiAxiosParamCreator = InviteOrganizationsApiAxiosParamCreator;
|
|
226
219
|
/**
|
|
227
|
-
*
|
|
220
|
+
* InviteOrganizationsApi - functional programming interface
|
|
228
221
|
* @export
|
|
229
222
|
*/
|
|
230
|
-
var
|
|
231
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
223
|
+
var InviteOrganizationsApiFp = function (configuration) {
|
|
224
|
+
var localVarAxiosParamCreator = (0, exports.InviteOrganizationsApiAxiosParamCreator)(configuration);
|
|
232
225
|
return {
|
|
233
226
|
/**
|
|
234
|
-
*
|
|
235
|
-
* @summary
|
|
236
|
-
* @param {
|
|
237
|
-
* @param {
|
|
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.
|
|
227
|
+
* This sends an email to invite an organization.
|
|
228
|
+
* @summary Invite an organization
|
|
229
|
+
* @param {InviteOrgRequestDto} inviteOrgRequestDto
|
|
230
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
243
231
|
* @param {*} [options] Override http request option.
|
|
244
232
|
* @throws {RequiredError}
|
|
245
233
|
*/
|
|
246
|
-
|
|
234
|
+
inviteOrg: function (inviteOrgRequestDto, authorization, options) {
|
|
247
235
|
return __awaiter(this, void 0, void 0, function () {
|
|
248
236
|
var localVarAxiosArgs;
|
|
249
237
|
return __generator(this, function (_a) {
|
|
250
238
|
switch (_a.label) {
|
|
251
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
239
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteOrg(inviteOrgRequestDto, authorization, options)];
|
|
252
240
|
case 1:
|
|
253
241
|
localVarAxiosArgs = _a.sent();
|
|
254
242
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -257,20 +245,24 @@ var UserSubscriptionApiFp = function (configuration) {
|
|
|
257
245
|
});
|
|
258
246
|
},
|
|
259
247
|
/**
|
|
260
|
-
*
|
|
261
|
-
* @
|
|
262
|
-
* @param {
|
|
263
|
-
* @param {
|
|
264
|
-
* @param {
|
|
248
|
+
* 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.
|
|
249
|
+
* @summary List org invitations
|
|
250
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
251
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
252
|
+
* @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.
|
|
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.
|
|
265
257
|
* @param {*} [options] Override http request option.
|
|
266
258
|
* @throws {RequiredError}
|
|
267
259
|
*/
|
|
268
|
-
|
|
260
|
+
listOrgInvitations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
269
261
|
return __awaiter(this, void 0, void 0, function () {
|
|
270
262
|
var localVarAxiosArgs;
|
|
271
263
|
return __generator(this, function (_a) {
|
|
272
264
|
switch (_a.label) {
|
|
273
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
265
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
274
266
|
case 1:
|
|
275
267
|
localVarAxiosArgs = _a.sent();
|
|
276
268
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -280,18 +272,29 @@ var UserSubscriptionApiFp = function (configuration) {
|
|
|
280
272
|
},
|
|
281
273
|
};
|
|
282
274
|
};
|
|
283
|
-
exports.
|
|
275
|
+
exports.InviteOrganizationsApiFp = InviteOrganizationsApiFp;
|
|
284
276
|
/**
|
|
285
|
-
*
|
|
277
|
+
* InviteOrganizationsApi - factory interface
|
|
286
278
|
* @export
|
|
287
279
|
*/
|
|
288
|
-
var
|
|
289
|
-
var localVarFp = (0, exports.
|
|
280
|
+
var InviteOrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
281
|
+
var localVarFp = (0, exports.InviteOrganizationsApiFp)(configuration);
|
|
290
282
|
return {
|
|
291
283
|
/**
|
|
292
|
-
*
|
|
293
|
-
* @summary
|
|
294
|
-
* @param {
|
|
284
|
+
* This sends an email to invite an organization.
|
|
285
|
+
* @summary Invite an organization
|
|
286
|
+
* @param {InviteOrgRequestDto} inviteOrgRequestDto
|
|
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.
|
|
295
298
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
296
299
|
* @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.
|
|
297
300
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -301,59 +304,48 @@ var UserSubscriptionApiFactory = function (configuration, basePath, axios) {
|
|
|
301
304
|
* @param {*} [options] Override http request option.
|
|
302
305
|
* @throws {RequiredError}
|
|
303
306
|
*/
|
|
304
|
-
|
|
305
|
-
return localVarFp.
|
|
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); });
|
|
307
|
+
listOrgInvitations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
308
|
+
return localVarFp.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
318
309
|
},
|
|
319
310
|
};
|
|
320
311
|
};
|
|
321
|
-
exports.
|
|
312
|
+
exports.InviteOrganizationsApiFactory = InviteOrganizationsApiFactory;
|
|
322
313
|
/**
|
|
323
|
-
*
|
|
314
|
+
* InviteOrganizationsApi - object-oriented interface
|
|
324
315
|
* @export
|
|
325
|
-
* @class
|
|
316
|
+
* @class InviteOrganizationsApi
|
|
326
317
|
* @extends {BaseAPI}
|
|
327
318
|
*/
|
|
328
|
-
var
|
|
329
|
-
__extends(
|
|
330
|
-
function
|
|
319
|
+
var InviteOrganizationsApi = /** @class */ (function (_super) {
|
|
320
|
+
__extends(InviteOrganizationsApi, _super);
|
|
321
|
+
function InviteOrganizationsApi() {
|
|
331
322
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
332
323
|
}
|
|
333
324
|
/**
|
|
334
|
-
*
|
|
335
|
-
* @summary
|
|
336
|
-
* @param {
|
|
325
|
+
* This sends an email to invite an organization.
|
|
326
|
+
* @summary Invite an organization
|
|
327
|
+
* @param {InviteOrganizationsApiInviteOrgRequest} requestParameters Request parameters.
|
|
337
328
|
* @param {*} [options] Override http request option.
|
|
338
329
|
* @throws {RequiredError}
|
|
339
|
-
* @memberof
|
|
330
|
+
* @memberof InviteOrganizationsApi
|
|
340
331
|
*/
|
|
341
|
-
|
|
332
|
+
InviteOrganizationsApi.prototype.inviteOrg = function (requestParameters, options) {
|
|
342
333
|
var _this = this;
|
|
343
|
-
|
|
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); });
|
|
334
|
+
return (0, exports.InviteOrganizationsApiFp)(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
345
335
|
};
|
|
346
336
|
/**
|
|
347
|
-
*
|
|
348
|
-
* @
|
|
337
|
+
* 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.
|
|
338
|
+
* @summary List org invitations
|
|
339
|
+
* @param {InviteOrganizationsApiListOrgInvitationsRequest} requestParameters Request parameters.
|
|
349
340
|
* @param {*} [options] Override http request option.
|
|
350
341
|
* @throws {RequiredError}
|
|
351
|
-
* @memberof
|
|
342
|
+
* @memberof InviteOrganizationsApi
|
|
352
343
|
*/
|
|
353
|
-
|
|
344
|
+
InviteOrganizationsApi.prototype.listOrgInvitations = function (requestParameters, options) {
|
|
354
345
|
var _this = this;
|
|
355
|
-
|
|
346
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
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); });
|
|
356
348
|
};
|
|
357
|
-
return
|
|
349
|
+
return InviteOrganizationsApi;
|
|
358
350
|
}(base_1.BaseAPI));
|
|
359
|
-
exports.
|
|
351
|
+
exports.InviteOrganizationsApi = InviteOrganizationsApi;
|