@emilgroup/tenant-sdk-node 1.31.0 → 1.31.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/tenant-sdk-node@1.31.0 --save
20
+ npm install @emilgroup/tenant-sdk-node@1.31.1 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/tenant-sdk-node@1.31.0
24
+ yarn add @emilgroup/tenant-sdk-node@1.31.1
25
25
  ```
26
26
 
27
27
  And then you can import `UsersApi`.
@@ -141,17 +141,16 @@ export const OrganizationMigrationApiAxiosParamCreator = function (configuration
141
141
  /**
142
142
  * Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
143
143
  * @summary Get organization migration
144
- * @param {any} code Unique identifier for the object.
144
+ * @param {string} code Unique identifier for the object.
145
145
  * @param {string} [expand] Fields to expand response by
146
146
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
147
147
  * @param {*} [options] Override http request option.
148
148
  * @throws {RequiredError}
149
149
  */
150
- getOrganizationMigration: async (code: any, expand?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
150
+ getOrganizationMigration: async (code: string, expand?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
151
151
  // verify required parameter 'code' is not null or undefined
152
152
  assertParamExists('getOrganizationMigration', 'code', code)
153
153
  const localVarPath = `/tenantservice/v1/organization-migrations/{code}`
154
- .replace(`{${"expand"}}`, encodeURIComponent(String(expand)))
155
154
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
156
155
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
157
156
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -170,6 +169,10 @@ export const OrganizationMigrationApiAxiosParamCreator = function (configuration
170
169
  // http bearer authentication required
171
170
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
172
171
 
172
+ if (expand !== undefined) {
173
+ localVarQueryParameter['expand'] = expand;
174
+ }
175
+
173
176
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
174
177
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
175
178
  }
@@ -345,13 +348,13 @@ export const OrganizationMigrationApiFp = function(configuration?: Configuration
345
348
  /**
346
349
  * Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
347
350
  * @summary Get organization migration
348
- * @param {any} code Unique identifier for the object.
351
+ * @param {string} code Unique identifier for the object.
349
352
  * @param {string} [expand] Fields to expand response by
350
353
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
351
354
  * @param {*} [options] Override http request option.
352
355
  * @throws {RequiredError}
353
356
  */
354
- async getOrganizationMigration(code: any, expand?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrganizationMigrationResponseClass>> {
357
+ async getOrganizationMigration(code: string, expand?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrganizationMigrationResponseClass>> {
355
358
  const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationMigration(code, expand, authorization, options);
356
359
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
357
360
  },
@@ -420,13 +423,13 @@ export const OrganizationMigrationApiFactory = function (configuration?: Configu
420
423
  /**
421
424
  * Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
422
425
  * @summary Get organization migration
423
- * @param {any} code Unique identifier for the object.
426
+ * @param {string} code Unique identifier for the object.
424
427
  * @param {string} [expand] Fields to expand response by
425
428
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
426
429
  * @param {*} [options] Override http request option.
427
430
  * @throws {RequiredError}
428
431
  */
429
- getOrganizationMigration(code: any, expand?: string, authorization?: string, options?: any): AxiosPromise<GetOrganizationMigrationResponseClass> {
432
+ getOrganizationMigration(code: string, expand?: string, authorization?: string, options?: any): AxiosPromise<GetOrganizationMigrationResponseClass> {
430
433
  return localVarFp.getOrganizationMigration(code, expand, authorization, options).then((request) => request(axios, basePath));
431
434
  },
432
435
  /**
@@ -510,10 +513,10 @@ export interface OrganizationMigrationApiCreateResourcesMigrationRequest {
510
513
  export interface OrganizationMigrationApiGetOrganizationMigrationRequest {
511
514
  /**
512
515
  * Unique identifier for the object.
513
- * @type {any}
516
+ * @type {string}
514
517
  * @memberof OrganizationMigrationApiGetOrganizationMigration
515
518
  */
516
- readonly code: any
519
+ readonly code: string
517
520
 
518
521
  /**
519
522
  * Fields to expand response by
@@ -45,13 +45,13 @@ export declare const OrganizationMigrationApiAxiosParamCreator: (configuration?:
45
45
  /**
46
46
  * Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
47
47
  * @summary Get organization migration
48
- * @param {any} code Unique identifier for the object.
48
+ * @param {string} code Unique identifier for the object.
49
49
  * @param {string} [expand] Fields to expand response by
50
50
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
51
51
  * @param {*} [options] Override http request option.
52
52
  * @throws {RequiredError}
53
53
  */
54
- getOrganizationMigration: (code: any, expand?: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
54
+ getOrganizationMigration: (code: string, expand?: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
55
55
  /**
56
56
  * Retrieves a list of organization migrations **Required Permissions** \"tenant-management.organizations.view\"
57
57
  * @summary List organization migrations
@@ -103,13 +103,13 @@ export declare const OrganizationMigrationApiFp: (configuration?: Configuration)
103
103
  /**
104
104
  * Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
105
105
  * @summary Get organization migration
106
- * @param {any} code Unique identifier for the object.
106
+ * @param {string} code Unique identifier for the object.
107
107
  * @param {string} [expand] Fields to expand response by
108
108
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
109
109
  * @param {*} [options] Override http request option.
110
110
  * @throws {RequiredError}
111
111
  */
112
- getOrganizationMigration(code: any, expand?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrganizationMigrationResponseClass>>;
112
+ getOrganizationMigration(code: string, expand?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrganizationMigrationResponseClass>>;
113
113
  /**
114
114
  * Retrieves a list of organization migrations **Required Permissions** \"tenant-management.organizations.view\"
115
115
  * @summary List organization migrations
@@ -161,13 +161,13 @@ export declare const OrganizationMigrationApiFactory: (configuration?: Configura
161
161
  /**
162
162
  * Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
163
163
  * @summary Get organization migration
164
- * @param {any} code Unique identifier for the object.
164
+ * @param {string} code Unique identifier for the object.
165
165
  * @param {string} [expand] Fields to expand response by
166
166
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
167
167
  * @param {*} [options] Override http request option.
168
168
  * @throws {RequiredError}
169
169
  */
170
- getOrganizationMigration(code: any, expand?: string, authorization?: string, options?: any): AxiosPromise<GetOrganizationMigrationResponseClass>;
170
+ getOrganizationMigration(code: string, expand?: string, authorization?: string, options?: any): AxiosPromise<GetOrganizationMigrationResponseClass>;
171
171
  /**
172
172
  * Retrieves a list of organization migrations **Required Permissions** \"tenant-management.organizations.view\"
173
173
  * @summary List organization migrations
@@ -239,10 +239,10 @@ export interface OrganizationMigrationApiCreateResourcesMigrationRequest {
239
239
  export interface OrganizationMigrationApiGetOrganizationMigrationRequest {
240
240
  /**
241
241
  * Unique identifier for the object.
242
- * @type {any}
242
+ * @type {string}
243
243
  * @memberof OrganizationMigrationApiGetOrganizationMigration
244
244
  */
245
- readonly code: any;
245
+ readonly code: string;
246
246
  /**
247
247
  * Fields to expand response by
248
248
  * @type {string}
@@ -197,7 +197,7 @@ var OrganizationMigrationApiAxiosParamCreator = function (configuration) {
197
197
  /**
198
198
  * Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
199
199
  * @summary Get organization migration
200
- * @param {any} code Unique identifier for the object.
200
+ * @param {string} code Unique identifier for the object.
201
201
  * @param {string} [expand] Fields to expand response by
202
202
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
203
203
  * @param {*} [options] Override http request option.
@@ -213,7 +213,6 @@ var OrganizationMigrationApiAxiosParamCreator = function (configuration) {
213
213
  // verify required parameter 'code' is not null or undefined
214
214
  (0, common_1.assertParamExists)('getOrganizationMigration', 'code', code);
215
215
  localVarPath = "/tenantservice/v1/organization-migrations/{code}"
216
- .replace("{".concat("expand", "}"), encodeURIComponent(String(expand)))
217
216
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
218
217
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
219
218
  if (configuration) {
@@ -230,6 +229,9 @@ var OrganizationMigrationApiAxiosParamCreator = function (configuration) {
230
229
  // authentication bearer required
231
230
  // http bearer authentication required
232
231
  _a.sent();
232
+ if (expand !== undefined) {
233
+ localVarQueryParameter['expand'] = expand;
234
+ }
233
235
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
234
236
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
235
237
  }
@@ -420,7 +422,7 @@ var OrganizationMigrationApiFp = function (configuration) {
420
422
  /**
421
423
  * Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
422
424
  * @summary Get organization migration
423
- * @param {any} code Unique identifier for the object.
425
+ * @param {string} code Unique identifier for the object.
424
426
  * @param {string} [expand] Fields to expand response by
425
427
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
426
428
  * @param {*} [options] Override http request option.
@@ -522,7 +524,7 @@ var OrganizationMigrationApiFactory = function (configuration, basePath, axios)
522
524
  /**
523
525
  * Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
524
526
  * @summary Get organization migration
525
- * @param {any} code Unique identifier for the object.
527
+ * @param {string} code Unique identifier for the object.
526
528
  * @param {string} [expand] Fields to expand response by
527
529
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
528
530
  * @param {*} [options] Override http request option.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/tenant-sdk-node",
3
- "version": "1.31.0",
3
+ "version": "1.31.1",
4
4
  "description": "OpenAPI client for @emilgroup/tenant-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [