flexinet-api 0.0.326-prerelease0 → 0.0.336-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.326-prerelease0
1
+ ## flexinet-api@0.0.336-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.326-prerelease0 --save
39
+ npm install flexinet-api@0.0.336-prerelease0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -555,32 +555,6 @@ export interface CreateOrderRequest {
555
555
  */
556
556
  'tag'?: OrderCreationRequest;
557
557
  }
558
- /**
559
- *
560
- * @export
561
- * @interface CreateSegmentRequest
562
- */
563
- export interface CreateSegmentRequest {
564
- /**
565
- *
566
- * @type {SegmentCreationRequest}
567
- * @memberof CreateSegmentRequest
568
- */
569
- 'segment'?: SegmentCreationRequest;
570
- }
571
- /**
572
- *
573
- * @export
574
- * @interface CreateTagRequest
575
- */
576
- export interface CreateTagRequest {
577
- /**
578
- *
579
- * @type {TagCreationRequest}
580
- * @memberof CreateTagRequest
581
- */
582
- 'tag'?: TagCreationRequest;
583
- }
584
558
  /**
585
559
  *
586
560
  * @export
@@ -2825,6 +2799,19 @@ export interface UpdatePromotionRequest {
2825
2799
  }
2826
2800
 
2827
2801
 
2802
+ /**
2803
+ *
2804
+ * @export
2805
+ * @interface UpdateTagRequest
2806
+ */
2807
+ export interface UpdateTagRequest {
2808
+ /**
2809
+ *
2810
+ * @type {TagCreationRequest}
2811
+ * @memberof UpdateTagRequest
2812
+ */
2813
+ 'tag'?: TagCreationRequest;
2814
+ }
2828
2815
  /**
2829
2816
  *
2830
2817
  * @export
@@ -7615,11 +7602,11 @@ export const SegmentApiAxiosParamCreator = function (configuration?: Configurati
7615
7602
  /**
7616
7603
  * This method allows adding a new Segment to the system.
7617
7604
  * @summary Method allows to create new segment.
7618
- * @param {CreateSegmentRequest} [createSegmentRequest]
7605
+ * @param {SegmentCreationRequest} [segmentCreationRequest]
7619
7606
  * @param {*} [options] Override http request option.
7620
7607
  * @throws {RequiredError}
7621
7608
  */
7622
- createSegment: async (createSegmentRequest?: CreateSegmentRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7609
+ createSegment: async (segmentCreationRequest?: SegmentCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7623
7610
  const localVarPath = `/admins/segments`;
7624
7611
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7625
7612
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -7643,7 +7630,7 @@ export const SegmentApiAxiosParamCreator = function (configuration?: Configurati
7643
7630
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7644
7631
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7645
7632
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7646
- localVarRequestOptions.data = serializeDataIfNeeded(createSegmentRequest, localVarRequestOptions, configuration)
7633
+ localVarRequestOptions.data = serializeDataIfNeeded(segmentCreationRequest, localVarRequestOptions, configuration)
7647
7634
 
7648
7635
  return {
7649
7636
  url: toPathString(localVarUrlObj),
@@ -7745,12 +7732,12 @@ export const SegmentApiFp = function(configuration?: Configuration) {
7745
7732
  /**
7746
7733
  * This method allows adding a new Segment to the system.
7747
7734
  * @summary Method allows to create new segment.
7748
- * @param {CreateSegmentRequest} [createSegmentRequest]
7735
+ * @param {SegmentCreationRequest} [segmentCreationRequest]
7749
7736
  * @param {*} [options] Override http request option.
7750
7737
  * @throws {RequiredError}
7751
7738
  */
7752
- async createSegment(createSegmentRequest?: CreateSegmentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Segment>> {
7753
- const localVarAxiosArgs = await localVarAxiosParamCreator.createSegment(createSegmentRequest, options);
7739
+ async createSegment(segmentCreationRequest?: SegmentCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Segment>> {
7740
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSegment(segmentCreationRequest, options);
7754
7741
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7755
7742
  },
7756
7743
  /**
@@ -7789,12 +7776,12 @@ export const SegmentApiFactory = function (configuration?: Configuration, basePa
7789
7776
  /**
7790
7777
  * This method allows adding a new Segment to the system.
7791
7778
  * @summary Method allows to create new segment.
7792
- * @param {CreateSegmentRequest} [createSegmentRequest]
7779
+ * @param {SegmentCreationRequest} [segmentCreationRequest]
7793
7780
  * @param {*} [options] Override http request option.
7794
7781
  * @throws {RequiredError}
7795
7782
  */
7796
- createSegment(createSegmentRequest?: CreateSegmentRequest, options?: any): AxiosPromise<Segment> {
7797
- return localVarFp.createSegment(createSegmentRequest, options).then((request) => request(axios, basePath));
7783
+ createSegment(segmentCreationRequest?: SegmentCreationRequest, options?: any): AxiosPromise<Segment> {
7784
+ return localVarFp.createSegment(segmentCreationRequest, options).then((request) => request(axios, basePath));
7798
7785
  },
7799
7786
  /**
7800
7787
  * This method returns all information about a specific Segment.
@@ -7830,13 +7817,13 @@ export class SegmentApi extends BaseAPI {
7830
7817
  /**
7831
7818
  * This method allows adding a new Segment to the system.
7832
7819
  * @summary Method allows to create new segment.
7833
- * @param {CreateSegmentRequest} [createSegmentRequest]
7820
+ * @param {SegmentCreationRequest} [segmentCreationRequest]
7834
7821
  * @param {*} [options] Override http request option.
7835
7822
  * @throws {RequiredError}
7836
7823
  * @memberof SegmentApi
7837
7824
  */
7838
- public createSegment(createSegmentRequest?: CreateSegmentRequest, options?: AxiosRequestConfig) {
7839
- return SegmentApiFp(this.configuration).createSegment(createSegmentRequest, options).then((request) => request(this.axios, this.basePath));
7825
+ public createSegment(segmentCreationRequest?: SegmentCreationRequest, options?: AxiosRequestConfig) {
7826
+ return SegmentApiFp(this.configuration).createSegment(segmentCreationRequest, options).then((request) => request(this.axios, this.basePath));
7840
7827
  }
7841
7828
 
7842
7829
  /**
@@ -7876,11 +7863,11 @@ export const TagApiAxiosParamCreator = function (configuration?: Configuration)
7876
7863
  /**
7877
7864
  * This method allows adding a new tag to the system. Tag key must be unique.
7878
7865
  * @summary Method allows to create new tag.
7879
- * @param {CreateTagRequest} [createTagRequest]
7866
+ * @param {TagCreationRequest} [tagCreationRequest]
7880
7867
  * @param {*} [options] Override http request option.
7881
7868
  * @throws {RequiredError}
7882
7869
  */
7883
- createTag: async (createTagRequest?: CreateTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7870
+ createTag: async (tagCreationRequest?: TagCreationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
7884
7871
  const localVarPath = `/admins/tags`;
7885
7872
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7886
7873
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -7904,7 +7891,7 @@ export const TagApiAxiosParamCreator = function (configuration?: Configuration)
7904
7891
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7905
7892
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7906
7893
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7907
- localVarRequestOptions.data = serializeDataIfNeeded(createTagRequest, localVarRequestOptions, configuration)
7894
+ localVarRequestOptions.data = serializeDataIfNeeded(tagCreationRequest, localVarRequestOptions, configuration)
7908
7895
 
7909
7896
  return {
7910
7897
  url: toPathString(localVarUrlObj),
@@ -8030,11 +8017,11 @@ export const TagApiAxiosParamCreator = function (configuration?: Configuration)
8030
8017
  * This method allows updating a tag in the system.
8031
8018
  * @summary Method allows to update tag.
8032
8019
  * @param {string} key Tag key
8033
- * @param {CreateTagRequest} [createTagRequest]
8020
+ * @param {UpdateTagRequest} [updateTagRequest]
8034
8021
  * @param {*} [options] Override http request option.
8035
8022
  * @throws {RequiredError}
8036
8023
  */
8037
- updateTag: async (key: string, createTagRequest?: CreateTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
8024
+ updateTag: async (key: string, updateTagRequest?: UpdateTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
8038
8025
  // verify required parameter 'key' is not null or undefined
8039
8026
  assertParamExists('updateTag', 'key', key)
8040
8027
  const localVarPath = `/admins/tags/{key}`
@@ -8061,7 +8048,7 @@ export const TagApiAxiosParamCreator = function (configuration?: Configuration)
8061
8048
  setSearchParams(localVarUrlObj, localVarQueryParameter);
8062
8049
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8063
8050
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8064
- localVarRequestOptions.data = serializeDataIfNeeded(createTagRequest, localVarRequestOptions, configuration)
8051
+ localVarRequestOptions.data = serializeDataIfNeeded(updateTagRequest, localVarRequestOptions, configuration)
8065
8052
 
8066
8053
  return {
8067
8054
  url: toPathString(localVarUrlObj),
@@ -8081,12 +8068,12 @@ export const TagApiFp = function(configuration?: Configuration) {
8081
8068
  /**
8082
8069
  * This method allows adding a new tag to the system. Tag key must be unique.
8083
8070
  * @summary Method allows to create new tag.
8084
- * @param {CreateTagRequest} [createTagRequest]
8071
+ * @param {TagCreationRequest} [tagCreationRequest]
8085
8072
  * @param {*} [options] Override http request option.
8086
8073
  * @throws {RequiredError}
8087
8074
  */
8088
- async createTag(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tag>> {
8089
- const localVarAxiosArgs = await localVarAxiosParamCreator.createTag(createTagRequest, options);
8075
+ async createTag(tagCreationRequest?: TagCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagDetailed>> {
8076
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createTag(tagCreationRequest, options);
8090
8077
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
8091
8078
  },
8092
8079
  /**
@@ -8126,12 +8113,12 @@ export const TagApiFp = function(configuration?: Configuration) {
8126
8113
  * This method allows updating a tag in the system.
8127
8114
  * @summary Method allows to update tag.
8128
8115
  * @param {string} key Tag key
8129
- * @param {CreateTagRequest} [createTagRequest]
8116
+ * @param {UpdateTagRequest} [updateTagRequest]
8130
8117
  * @param {*} [options] Override http request option.
8131
8118
  * @throws {RequiredError}
8132
8119
  */
8133
- async updateTag(key: string, createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tag>> {
8134
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateTag(key, createTagRequest, options);
8120
+ async updateTag(key: string, updateTagRequest?: UpdateTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tag>> {
8121
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateTag(key, updateTagRequest, options);
8135
8122
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
8136
8123
  },
8137
8124
  }
@@ -8147,12 +8134,12 @@ export const TagApiFactory = function (configuration?: Configuration, basePath?:
8147
8134
  /**
8148
8135
  * This method allows adding a new tag to the system. Tag key must be unique.
8149
8136
  * @summary Method allows to create new tag.
8150
- * @param {CreateTagRequest} [createTagRequest]
8137
+ * @param {TagCreationRequest} [tagCreationRequest]
8151
8138
  * @param {*} [options] Override http request option.
8152
8139
  * @throws {RequiredError}
8153
8140
  */
8154
- createTag(createTagRequest?: CreateTagRequest, options?: any): AxiosPromise<Tag> {
8155
- return localVarFp.createTag(createTagRequest, options).then((request) => request(axios, basePath));
8141
+ createTag(tagCreationRequest?: TagCreationRequest, options?: any): AxiosPromise<TagDetailed> {
8142
+ return localVarFp.createTag(tagCreationRequest, options).then((request) => request(axios, basePath));
8156
8143
  },
8157
8144
  /**
8158
8145
  * This method allows deleting a tag from the system.
@@ -8188,12 +8175,12 @@ export const TagApiFactory = function (configuration?: Configuration, basePath?:
8188
8175
  * This method allows updating a tag in the system.
8189
8176
  * @summary Method allows to update tag.
8190
8177
  * @param {string} key Tag key
8191
- * @param {CreateTagRequest} [createTagRequest]
8178
+ * @param {UpdateTagRequest} [updateTagRequest]
8192
8179
  * @param {*} [options] Override http request option.
8193
8180
  * @throws {RequiredError}
8194
8181
  */
8195
- updateTag(key: string, createTagRequest?: CreateTagRequest, options?: any): AxiosPromise<Tag> {
8196
- return localVarFp.updateTag(key, createTagRequest, options).then((request) => request(axios, basePath));
8182
+ updateTag(key: string, updateTagRequest?: UpdateTagRequest, options?: any): AxiosPromise<Tag> {
8183
+ return localVarFp.updateTag(key, updateTagRequest, options).then((request) => request(axios, basePath));
8197
8184
  },
8198
8185
  };
8199
8186
  };
@@ -8208,13 +8195,13 @@ export class TagApi extends BaseAPI {
8208
8195
  /**
8209
8196
  * This method allows adding a new tag to the system. Tag key must be unique.
8210
8197
  * @summary Method allows to create new tag.
8211
- * @param {CreateTagRequest} [createTagRequest]
8198
+ * @param {TagCreationRequest} [tagCreationRequest]
8212
8199
  * @param {*} [options] Override http request option.
8213
8200
  * @throws {RequiredError}
8214
8201
  * @memberof TagApi
8215
8202
  */
8216
- public createTag(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig) {
8217
- return TagApiFp(this.configuration).createTag(createTagRequest, options).then((request) => request(this.axios, this.basePath));
8203
+ public createTag(tagCreationRequest?: TagCreationRequest, options?: AxiosRequestConfig) {
8204
+ return TagApiFp(this.configuration).createTag(tagCreationRequest, options).then((request) => request(this.axios, this.basePath));
8218
8205
  }
8219
8206
 
8220
8207
  /**
@@ -8257,13 +8244,13 @@ export class TagApi extends BaseAPI {
8257
8244
  * This method allows updating a tag in the system.
8258
8245
  * @summary Method allows to update tag.
8259
8246
  * @param {string} key Tag key
8260
- * @param {CreateTagRequest} [createTagRequest]
8247
+ * @param {UpdateTagRequest} [updateTagRequest]
8261
8248
  * @param {*} [options] Override http request option.
8262
8249
  * @throws {RequiredError}
8263
8250
  * @memberof TagApi
8264
8251
  */
8265
- public updateTag(key: string, createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig) {
8266
- return TagApiFp(this.configuration).updateTag(key, createTagRequest, options).then((request) => request(this.axios, this.basePath));
8252
+ public updateTag(key: string, updateTagRequest?: UpdateTagRequest, options?: AxiosRequestConfig) {
8253
+ return TagApiFp(this.configuration).updateTag(key, updateTagRequest, options).then((request) => request(this.axios, this.basePath));
8267
8254
  }
8268
8255
  }
8269
8256
 
package/dist/api.d.ts CHANGED
@@ -521,32 +521,6 @@ export interface CreateOrderRequest {
521
521
  */
522
522
  'tag'?: OrderCreationRequest;
523
523
  }
524
- /**
525
- *
526
- * @export
527
- * @interface CreateSegmentRequest
528
- */
529
- export interface CreateSegmentRequest {
530
- /**
531
- *
532
- * @type {SegmentCreationRequest}
533
- * @memberof CreateSegmentRequest
534
- */
535
- 'segment'?: SegmentCreationRequest;
536
- }
537
- /**
538
- *
539
- * @export
540
- * @interface CreateTagRequest
541
- */
542
- export interface CreateTagRequest {
543
- /**
544
- *
545
- * @type {TagCreationRequest}
546
- * @memberof CreateTagRequest
547
- */
548
- 'tag'?: TagCreationRequest;
549
- }
550
524
  /**
551
525
  *
552
526
  * @export
@@ -2681,6 +2655,19 @@ export interface UpdatePromotionRequest {
2681
2655
  */
2682
2656
  'repetition'?: Repetition;
2683
2657
  }
2658
+ /**
2659
+ *
2660
+ * @export
2661
+ * @interface UpdateTagRequest
2662
+ */
2663
+ export interface UpdateTagRequest {
2664
+ /**
2665
+ *
2666
+ * @type {TagCreationRequest}
2667
+ * @memberof UpdateTagRequest
2668
+ */
2669
+ 'tag'?: TagCreationRequest;
2670
+ }
2684
2671
  /**
2685
2672
  *
2686
2673
  * @export
@@ -5197,11 +5184,11 @@ export declare const SegmentApiAxiosParamCreator: (configuration?: Configuration
5197
5184
  /**
5198
5185
  * This method allows adding a new Segment to the system.
5199
5186
  * @summary Method allows to create new segment.
5200
- * @param {CreateSegmentRequest} [createSegmentRequest]
5187
+ * @param {SegmentCreationRequest} [segmentCreationRequest]
5201
5188
  * @param {*} [options] Override http request option.
5202
5189
  * @throws {RequiredError}
5203
5190
  */
5204
- createSegment: (createSegmentRequest?: CreateSegmentRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5191
+ createSegment: (segmentCreationRequest?: SegmentCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5205
5192
  /**
5206
5193
  * This method returns all information about a specific Segment.
5207
5194
  * @summary Method will return segment details.
@@ -5228,11 +5215,11 @@ export declare const SegmentApiFp: (configuration?: Configuration) => {
5228
5215
  /**
5229
5216
  * This method allows adding a new Segment to the system.
5230
5217
  * @summary Method allows to create new segment.
5231
- * @param {CreateSegmentRequest} [createSegmentRequest]
5218
+ * @param {SegmentCreationRequest} [segmentCreationRequest]
5232
5219
  * @param {*} [options] Override http request option.
5233
5220
  * @throws {RequiredError}
5234
5221
  */
5235
- createSegment(createSegmentRequest?: CreateSegmentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Segment>>;
5222
+ createSegment(segmentCreationRequest?: SegmentCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Segment>>;
5236
5223
  /**
5237
5224
  * This method returns all information about a specific Segment.
5238
5225
  * @summary Method will return segment details.
@@ -5259,11 +5246,11 @@ export declare const SegmentApiFactory: (configuration?: Configuration, basePath
5259
5246
  /**
5260
5247
  * This method allows adding a new Segment to the system.
5261
5248
  * @summary Method allows to create new segment.
5262
- * @param {CreateSegmentRequest} [createSegmentRequest]
5249
+ * @param {SegmentCreationRequest} [segmentCreationRequest]
5263
5250
  * @param {*} [options] Override http request option.
5264
5251
  * @throws {RequiredError}
5265
5252
  */
5266
- createSegment(createSegmentRequest?: CreateSegmentRequest, options?: any): AxiosPromise<Segment>;
5253
+ createSegment(segmentCreationRequest?: SegmentCreationRequest, options?: any): AxiosPromise<Segment>;
5267
5254
  /**
5268
5255
  * This method returns all information about a specific Segment.
5269
5256
  * @summary Method will return segment details.
@@ -5292,12 +5279,12 @@ export declare class SegmentApi extends BaseAPI {
5292
5279
  /**
5293
5280
  * This method allows adding a new Segment to the system.
5294
5281
  * @summary Method allows to create new segment.
5295
- * @param {CreateSegmentRequest} [createSegmentRequest]
5282
+ * @param {SegmentCreationRequest} [segmentCreationRequest]
5296
5283
  * @param {*} [options] Override http request option.
5297
5284
  * @throws {RequiredError}
5298
5285
  * @memberof SegmentApi
5299
5286
  */
5300
- createSegment(createSegmentRequest?: CreateSegmentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Segment, any>>;
5287
+ createSegment(segmentCreationRequest?: SegmentCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Segment, any>>;
5301
5288
  /**
5302
5289
  * This method returns all information about a specific Segment.
5303
5290
  * @summary Method will return segment details.
@@ -5326,11 +5313,11 @@ export declare const TagApiAxiosParamCreator: (configuration?: Configuration) =>
5326
5313
  /**
5327
5314
  * This method allows adding a new tag to the system. Tag key must be unique.
5328
5315
  * @summary Method allows to create new tag.
5329
- * @param {CreateTagRequest} [createTagRequest]
5316
+ * @param {TagCreationRequest} [tagCreationRequest]
5330
5317
  * @param {*} [options] Override http request option.
5331
5318
  * @throws {RequiredError}
5332
5319
  */
5333
- createTag: (createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5320
+ createTag: (tagCreationRequest?: TagCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5334
5321
  /**
5335
5322
  * This method allows deleting a tag from the system.
5336
5323
  * @summary Method allows to delete tag.
@@ -5359,11 +5346,11 @@ export declare const TagApiAxiosParamCreator: (configuration?: Configuration) =>
5359
5346
  * This method allows updating a tag in the system.
5360
5347
  * @summary Method allows to update tag.
5361
5348
  * @param {string} key Tag key
5362
- * @param {CreateTagRequest} [createTagRequest]
5349
+ * @param {UpdateTagRequest} [updateTagRequest]
5363
5350
  * @param {*} [options] Override http request option.
5364
5351
  * @throws {RequiredError}
5365
5352
  */
5366
- updateTag: (key: string, createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5353
+ updateTag: (key: string, updateTagRequest?: UpdateTagRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5367
5354
  };
5368
5355
  /**
5369
5356
  * TagApi - functional programming interface
@@ -5373,11 +5360,11 @@ export declare const TagApiFp: (configuration?: Configuration) => {
5373
5360
  /**
5374
5361
  * This method allows adding a new tag to the system. Tag key must be unique.
5375
5362
  * @summary Method allows to create new tag.
5376
- * @param {CreateTagRequest} [createTagRequest]
5363
+ * @param {TagCreationRequest} [tagCreationRequest]
5377
5364
  * @param {*} [options] Override http request option.
5378
5365
  * @throws {RequiredError}
5379
5366
  */
5380
- createTag(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tag>>;
5367
+ createTag(tagCreationRequest?: TagCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagDetailed>>;
5381
5368
  /**
5382
5369
  * This method allows deleting a tag from the system.
5383
5370
  * @summary Method allows to delete tag.
@@ -5406,11 +5393,11 @@ export declare const TagApiFp: (configuration?: Configuration) => {
5406
5393
  * This method allows updating a tag in the system.
5407
5394
  * @summary Method allows to update tag.
5408
5395
  * @param {string} key Tag key
5409
- * @param {CreateTagRequest} [createTagRequest]
5396
+ * @param {UpdateTagRequest} [updateTagRequest]
5410
5397
  * @param {*} [options] Override http request option.
5411
5398
  * @throws {RequiredError}
5412
5399
  */
5413
- updateTag(key: string, createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tag>>;
5400
+ updateTag(key: string, updateTagRequest?: UpdateTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tag>>;
5414
5401
  };
5415
5402
  /**
5416
5403
  * TagApi - factory interface
@@ -5420,11 +5407,11 @@ export declare const TagApiFactory: (configuration?: Configuration, basePath?: s
5420
5407
  /**
5421
5408
  * This method allows adding a new tag to the system. Tag key must be unique.
5422
5409
  * @summary Method allows to create new tag.
5423
- * @param {CreateTagRequest} [createTagRequest]
5410
+ * @param {TagCreationRequest} [tagCreationRequest]
5424
5411
  * @param {*} [options] Override http request option.
5425
5412
  * @throws {RequiredError}
5426
5413
  */
5427
- createTag(createTagRequest?: CreateTagRequest, options?: any): AxiosPromise<Tag>;
5414
+ createTag(tagCreationRequest?: TagCreationRequest, options?: any): AxiosPromise<TagDetailed>;
5428
5415
  /**
5429
5416
  * This method allows deleting a tag from the system.
5430
5417
  * @summary Method allows to delete tag.
@@ -5453,11 +5440,11 @@ export declare const TagApiFactory: (configuration?: Configuration, basePath?: s
5453
5440
  * This method allows updating a tag in the system.
5454
5441
  * @summary Method allows to update tag.
5455
5442
  * @param {string} key Tag key
5456
- * @param {CreateTagRequest} [createTagRequest]
5443
+ * @param {UpdateTagRequest} [updateTagRequest]
5457
5444
  * @param {*} [options] Override http request option.
5458
5445
  * @throws {RequiredError}
5459
5446
  */
5460
- updateTag(key: string, createTagRequest?: CreateTagRequest, options?: any): AxiosPromise<Tag>;
5447
+ updateTag(key: string, updateTagRequest?: UpdateTagRequest, options?: any): AxiosPromise<Tag>;
5461
5448
  };
5462
5449
  /**
5463
5450
  * TagApi - object-oriented interface
@@ -5469,12 +5456,12 @@ export declare class TagApi extends BaseAPI {
5469
5456
  /**
5470
5457
  * This method allows adding a new tag to the system. Tag key must be unique.
5471
5458
  * @summary Method allows to create new tag.
5472
- * @param {CreateTagRequest} [createTagRequest]
5459
+ * @param {TagCreationRequest} [tagCreationRequest]
5473
5460
  * @param {*} [options] Override http request option.
5474
5461
  * @throws {RequiredError}
5475
5462
  * @memberof TagApi
5476
5463
  */
5477
- createTag(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Tag, any>>;
5464
+ createTag(tagCreationRequest?: TagCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TagDetailed, any>>;
5478
5465
  /**
5479
5466
  * This method allows deleting a tag from the system.
5480
5467
  * @summary Method allows to delete tag.
@@ -5506,12 +5493,12 @@ export declare class TagApi extends BaseAPI {
5506
5493
  * This method allows updating a tag in the system.
5507
5494
  * @summary Method allows to update tag.
5508
5495
  * @param {string} key Tag key
5509
- * @param {CreateTagRequest} [createTagRequest]
5496
+ * @param {UpdateTagRequest} [updateTagRequest]
5510
5497
  * @param {*} [options] Override http request option.
5511
5498
  * @throws {RequiredError}
5512
5499
  * @memberof TagApi
5513
5500
  */
5514
- updateTag(key: string, createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Tag, any>>;
5501
+ updateTag(key: string, updateTagRequest?: UpdateTagRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Tag, any>>;
5515
5502
  }
5516
5503
  /**
5517
5504
  * TransactionApi - axios parameter creator
package/dist/api.js CHANGED
@@ -4459,11 +4459,11 @@ const SegmentApiAxiosParamCreator = function (configuration) {
4459
4459
  /**
4460
4460
  * This method allows adding a new Segment to the system.
4461
4461
  * @summary Method allows to create new segment.
4462
- * @param {CreateSegmentRequest} [createSegmentRequest]
4462
+ * @param {SegmentCreationRequest} [segmentCreationRequest]
4463
4463
  * @param {*} [options] Override http request option.
4464
4464
  * @throws {RequiredError}
4465
4465
  */
4466
- createSegment: (createSegmentRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
4466
+ createSegment: (segmentCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
4467
4467
  const localVarPath = `/admins/segments`;
4468
4468
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4469
4469
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -4481,7 +4481,7 @@ const SegmentApiAxiosParamCreator = function (configuration) {
4481
4481
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4482
4482
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4483
4483
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4484
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSegmentRequest, localVarRequestOptions, configuration);
4484
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(segmentCreationRequest, localVarRequestOptions, configuration);
4485
4485
  return {
4486
4486
  url: (0, common_1.toPathString)(localVarUrlObj),
4487
4487
  options: localVarRequestOptions,
@@ -4568,13 +4568,13 @@ const SegmentApiFp = function (configuration) {
4568
4568
  /**
4569
4569
  * This method allows adding a new Segment to the system.
4570
4570
  * @summary Method allows to create new segment.
4571
- * @param {CreateSegmentRequest} [createSegmentRequest]
4571
+ * @param {SegmentCreationRequest} [segmentCreationRequest]
4572
4572
  * @param {*} [options] Override http request option.
4573
4573
  * @throws {RequiredError}
4574
4574
  */
4575
- createSegment(createSegmentRequest, options) {
4575
+ createSegment(segmentCreationRequest, options) {
4576
4576
  return __awaiter(this, void 0, void 0, function* () {
4577
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createSegment(createSegmentRequest, options);
4577
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSegment(segmentCreationRequest, options);
4578
4578
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
4579
4579
  });
4580
4580
  },
@@ -4618,12 +4618,12 @@ const SegmentApiFactory = function (configuration, basePath, axios) {
4618
4618
  /**
4619
4619
  * This method allows adding a new Segment to the system.
4620
4620
  * @summary Method allows to create new segment.
4621
- * @param {CreateSegmentRequest} [createSegmentRequest]
4621
+ * @param {SegmentCreationRequest} [segmentCreationRequest]
4622
4622
  * @param {*} [options] Override http request option.
4623
4623
  * @throws {RequiredError}
4624
4624
  */
4625
- createSegment(createSegmentRequest, options) {
4626
- return localVarFp.createSegment(createSegmentRequest, options).then((request) => request(axios, basePath));
4625
+ createSegment(segmentCreationRequest, options) {
4626
+ return localVarFp.createSegment(segmentCreationRequest, options).then((request) => request(axios, basePath));
4627
4627
  },
4628
4628
  /**
4629
4629
  * This method returns all information about a specific Segment.
@@ -4659,13 +4659,13 @@ class SegmentApi extends base_1.BaseAPI {
4659
4659
  /**
4660
4660
  * This method allows adding a new Segment to the system.
4661
4661
  * @summary Method allows to create new segment.
4662
- * @param {CreateSegmentRequest} [createSegmentRequest]
4662
+ * @param {SegmentCreationRequest} [segmentCreationRequest]
4663
4663
  * @param {*} [options] Override http request option.
4664
4664
  * @throws {RequiredError}
4665
4665
  * @memberof SegmentApi
4666
4666
  */
4667
- createSegment(createSegmentRequest, options) {
4668
- return (0, exports.SegmentApiFp)(this.configuration).createSegment(createSegmentRequest, options).then((request) => request(this.axios, this.basePath));
4667
+ createSegment(segmentCreationRequest, options) {
4668
+ return (0, exports.SegmentApiFp)(this.configuration).createSegment(segmentCreationRequest, options).then((request) => request(this.axios, this.basePath));
4669
4669
  }
4670
4670
  /**
4671
4671
  * This method returns all information about a specific Segment.
@@ -4701,11 +4701,11 @@ const TagApiAxiosParamCreator = function (configuration) {
4701
4701
  /**
4702
4702
  * This method allows adding a new tag to the system. Tag key must be unique.
4703
4703
  * @summary Method allows to create new tag.
4704
- * @param {CreateTagRequest} [createTagRequest]
4704
+ * @param {TagCreationRequest} [tagCreationRequest]
4705
4705
  * @param {*} [options] Override http request option.
4706
4706
  * @throws {RequiredError}
4707
4707
  */
4708
- createTag: (createTagRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
4708
+ createTag: (tagCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
4709
4709
  const localVarPath = `/admins/tags`;
4710
4710
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4711
4711
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -4723,7 +4723,7 @@ const TagApiAxiosParamCreator = function (configuration) {
4723
4723
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4724
4724
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4725
4725
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4726
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createTagRequest, localVarRequestOptions, configuration);
4726
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(tagCreationRequest, localVarRequestOptions, configuration);
4727
4727
  return {
4728
4728
  url: (0, common_1.toPathString)(localVarUrlObj),
4729
4729
  options: localVarRequestOptions,
@@ -4829,11 +4829,11 @@ const TagApiAxiosParamCreator = function (configuration) {
4829
4829
  * This method allows updating a tag in the system.
4830
4830
  * @summary Method allows to update tag.
4831
4831
  * @param {string} key Tag key
4832
- * @param {CreateTagRequest} [createTagRequest]
4832
+ * @param {UpdateTagRequest} [updateTagRequest]
4833
4833
  * @param {*} [options] Override http request option.
4834
4834
  * @throws {RequiredError}
4835
4835
  */
4836
- updateTag: (key, createTagRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
4836
+ updateTag: (key, updateTagRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
4837
4837
  // verify required parameter 'key' is not null or undefined
4838
4838
  (0, common_1.assertParamExists)('updateTag', 'key', key);
4839
4839
  const localVarPath = `/admins/tags/{key}`
@@ -4854,7 +4854,7 @@ const TagApiAxiosParamCreator = function (configuration) {
4854
4854
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4855
4855
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4856
4856
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4857
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createTagRequest, localVarRequestOptions, configuration);
4857
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateTagRequest, localVarRequestOptions, configuration);
4858
4858
  return {
4859
4859
  url: (0, common_1.toPathString)(localVarUrlObj),
4860
4860
  options: localVarRequestOptions,
@@ -4873,13 +4873,13 @@ const TagApiFp = function (configuration) {
4873
4873
  /**
4874
4874
  * This method allows adding a new tag to the system. Tag key must be unique.
4875
4875
  * @summary Method allows to create new tag.
4876
- * @param {CreateTagRequest} [createTagRequest]
4876
+ * @param {TagCreationRequest} [tagCreationRequest]
4877
4877
  * @param {*} [options] Override http request option.
4878
4878
  * @throws {RequiredError}
4879
4879
  */
4880
- createTag(createTagRequest, options) {
4880
+ createTag(tagCreationRequest, options) {
4881
4881
  return __awaiter(this, void 0, void 0, function* () {
4882
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createTag(createTagRequest, options);
4882
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createTag(tagCreationRequest, options);
4883
4883
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
4884
4884
  });
4885
4885
  },
@@ -4926,13 +4926,13 @@ const TagApiFp = function (configuration) {
4926
4926
  * This method allows updating a tag in the system.
4927
4927
  * @summary Method allows to update tag.
4928
4928
  * @param {string} key Tag key
4929
- * @param {CreateTagRequest} [createTagRequest]
4929
+ * @param {UpdateTagRequest} [updateTagRequest]
4930
4930
  * @param {*} [options] Override http request option.
4931
4931
  * @throws {RequiredError}
4932
4932
  */
4933
- updateTag(key, createTagRequest, options) {
4933
+ updateTag(key, updateTagRequest, options) {
4934
4934
  return __awaiter(this, void 0, void 0, function* () {
4935
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTag(key, createTagRequest, options);
4935
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTag(key, updateTagRequest, options);
4936
4936
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
4937
4937
  });
4938
4938
  },
@@ -4949,12 +4949,12 @@ const TagApiFactory = function (configuration, basePath, axios) {
4949
4949
  /**
4950
4950
  * This method allows adding a new tag to the system. Tag key must be unique.
4951
4951
  * @summary Method allows to create new tag.
4952
- * @param {CreateTagRequest} [createTagRequest]
4952
+ * @param {TagCreationRequest} [tagCreationRequest]
4953
4953
  * @param {*} [options] Override http request option.
4954
4954
  * @throws {RequiredError}
4955
4955
  */
4956
- createTag(createTagRequest, options) {
4957
- return localVarFp.createTag(createTagRequest, options).then((request) => request(axios, basePath));
4956
+ createTag(tagCreationRequest, options) {
4957
+ return localVarFp.createTag(tagCreationRequest, options).then((request) => request(axios, basePath));
4958
4958
  },
4959
4959
  /**
4960
4960
  * This method allows deleting a tag from the system.
@@ -4990,12 +4990,12 @@ const TagApiFactory = function (configuration, basePath, axios) {
4990
4990
  * This method allows updating a tag in the system.
4991
4991
  * @summary Method allows to update tag.
4992
4992
  * @param {string} key Tag key
4993
- * @param {CreateTagRequest} [createTagRequest]
4993
+ * @param {UpdateTagRequest} [updateTagRequest]
4994
4994
  * @param {*} [options] Override http request option.
4995
4995
  * @throws {RequiredError}
4996
4996
  */
4997
- updateTag(key, createTagRequest, options) {
4998
- return localVarFp.updateTag(key, createTagRequest, options).then((request) => request(axios, basePath));
4997
+ updateTag(key, updateTagRequest, options) {
4998
+ return localVarFp.updateTag(key, updateTagRequest, options).then((request) => request(axios, basePath));
4999
4999
  },
5000
5000
  };
5001
5001
  };
@@ -5010,13 +5010,13 @@ class TagApi extends base_1.BaseAPI {
5010
5010
  /**
5011
5011
  * This method allows adding a new tag to the system. Tag key must be unique.
5012
5012
  * @summary Method allows to create new tag.
5013
- * @param {CreateTagRequest} [createTagRequest]
5013
+ * @param {TagCreationRequest} [tagCreationRequest]
5014
5014
  * @param {*} [options] Override http request option.
5015
5015
  * @throws {RequiredError}
5016
5016
  * @memberof TagApi
5017
5017
  */
5018
- createTag(createTagRequest, options) {
5019
- return (0, exports.TagApiFp)(this.configuration).createTag(createTagRequest, options).then((request) => request(this.axios, this.basePath));
5018
+ createTag(tagCreationRequest, options) {
5019
+ return (0, exports.TagApiFp)(this.configuration).createTag(tagCreationRequest, options).then((request) => request(this.axios, this.basePath));
5020
5020
  }
5021
5021
  /**
5022
5022
  * This method allows deleting a tag from the system.
@@ -5055,13 +5055,13 @@ class TagApi extends base_1.BaseAPI {
5055
5055
  * This method allows updating a tag in the system.
5056
5056
  * @summary Method allows to update tag.
5057
5057
  * @param {string} key Tag key
5058
- * @param {CreateTagRequest} [createTagRequest]
5058
+ * @param {UpdateTagRequest} [updateTagRequest]
5059
5059
  * @param {*} [options] Override http request option.
5060
5060
  * @throws {RequiredError}
5061
5061
  * @memberof TagApi
5062
5062
  */
5063
- updateTag(key, createTagRequest, options) {
5064
- return (0, exports.TagApiFp)(this.configuration).updateTag(key, createTagRequest, options).then((request) => request(this.axios, this.basePath));
5063
+ updateTag(key, updateTagRequest, options) {
5064
+ return (0, exports.TagApiFp)(this.configuration).updateTag(key, updateTagRequest, options).then((request) => request(this.axios, this.basePath));
5065
5065
  }
5066
5066
  }
5067
5067
  exports.TagApi = TagApi;
package/dist/esm/api.d.ts CHANGED
@@ -521,32 +521,6 @@ export interface CreateOrderRequest {
521
521
  */
522
522
  'tag'?: OrderCreationRequest;
523
523
  }
524
- /**
525
- *
526
- * @export
527
- * @interface CreateSegmentRequest
528
- */
529
- export interface CreateSegmentRequest {
530
- /**
531
- *
532
- * @type {SegmentCreationRequest}
533
- * @memberof CreateSegmentRequest
534
- */
535
- 'segment'?: SegmentCreationRequest;
536
- }
537
- /**
538
- *
539
- * @export
540
- * @interface CreateTagRequest
541
- */
542
- export interface CreateTagRequest {
543
- /**
544
- *
545
- * @type {TagCreationRequest}
546
- * @memberof CreateTagRequest
547
- */
548
- 'tag'?: TagCreationRequest;
549
- }
550
524
  /**
551
525
  *
552
526
  * @export
@@ -2681,6 +2655,19 @@ export interface UpdatePromotionRequest {
2681
2655
  */
2682
2656
  'repetition'?: Repetition;
2683
2657
  }
2658
+ /**
2659
+ *
2660
+ * @export
2661
+ * @interface UpdateTagRequest
2662
+ */
2663
+ export interface UpdateTagRequest {
2664
+ /**
2665
+ *
2666
+ * @type {TagCreationRequest}
2667
+ * @memberof UpdateTagRequest
2668
+ */
2669
+ 'tag'?: TagCreationRequest;
2670
+ }
2684
2671
  /**
2685
2672
  *
2686
2673
  * @export
@@ -5197,11 +5184,11 @@ export declare const SegmentApiAxiosParamCreator: (configuration?: Configuration
5197
5184
  /**
5198
5185
  * This method allows adding a new Segment to the system.
5199
5186
  * @summary Method allows to create new segment.
5200
- * @param {CreateSegmentRequest} [createSegmentRequest]
5187
+ * @param {SegmentCreationRequest} [segmentCreationRequest]
5201
5188
  * @param {*} [options] Override http request option.
5202
5189
  * @throws {RequiredError}
5203
5190
  */
5204
- createSegment: (createSegmentRequest?: CreateSegmentRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5191
+ createSegment: (segmentCreationRequest?: SegmentCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5205
5192
  /**
5206
5193
  * This method returns all information about a specific Segment.
5207
5194
  * @summary Method will return segment details.
@@ -5228,11 +5215,11 @@ export declare const SegmentApiFp: (configuration?: Configuration) => {
5228
5215
  /**
5229
5216
  * This method allows adding a new Segment to the system.
5230
5217
  * @summary Method allows to create new segment.
5231
- * @param {CreateSegmentRequest} [createSegmentRequest]
5218
+ * @param {SegmentCreationRequest} [segmentCreationRequest]
5232
5219
  * @param {*} [options] Override http request option.
5233
5220
  * @throws {RequiredError}
5234
5221
  */
5235
- createSegment(createSegmentRequest?: CreateSegmentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Segment>>;
5222
+ createSegment(segmentCreationRequest?: SegmentCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Segment>>;
5236
5223
  /**
5237
5224
  * This method returns all information about a specific Segment.
5238
5225
  * @summary Method will return segment details.
@@ -5259,11 +5246,11 @@ export declare const SegmentApiFactory: (configuration?: Configuration, basePath
5259
5246
  /**
5260
5247
  * This method allows adding a new Segment to the system.
5261
5248
  * @summary Method allows to create new segment.
5262
- * @param {CreateSegmentRequest} [createSegmentRequest]
5249
+ * @param {SegmentCreationRequest} [segmentCreationRequest]
5263
5250
  * @param {*} [options] Override http request option.
5264
5251
  * @throws {RequiredError}
5265
5252
  */
5266
- createSegment(createSegmentRequest?: CreateSegmentRequest, options?: any): AxiosPromise<Segment>;
5253
+ createSegment(segmentCreationRequest?: SegmentCreationRequest, options?: any): AxiosPromise<Segment>;
5267
5254
  /**
5268
5255
  * This method returns all information about a specific Segment.
5269
5256
  * @summary Method will return segment details.
@@ -5292,12 +5279,12 @@ export declare class SegmentApi extends BaseAPI {
5292
5279
  /**
5293
5280
  * This method allows adding a new Segment to the system.
5294
5281
  * @summary Method allows to create new segment.
5295
- * @param {CreateSegmentRequest} [createSegmentRequest]
5282
+ * @param {SegmentCreationRequest} [segmentCreationRequest]
5296
5283
  * @param {*} [options] Override http request option.
5297
5284
  * @throws {RequiredError}
5298
5285
  * @memberof SegmentApi
5299
5286
  */
5300
- createSegment(createSegmentRequest?: CreateSegmentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Segment, any>>;
5287
+ createSegment(segmentCreationRequest?: SegmentCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Segment, any>>;
5301
5288
  /**
5302
5289
  * This method returns all information about a specific Segment.
5303
5290
  * @summary Method will return segment details.
@@ -5326,11 +5313,11 @@ export declare const TagApiAxiosParamCreator: (configuration?: Configuration) =>
5326
5313
  /**
5327
5314
  * This method allows adding a new tag to the system. Tag key must be unique.
5328
5315
  * @summary Method allows to create new tag.
5329
- * @param {CreateTagRequest} [createTagRequest]
5316
+ * @param {TagCreationRequest} [tagCreationRequest]
5330
5317
  * @param {*} [options] Override http request option.
5331
5318
  * @throws {RequiredError}
5332
5319
  */
5333
- createTag: (createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5320
+ createTag: (tagCreationRequest?: TagCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5334
5321
  /**
5335
5322
  * This method allows deleting a tag from the system.
5336
5323
  * @summary Method allows to delete tag.
@@ -5359,11 +5346,11 @@ export declare const TagApiAxiosParamCreator: (configuration?: Configuration) =>
5359
5346
  * This method allows updating a tag in the system.
5360
5347
  * @summary Method allows to update tag.
5361
5348
  * @param {string} key Tag key
5362
- * @param {CreateTagRequest} [createTagRequest]
5349
+ * @param {UpdateTagRequest} [updateTagRequest]
5363
5350
  * @param {*} [options] Override http request option.
5364
5351
  * @throws {RequiredError}
5365
5352
  */
5366
- updateTag: (key: string, createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5353
+ updateTag: (key: string, updateTagRequest?: UpdateTagRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
5367
5354
  };
5368
5355
  /**
5369
5356
  * TagApi - functional programming interface
@@ -5373,11 +5360,11 @@ export declare const TagApiFp: (configuration?: Configuration) => {
5373
5360
  /**
5374
5361
  * This method allows adding a new tag to the system. Tag key must be unique.
5375
5362
  * @summary Method allows to create new tag.
5376
- * @param {CreateTagRequest} [createTagRequest]
5363
+ * @param {TagCreationRequest} [tagCreationRequest]
5377
5364
  * @param {*} [options] Override http request option.
5378
5365
  * @throws {RequiredError}
5379
5366
  */
5380
- createTag(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tag>>;
5367
+ createTag(tagCreationRequest?: TagCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagDetailed>>;
5381
5368
  /**
5382
5369
  * This method allows deleting a tag from the system.
5383
5370
  * @summary Method allows to delete tag.
@@ -5406,11 +5393,11 @@ export declare const TagApiFp: (configuration?: Configuration) => {
5406
5393
  * This method allows updating a tag in the system.
5407
5394
  * @summary Method allows to update tag.
5408
5395
  * @param {string} key Tag key
5409
- * @param {CreateTagRequest} [createTagRequest]
5396
+ * @param {UpdateTagRequest} [updateTagRequest]
5410
5397
  * @param {*} [options] Override http request option.
5411
5398
  * @throws {RequiredError}
5412
5399
  */
5413
- updateTag(key: string, createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tag>>;
5400
+ updateTag(key: string, updateTagRequest?: UpdateTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tag>>;
5414
5401
  };
5415
5402
  /**
5416
5403
  * TagApi - factory interface
@@ -5420,11 +5407,11 @@ export declare const TagApiFactory: (configuration?: Configuration, basePath?: s
5420
5407
  /**
5421
5408
  * This method allows adding a new tag to the system. Tag key must be unique.
5422
5409
  * @summary Method allows to create new tag.
5423
- * @param {CreateTagRequest} [createTagRequest]
5410
+ * @param {TagCreationRequest} [tagCreationRequest]
5424
5411
  * @param {*} [options] Override http request option.
5425
5412
  * @throws {RequiredError}
5426
5413
  */
5427
- createTag(createTagRequest?: CreateTagRequest, options?: any): AxiosPromise<Tag>;
5414
+ createTag(tagCreationRequest?: TagCreationRequest, options?: any): AxiosPromise<TagDetailed>;
5428
5415
  /**
5429
5416
  * This method allows deleting a tag from the system.
5430
5417
  * @summary Method allows to delete tag.
@@ -5453,11 +5440,11 @@ export declare const TagApiFactory: (configuration?: Configuration, basePath?: s
5453
5440
  * This method allows updating a tag in the system.
5454
5441
  * @summary Method allows to update tag.
5455
5442
  * @param {string} key Tag key
5456
- * @param {CreateTagRequest} [createTagRequest]
5443
+ * @param {UpdateTagRequest} [updateTagRequest]
5457
5444
  * @param {*} [options] Override http request option.
5458
5445
  * @throws {RequiredError}
5459
5446
  */
5460
- updateTag(key: string, createTagRequest?: CreateTagRequest, options?: any): AxiosPromise<Tag>;
5447
+ updateTag(key: string, updateTagRequest?: UpdateTagRequest, options?: any): AxiosPromise<Tag>;
5461
5448
  };
5462
5449
  /**
5463
5450
  * TagApi - object-oriented interface
@@ -5469,12 +5456,12 @@ export declare class TagApi extends BaseAPI {
5469
5456
  /**
5470
5457
  * This method allows adding a new tag to the system. Tag key must be unique.
5471
5458
  * @summary Method allows to create new tag.
5472
- * @param {CreateTagRequest} [createTagRequest]
5459
+ * @param {TagCreationRequest} [tagCreationRequest]
5473
5460
  * @param {*} [options] Override http request option.
5474
5461
  * @throws {RequiredError}
5475
5462
  * @memberof TagApi
5476
5463
  */
5477
- createTag(createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Tag, any>>;
5464
+ createTag(tagCreationRequest?: TagCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TagDetailed, any>>;
5478
5465
  /**
5479
5466
  * This method allows deleting a tag from the system.
5480
5467
  * @summary Method allows to delete tag.
@@ -5506,12 +5493,12 @@ export declare class TagApi extends BaseAPI {
5506
5493
  * This method allows updating a tag in the system.
5507
5494
  * @summary Method allows to update tag.
5508
5495
  * @param {string} key Tag key
5509
- * @param {CreateTagRequest} [createTagRequest]
5496
+ * @param {UpdateTagRequest} [updateTagRequest]
5510
5497
  * @param {*} [options] Override http request option.
5511
5498
  * @throws {RequiredError}
5512
5499
  * @memberof TagApi
5513
5500
  */
5514
- updateTag(key: string, createTagRequest?: CreateTagRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Tag, any>>;
5501
+ updateTag(key: string, updateTagRequest?: UpdateTagRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Tag, any>>;
5515
5502
  }
5516
5503
  /**
5517
5504
  * TransactionApi - axios parameter creator
package/dist/esm/api.js CHANGED
@@ -4398,11 +4398,11 @@ export const SegmentApiAxiosParamCreator = function (configuration) {
4398
4398
  /**
4399
4399
  * This method allows adding a new Segment to the system.
4400
4400
  * @summary Method allows to create new segment.
4401
- * @param {CreateSegmentRequest} [createSegmentRequest]
4401
+ * @param {SegmentCreationRequest} [segmentCreationRequest]
4402
4402
  * @param {*} [options] Override http request option.
4403
4403
  * @throws {RequiredError}
4404
4404
  */
4405
- createSegment: (createSegmentRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
4405
+ createSegment: (segmentCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
4406
4406
  const localVarPath = `/admins/segments`;
4407
4407
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4408
4408
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4420,7 +4420,7 @@ export const SegmentApiAxiosParamCreator = function (configuration) {
4420
4420
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4421
4421
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4422
4422
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4423
- localVarRequestOptions.data = serializeDataIfNeeded(createSegmentRequest, localVarRequestOptions, configuration);
4423
+ localVarRequestOptions.data = serializeDataIfNeeded(segmentCreationRequest, localVarRequestOptions, configuration);
4424
4424
  return {
4425
4425
  url: toPathString(localVarUrlObj),
4426
4426
  options: localVarRequestOptions,
@@ -4506,13 +4506,13 @@ export const SegmentApiFp = function (configuration) {
4506
4506
  /**
4507
4507
  * This method allows adding a new Segment to the system.
4508
4508
  * @summary Method allows to create new segment.
4509
- * @param {CreateSegmentRequest} [createSegmentRequest]
4509
+ * @param {SegmentCreationRequest} [segmentCreationRequest]
4510
4510
  * @param {*} [options] Override http request option.
4511
4511
  * @throws {RequiredError}
4512
4512
  */
4513
- createSegment(createSegmentRequest, options) {
4513
+ createSegment(segmentCreationRequest, options) {
4514
4514
  return __awaiter(this, void 0, void 0, function* () {
4515
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createSegment(createSegmentRequest, options);
4515
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSegment(segmentCreationRequest, options);
4516
4516
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4517
4517
  });
4518
4518
  },
@@ -4555,12 +4555,12 @@ export const SegmentApiFactory = function (configuration, basePath, axios) {
4555
4555
  /**
4556
4556
  * This method allows adding a new Segment to the system.
4557
4557
  * @summary Method allows to create new segment.
4558
- * @param {CreateSegmentRequest} [createSegmentRequest]
4558
+ * @param {SegmentCreationRequest} [segmentCreationRequest]
4559
4559
  * @param {*} [options] Override http request option.
4560
4560
  * @throws {RequiredError}
4561
4561
  */
4562
- createSegment(createSegmentRequest, options) {
4563
- return localVarFp.createSegment(createSegmentRequest, options).then((request) => request(axios, basePath));
4562
+ createSegment(segmentCreationRequest, options) {
4563
+ return localVarFp.createSegment(segmentCreationRequest, options).then((request) => request(axios, basePath));
4564
4564
  },
4565
4565
  /**
4566
4566
  * This method returns all information about a specific Segment.
@@ -4595,13 +4595,13 @@ export class SegmentApi extends BaseAPI {
4595
4595
  /**
4596
4596
  * This method allows adding a new Segment to the system.
4597
4597
  * @summary Method allows to create new segment.
4598
- * @param {CreateSegmentRequest} [createSegmentRequest]
4598
+ * @param {SegmentCreationRequest} [segmentCreationRequest]
4599
4599
  * @param {*} [options] Override http request option.
4600
4600
  * @throws {RequiredError}
4601
4601
  * @memberof SegmentApi
4602
4602
  */
4603
- createSegment(createSegmentRequest, options) {
4604
- return SegmentApiFp(this.configuration).createSegment(createSegmentRequest, options).then((request) => request(this.axios, this.basePath));
4603
+ createSegment(segmentCreationRequest, options) {
4604
+ return SegmentApiFp(this.configuration).createSegment(segmentCreationRequest, options).then((request) => request(this.axios, this.basePath));
4605
4605
  }
4606
4606
  /**
4607
4607
  * This method returns all information about a specific Segment.
@@ -4636,11 +4636,11 @@ export const TagApiAxiosParamCreator = function (configuration) {
4636
4636
  /**
4637
4637
  * This method allows adding a new tag to the system. Tag key must be unique.
4638
4638
  * @summary Method allows to create new tag.
4639
- * @param {CreateTagRequest} [createTagRequest]
4639
+ * @param {TagCreationRequest} [tagCreationRequest]
4640
4640
  * @param {*} [options] Override http request option.
4641
4641
  * @throws {RequiredError}
4642
4642
  */
4643
- createTag: (createTagRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
4643
+ createTag: (tagCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
4644
4644
  const localVarPath = `/admins/tags`;
4645
4645
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4646
4646
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4658,7 +4658,7 @@ export const TagApiAxiosParamCreator = function (configuration) {
4658
4658
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4659
4659
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4660
4660
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4661
- localVarRequestOptions.data = serializeDataIfNeeded(createTagRequest, localVarRequestOptions, configuration);
4661
+ localVarRequestOptions.data = serializeDataIfNeeded(tagCreationRequest, localVarRequestOptions, configuration);
4662
4662
  return {
4663
4663
  url: toPathString(localVarUrlObj),
4664
4664
  options: localVarRequestOptions,
@@ -4764,11 +4764,11 @@ export const TagApiAxiosParamCreator = function (configuration) {
4764
4764
  * This method allows updating a tag in the system.
4765
4765
  * @summary Method allows to update tag.
4766
4766
  * @param {string} key Tag key
4767
- * @param {CreateTagRequest} [createTagRequest]
4767
+ * @param {UpdateTagRequest} [updateTagRequest]
4768
4768
  * @param {*} [options] Override http request option.
4769
4769
  * @throws {RequiredError}
4770
4770
  */
4771
- updateTag: (key, createTagRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
4771
+ updateTag: (key, updateTagRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
4772
4772
  // verify required parameter 'key' is not null or undefined
4773
4773
  assertParamExists('updateTag', 'key', key);
4774
4774
  const localVarPath = `/admins/tags/{key}`
@@ -4789,7 +4789,7 @@ export const TagApiAxiosParamCreator = function (configuration) {
4789
4789
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4790
4790
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4791
4791
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4792
- localVarRequestOptions.data = serializeDataIfNeeded(createTagRequest, localVarRequestOptions, configuration);
4792
+ localVarRequestOptions.data = serializeDataIfNeeded(updateTagRequest, localVarRequestOptions, configuration);
4793
4793
  return {
4794
4794
  url: toPathString(localVarUrlObj),
4795
4795
  options: localVarRequestOptions,
@@ -4807,13 +4807,13 @@ export const TagApiFp = function (configuration) {
4807
4807
  /**
4808
4808
  * This method allows adding a new tag to the system. Tag key must be unique.
4809
4809
  * @summary Method allows to create new tag.
4810
- * @param {CreateTagRequest} [createTagRequest]
4810
+ * @param {TagCreationRequest} [tagCreationRequest]
4811
4811
  * @param {*} [options] Override http request option.
4812
4812
  * @throws {RequiredError}
4813
4813
  */
4814
- createTag(createTagRequest, options) {
4814
+ createTag(tagCreationRequest, options) {
4815
4815
  return __awaiter(this, void 0, void 0, function* () {
4816
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createTag(createTagRequest, options);
4816
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createTag(tagCreationRequest, options);
4817
4817
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4818
4818
  });
4819
4819
  },
@@ -4860,13 +4860,13 @@ export const TagApiFp = function (configuration) {
4860
4860
  * This method allows updating a tag in the system.
4861
4861
  * @summary Method allows to update tag.
4862
4862
  * @param {string} key Tag key
4863
- * @param {CreateTagRequest} [createTagRequest]
4863
+ * @param {UpdateTagRequest} [updateTagRequest]
4864
4864
  * @param {*} [options] Override http request option.
4865
4865
  * @throws {RequiredError}
4866
4866
  */
4867
- updateTag(key, createTagRequest, options) {
4867
+ updateTag(key, updateTagRequest, options) {
4868
4868
  return __awaiter(this, void 0, void 0, function* () {
4869
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTag(key, createTagRequest, options);
4869
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTag(key, updateTagRequest, options);
4870
4870
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4871
4871
  });
4872
4872
  },
@@ -4882,12 +4882,12 @@ export const TagApiFactory = function (configuration, basePath, axios) {
4882
4882
  /**
4883
4883
  * This method allows adding a new tag to the system. Tag key must be unique.
4884
4884
  * @summary Method allows to create new tag.
4885
- * @param {CreateTagRequest} [createTagRequest]
4885
+ * @param {TagCreationRequest} [tagCreationRequest]
4886
4886
  * @param {*} [options] Override http request option.
4887
4887
  * @throws {RequiredError}
4888
4888
  */
4889
- createTag(createTagRequest, options) {
4890
- return localVarFp.createTag(createTagRequest, options).then((request) => request(axios, basePath));
4889
+ createTag(tagCreationRequest, options) {
4890
+ return localVarFp.createTag(tagCreationRequest, options).then((request) => request(axios, basePath));
4891
4891
  },
4892
4892
  /**
4893
4893
  * This method allows deleting a tag from the system.
@@ -4923,12 +4923,12 @@ export const TagApiFactory = function (configuration, basePath, axios) {
4923
4923
  * This method allows updating a tag in the system.
4924
4924
  * @summary Method allows to update tag.
4925
4925
  * @param {string} key Tag key
4926
- * @param {CreateTagRequest} [createTagRequest]
4926
+ * @param {UpdateTagRequest} [updateTagRequest]
4927
4927
  * @param {*} [options] Override http request option.
4928
4928
  * @throws {RequiredError}
4929
4929
  */
4930
- updateTag(key, createTagRequest, options) {
4931
- return localVarFp.updateTag(key, createTagRequest, options).then((request) => request(axios, basePath));
4930
+ updateTag(key, updateTagRequest, options) {
4931
+ return localVarFp.updateTag(key, updateTagRequest, options).then((request) => request(axios, basePath));
4932
4932
  },
4933
4933
  };
4934
4934
  };
@@ -4942,13 +4942,13 @@ export class TagApi extends BaseAPI {
4942
4942
  /**
4943
4943
  * This method allows adding a new tag to the system. Tag key must be unique.
4944
4944
  * @summary Method allows to create new tag.
4945
- * @param {CreateTagRequest} [createTagRequest]
4945
+ * @param {TagCreationRequest} [tagCreationRequest]
4946
4946
  * @param {*} [options] Override http request option.
4947
4947
  * @throws {RequiredError}
4948
4948
  * @memberof TagApi
4949
4949
  */
4950
- createTag(createTagRequest, options) {
4951
- return TagApiFp(this.configuration).createTag(createTagRequest, options).then((request) => request(this.axios, this.basePath));
4950
+ createTag(tagCreationRequest, options) {
4951
+ return TagApiFp(this.configuration).createTag(tagCreationRequest, options).then((request) => request(this.axios, this.basePath));
4952
4952
  }
4953
4953
  /**
4954
4954
  * This method allows deleting a tag from the system.
@@ -4987,13 +4987,13 @@ export class TagApi extends BaseAPI {
4987
4987
  * This method allows updating a tag in the system.
4988
4988
  * @summary Method allows to update tag.
4989
4989
  * @param {string} key Tag key
4990
- * @param {CreateTagRequest} [createTagRequest]
4990
+ * @param {UpdateTagRequest} [updateTagRequest]
4991
4991
  * @param {*} [options] Override http request option.
4992
4992
  * @throws {RequiredError}
4993
4993
  * @memberof TagApi
4994
4994
  */
4995
- updateTag(key, createTagRequest, options) {
4996
- return TagApiFp(this.configuration).updateTag(key, createTagRequest, options).then((request) => request(this.axios, this.basePath));
4995
+ updateTag(key, updateTagRequest, options) {
4996
+ return TagApiFp(this.configuration).updateTag(key, updateTagRequest, options).then((request) => request(this.axios, this.basePath));
4997
4997
  }
4998
4998
  }
4999
4999
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flexinet-api",
3
- "version": "0.0.326-prerelease0",
3
+ "version": "0.0.336-prerelease0",
4
4
  "description": "OpenAPI client for flexinet-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {