@emilgroup/tenant-sdk-node 1.0.0 → 1.0.2
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/README.md +2 -2
- package/api/custom-schema-api.ts +53 -61
- package/api/data-report-api.ts +66 -76
- package/api/data-report-executor-api.ts +6 -22
- package/api/invite-organizations-api.ts +24 -60
- package/api/invite-users-api.ts +68 -78
- package/api/organizations-api.ts +21 -25
- package/api/users-api.ts +129 -147
- package/dist/api/custom-schema-api.d.ts +43 -43
- package/dist/api/custom-schema-api.js +31 -38
- package/dist/api/data-report-api.d.ts +53 -53
- package/dist/api/data-report-api.js +40 -49
- package/dist/api/data-report-executor-api.d.ts +3 -12
- package/dist/api/data-report-executor-api.js +6 -14
- package/dist/api/invite-organizations-api.d.ts +18 -36
- package/dist/api/invite-organizations-api.js +19 -38
- package/dist/api/invite-users-api.d.ts +56 -56
- package/dist/api/invite-users-api.js +40 -49
- package/dist/api/organizations-api.d.ts +18 -18
- package/dist/api/organizations-api.js +13 -16
- package/dist/api/users-api.d.ts +104 -104
- package/dist/api/users-api.js +76 -93
- package/package.json +1 -1
|
@@ -21,13 +21,12 @@ import { RunDataReportResponseClass } from '../models';
|
|
|
21
21
|
export declare const DataReportExecutorApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
|
-
* @param {string} authorization2 Bearer Token: provided by the login endpoint under the name accessToken.
|
|
25
24
|
* @param {RunDataReportRequestDto} runDataReportRequestDto
|
|
26
25
|
* @param {string} [authorization] Bearer Token
|
|
27
26
|
* @param {*} [options] Override http request option.
|
|
28
27
|
* @throws {RequiredError}
|
|
29
28
|
*/
|
|
30
|
-
runDataReport: (
|
|
29
|
+
runDataReport: (runDataReportRequestDto: RunDataReportRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
30
|
};
|
|
32
31
|
/**
|
|
33
32
|
* DataReportExecutorApi - functional programming interface
|
|
@@ -36,13 +35,12 @@ export declare const DataReportExecutorApiAxiosParamCreator: (configuration?: Co
|
|
|
36
35
|
export declare const DataReportExecutorApiFp: (configuration?: Configuration) => {
|
|
37
36
|
/**
|
|
38
37
|
*
|
|
39
|
-
* @param {string} authorization2 Bearer Token: provided by the login endpoint under the name accessToken.
|
|
40
38
|
* @param {RunDataReportRequestDto} runDataReportRequestDto
|
|
41
39
|
* @param {string} [authorization] Bearer Token
|
|
42
40
|
* @param {*} [options] Override http request option.
|
|
43
41
|
* @throws {RequiredError}
|
|
44
42
|
*/
|
|
45
|
-
runDataReport(
|
|
43
|
+
runDataReport(runDataReportRequestDto: RunDataReportRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RunDataReportResponseClass>>;
|
|
46
44
|
};
|
|
47
45
|
/**
|
|
48
46
|
* DataReportExecutorApi - factory interface
|
|
@@ -51,13 +49,12 @@ export declare const DataReportExecutorApiFp: (configuration?: Configuration) =>
|
|
|
51
49
|
export declare const DataReportExecutorApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
52
50
|
/**
|
|
53
51
|
*
|
|
54
|
-
* @param {string} authorization2 Bearer Token: provided by the login endpoint under the name accessToken.
|
|
55
52
|
* @param {RunDataReportRequestDto} runDataReportRequestDto
|
|
56
53
|
* @param {string} [authorization] Bearer Token
|
|
57
54
|
* @param {*} [options] Override http request option.
|
|
58
55
|
* @throws {RequiredError}
|
|
59
56
|
*/
|
|
60
|
-
runDataReport(
|
|
57
|
+
runDataReport(runDataReportRequestDto: RunDataReportRequestDto, authorization?: string, options?: any): AxiosPromise<RunDataReportResponseClass>;
|
|
61
58
|
};
|
|
62
59
|
/**
|
|
63
60
|
* Request parameters for runDataReport operation in DataReportExecutorApi.
|
|
@@ -65,12 +62,6 @@ export declare const DataReportExecutorApiFactory: (configuration?: Configuratio
|
|
|
65
62
|
* @interface DataReportExecutorApiRunDataReportRequest
|
|
66
63
|
*/
|
|
67
64
|
export interface DataReportExecutorApiRunDataReportRequest {
|
|
68
|
-
/**
|
|
69
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
70
|
-
* @type {string}
|
|
71
|
-
* @memberof DataReportExecutorApiRunDataReport
|
|
72
|
-
*/
|
|
73
|
-
readonly authorization2: string;
|
|
74
65
|
/**
|
|
75
66
|
*
|
|
76
67
|
* @type {RunDataReportRequestDto}
|
|
@@ -98,21 +98,18 @@ var DataReportExecutorApiAxiosParamCreator = function (configuration) {
|
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
100
|
*
|
|
101
|
-
* @param {string} authorization2 Bearer Token: provided by the login endpoint under the name accessToken.
|
|
102
101
|
* @param {RunDataReportRequestDto} runDataReportRequestDto
|
|
103
102
|
* @param {string} [authorization] Bearer Token
|
|
104
103
|
* @param {*} [options] Override http request option.
|
|
105
104
|
* @throws {RequiredError}
|
|
106
105
|
*/
|
|
107
|
-
runDataReport: function (
|
|
106
|
+
runDataReport: function (runDataReportRequestDto, authorization, options) {
|
|
108
107
|
if (options === void 0) { options = {}; }
|
|
109
108
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
109
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
110
|
return __generator(this, function (_a) {
|
|
112
111
|
switch (_a.label) {
|
|
113
112
|
case 0:
|
|
114
|
-
// verify required parameter 'authorization2' is not null or undefined
|
|
115
|
-
(0, common_1.assertParamExists)('runDataReport', 'authorization2', authorization2);
|
|
116
113
|
// verify required parameter 'runDataReportRequestDto' is not null or undefined
|
|
117
114
|
(0, common_1.assertParamExists)('runDataReport', 'runDataReportRequestDto', runDataReportRequestDto);
|
|
118
115
|
localVarPath = "/tenantservice/v1/data-report-executor";
|
|
@@ -134,9 +131,6 @@ var DataReportExecutorApiAxiosParamCreator = function (configuration) {
|
|
|
134
131
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
135
132
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
136
133
|
}
|
|
137
|
-
if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
138
|
-
localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
|
|
139
|
-
}
|
|
140
134
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
141
135
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
142
136
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -162,18 +156,17 @@ var DataReportExecutorApiFp = function (configuration) {
|
|
|
162
156
|
return {
|
|
163
157
|
/**
|
|
164
158
|
*
|
|
165
|
-
* @param {string} authorization2 Bearer Token: provided by the login endpoint under the name accessToken.
|
|
166
159
|
* @param {RunDataReportRequestDto} runDataReportRequestDto
|
|
167
160
|
* @param {string} [authorization] Bearer Token
|
|
168
161
|
* @param {*} [options] Override http request option.
|
|
169
162
|
* @throws {RequiredError}
|
|
170
163
|
*/
|
|
171
|
-
runDataReport: function (
|
|
164
|
+
runDataReport: function (runDataReportRequestDto, authorization, options) {
|
|
172
165
|
return __awaiter(this, void 0, void 0, function () {
|
|
173
166
|
var localVarAxiosArgs;
|
|
174
167
|
return __generator(this, function (_a) {
|
|
175
168
|
switch (_a.label) {
|
|
176
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.runDataReport(
|
|
169
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.runDataReport(runDataReportRequestDto, authorization, options)];
|
|
177
170
|
case 1:
|
|
178
171
|
localVarAxiosArgs = _a.sent();
|
|
179
172
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -193,14 +186,13 @@ var DataReportExecutorApiFactory = function (configuration, basePath, axios) {
|
|
|
193
186
|
return {
|
|
194
187
|
/**
|
|
195
188
|
*
|
|
196
|
-
* @param {string} authorization2 Bearer Token: provided by the login endpoint under the name accessToken.
|
|
197
189
|
* @param {RunDataReportRequestDto} runDataReportRequestDto
|
|
198
190
|
* @param {string} [authorization] Bearer Token
|
|
199
191
|
* @param {*} [options] Override http request option.
|
|
200
192
|
* @throws {RequiredError}
|
|
201
193
|
*/
|
|
202
|
-
runDataReport: function (
|
|
203
|
-
return localVarFp.runDataReport(
|
|
194
|
+
runDataReport: function (runDataReportRequestDto, authorization, options) {
|
|
195
|
+
return localVarFp.runDataReport(runDataReportRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
204
196
|
},
|
|
205
197
|
};
|
|
206
198
|
};
|
|
@@ -225,7 +217,7 @@ var DataReportExecutorApi = /** @class */ (function (_super) {
|
|
|
225
217
|
*/
|
|
226
218
|
DataReportExecutorApi.prototype.runDataReport = function (requestParameters, options) {
|
|
227
219
|
var _this = this;
|
|
228
|
-
return (0, exports.DataReportExecutorApiFp)(this.configuration).runDataReport(requestParameters.
|
|
220
|
+
return (0, exports.DataReportExecutorApiFp)(this.configuration).runDataReport(requestParameters.runDataReportRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
229
221
|
};
|
|
230
222
|
return DataReportExecutorApi;
|
|
231
223
|
}(base_1.BaseAPI));
|
|
@@ -23,18 +23,16 @@ export declare const InviteOrganizationsApiAxiosParamCreator: (configuration?: C
|
|
|
23
23
|
/**
|
|
24
24
|
* This sends an email to invite an organization.
|
|
25
25
|
* @summary Invite an organization
|
|
26
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
27
|
-
* @param {string} authorization2 Bearer Token
|
|
28
26
|
* @param {InviteOrgRequestDto} inviteOrgRequestDto
|
|
27
|
+
* @param {string} [authorization] Bearer Token
|
|
29
28
|
* @param {*} [options] Override http request option.
|
|
30
29
|
* @throws {RequiredError}
|
|
31
30
|
*/
|
|
32
|
-
inviteOrg: (
|
|
31
|
+
inviteOrg: (inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
32
|
/**
|
|
34
33
|
* 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.
|
|
35
34
|
* @summary List org invitations
|
|
36
|
-
* @param {string} authorization Bearer Token
|
|
37
|
-
* @param {string} authorization2 Bearer Token
|
|
35
|
+
* @param {string} [authorization] Bearer Token
|
|
38
36
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
39
37
|
* @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.
|
|
40
38
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -44,7 +42,7 @@ export declare const InviteOrganizationsApiAxiosParamCreator: (configuration?: C
|
|
|
44
42
|
* @param {*} [options] Override http request option.
|
|
45
43
|
* @throws {RequiredError}
|
|
46
44
|
*/
|
|
47
|
-
listOrgInvitations: (authorization
|
|
45
|
+
listOrgInvitations: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
48
46
|
};
|
|
49
47
|
/**
|
|
50
48
|
* InviteOrganizationsApi - functional programming interface
|
|
@@ -54,18 +52,16 @@ export declare const InviteOrganizationsApiFp: (configuration?: Configuration) =
|
|
|
54
52
|
/**
|
|
55
53
|
* This sends an email to invite an organization.
|
|
56
54
|
* @summary Invite an organization
|
|
57
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
58
|
-
* @param {string} authorization2 Bearer Token
|
|
59
55
|
* @param {InviteOrgRequestDto} inviteOrgRequestDto
|
|
56
|
+
* @param {string} [authorization] Bearer Token
|
|
60
57
|
* @param {*} [options] Override http request option.
|
|
61
58
|
* @throws {RequiredError}
|
|
62
59
|
*/
|
|
63
|
-
inviteOrg(
|
|
60
|
+
inviteOrg(inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgInvitationResponseClass>>;
|
|
64
61
|
/**
|
|
65
62
|
* 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.
|
|
66
63
|
* @summary List org invitations
|
|
67
|
-
* @param {string} authorization Bearer Token
|
|
68
|
-
* @param {string} authorization2 Bearer Token
|
|
64
|
+
* @param {string} [authorization] Bearer Token
|
|
69
65
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
70
66
|
* @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.
|
|
71
67
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -75,7 +71,7 @@ export declare const InviteOrganizationsApiFp: (configuration?: Configuration) =
|
|
|
75
71
|
* @param {*} [options] Override http request option.
|
|
76
72
|
* @throws {RequiredError}
|
|
77
73
|
*/
|
|
78
|
-
listOrgInvitations(authorization
|
|
74
|
+
listOrgInvitations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOrgInvitationsResponseClass>>;
|
|
79
75
|
};
|
|
80
76
|
/**
|
|
81
77
|
* InviteOrganizationsApi - factory interface
|
|
@@ -85,18 +81,16 @@ export declare const InviteOrganizationsApiFactory: (configuration?: Configurati
|
|
|
85
81
|
/**
|
|
86
82
|
* This sends an email to invite an organization.
|
|
87
83
|
* @summary Invite an organization
|
|
88
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
89
|
-
* @param {string} authorization2 Bearer Token
|
|
90
84
|
* @param {InviteOrgRequestDto} inviteOrgRequestDto
|
|
85
|
+
* @param {string} [authorization] Bearer Token
|
|
91
86
|
* @param {*} [options] Override http request option.
|
|
92
87
|
* @throws {RequiredError}
|
|
93
88
|
*/
|
|
94
|
-
inviteOrg(
|
|
89
|
+
inviteOrg(inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options?: any): AxiosPromise<OrgInvitationResponseClass>;
|
|
95
90
|
/**
|
|
96
91
|
* 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.
|
|
97
92
|
* @summary List org invitations
|
|
98
|
-
* @param {string} authorization Bearer Token
|
|
99
|
-
* @param {string} authorization2 Bearer Token
|
|
93
|
+
* @param {string} [authorization] Bearer Token
|
|
100
94
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
101
95
|
* @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.
|
|
102
96
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -106,7 +100,7 @@ export declare const InviteOrganizationsApiFactory: (configuration?: Configurati
|
|
|
106
100
|
* @param {*} [options] Override http request option.
|
|
107
101
|
* @throws {RequiredError}
|
|
108
102
|
*/
|
|
109
|
-
listOrgInvitations(authorization
|
|
103
|
+
listOrgInvitations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListOrgInvitationsResponseClass>;
|
|
110
104
|
};
|
|
111
105
|
/**
|
|
112
106
|
* Request parameters for inviteOrg operation in InviteOrganizationsApi.
|
|
@@ -115,23 +109,17 @@ export declare const InviteOrganizationsApiFactory: (configuration?: Configurati
|
|
|
115
109
|
*/
|
|
116
110
|
export interface InviteOrganizationsApiInviteOrgRequest {
|
|
117
111
|
/**
|
|
118
|
-
*
|
|
119
|
-
* @type {
|
|
112
|
+
*
|
|
113
|
+
* @type {InviteOrgRequestDto}
|
|
120
114
|
* @memberof InviteOrganizationsApiInviteOrg
|
|
121
115
|
*/
|
|
122
|
-
readonly
|
|
116
|
+
readonly inviteOrgRequestDto: InviteOrgRequestDto;
|
|
123
117
|
/**
|
|
124
118
|
* Bearer Token
|
|
125
119
|
* @type {string}
|
|
126
120
|
* @memberof InviteOrganizationsApiInviteOrg
|
|
127
121
|
*/
|
|
128
|
-
readonly
|
|
129
|
-
/**
|
|
130
|
-
*
|
|
131
|
-
* @type {InviteOrgRequestDto}
|
|
132
|
-
* @memberof InviteOrganizationsApiInviteOrg
|
|
133
|
-
*/
|
|
134
|
-
readonly inviteOrgRequestDto: InviteOrgRequestDto;
|
|
122
|
+
readonly authorization?: string;
|
|
135
123
|
}
|
|
136
124
|
/**
|
|
137
125
|
* Request parameters for listOrgInvitations operation in InviteOrganizationsApi.
|
|
@@ -139,18 +127,12 @@ export interface InviteOrganizationsApiInviteOrgRequest {
|
|
|
139
127
|
* @interface InviteOrganizationsApiListOrgInvitationsRequest
|
|
140
128
|
*/
|
|
141
129
|
export interface InviteOrganizationsApiListOrgInvitationsRequest {
|
|
142
|
-
/**
|
|
143
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
144
|
-
* @type {string}
|
|
145
|
-
* @memberof InviteOrganizationsApiListOrgInvitations
|
|
146
|
-
*/
|
|
147
|
-
readonly authorization: string;
|
|
148
130
|
/**
|
|
149
131
|
* Bearer Token
|
|
150
132
|
* @type {string}
|
|
151
133
|
* @memberof InviteOrganizationsApiListOrgInvitations
|
|
152
134
|
*/
|
|
153
|
-
readonly
|
|
135
|
+
readonly authorization?: string;
|
|
154
136
|
/**
|
|
155
137
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
156
138
|
* @type {any}
|
|
@@ -212,5 +194,5 @@ export declare class InviteOrganizationsApi extends BaseAPI {
|
|
|
212
194
|
* @throws {RequiredError}
|
|
213
195
|
* @memberof InviteOrganizationsApi
|
|
214
196
|
*/
|
|
215
|
-
listOrgInvitations(requestParameters
|
|
197
|
+
listOrgInvitations(requestParameters?: InviteOrganizationsApiListOrgInvitationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListOrgInvitationsResponseClass, any>>;
|
|
216
198
|
}
|
|
@@ -99,23 +99,18 @@ var InviteOrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
99
99
|
/**
|
|
100
100
|
* This sends an email to invite an organization.
|
|
101
101
|
* @summary Invite an organization
|
|
102
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
103
|
-
* @param {string} authorization2 Bearer Token
|
|
104
102
|
* @param {InviteOrgRequestDto} inviteOrgRequestDto
|
|
103
|
+
* @param {string} [authorization] Bearer Token
|
|
105
104
|
* @param {*} [options] Override http request option.
|
|
106
105
|
* @throws {RequiredError}
|
|
107
106
|
*/
|
|
108
|
-
inviteOrg: function (
|
|
107
|
+
inviteOrg: function (inviteOrgRequestDto, authorization, options) {
|
|
109
108
|
if (options === void 0) { options = {}; }
|
|
110
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
111
110
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
112
111
|
return __generator(this, function (_a) {
|
|
113
112
|
switch (_a.label) {
|
|
114
113
|
case 0:
|
|
115
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
116
|
-
(0, common_1.assertParamExists)('inviteOrg', 'authorization', authorization);
|
|
117
|
-
// verify required parameter 'authorization2' is not null or undefined
|
|
118
|
-
(0, common_1.assertParamExists)('inviteOrg', 'authorization2', authorization2);
|
|
119
114
|
// verify required parameter 'inviteOrgRequestDto' is not null or undefined
|
|
120
115
|
(0, common_1.assertParamExists)('inviteOrg', 'inviteOrgRequestDto', inviteOrgRequestDto);
|
|
121
116
|
localVarPath = "/tenantservice/v1/invitations/organizations";
|
|
@@ -137,9 +132,6 @@ var InviteOrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
137
132
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
138
133
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
139
134
|
}
|
|
140
|
-
if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
141
|
-
localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
|
|
142
|
-
}
|
|
143
135
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
144
136
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
145
137
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -156,8 +148,7 @@ var InviteOrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
156
148
|
/**
|
|
157
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.
|
|
158
150
|
* @summary List org invitations
|
|
159
|
-
* @param {string} authorization Bearer Token
|
|
160
|
-
* @param {string} authorization2 Bearer Token
|
|
151
|
+
* @param {string} [authorization] Bearer Token
|
|
161
152
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
162
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.
|
|
163
154
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -167,17 +158,13 @@ var InviteOrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
167
158
|
* @param {*} [options] Override http request option.
|
|
168
159
|
* @throws {RequiredError}
|
|
169
160
|
*/
|
|
170
|
-
listOrgInvitations: function (authorization,
|
|
161
|
+
listOrgInvitations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
171
162
|
if (options === void 0) { options = {}; }
|
|
172
163
|
return __awaiter(_this, void 0, void 0, function () {
|
|
173
164
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
174
165
|
return __generator(this, function (_a) {
|
|
175
166
|
switch (_a.label) {
|
|
176
167
|
case 0:
|
|
177
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
178
|
-
(0, common_1.assertParamExists)('listOrgInvitations', 'authorization', authorization);
|
|
179
|
-
// verify required parameter 'authorization2' is not null or undefined
|
|
180
|
-
(0, common_1.assertParamExists)('listOrgInvitations', 'authorization2', authorization2);
|
|
181
168
|
localVarPath = "/tenantservice/v1/invitations/organizations";
|
|
182
169
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
183
170
|
if (configuration) {
|
|
@@ -215,9 +202,6 @@ var InviteOrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
215
202
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
216
203
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
217
204
|
}
|
|
218
|
-
if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
219
|
-
localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
|
|
220
|
-
}
|
|
221
205
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
222
206
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
223
207
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -242,18 +226,17 @@ var InviteOrganizationsApiFp = function (configuration) {
|
|
|
242
226
|
/**
|
|
243
227
|
* This sends an email to invite an organization.
|
|
244
228
|
* @summary Invite an organization
|
|
245
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
246
|
-
* @param {string} authorization2 Bearer Token
|
|
247
229
|
* @param {InviteOrgRequestDto} inviteOrgRequestDto
|
|
230
|
+
* @param {string} [authorization] Bearer Token
|
|
248
231
|
* @param {*} [options] Override http request option.
|
|
249
232
|
* @throws {RequiredError}
|
|
250
233
|
*/
|
|
251
|
-
inviteOrg: function (
|
|
234
|
+
inviteOrg: function (inviteOrgRequestDto, authorization, options) {
|
|
252
235
|
return __awaiter(this, void 0, void 0, function () {
|
|
253
236
|
var localVarAxiosArgs;
|
|
254
237
|
return __generator(this, function (_a) {
|
|
255
238
|
switch (_a.label) {
|
|
256
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteOrg(
|
|
239
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteOrg(inviteOrgRequestDto, authorization, options)];
|
|
257
240
|
case 1:
|
|
258
241
|
localVarAxiosArgs = _a.sent();
|
|
259
242
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -264,8 +247,7 @@ var InviteOrganizationsApiFp = function (configuration) {
|
|
|
264
247
|
/**
|
|
265
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.
|
|
266
249
|
* @summary List org invitations
|
|
267
|
-
* @param {string} authorization Bearer Token
|
|
268
|
-
* @param {string} authorization2 Bearer Token
|
|
250
|
+
* @param {string} [authorization] Bearer Token
|
|
269
251
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
270
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.
|
|
271
253
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -275,12 +257,12 @@ var InviteOrganizationsApiFp = function (configuration) {
|
|
|
275
257
|
* @param {*} [options] Override http request option.
|
|
276
258
|
* @throws {RequiredError}
|
|
277
259
|
*/
|
|
278
|
-
listOrgInvitations: function (authorization,
|
|
260
|
+
listOrgInvitations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
279
261
|
return __awaiter(this, void 0, void 0, function () {
|
|
280
262
|
var localVarAxiosArgs;
|
|
281
263
|
return __generator(this, function (_a) {
|
|
282
264
|
switch (_a.label) {
|
|
283
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOrgInvitations(authorization,
|
|
265
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
284
266
|
case 1:
|
|
285
267
|
localVarAxiosArgs = _a.sent();
|
|
286
268
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -301,20 +283,18 @@ var InviteOrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
|
301
283
|
/**
|
|
302
284
|
* This sends an email to invite an organization.
|
|
303
285
|
* @summary Invite an organization
|
|
304
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
305
|
-
* @param {string} authorization2 Bearer Token
|
|
306
286
|
* @param {InviteOrgRequestDto} inviteOrgRequestDto
|
|
287
|
+
* @param {string} [authorization] Bearer Token
|
|
307
288
|
* @param {*} [options] Override http request option.
|
|
308
289
|
* @throws {RequiredError}
|
|
309
290
|
*/
|
|
310
|
-
inviteOrg: function (
|
|
311
|
-
return localVarFp.inviteOrg(
|
|
291
|
+
inviteOrg: function (inviteOrgRequestDto, authorization, options) {
|
|
292
|
+
return localVarFp.inviteOrg(inviteOrgRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
312
293
|
},
|
|
313
294
|
/**
|
|
314
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.
|
|
315
296
|
* @summary List org invitations
|
|
316
|
-
* @param {string} authorization Bearer Token
|
|
317
|
-
* @param {string} authorization2 Bearer Token
|
|
297
|
+
* @param {string} [authorization] Bearer Token
|
|
318
298
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
319
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.
|
|
320
300
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -324,8 +304,8 @@ var InviteOrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
|
324
304
|
* @param {*} [options] Override http request option.
|
|
325
305
|
* @throws {RequiredError}
|
|
326
306
|
*/
|
|
327
|
-
listOrgInvitations: function (authorization,
|
|
328
|
-
return localVarFp.listOrgInvitations(authorization,
|
|
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); });
|
|
329
309
|
},
|
|
330
310
|
};
|
|
331
311
|
};
|
|
@@ -351,7 +331,7 @@ var InviteOrganizationsApi = /** @class */ (function (_super) {
|
|
|
351
331
|
*/
|
|
352
332
|
InviteOrganizationsApi.prototype.inviteOrg = function (requestParameters, options) {
|
|
353
333
|
var _this = this;
|
|
354
|
-
return (0, exports.InviteOrganizationsApiFp)(this.configuration).inviteOrg(requestParameters.
|
|
334
|
+
return (0, exports.InviteOrganizationsApiFp)(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
355
335
|
};
|
|
356
336
|
/**
|
|
357
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.
|
|
@@ -363,7 +343,8 @@ var InviteOrganizationsApi = /** @class */ (function (_super) {
|
|
|
363
343
|
*/
|
|
364
344
|
InviteOrganizationsApi.prototype.listOrgInvitations = function (requestParameters, options) {
|
|
365
345
|
var _this = this;
|
|
366
|
-
|
|
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); });
|
|
367
348
|
};
|
|
368
349
|
return InviteOrganizationsApi;
|
|
369
350
|
}(base_1.BaseAPI));
|