flexinet-api 0.0.735-prerelease0 → 0.0.737-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 +326 -216
- package/dist/api.d.ts +188 -105
- package/dist/api.js +255 -196
- package/dist/esm/api.d.ts +188 -105
- package/dist/esm/api.js +248 -193
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -22,15 +22,24 @@ 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 = void 0;
|
|
25
|
+
exports.CategoryApiAxiosParamCreator = 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.Feature = exports.EventCreationRequestKindEnum = exports.CustomDealRestrictionPriority = exports.Condition = exports.BonusMu = exports.BeneficiaryKind = exports.AuditLogObjectType = exports.AuditLogActionEnum = exports.ApiKeyKind = void 0;
|
|
26
|
+
exports.TagApiFactory = 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 = 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 = void 0;
|
|
28
28
|
const axios_1 = require("axios");
|
|
29
29
|
// Some imports not used depending on template conditions
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
const common_1 = require("./common");
|
|
32
32
|
// @ts-ignore
|
|
33
33
|
const base_1 = require("./base");
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @export
|
|
37
|
+
* @enum {string}
|
|
38
|
+
*/
|
|
39
|
+
exports.ApiKeyKind = {
|
|
40
|
+
Webhook: 'webhook',
|
|
41
|
+
Api: 'api'
|
|
42
|
+
};
|
|
34
43
|
exports.AuditLogActionEnum = {
|
|
35
44
|
Create: 'create',
|
|
36
45
|
Update: 'update'
|
|
@@ -868,6 +877,236 @@ class BalanceApi extends base_1.BaseAPI {
|
|
|
868
877
|
}
|
|
869
878
|
}
|
|
870
879
|
exports.BalanceApi = BalanceApi;
|
|
880
|
+
/**
|
|
881
|
+
* BulkApi - axios parameter creator
|
|
882
|
+
* @export
|
|
883
|
+
*/
|
|
884
|
+
const BulkApiAxiosParamCreator = function (configuration) {
|
|
885
|
+
return {
|
|
886
|
+
/**
|
|
887
|
+
* Create multiple clients
|
|
888
|
+
* @summary Create multiple clients
|
|
889
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
890
|
+
* @param {*} [options] Override http request option.
|
|
891
|
+
* @throws {RequiredError}
|
|
892
|
+
*/
|
|
893
|
+
bulkCreateClients: (clientsBulkCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
894
|
+
const localVarPath = `/admins/clients/bulk`;
|
|
895
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
896
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
897
|
+
let baseOptions;
|
|
898
|
+
if (configuration) {
|
|
899
|
+
baseOptions = configuration.baseOptions;
|
|
900
|
+
}
|
|
901
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
902
|
+
const localVarHeaderParameter = {};
|
|
903
|
+
const localVarQueryParameter = {};
|
|
904
|
+
// authentication ApiKeyAuth required
|
|
905
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-API-Key", configuration);
|
|
906
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
907
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
908
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
909
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
910
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientsBulkCreationRequest, localVarRequestOptions, configuration);
|
|
911
|
+
return {
|
|
912
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
913
|
+
options: localVarRequestOptions,
|
|
914
|
+
};
|
|
915
|
+
}),
|
|
916
|
+
/**
|
|
917
|
+
* Create multiple products
|
|
918
|
+
* @summary Create multiple products
|
|
919
|
+
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
920
|
+
* @param {*} [options] Override http request option.
|
|
921
|
+
* @throws {RequiredError}
|
|
922
|
+
*/
|
|
923
|
+
bulkCreateProducts: (productBulkCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
924
|
+
const localVarPath = `/admins/products/bulk`;
|
|
925
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
926
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
927
|
+
let baseOptions;
|
|
928
|
+
if (configuration) {
|
|
929
|
+
baseOptions = configuration.baseOptions;
|
|
930
|
+
}
|
|
931
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
932
|
+
const localVarHeaderParameter = {};
|
|
933
|
+
const localVarQueryParameter = {};
|
|
934
|
+
// authentication ApiKeyAuth required
|
|
935
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-API-Key", configuration);
|
|
936
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
937
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
938
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
939
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
940
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(productBulkCreationRequest, localVarRequestOptions, configuration);
|
|
941
|
+
return {
|
|
942
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
943
|
+
options: localVarRequestOptions,
|
|
944
|
+
};
|
|
945
|
+
}),
|
|
946
|
+
/**
|
|
947
|
+
* Create multiple tags
|
|
948
|
+
* @summary Create multiple tags
|
|
949
|
+
* @param {TagsBulkCreationRequest} [tagsBulkCreationRequest]
|
|
950
|
+
* @param {*} [options] Override http request option.
|
|
951
|
+
* @throws {RequiredError}
|
|
952
|
+
*/
|
|
953
|
+
bulkCreateTags: (tagsBulkCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
954
|
+
const localVarPath = `/admins/tags/bulk`;
|
|
955
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
956
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
957
|
+
let baseOptions;
|
|
958
|
+
if (configuration) {
|
|
959
|
+
baseOptions = configuration.baseOptions;
|
|
960
|
+
}
|
|
961
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
962
|
+
const localVarHeaderParameter = {};
|
|
963
|
+
const localVarQueryParameter = {};
|
|
964
|
+
// authentication ApiKeyAuth required
|
|
965
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-API-Key", configuration);
|
|
966
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
967
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
968
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
969
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
970
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(tagsBulkCreationRequest, localVarRequestOptions, configuration);
|
|
971
|
+
return {
|
|
972
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
973
|
+
options: localVarRequestOptions,
|
|
974
|
+
};
|
|
975
|
+
}),
|
|
976
|
+
};
|
|
977
|
+
};
|
|
978
|
+
exports.BulkApiAxiosParamCreator = BulkApiAxiosParamCreator;
|
|
979
|
+
/**
|
|
980
|
+
* BulkApi - functional programming interface
|
|
981
|
+
* @export
|
|
982
|
+
*/
|
|
983
|
+
const BulkApiFp = function (configuration) {
|
|
984
|
+
const localVarAxiosParamCreator = (0, exports.BulkApiAxiosParamCreator)(configuration);
|
|
985
|
+
return {
|
|
986
|
+
/**
|
|
987
|
+
* Create multiple clients
|
|
988
|
+
* @summary Create multiple clients
|
|
989
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
990
|
+
* @param {*} [options] Override http request option.
|
|
991
|
+
* @throws {RequiredError}
|
|
992
|
+
*/
|
|
993
|
+
bulkCreateClients(clientsBulkCreationRequest, options) {
|
|
994
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
995
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkCreateClients(clientsBulkCreationRequest, options);
|
|
996
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
997
|
+
});
|
|
998
|
+
},
|
|
999
|
+
/**
|
|
1000
|
+
* Create multiple products
|
|
1001
|
+
* @summary Create multiple products
|
|
1002
|
+
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
1003
|
+
* @param {*} [options] Override http request option.
|
|
1004
|
+
* @throws {RequiredError}
|
|
1005
|
+
*/
|
|
1006
|
+
bulkCreateProducts(productBulkCreationRequest, options) {
|
|
1007
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1008
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkCreateProducts(productBulkCreationRequest, options);
|
|
1009
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1010
|
+
});
|
|
1011
|
+
},
|
|
1012
|
+
/**
|
|
1013
|
+
* Create multiple tags
|
|
1014
|
+
* @summary Create multiple tags
|
|
1015
|
+
* @param {TagsBulkCreationRequest} [tagsBulkCreationRequest]
|
|
1016
|
+
* @param {*} [options] Override http request option.
|
|
1017
|
+
* @throws {RequiredError}
|
|
1018
|
+
*/
|
|
1019
|
+
bulkCreateTags(tagsBulkCreationRequest, options) {
|
|
1020
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1021
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkCreateTags(tagsBulkCreationRequest, options);
|
|
1022
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1023
|
+
});
|
|
1024
|
+
},
|
|
1025
|
+
};
|
|
1026
|
+
};
|
|
1027
|
+
exports.BulkApiFp = BulkApiFp;
|
|
1028
|
+
/**
|
|
1029
|
+
* BulkApi - factory interface
|
|
1030
|
+
* @export
|
|
1031
|
+
*/
|
|
1032
|
+
const BulkApiFactory = function (configuration, basePath, axios) {
|
|
1033
|
+
const localVarFp = (0, exports.BulkApiFp)(configuration);
|
|
1034
|
+
return {
|
|
1035
|
+
/**
|
|
1036
|
+
* Create multiple clients
|
|
1037
|
+
* @summary Create multiple clients
|
|
1038
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
1039
|
+
* @param {*} [options] Override http request option.
|
|
1040
|
+
* @throws {RequiredError}
|
|
1041
|
+
*/
|
|
1042
|
+
bulkCreateClients(clientsBulkCreationRequest, options) {
|
|
1043
|
+
return localVarFp.bulkCreateClients(clientsBulkCreationRequest, options).then((request) => request(axios, basePath));
|
|
1044
|
+
},
|
|
1045
|
+
/**
|
|
1046
|
+
* Create multiple products
|
|
1047
|
+
* @summary Create multiple products
|
|
1048
|
+
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
1049
|
+
* @param {*} [options] Override http request option.
|
|
1050
|
+
* @throws {RequiredError}
|
|
1051
|
+
*/
|
|
1052
|
+
bulkCreateProducts(productBulkCreationRequest, options) {
|
|
1053
|
+
return localVarFp.bulkCreateProducts(productBulkCreationRequest, options).then((request) => request(axios, basePath));
|
|
1054
|
+
},
|
|
1055
|
+
/**
|
|
1056
|
+
* Create multiple tags
|
|
1057
|
+
* @summary Create multiple tags
|
|
1058
|
+
* @param {TagsBulkCreationRequest} [tagsBulkCreationRequest]
|
|
1059
|
+
* @param {*} [options] Override http request option.
|
|
1060
|
+
* @throws {RequiredError}
|
|
1061
|
+
*/
|
|
1062
|
+
bulkCreateTags(tagsBulkCreationRequest, options) {
|
|
1063
|
+
return localVarFp.bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(axios, basePath));
|
|
1064
|
+
},
|
|
1065
|
+
};
|
|
1066
|
+
};
|
|
1067
|
+
exports.BulkApiFactory = BulkApiFactory;
|
|
1068
|
+
/**
|
|
1069
|
+
* BulkApi - object-oriented interface
|
|
1070
|
+
* @export
|
|
1071
|
+
* @class BulkApi
|
|
1072
|
+
* @extends {BaseAPI}
|
|
1073
|
+
*/
|
|
1074
|
+
class BulkApi extends base_1.BaseAPI {
|
|
1075
|
+
/**
|
|
1076
|
+
* Create multiple clients
|
|
1077
|
+
* @summary Create multiple clients
|
|
1078
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
1079
|
+
* @param {*} [options] Override http request option.
|
|
1080
|
+
* @throws {RequiredError}
|
|
1081
|
+
* @memberof BulkApi
|
|
1082
|
+
*/
|
|
1083
|
+
bulkCreateClients(clientsBulkCreationRequest, options) {
|
|
1084
|
+
return (0, exports.BulkApiFp)(this.configuration).bulkCreateClients(clientsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1085
|
+
}
|
|
1086
|
+
/**
|
|
1087
|
+
* Create multiple products
|
|
1088
|
+
* @summary Create multiple products
|
|
1089
|
+
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
1090
|
+
* @param {*} [options] Override http request option.
|
|
1091
|
+
* @throws {RequiredError}
|
|
1092
|
+
* @memberof BulkApi
|
|
1093
|
+
*/
|
|
1094
|
+
bulkCreateProducts(productBulkCreationRequest, options) {
|
|
1095
|
+
return (0, exports.BulkApiFp)(this.configuration).bulkCreateProducts(productBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1096
|
+
}
|
|
1097
|
+
/**
|
|
1098
|
+
* Create multiple tags
|
|
1099
|
+
* @summary Create multiple tags
|
|
1100
|
+
* @param {TagsBulkCreationRequest} [tagsBulkCreationRequest]
|
|
1101
|
+
* @param {*} [options] Override http request option.
|
|
1102
|
+
* @throws {RequiredError}
|
|
1103
|
+
* @memberof BulkApi
|
|
1104
|
+
*/
|
|
1105
|
+
bulkCreateTags(tagsBulkCreationRequest, options) {
|
|
1106
|
+
return (0, exports.BulkApiFp)(this.configuration).bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
exports.BulkApi = BulkApi;
|
|
871
1110
|
/**
|
|
872
1111
|
* CategoryApi - axios parameter creator
|
|
873
1112
|
* @export
|
|
@@ -974,36 +1213,6 @@ exports.CategoryApi = CategoryApi;
|
|
|
974
1213
|
*/
|
|
975
1214
|
const ClientApiAxiosParamCreator = function (configuration) {
|
|
976
1215
|
return {
|
|
977
|
-
/**
|
|
978
|
-
* Create multiple clients
|
|
979
|
-
* @summary Create multiple clients
|
|
980
|
-
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
981
|
-
* @param {*} [options] Override http request option.
|
|
982
|
-
* @throws {RequiredError}
|
|
983
|
-
*/
|
|
984
|
-
bulkCreateClients: (clientsBulkCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
985
|
-
const localVarPath = `/admins/clients/bulk`;
|
|
986
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
987
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
988
|
-
let baseOptions;
|
|
989
|
-
if (configuration) {
|
|
990
|
-
baseOptions = configuration.baseOptions;
|
|
991
|
-
}
|
|
992
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
993
|
-
const localVarHeaderParameter = {};
|
|
994
|
-
const localVarQueryParameter = {};
|
|
995
|
-
// authentication ApiKeyAuth required
|
|
996
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-API-Key", configuration);
|
|
997
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
998
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
999
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1000
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1001
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientsBulkCreationRequest, localVarRequestOptions, configuration);
|
|
1002
|
-
return {
|
|
1003
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1004
|
-
options: localVarRequestOptions,
|
|
1005
|
-
};
|
|
1006
|
-
}),
|
|
1007
1216
|
/**
|
|
1008
1217
|
* Create a new client
|
|
1009
1218
|
* @summary Create client
|
|
@@ -1166,19 +1375,6 @@ exports.ClientApiAxiosParamCreator = ClientApiAxiosParamCreator;
|
|
|
1166
1375
|
const ClientApiFp = function (configuration) {
|
|
1167
1376
|
const localVarAxiosParamCreator = (0, exports.ClientApiAxiosParamCreator)(configuration);
|
|
1168
1377
|
return {
|
|
1169
|
-
/**
|
|
1170
|
-
* Create multiple clients
|
|
1171
|
-
* @summary Create multiple clients
|
|
1172
|
-
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
1173
|
-
* @param {*} [options] Override http request option.
|
|
1174
|
-
* @throws {RequiredError}
|
|
1175
|
-
*/
|
|
1176
|
-
bulkCreateClients(clientsBulkCreationRequest, options) {
|
|
1177
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1178
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkCreateClients(clientsBulkCreationRequest, options);
|
|
1179
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1180
|
-
});
|
|
1181
|
-
},
|
|
1182
1378
|
/**
|
|
1183
1379
|
* Create a new client
|
|
1184
1380
|
* @summary Create client
|
|
@@ -1246,16 +1442,6 @@ exports.ClientApiFp = ClientApiFp;
|
|
|
1246
1442
|
const ClientApiFactory = function (configuration, basePath, axios) {
|
|
1247
1443
|
const localVarFp = (0, exports.ClientApiFp)(configuration);
|
|
1248
1444
|
return {
|
|
1249
|
-
/**
|
|
1250
|
-
* Create multiple clients
|
|
1251
|
-
* @summary Create multiple clients
|
|
1252
|
-
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
1253
|
-
* @param {*} [options] Override http request option.
|
|
1254
|
-
* @throws {RequiredError}
|
|
1255
|
-
*/
|
|
1256
|
-
bulkCreateClients(clientsBulkCreationRequest, options) {
|
|
1257
|
-
return localVarFp.bulkCreateClients(clientsBulkCreationRequest, options).then((request) => request(axios, basePath));
|
|
1258
|
-
},
|
|
1259
1445
|
/**
|
|
1260
1446
|
* Create a new client
|
|
1261
1447
|
* @summary Create client
|
|
@@ -1311,17 +1497,6 @@ exports.ClientApiFactory = ClientApiFactory;
|
|
|
1311
1497
|
* @extends {BaseAPI}
|
|
1312
1498
|
*/
|
|
1313
1499
|
class ClientApi extends base_1.BaseAPI {
|
|
1314
|
-
/**
|
|
1315
|
-
* Create multiple clients
|
|
1316
|
-
* @summary Create multiple clients
|
|
1317
|
-
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
1318
|
-
* @param {*} [options] Override http request option.
|
|
1319
|
-
* @throws {RequiredError}
|
|
1320
|
-
* @memberof ClientApi
|
|
1321
|
-
*/
|
|
1322
|
-
bulkCreateClients(clientsBulkCreationRequest, options) {
|
|
1323
|
-
return (0, exports.ClientApiFp)(this.configuration).bulkCreateClients(clientsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1324
|
-
}
|
|
1325
1500
|
/**
|
|
1326
1501
|
* Create a new client
|
|
1327
1502
|
* @summary Create client
|
|
@@ -1887,10 +2062,11 @@ const IntegrationApiAxiosParamCreator = function (configuration) {
|
|
|
1887
2062
|
/**
|
|
1888
2063
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
1889
2064
|
* @summary Generate API key for the current tenant
|
|
2065
|
+
* @param {GenerateApiKeyRequest} [generateApiKeyRequest]
|
|
1890
2066
|
* @param {*} [options] Override http request option.
|
|
1891
2067
|
* @throws {RequiredError}
|
|
1892
2068
|
*/
|
|
1893
|
-
generateApiKey: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2069
|
+
generateApiKey: (generateApiKeyRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1894
2070
|
const localVarPath = `/admins/integrations/apikey`;
|
|
1895
2071
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1896
2072
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1904,9 +2080,11 @@ const IntegrationApiAxiosParamCreator = function (configuration) {
|
|
|
1904
2080
|
// authentication systemJWT required
|
|
1905
2081
|
// http bearer authentication required
|
|
1906
2082
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2083
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1907
2084
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1908
2085
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1909
2086
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2087
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(generateApiKeyRequest, localVarRequestOptions, configuration);
|
|
1910
2088
|
return {
|
|
1911
2089
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1912
2090
|
options: localVarRequestOptions,
|
|
@@ -1973,33 +2151,6 @@ const IntegrationApiAxiosParamCreator = function (configuration) {
|
|
|
1973
2151
|
options: localVarRequestOptions,
|
|
1974
2152
|
};
|
|
1975
2153
|
}),
|
|
1976
|
-
/**
|
|
1977
|
-
* Test API key security scheme
|
|
1978
|
-
* @summary Test API key security scheme
|
|
1979
|
-
* @param {*} [options] Override http request option.
|
|
1980
|
-
* @throws {RequiredError}
|
|
1981
|
-
*/
|
|
1982
|
-
testApiKey: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1983
|
-
const localVarPath = `/admins/integrations/apikey`;
|
|
1984
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1985
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1986
|
-
let baseOptions;
|
|
1987
|
-
if (configuration) {
|
|
1988
|
-
baseOptions = configuration.baseOptions;
|
|
1989
|
-
}
|
|
1990
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1991
|
-
const localVarHeaderParameter = {};
|
|
1992
|
-
const localVarQueryParameter = {};
|
|
1993
|
-
// authentication ApiKeyAuth required
|
|
1994
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-API-Key", configuration);
|
|
1995
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1996
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1997
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1998
|
-
return {
|
|
1999
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2000
|
-
options: localVarRequestOptions,
|
|
2001
|
-
};
|
|
2002
|
-
}),
|
|
2003
2154
|
};
|
|
2004
2155
|
};
|
|
2005
2156
|
exports.IntegrationApiAxiosParamCreator = IntegrationApiAxiosParamCreator;
|
|
@@ -2013,12 +2164,13 @@ const IntegrationApiFp = function (configuration) {
|
|
|
2013
2164
|
/**
|
|
2014
2165
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
2015
2166
|
* @summary Generate API key for the current tenant
|
|
2167
|
+
* @param {GenerateApiKeyRequest} [generateApiKeyRequest]
|
|
2016
2168
|
* @param {*} [options] Override http request option.
|
|
2017
2169
|
* @throws {RequiredError}
|
|
2018
2170
|
*/
|
|
2019
|
-
generateApiKey(options) {
|
|
2171
|
+
generateApiKey(generateApiKeyRequest, options) {
|
|
2020
2172
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2021
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateApiKey(options);
|
|
2173
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.generateApiKey(generateApiKeyRequest, options);
|
|
2022
2174
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2023
2175
|
});
|
|
2024
2176
|
},
|
|
@@ -2047,18 +2199,6 @@ const IntegrationApiFp = function (configuration) {
|
|
|
2047
2199
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2048
2200
|
});
|
|
2049
2201
|
},
|
|
2050
|
-
/**
|
|
2051
|
-
* Test API key security scheme
|
|
2052
|
-
* @summary Test API key security scheme
|
|
2053
|
-
* @param {*} [options] Override http request option.
|
|
2054
|
-
* @throws {RequiredError}
|
|
2055
|
-
*/
|
|
2056
|
-
testApiKey(options) {
|
|
2057
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
2058
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.testApiKey(options);
|
|
2059
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2060
|
-
});
|
|
2061
|
-
},
|
|
2062
2202
|
};
|
|
2063
2203
|
};
|
|
2064
2204
|
exports.IntegrationApiFp = IntegrationApiFp;
|
|
@@ -2072,11 +2212,12 @@ const IntegrationApiFactory = function (configuration, basePath, axios) {
|
|
|
2072
2212
|
/**
|
|
2073
2213
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
2074
2214
|
* @summary Generate API key for the current tenant
|
|
2215
|
+
* @param {GenerateApiKeyRequest} [generateApiKeyRequest]
|
|
2075
2216
|
* @param {*} [options] Override http request option.
|
|
2076
2217
|
* @throws {RequiredError}
|
|
2077
2218
|
*/
|
|
2078
|
-
generateApiKey(options) {
|
|
2079
|
-
return localVarFp.generateApiKey(options).then((request) => request(axios, basePath));
|
|
2219
|
+
generateApiKey(generateApiKeyRequest, options) {
|
|
2220
|
+
return localVarFp.generateApiKey(generateApiKeyRequest, options).then((request) => request(axios, basePath));
|
|
2080
2221
|
},
|
|
2081
2222
|
/**
|
|
2082
2223
|
* List all webhooks for current tenant
|
|
@@ -2097,15 +2238,6 @@ const IntegrationApiFactory = function (configuration, basePath, axios) {
|
|
|
2097
2238
|
setWebhook(webhook, options) {
|
|
2098
2239
|
return localVarFp.setWebhook(webhook, options).then((request) => request(axios, basePath));
|
|
2099
2240
|
},
|
|
2100
|
-
/**
|
|
2101
|
-
* Test API key security scheme
|
|
2102
|
-
* @summary Test API key security scheme
|
|
2103
|
-
* @param {*} [options] Override http request option.
|
|
2104
|
-
* @throws {RequiredError}
|
|
2105
|
-
*/
|
|
2106
|
-
testApiKey(options) {
|
|
2107
|
-
return localVarFp.testApiKey(options).then((request) => request(axios, basePath));
|
|
2108
|
-
},
|
|
2109
2241
|
};
|
|
2110
2242
|
};
|
|
2111
2243
|
exports.IntegrationApiFactory = IntegrationApiFactory;
|
|
@@ -2119,12 +2251,13 @@ class IntegrationApi extends base_1.BaseAPI {
|
|
|
2119
2251
|
/**
|
|
2120
2252
|
* Generate a new API key, if one already exists it will be rotated, but the old one will still be valid for a short period of time. Important that API key is only returned once, so make sure to store it securely.
|
|
2121
2253
|
* @summary Generate API key for the current tenant
|
|
2254
|
+
* @param {GenerateApiKeyRequest} [generateApiKeyRequest]
|
|
2122
2255
|
* @param {*} [options] Override http request option.
|
|
2123
2256
|
* @throws {RequiredError}
|
|
2124
2257
|
* @memberof IntegrationApi
|
|
2125
2258
|
*/
|
|
2126
|
-
generateApiKey(options) {
|
|
2127
|
-
return (0, exports.IntegrationApiFp)(this.configuration).generateApiKey(options).then((request) => request(this.axios, this.basePath));
|
|
2259
|
+
generateApiKey(generateApiKeyRequest, options) {
|
|
2260
|
+
return (0, exports.IntegrationApiFp)(this.configuration).generateApiKey(generateApiKeyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2128
2261
|
}
|
|
2129
2262
|
/**
|
|
2130
2263
|
* List all webhooks for current tenant
|
|
@@ -2147,16 +2280,6 @@ class IntegrationApi extends base_1.BaseAPI {
|
|
|
2147
2280
|
setWebhook(webhook, options) {
|
|
2148
2281
|
return (0, exports.IntegrationApiFp)(this.configuration).setWebhook(webhook, options).then((request) => request(this.axios, this.basePath));
|
|
2149
2282
|
}
|
|
2150
|
-
/**
|
|
2151
|
-
* Test API key security scheme
|
|
2152
|
-
* @summary Test API key security scheme
|
|
2153
|
-
* @param {*} [options] Override http request option.
|
|
2154
|
-
* @throws {RequiredError}
|
|
2155
|
-
* @memberof IntegrationApi
|
|
2156
|
-
*/
|
|
2157
|
-
testApiKey(options) {
|
|
2158
|
-
return (0, exports.IntegrationApiFp)(this.configuration).testApiKey(options).then((request) => request(this.axios, this.basePath));
|
|
2159
|
-
}
|
|
2160
2283
|
}
|
|
2161
2284
|
exports.IntegrationApi = IntegrationApi;
|
|
2162
2285
|
/**
|
|
@@ -3102,36 +3225,6 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3102
3225
|
options: localVarRequestOptions,
|
|
3103
3226
|
};
|
|
3104
3227
|
}),
|
|
3105
|
-
/**
|
|
3106
|
-
* Create multiple products
|
|
3107
|
-
* @summary Create multiple products
|
|
3108
|
-
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
3109
|
-
* @param {*} [options] Override http request option.
|
|
3110
|
-
* @throws {RequiredError}
|
|
3111
|
-
*/
|
|
3112
|
-
bulkCreateProducts: (productBulkCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3113
|
-
const localVarPath = `/admins/products/bulk`;
|
|
3114
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3115
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3116
|
-
let baseOptions;
|
|
3117
|
-
if (configuration) {
|
|
3118
|
-
baseOptions = configuration.baseOptions;
|
|
3119
|
-
}
|
|
3120
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3121
|
-
const localVarHeaderParameter = {};
|
|
3122
|
-
const localVarQueryParameter = {};
|
|
3123
|
-
// authentication ApiKeyAuth required
|
|
3124
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-API-Key", configuration);
|
|
3125
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3126
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3127
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3128
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3129
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(productBulkCreationRequest, localVarRequestOptions, configuration);
|
|
3130
|
-
return {
|
|
3131
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3132
|
-
options: localVarRequestOptions,
|
|
3133
|
-
};
|
|
3134
|
-
}),
|
|
3135
3228
|
/**
|
|
3136
3229
|
* Create a new product
|
|
3137
3230
|
* @summary Create a new product
|
|
@@ -3529,19 +3622,6 @@ const ProductApiFp = function (configuration) {
|
|
|
3529
3622
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
3530
3623
|
});
|
|
3531
3624
|
},
|
|
3532
|
-
/**
|
|
3533
|
-
* Create multiple products
|
|
3534
|
-
* @summary Create multiple products
|
|
3535
|
-
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
3536
|
-
* @param {*} [options] Override http request option.
|
|
3537
|
-
* @throws {RequiredError}
|
|
3538
|
-
*/
|
|
3539
|
-
bulkCreateProducts(productBulkCreationRequest, options) {
|
|
3540
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3541
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkCreateProducts(productBulkCreationRequest, options);
|
|
3542
|
-
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
3543
|
-
});
|
|
3544
|
-
},
|
|
3545
3625
|
/**
|
|
3546
3626
|
* Create a new product
|
|
3547
3627
|
* @summary Create a new product
|
|
@@ -3707,16 +3787,6 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
3707
3787
|
approveProduct(id, productRequestApprovalRequest, options) {
|
|
3708
3788
|
return localVarFp.approveProduct(id, productRequestApprovalRequest, options).then((request) => request(axios, basePath));
|
|
3709
3789
|
},
|
|
3710
|
-
/**
|
|
3711
|
-
* Create multiple products
|
|
3712
|
-
* @summary Create multiple products
|
|
3713
|
-
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
3714
|
-
* @param {*} [options] Override http request option.
|
|
3715
|
-
* @throws {RequiredError}
|
|
3716
|
-
*/
|
|
3717
|
-
bulkCreateProducts(productBulkCreationRequest, options) {
|
|
3718
|
-
return localVarFp.bulkCreateProducts(productBulkCreationRequest, options).then((request) => request(axios, basePath));
|
|
3719
|
-
},
|
|
3720
3790
|
/**
|
|
3721
3791
|
* Create a new product
|
|
3722
3792
|
* @summary Create a new product
|
|
@@ -3853,17 +3923,6 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
3853
3923
|
approveProduct(id, productRequestApprovalRequest, options) {
|
|
3854
3924
|
return (0, exports.ProductApiFp)(this.configuration).approveProduct(id, productRequestApprovalRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3855
3925
|
}
|
|
3856
|
-
/**
|
|
3857
|
-
* Create multiple products
|
|
3858
|
-
* @summary Create multiple products
|
|
3859
|
-
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
3860
|
-
* @param {*} [options] Override http request option.
|
|
3861
|
-
* @throws {RequiredError}
|
|
3862
|
-
* @memberof ProductApi
|
|
3863
|
-
*/
|
|
3864
|
-
bulkCreateProducts(productBulkCreationRequest, options) {
|
|
3865
|
-
return (0, exports.ProductApiFp)(this.configuration).bulkCreateProducts(productBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3866
|
-
}
|
|
3867
3926
|
/**
|
|
3868
3927
|
* Create a new product
|
|
3869
3928
|
* @summary Create a new product
|