@emilgroup/tenant-sdk 1.42.1-beta.30 → 1.42.1-beta.31

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.42.1-beta.30 --save
20
+ npm install @emilgroup/tenant-sdk@1.42.1-beta.31 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/tenant-sdk@1.42.1-beta.30
24
+ yarn add @emilgroup/tenant-sdk@1.42.1-beta.31
25
25
  ```
26
26
 
27
27
  And then you can import `UsersApi`.
@@ -125,6 +125,51 @@ export const TestTenantPoolApiAxiosParamCreator = function (configuration?: Conf
125
125
 
126
126
 
127
127
 
128
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
129
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
130
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
131
+
132
+ return {
133
+ url: toPathString(localVarUrlObj),
134
+ options: localVarRequestOptions,
135
+ };
136
+ },
137
+ /**
138
+ * Operator escape hatch for a pool tenant stuck in reset_failed: forces it straight to available, clearing lease/cleanup-job state, without re-running cleanup -- unlike retrigger-cleanup. Only use this once the underlying data has been handled some other way, since it skips cleanup entirely. Refused for any other status. **Required Permissions** \"tenant-management.tenants.update\"
139
+ * @summary Force a pool tenant back to available
140
+ * @param {string} tenantSlug The slug of the tenant it was registered under.
141
+ * @param {string} [authorization] Bearer Token
142
+ * @param {*} [options] Override http request option.
143
+ * @throws {RequiredError}
144
+ */
145
+ forceAvailable: async (tenantSlug: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
146
+ // verify required parameter 'tenantSlug' is not null or undefined
147
+ assertParamExists('forceAvailable', 'tenantSlug', tenantSlug)
148
+ const localVarPath = `/tenantservice/v1/test-tenant-pool/{tenantSlug}/force-available`
149
+ .replace(`{${"tenantSlug"}}`, encodeURIComponent(String(tenantSlug)));
150
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
151
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
152
+ let baseOptions;
153
+ let baseAccessToken;
154
+ if (configuration) {
155
+ baseOptions = configuration.baseOptions;
156
+ baseAccessToken = configuration.accessToken;
157
+ }
158
+
159
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
160
+ const localVarHeaderParameter = {} as any;
161
+ const localVarQueryParameter = {} as any;
162
+
163
+ // authentication bearer required
164
+ // http bearer authentication required
165
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
166
+
167
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
168
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
169
+ }
170
+
171
+
172
+
128
173
  setSearchParams(localVarUrlObj, localVarQueryParameter);
129
174
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
130
175
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -620,6 +665,18 @@ export const TestTenantPoolApiFp = function(configuration?: Configuration) {
620
665
  const localVarAxiosArgs = await localVarAxiosParamCreator.deregister(tenantSlug, authorization, options);
621
666
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
622
667
  },
668
+ /**
669
+ * Operator escape hatch for a pool tenant stuck in reset_failed: forces it straight to available, clearing lease/cleanup-job state, without re-running cleanup -- unlike retrigger-cleanup. Only use this once the underlying data has been handled some other way, since it skips cleanup entirely. Refused for any other status. **Required Permissions** \"tenant-management.tenants.update\"
670
+ * @summary Force a pool tenant back to available
671
+ * @param {string} tenantSlug The slug of the tenant it was registered under.
672
+ * @param {string} [authorization] Bearer Token
673
+ * @param {*} [options] Override http request option.
674
+ * @throws {RequiredError}
675
+ */
676
+ async forceAvailable(tenantSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PoolTenantResponseClass>> {
677
+ const localVarAxiosArgs = await localVarAxiosParamCreator.forceAvailable(tenantSlug, authorization, options);
678
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
679
+ },
623
680
  /**
624
681
  * Returns the single, shared configuration describing which database entities get hard-deleted when a pool tenant is cleaned up after release. **Required Permissions** \"tenant-management.tenants.view\"
625
682
  * @summary Read the shared cleanup registry
@@ -771,6 +828,17 @@ export const TestTenantPoolApiFactory = function (configuration?: Configuration,
771
828
  deregister(tenantSlug: string, authorization?: string, options?: any): AxiosPromise<void> {
772
829
  return localVarFp.deregister(tenantSlug, authorization, options).then((request) => request(axios, basePath));
773
830
  },
831
+ /**
832
+ * Operator escape hatch for a pool tenant stuck in reset_failed: forces it straight to available, clearing lease/cleanup-job state, without re-running cleanup -- unlike retrigger-cleanup. Only use this once the underlying data has been handled some other way, since it skips cleanup entirely. Refused for any other status. **Required Permissions** \"tenant-management.tenants.update\"
833
+ * @summary Force a pool tenant back to available
834
+ * @param {string} tenantSlug The slug of the tenant it was registered under.
835
+ * @param {string} [authorization] Bearer Token
836
+ * @param {*} [options] Override http request option.
837
+ * @throws {RequiredError}
838
+ */
839
+ forceAvailable(tenantSlug: string, authorization?: string, options?: any): AxiosPromise<PoolTenantResponseClass> {
840
+ return localVarFp.forceAvailable(tenantSlug, authorization, options).then((request) => request(axios, basePath));
841
+ },
774
842
  /**
775
843
  * Returns the single, shared configuration describing which database entities get hard-deleted when a pool tenant is cleaned up after release. **Required Permissions** \"tenant-management.tenants.view\"
776
844
  * @summary Read the shared cleanup registry
@@ -925,6 +993,27 @@ export interface TestTenantPoolApiDeregisterRequest {
925
993
  readonly authorization?: string
926
994
  }
927
995
 
996
+ /**
997
+ * Request parameters for forceAvailable operation in TestTenantPoolApi.
998
+ * @export
999
+ * @interface TestTenantPoolApiForceAvailableRequest
1000
+ */
1001
+ export interface TestTenantPoolApiForceAvailableRequest {
1002
+ /**
1003
+ * The slug of the tenant it was registered under.
1004
+ * @type {string}
1005
+ * @memberof TestTenantPoolApiForceAvailable
1006
+ */
1007
+ readonly tenantSlug: string
1008
+
1009
+ /**
1010
+ * Bearer Token
1011
+ * @type {string}
1012
+ * @memberof TestTenantPoolApiForceAvailable
1013
+ */
1014
+ readonly authorization?: string
1015
+ }
1016
+
928
1017
  /**
929
1018
  * Request parameters for getCleanupRegistry operation in TestTenantPoolApi.
930
1019
  * @export
@@ -1159,6 +1248,18 @@ export class TestTenantPoolApi extends BaseAPI {
1159
1248
  return TestTenantPoolApiFp(this.configuration).deregister(requestParameters.tenantSlug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1160
1249
  }
1161
1250
 
1251
+ /**
1252
+ * Operator escape hatch for a pool tenant stuck in reset_failed: forces it straight to available, clearing lease/cleanup-job state, without re-running cleanup -- unlike retrigger-cleanup. Only use this once the underlying data has been handled some other way, since it skips cleanup entirely. Refused for any other status. **Required Permissions** \"tenant-management.tenants.update\"
1253
+ * @summary Force a pool tenant back to available
1254
+ * @param {TestTenantPoolApiForceAvailableRequest} requestParameters Request parameters.
1255
+ * @param {*} [options] Override http request option.
1256
+ * @throws {RequiredError}
1257
+ * @memberof TestTenantPoolApi
1258
+ */
1259
+ public forceAvailable(requestParameters: TestTenantPoolApiForceAvailableRequest, options?: AxiosRequestConfig) {
1260
+ return TestTenantPoolApiFp(this.configuration).forceAvailable(requestParameters.tenantSlug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1261
+ }
1262
+
1162
1263
  /**
1163
1264
  * Returns the single, shared configuration describing which database entities get hard-deleted when a pool tenant is cleaned up after release. **Required Permissions** \"tenant-management.tenants.view\"
1164
1265
  * @summary Read the shared cleanup registry
@@ -43,6 +43,15 @@ export declare const TestTenantPoolApiAxiosParamCreator: (configuration?: Config
43
43
  * @throws {RequiredError}
44
44
  */
45
45
  deregister: (tenantSlug: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
46
+ /**
47
+ * Operator escape hatch for a pool tenant stuck in reset_failed: forces it straight to available, clearing lease/cleanup-job state, without re-running cleanup -- unlike retrigger-cleanup. Only use this once the underlying data has been handled some other way, since it skips cleanup entirely. Refused for any other status. **Required Permissions** \"tenant-management.tenants.update\"
48
+ * @summary Force a pool tenant back to available
49
+ * @param {string} tenantSlug The slug of the tenant it was registered under.
50
+ * @param {string} [authorization] Bearer Token
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ */
54
+ forceAvailable: (tenantSlug: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
46
55
  /**
47
56
  * Returns the single, shared configuration describing which database entities get hard-deleted when a pool tenant is cleaned up after release. **Required Permissions** \"tenant-management.tenants.view\"
48
57
  * @summary Read the shared cleanup registry
@@ -156,6 +165,15 @@ export declare const TestTenantPoolApiFp: (configuration?: Configuration) => {
156
165
  * @throws {RequiredError}
157
166
  */
158
167
  deregister(tenantSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
168
+ /**
169
+ * Operator escape hatch for a pool tenant stuck in reset_failed: forces it straight to available, clearing lease/cleanup-job state, without re-running cleanup -- unlike retrigger-cleanup. Only use this once the underlying data has been handled some other way, since it skips cleanup entirely. Refused for any other status. **Required Permissions** \"tenant-management.tenants.update\"
170
+ * @summary Force a pool tenant back to available
171
+ * @param {string} tenantSlug The slug of the tenant it was registered under.
172
+ * @param {string} [authorization] Bearer Token
173
+ * @param {*} [options] Override http request option.
174
+ * @throws {RequiredError}
175
+ */
176
+ forceAvailable(tenantSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PoolTenantResponseClass>>;
159
177
  /**
160
178
  * Returns the single, shared configuration describing which database entities get hard-deleted when a pool tenant is cleaned up after release. **Required Permissions** \"tenant-management.tenants.view\"
161
179
  * @summary Read the shared cleanup registry
@@ -269,6 +287,15 @@ export declare const TestTenantPoolApiFactory: (configuration?: Configuration, b
269
287
  * @throws {RequiredError}
270
288
  */
271
289
  deregister(tenantSlug: string, authorization?: string, options?: any): AxiosPromise<void>;
290
+ /**
291
+ * Operator escape hatch for a pool tenant stuck in reset_failed: forces it straight to available, clearing lease/cleanup-job state, without re-running cleanup -- unlike retrigger-cleanup. Only use this once the underlying data has been handled some other way, since it skips cleanup entirely. Refused for any other status. **Required Permissions** \"tenant-management.tenants.update\"
292
+ * @summary Force a pool tenant back to available
293
+ * @param {string} tenantSlug The slug of the tenant it was registered under.
294
+ * @param {string} [authorization] Bearer Token
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ forceAvailable(tenantSlug: string, authorization?: string, options?: any): AxiosPromise<PoolTenantResponseClass>;
272
299
  /**
273
300
  * Returns the single, shared configuration describing which database entities get hard-deleted when a pool tenant is cleaned up after release. **Required Permissions** \"tenant-management.tenants.view\"
274
301
  * @summary Read the shared cleanup registry
@@ -397,6 +424,25 @@ export interface TestTenantPoolApiDeregisterRequest {
397
424
  */
398
425
  readonly authorization?: string;
399
426
  }
427
+ /**
428
+ * Request parameters for forceAvailable operation in TestTenantPoolApi.
429
+ * @export
430
+ * @interface TestTenantPoolApiForceAvailableRequest
431
+ */
432
+ export interface TestTenantPoolApiForceAvailableRequest {
433
+ /**
434
+ * The slug of the tenant it was registered under.
435
+ * @type {string}
436
+ * @memberof TestTenantPoolApiForceAvailable
437
+ */
438
+ readonly tenantSlug: string;
439
+ /**
440
+ * Bearer Token
441
+ * @type {string}
442
+ * @memberof TestTenantPoolApiForceAvailable
443
+ */
444
+ readonly authorization?: string;
445
+ }
400
446
  /**
401
447
  * Request parameters for getCleanupRegistry operation in TestTenantPoolApi.
402
448
  * @export
@@ -606,6 +652,15 @@ export declare class TestTenantPoolApi extends BaseAPI {
606
652
  * @memberof TestTenantPoolApi
607
653
  */
608
654
  deregister(requestParameters: TestTenantPoolApiDeregisterRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
655
+ /**
656
+ * Operator escape hatch for a pool tenant stuck in reset_failed: forces it straight to available, clearing lease/cleanup-job state, without re-running cleanup -- unlike retrigger-cleanup. Only use this once the underlying data has been handled some other way, since it skips cleanup entirely. Refused for any other status. **Required Permissions** \"tenant-management.tenants.update\"
657
+ * @summary Force a pool tenant back to available
658
+ * @param {TestTenantPoolApiForceAvailableRequest} requestParameters Request parameters.
659
+ * @param {*} [options] Override http request option.
660
+ * @throws {RequiredError}
661
+ * @memberof TestTenantPoolApi
662
+ */
663
+ forceAvailable(requestParameters: TestTenantPoolApiForceAvailableRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PoolTenantResponseClass, any, {}>>;
609
664
  /**
610
665
  * Returns the single, shared configuration describing which database entities get hard-deleted when a pool tenant is cleaned up after release. **Required Permissions** \"tenant-management.tenants.view\"
611
666
  * @summary Read the shared cleanup registry
@@ -189,6 +189,54 @@ var TestTenantPoolApiAxiosParamCreator = function (configuration) {
189
189
  });
190
190
  });
191
191
  },
192
+ /**
193
+ * Operator escape hatch for a pool tenant stuck in reset_failed: forces it straight to available, clearing lease/cleanup-job state, without re-running cleanup -- unlike retrigger-cleanup. Only use this once the underlying data has been handled some other way, since it skips cleanup entirely. Refused for any other status. **Required Permissions** \"tenant-management.tenants.update\"
194
+ * @summary Force a pool tenant back to available
195
+ * @param {string} tenantSlug The slug of the tenant it was registered under.
196
+ * @param {string} [authorization] Bearer Token
197
+ * @param {*} [options] Override http request option.
198
+ * @throws {RequiredError}
199
+ */
200
+ forceAvailable: function (tenantSlug, authorization, options) {
201
+ if (options === void 0) { options = {}; }
202
+ return __awaiter(_this, void 0, void 0, function () {
203
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
204
+ return __generator(this, function (_a) {
205
+ switch (_a.label) {
206
+ case 0:
207
+ // verify required parameter 'tenantSlug' is not null or undefined
208
+ (0, common_1.assertParamExists)('forceAvailable', 'tenantSlug', tenantSlug);
209
+ localVarPath = "/tenantservice/v1/test-tenant-pool/{tenantSlug}/force-available"
210
+ .replace("{".concat("tenantSlug", "}"), encodeURIComponent(String(tenantSlug)));
211
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
212
+ if (configuration) {
213
+ baseOptions = configuration.baseOptions;
214
+ baseAccessToken = configuration.accessToken;
215
+ }
216
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
217
+ localVarHeaderParameter = {};
218
+ localVarQueryParameter = {};
219
+ // authentication bearer required
220
+ // http bearer authentication required
221
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
222
+ case 1:
223
+ // authentication bearer required
224
+ // http bearer authentication required
225
+ _a.sent();
226
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
227
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
228
+ }
229
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
230
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
231
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
232
+ return [2 /*return*/, {
233
+ url: (0, common_1.toPathString)(localVarUrlObj),
234
+ options: localVarRequestOptions,
235
+ }];
236
+ }
237
+ });
238
+ });
239
+ },
192
240
  /**
193
241
  * Returns the single, shared configuration describing which database entities get hard-deleted when a pool tenant is cleaned up after release. **Required Permissions** \"tenant-management.tenants.view\"
194
242
  * @summary Read the shared cleanup registry
@@ -720,6 +768,27 @@ var TestTenantPoolApiFp = function (configuration) {
720
768
  });
721
769
  });
722
770
  },
771
+ /**
772
+ * Operator escape hatch for a pool tenant stuck in reset_failed: forces it straight to available, clearing lease/cleanup-job state, without re-running cleanup -- unlike retrigger-cleanup. Only use this once the underlying data has been handled some other way, since it skips cleanup entirely. Refused for any other status. **Required Permissions** \"tenant-management.tenants.update\"
773
+ * @summary Force a pool tenant back to available
774
+ * @param {string} tenantSlug The slug of the tenant it was registered under.
775
+ * @param {string} [authorization] Bearer Token
776
+ * @param {*} [options] Override http request option.
777
+ * @throws {RequiredError}
778
+ */
779
+ forceAvailable: function (tenantSlug, authorization, options) {
780
+ return __awaiter(this, void 0, void 0, function () {
781
+ var localVarAxiosArgs;
782
+ return __generator(this, function (_a) {
783
+ switch (_a.label) {
784
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.forceAvailable(tenantSlug, authorization, options)];
785
+ case 1:
786
+ localVarAxiosArgs = _a.sent();
787
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
788
+ }
789
+ });
790
+ });
791
+ },
723
792
  /**
724
793
  * Returns the single, shared configuration describing which database entities get hard-deleted when a pool tenant is cleaned up after release. **Required Permissions** \"tenant-management.tenants.view\"
725
794
  * @summary Read the shared cleanup registry
@@ -961,6 +1030,17 @@ var TestTenantPoolApiFactory = function (configuration, basePath, axios) {
961
1030
  deregister: function (tenantSlug, authorization, options) {
962
1031
  return localVarFp.deregister(tenantSlug, authorization, options).then(function (request) { return request(axios, basePath); });
963
1032
  },
1033
+ /**
1034
+ * Operator escape hatch for a pool tenant stuck in reset_failed: forces it straight to available, clearing lease/cleanup-job state, without re-running cleanup -- unlike retrigger-cleanup. Only use this once the underlying data has been handled some other way, since it skips cleanup entirely. Refused for any other status. **Required Permissions** \"tenant-management.tenants.update\"
1035
+ * @summary Force a pool tenant back to available
1036
+ * @param {string} tenantSlug The slug of the tenant it was registered under.
1037
+ * @param {string} [authorization] Bearer Token
1038
+ * @param {*} [options] Override http request option.
1039
+ * @throws {RequiredError}
1040
+ */
1041
+ forceAvailable: function (tenantSlug, authorization, options) {
1042
+ return localVarFp.forceAvailable(tenantSlug, authorization, options).then(function (request) { return request(axios, basePath); });
1043
+ },
964
1044
  /**
965
1045
  * Returns the single, shared configuration describing which database entities get hard-deleted when a pool tenant is cleaned up after release. **Required Permissions** \"tenant-management.tenants.view\"
966
1046
  * @summary Read the shared cleanup registry
@@ -1108,6 +1188,18 @@ var TestTenantPoolApi = /** @class */ (function (_super) {
1108
1188
  var _this = this;
1109
1189
  return (0, exports.TestTenantPoolApiFp)(this.configuration).deregister(requestParameters.tenantSlug, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1110
1190
  };
1191
+ /**
1192
+ * Operator escape hatch for a pool tenant stuck in reset_failed: forces it straight to available, clearing lease/cleanup-job state, without re-running cleanup -- unlike retrigger-cleanup. Only use this once the underlying data has been handled some other way, since it skips cleanup entirely. Refused for any other status. **Required Permissions** \"tenant-management.tenants.update\"
1193
+ * @summary Force a pool tenant back to available
1194
+ * @param {TestTenantPoolApiForceAvailableRequest} requestParameters Request parameters.
1195
+ * @param {*} [options] Override http request option.
1196
+ * @throws {RequiredError}
1197
+ * @memberof TestTenantPoolApi
1198
+ */
1199
+ TestTenantPoolApi.prototype.forceAvailable = function (requestParameters, options) {
1200
+ var _this = this;
1201
+ return (0, exports.TestTenantPoolApiFp)(this.configuration).forceAvailable(requestParameters.tenantSlug, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1202
+ };
1111
1203
  /**
1112
1204
  * Returns the single, shared configuration describing which database entities get hard-deleted when a pool tenant is cleaned up after release. **Required Permissions** \"tenant-management.tenants.view\"
1113
1205
  * @summary Read the shared cleanup registry
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/tenant-sdk",
3
- "version": "1.42.1-beta.30",
3
+ "version": "1.42.1-beta.31",
4
4
  "description": "OpenAPI client for @emilgroup/tenant-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [