flexinet-api 0.0.750-prerelease0 → 0.0.752-prerelease0

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/dist/esm/api.js CHANGED
@@ -360,8 +360,7 @@ export const UserSource = {
360
360
  * @enum {string}
361
361
  */
362
362
  export const WebhookKind = {
363
- Order: 'order',
364
- Prod: 'prod'
363
+ Order: 'order'
365
364
  };
366
365
  /**
367
366
  * AuditApi - axios parameter creator
@@ -2313,13 +2312,13 @@ export const NotificationApiAxiosParamCreator = function (configuration) {
2313
2312
  };
2314
2313
  }),
2315
2314
  /**
2316
- * Get notification preferences for the authenticated user
2317
- * @summary Get notification preferences
2315
+ * Get preferences for the authenticated user
2316
+ * @summary Get preferences
2318
2317
  * @param {*} [options] Override http request option.
2319
2318
  * @throws {RequiredError}
2320
2319
  */
2321
- getNotificationPreferences: (options = {}) => __awaiter(this, void 0, void 0, function* () {
2322
- const localVarPath = `/users/notifications/preferences`;
2320
+ getPreferences: (options = {}) => __awaiter(this, void 0, void 0, function* () {
2321
+ const localVarPath = `/users/preferences`;
2323
2322
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2324
2323
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2325
2324
  let baseOptions;
@@ -2409,16 +2408,16 @@ export const NotificationApiAxiosParamCreator = function (configuration) {
2409
2408
  };
2410
2409
  }),
2411
2410
  /**
2412
- * Update notification preferences for the authenticated user
2413
- * @summary Update notification preferences
2414
- * @param {Array<NotificationPreference>} notificationPreference notification preferences
2411
+ * Update preferences for the authenticated user
2412
+ * @summary Update preferences
2413
+ * @param {PreferencesRequest} preferencesRequest notification preferences
2415
2414
  * @param {*} [options] Override http request option.
2416
2415
  * @throws {RequiredError}
2417
2416
  */
2418
- updateNotificationPreferences: (notificationPreference, options = {}) => __awaiter(this, void 0, void 0, function* () {
2419
- // verify required parameter 'notificationPreference' is not null or undefined
2420
- assertParamExists('updateNotificationPreferences', 'notificationPreference', notificationPreference);
2421
- const localVarPath = `/users/notifications/preferences`;
2417
+ updatePreferences: (preferencesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
2418
+ // verify required parameter 'preferencesRequest' is not null or undefined
2419
+ assertParamExists('updatePreferences', 'preferencesRequest', preferencesRequest);
2420
+ const localVarPath = `/users/preferences`;
2422
2421
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2423
2422
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2424
2423
  let baseOptions;
@@ -2435,7 +2434,7 @@ export const NotificationApiAxiosParamCreator = function (configuration) {
2435
2434
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2436
2435
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2437
2436
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2438
- localVarRequestOptions.data = serializeDataIfNeeded(notificationPreference, localVarRequestOptions, configuration);
2437
+ localVarRequestOptions.data = serializeDataIfNeeded(preferencesRequest, localVarRequestOptions, configuration);
2439
2438
  return {
2440
2439
  url: toPathString(localVarUrlObj),
2441
2440
  options: localVarRequestOptions,
@@ -2477,14 +2476,14 @@ export const NotificationApiFp = function (configuration) {
2477
2476
  });
2478
2477
  },
2479
2478
  /**
2480
- * Get notification preferences for the authenticated user
2481
- * @summary Get notification preferences
2479
+ * Get preferences for the authenticated user
2480
+ * @summary Get preferences
2482
2481
  * @param {*} [options] Override http request option.
2483
2482
  * @throws {RequiredError}
2484
2483
  */
2485
- getNotificationPreferences(options) {
2484
+ getPreferences(options) {
2486
2485
  return __awaiter(this, void 0, void 0, function* () {
2487
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getNotificationPreferences(options);
2486
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getPreferences(options);
2488
2487
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2489
2488
  });
2490
2489
  },
@@ -2516,15 +2515,15 @@ export const NotificationApiFp = function (configuration) {
2516
2515
  });
2517
2516
  },
2518
2517
  /**
2519
- * Update notification preferences for the authenticated user
2520
- * @summary Update notification preferences
2521
- * @param {Array<NotificationPreference>} notificationPreference notification preferences
2518
+ * Update preferences for the authenticated user
2519
+ * @summary Update preferences
2520
+ * @param {PreferencesRequest} preferencesRequest notification preferences
2522
2521
  * @param {*} [options] Override http request option.
2523
2522
  * @throws {RequiredError}
2524
2523
  */
2525
- updateNotificationPreferences(notificationPreference, options) {
2524
+ updatePreferences(preferencesRequest, options) {
2526
2525
  return __awaiter(this, void 0, void 0, function* () {
2527
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateNotificationPreferences(notificationPreference, options);
2526
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePreferences(preferencesRequest, options);
2528
2527
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2529
2528
  });
2530
2529
  },
@@ -2558,13 +2557,13 @@ export const NotificationApiFactory = function (configuration, basePath, axios)
2558
2557
  return localVarFp.getNotification(notificationID, options).then((request) => request(axios, basePath));
2559
2558
  },
2560
2559
  /**
2561
- * Get notification preferences for the authenticated user
2562
- * @summary Get notification preferences
2560
+ * Get preferences for the authenticated user
2561
+ * @summary Get preferences
2563
2562
  * @param {*} [options] Override http request option.
2564
2563
  * @throws {RequiredError}
2565
2564
  */
2566
- getNotificationPreferences(options) {
2567
- return localVarFp.getNotificationPreferences(options).then((request) => request(axios, basePath));
2565
+ getPreferences(options) {
2566
+ return localVarFp.getPreferences(options).then((request) => request(axios, basePath));
2568
2567
  },
2569
2568
  /**
2570
2569
  * List paginated notifications
@@ -2588,14 +2587,14 @@ export const NotificationApiFactory = function (configuration, basePath, axios)
2588
2587
  return localVarFp.markNotificationAsRead(notificationID, options).then((request) => request(axios, basePath));
2589
2588
  },
2590
2589
  /**
2591
- * Update notification preferences for the authenticated user
2592
- * @summary Update notification preferences
2593
- * @param {Array<NotificationPreference>} notificationPreference notification preferences
2590
+ * Update preferences for the authenticated user
2591
+ * @summary Update preferences
2592
+ * @param {PreferencesRequest} preferencesRequest notification preferences
2594
2593
  * @param {*} [options] Override http request option.
2595
2594
  * @throws {RequiredError}
2596
2595
  */
2597
- updateNotificationPreferences(notificationPreference, options) {
2598
- return localVarFp.updateNotificationPreferences(notificationPreference, options).then((request) => request(axios, basePath));
2596
+ updatePreferences(preferencesRequest, options) {
2597
+ return localVarFp.updatePreferences(preferencesRequest, options).then((request) => request(axios, basePath));
2599
2598
  },
2600
2599
  };
2601
2600
  };
@@ -2629,14 +2628,14 @@ export class NotificationApi extends BaseAPI {
2629
2628
  return NotificationApiFp(this.configuration).getNotification(notificationID, options).then((request) => request(this.axios, this.basePath));
2630
2629
  }
2631
2630
  /**
2632
- * Get notification preferences for the authenticated user
2633
- * @summary Get notification preferences
2631
+ * Get preferences for the authenticated user
2632
+ * @summary Get preferences
2634
2633
  * @param {*} [options] Override http request option.
2635
2634
  * @throws {RequiredError}
2636
2635
  * @memberof NotificationApi
2637
2636
  */
2638
- getNotificationPreferences(options) {
2639
- return NotificationApiFp(this.configuration).getNotificationPreferences(options).then((request) => request(this.axios, this.basePath));
2637
+ getPreferences(options) {
2638
+ return NotificationApiFp(this.configuration).getPreferences(options).then((request) => request(this.axios, this.basePath));
2640
2639
  }
2641
2640
  /**
2642
2641
  * List paginated notifications
@@ -2662,15 +2661,15 @@ export class NotificationApi extends BaseAPI {
2662
2661
  return NotificationApiFp(this.configuration).markNotificationAsRead(notificationID, options).then((request) => request(this.axios, this.basePath));
2663
2662
  }
2664
2663
  /**
2665
- * Update notification preferences for the authenticated user
2666
- * @summary Update notification preferences
2667
- * @param {Array<NotificationPreference>} notificationPreference notification preferences
2664
+ * Update preferences for the authenticated user
2665
+ * @summary Update preferences
2666
+ * @param {PreferencesRequest} preferencesRequest notification preferences
2668
2667
  * @param {*} [options] Override http request option.
2669
2668
  * @throws {RequiredError}
2670
2669
  * @memberof NotificationApi
2671
2670
  */
2672
- updateNotificationPreferences(notificationPreference, options) {
2673
- return NotificationApiFp(this.configuration).updateNotificationPreferences(notificationPreference, options).then((request) => request(this.axios, this.basePath));
2671
+ updatePreferences(preferencesRequest, options) {
2672
+ return NotificationApiFp(this.configuration).updatePreferences(preferencesRequest, options).then((request) => request(this.axios, this.basePath));
2674
2673
  }
2675
2674
  }
2676
2675
  /**
@@ -5956,10 +5955,13 @@ export const TenantApiAxiosParamCreator = function (configuration) {
5956
5955
  /**
5957
5956
  * List of known tenants
5958
5957
  * @summary List tenants
5958
+ * @param {string} name This is the tenant name
5959
5959
  * @param {*} [options] Override http request option.
5960
5960
  * @throws {RequiredError}
5961
5961
  */
5962
- listTenants: (options = {}) => __awaiter(this, void 0, void 0, function* () {
5962
+ listTenants: (name, options = {}) => __awaiter(this, void 0, void 0, function* () {
5963
+ // verify required parameter 'name' is not null or undefined
5964
+ assertParamExists('listTenants', 'name', name);
5963
5965
  const localVarPath = `/tenants`;
5964
5966
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5965
5967
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5970,6 +5972,9 @@ export const TenantApiAxiosParamCreator = function (configuration) {
5970
5972
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5971
5973
  const localVarHeaderParameter = {};
5972
5974
  const localVarQueryParameter = {};
5975
+ if (name !== undefined) {
5976
+ localVarQueryParameter['name'] = name;
5977
+ }
5973
5978
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5974
5979
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5975
5980
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -5990,12 +5995,13 @@ export const TenantApiFp = function (configuration) {
5990
5995
  /**
5991
5996
  * List of known tenants
5992
5997
  * @summary List tenants
5998
+ * @param {string} name This is the tenant name
5993
5999
  * @param {*} [options] Override http request option.
5994
6000
  * @throws {RequiredError}
5995
6001
  */
5996
- listTenants(options) {
6002
+ listTenants(name, options) {
5997
6003
  return __awaiter(this, void 0, void 0, function* () {
5998
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listTenants(options);
6004
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listTenants(name, options);
5999
6005
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6000
6006
  });
6001
6007
  },
@@ -6011,11 +6017,12 @@ export const TenantApiFactory = function (configuration, basePath, axios) {
6011
6017
  /**
6012
6018
  * List of known tenants
6013
6019
  * @summary List tenants
6020
+ * @param {string} name This is the tenant name
6014
6021
  * @param {*} [options] Override http request option.
6015
6022
  * @throws {RequiredError}
6016
6023
  */
6017
- listTenants(options) {
6018
- return localVarFp.listTenants(options).then((request) => request(axios, basePath));
6024
+ listTenants(name, options) {
6025
+ return localVarFp.listTenants(name, options).then((request) => request(axios, basePath));
6019
6026
  },
6020
6027
  };
6021
6028
  };
@@ -6029,12 +6036,13 @@ export class TenantApi extends BaseAPI {
6029
6036
  /**
6030
6037
  * List of known tenants
6031
6038
  * @summary List tenants
6039
+ * @param {string} name This is the tenant name
6032
6040
  * @param {*} [options] Override http request option.
6033
6041
  * @throws {RequiredError}
6034
6042
  * @memberof TenantApi
6035
6043
  */
6036
- listTenants(options) {
6037
- return TenantApiFp(this.configuration).listTenants(options).then((request) => request(this.axios, this.basePath));
6044
+ listTenants(name, options) {
6045
+ return TenantApiFp(this.configuration).listTenants(name, options).then((request) => request(this.axios, this.basePath));
6038
6046
  }
6039
6047
  }
6040
6048
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flexinet-api",
3
- "version": "0.0.750-prerelease0",
3
+ "version": "0.0.752-prerelease0",
4
4
  "description": "OpenAPI client for flexinet-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {