flexinet-api 0.0.762-prerelease0 → 0.0.778-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.762-prerelease0
1
+ ## flexinet-api@0.0.778-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.762-prerelease0 --save
39
+ npm install flexinet-api@0.0.778-prerelease0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -921,6 +921,21 @@ export interface Item {
921
921
  */
922
922
  'product': Product;
923
923
  }
924
+ /**
925
+ *
926
+ * @export
927
+ * @enum {string}
928
+ */
929
+
930
+ export const Locale = {
931
+ EnUs: 'en-us',
932
+ RoRo: 'ro-ro',
933
+ HuHu: 'hu-hu'
934
+ } as const;
935
+
936
+ export type Locale = typeof Locale[keyof typeof Locale];
937
+
938
+
924
939
  /**
925
940
  *
926
941
  * @export
@@ -1065,10 +1080,10 @@ export interface Notification {
1065
1080
  'kind': NotificationKind;
1066
1081
  /**
1067
1082
  *
1068
- * @type {Array<string>}
1083
+ * @type {Array<NotificationReferencesInner>}
1069
1084
  * @memberof Notification
1070
1085
  */
1071
- 'references'?: Array<string>;
1086
+ 'references'?: Array<NotificationReferencesInner>;
1072
1087
  }
1073
1088
 
1074
1089
 
@@ -1176,6 +1191,12 @@ export interface NotificationPreference {
1176
1191
  }
1177
1192
 
1178
1193
 
1194
+ /**
1195
+ * @type NotificationReferencesInner
1196
+ * @export
1197
+ */
1198
+ export type NotificationReferencesInner = Order | Product | Promotion;
1199
+
1179
1200
  /**
1180
1201
  *
1181
1202
  * @export
@@ -1373,6 +1394,12 @@ export interface Preferences {
1373
1394
  * @interface PreferencesRequest
1374
1395
  */
1375
1396
  export interface PreferencesRequest {
1397
+ /**
1398
+ *
1399
+ * @type {Locale}
1400
+ * @memberof PreferencesRequest
1401
+ */
1402
+ 'preferredLocale'?: Locale;
1376
1403
  /**
1377
1404
  *
1378
1405
  * @type {Array<NotificationPreference>}
@@ -1380,6 +1407,8 @@ export interface PreferencesRequest {
1380
1407
  */
1381
1408
  'notificationPreferences': Array<NotificationPreference>;
1382
1409
  }
1410
+
1411
+
1383
1412
  /**
1384
1413
  *
1385
1414
  * @export
@@ -2641,6 +2670,12 @@ export interface SystemUserDetails {
2641
2670
  * @interface Tag
2642
2671
  */
2643
2672
  export interface Tag {
2673
+ /**
2674
+ *
2675
+ * @type {string}
2676
+ * @memberof Tag
2677
+ */
2678
+ 'id': string;
2644
2679
  /**
2645
2680
  *
2646
2681
  * @type {string}
@@ -2686,6 +2721,12 @@ export interface TagCreationRequest {
2686
2721
  * @memberof TagCreationRequest
2687
2722
  */
2688
2723
  'key': string;
2724
+ /**
2725
+ *
2726
+ * @type {{ [key: string]: string; }}
2727
+ * @memberof TagCreationRequest
2728
+ */
2729
+ 'translations': { [key: string]: string; };
2689
2730
  /**
2690
2731
  *
2691
2732
  * @type {TagDataType}
@@ -2704,6 +2745,12 @@ export interface TagCreationRequest {
2704
2745
  * @memberof TagCreationRequest
2705
2746
  */
2706
2747
  'isRequired': boolean;
2748
+ /**
2749
+ *
2750
+ * @type {Array<TagValueCreationRequest>}
2751
+ * @memberof TagCreationRequest
2752
+ */
2753
+ 'values'?: Array<TagValueCreationRequest>;
2707
2754
  }
2708
2755
 
2709
2756
 
@@ -2729,6 +2776,12 @@ export type TagDataType = typeof TagDataType[keyof typeof TagDataType];
2729
2776
  * @interface TagDetailed
2730
2777
  */
