@emilgroup/tenant-sdk-node 1.0.1 → 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.
@@ -99,20 +99,18 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
99
99
  /**
100
100
  * Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
101
101
  * @summary Delete the invited user
102
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
103
102
  * @param {number} id
103
+ * @param {string} [authorization] Bearer Token
104
104
  * @param {*} [options] Override http request option.
105
105
  * @throws {RequiredError}
106
106
  */
107
- deleteInvite: function (authorization, id, options) {
107
+ deleteInvite: function (id, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
110
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
114
- // verify required parameter 'authorization' is not null or undefined
115
- (0, common_1.assertParamExists)('deleteInvite', 'authorization', authorization);
116
114
  // verify required parameter 'id' is not null or undefined
117
115
  (0, common_1.assertParamExists)('deleteInvite', 'id', id);
118
116
  localVarPath = "/tenantservice/v1/users/invites/{id}"
@@ -149,20 +147,18 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
149
147
  /**
150
148
  * 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.
151
149
  * @summary Delete invited users.
152
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
153
150
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
151
+ * @param {string} [authorization] Bearer Token
154
152
  * @param {*} [options] Override http request option.
155
153
  * @throws {RequiredError}
156
154
  */
157
- deleteInvites: function (authorization, batchDeleteRequestDto, options) {
155
+ deleteInvites: function (batchDeleteRequestDto, authorization, options) {
158
156
  if (options === void 0) { options = {}; }
159
157
  return __awaiter(_this, void 0, void 0, function () {
160
158
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
161
159
  return __generator(this, function (_a) {
162
160
  switch (_a.label) {
163
161
  case 0:
164
- // verify required parameter 'authorization' is not null or undefined
165
- (0, common_1.assertParamExists)('deleteInvites', 'authorization', authorization);
166
162
  // verify required parameter 'batchDeleteRequestDto' is not null or undefined
167
163
  (0, common_1.assertParamExists)('deleteInvites', 'batchDeleteRequestDto', batchDeleteRequestDto);
168
164
  localVarPath = "/tenantservice/v1/users/invites/delete-batch";
@@ -200,20 +196,18 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
200
196
  /**
201
197
  * This send an email to invite a user with the specific role/roles.
202
198
  * @summary Invite a user
203
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
204
199
  * @param {InviteUserRequestDto} inviteUserRequestDto
200
+ * @param {string} [authorization] Bearer Token
205
201
  * @param {*} [options] Override http request option.
206
202
  * @throws {RequiredError}
207
203
  */
208
- inviteUser: function (authorization, inviteUserRequestDto, options) {
204
+ inviteUser: function (inviteUserRequestDto, authorization, options) {
209
205
  if (options === void 0) { options = {}; }
210
206
  return __awaiter(_this, void 0, void 0, function () {
211
207
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
212
208
  return __generator(this, function (_a) {
213
209
  switch (_a.label) {
214
210
  case 0:
215
- // verify required parameter 'authorization' is not null or undefined
216
- (0, common_1.assertParamExists)('inviteUser', 'authorization', authorization);
217
211
  // verify required parameter 'inviteUserRequestDto' is not null or undefined
218
212
  (0, common_1.assertParamExists)('inviteUser', 'inviteUserRequestDto', inviteUserRequestDto);
219
213
  localVarPath = "/tenantservice/v1/users/invites";
@@ -251,20 +245,18 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
251
245
  /**
252
246
  * This send bulk emails to invite users with the specific role/roles.
253
247
  * @summary Invite batch of users
254
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
255
248
  * @param {InviteUsersRequestDto} inviteUsersRequestDto
249
+ * @param {string} [authorization] Bearer Token
256
250
  * @param {*} [options] Override http request option.
257
251
  * @throws {RequiredError}
258
252
  */
259
- inviteUsers: function (authorization, inviteUsersRequestDto, options) {
253
+ inviteUsers: function (inviteUsersRequestDto, authorization, options) {
260
254
  if (options === void 0) { options = {}; }
261
255
  return __awaiter(_this, void 0, void 0, function () {
262
256
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
263
257
  return __generator(this, function (_a) {
264
258
  switch (_a.label) {
265
259
  case 0:
266
- // verify required parameter 'authorization' is not null or undefined
267
- (0, common_1.assertParamExists)('inviteUsers', 'authorization', authorization);
268
260
  // verify required parameter 'inviteUsersRequestDto' is not null or undefined
269
261
  (0, common_1.assertParamExists)('inviteUsers', 'inviteUsersRequestDto', inviteUsersRequestDto);
270
262
  localVarPath = "/tenantservice/v1/users/invites/batch";
@@ -302,7 +294,7 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
302
294
  /**
303
295
  * 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.
304
296
  * @summary List invited users
305
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
297
+ * @param {string} [authorization] Bearer Token
306
298
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
307
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.
308
300
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -319,8 +311,6 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
319
311
  return __generator(this, function (_a) {
320
312
  switch (_a.label) {
321
313
  case 0:
322
- // verify required parameter 'authorization' is not null or undefined
323
- (0, common_1.assertParamExists)('listInvites', 'authorization', authorization);
324
314
  localVarPath = "/tenantservice/v1/users/invites";
325
315
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
326
316
  if (configuration) {
@@ -382,17 +372,17 @@ var InviteUsersApiFp = function (configuration) {
382
372
  /**
383
373
  * Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
384
374
  * @summary Delete the invited user
385
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
386
375
  * @param {number} id
376
+ * @param {string} [authorization] Bearer Token
387
377
  * @param {*} [options] Override http request option.
388
378
  * @throws {RequiredError}
389
379
  */
390
- deleteInvite: function (authorization, id, options) {
380
+ deleteInvite: function (id, authorization, options) {
391
381
  return __awaiter(this, void 0, void 0, function () {
392
382
  var localVarAxiosArgs;
393
383
  return __generator(this, function (_a) {
394
384
  switch (_a.label) {
395
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteInvite(authorization, id, options)];
385
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteInvite(id, authorization, options)];
396
386
  case 1:
397
387
  localVarAxiosArgs = _a.sent();
398
388
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -403,17 +393,17 @@ var InviteUsersApiFp = function (configuration) {
403
393
  /**
404
394
  * 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.
405
395
  * @summary Delete invited users.
406
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
407
396
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
397
+ * @param {string} [authorization] Bearer Token
408
398
  * @param {*} [options] Override http request option.
409
399
  * @throws {RequiredError}
410
400
  */
411
- deleteInvites: function (authorization, batchDeleteRequestDto, options) {
401
+ deleteInvites: function (batchDeleteRequestDto, authorization, options) {
412
402
  return __awaiter(this, void 0, void 0, function () {
413
403
  var localVarAxiosArgs;
414
404
  return __generator(this, function (_a) {
415
405
  switch (_a.label) {
416
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteInvites(authorization, batchDeleteRequestDto, options)];
406
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteInvites(batchDeleteRequestDto, authorization, options)];
417
407
  case 1:
418
408
  localVarAxiosArgs = _a.sent();
419
409
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -424,17 +414,17 @@ var InviteUsersApiFp = function (configuration) {
424
414
  /**
425
415
  * This send an email to invite a user with the specific role/roles.
426
416
  * @summary Invite a user
427
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
428
417
  * @param {InviteUserRequestDto} inviteUserRequestDto
418
+ * @param {string} [authorization] Bearer Token
429
419
  * @param {*} [options] Override http request option.
430
420
  * @throws {RequiredError}
431
421
  */
432
- inviteUser: function (authorization, inviteUserRequestDto, options) {
422
+ inviteUser: function (inviteUserRequestDto, authorization, options) {
433
423
  return __awaiter(this, void 0, void 0, function () {
434
424
  var localVarAxiosArgs;
435
425
  return __generator(this, function (_a) {
436
426
  switch (_a.label) {
437
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteUser(authorization, inviteUserRequestDto, options)];
427
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteUser(inviteUserRequestDto, authorization, options)];
438
428
  case 1:
439
429
  localVarAxiosArgs = _a.sent();
440
430
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -445,17 +435,17 @@ var InviteUsersApiFp = function (configuration) {
445
435
  /**
446
436
  * This send bulk emails to invite users with the specific role/roles.
447
437
  * @summary Invite batch of users
448
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
449
438
  * @param {InviteUsersRequestDto} inviteUsersRequestDto
439
+ * @param {string} [authorization] Bearer Token
450
440
  * @param {*} [options] Override http request option.
451
441
  * @throws {RequiredError}
452
442
  */
453
- inviteUsers: function (authorization, inviteUsersRequestDto, options) {
443
+ inviteUsers: function (inviteUsersRequestDto, authorization, options) {
454
444
  return __awaiter(this, void 0, void 0, function () {
455
445
  var localVarAxiosArgs;
456
446
  return __generator(this, function (_a) {
457
447
  switch (_a.label) {
458
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteUsers(authorization, inviteUsersRequestDto, options)];
448
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteUsers(inviteUsersRequestDto, authorization, options)];
459
449
  case 1:
460
450
  localVarAxiosArgs = _a.sent();
461
451
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -466,7 +456,7 @@ var InviteUsersApiFp = function (configuration) {
466
456
  /**
467
457
  * 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.
468
458
  * @summary List invited users
469
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
459
+ * @param {string} [authorization] Bearer Token
470
460
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
471
461
  * @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.
472
462
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -502,51 +492,51 @@ var InviteUsersApiFactory = function (configuration, basePath, axios) {
502
492
  /**
503
493
  * Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
504
494
  * @summary Delete the invited user
505
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
506
495
  * @param {number} id
496
+ * @param {string} [authorization] Bearer Token
507
497
  * @param {*} [options] Override http request option.
508
498
  * @throws {RequiredError}
509
499
  */
510
- deleteInvite: function (authorization, id, options) {
511
- return localVarFp.deleteInvite(authorization, id, options).then(function (request) { return request(axios, basePath); });
500
+ deleteInvite: function (id, authorization, options) {
501
+ return localVarFp.deleteInvite(id, authorization, options).then(function (request) { return request(axios, basePath); });
512
502
  },
513
503
  /**
514
504
  * 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.
515
505
  * @summary Delete invited users.
516
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
517
506
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
507
+ * @param {string} [authorization] Bearer Token
518
508
  * @param {*} [options] Override http request option.
519
509
  * @throws {RequiredError}
520
510
  */
521
- deleteInvites: function (authorization, batchDeleteRequestDto, options) {
522
- return localVarFp.deleteInvites(authorization, batchDeleteRequestDto, options).then(function (request) { return request(axios, basePath); });
511
+ deleteInvites: function (batchDeleteRequestDto, authorization, options) {
512
+ return localVarFp.deleteInvites(batchDeleteRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
523
513
  },
524
514
  /**
525
515
  * This send an email to invite a user with the specific role/roles.
526
516
  * @summary Invite a user
527
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
528
517
  * @param {InviteUserRequestDto} inviteUserRequestDto
518
+ * @param {string} [authorization] Bearer Token
529
519
  * @param {*} [options] Override http request option.
530
520
  * @throws {RequiredError}
531
521
  */
532
- inviteUser: function (authorization, inviteUserRequestDto, options) {
533
- return localVarFp.inviteUser(authorization, inviteUserRequestDto, options).then(function (request) { return request(axios, basePath); });
522
+ inviteUser: function (inviteUserRequestDto, authorization, options) {
523
+ return localVarFp.inviteUser(inviteUserRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
534
524
  },
535
525
  /**
536
526
  * This send bulk emails to invite users with the specific role/roles.
537
527
  * @summary Invite batch of users
538
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
539
528
  * @param {InviteUsersRequestDto} inviteUsersRequestDto
529
+ * @param {string} [authorization] Bearer Token
540
530
  * @param {*} [options] Override http request option.
541
531
  * @throws {RequiredError}
542
532
  */
543
- inviteUsers: function (authorization, inviteUsersRequestDto, options) {
544
- return localVarFp.inviteUsers(authorization, inviteUsersRequestDto, options).then(function (request) { return request(axios, basePath); });
533
+ inviteUsers: function (inviteUsersRequestDto, authorization, options) {
534
+ return localVarFp.inviteUsers(inviteUsersRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
545
535
  },
546
536
  /**
547
537
  * 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.
548
538
  * @summary List invited users
549
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
539
+ * @param {string} [authorization] Bearer Token
550
540
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
551
541
  * @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.
552
542
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -583,7 +573,7 @@ var InviteUsersApi = /** @class */ (function (_super) {
583
573
  */
584
574
  InviteUsersApi.prototype.deleteInvite = function (requestParameters, options) {
585
575
  var _this = this;
586
- return (0, exports.InviteUsersApiFp)(this.configuration).deleteInvite(requestParameters.authorization, requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
576
+ return (0, exports.InviteUsersApiFp)(this.configuration).deleteInvite(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
587
577
  };
588
578
  /**
589
579
  * 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.
@@ -595,7 +585,7 @@ var InviteUsersApi = /** @class */ (function (_super) {
595
585
  */
596
586
  InviteUsersApi.prototype.deleteInvites = function (requestParameters, options) {
597
587
  var _this = this;
598
- return (0, exports.InviteUsersApiFp)(this.configuration).deleteInvites(requestParameters.authorization, requestParameters.batchDeleteRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
588
+ return (0, exports.InviteUsersApiFp)(this.configuration).deleteInvites(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
599
589
  };
600
590
  /**
601
591
  * This send an email to invite a user with the specific role/roles.
@@ -607,7 +597,7 @@ var InviteUsersApi = /** @class */ (function (_super) {
607
597
  */
608
598
  InviteUsersApi.prototype.inviteUser = function (requestParameters, options) {
609
599
  var _this = this;
610
- return (0, exports.InviteUsersApiFp)(this.configuration).inviteUser(requestParameters.authorization, requestParameters.inviteUserRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
600
+ return (0, exports.InviteUsersApiFp)(this.configuration).inviteUser(requestParameters.inviteUserRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
611
601
  };
612
602
  /**
613
603
  * This send bulk emails to invite users with the specific role/roles.
@@ -619,7 +609,7 @@ var InviteUsersApi = /** @class */ (function (_super) {
619
609
  */
620
610
  InviteUsersApi.prototype.inviteUsers = function (requestParameters, options) {
621
611
  var _this = this;
622
- return (0, exports.InviteUsersApiFp)(this.configuration).inviteUsers(requestParameters.authorization, requestParameters.inviteUsersRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
612
+ return (0, exports.InviteUsersApiFp)(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
623
613
  };
624
614
  /**
625
615
  * 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.
@@ -631,6 +621,7 @@ var InviteUsersApi = /** @class */ (function (_super) {
631
621
  */
632
622
  InviteUsersApi.prototype.listInvites = function (requestParameters, options) {
633
623
  var _this = this;
624
+ if (requestParameters === void 0) { requestParameters = {}; }
634
625
  return (0, exports.InviteUsersApiFp)(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); });
635
626
  };
636
627
  return InviteUsersApi;
@@ -22,16 +22,16 @@ export declare const OrganizationsApiAxiosParamCreator: (configuration?: Configu
22
22
  /**
23
23
  * Get Organization by code
24
24
  * @summary Retrieve the Organization
25
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
26
25
  * @param {string} code
26
+ * @param {string} [authorization] Bearer Token
27
27
  * @param {*} [options] Override http request option.
28
28
  * @throws {RequiredError}
29
29
  */
30
- getOrganization: (authorization: string, code: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
+ getOrganization: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
31
  /**
32
32
  * This will fetch list of organizations
33
33
  * @summary List organizations
34
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
34
+ * @param {string} [authorization] Bearer Token
35
35
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
36
36
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
37
37
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -41,7 +41,7 @@ export declare const OrganizationsApiAxiosParamCreator: (configuration?: Configu
41
41
  * @param {*} [options] Override http request option.
42
42
  * @throws {RequiredError}
43
43
  */
44
- listOrganizations: (authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
+ listOrganizations: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
45
  };
46
46
  /**
47
47
  * OrganizationsApi - functional programming interface
@@ -51,16 +51,16 @@ export declare const OrganizationsApiFp: (configuration?: Configuration) => {
51
51
  /**
52
52
  * Get Organization by code
53
53
  * @summary Retrieve the Organization
54
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
55
54
  * @param {string} code
55
+ * @param {string} [authorization] Bearer Token
56
56
  * @param {*} [options] Override http request option.
57
57
  * @throws {RequiredError}
58
58
  */
59
- getOrganization(authorization: string, code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrganizationResponseClass>>;
59
+ getOrganization(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrganizationResponseClass>>;
60
60
  /**
61
61
  * This will fetch list of organizations
62
62
  * @summary List organizations
63
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
63
+ * @param {string} [authorization] Bearer Token
64
64
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
65
65
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
66
66
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -70,7 +70,7 @@ export declare const OrganizationsApiFp: (configuration?: Configuration) => {
70
70
  * @param {*} [options] Override http request option.
71
71
  * @throws {RequiredError}
72
72
  */
73
- listOrganizations(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOrganizationsResponseClass>>;
73
+ listOrganizations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOrganizationsResponseClass>>;
74
74
  };
75
75
  /**
76
76
  * OrganizationsApi - factory interface
@@ -80,16 +80,16 @@ export declare const OrganizationsApiFactory: (configuration?: Configuration, ba
80
80
  /**
81
81
  * Get Organization by code
82
82
  * @summary Retrieve the Organization
83
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
84
83
  * @param {string} code
84
+ * @param {string} [authorization] Bearer Token
85
85
  * @param {*} [options] Override http request option.
86
86
  * @throws {RequiredError}
87
87
  */
88
- getOrganization(authorization: string, code: string, options?: any): AxiosPromise<GetOrganizationResponseClass>;
88
+ getOrganization(code: string, authorization?: string, options?: any): AxiosPromise<GetOrganizationResponseClass>;
89
89
  /**
90
90
  * This will fetch list of organizations
91
91
  * @summary List organizations
92
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
92
+ * @param {string} [authorization] Bearer Token
93
93
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
94
94
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
95
95
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -99,7 +99,7 @@ export declare const OrganizationsApiFactory: (configuration?: Configuration, ba
99
99
  * @param {*} [options] Override http request option.
100
100
  * @throws {RequiredError}
101
101
  */
102
- listOrganizations(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListOrganizationsResponseClass>;
102
+ listOrganizations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListOrganizationsResponseClass>;
103
103
  };
104
104
  /**
105
105
  * Request parameters for getOrganization operation in OrganizationsApi.
@@ -108,17 +108,17 @@ export declare const OrganizationsApiFactory: (configuration?: Configuration, ba
108
108
  */
109
109
  export interface OrganizationsApiGetOrganizationRequest {
110
110
  /**
111
- * Bearer Token: provided by the login endpoint under the name accessToken.
111
+ *
112
112
  * @type {string}
113
113
  * @memberof OrganizationsApiGetOrganization
114
114
  */
115
- readonly authorization: string;
115
+ readonly code: string;
116
116
  /**
117
- *
117
+ * Bearer Token
118
118
  * @type {string}
119
119
  * @memberof OrganizationsApiGetOrganization
120
120
  */
121
- readonly code: string;
121
+ readonly authorization?: string;
122
122
  }
123
123
  /**
124
124
  * Request parameters for listOrganizations operation in OrganizationsApi.
@@ -127,11 +127,11 @@ export interface OrganizationsApiGetOrganizationRequest {
127
127
  */
128
128
  export interface OrganizationsApiListOrganizationsRequest {
129
129
  /**
130
- * Bearer Token: provided by the login endpoint under the name accessToken.
130
+ * Bearer Token
131
131
  * @type {string}
132
132
  * @memberof OrganizationsApiListOrganizations
133
133
  */
134
- readonly authorization: string;
134
+ readonly authorization?: string;
135
135
  /**
136
136
  * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
137
137
  * @type {any}
@@ -193,5 +193,5 @@ export declare class OrganizationsApi extends BaseAPI {
193
193
  * @throws {RequiredError}
194
194
  * @memberof OrganizationsApi
195
195
  */
196
- listOrganizations(requestParameters: OrganizationsApiListOrganizationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListOrganizationsResponseClass, any>>;
196
+ listOrganizations(requestParameters?: OrganizationsApiListOrganizationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListOrganizationsResponseClass, any>>;
197
197
  }
@@ -99,20 +99,18 @@ var OrganizationsApiAxiosParamCreator = function (configuration) {
99
99
  /**
100
100
  * Get Organization by code
101
101
  * @summary Retrieve the Organization
102
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
103
102
  * @param {string} code
103
+ * @param {string} [authorization] Bearer Token
104
104
  * @param {*} [options] Override http request option.
105
105
  * @throws {RequiredError}
106
106
  */
107
- getOrganization: function (authorization, code, options) {
107
+ getOrganization: function (code, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
110
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
114
- // verify required parameter 'authorization' is not null or undefined
115
- (0, common_1.assertParamExists)('getOrganization', 'authorization', authorization);
116
114
  // verify required parameter 'code' is not null or undefined
117
115
  (0, common_1.assertParamExists)('getOrganization', 'code', code);
118
116
  localVarPath = "/tenantservice/v1/organizations/{code}"
@@ -149,7 +147,7 @@ var OrganizationsApiAxiosParamCreator = function (configuration) {
149
147
  /**
150
148
  * This will fetch list of organizations
151
149
  * @summary List organizations
152
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
150
+ * @param {string} [authorization] Bearer Token
153
151
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
154
152
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
155
153
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -166,8 +164,6 @@ var OrganizationsApiAxiosParamCreator = function (configuration) {
166
164
  return __generator(this, function (_a) {
167
165
  switch (_a.label) {
168
166
  case 0:
169
- // verify required parameter 'authorization' is not null or undefined
170
- (0, common_1.assertParamExists)('listOrganizations', 'authorization', authorization);
171
167
  localVarPath = "/tenantservice/v1/organizations";
172
168
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
173
169
  if (configuration) {
@@ -229,17 +225,17 @@ var OrganizationsApiFp = function (configuration) {
229
225
  /**
230
226
  * Get Organization by code
231
227
  * @summary Retrieve the Organization
232
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
233
228
  * @param {string} code
229
+ * @param {string} [authorization] Bearer Token
234
230
  * @param {*} [options] Override http request option.
235
231
  * @throws {RequiredError}
236
232
  */
237
- getOrganization: function (authorization, code, options) {
233
+ getOrganization: function (code, authorization, options) {
238
234
  return __awaiter(this, void 0, void 0, function () {
239
235
  var localVarAxiosArgs;
240
236
  return __generator(this, function (_a) {
241
237
  switch (_a.label) {
242
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getOrganization(authorization, code, options)];
238
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getOrganization(code, authorization, options)];
243
239
  case 1:
244
240
  localVarAxiosArgs = _a.sent();
245
241
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -250,7 +246,7 @@ var OrganizationsApiFp = function (configuration) {
250
246
  /**
251
247
  * This will fetch list of organizations
252
248
  * @summary List organizations
253
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
249
+ * @param {string} [authorization] Bearer Token
254
250
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
255
251
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
256
252
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -286,18 +282,18 @@ var OrganizationsApiFactory = function (configuration, basePath, axios) {
286
282
  /**
287
283
  * Get Organization by code
288
284
  * @summary Retrieve the Organization
289
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
290
285
  * @param {string} code
286
+ * @param {string} [authorization] Bearer Token
291
287
  * @param {*} [options] Override http request option.
292
288
  * @throws {RequiredError}
293
289
  */
294
- getOrganization: function (authorization, code, options) {
295
- return localVarFp.getOrganization(authorization, code, options).then(function (request) { return request(axios, basePath); });
290
+ getOrganization: function (code, authorization, options) {
291
+ return localVarFp.getOrganization(code, authorization, options).then(function (request) { return request(axios, basePath); });
296
292
  },
297
293
  /**
298
294
  * This will fetch list of organizations
299
295
  * @summary List organizations
300
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
296
+ * @param {string} [authorization] Bearer Token
301
297
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
302
298
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
303
299
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -334,7 +330,7 @@ var OrganizationsApi = /** @class */ (function (_super) {
334
330
  */
335
331
  OrganizationsApi.prototype.getOrganization = function (requestParameters, options) {
336
332
  var _this = this;
337
- return (0, exports.OrganizationsApiFp)(this.configuration).getOrganization(requestParameters.authorization, requestParameters.code, options).then(function (request) { return request(_this.axios, _this.basePath); });
333
+ return (0, exports.OrganizationsApiFp)(this.configuration).getOrganization(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
338
334
  };
339
335
  /**
340
336
  * This will fetch list of organizations
@@ -346,6 +342,7 @@ var OrganizationsApi = /** @class */ (function (_super) {
346
342
  */
347
343
  OrganizationsApi.prototype.listOrganizations = function (requestParameters, options) {
348
344
  var _this = this;
345
+ if (requestParameters === void 0) { requestParameters = {}; }
349
346
  return (0, exports.OrganizationsApiFp)(this.configuration).listOrganizations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
350
347
  };
351
348
  return OrganizationsApi;