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 +2 -2
- package/api.ts +166 -56
- package/dist/api.d.ts +134 -31
- package/dist/api.js +73 -57
- package/dist/esm/api.d.ts +134 -31
- package/dist/esm/api.js +70 -54
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -22,9 +22,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TenantApi = exports.TenantApiFactory = exports.TenantApiFp = exports.TenantApiAxiosParamCreator = exports.TagApi = void 0;
|
|
25
|
+
exports.BulkApi = exports.BulkApiFactory = exports.BulkApiFp = exports.BulkApiAxiosParamCreator = exports.BalanceApi = exports.BalanceApiFactory = exports.BalanceApiFp = exports.BalanceApiAxiosParamCreator = exports.AuditApi = exports.AuditApiFactory = exports.AuditApiFp = exports.AuditApiAxiosParamCreator = exports.WebhookKind = exports.UserSource = exports.UserRole = exports.TransactionSource = exports.TransactionKind = exports.TransactionEventKind = exports.TargetMu = exports.TagValidatorType = exports.TagRuleKind = exports.TagDataType = exports.SortDirection = exports.RuleKind = exports.RuleGroupState = exports.Repetition = exports.PromotionType = exports.PromotionSortByField = exports.ProgressState = exports.ProgressInterval = exports.ProductUsage = exports.ProductStatus = exports.ProductRequestStatus = exports.ProductRequestApprovalRequestStatusEnum = exports.ProductKind = exports.ProductAvailability = exports.OrderKindEnum = exports.NotificationStatus = exports.NotificationKind = exports.NotificationChannel = exports.Locale = exports.Feature = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = exports.ApiKeyKind = void 0;
|
|
26
|
+
exports.TagApiFp = exports.TagApiAxiosParamCreator = exports.SegmentApi = exports.SegmentApiFactory = exports.SegmentApiFp = exports.SegmentApiAxiosParamCreator = exports.PromotionApi = exports.PromotionApiFactory = exports.PromotionApiFp = exports.PromotionApiAxiosParamCreator = exports.ProgressApi = exports.ProgressApiFactory = exports.ProgressApiFp = exports.ProgressApiAxiosParamCreator = exports.ProductApi = exports.ProductApiFactory = exports.ProductApiFp = exports.ProductApiAxiosParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiAxiosParamCreator = exports.NotificationApi = exports.NotificationApiFactory = exports.NotificationApiFp = exports.NotificationApiAxiosParamCreator = exports.IntegrationApi = exports.IntegrationApiFactory = exports.IntegrationApiFp = exports.IntegrationApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.CustomDealsApi = exports.CustomDealsApiFactory = exports.CustomDealsApiFp = exports.CustomDealsApiAxiosParamCreator = exports.ConfigurationApi = exports.ConfigurationApiFactory = exports.ConfigurationApiFp = exports.ConfigurationApiAxiosParamCreator = exports.ClientApi = exports.ClientApiFactory = exports.ClientApiFp = exports.ClientApiAxiosParamCreator = exports.CategoryApi = exports.CategoryApiFactory = exports.CategoryApiFp = exports.CategoryApiAxiosParamCreator = void 0;
|
|
27
|
+
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TransactionApi = exports.TransactionApiFactory = exports.TransactionApiFp = exports.TransactionApiAxiosParamCreator = exports.TenantApi = exports.TenantApiFactory = exports.TenantApiFp = exports.TenantApiAxiosParamCreator = exports.TagApi = exports.TagApiFactory = void 0;
|
|
28
28
|
const axios_1 = require("axios");
|
|
29
29
|
// Some imports not used depending on template conditions
|
|
30
30
|
// @ts-ignore
|
|
@@ -103,6 +103,16 @@ exports.Feature = {
|
|
|
103
103
|
SalesBudget: 'sales_budget',
|
|
104
104
|
CustomDeals: 'custom_deals'
|
|
105
105
|
};
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @export
|
|
109
|
+
* @enum {string}
|
|
110
|
+
*/
|
|
111
|
+
exports.Locale = {
|
|
112
|
+
EnUs: 'en-us',
|
|
113
|
+
RoRo: 'ro-ro',
|
|
114
|
+
HuHu: 'hu-hu'
|
|
115
|
+
};
|
|
106
116
|
/**
|
|
107
117
|
*
|
|
108
118
|
* @export
|
|
@@ -295,8 +305,7 @@ exports.TagRuleKind = {
|
|
|
295
305
|
*/
|
|
296
306
|
exports.TagValidatorType = {
|
|
297
307
|
Pattern: 'pattern',
|
|
298
|
-
Range: 'range'
|
|
299
|
-
FixedValues: 'fixed_values'
|
|
308
|
+
Range: 'range'
|
|
300
309
|
};
|
|
301
310
|
/**
|
|
302
311
|
*
|
|
@@ -5746,15 +5755,15 @@ const TagApiAxiosParamCreator = function (configuration) {
|
|
|
5746
5755
|
/**
|
|
5747
5756
|
* This method allows deleting a tag from the system.
|
|
5748
5757
|
* @summary Method allows to delete tag.
|
|
5749
|
-
* @param {string}
|
|
5758
|
+
* @param {string} id Tag id
|
|
5750
5759
|
* @param {*} [options] Override http request option.
|
|
5751
5760
|
* @throws {RequiredError}
|
|
5752
5761
|
*/
|
|
5753
|
-
deleteTag: (
|
|
5754
|
-
// verify required parameter '
|
|
5755
|
-
(0, common_1.assertParamExists)('deleteTag', '
|
|
5756
|
-
const localVarPath = `/admins/tags/{
|
|
5757
|
-
.replace(`{${"
|
|
5762
|
+
deleteTag: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5763
|
+
// verify required parameter 'id' is not null or undefined
|
|
5764
|
+
(0, common_1.assertParamExists)('deleteTag', 'id', id);
|
|
5765
|
+
const localVarPath = `/admins/tags/{id}`
|
|
5766
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5758
5767
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5759
5768
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5760
5769
|
let baseOptions;
|
|
@@ -5778,15 +5787,15 @@ const TagApiAxiosParamCreator = function (configuration) {
|
|
|
5778
5787
|
/**
|
|
5779
5788
|
* This method returns all information about a specific tag.
|
|
5780
5789
|
* @summary Method will return tag details.
|
|
5781
|
-
* @param {string}
|
|
5790
|
+
* @param {string} id Tag ID
|
|
5782
5791
|
* @param {*} [options] Override http request option.
|
|
5783
5792
|
* @throws {RequiredError}
|
|
5784
5793
|
*/
|
|
5785
|
-
|
|
5786
|
-
// verify required parameter '
|
|
5787
|
-
(0, common_1.assertParamExists)('
|
|
5788
|
-
const localVarPath = `/admins/tags/{
|
|
5789
|
-
.replace(`{${"
|
|
5794
|
+
getTagByID: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5795
|
+
// verify required parameter 'id' is not null or undefined
|
|
5796
|
+
(0, common_1.assertParamExists)('getTagByID', 'id', id);
|
|
5797
|
+
const localVarPath = `/admins/tags/{id}`
|
|
5798
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5790
5799
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5791
5800
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5792
5801
|
let baseOptions;
|
|
@@ -5811,10 +5820,11 @@ const TagApiAxiosParamCreator = function (configuration) {
|
|
|
5811
5820
|
* This method returns a list of all tags in the system.
|
|
5812
5821
|
* @summary Method returns tags list.
|
|
5813
5822
|
* @param {string} [tagKey] Tag key
|
|
5823
|
+
* @param {string} [search] search string
|
|
5814
5824
|
* @param {*} [options] Override http request option.
|
|
5815
5825
|
* @throws {RequiredError}
|
|
5816
5826
|
*/
|
|
5817
|
-
listTags: (tagKey, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5827
|
+
listTags: (tagKey, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5818
5828
|
const localVarPath = `/admins/tags`;
|
|
5819
5829
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5820
5830
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5831,6 +5841,9 @@ const TagApiAxiosParamCreator = function (configuration) {
|
|
|
5831
5841
|
if (tagKey !== undefined) {
|
|
5832
5842
|
localVarQueryParameter['tagKey'] = tagKey;
|
|
5833
5843
|
}
|
|
5844
|
+
if (search !== undefined) {
|
|
5845
|
+
localVarQueryParameter['search'] = search;
|
|
5846
|
+
}
|
|
5834
5847
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5835
5848
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5836
5849
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -5842,16 +5855,16 @@ const TagApiAxiosParamCreator = function (configuration) {
|
|
|
5842
5855
|
/**
|
|
5843
5856
|
* This method allows updating a tag in the system.
|
|
5844
5857
|
* @summary Method allows to update tag.
|
|
5845
|
-
* @param {string}
|
|
5858
|
+
* @param {string} id Tag id
|
|
5846
5859
|
* @param {UpdateTagRequest} [updateTagRequest]
|
|
5847
5860
|
* @param {*} [options] Override http request option.
|
|
5848
5861
|
* @throws {RequiredError}
|
|
5849
5862
|
*/
|
|
5850
|
-
updateTag: (
|
|
5851
|
-
// verify required parameter '
|
|
5852
|
-
(0, common_1.assertParamExists)('updateTag', '
|
|
5853
|
-
const localVarPath = `/admins/tags/{
|
|
5854
|
-
.replace(`{${"
|
|
5863
|
+
updateTag: (id, updateTagRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5864
|
+
// verify required parameter 'id' is not null or undefined
|
|
5865
|
+
(0, common_1.assertParamExists)('updateTag', 'id', id);
|
|
5866
|
+
const localVarPath = `/admins/tags/{id}`
|
|
5867
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5855
5868
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5856
5869
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5857
5870
|
let baseOptions;
|
|
@@ -5902,26 +5915,26 @@ const TagApiFp = function (configuration) {
|
|
|
5902
5915
|
/**
|
|
5903
5916
|
* This method allows deleting a tag from the system.
|
|
5904
5917
|
* @summary Method allows to delete tag.
|
|
5905
|
-
* @param {string}
|
|
5918
|
+
* @param {string} id Tag id
|
|
5906
5919
|
* @param {*} [options] Override http request option.
|
|
5907
5920
|
* @throws {RequiredError}
|
|
5908
5921
|
*/
|
|
5909
|
-
deleteTag(
|
|
5922
|
+
deleteTag(id, options) {
|
|
5910
5923
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5911
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteTag(
|
|
5924
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteTag(id, options);
|
|
5912
5925
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
5913
5926
|
});
|
|
5914
5927
|
},
|
|
5915
5928
|
/**
|
|
5916
5929
|
* This method returns all information about a specific tag.
|
|
5917
5930
|
* @summary Method will return tag details.
|
|
5918
|
-
* @param {string}
|
|
5931
|
+
* @param {string} id Tag ID
|
|
5919
5932
|
* @param {*} [options] Override http request option.
|
|
5920
5933
|
* @throws {RequiredError}
|
|
5921
5934
|
*/
|
|
5922
|
-
|
|
5935
|
+
getTagByID(id, options) {
|
|
5923
5936
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5924
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
5937
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getTagByID(id, options);
|
|
5925
5938
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
5926
5939
|
});
|
|
5927
5940
|
},
|
|
@@ -5929,26 +5942,27 @@ const TagApiFp = function (configuration) {
|
|
|
5929
5942
|
* This method returns a list of all tags in the system.
|
|
5930
5943
|
* @summary Method returns tags list.
|
|
5931
5944
|
* @param {string} [tagKey] Tag key
|
|
5945
|
+
* @param {string} [search] search string
|
|
5932
5946
|
* @param {*} [options] Override http request option.
|
|
5933
5947
|
* @throws {RequiredError}
|
|
5934
5948
|
*/
|
|
5935
|
-
listTags(tagKey, options) {
|
|
5949
|
+
listTags(tagKey, search, options) {
|
|
5936
5950
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5937
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listTags(tagKey, options);
|
|
5951
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listTags(tagKey, search, options);
|
|
5938
5952
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
5939
5953
|
});
|
|
5940
5954
|
},
|
|
5941
5955
|
/**
|
|
5942
5956
|
* This method allows updating a tag in the system.
|
|
5943
5957
|
* @summary Method allows to update tag.
|
|
5944
|
-
* @param {string}
|
|
5958
|
+
* @param {string} id Tag id
|
|
5945
5959
|
* @param {UpdateTagRequest} [updateTagRequest]
|
|
5946
5960
|
* @param {*} [options] Override http request option.
|
|
5947
5961
|
* @throws {RequiredError}
|
|
5948
5962
|
*/
|
|
5949
|
-
updateTag(
|
|
5963
|
+
updateTag(id, updateTagRequest, options) {
|
|
5950
5964
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5951
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTag(
|
|
5965
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateTag(id, updateTagRequest, options);
|
|
5952
5966
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
5953
5967
|
});
|
|
5954
5968
|
},
|
|
@@ -5975,43 +5989,44 @@ const TagApiFactory = function (configuration, basePath, axios) {
|
|
|
5975
5989
|
/**
|
|
5976
5990
|
* This method allows deleting a tag from the system.
|
|
5977
5991
|
* @summary Method allows to delete tag.
|
|
5978
|
-
* @param {string}
|
|
5992
|
+
* @param {string} id Tag id
|
|
5979
5993
|
* @param {*} [options] Override http request option.
|
|
5980
5994
|
* @throws {RequiredError}
|
|
5981
5995
|
*/
|
|
5982
|
-
deleteTag(
|
|
5983
|
-
return localVarFp.deleteTag(
|
|
5996
|
+
deleteTag(id, options) {
|
|
5997
|
+
return localVarFp.deleteTag(id, options).then((request) => request(axios, basePath));
|
|
5984
5998
|
},
|
|
5985
5999
|
/**
|
|
5986
6000
|
* This method returns all information about a specific tag.
|
|
5987
6001
|
* @summary Method will return tag details.
|
|
5988
|
-
* @param {string}
|
|
6002
|
+
* @param {string} id Tag ID
|
|
5989
6003
|
* @param {*} [options] Override http request option.
|
|
5990
6004
|
* @throws {RequiredError}
|
|
5991
6005
|
*/
|
|
5992
|
-
|
|
5993
|
-
return localVarFp.
|
|
6006
|
+
getTagByID(id, options) {
|
|
6007
|
+
return localVarFp.getTagByID(id, options).then((request) => request(axios, basePath));
|
|
5994
6008
|
},
|
|
5995
6009
|
/**
|
|
5996
6010
|
* This method returns a list of all tags in the system.
|
|
5997
6011
|
* @summary Method returns tags list.
|
|
5998
6012
|
* @param {string} [tagKey] Tag key
|
|
6013
|
+
* @param {string} [search] search string
|
|
5999
6014
|
* @param {*} [options] Override http request option.
|
|
6000
6015
|
* @throws {RequiredError}
|
|
6001
6016
|
*/
|
|
6002
|
-
listTags(tagKey, options) {
|
|
6003
|
-
return localVarFp.listTags(tagKey, options).then((request) => request(axios, basePath));
|
|
6017
|
+
listTags(tagKey, search, options) {
|
|
6018
|
+
return localVarFp.listTags(tagKey, search, options).then((request) => request(axios, basePath));
|
|
6004
6019
|
},
|
|
6005
6020
|
/**
|
|
6006
6021
|
* This method allows updating a tag in the system.
|
|
6007
6022
|
* @summary Method allows to update tag.
|
|
6008
|
-
* @param {string}
|
|
6023
|
+
* @param {string} id Tag id
|
|
6009
6024
|
* @param {UpdateTagRequest} [updateTagRequest]
|
|
6010
6025
|
* @param {*} [options] Override http request option.
|
|
6011
6026
|
* @throws {RequiredError}
|
|
6012
6027
|
*/
|
|
6013
|
-
updateTag(
|
|
6014
|
-
return localVarFp.updateTag(
|
|
6028
|
+
updateTag(id, updateTagRequest, options) {
|
|
6029
|
+
return localVarFp.updateTag(id, updateTagRequest, options).then((request) => request(axios, basePath));
|
|
6015
6030
|
},
|
|
6016
6031
|
};
|
|
6017
6032
|
};
|
|
@@ -6037,47 +6052,48 @@ class TagApi extends base_1.BaseAPI {
|
|
|
6037
6052
|
/**
|
|
6038
6053
|
* This method allows deleting a tag from the system.
|
|
6039
6054
|
* @summary Method allows to delete tag.
|
|
6040
|
-
* @param {string}
|
|
6055
|
+
* @param {string} id Tag id
|
|
6041
6056
|
* @param {*} [options] Override http request option.
|
|
6042
6057
|
* @throws {RequiredError}
|
|
6043
6058
|
* @memberof TagApi
|
|
6044
6059
|
*/
|
|
6045
|
-
deleteTag(
|
|
6046
|
-
return (0, exports.TagApiFp)(this.configuration).deleteTag(
|
|
6060
|
+
deleteTag(id, options) {
|
|
6061
|
+
return (0, exports.TagApiFp)(this.configuration).deleteTag(id, options).then((request) => request(this.axios, this.basePath));
|
|
6047
6062
|
}
|
|
6048
6063
|
/**
|
|
6049
6064
|
* This method returns all information about a specific tag.
|
|
6050
6065
|
* @summary Method will return tag details.
|
|
6051
|
-
* @param {string}
|
|
6066
|
+
* @param {string} id Tag ID
|
|
6052
6067
|
* @param {*} [options] Override http request option.
|
|
6053
6068
|
* @throws {RequiredError}
|
|
6054
6069
|
* @memberof TagApi
|
|
6055
6070
|
*/
|
|
6056
|
-
|
|
6057
|
-
return (0, exports.TagApiFp)(this.configuration).
|
|
6071
|
+
getTagByID(id, options) {
|
|
6072
|
+
return (0, exports.TagApiFp)(this.configuration).getTagByID(id, options).then((request) => request(this.axios, this.basePath));
|
|
6058
6073
|
}
|
|
6059
6074
|
/**
|
|
6060
6075
|
* This method returns a list of all tags in the system.
|
|
6061
6076
|
* @summary Method returns tags list.
|
|
6062
6077
|
* @param {string} [tagKey] Tag key
|
|
6078
|
+
* @param {string} [search] search string
|
|
6063
6079
|
* @param {*} [options] Override http request option.
|
|
6064
6080
|
* @throws {RequiredError}
|
|
6065
6081
|
* @memberof TagApi
|
|
6066
6082
|
*/
|
|
6067
|
-
listTags(tagKey, options) {
|
|
6068
|
-
return (0, exports.TagApiFp)(this.configuration).listTags(tagKey, options).then((request) => request(this.axios, this.basePath));
|
|
6083
|
+
listTags(tagKey, search, options) {
|
|
6084
|
+
return (0, exports.TagApiFp)(this.configuration).listTags(tagKey, search, options).then((request) => request(this.axios, this.basePath));
|
|
6069
6085
|
}
|
|
6070
6086
|
/**
|
|
6071
6087
|
* This method allows updating a tag in the system.
|
|
6072
6088
|
* @summary Method allows to update tag.
|
|
6073
|
-
* @param {string}
|
|
6089
|
+
* @param {string} id Tag id
|
|
6074
6090
|
* @param {UpdateTagRequest} [updateTagRequest]
|
|
6075
6091
|
* @param {*} [options] Override http request option.
|
|
6076
6092
|
* @throws {RequiredError}
|
|
6077
6093
|
* @memberof TagApi
|
|
6078
6094
|
*/
|
|
6079
|
-
updateTag(
|
|
6080
|
-
return (0, exports.TagApiFp)(this.configuration).updateTag(
|
|
6095
|
+
updateTag(id, updateTagRequest, options) {
|
|
6096
|
+
return (0, exports.TagApiFp)(this.configuration).updateTag(id, updateTagRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6081
6097
|
}
|
|
6082
6098
|
}
|
|
6083
6099
|
exports.TagApi = TagApi;
|