2731
2778
  export interface TagDetailed {
2779
+ /**
2780
+ *
2781
+ * @type {string}
2782
+ * @memberof TagDetailed
2783
+ */
2784
+ 'id': string;
2732
2785
  /**
2733
2786
  *
2734
2787
  * @type {string}
@@ -2765,6 +2818,12 @@ export interface TagDetailed {
2765
2818
  * @memberof TagDetailed
2766
2819
  */
2767
2820
  'validators': Array<TagValidator>;
2821
+ /**
2822
+ *
2823
+ * @type {Array<TagValue>}
2824
+ * @memberof TagDetailed
2825
+ */
2826
+ 'values'?: Array<TagValue>;
2768
2827
  }
2769
2828
 
2770
2829
 
@@ -2983,13 +3042,56 @@ export interface TagValidator {
2983
3042
 
2984
3043
  export const TagValidatorType = {
2985
3044
  Pattern: 'pattern',
2986
- Range: 'range',
2987
- FixedValues: 'fixed_values'
3045
+ Range: 'range'
2988
3046
  } as const;
2989
3047
 
2990
3048
  export type TagValidatorType = typeof TagValidatorType[keyof typeof TagValidatorType];
2991
3049
 
2992
3050
 
3051
+ /**
3052
+ *
3053
+ * @export
3054
+ * @interface TagValue
3055
+ */
3056
+ export interface TagValue {
3057
+ /**
3058
+ *
3059
+ * @type {any}
3060
+ * @memberof TagValue
3061
+ */
3062
+ 'value': any;
3063
+ /**
3064
+ *
3065
+ * @type {string}
3066
+ * @memberof TagValue
3067
+ */
3068
+ 'description': string;
3069
+ }
3070
+ /**
3071
+ *
3072
+ * @export
3073
+ * @interface TagValueCreationRequest
3074
+ */
3075
+ export interface TagValueCreationRequest {
3076
+ /**
3077
+ *
3078
+ * @type {any}
3079
+ * @memberof TagValueCreationRequest
3080
+ */
3081
+ 'value': any;
3082
+ /**
3083
+ *
3084
+ * @type {string}
3085
+ * @memberof TagValueCreationRequest
3086
+ */
3087
+ 'description': string;
3088
+ /**
3089
+ *
3090
+ * @type {{ [key: string]: TagValue; }}
3091
+ * @memberof TagValueCreationRequest
3092
+ */
3093
+ 'translations': { [key: string]: TagValue; };
3094
+ }
2993
3095
  /**
2994
3096
  *
2995
3097
  * @export
@@ -9620,15 +9722,15 @@ export const TagApiAxiosParamCreator = function (configuration?: Configuration)
9620
9722
  /**
9621
9723
  * This method allows deleting a tag from the system.
9622
9724
  * @summary Method allows to delete tag.
9623
- * @param {string} key Tag key
9725
+ * @param {string} id Tag id
9624
9726
  * @param {*} [options] Override http request option.
9625
9727
  * @throws {RequiredError}
9626
9728
  */
9627
- deleteTag: async (key: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9628
- // verify required parameter 'key' is not null or undefined
9629
- assertParamExists('deleteTag', 'key', key)
9630
- const localVarPath = `/admins/tags/{key}`
9631
- .replace(`{${"key"}}`, encodeURIComponent(String(key)));
9729
+ deleteTag: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9730
+ // verify required parameter 'id' is not null or undefined
9731
+ assertParamExists('deleteTag', 'id', id)
9732
+ const localVarPath = `/admins/tags/{id}`
9733
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
9632
9734
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9633
9735
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9634
9736
  let baseOptions;
@@ -9658,15 +9760,15 @@ export const TagApiAxiosParamCreator = function (configuration?: Configuration)
9658
9760
  /**
9659
9761
  * This method returns all information about a specific tag.
9660
9762
  * @summary Method will return tag details.
9661
- * @param {string} key Tag key
9763
+ * @param {string} id Tag ID
9662
9764
  * @param {*} [options] Override http request option.
9663
9765
  * @throws {RequiredError}
9664
9766
  */
9665
- getTagByKey: async (key: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9666
- // verify required parameter 'key' is not null or undefined
9667
- assertParamExists('getTagByKey', 'key', key)
9668
- const localVarPath = `/admins/tags/{key}`
9669
- .replace(`{${"key"}}`, encodeURIComponent(String(key)));
9767
+ getTagByID: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9768
+ // verify required parameter 'id' is not null or undefined
9769
+ assertParamExists('getTagByID', 'id', id)
9770
+ const localVarPath = `/admins/tags/{id}`
9771
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
9670
9772
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9671
9773
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9672
9774
  let baseOptions;
@@ -9697,10 +9799,11 @@ export const TagApiAxiosParamCreator = function (configuration?: Configuration)
9697
9799
  * This method returns a list of all tags in the system.
9698
9800
  * @summary Method returns tags list.
9699
9801
  * @param {string} [tagKey] Tag key
9802
+ * @param {string} [search] search string
9700
9803
  * @param {*} [options] Override http request option.
9701
9804
  * @throws {RequiredError}
9702
9805
  */
9703
- listTags: async (tagKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9806
+ listTags: async (tagKey?: string, search?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9704
9807
  const localVarPath = `/admins/tags`;
9705
9808
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9706
9809
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -9721,6 +9824,10 @@ export const TagApiAxiosParamCreator = function (configuration?: Configuration)
9721
9824
  localVarQueryParameter['tagKey'] = tagKey;
9722
9825
  }
9723
9826
 
9827
+ if (search !== undefined) {
9828
+ localVarQueryParameter['search'] = search;
9829
+ }
9830
+
9724
9831
 
9725
9832
 
9726
9833
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -9735,16 +9842,16 @@ export const TagApiAxiosParamCreator = function (configuration?: Configuration)
9735
9842
  /**
9736
9843
  * This method allows updating a tag in the system.
9737
9844
  * @summary Method allows to update tag.
9738
- * @param {string} key Tag key
9845
+ * @param {string} id Tag id
9739
9846
  * @param {UpdateTagRequest} [updateTagRequest]
9740
9847
  * @param {*} [options] Override http request option.
9741
9848
  * @throws {RequiredError}
9742
9849
  */
9743
- updateTag: async (key: string, updateTagRequest?: UpdateTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9744
- // verify required parameter 'key' is not null or undefined
9745
- assertParamExists('updateTag', 'key', key)
9746
- const localVarPath = `/admins/tags/{key}`
9747
- .replace(`{${"key"}}`, encodeURIComponent(String(key)));
9850
+ updateTag: async (id: string, updateTagRequest?: UpdateTagRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
9851
+ // verify required parameter 'id' is not null or undefined
9852
+ assertParamExists('updateTag', 'id', id)
9853
+ const localVarPath = `/admins/tags/{id}`
9854
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
9748
9855
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9749
9856
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9750
9857
  let baseOptions;
@@ -9801,46 +9908,47 @@ export const TagApiFp = function(configuration?: Configuration) {
9801
9908
  /**
9802
9909
  * This method allows deleting a tag from the system.
9803
9910
  * @summary Method allows to delete tag.
9804
- * @param {string} key Tag key
9911
+ * @param {string} id Tag id
9805
9912
  * @param {*} [options] Override http request option.
9806
9913
  * @throws {RequiredError}
9807
9914
  */
9808
- async deleteTag(key: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
9809
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTag(key, options);
9915
+ async deleteTag(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
9916
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTag(id, options);
9810
9917
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9811
9918
  },
9812
9919
  /**
9813
9920
  * This method returns all information about a specific tag.
9814
9921
  * @summary Method will return tag details.
9815
- * @param {string} key Tag key
9922
+ * @param {string} id Tag ID
9816
9923
  * @param {*} [options] Override http request option.
9817
9924
  * @throws {RequiredError}
9818
9925
  */
9819
- async getTagByKey(key: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagDetailed>> {
9820
- const localVarAxiosArgs = await localVarAxiosParamCreator.getTagByKey(key, options);
9926
+ async getTagByID(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagDetailed>> {
9927
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTagByID(id, options);
9821
9928
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9822
9929
  },
9823
9930
  /**
9824
9931
  * This method returns a list of all tags in the system.
9825
9932
  * @summary Method returns tags list.
9826
9933
  * @param {string} [tagKey] Tag key
9934
+ * @param {string} [search] search string
9827
9935
  * @param {*} [options] Override http request option.
9828
9936
  * @throws {RequiredError}
9829
9937
  */
9830
- async listTags(tagKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagListResponse>> {
9831
- const localVarAxiosArgs = await localVarAxiosParamCreator.listTags(tagKey, options);
9938
+ async listTags(tagKey?: string, search?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagListResponse>> {
9939
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTags(tagKey, search, options);
9832
9940
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9833
9941
  },
9834
9942
  /**
9835
9943
  * This method allows updating a tag in the system.
9836
9944
  * @summary Method allows to update tag.
9837
- * @param {string} key Tag key
9945
+ * @param {string} id Tag id
9838
9946
  * @param {UpdateTagRequest} [updateTagRequest]
9839
9947
  * @param {*} [options] Override http request option.
9840
9948
  * @throws {RequiredError}
9841
9949
  */
9842
- async updateTag(key: string, updateTagRequest?: UpdateTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Tag>> {
9843
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateTag(key, updateTagRequest, options);
9950
+ async updateTag(id: string, updateTagRequest?: UpdateTagRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TagDetailed>> {
9951
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateTag(id, updateTagRequest, options);
9844
9952
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9845
9953
  },
9846
9954
  }
@@ -9866,43 +9974,44 @@ export const TagApiFactory = function (configuration?: Configuration, basePath?:
9866
9974
  /**
9867
9975
  * This method allows deleting a tag from the system.
9868
9976
  * @summary Method allows to delete tag.
9869
- * @param {string} key Tag key
9977
+ * @param {string} id Tag id
9870
9978
  * @param {*} [options] Override http request option.
9871
9979
  * @throws {RequiredError}
9872
9980
  */
9873
- deleteTag(key: string, options?: any): AxiosPromise<void> {
9874
- return localVarFp.deleteTag(key, options).then((request) => request(axios, basePath));
9981
+ deleteTag(id: string, options?: any): AxiosPromise<void> {
9982
+ return localVarFp.deleteTag(id, options).then((request) => request(axios, basePath));
9875
9983
  },
9876
9984
  /**
9877
9985
  * This method returns all information about a specific tag.
9878
9986
  * @summary Method will return tag details.
9879
- * @param {string} key Tag key
9987
+ * @param {string} id Tag ID
9880
9988
  * @param {*} [options] Override http request option.
9881
9989
  * @throws {RequiredError}
9882
9990
  */
9883
- getTagByKey(key: string, options?: any): AxiosPromise<TagDetailed> {
9884
- return localVarFp.getTagByKey(key, options).then((request) => request(axios, basePath));
9991
+ getTagByID(id: string, options?: any): AxiosPromise<TagDetailed> {
9992
+ return localVarFp.getTagByID(id, options).then((request) => request(axios, basePath));
9885
9993
  },
9886
9994
  /**
9887
9995
  * This method returns a list of all tags in the system.
9888
9996
  * @summary Method returns tags list.
9889
9997
  * @param {string} [tagKey] Tag key
9998
+ * @param {string} [search] search string
9890
9999
  * @param {*} [options] Override http request option.
9891
10000
  * @throws {RequiredError}
9892
10001
  */
9893
- listTags(tagKey?: string, options?: any): AxiosPromise<TagListResponse> {
9894
- return localVarFp.listTags(tagKey, options).then((request) => request(axios, basePath));
10002
+ listTags(tagKey?: string, search?: string, options?: any): AxiosPromise<TagListResponse> {
10003
+ return localVarFp.listTags(tagKey, search, options).then((request) => request(axios, basePath));
9895
10004
  },
9896
10005
  /**
9897
10006
  * This method allows updating a tag in the system.
9898
10007
  * @summary Method allows to update tag.
9899
- * @param {string} key Tag key
10008
+ * @param {string} id Tag id
9900
10009
  * @param {UpdateTagRequest} [updateTagRequest]
9901
10010
  * @param {*} [options] Override http request option.
9902
10011
  * @throws {RequiredError}
9903
10012
  */
9904
- updateTag(key: string, updateTagRequest?: UpdateTagRequest, options?: any): AxiosPromise<Tag> {
9905
- return localVarFp.updateTag(key, updateTagRequest, options).then((request) => request(axios, basePath));
10013
+ updateTag(id: string, updateTagRequest?: UpdateTagRequest, options?: any): AxiosPromise<TagDetailed> {
10014
+ return localVarFp.updateTag(id, updateTagRequest, options).then((request) => request(axios, basePath));
9906
10015
  },
9907
10016
  };
9908
10017
  };
@@ -9929,50 +10038,51 @@ export class TagApi extends BaseAPI {
9929
10038
  /**
9930
10039
  * This method allows deleting a tag from the system.
9931
10040
  * @summary Method allows to delete tag.
9932
- * @param {string} key Tag key
10041
+ * @param {string} id Tag id
9933
10042
  * @param {*} [options] Override http request option.
9934
10043
  * @throws {RequiredError}
9935
10044
  * @memberof TagApi
9936
10045
  */
9937
- public deleteTag(key: string, options?: AxiosRequestConfig) {
9938
- return TagApiFp(this.configuration).deleteTag(key, options).then((request) => request(this.axios, this.basePath));
10046
+ public deleteTag(id: string, options?: AxiosRequestConfig) {
10047
+ return TagApiFp(this.configuration).deleteTag(id, options).then((request) => request(this.axios, this.basePath));
9939
10048
  }
9940
10049
 
9941
10050
  /**
9942
10051
  * This method returns all information about a specific tag.
9943
10052
  * @summary Method will return tag details.
9944
- * @param {string} key Tag key
10053
+ * @param {string} id Tag ID
9945
10054
  * @param {*} [options] Override http request option.
9946
10055
  * @throws {RequiredError}
9947
10056
  * @memberof TagApi
9948
10057
  */
9949
- public getTagByKey(key: string, options?: AxiosRequestConfig) {
9950
- return TagApiFp(this.configuration).getTagByKey(key, options).then((request) => request(this.axios, this.basePath));
10058
+ public getTagByID(id: string, options?: AxiosRequestConfig) {
10059
+ return TagApiFp(this.configuration).getTagByID(id, options).then((request) => request(this.axios, this.basePath));
9951
10060
  }
9952
10061
 
9953
10062
  /**
9954
10063
  * This method returns a list of all tags in the system.
9955
10064
  * @summary Method returns tags list.
9956
10065
  * @param {string} [tagKey] Tag key
10066
+ * @param {string} [search] search string
9957
10067
  * @param {*} [options] Override http request option.
9958
10068
  * @throws {RequiredError}
9959
10069
  * @memberof TagApi
9960
10070
  */
9961
- public listTags(tagKey?: string, options?: AxiosRequestConfig) {
9962
- return TagApiFp(this.configuration).listTags(tagKey, options).then((request) => request(this.axios, this.basePath));
10071
+ public listTags(tagKey?: string, search?: string, options?: AxiosRequestConfig) {
10072
+ return TagApiFp(this.configuration).listTags(tagKey, search, options).then((request) => request(this.axios, this.basePath));
9963
10073
  }
9964
10074
 
9965
10075
  /**
9966
10076
  * This method allows updating a tag in the system.
9967
10077
  * @summary Method allows to update tag.
9968
- * @param {string} key Tag key
10078
+ * @param {string} id Tag id
9969
10079
  * @param {UpdateTagRequest} [updateTagRequest]
9970
10080
  * @param {*} [options] Override http request option.
9971
10081
  * @throws {RequiredError}
9972
10082
  * @memberof TagApi
9973
10083
  */
9974
- public updateTag(key: string, updateTagRequest?: UpdateTagRequest, options?: AxiosRequestConfig) {
9975
- return TagApiFp(this.configuration).updateTag(key, updateTagRequest, options).then((request) => request(this.axios, this.basePath));
10084
+ public updateTag(id: string, updateTagRequest?: UpdateTagRequest, options?: AxiosRequestConfig) {
10085
+ return TagApiFp(this.configuration).updateTag(id, updateTagRequest, options).then((request) => request(this.axios, this.basePath));
9976
10086
  }
9977
10087
  }
9978
10088