flexinet-api 0.0.353-prerelease0 → 0.0.355-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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## flexinet-api@0.0.353-prerelease0
1
+ ## flexinet-api@0.0.355-prerelease0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install flexinet-api@0.0.353-prerelease0 --save
39
+ npm install flexinet-api@0.0.355-prerelease0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -5569,6 +5569,10 @@ export const ProductApiAxiosParamCreator = function (configuration?: Configurati
5569
5569
  const localVarHeaderParameter = {} as any;
5570
5570
  const localVarQueryParameter = {} as any;
5571
5571
 
5572
+ // authentication jwt required
5573
+ // http bearer authentication required
5574
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
5575
+
5572
5576
 
5573
5577
 
5574
5578
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -6726,6 +6730,40 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
6726
6730
  options: localVarRequestOptions,
6727
6731
  };
6728
6732
  },
6733
+ /**
6734
+ * Create upload URL for product
6735
+ * @summary Create upload URL for product
6736
+ * @param {*} [options] Override http request option.
6737
+ * @throws {RequiredError}
6738
+ */
6739
+ createUploadURL: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6740
+ const localVarPath = `/admins/upload-urls`;
6741
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
6742
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6743
+ let baseOptions;
6744
+ if (configuration) {
6745
+ baseOptions = configuration.baseOptions;
6746
+ }
6747
+
6748
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6749
+ const localVarHeaderParameter = {} as any;
6750
+ const localVarQueryParameter = {} as any;
6751
+
6752
+ // authentication jwt required
6753
+ // http bearer authentication required
6754
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
6755
+
6756
+
6757
+
6758
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
6759
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6760
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6761
+
6762
+ return {
6763
+ url: toPathString(localVarUrlObj),
6764
+ options: localVarRequestOptions,
6765
+ };
6766
+ },
6729
6767
  /**
6730
6768
  * Delete promotion by id
6731
6769
  * @summary Delete promotion
@@ -7098,6 +7136,16 @@ export const PromotionApiFp = function(configuration?: Configuration) {
7098
7136
  const localVarAxiosArgs = await localVarAxiosParamCreator.createPromotion(promotionRequest, options);
7099
7137
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7100
7138
  },
7139
+ /**
7140
+ * Create upload URL for product
7141
+ * @summary Create upload URL for product
7142
+ * @param {*} [options] Override http request option.
7143
+ * @throws {RequiredError}
7144
+ */
7145
+ async createUploadURL(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UploadURLResponse>> {
7146
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createUploadURL(options);
7147
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7148
+ },
7101
7149
  /**
7102
7150
  * Delete promotion by id
7103
7151
  * @summary Delete promotion
@@ -7240,6 +7288,15 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
7240
7288
  createPromotion(promotionRequest: PromotionRequest, options?: any): AxiosPromise<Promotion> {
7241
7289
  return localVarFp.createPromotion(promotionRequest, options).then((request) => request(axios, basePath));
7242
7290
  },
7291
+ /**
7292
+ * Create upload URL for product
7293
+ * @summary Create upload URL for product
7294
+ * @param {*} [options] Override http request option.
7295
+ * @throws {RequiredError}
7296
+ */
7297
+ createUploadURL(options?: any): AxiosPromise<UploadURLResponse> {
7298
+ return localVarFp.createUploadURL(options).then((request) => request(axios, basePath));
7299
+ },
7243
7300
  /**
7244
7301
  * Delete promotion by id
7245
7302
  * @summary Delete promotion
@@ -7386,6 +7443,17 @@ export class PromotionApi extends BaseAPI {
7386
7443
  return PromotionApiFp(this.configuration).createPromotion(promotionRequest, options).then((request) => request(this.axios, this.basePath));
7387
7444
  }
7388
7445
 
7446
+ /**
7447
+ * Create upload URL for product
7448
+ * @summary Create upload URL for product
7449
+ * @param {*} [options] Override http request option.
7450
+ * @throws {RequiredError}
7451
+ * @memberof PromotionApi
7452
+ */
7453
+ public createUploadURL(options?: AxiosRequestConfig) {
7454
+ return PromotionApiFp(this.configuration).createUploadURL(options).then((request) => request(this.axios, this.basePath));
7455
+ }
7456
+
7389
7457
  /**
7390
7458
  * Delete promotion by id
7391
7459
  * @summary Delete promotion
package/dist/api.d.ts CHANGED
@@ -4708,6 +4708,13 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
4708
4708
  * @throws {RequiredError}
4709
4709
  */
4710
4710
  createPromotion: (promotionRequest: PromotionRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4711
+ /**
4712
+ * Create upload URL for product
4713
+ * @summary Create upload URL for product
4714
+ * @param {*} [options] Override http request option.
4715
+ * @throws {RequiredError}
4716
+ */
4717
+ createUploadURL: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
4711
4718
  /**
4712
4719
  * Delete promotion by id
4713
4720
  * @summary Delete promotion
@@ -4818,6 +4825,13 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
4818
4825
  * @throws {RequiredError}
4819
4826
  */
4820
4827
  createPromotion(promotionRequest: PromotionRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Promotion>>;
4828
+ /**
4829
+ * Create upload URL for product
4830
+ * @summary Create upload URL for product
4831
+ * @param {*} [options] Override http request option.
4832
+ * @throws {RequiredError}
4833
+ */
4834
+ createUploadURL(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UploadURLResponse>>;
4821
4835
  /**
4822
4836
  * Delete promotion by id
4823
4837
  * @summary Delete promotion
@@ -4928,6 +4942,13 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
4928
4942
  * @throws {RequiredError}
4929
4943
  */
4930
4944
  createPromotion(promotionRequest: PromotionRequest, options?: any): AxiosPromise<Promotion>;
4945
+ /**
4946
+ * Create upload URL for product
4947
+ * @summary Create upload URL for product
4948
+ * @param {*} [options] Override http request option.
4949
+ * @throws {RequiredError}
4950
+ */
4951
+ createUploadURL(options?: any): AxiosPromise<UploadURLResponse>;
4931
4952
  /**
4932
4953
  * Delete promotion by id
4933
4954
  * @summary Delete promotion
@@ -5045,6 +5066,14 @@ export declare class PromotionApi extends BaseAPI {
5045
5066
  * @memberof PromotionApi
5046
5067
  */
5047
5068
  createPromotion(promotionRequest: PromotionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Promotion, any>>;
5069
+ /**
5070
+ * Create upload URL for product
5071
+ * @summary Create upload URL for product
5072
+ * @param {*} [options] Override http request option.
5073
+ * @throws {RequiredError}
5074
+ * @memberof PromotionApi
5075
+ */
5076
+ createUploadURL(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UploadURLResponse, any>>;
5048
5077
  /**
5049
5078
  * Delete promotion by id
5050
5079
  * @summary Delete promotion
package/dist/api.js CHANGED
@@ -2563,6 +2563,9 @@ const ProductApiAxiosParamCreator = function (configuration) {
2563
2563
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2564
2564
  const localVarHeaderParameter = {};
2565
2565
  const localVarQueryParameter = {};
2566
+ // authentication jwt required
2567
+ // http bearer authentication required
2568
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2566
2569
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2567
2570
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2568
2571
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3632,6 +3635,34 @@ const PromotionApiAxiosParamCreator = function (configuration) {
3632
3635
  options: localVarRequestOptions,
3633
3636
  };
3634
3637
  }),
3638
+ /**
3639
+ * Create upload URL for product
3640
+ * @summary Create upload URL for product
3641
+ * @param {*} [options] Override http request option.
3642
+ * @throws {RequiredError}
3643
+ */
3644
+ createUploadURL: (options = {}) => __awaiter(this, void 0, void 0, function* () {
3645
+ const localVarPath = `/admins/upload-urls`;
3646
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3647
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3648
+ let baseOptions;
3649
+ if (configuration) {
3650
+ baseOptions = configuration.baseOptions;
3651
+ }
3652
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3653
+ const localVarHeaderParameter = {};
3654
+ const localVarQueryParameter = {};
3655
+ // authentication jwt required
3656
+ // http bearer authentication required
3657
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
3658
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3659
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3660
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3661
+ return {
3662
+ url: (0, common_1.toPathString)(localVarUrlObj),
3663
+ options: localVarRequestOptions,
3664
+ };
3665
+ }),
3635
3666
  /**
3636
3667
  * Delete promotion by id
3637
3668
  * @summary Delete promotion
@@ -3963,6 +3994,18 @@ const PromotionApiFp = function (configuration) {
3963
3994
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
3964
3995
  });
3965
3996
  },
3997
+ /**
3998
+ * Create upload URL for product
3999
+ * @summary Create upload URL for product
4000
+ * @param {*} [options] Override http request option.
4001
+ * @throws {RequiredError}
4002
+ */
4003
+ createUploadURL(options) {
4004
+ return __awaiter(this, void 0, void 0, function* () {
4005
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createUploadURL(options);
4006
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
4007
+ });
4008
+ },
3966
4009
  /**
3967
4010
  * Delete promotion by id
3968
4011
  * @summary Delete promotion
@@ -4117,6 +4160,15 @@ const PromotionApiFactory = function (configuration, basePath, axios) {
4117
4160
  createPromotion(promotionRequest, options) {
4118
4161
  return localVarFp.createPromotion(promotionRequest, options).then((request) => request(axios, basePath));
4119
4162
  },
4163
+ /**
4164
+ * Create upload URL for product
4165
+ * @summary Create upload URL for product
4166
+ * @param {*} [options] Override http request option.
4167
+ * @throws {RequiredError}
4168
+ */
4169
+ createUploadURL(options) {
4170
+ return localVarFp.createUploadURL(options).then((request) => request(axios, basePath));
4171
+ },
4120
4172
  /**
4121
4173
  * Delete promotion by id
4122
4174
  * @summary Delete promotion
@@ -4258,6 +4310,16 @@ class PromotionApi extends base_1.BaseAPI {
4258
4310
  createPromotion(promotionRequest, options) {
4259
4311
  return (0, exports.PromotionApiFp)(this.configuration).createPromotion(promotionRequest, options).then((request) => request(this.axios, this.basePath));
4260
4312
  }
4313
+ /**
4314
+ * Create upload URL for product
4315
+ * @summary Create upload URL for product
4316
+ * @param {*} [options] Override http request option.
4317
+ * @throws {RequiredError}
4318
+ * @memberof PromotionApi
4319
+ */
4320
+ createUploadURL(options) {
4321
+ return (0, exports.PromotionApiFp)(this.configuration).createUploadURL(options).then((request) => request(this.axios, this.basePath));
4322
+ }
4261
4323
  /**
4262
4324
  * Delete promotion by id
4263
4325
  * @summary Delete promotion
package/dist/esm/api.d.ts CHANGED
@@ -4708,6 +4708,13 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
4708
4708
  * @throws {RequiredError}
4709
4709
  */
4710
4710
  createPromotion: (promotionRequest: PromotionRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
4711
+ /**
4712
+ * Create upload URL for product
4713
+ * @summary Create upload URL for product
4714
+ * @param {*} [options] Override http request option.
4715
+ * @throws {RequiredError}
4716
+ */
4717
+ createUploadURL: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
4711
4718
  /**
4712
4719
  * Delete promotion by id
4713
4720
  * @summary Delete promotion
@@ -4818,6 +4825,13 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
4818
4825
  * @throws {RequiredError}
4819
4826
  */
4820
4827
  createPromotion(promotionRequest: PromotionRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Promotion>>;
4828
+ /**
4829
+ * Create upload URL for product
4830
+ * @summary Create upload URL for product
4831
+ * @param {*} [options] Override http request option.
4832
+ * @throws {RequiredError}
4833
+ */
4834
+ createUploadURL(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UploadURLResponse>>;
4821
4835
  /**
4822
4836
  * Delete promotion by id
4823
4837
  * @summary Delete promotion
@@ -4928,6 +4942,13 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
4928
4942
  * @throws {RequiredError}
4929
4943
  */
4930
4944
  createPromotion(promotionRequest: PromotionRequest, options?: any): AxiosPromise<Promotion>;
4945
+ /**
4946
+ * Create upload URL for product
4947
+ * @summary Create upload URL for product
4948
+ * @param {*} [options] Override http request option.
4949
+ * @throws {RequiredError}
4950
+ */
4951
+ createUploadURL(options?: any): AxiosPromise<UploadURLResponse>;
4931
4952
  /**
4932
4953
  * Delete promotion by id
4933
4954
  * @summary Delete promotion
@@ -5045,6 +5066,14 @@ export declare class PromotionApi extends BaseAPI {
5045
5066
  * @memberof PromotionApi
5046
5067
  */
5047
5068
  createPromotion(promotionRequest: PromotionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Promotion, any>>;
5069
+ /**
5070
+ * Create upload URL for product
5071
+ * @summary Create upload URL for product
5072
+ * @param {*} [options] Override http request option.
5073
+ * @throws {RequiredError}
5074
+ * @memberof PromotionApi
5075
+ */
5076
+ createUploadURL(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UploadURLResponse, any>>;
5048
5077
  /**
5049
5078
  * Delete promotion by id
5050
5079
  * @summary Delete promotion
package/dist/esm/api.js CHANGED
@@ -2518,6 +2518,9 @@ export const ProductApiAxiosParamCreator = function (configuration) {
2518
2518
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2519
2519
  const localVarHeaderParameter = {};
2520
2520
  const localVarQueryParameter = {};
2521
+ // authentication jwt required
2522
+ // http bearer authentication required
2523
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2521
2524
  setSearchParams(localVarUrlObj, localVarQueryParameter);
2522
2525
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2523
2526
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -3579,6 +3582,34 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
3579
3582
  options: localVarRequestOptions,
3580
3583
  };
3581
3584
  }),
3585
+ /**
3586
+ * Create upload URL for product
3587
+ * @summary Create upload URL for product
3588
+ * @param {*} [options] Override http request option.
3589
+ * @throws {RequiredError}
3590
+ */
3591
+ createUploadURL: (options = {}) => __awaiter(this, void 0, void 0, function* () {
3592
+ const localVarPath = `/admins/upload-urls`;
3593
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3594
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3595
+ let baseOptions;
3596
+ if (configuration) {
3597
+ baseOptions = configuration.baseOptions;
3598
+ }
3599
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
3600
+ const localVarHeaderParameter = {};
3601
+ const localVarQueryParameter = {};
3602
+ // authentication jwt required
3603
+ // http bearer authentication required
3604
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3605
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3606
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3607
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3608
+ return {
3609
+ url: toPathString(localVarUrlObj),
3610
+ options: localVarRequestOptions,
3611
+ };
3612
+ }),
3582
3613
  /**
3583
3614
  * Delete promotion by id
3584
3615
  * @summary Delete promotion
@@ -3909,6 +3940,18 @@ export const PromotionApiFp = function (configuration) {
3909
3940
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3910
3941
  });
3911
3942
  },
3943
+ /**
3944
+ * Create upload URL for product
3945
+ * @summary Create upload URL for product
3946
+ * @param {*} [options] Override http request option.
3947
+ * @throws {RequiredError}
3948
+ */
3949
+ createUploadURL(options) {
3950
+ return __awaiter(this, void 0, void 0, function* () {
3951
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createUploadURL(options);
3952
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3953
+ });
3954
+ },
3912
3955
  /**
3913
3956
  * Delete promotion by id
3914
3957
  * @summary Delete promotion
@@ -4062,6 +4105,15 @@ export const PromotionApiFactory = function (configuration, basePath, axios) {
4062
4105
  createPromotion(promotionRequest, options) {
4063
4106
  return localVarFp.createPromotion(promotionRequest, options).then((request) => request(axios, basePath));
4064
4107
  },
4108
+ /**
4109
+ * Create upload URL for product
4110
+ * @summary Create upload URL for product
4111
+ * @param {*} [options] Override http request option.
4112
+ * @throws {RequiredError}
4113
+ */
4114
+ createUploadURL(options) {
4115
+ return localVarFp.createUploadURL(options).then((request) => request(axios, basePath));
4116
+ },
4065
4117
  /**
4066
4118
  * Delete promotion by id
4067
4119
  * @summary Delete promotion
@@ -4202,6 +4254,16 @@ export class PromotionApi extends BaseAPI {
4202
4254
  createPromotion(promotionRequest, options) {
4203
4255
  return PromotionApiFp(this.configuration).createPromotion(promotionRequest, options).then((request) => request(this.axios, this.basePath));
4204
4256
  }
4257
+ /**
4258
+ * Create upload URL for product
4259
+ * @summary Create upload URL for product
4260
+ * @param {*} [options] Override http request option.
4261
+ * @throws {RequiredError}
4262
+ * @memberof PromotionApi
4263
+ */
4264
+ createUploadURL(options) {
4265
+ return PromotionApiFp(this.configuration).createUploadURL(options).then((request) => request(this.axios, this.basePath));
4266
+ }
4205
4267
  /**
4206
4268
  * Delete promotion by id
4207
4269
  * @summary Delete promotion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flexinet-api",
3
- "version": "0.0.353-prerelease0",
3
+ "version": "0.0.355-prerelease0",
4
4
  "description": "OpenAPI client for flexinet-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {