flexinet-api 0.0.759-prerelease0 → 0.0.761-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.759-prerelease0
1
+ ## flexinet-api@0.0.761-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.759-prerelease0 --save
39
+ npm install flexinet-api@0.0.761-prerelease0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -2281,7 +2281,13 @@ export interface PromotionRequest {
2281
2281
  * @type {Array<Segment>}
2282
2282
  * @memberof PromotionRequest
2283
2283
  */
2284
- 'segments': Array<Segment>;
2284
+ 'segments'?: Array<Segment>;
2285
+ /**
2286
+ *
2287
+ * @type {Array<string>}
2288
+ * @memberof PromotionRequest
2289
+ */
2290
+ 'beneficiaryIds'?: Array<string>;
2285
2291
  /**
2286
2292
  *
2287
2293
  * @type {Array<RuleGroup>}
@@ -2337,8 +2343,6 @@ export interface PromotionRequest {
2337
2343
  */
2338
2344
  'notificationConfig'?: PromotionNotificationConfig;
2339
2345
  }
2340
-
2341
-
2342
2346
  /**
2343
2347
  *
2344
2348
  * @export
@@ -3324,6 +3328,18 @@ export interface UpdatePromotionRequest {
3324
3328
  * @memberof UpdatePromotionRequest
3325
3329
  */
3326
3330
  'brandLogoURL'?: string;
3331
+ /**
3332
+ *
3333
+ * @type {BeneficiaryKind}
3334
+ * @memberof UpdatePromotionRequest
3335
+ */
3336
+ 'beneficiaryKind'?: BeneficiaryKind;
3337
+ /**
3338
+ *
3339
+ * @type {Array<string>}
3340
+ * @memberof UpdatePromotionRequest
3341
+ */
3342
+ 'beneficiaryIds'?: Array<string>;
3327
3343
  /**
3328
3344
  *
3329
3345
  * @type {string}
@@ -8164,11 +8180,11 @@ export const PromotionApiAxiosParamCreator = function (configuration?: Configura
8164
8180
  /**
8165
8181
  * Configure a promotion
8166
8182
  * @summary Create promotion
8167
- * @param {PromotionRequest} promotionRequest Promotion configuration
8183
+ * @param {PromotionRequest | null} promotionRequest Promotion configuration
8168
8184
  * @param {*} [options] Override http request option.
8169
8185
  * @throws {RequiredError}
8170
8186
  */
