@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
|
@@ -39,17 +39,12 @@ export const InviteOrganizationsApiAxiosParamCreator = function (configuration?:
|
|
|
39
39
|
/**
|
|
40
40
|
* This sends an email to invite an organization.
|
|
41
41
|
* @summary Invite an organization
|
|
42
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
43
|
-
* @param {string} authorization2 Bearer Token
|
|
44
42
|
* @param {InviteOrgRequestDto} inviteOrgRequestDto
|
|
43
|
+
* @param {string} [authorization] Bearer Token
|
|
45
44
|
* @param {*} [options] Override http request option.
|
|
46
45
|
* @throws {RequiredError}
|
|
47
46
|
*/
|
|
48
|
-
inviteOrg: async (
|
|
49
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
50
|
-
assertParamExists('inviteOrg', 'authorization', authorization)
|
|
51
|
-
// verify required parameter 'authorization2' is not null or undefined
|
|
52
|
-
assertParamExists('inviteOrg', 'authorization2', authorization2)
|
|
47
|
+
inviteOrg: async (inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
53
48
|
// verify required parameter 'inviteOrgRequestDto' is not null or undefined
|
|
54
49
|
assertParamExists('inviteOrg', 'inviteOrgRequestDto', inviteOrgRequestDto)
|
|
55
50
|
const localVarPath = `/tenantservice/v1/invitations/organizations`;
|
|
@@ -74,10 +69,6 @@ export const InviteOrganizationsApiAxiosParamCreator = function (configuration?:
|
|
|
74
69
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
75
70
|
}
|
|
76
71
|
|
|
77
|
-
if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
78
|
-
localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
72
|
|
|
82
73
|
|
|
83
74
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -95,8 +86,7 @@ export const InviteOrganizationsApiAxiosParamCreator = function (configuration?:
|
|
|
95
86
|
/**
|
|
96
87
|
* 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
88
|
* @summary List org invitations
|
|
98
|
-
* @param {string} authorization Bearer Token
|
|
99
|
-
* @param {string} authorization2 Bearer Token
|
|
89
|
+
* @param {string} [authorization] Bearer Token
|
|
100
90
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
101
91
|
* @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
92
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -106,11 +96,7 @@ export const InviteOrganizationsApiAxiosParamCreator = function (configuration?:
|
|
|
106
96
|
* @param {*} [options] Override http request option.
|
|
107
97
|
* @throws {RequiredError}
|
|
108
98
|
*/
|
|
109
|
-
listOrgInvitations: async (authorization
|
|
110
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
111
|
-
assertParamExists('listOrgInvitations', 'authorization', authorization)
|
|
112
|
-
// verify required parameter 'authorization2' is not null or undefined
|
|
113
|
-
assertParamExists('listOrgInvitations', 'authorization2', authorization2)
|
|
99
|
+
listOrgInvitations: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
114
100
|
const localVarPath = `/tenantservice/v1/invitations/organizations`;
|
|
115
101
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
116
102
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -157,10 +143,6 @@ export const InviteOrganizationsApiAxiosParamCreator = function (configuration?:
|
|
|
157
143
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
158
144
|
}
|
|
159
145
|
|
|
160
|
-
if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
161
|
-
localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
146
|
|
|
165
147
|
|
|
166
148
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -185,21 +167,19 @@ export const InviteOrganizationsApiFp = function(configuration?: Configuration)
|
|
|
185
167
|
/**
|
|
186
168
|
* This sends an email to invite an organization.
|
|
187
169
|
* @summary Invite an organization
|
|
188
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
189
|
-
* @param {string} authorization2 Bearer Token
|
|
190
170
|
* @param {InviteOrgRequestDto} inviteOrgRequestDto
|
|
171
|
+
* @param {string} [authorization] Bearer Token
|
|
191
172
|
* @param {*} [options] Override http request option.
|
|
192
173
|
* @throws {RequiredError}
|
|
193
174
|
*/
|
|
194
|
-
async inviteOrg(
|
|
195
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteOrg(
|
|
175
|
+
async inviteOrg(inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgInvitationResponseClass>> {
|
|
176
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteOrg(inviteOrgRequestDto, authorization, options);
|
|
196
177
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
197
178
|
},
|
|
198
179
|
/**
|
|
199
180
|
* Returns a list of org invitations you have previously created. The org invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
200
181
|
* @summary List org invitations
|
|
201
|
-
* @param {string} authorization Bearer Token
|
|
202
|
-
* @param {string} authorization2 Bearer Token
|
|
182
|
+
* @param {string} [authorization] Bearer Token
|
|
203
183
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
204
184
|
* @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.
|
|
205
185
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -209,8 +189,8 @@ export const InviteOrganizationsApiFp = function(configuration?: Configuration)
|
|
|
209
189
|
* @param {*} [options] Override http request option.
|
|
210
190
|
* @throws {RequiredError}
|
|
211
191
|
*/
|
|
212
|
-
async listOrgInvitations(authorization
|
|
213
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgInvitations(authorization,
|
|
192
|
+
async listOrgInvitations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOrgInvitationsResponseClass>> {
|
|
193
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
214
194
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
215
195
|
},
|
|
216
196
|
}
|
|
@@ -226,20 +206,18 @@ export const InviteOrganizationsApiFactory = function (configuration?: Configura
|
|
|
226
206
|
/**
|
|
227
207
|
* This sends an email to invite an organization.
|
|
228
208
|
* @summary Invite an organization
|
|
229
|
-
* @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
|
|
230
|
-
* @param {string} authorization2 Bearer Token
|
|
231
209
|
* @param {InviteOrgRequestDto} inviteOrgRequestDto
|
|
210
|
+
* @param {string} [authorization] Bearer Token
|
|
232
211
|
* @param {*} [options] Override http request option.
|
|
233
212
|
* @throws {RequiredError}
|
|
234
213
|
*/
|
|
235
|
-
inviteOrg(
|
|
236
|
-
return localVarFp.inviteOrg(
|
|
214
|
+
inviteOrg(inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options?: any): AxiosPromise<OrgInvitationResponseClass> {
|
|
215
|
+
return localVarFp.inviteOrg(inviteOrgRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
237
216
|
},
|
|
238
217
|
/**
|
|
239
218
|
* Returns a list of org invitations you have previously created. The org invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
240
219
|
* @summary List org invitations
|
|
241
|
-
* @param {string} authorization Bearer Token
|
|
242
|
-
* @param {string} authorization2 Bearer Token
|
|
220
|
+
* @param {string} [authorization] Bearer Token
|
|
243
221
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
244
222
|
* @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.
|
|
245
223
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -249,8 +227,8 @@ export const InviteOrganizationsApiFactory = function (configuration?: Configura
|
|
|
249
227
|
* @param {*} [options] Override http request option.
|
|
250
228
|
* @throws {RequiredError}
|
|
251
229
|
*/
|
|
252
|
-
listOrgInvitations(authorization
|
|
253
|
-
return localVarFp.listOrgInvitations(authorization,
|
|
230
|
+
listOrgInvitations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListOrgInvitationsResponseClass> {
|
|
231
|
+
return localVarFp.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
254
232
|
},
|
|
255
233
|
};
|
|
256
234
|
};
|
|
@@ -262,25 +240,18 @@ export const InviteOrganizationsApiFactory = function (configuration?: Configura
|
|
|
262
240
|
*/
|
|
263
241
|
export interface InviteOrganizationsApiInviteOrgRequest {
|
|
264
242
|
/**
|
|
265
|
-
*
|
|
266
|
-
* @type {
|
|
243
|
+
*
|
|
244
|
+
* @type {InviteOrgRequestDto}
|
|
267
245
|
* @memberof InviteOrganizationsApiInviteOrg
|
|
268
246
|
*/
|
|
269
|
-
readonly
|
|
247
|
+
readonly inviteOrgRequestDto: InviteOrgRequestDto
|
|
270
248
|
|
|
271
249
|
/**
|
|
272
250
|
* Bearer Token
|
|
273
251
|
* @type {string}
|
|
274
252
|
* @memberof InviteOrganizationsApiInviteOrg
|
|
275
253
|
*/
|
|
276
|
-
readonly
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
*
|
|
280
|
-
* @type {InviteOrgRequestDto}
|
|
281
|
-
* @memberof InviteOrganizationsApiInviteOrg
|
|
282
|
-
*/
|
|
283
|
-
readonly inviteOrgRequestDto: InviteOrgRequestDto
|
|
254
|
+
readonly authorization?: string
|
|
284
255
|
}
|
|
285
256
|
|
|
286
257
|
/**
|
|
@@ -289,19 +260,12 @@ export interface InviteOrganizationsApiInviteOrgRequest {
|
|
|
289
260
|
* @interface InviteOrganizationsApiListOrgInvitationsRequest
|
|
290
261
|
*/
|
|
291
262
|
export interface InviteOrganizationsApiListOrgInvitationsRequest {
|
|
292
|
-
/**
|
|
293
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
294
|
-
* @type {string}
|
|
295
|
-
* @memberof InviteOrganizationsApiListOrgInvitations
|
|
296
|
-
*/
|
|
297
|
-
readonly authorization: string
|
|
298
|
-
|
|
299
263
|
/**
|
|
300
264
|
* Bearer Token
|
|
301
265
|
* @type {string}
|
|
302
266
|
* @memberof InviteOrganizationsApiListOrgInvitations
|
|
303
267
|
*/
|
|
304
|
-
readonly
|
|
268
|
+
readonly authorization?: string
|
|
305
269
|
|
|
306
270
|
/**
|
|
307
271
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
@@ -362,7 +326,7 @@ export class InviteOrganizationsApi extends BaseAPI {
|
|
|
362
326
|
* @memberof InviteOrganizationsApi
|
|
363
327
|
*/
|
|
364
328
|
public inviteOrg(requestParameters: InviteOrganizationsApiInviteOrgRequest, options?: AxiosRequestConfig) {
|
|
365
|
-
return InviteOrganizationsApiFp(this.configuration).inviteOrg(requestParameters.
|
|
329
|
+
return InviteOrganizationsApiFp(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
366
330
|
}
|
|
367
331
|
|
|
368
332
|
/**
|
|
@@ -373,7 +337,7 @@ export class InviteOrganizationsApi extends BaseAPI {
|
|
|
373
337
|
* @throws {RequiredError}
|
|
374
338
|
* @memberof InviteOrganizationsApi
|
|
375
339
|
*/
|
|
376
|
-
public listOrgInvitations(requestParameters: InviteOrganizationsApiListOrgInvitationsRequest, options?: AxiosRequestConfig) {
|
|
377
|
-
return InviteOrganizationsApiFp(this.configuration).listOrgInvitations(requestParameters.authorization, requestParameters.
|
|
340
|
+
public listOrgInvitations(requestParameters: InviteOrganizationsApiListOrgInvitationsRequest = {}, options?: AxiosRequestConfig) {
|
|
341
|
+
return InviteOrganizationsApiFp(this.configuration).listOrgInvitations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
378
342
|
}
|
|
379
343
|
}
|
package/api/invite-users-api.ts
CHANGED
|
@@ -49,14 +49,12 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
49
49
|
/**
|
|
50
50
|
* Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
|
|
51
51
|
* @summary Delete the invited user
|
|
52
|
-
* @param {string} authorization Bearer Token
|
|
53
52
|
* @param {number} id
|
|
53
|
+
* @param {string} [authorization] Bearer Token
|
|
54
54
|
* @param {*} [options] Override http request option.
|
|
55
55
|
* @throws {RequiredError}
|
|
56
56
|
*/
|
|
57
|
-
deleteInvite: async (
|
|
58
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
59
|
-
assertParamExists('deleteInvite', 'authorization', authorization)
|
|
57
|
+
deleteInvite: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
60
58
|
// verify required parameter 'id' is not null or undefined
|
|
61
59
|
assertParamExists('deleteInvite', 'id', id)
|
|
62
60
|
const localVarPath = `/tenantservice/v1/users/invites/{id}`
|
|
@@ -96,14 +94,12 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
96
94
|
/**
|
|
97
95
|
* This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
|
|
98
96
|
* @summary Delete invited users.
|
|
99
|
-
* @param {string} authorization Bearer Token
|
|
100
97
|
* @param {BatchDeleteRequestDto} batchDeleteRequestDto
|
|
98
|
+
* @param {string} [authorization] Bearer Token
|
|
101
99
|
* @param {*} [options] Override http request option.
|
|
102
100
|
* @throws {RequiredError}
|
|
103
101
|
*/
|
|
104
|
-
deleteInvites: async (
|
|
105
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
106
|
-
assertParamExists('deleteInvites', 'authorization', authorization)
|
|
102
|
+
deleteInvites: async (batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
107
103
|
// verify required parameter 'batchDeleteRequestDto' is not null or undefined
|
|
108
104
|
assertParamExists('deleteInvites', 'batchDeleteRequestDto', batchDeleteRequestDto)
|
|
109
105
|
const localVarPath = `/tenantservice/v1/users/invites/delete-batch`;
|
|
@@ -145,14 +141,12 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
145
141
|
/**
|
|
146
142
|
* This send an email to invite a user with the specific role/roles.
|
|
147
143
|
* @summary Invite a user
|
|
148
|
-
* @param {string} authorization Bearer Token
|
|
149
144
|
* @param {InviteUserRequestDto} inviteUserRequestDto
|
|
145
|
+
* @param {string} [authorization] Bearer Token
|
|
150
146
|
* @param {*} [options] Override http request option.
|
|
151
147
|
* @throws {RequiredError}
|
|
152
148
|
*/
|
|
153
|
-
inviteUser: async (
|
|
154
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
155
|
-
assertParamExists('inviteUser', 'authorization', authorization)
|
|
149
|
+
inviteUser: async (inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
156
150
|
// verify required parameter 'inviteUserRequestDto' is not null or undefined
|
|
157
151
|
assertParamExists('inviteUser', 'inviteUserRequestDto', inviteUserRequestDto)
|
|
158
152
|
const localVarPath = `/tenantservice/v1/users/invites`;
|
|
@@ -194,14 +188,12 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
194
188
|
/**
|
|
195
189
|
* This send bulk emails to invite users with the specific role/roles.
|
|
196
190
|
* @summary Invite batch of users
|
|
197
|
-
* @param {string} authorization Bearer Token
|
|
198
191
|
* @param {InviteUsersRequestDto} inviteUsersRequestDto
|
|
192
|
+
* @param {string} [authorization] Bearer Token
|
|
199
193
|
* @param {*} [options] Override http request option.
|
|
200
194
|
* @throws {RequiredError}
|
|
201
195
|
*/
|
|
202
|
-
inviteUsers: async (
|
|
203
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
204
|
-
assertParamExists('inviteUsers', 'authorization', authorization)
|
|
196
|
+
inviteUsers: async (inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
205
197
|
// verify required parameter 'inviteUsersRequestDto' is not null or undefined
|
|
206
198
|
assertParamExists('inviteUsers', 'inviteUsersRequestDto', inviteUsersRequestDto)
|
|
207
199
|
const localVarPath = `/tenantservice/v1/users/invites/batch`;
|
|
@@ -243,7 +235,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
243
235
|
/**
|
|
244
236
|
* Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
245
237
|
* @summary List invited users
|
|
246
|
-
* @param {string} authorization Bearer Token
|
|
238
|
+
* @param {string} [authorization] Bearer Token
|
|
247
239
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
248
240
|
* @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.
|
|
249
241
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -253,9 +245,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
253
245
|
* @param {*} [options] Override http request option.
|
|
254
246
|
* @throws {RequiredError}
|
|
255
247
|
*/
|
|
256
|
-
listInvites: async (authorization
|
|
257
|
-
// verify required parameter 'authorization' is not null or undefined
|
|
258
|
-
assertParamExists('listInvites', 'authorization', authorization)
|
|
248
|
+
listInvites: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
259
249
|
const localVarPath = `/tenantservice/v1/users/invites`;
|
|
260
250
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
261
251
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -326,55 +316,55 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
|
|
|
326
316
|
/**
|
|
327
317
|
* Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
|
|
328
318
|
* @summary Delete the invited user
|
|
329
|
-
* @param {string} authorization Bearer Token
|
|
330
319
|
* @param {number} id
|
|
320
|
+
* @param {string} [authorization] Bearer Token
|
|
331
321
|
* @param {*} [options] Override http request option.
|
|
332
322
|
* @throws {RequiredError}
|
|
333
323
|
*/
|
|
334
|
-
async deleteInvite(
|
|
335
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvite(
|
|
324
|
+
async deleteInvite(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
|
|
325
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvite(id, authorization, options);
|
|
336
326
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
337
327
|
},
|
|
338
328
|
/**
|
|
339
329
|
* This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
|
|
340
330
|
* @summary Delete invited users.
|
|
341
|
-
* @param {string} authorization Bearer Token
|
|
342
331
|
* @param {BatchDeleteRequestDto} batchDeleteRequestDto
|
|
332
|
+
* @param {string} [authorization] Bearer Token
|
|
343
333
|
* @param {*} [options] Override http request option.
|
|
344
334
|
* @throws {RequiredError}
|
|
345
335
|
*/
|
|
346
|
-
async deleteInvites(
|
|
347
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvites(
|
|
336
|
+
async deleteInvites(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchDeleteResponseClass>> {
|
|
337
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvites(batchDeleteRequestDto, authorization, options);
|
|
348
338
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
349
339
|
},
|
|
350
340
|
/**
|
|
351
341
|
* This send an email to invite a user with the specific role/roles.
|
|
352
342
|
* @summary Invite a user
|
|
353
|
-
* @param {string} authorization Bearer Token
|
|
354
343
|
* @param {InviteUserRequestDto} inviteUserRequestDto
|
|
344
|
+
* @param {string} [authorization] Bearer Token
|
|
355
345
|
* @param {*} [options] Override http request option.
|
|
356
346
|
* @throws {RequiredError}
|
|
357
347
|
*/
|
|
358
|
-
async inviteUser(
|
|
359
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUser(
|
|
348
|
+
async inviteUser(inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUserResponseClass>> {
|
|
349
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUser(inviteUserRequestDto, authorization, options);
|
|
360
350
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
361
351
|
},
|
|
362
352
|
/**
|
|
363
353
|
* This send bulk emails to invite users with the specific role/roles.
|
|
364
354
|
* @summary Invite batch of users
|
|
365
|
-
* @param {string} authorization Bearer Token
|
|
366
355
|
* @param {InviteUsersRequestDto} inviteUsersRequestDto
|
|
356
|
+
* @param {string} [authorization] Bearer Token
|
|
367
357
|
* @param {*} [options] Override http request option.
|
|
368
358
|
* @throws {RequiredError}
|
|
369
359
|
*/
|
|
370
|
-
async inviteUsers(
|
|
371
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUsers(
|
|
360
|
+
async inviteUsers(inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUsersResponseClass>> {
|
|
361
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUsers(inviteUsersRequestDto, authorization, options);
|
|
372
362
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
373
363
|
},
|
|
374
364
|
/**
|
|
375
365
|
* Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
376
366
|
* @summary List invited users
|
|
377
|
-
* @param {string} authorization Bearer Token
|
|
367
|
+
* @param {string} [authorization] Bearer Token
|
|
378
368
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
379
369
|
* @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.
|
|
380
370
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -384,7 +374,7 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
|
|
|
384
374
|
* @param {*} [options] Override http request option.
|
|
385
375
|
* @throws {RequiredError}
|
|
386
376
|
*/
|
|
387
|
-
async listInvites(authorization
|
|
377
|
+
async listInvites(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvitesResponseClass>> {
|
|
388
378
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listInvites(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
389
379
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
390
380
|
},
|
|
@@ -401,51 +391,51 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
|
|
|
401
391
|
/**
|
|
402
392
|
* Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
|
|
403
393
|
* @summary Delete the invited user
|
|
404
|
-
* @param {string} authorization Bearer Token
|
|
405
394
|
* @param {number} id
|
|
395
|
+
* @param {string} [authorization] Bearer Token
|
|
406
396
|
* @param {*} [options] Override http request option.
|
|
407
397
|
* @throws {RequiredError}
|
|
408
398
|
*/
|
|
409
|
-
deleteInvite(
|
|
410
|
-
return localVarFp.deleteInvite(
|
|
399
|
+
deleteInvite(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
|
|
400
|
+
return localVarFp.deleteInvite(id, authorization, options).then((request) => request(axios, basePath));
|
|
411
401
|
},
|
|
412
402
|
/**
|
|
413
403
|
* This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
|
|
414
404
|
* @summary Delete invited users.
|
|
415
|
-
* @param {string} authorization Bearer Token
|
|
416
405
|
* @param {BatchDeleteRequestDto} batchDeleteRequestDto
|
|
406
|
+
* @param {string} [authorization] Bearer Token
|
|
417
407
|
* @param {*} [options] Override http request option.
|
|
418
408
|
* @throws {RequiredError}
|
|
419
409
|
*/
|
|
420
|
-
deleteInvites(
|
|
421
|
-
return localVarFp.deleteInvites(
|
|
410
|
+
deleteInvites(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: any): AxiosPromise<BatchDeleteResponseClass> {
|
|
411
|
+
return localVarFp.deleteInvites(batchDeleteRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
422
412
|
},
|
|
423
413
|
/**
|
|
424
414
|
* This send an email to invite a user with the specific role/roles.
|
|
425
415
|
* @summary Invite a user
|
|
426
|
-
* @param {string} authorization Bearer Token
|
|
427
416
|
* @param {InviteUserRequestDto} inviteUserRequestDto
|
|
417
|
+
* @param {string} [authorization] Bearer Token
|
|
428
418
|
* @param {*} [options] Override http request option.
|
|
429
419
|
* @throws {RequiredError}
|
|
430
420
|
*/
|
|
431
|
-
inviteUser(
|
|
432
|
-
return localVarFp.inviteUser(
|
|
421
|
+
inviteUser(inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options?: any): AxiosPromise<InviteUserResponseClass> {
|
|
422
|
+
return localVarFp.inviteUser(inviteUserRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
433
423
|
},
|
|
434
424
|
/**
|
|
435
425
|
* This send bulk emails to invite users with the specific role/roles.
|
|
436
426
|
* @summary Invite batch of users
|
|
437
|
-
* @param {string} authorization Bearer Token
|
|
438
427
|
* @param {InviteUsersRequestDto} inviteUsersRequestDto
|
|
428
|
+
* @param {string} [authorization] Bearer Token
|
|
439
429
|
* @param {*} [options] Override http request option.
|
|
440
430
|
* @throws {RequiredError}
|
|
441
431
|
*/
|
|
442
|
-
inviteUsers(
|
|
443
|
-
return localVarFp.inviteUsers(
|
|
432
|
+
inviteUsers(inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options?: any): AxiosPromise<InviteUsersResponseClass> {
|
|
433
|
+
return localVarFp.inviteUsers(inviteUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
444
434
|
},
|
|
445
435
|
/**
|
|
446
436
|
* Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
447
437
|
* @summary List invited users
|
|
448
|
-
* @param {string} authorization Bearer Token
|
|
438
|
+
* @param {string} [authorization] Bearer Token
|
|
449
439
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
450
440
|
* @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.
|
|
451
441
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -455,7 +445,7 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
|
|
|
455
445
|
* @param {*} [options] Override http request option.
|
|
456
446
|
* @throws {RequiredError}
|
|
457
447
|
*/
|
|
458
|
-
listInvites(authorization
|
|
448
|
+
listInvites(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListInvitesResponseClass> {
|
|
459
449
|
return localVarFp.listInvites(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
460
450
|
},
|
|
461
451
|
};
|
|
@@ -468,18 +458,18 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
|
|
|
468
458
|
*/
|
|
469
459
|
export interface InviteUsersApiDeleteInviteRequest {
|
|
470
460
|
/**
|
|
471
|
-
*
|
|
472
|
-
* @type {
|
|
461
|
+
*
|
|
462
|
+
* @type {number}
|
|
473
463
|
* @memberof InviteUsersApiDeleteInvite
|
|
474
464
|
*/
|
|
475
|
-
readonly
|
|
465
|
+
readonly id: number
|
|
476
466
|
|
|
477
467
|
/**
|
|
478
|
-
*
|
|
479
|
-
* @type {
|
|
468
|
+
* Bearer Token
|
|
469
|
+
* @type {string}
|
|
480
470
|
* @memberof InviteUsersApiDeleteInvite
|
|
481
471
|
*/
|
|
482
|
-
readonly
|
|
472
|
+
readonly authorization?: string
|
|
483
473
|
}
|
|
484
474
|
|
|
485
475
|
/**
|
|
@@ -489,18 +479,18 @@ export interface InviteUsersApiDeleteInviteRequest {
|
|
|
489
479
|
*/
|
|
490
480
|
export interface InviteUsersApiDeleteInvitesRequest {
|
|
491
481
|
/**
|
|
492
|
-
*
|
|
493
|
-
* @type {
|
|
482
|
+
*
|
|
483
|
+
* @type {BatchDeleteRequestDto}
|
|
494
484
|
* @memberof InviteUsersApiDeleteInvites
|
|
495
485
|
*/
|
|
496
|
-
readonly
|
|
486
|
+
readonly batchDeleteRequestDto: BatchDeleteRequestDto
|
|
497
487
|
|
|
498
488
|
/**
|
|
499
|
-
*
|
|
500
|
-
* @type {
|
|
489
|
+
* Bearer Token
|
|
490
|
+
* @type {string}
|
|
501
491
|
* @memberof InviteUsersApiDeleteInvites
|
|
502
492
|
*/
|
|
503
|
-
readonly
|
|
493
|
+
readonly authorization?: string
|
|
504
494
|
}
|
|
505
495
|
|
|
506
496
|
/**
|
|
@@ -510,18 +500,18 @@ export interface InviteUsersApiDeleteInvitesRequest {
|
|
|
510
500
|
*/
|
|
511
501
|
export interface InviteUsersApiInviteUserRequest {
|
|
512
502
|
/**
|
|
513
|
-
*
|
|
514
|
-
* @type {
|
|
503
|
+
*
|
|
504
|
+
* @type {InviteUserRequestDto}
|
|
515
505
|
* @memberof InviteUsersApiInviteUser
|
|
516
506
|
*/
|
|
517
|
-
readonly
|
|
507
|
+
readonly inviteUserRequestDto: InviteUserRequestDto
|
|
518
508
|
|
|
519
509
|
/**
|
|
520
|
-
*
|
|
521
|
-
* @type {
|
|
510
|
+
* Bearer Token
|
|
511
|
+
* @type {string}
|
|
522
512
|
* @memberof InviteUsersApiInviteUser
|
|
523
513
|
*/
|
|
524
|
-
readonly
|
|
514
|
+
readonly authorization?: string
|
|
525
515
|
}
|
|
526
516
|
|
|
527
517
|
/**
|
|
@@ -531,18 +521,18 @@ export interface InviteUsersApiInviteUserRequest {
|
|
|
531
521
|
*/
|
|
532
522
|
export interface InviteUsersApiInviteUsersRequest {
|
|
533
523
|
/**
|
|
534
|
-
*
|
|
535
|
-
* @type {
|
|
524
|
+
*
|
|
525
|
+
* @type {InviteUsersRequestDto}
|
|
536
526
|
* @memberof InviteUsersApiInviteUsers
|
|
537
527
|
*/
|
|
538
|
-
readonly
|
|
528
|
+
readonly inviteUsersRequestDto: InviteUsersRequestDto
|
|
539
529
|
|
|
540
530
|
/**
|
|
541
|
-
*
|
|
542
|
-
* @type {
|
|
531
|
+
* Bearer Token
|
|
532
|
+
* @type {string}
|
|
543
533
|
* @memberof InviteUsersApiInviteUsers
|
|
544
534
|
*/
|
|
545
|
-
readonly
|
|
535
|
+
readonly authorization?: string
|
|
546
536
|
}
|
|
547
537
|
|
|
548
538
|
/**
|
|
@@ -556,7 +546,7 @@ export interface InviteUsersApiListInvitesRequest {
|
|
|
556
546
|
* @type {string}
|
|
557
547
|
* @memberof InviteUsersApiListInvites
|
|
558
548
|
*/
|
|
559
|
-
readonly authorization
|
|
549
|
+
readonly authorization?: string
|
|
560
550
|
|
|
561
551
|
/**
|
|
562
552
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
@@ -617,7 +607,7 @@ export class InviteUsersApi extends BaseAPI {
|
|
|
617
607
|
* @memberof InviteUsersApi
|
|
618
608
|
*/
|
|
619
609
|
public deleteInvite(requestParameters: InviteUsersApiDeleteInviteRequest, options?: AxiosRequestConfig) {
|
|
620
|
-
return InviteUsersApiFp(this.configuration).deleteInvite(requestParameters.
|
|
610
|
+
return InviteUsersApiFp(this.configuration).deleteInvite(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
621
611
|
}
|
|
622
612
|
|
|
623
613
|
/**
|
|
@@ -629,7 +619,7 @@ export class InviteUsersApi extends BaseAPI {
|
|
|
629
619
|
* @memberof InviteUsersApi
|
|
630
620
|
*/
|
|
631
621
|
public deleteInvites(requestParameters: InviteUsersApiDeleteInvitesRequest, options?: AxiosRequestConfig) {
|
|
632
|
-
return InviteUsersApiFp(this.configuration).deleteInvites(requestParameters.
|
|
622
|
+
return InviteUsersApiFp(this.configuration).deleteInvites(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
633
623
|
}
|
|
634
624
|
|
|
635
625
|
/**
|
|
@@ -641,7 +631,7 @@ export class InviteUsersApi extends BaseAPI {
|
|
|
641
631
|
* @memberof InviteUsersApi
|
|
642
632
|
*/
|
|
643
633
|
public inviteUser(requestParameters: InviteUsersApiInviteUserRequest, options?: AxiosRequestConfig) {
|
|
644
|
-
return InviteUsersApiFp(this.configuration).inviteUser(requestParameters.
|
|
634
|
+
return InviteUsersApiFp(this.configuration).inviteUser(requestParameters.inviteUserRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
645
635
|
}
|
|
646
636
|
|
|
647
637
|
/**
|
|
@@ -653,7 +643,7 @@ export class InviteUsersApi extends BaseAPI {
|
|
|
653
643
|
* @memberof InviteUsersApi
|
|
654
644
|
*/
|
|
655
645
|
public inviteUsers(requestParameters: InviteUsersApiInviteUsersRequest, options?: AxiosRequestConfig) {
|
|
656
|
-
return InviteUsersApiFp(this.configuration).inviteUsers(requestParameters.
|
|
646
|
+
return InviteUsersApiFp(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
657
647
|
}
|
|
658
648
|
|
|
659
649
|
/**
|
|
@@ -664,7 +654,7 @@ export class InviteUsersApi extends BaseAPI {
|
|
|
664
654
|
* @throws {RequiredError}
|
|
665
655
|
* @memberof InviteUsersApi
|
|
666
656
|
*/
|
|
667
|
-
public listInvites(requestParameters: InviteUsersApiListInvitesRequest, options?: AxiosRequestConfig) {
|
|
657
|
+
public listInvites(requestParameters: InviteUsersApiListInvitesRequest = {}, options?: AxiosRequestConfig) {
|
|
668
658
|
return InviteUsersApiFp(this.configuration).listInvites(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
669
659
|
}
|
|
670
660
|
}
|