flexinet-api 0.0.732-prerelease0 → 0.0.736-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 +262 -140
- package/dist/api.d.ts +138 -66
- package/dist/api.js +233 -131
- package/dist/esm/api.d.ts +138 -66
- package/dist/esm/api.js +226 -128
- 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 = void 0;
|
|
25
|
+
exports.CategoryApiFp = 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 = void 0;
|
|
26
|
+
exports.TagApi = 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 = 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 = void 0;
|
|
28
28
|
const axios_1 = require("axios");
|
|
29
29
|
// Some imports not used depending on template conditions
|
|
30
30
|
// @ts-ignore
|
|
@@ -868,6 +868,236 @@ class BalanceApi extends base_1.BaseAPI {
|
|
|
868
868
|
}
|
|
869
869
|
}
|
|
870
870
|
exports.BalanceApi = BalanceApi;
|
|
871
|
+
/**
|
|
872
|
+
* BulkApi - axios parameter creator
|
|
873
|
+
* @export
|
|
874
|
+
*/
|
|
875
|
+
const BulkApiAxiosParamCreator = function (configuration) {
|
|
876
|
+
return {
|
|
877
|
+
/**
|
|
878
|
+
* Create multiple clients
|
|
879
|
+
* @summary Create multiple clients
|
|
880
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
881
|
+
* @param {*} [options] Override http request option.
|
|
882
|
+
* @throws {RequiredError}
|
|
883
|
+
*/
|
|
884
|
+
bulkCreateClients: (clientsBulkCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
885
|
+
const localVarPath = `/admins/clients/bulk`;
|
|
886
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
887
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
888
|
+
let baseOptions;
|
|
889
|
+
if (configuration) {
|
|
890
|
+
baseOptions = configuration.baseOptions;
|
|
891
|
+
}
|
|
892
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
893
|
+
const localVarHeaderParameter = {};
|
|
894
|
+
const localVarQueryParameter = {};
|
|
895
|
+
// authentication ApiKeyAuth required
|
|
896
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-API-Key", configuration);
|
|
897
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
898
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
899
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
900
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
901
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientsBulkCreationRequest, localVarRequestOptions, configuration);
|
|
902
|
+
return {
|
|
903
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
904
|
+
options: localVarRequestOptions,
|
|
905
|
+
};
|
|
906
|
+
}),
|
|
907
|
+
/**
|
|
908
|
+
* Create multiple products
|
|
909
|
+
* @summary Create multiple products
|
|
910
|
+
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
911
|
+
* @param {*} [options] Override http request option.
|
|
912
|
+
* @throws {RequiredError}
|
|
913
|
+
*/
|
|
914
|
+
bulkCreateProducts: (productBulkCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
915
|
+
const localVarPath = `/admins/products/bulk`;
|
|
916
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
917
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
918
|
+
let baseOptions;
|
|
919
|
+
if (configuration) {
|
|
920
|
+
baseOptions = configuration.baseOptions;
|
|
921
|
+
}
|
|
922
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
923
|
+
const localVarHeaderParameter = {};
|
|
924
|
+
const localVarQueryParameter = {};
|
|
925
|
+
// authentication ApiKeyAuth required
|
|
926
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-API-Key", configuration);
|
|
927
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
928
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
929
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
930
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
931
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(productBulkCreationRequest, localVarRequestOptions, configuration);
|
|
932
|
+
return {
|
|
933
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
934
|
+
options: localVarRequestOptions,
|
|
935
|
+
};
|
|
936
|
+
}),
|
|
937
|
+
/**
|
|
938
|
+
* Create multiple tags
|
|
939
|
+
* @summary Create multiple tags
|
|
940
|
+
* @param {TagsBulkCreationRequest} [tagsBulkCreationRequest]
|
|
941
|
+
* @param {*} [options] Override http request option.
|
|
942
|
+
* @throws {RequiredError}
|
|
943
|
+
*/
|
|
944
|
+
bulkCreateTags: (tagsBulkCreationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
945
|
+
const localVarPath = `/admins/tags/bulk`;
|
|
946
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
947
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
948
|
+
let baseOptions;
|
|
949
|
+
if (configuration) {
|
|
950
|
+
baseOptions = configuration.baseOptions;
|
|
951
|
+
}
|
|
952
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
953
|
+
const localVarHeaderParameter = {};
|
|
954
|
+
const localVarQueryParameter = {};
|
|
955
|
+
// authentication ApiKeyAuth required
|
|
956
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "X-API-Key", configuration);
|
|
957
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
958
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
959
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
960
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
961
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(tagsBulkCreationRequest, localVarRequestOptions, configuration);
|
|
962
|
+
return {
|
|
963
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
964
|
+
options: localVarRequestOptions,
|
|
965
|
+
};
|
|
966
|
+
}),
|
|
967
|
+
};
|
|
968
|
+
};
|
|
969
|
+
exports.BulkApiAxiosParamCreator = BulkApiAxiosParamCreator;
|
|
970
|
+
/**
|
|
971
|
+
* BulkApi - functional programming interface
|
|
972
|
+
* @export
|
|
973
|
+
*/
|
|
974
|
+
const BulkApiFp = function (configuration) {
|
|
975
|
+
const localVarAxiosParamCreator = (0, exports.BulkApiAxiosParamCreator)(configuration);
|
|
976
|
+
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) {
|
|
985
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
986
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkCreateClients(clientsBulkCreationRequest, options);
|
|
987
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
988
|
+
});
|
|
989
|
+
},
|
|
990
|
+
/**
|
|
991
|
+
* Create multiple products
|
|
992
|
+
* @summary Create multiple products
|
|
993
|
+
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
994
|
+
* @param {*} [options] Override http request option.
|
|
995
|
+
* @throws {RequiredError}
|
|
996
|
+
*/
|
|
997
|
+
bulkCreateProducts(productBulkCreationRequest, options) {
|
|
998
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
999
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkCreateProducts(productBulkCreationRequest, options);
|
|
1000
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1001
|
+
});
|
|
1002
|
+
},
|
|
1003
|
+
/**
|
|
1004
|
+
* Create multiple tags
|
|
1005
|
+
* @summary Create multiple tags
|
|
1006
|
+
* @param {TagsBulkCreationRequest} [tagsBulkCreationRequest]
|
|
1007
|
+
* @param {*} [options] Override http request option.
|
|
1008
|
+
* @throws {RequiredError}
|
|
1009
|
+
*/
|
|
1010
|
+
bulkCreateTags(tagsBulkCreationRequest, options) {
|
|
1011
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1012
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.bulkCreateTags(tagsBulkCreationRequest, options);
|
|
1013
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1014
|
+
});
|
|
1015
|
+
},
|
|
1016
|
+
};
|
|
1017
|
+
};
|
|
1018
|
+
exports.BulkApiFp = BulkApiFp;
|
|
1019
|
+
/**
|
|
1020
|
+
* BulkApi - factory interface
|
|
1021
|
+
* @export
|
|
1022
|
+
*/
|
|
1023
|
+
const BulkApiFactory = function (configuration, basePath, axios) {
|
|
1024
|
+
const localVarFp = (0, exports.BulkApiFp)(configuration);
|
|
1025
|
+
return {
|
|
1026
|
+
/**
|
|
1027
|
+
* Create multiple clients
|
|
1028
|
+
* @summary Create multiple clients
|
|
1029
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
1030
|
+
* @param {*} [options] Override http request option.
|
|
1031
|
+
* @throws {RequiredError}
|
|
1032
|
+
*/
|
|
1033
|
+
bulkCreateClients(clientsBulkCreationRequest, options) {
|
|
1034
|
+
return localVarFp.bulkCreateClients(clientsBulkCreationRequest, options).then((request) => request(axios, basePath));
|
|
1035
|
+
},
|
|
1036
|
+
/**
|
|
1037
|
+
* Create multiple products
|
|
1038
|
+
* @summary Create multiple products
|
|
1039
|
+
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
1040
|
+
* @param {*} [options] Override http request option.
|
|
1041
|
+
* @throws {RequiredError}
|
|
1042
|
+
*/
|
|
1043
|
+
bulkCreateProducts(productBulkCreationRequest, options) {
|
|
1044
|
+
return localVarFp.bulkCreateProducts(productBulkCreationRequest, options).then((request) => request(axios, basePath));
|
|
1045
|
+
},
|
|
1046
|
+
/**
|
|
1047
|
+
* Create multiple tags
|
|
1048
|
+
* @summary Create multiple tags
|
|
1049
|
+
* @param {TagsBulkCreationRequest} [tagsBulkCreationRequest]
|
|
1050
|
+
* @param {*} [options] Override http request option.
|
|
1051
|
+
* @throws {RequiredError}
|
|
1052
|
+
*/
|
|
1053
|
+
bulkCreateTags(tagsBulkCreationRequest, options) {
|
|
1054
|
+
return localVarFp.bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(axios, basePath));
|
|
1055
|
+
},
|
|
1056
|
+
};
|
|
1057
|
+
};
|
|
1058
|
+
exports.BulkApiFactory = BulkApiFactory;
|
|
1059
|
+
/**
|
|
1060
|
+
* BulkApi - object-oriented interface
|
|
1061
|
+
* @export
|
|
1062
|
+
* @class BulkApi
|
|
1063
|
+
* @extends {BaseAPI}
|
|
1064
|
+
*/
|
|
1065
|
+
class BulkApi extends base_1.BaseAPI {
|
|
1066
|
+
/**
|
|
1067
|
+
* Create multiple clients
|
|
1068
|
+
* @summary Create multiple clients
|
|
1069
|
+
* @param {ClientsBulkCreationRequest} [clientsBulkCreationRequest]
|
|
1070
|
+
* @param {*} [options] Override http request option.
|
|
1071
|
+
* @throws {RequiredError}
|
|
1072
|
+
* @memberof BulkApi
|
|
1073
|
+
*/
|
|
1074
|
+
bulkCreateClients(clientsBulkCreationRequest, options) {
|
|
1075
|
+
return (0, exports.BulkApiFp)(this.configuration).bulkCreateClients(clientsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1076
|
+
}
|
|
1077
|
+
/**
|
|
1078
|
+
* Create multiple products
|
|
1079
|
+
* @summary Create multiple products
|
|
1080
|
+
* @param {ProductBulkCreationRequest} [productBulkCreationRequest]
|
|
1081
|
+
* @param {*} [options] Override http request option.
|
|
1082
|
+
* @throws {RequiredError}
|
|
1083
|
+
* @memberof BulkApi
|
|
1084
|
+
*/
|
|
1085
|
+
bulkCreateProducts(productBulkCreationRequest, options) {
|
|
1086
|
+
return (0, exports.BulkApiFp)(this.configuration).bulkCreateProducts(productBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1087
|
+
}
|
|
1088
|
+
/**
|
|
1089
|
+
* Create multiple tags
|
|
1090
|
+
* @summary Create multiple tags
|
|
1091
|
+
* @param {TagsBulkCreationRequest} [tagsBulkCreationRequest]
|
|
1092
|
+
* @param {*} [options] Override http request option.
|
|
1093
|
+
* @throws {RequiredError}
|
|
1094
|
+
* @memberof BulkApi
|
|
1095
|
+
*/
|
|
1096
|
+
bulkCreateTags(tagsBulkCreationRequest, options) {
|
|
1097
|
+
return (0, exports.BulkApiFp)(this.configuration).bulkCreateTags(tagsBulkCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
exports.BulkApi = BulkApi;
|
|
871
1101
|
/**
|
|
872
1102
|
* CategoryApi - axios parameter creator
|
|
873
1103
|
* @export
|
|
@@ -974,36 +1204,6 @@ exports.CategoryApi = CategoryApi;
|
|
|
974
1204
|
*/
|
|
975
1205
|
const ClientApiAxiosParamCreator = function (configuration) {
|
|
976
1206
|
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
1207
|
/**
|
|
1008
1208
|
* Create a new client
|
|
1009
1209
|
* @summary Create client
|
|
@@ -1166,19 +1366,6 @@ exports.ClientApiAxiosParamCreator = ClientApiAxiosParamCreator;
|
|
|
1166
1366
|
const ClientApiFp = function (configuration) {
|
|
1167
1367
|
const localVarAxiosParamCreator = (0, exports.ClientApiAxiosParamCreator)(configuration);
|
|
1168
1368
|
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
1369
|
/**
|
|
1183
1370
|
* Create a new client
|
|
1184
1371
|
* @summary Create client
|
|
@@ -1246,16 +1433,6 @@ exports.ClientApiFp = ClientApiFp;
|
|
|
1246
1433
|
const ClientApiFactory = function (configuration, basePath, axios) {
|
|
1247
1434
|
const localVarFp = (0, exports.ClientApiFp)(configuration);
|
|
1248
1435
|
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
1436
|
/**
|
|
1260
1437
|
* Create a new client
|
|
1261
1438
|
* @summary Create client
|
|
@@ -1311,17 +1488,6 @@ exports.ClientApiFactory = ClientApiFactory;
|
|
|
1311
1488
|
* @extends {BaseAPI}
|
|
1312
1489
|
*/
|
|
1313
1490
|
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
1491
|
/**
|
|
1326
1492
|
* Create a new client
|
|
1327
1493
|
* @summary Create client
|
|
@@ -3102,36 +3268,6 @@ const ProductApiAxiosParamCreator = function (configuration) {
|
|
|
3102
3268
|
options: localVarRequestOptions,
|
|
3103
3269
|
};
|
|
3104
3270
|
}),
|
|
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
3271
|
/**
|
|
3136
3272
|
* Create a new product
|
|
3137
3273
|
* @summary Create a new product
|
|
@@ -3529,19 +3665,6 @@ const ProductApiFp = function (configuration) {
|
|
|
3529
3665
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
3530
3666
|
});
|
|
3531
3667
|
},
|
|
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
3668
|
/**
|
|
3546
3669
|
* Create a new product
|
|
3547
3670
|
* @summary Create a new product
|
|
@@ -3707,16 +3830,6 @@ const ProductApiFactory = function (configuration, basePath, axios) {
|
|
|
3707
3830
|
approveProduct(id, productRequestApprovalRequest, options) {
|
|
3708
3831
|
return localVarFp.approveProduct(id, productRequestApprovalRequest, options).then((request) => request(axios, basePath));
|
|
3709
3832
|
},
|
|
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
3833
|
/**
|
|
3721
3834
|
* Create a new product
|
|
3722
3835
|
* @summary Create a new product
|
|
@@ -3853,17 +3966,6 @@ class ProductApi extends base_1.BaseAPI {
|
|
|
3853
3966
|
approveProduct(id, productRequestApprovalRequest, options) {
|
|
3854
3967
|
return (0, exports.ProductApiFp)(this.configuration).approveProduct(id, productRequestApprovalRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3855
3968
|
}
|
|
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
3969
|
/**
|
|
3868
3970
|
* Create a new product
|
|
3869
3971
|
* @summary Create a new product
|