8171
- createPromotion: async (promotionRequest: PromotionRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
8187
+ createPromotion: async (promotionRequest: PromotionRequest | null, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
8172
8188
  // verify required parameter 'promotionRequest' is not null or undefined
8173
8189
  assertParamExists('createPromotion', 'promotionRequest', promotionRequest)
8174
8190
  const localVarPath = `/admins/promotions`;
@@ -8720,11 +8736,11 @@ export const PromotionApiFp = function(configuration?: Configuration) {
8720
8736
  /**
8721
8737
  * Configure a promotion
8722
8738
  * @summary Create promotion
8723
- * @param {PromotionRequest} promotionRequest Promotion configuration
8739
+ * @param {PromotionRequest | null} promotionRequest Promotion configuration
8724
8740
  * @param {*} [options] Override http request option.
8725
8741
  * @throws {RequiredError}
8726
8742
  */
8727
- async createPromotion(promotionRequest: PromotionRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Promotion>> {
8743
+ async createPromotion(promotionRequest: PromotionRequest | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Promotion>> {
8728
8744
  const localVarAxiosArgs = await localVarAxiosParamCreator.createPromotion(promotionRequest, options);
8729
8745
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
8730
8746
  },
@@ -8899,11 +8915,11 @@ export const PromotionApiFactory = function (configuration?: Configuration, base
8899
8915
  /**
8900
8916
  * Configure a promotion
8901
8917
  * @summary Create promotion
8902
- * @param {PromotionRequest} promotionRequest Promotion configuration
8918
+ * @param {PromotionRequest | null} promotionRequest Promotion configuration
8903
8919
  * @param {*} [options] Override http request option.
8904
8920
  * @throws {RequiredError}
8905
8921
  */
8906
- createPromotion(promotionRequest: PromotionRequest, options?: any): AxiosPromise<Promotion> {
8922
+ createPromotion(promotionRequest: PromotionRequest | null, options?: any): AxiosPromise<Promotion> {
8907
8923
  return localVarFp.createPromotion(promotionRequest, options).then((request) => request(axios, basePath));
8908
8924
  },
8909
8925
  /**
@@ -9077,12 +9093,12 @@ export class PromotionApi extends BaseAPI {
9077
9093
  /**
9078
9094
  * Configure a promotion
9079
9095
  * @summary Create promotion
9080
- * @param {PromotionRequest} promotionRequest Promotion configuration
9096
+ * @param {PromotionRequest | null} promotionRequest Promotion configuration
9081
9097
  * @param {*} [options] Override http request option.
9082
9098
  * @throws {RequiredError}
9083
9099
  * @memberof PromotionApi
9084
9100
  */
9085
- public createPromotion(promotionRequest: PromotionRequest, options?: AxiosRequestConfig) {
9101
+ public createPromotion(promotionRequest: PromotionRequest | null, options?: AxiosRequestConfig) {
9086
9102
  return PromotionApiFp(this.configuration).createPromotion(promotionRequest, options).then((request) => request(this.axios, this.basePath));
9087
9103
  }
9088
9104
 
package/dist/api.d.ts CHANGED
@@ -2169,7 +2169,13 @@ export interface PromotionRequest {
2169
2169
  * @type {Array<Segment>}
2170
2170
  * @memberof PromotionRequest
2171
2171
  */
2172
- 'segments': Array<Segment>;
2172
+ 'segments'?: Array<Segment>;
2173
+ /**
2174
+ *
2175
+ * @type {Array<string>}
2176
+ * @memberof PromotionRequest
2177
+ */
2178
+ 'beneficiaryIds'?: Array<string>;
2173
2179
  /**
2174
2180
  *
2175
2181
  * @type {Array<RuleGroup>}
@@ -3147,6 +3153,18 @@ export interface UpdatePromotionRequest {
3147
3153
  * @memberof UpdatePromotionRequest
3148
3154
  */
3149
3155
  'brandLogoURL'?: string;
3156
+ /**
3157
+ *
3158
+ * @type {BeneficiaryKind}
3159
+ * @memberof UpdatePromotionRequest
3160
+ */
3161
+ 'beneficiaryKind'?: BeneficiaryKind;
3162
+ /**
3163
+ *
3164
+ * @type {Array<string>}
3165
+ * @memberof UpdatePromotionRequest
3166
+ */
3167
+ 'beneficiaryIds'?: Array<string>;
3150
3168
  /**
3151
3169
  *
3152
3170
  * @type {string}
@@ -5675,11 +5693,11 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
5675
5693
  /**
5676
5694
  * Configure a promotion
5677
5695
  * @summary Create promotion
5678
- * @param {PromotionRequest} promotionRequest Promotion configuration
5696
+ * @param {PromotionRequest | null} promotionRequest Promotion configuration
5679
5697
  * @param {*} [options] Override http request option.
5680
5698
  * @throws {RequiredError}
5681
5699
  */
5682
- createPromotion: (promotionRequest: PromotionRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5700
+ createPromotion: (promotionRequest: PromotionRequest | null, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5683
5701
  /**
5684
5702
  * Create upload URL for product
5685
5703
  * @summary Create upload URL for product
@@ -5815,11 +5833,11 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
5815
5833
  /**
5816
5834
  * Configure a promotion
5817
5835
  * @summary Create promotion
5818
- * @param {PromotionRequest} promotionRequest Promotion configuration
5836
+ * @param {PromotionRequest | null} promotionRequest Promotion configuration
5819
5837
  * @param {*} [options] Override http request option.
5820
5838
  * @throws {RequiredError}
5821
5839
  */
5822
- createPromotion(promotionRequest: PromotionRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Promotion>>;
5840
+ createPromotion(promotionRequest: PromotionRequest | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Promotion>>;
5823
5841
  /**
5824
5842
  * Create upload URL for product
5825
5843
  * @summary Create upload URL for product
@@ -5955,11 +5973,11 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
5955
5973
  /**
5956
5974
  * Configure a promotion
5957
5975
  * @summary Create promotion
5958
- * @param {PromotionRequest} promotionRequest Promotion configuration
5976
+ * @param {PromotionRequest | null} promotionRequest Promotion configuration
5959
5977
  * @param {*} [options] Override http request option.
5960
5978
  * @throws {RequiredError}
5961
5979
  */
5962
- createPromotion(promotionRequest: PromotionRequest, options?: any): AxiosPromise<Promotion>;
5980
+ createPromotion(promotionRequest: PromotionRequest | null, options?: any): AxiosPromise<Promotion>;
5963
5981
  /**
5964
5982
  * Create upload URL for product
5965
5983
  * @summary Create upload URL for product
@@ -6101,12 +6119,12 @@ export declare class PromotionApi extends BaseAPI {
6101
6119
  /**
6102
6120
  * Configure a promotion
6103
6121
  * @summary Create promotion
6104
- * @param {PromotionRequest} promotionRequest Promotion configuration
6122
+ * @param {PromotionRequest | null} promotionRequest Promotion configuration
6105
6123
  * @param {*} [options] Override http request option.
6106
6124
  * @throws {RequiredError}
6107
6125
  * @memberof PromotionApi
6108
6126
  */
6109
- createPromotion(promotionRequest: PromotionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Promotion, any>>;
6127
+ createPromotion(promotionRequest: PromotionRequest | null, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Promotion, any>>;
6110
6128
  /**
6111
6129
  * Create upload URL for product
6112
6130
  * @summary Create upload URL for product
package/dist/api.js CHANGED
@@ -4419,7 +4419,7 @@ const PromotionApiAxiosParamCreator = function (configuration) {
4419
4419
  /**
4420
4420
  * Configure a promotion
4421
4421
  * @summary Create promotion
4422
- * @param {PromotionRequest} promotionRequest Promotion configuration
4422
+ * @param {PromotionRequest | null} promotionRequest Promotion configuration
4423
4423
  * @param {*} [options] Override http request option.
4424
4424
  * @throws {RequiredError}
4425
4425
  */
@@ -4898,7 +4898,7 @@ const PromotionApiFp = function (configuration) {
4898
4898
  /**
4899
4899
  * Configure a promotion
4900
4900
  * @summary Create promotion
4901
- * @param {PromotionRequest} promotionRequest Promotion configuration
4901
+ * @param {PromotionRequest | null} promotionRequest Promotion configuration
4902
4902
  * @param {*} [options] Override http request option.
4903
4903
  * @throws {RequiredError}
4904
4904
  */
@@ -5095,7 +5095,7 @@ const PromotionApiFactory = function (configuration, basePath, axios) {
5095
5095
  /**
5096
5096
  * Configure a promotion
5097
5097
  * @summary Create promotion
5098
- * @param {PromotionRequest} promotionRequest Promotion configuration
5098
+ * @param {PromotionRequest | null} promotionRequest Promotion configuration
5099
5099
  * @param {*} [options] Override http request option.
5100
5100
  * @throws {RequiredError}
5101
5101
  */
@@ -5269,7 +5269,7 @@ class PromotionApi extends base_1.BaseAPI {
5269
5269
  /**
5270
5270
  * Configure a promotion
5271
5271
  * @summary Create promotion
5272
- * @param {PromotionRequest} promotionRequest Promotion configuration
5272
+ * @param {PromotionRequest | null} promotionRequest Promotion configuration
5273
5273
  * @param {*} [options] Override http request option.
5274
5274
  * @throws {RequiredError}
5275
5275
  * @memberof PromotionApi
package/dist/esm/api.d.ts CHANGED
@@ -2169,7 +2169,13 @@ export interface PromotionRequest {
2169
2169
  * @type {Array<Segment>}
2170
2170
  * @memberof PromotionRequest
2171
2171
  */
2172
- 'segments': Array<Segment>;
2172
+ 'segments'?: Array<Segment>;
2173
+ /**
2174
+ *
2175
+ * @type {Array<string>}
2176
+ * @memberof PromotionRequest
2177
+ */
2178
+ 'beneficiaryIds'?: Array<string>;
2173
2179
  /**
2174
2180
  *
2175
2181
  * @type {Array<RuleGroup>}
@@ -3147,6 +3153,18 @@ export interface UpdatePromotionRequest {
3147
3153
  * @memberof UpdatePromotionRequest
3148
3154
  */
3149
3155
  'brandLogoURL'?: string;
3156
+ /**
3157
+ *
3158
+ * @type {BeneficiaryKind}
3159
+ * @memberof UpdatePromotionRequest
3160
+ */
3161
+ 'beneficiaryKind'?: BeneficiaryKind;
3162
+ /**
3163
+ *
3164
+ * @type {Array<string>}
3165
+ * @memberof UpdatePromotionRequest
3166
+ */
3167
+ 'beneficiaryIds'?: Array<string>;
3150
3168
  /**
3151
3169
  *
3152
3170
  * @type {string}
@@ -5675,11 +5693,11 @@ export declare const PromotionApiAxiosParamCreator: (configuration?: Configurati
5675
5693
  /**
5676
5694
  * Configure a promotion
5677
5695
  * @summary Create promotion
5678
- * @param {PromotionRequest} promotionRequest Promotion configuration
5696
+ * @param {PromotionRequest | null} promotionRequest Promotion configuration
5679
5697
  * @param {*} [options] Override http request option.
5680
5698
  * @throws {RequiredError}
5681
5699
  */
5682
- createPromotion: (promotionRequest: PromotionRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5700
+ createPromotion: (promotionRequest: PromotionRequest | null, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5683
5701
  /**
5684
5702
  * Create upload URL for product
5685
5703
  * @summary Create upload URL for product
@@ -5815,11 +5833,11 @@ export declare const PromotionApiFp: (configuration?: Configuration) => {
5815
5833
  /**
5816
5834
  * Configure a promotion
5817
5835
  * @summary Create promotion
5818
- * @param {PromotionRequest} promotionRequest Promotion configuration
5836
+ * @param {PromotionRequest | null} promotionRequest Promotion configuration
5819
5837
  * @param {*} [options] Override http request option.
5820
5838
  * @throws {RequiredError}
5821
5839
  */
5822
- createPromotion(promotionRequest: PromotionRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Promotion>>;
5840
+ createPromotion(promotionRequest: PromotionRequest | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Promotion>>;
5823
5841
  /**
5824
5842
  * Create upload URL for product
5825
5843
  * @summary Create upload URL for product
@@ -5955,11 +5973,11 @@ export declare const PromotionApiFactory: (configuration?: Configuration, basePa
5955
5973
  /**
5956
5974
  * Configure a promotion
5957
5975
  * @summary Create promotion
5958
- * @param {PromotionRequest} promotionRequest Promotion configuration
5976
+ * @param {PromotionRequest | null} promotionRequest Promotion configuration
5959
5977
  * @param {*} [options] Override http request option.
5960
5978
  * @throws {RequiredError}
5961
5979
  */
5962
- createPromotion(promotionRequest: PromotionRequest, options?: any): AxiosPromise<Promotion>;
5980
+ createPromotion(promotionRequest: PromotionRequest | null, options?: any): AxiosPromise<Promotion>;
5963
5981
  /**
5964
5982
  * Create upload URL for product
5965
5983
  * @summary Create upload URL for product
@@ -6101,12 +6119,12 @@ export declare class PromotionApi extends BaseAPI {
6101
6119
  /**
6102
6120
  * Configure a promotion
6103
6121
  * @summary Create promotion
6104
- * @param {PromotionRequest} promotionRequest Promotion configuration
6122
+ * @param {PromotionRequest | null} promotionRequest Promotion configuration
6105
6123
  * @param {*} [options] Override http request option.
6106
6124
  * @throws {RequiredError}
6107
6125
  * @memberof PromotionApi
6108
6126
  */
6109
- createPromotion(promotionRequest: PromotionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Promotion, any>>;
6127
+ createPromotion(promotionRequest: PromotionRequest | null, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Promotion, any>>;
6110
6128
  /**
6111
6129
  * Create upload URL for product
6112
6130
  * @summary Create upload URL for product
package/dist/esm/api.js CHANGED
@@ -4362,7 +4362,7 @@ export const PromotionApiAxiosParamCreator = function (configuration) {
4362
4362
  /**
4363
4363
  * Configure a promotion
4364
4364
  * @summary Create promotion
4365
- * @param {PromotionRequest} promotionRequest Promotion configuration
4365
+ * @param {PromotionRequest | null} promotionRequest Promotion configuration
4366
4366
  * @param {*} [options] Override http request option.
4367
4367
  * @throws {RequiredError}
4368
4368
  */
@@ -4840,7 +4840,7 @@ export const PromotionApiFp = function (configuration) {
4840
4840
  /**
4841
4841
  * Configure a promotion
4842
4842
  * @summary Create promotion
4843
- * @param {PromotionRequest} promotionRequest Promotion configuration
4843
+ * @param {PromotionRequest | null} promotionRequest Promotion configuration
4844
4844
  * @param {*} [options] Override http request option.
4845
4845
  * @throws {RequiredError}
4846
4846
  */
@@ -5036,7 +5036,7 @@ export const PromotionApiFactory = function (configuration, basePath, axios) {
5036
5036
  /**
5037
5037
  * Configure a promotion
5038
5038
  * @summary Create promotion
5039
- * @param {PromotionRequest} promotionRequest Promotion configuration
5039
+ * @param {PromotionRequest | null} promotionRequest Promotion configuration
5040
5040
  * @param {*} [options] Override http request option.
5041
5041
  * @throws {RequiredError}
5042
5042
  */
@@ -5209,7 +5209,7 @@ export class PromotionApi extends BaseAPI {
5209
5209
  /**
5210
5210
  * Configure a promotion
5211
5211
  * @summary Create promotion
5212
- * @param {PromotionRequest} promotionRequest Promotion configuration
5212
+ * @param {PromotionRequest | null} promotionRequest Promotion configuration
5213
5213
  * @param {*} [options] Override http request option.
5214
5214
  * @throws {RequiredError}
5215
5215
  * @memberof PromotionApi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flexinet-api",
3
- "version": "0.0.759-prerelease0",
3
+ "version": "0.0.761-prerelease0",
4
4
  "description": "OpenAPI client for flexinet-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {