@emilgroup/tenant-sdk 1.32.0 → 1.32.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@1.32.
|
|
20
|
+
npm install @emilgroup/tenant-sdk@1.32.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/tenant-sdk@1.32.
|
|
24
|
+
yarn add @emilgroup/tenant-sdk@1.32.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `UsersApi`.
|
|
@@ -137,17 +137,16 @@ export const OrganizationMigrationApiAxiosParamCreator = function (configuration
|
|
|
137
137
|
/**
|
|
138
138
|
* Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
|
|
139
139
|
* @summary Get organization migration
|
|
140
|
-
* @param {
|
|
140
|
+
* @param {string} code Unique identifier for the object.
|
|
141
141
|
* @param {string} [expand] Fields to expand response by
|
|
142
142
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
143
143
|
* @param {*} [options] Override http request option.
|
|
144
144
|
* @throws {RequiredError}
|
|
145
145
|
*/
|
|
146
|
-
getOrganizationMigration: async (code:
|
|
146
|
+
getOrganizationMigration: async (code: string, expand?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
147
147
|
// verify required parameter 'code' is not null or undefined
|
|
148
148
|
assertParamExists('getOrganizationMigration', 'code', code)
|
|
149
149
|
const localVarPath = `/tenantservice/v1/organization-migrations/{code}`
|
|
150
|
-
.replace(`{${"expand"}}`, encodeURIComponent(String(expand)))
|
|
151
150
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
152
151
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
153
152
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -166,6 +165,10 @@ export const OrganizationMigrationApiAxiosParamCreator = function (configuration
|
|
|
166
165
|
// http bearer authentication required
|
|
167
166
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
168
167
|
|
|
168
|
+
if (expand !== undefined) {
|
|
169
|
+
localVarQueryParameter['expand'] = expand;
|
|
170
|
+
}
|
|
171
|
+
|
|
169
172
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
170
173
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
171
174
|
}
|
|
@@ -341,13 +344,13 @@ export const OrganizationMigrationApiFp = function(configuration?: Configuration
|
|
|
341
344
|
/**
|
|
342
345
|
* Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
|
|
343
346
|
* @summary Get organization migration
|
|
344
|
-
* @param {
|
|
347
|
+
* @param {string} code Unique identifier for the object.
|
|
345
348
|
* @param {string} [expand] Fields to expand response by
|
|
346
349
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
347
350
|
* @param {*} [options] Override http request option.
|
|
348
351
|
* @throws {RequiredError}
|
|
349
352
|
*/
|
|
350
|
-
async getOrganizationMigration(code:
|
|
353
|
+
async getOrganizationMigration(code: string, expand?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrganizationMigrationResponseClass>> {
|
|
351
354
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationMigration(code, expand, authorization, options);
|
|
352
355
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
353
356
|
},
|
|
@@ -416,13 +419,13 @@ export const OrganizationMigrationApiFactory = function (configuration?: Configu
|
|
|
416
419
|
/**
|
|
417
420
|
* Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
|
|
418
421
|
* @summary Get organization migration
|
|
419
|
-
* @param {
|
|
422
|
+
* @param {string} code Unique identifier for the object.
|
|
420
423
|
* @param {string} [expand] Fields to expand response by
|
|
421
424
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
422
425
|
* @param {*} [options] Override http request option.
|
|
423
426
|
* @throws {RequiredError}
|
|
424
427
|
*/
|
|
425
|
-
getOrganizationMigration(code:
|
|
428
|
+
getOrganizationMigration(code: string, expand?: string, authorization?: string, options?: any): AxiosPromise<GetOrganizationMigrationResponseClass> {
|
|
426
429
|
return localVarFp.getOrganizationMigration(code, expand, authorization, options).then((request) => request(axios, basePath));
|
|
427
430
|
},
|
|
428
431
|
/**
|
|
@@ -506,10 +509,10 @@ export interface OrganizationMigrationApiCreateResourcesMigrationRequest {
|
|
|
506
509
|
export interface OrganizationMigrationApiGetOrganizationMigrationRequest {
|
|
507
510
|
/**
|
|
508
511
|
* Unique identifier for the object.
|
|
509
|
-
* @type {
|
|
512
|
+
* @type {string}
|
|
510
513
|
* @memberof OrganizationMigrationApiGetOrganizationMigration
|
|
511
514
|
*/
|
|
512
|
-
readonly code:
|
|
515
|
+
readonly code: string
|
|
513
516
|
|
|
514
517
|
/**
|
|
515
518
|
* 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 {
|
|
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:
|
|
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 {
|
|
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:
|
|
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 {
|
|
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:
|
|
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 {
|
|
242
|
+
* @type {string}
|
|
243
243
|
* @memberof OrganizationMigrationApiGetOrganizationMigration
|
|
244
244
|
*/
|
|
245
|
-
readonly code:
|
|
245
|
+
readonly code: string;
|
|
246
246
|
/**
|
|
247
247
|
* Fields to expand response by
|
|
248
248
|
* @type {string}
|
|
@@ -193,7 +193,7 @@ var OrganizationMigrationApiAxiosParamCreator = function (configuration) {
|
|
|
193
193
|
/**
|
|
194
194
|
* Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
|
|
195
195
|
* @summary Get organization migration
|
|
196
|
-
* @param {
|
|
196
|
+
* @param {string} code Unique identifier for the object.
|
|
197
197
|
* @param {string} [expand] Fields to expand response by
|
|
198
198
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
199
199
|
* @param {*} [options] Override http request option.
|
|
@@ -209,7 +209,6 @@ var OrganizationMigrationApiAxiosParamCreator = function (configuration) {
|
|
|
209
209
|
// verify required parameter 'code' is not null or undefined
|
|
210
210
|
(0, common_1.assertParamExists)('getOrganizationMigration', 'code', code);
|
|
211
211
|
localVarPath = "/tenantservice/v1/organization-migrations/{code}"
|
|
212
|
-
.replace("{".concat("expand", "}"), encodeURIComponent(String(expand)))
|
|
213
212
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
214
213
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
215
214
|
if (configuration) {
|
|
@@ -226,6 +225,9 @@ var OrganizationMigrationApiAxiosParamCreator = function (configuration) {
|
|
|
226
225
|
// authentication bearer required
|
|
227
226
|
// http bearer authentication required
|
|
228
227
|
_a.sent();
|
|
228
|
+
if (expand !== undefined) {
|
|
229
|
+
localVarQueryParameter['expand'] = expand;
|
|
230
|
+
}
|
|
229
231
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
230
232
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
231
233
|
}
|
|
@@ -416,7 +418,7 @@ var OrganizationMigrationApiFp = function (configuration) {
|
|
|
416
418
|
/**
|
|
417
419
|
* Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
|
|
418
420
|
* @summary Get organization migration
|
|
419
|
-
* @param {
|
|
421
|
+
* @param {string} code Unique identifier for the object.
|
|
420
422
|
* @param {string} [expand] Fields to expand response by
|
|
421
423
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
422
424
|
* @param {*} [options] Override http request option.
|
|
@@ -518,7 +520,7 @@ var OrganizationMigrationApiFactory = function (configuration, basePath, axios)
|
|
|
518
520
|
/**
|
|
519
521
|
* Retrieves an organization migration by its code. **Required Permissions** \"tenant-management.organizations.view\"
|
|
520
522
|
* @summary Get organization migration
|
|
521
|
-
* @param {
|
|
523
|
+
* @param {string} code Unique identifier for the object.
|
|
522
524
|
* @param {string} [expand] Fields to expand response by
|
|
523
525
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
524
526
|
* @param {*} [options] Override http request option.
|