@seekora-ai/admin-api 1.1.60 → 1.1.62
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 +12 -2
- package/api.ts +596 -0
- package/dist/api.d.ts +336 -0
- package/dist/api.js +441 -0
- package/dist/esm/api.d.ts +336 -0
- package/dist/esm/api.js +441 -0
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.62.tgz +0 -0
- package/seekora-ai-admin-api-1.1.60.tgz +0 -0
package/dist/api.js
CHANGED
|
@@ -22950,6 +22950,38 @@ const OnboardingApiAxiosParamCreator = function (configuration) {
|
|
|
22950
22950
|
options: localVarRequestOptions,
|
|
22951
22951
|
};
|
|
22952
22952
|
}),
|
|
22953
|
+
/**
|
|
22954
|
+
* Proceeds with importing data after validation. Can import only valid records if proceedWithPartial is true.
|
|
22955
|
+
* @summary Proceed with import after validation
|
|
22956
|
+
* @param {DataTypesProceedWithImportRequest} dataTypesProceedWithImportRequest Proceed import request
|
|
22957
|
+
* @param {*} [options] Override http request option.
|
|
22958
|
+
* @throws {RequiredError}
|
|
22959
|
+
*/
|
|
22960
|
+
adminV1UsersOnboardingProceedImportPost: (dataTypesProceedWithImportRequest_1, ...args_1) => __awaiter(this, [dataTypesProceedWithImportRequest_1, ...args_1], void 0, function* (dataTypesProceedWithImportRequest, options = {}) {
|
|
22961
|
+
// verify required parameter 'dataTypesProceedWithImportRequest' is not null or undefined
|
|
22962
|
+
(0, common_1.assertParamExists)('adminV1UsersOnboardingProceedImportPost', 'dataTypesProceedWithImportRequest', dataTypesProceedWithImportRequest);
|
|
22963
|
+
const localVarPath = `/admin/v1/users/onboarding/proceed-import`;
|
|
22964
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
22965
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22966
|
+
let baseOptions;
|
|
22967
|
+
if (configuration) {
|
|
22968
|
+
baseOptions = configuration.baseOptions;
|
|
22969
|
+
}
|
|
22970
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
22971
|
+
const localVarHeaderParameter = {};
|
|
22972
|
+
const localVarQueryParameter = {};
|
|
22973
|
+
// authentication BearerAuth required
|
|
22974
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
22975
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
22976
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
22977
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22978
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
22979
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesProceedWithImportRequest, localVarRequestOptions, configuration);
|
|
22980
|
+
return {
|
|
22981
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
22982
|
+
options: localVarRequestOptions,
|
|
22983
|
+
};
|
|
22984
|
+
}),
|
|
22953
22985
|
/**
|
|
22954
22986
|
* Uploads a custom schema JSON file for onboarding and stores it into onboardingdata.customSchema
|
|
22955
22987
|
* @summary Upload custom schema JSON
|
|
@@ -23109,6 +23141,77 @@ const OnboardingApiAxiosParamCreator = function (configuration) {
|
|
|
23109
23141
|
options: localVarRequestOptions,
|
|
23110
23142
|
};
|
|
23111
23143
|
}),
|
|
23144
|
+
/**
|
|
23145
|
+
* Validates uploaded data file and returns validation results without importing. Use this to check for errors before proceeding with import.
|
|
23146
|
+
* @summary Validate uploaded data without importing
|
|
23147
|
+
* @param {File} file Data file (JSON or CSV)
|
|
23148
|
+
* @param {string} [type] Source type (csv_upload, json_upload). If not provided, will be inferred from file extension
|
|
23149
|
+
* @param {*} [options] Override http request option.
|
|
23150
|
+
* @throws {RequiredError}
|
|
23151
|
+
*/
|
|
23152
|
+
adminV1UsersOnboardingValidateDataPost: (file_1, type_1, ...args_1) => __awaiter(this, [file_1, type_1, ...args_1], void 0, function* (file, type, options = {}) {
|
|
23153
|
+
// verify required parameter 'file' is not null or undefined
|
|
23154
|
+
(0, common_1.assertParamExists)('adminV1UsersOnboardingValidateDataPost', 'file', file);
|
|
23155
|
+
const localVarPath = `/admin/v1/users/onboarding/validate-data`;
|
|
23156
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23157
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
23158
|
+
let baseOptions;
|
|
23159
|
+
if (configuration) {
|
|
23160
|
+
baseOptions = configuration.baseOptions;
|
|
23161
|
+
}
|
|
23162
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
23163
|
+
const localVarHeaderParameter = {};
|
|
23164
|
+
const localVarQueryParameter = {};
|
|
23165
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
23166
|
+
// authentication BearerAuth required
|
|
23167
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
23168
|
+
if (file !== undefined) {
|
|
23169
|
+
localVarFormParams.append('File', file);
|
|
23170
|
+
}
|
|
23171
|
+
if (type !== undefined) {
|
|
23172
|
+
localVarFormParams.append('Type', type);
|
|
23173
|
+
}
|
|
23174
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
23175
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
23176
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23177
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
23178
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
23179
|
+
return {
|
|
23180
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
23181
|
+
options: localVarRequestOptions,
|
|
23182
|
+
};
|
|
23183
|
+
}),
|
|
23184
|
+
/**
|
|
23185
|
+
* Retrieves validation status and results for a validation job. Poll this endpoint to check if validation is complete.
|
|
23186
|
+
* @summary Get validation status and results
|
|
23187
|
+
* @param {string} validationJobId Validation Job ID
|
|
23188
|
+
* @param {*} [options] Override http request option.
|
|
23189
|
+
* @throws {RequiredError}
|
|
23190
|
+
*/
|
|
23191
|
+
adminV1UsersOnboardingValidationStatusValidationJobIdGet: (validationJobId_1, ...args_1) => __awaiter(this, [validationJobId_1, ...args_1], void 0, function* (validationJobId, options = {}) {
|
|
23192
|
+
// verify required parameter 'validationJobId' is not null or undefined
|
|
23193
|
+
(0, common_1.assertParamExists)('adminV1UsersOnboardingValidationStatusValidationJobIdGet', 'validationJobId', validationJobId);
|
|
23194
|
+
const localVarPath = `/admin/v1/users/onboarding/validation-status/{validationJobId}`
|
|
23195
|
+
.replace(`{${"validationJobId"}}`, encodeURIComponent(String(validationJobId)));
|
|
23196
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23197
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
23198
|
+
let baseOptions;
|
|
23199
|
+
if (configuration) {
|
|
23200
|
+
baseOptions = configuration.baseOptions;
|
|
23201
|
+
}
|
|
23202
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
23203
|
+
const localVarHeaderParameter = {};
|
|
23204
|
+
const localVarQueryParameter = {};
|
|
23205
|
+
// authentication BearerAuth required
|
|
23206
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
23207
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
23208
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23209
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
23210
|
+
return {
|
|
23211
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
23212
|
+
options: localVarRequestOptions,
|
|
23213
|
+
};
|
|
23214
|
+
}),
|
|
23112
23215
|
/**
|
|
23113
23216
|
* Get sample datasets
|
|
23114
23217
|
* @summary Get sample datasets
|
|
@@ -23209,6 +23312,22 @@ const OnboardingApiFp = function (configuration) {
|
|
|
23209
23312
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
23210
23313
|
});
|
|
23211
23314
|
},
|
|
23315
|
+
/**
|
|
23316
|
+
* Proceeds with importing data after validation. Can import only valid records if proceedWithPartial is true.
|
|
23317
|
+
* @summary Proceed with import after validation
|
|
23318
|
+
* @param {DataTypesProceedWithImportRequest} dataTypesProceedWithImportRequest Proceed import request
|
|
23319
|
+
* @param {*} [options] Override http request option.
|
|
23320
|
+
* @throws {RequiredError}
|
|
23321
|
+
*/
|
|
23322
|
+
adminV1UsersOnboardingProceedImportPost(dataTypesProceedWithImportRequest, options) {
|
|
23323
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23324
|
+
var _a, _b, _c;
|
|
23325
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1UsersOnboardingProceedImportPost(dataTypesProceedWithImportRequest, options);
|
|
23326
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
23327
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OnboardingApi.adminV1UsersOnboardingProceedImportPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
23328
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
23329
|
+
});
|
|
23330
|
+
},
|
|
23212
23331
|
/**
|
|
23213
23332
|
* Uploads a custom schema JSON file for onboarding and stores it into onboardingdata.customSchema
|
|
23214
23333
|
* @summary Upload custom schema JSON
|
|
@@ -23287,6 +23406,39 @@ const OnboardingApiFp = function (configuration) {
|
|
|
23287
23406
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
23288
23407
|
});
|
|
23289
23408
|
},
|
|
23409
|
+
/**
|
|
23410
|
+
* Validates uploaded data file and returns validation results without importing. Use this to check for errors before proceeding with import.
|
|
23411
|
+
* @summary Validate uploaded data without importing
|
|
23412
|
+
* @param {File} file Data file (JSON or CSV)
|
|
23413
|
+
* @param {string} [type] Source type (csv_upload, json_upload). If not provided, will be inferred from file extension
|
|
23414
|
+
* @param {*} [options] Override http request option.
|
|
23415
|
+
* @throws {RequiredError}
|
|
23416
|
+
*/
|
|
23417
|
+
adminV1UsersOnboardingValidateDataPost(file, type, options) {
|
|
23418
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23419
|
+
var _a, _b, _c;
|
|
23420
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1UsersOnboardingValidateDataPost(file, type, options);
|
|
23421
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
23422
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OnboardingApi.adminV1UsersOnboardingValidateDataPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
23423
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
23424
|
+
});
|
|
23425
|
+
},
|
|
23426
|
+
/**
|
|
23427
|
+
* Retrieves validation status and results for a validation job. Poll this endpoint to check if validation is complete.
|
|
23428
|
+
* @summary Get validation status and results
|
|
23429
|
+
* @param {string} validationJobId Validation Job ID
|
|
23430
|
+
* @param {*} [options] Override http request option.
|
|
23431
|
+
* @throws {RequiredError}
|
|
23432
|
+
*/
|
|
23433
|
+
adminV1UsersOnboardingValidationStatusValidationJobIdGet(validationJobId, options) {
|
|
23434
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23435
|
+
var _a, _b, _c;
|
|
23436
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1UsersOnboardingValidationStatusValidationJobIdGet(validationJobId, options);
|
|
23437
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
23438
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OnboardingApi.adminV1UsersOnboardingValidationStatusValidationJobIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
23439
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
23440
|
+
});
|
|
23441
|
+
},
|
|
23290
23442
|
/**
|
|
23291
23443
|
* Get sample datasets
|
|
23292
23444
|
* @summary Get sample datasets
|
|
@@ -23351,6 +23503,16 @@ const OnboardingApiFactory = function (configuration, basePath, axios) {
|
|
|
23351
23503
|
adminV1UsersOnboardingPost(dataTypesOnboardingRequest, options) {
|
|
23352
23504
|
return localVarFp.adminV1UsersOnboardingPost(dataTypesOnboardingRequest, options).then((request) => request(axios, basePath));
|
|
23353
23505
|
},
|
|
23506
|
+
/**
|
|
23507
|
+
* Proceeds with importing data after validation. Can import only valid records if proceedWithPartial is true.
|
|
23508
|
+
* @summary Proceed with import after validation
|
|
23509
|
+
* @param {DataTypesProceedWithImportRequest} dataTypesProceedWithImportRequest Proceed import request
|
|
23510
|
+
* @param {*} [options] Override http request option.
|
|
23511
|
+
* @throws {RequiredError}
|
|
23512
|
+
*/
|
|
23513
|
+
adminV1UsersOnboardingProceedImportPost(dataTypesProceedWithImportRequest, options) {
|
|
23514
|
+
return localVarFp.adminV1UsersOnboardingProceedImportPost(dataTypesProceedWithImportRequest, options).then((request) => request(axios, basePath));
|
|
23515
|
+
},
|
|
23354
23516
|
/**
|
|
23355
23517
|
* Uploads a custom schema JSON file for onboarding and stores it into onboardingdata.customSchema
|
|
23356
23518
|
* @summary Upload custom schema JSON
|
|
@@ -23399,6 +23561,27 @@ const OnboardingApiFactory = function (configuration, basePath, axios) {
|
|
|
23399
23561
|
adminV1UsersOnboardingUploaddataPost(file, options) {
|
|
23400
23562
|
return localVarFp.adminV1UsersOnboardingUploaddataPost(file, options).then((request) => request(axios, basePath));
|
|
23401
23563
|
},
|
|
23564
|
+
/**
|
|
23565
|
+
* Validates uploaded data file and returns validation results without importing. Use this to check for errors before proceeding with import.
|
|
23566
|
+
* @summary Validate uploaded data without importing
|
|
23567
|
+
* @param {File} file Data file (JSON or CSV)
|
|
23568
|
+
* @param {string} [type] Source type (csv_upload, json_upload). If not provided, will be inferred from file extension
|
|
23569
|
+
* @param {*} [options] Override http request option.
|
|
23570
|
+
* @throws {RequiredError}
|
|
23571
|
+
*/
|
|
23572
|
+
adminV1UsersOnboardingValidateDataPost(file, type, options) {
|
|
23573
|
+
return localVarFp.adminV1UsersOnboardingValidateDataPost(file, type, options).then((request) => request(axios, basePath));
|
|
23574
|
+
},
|
|
23575
|
+
/**
|
|
23576
|
+
* Retrieves validation status and results for a validation job. Poll this endpoint to check if validation is complete.
|
|
23577
|
+
* @summary Get validation status and results
|
|
23578
|
+
* @param {string} validationJobId Validation Job ID
|
|
23579
|
+
* @param {*} [options] Override http request option.
|
|
23580
|
+
* @throws {RequiredError}
|
|
23581
|
+
*/
|
|
23582
|
+
adminV1UsersOnboardingValidationStatusValidationJobIdGet(validationJobId, options) {
|
|
23583
|
+
return localVarFp.adminV1UsersOnboardingValidationStatusValidationJobIdGet(validationJobId, options).then((request) => request(axios, basePath));
|
|
23584
|
+
},
|
|
23402
23585
|
/**
|
|
23403
23586
|
* Get sample datasets
|
|
23404
23587
|
* @summary Get sample datasets
|
|
@@ -23461,6 +23644,17 @@ class OnboardingApi extends base_1.BaseAPI {
|
|
|
23461
23644
|
adminV1UsersOnboardingPost(dataTypesOnboardingRequest, options) {
|
|
23462
23645
|
return (0, exports.OnboardingApiFp)(this.configuration).adminV1UsersOnboardingPost(dataTypesOnboardingRequest, options).then((request) => request(this.axios, this.basePath));
|
|
23463
23646
|
}
|
|
23647
|
+
/**
|
|
23648
|
+
* Proceeds with importing data after validation. Can import only valid records if proceedWithPartial is true.
|
|
23649
|
+
* @summary Proceed with import after validation
|
|
23650
|
+
* @param {DataTypesProceedWithImportRequest} dataTypesProceedWithImportRequest Proceed import request
|
|
23651
|
+
* @param {*} [options] Override http request option.
|
|
23652
|
+
* @throws {RequiredError}
|
|
23653
|
+
* @memberof OnboardingApi
|
|
23654
|
+
*/
|
|
23655
|
+
adminV1UsersOnboardingProceedImportPost(dataTypesProceedWithImportRequest, options) {
|
|
23656
|
+
return (0, exports.OnboardingApiFp)(this.configuration).adminV1UsersOnboardingProceedImportPost(dataTypesProceedWithImportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
23657
|
+
}
|
|
23464
23658
|
/**
|
|
23465
23659
|
* Uploads a custom schema JSON file for onboarding and stores it into onboardingdata.customSchema
|
|
23466
23660
|
* @summary Upload custom schema JSON
|
|
@@ -23514,6 +23708,29 @@ class OnboardingApi extends base_1.BaseAPI {
|
|
|
23514
23708
|
adminV1UsersOnboardingUploaddataPost(file, options) {
|
|
23515
23709
|
return (0, exports.OnboardingApiFp)(this.configuration).adminV1UsersOnboardingUploaddataPost(file, options).then((request) => request(this.axios, this.basePath));
|
|
23516
23710
|
}
|
|
23711
|
+
/**
|
|
23712
|
+
* Validates uploaded data file and returns validation results without importing. Use this to check for errors before proceeding with import.
|
|
23713
|
+
* @summary Validate uploaded data without importing
|
|
23714
|
+
* @param {File} file Data file (JSON or CSV)
|
|
23715
|
+
* @param {string} [type] Source type (csv_upload, json_upload). If not provided, will be inferred from file extension
|
|
23716
|
+
* @param {*} [options] Override http request option.
|
|
23717
|
+
* @throws {RequiredError}
|
|
23718
|
+
* @memberof OnboardingApi
|
|
23719
|
+
*/
|
|
23720
|
+
adminV1UsersOnboardingValidateDataPost(file, type, options) {
|
|
23721
|
+
return (0, exports.OnboardingApiFp)(this.configuration).adminV1UsersOnboardingValidateDataPost(file, type, options).then((request) => request(this.axios, this.basePath));
|
|
23722
|
+
}
|
|
23723
|
+
/**
|
|
23724
|
+
* Retrieves validation status and results for a validation job. Poll this endpoint to check if validation is complete.
|
|
23725
|
+
* @summary Get validation status and results
|
|
23726
|
+
* @param {string} validationJobId Validation Job ID
|
|
23727
|
+
* @param {*} [options] Override http request option.
|
|
23728
|
+
* @throws {RequiredError}
|
|
23729
|
+
* @memberof OnboardingApi
|
|
23730
|
+
*/
|
|
23731
|
+
adminV1UsersOnboardingValidationStatusValidationJobIdGet(validationJobId, options) {
|
|
23732
|
+
return (0, exports.OnboardingApiFp)(this.configuration).adminV1UsersOnboardingValidationStatusValidationJobIdGet(validationJobId, options).then((request) => request(this.axios, this.basePath));
|
|
23733
|
+
}
|
|
23517
23734
|
/**
|
|
23518
23735
|
* Get sample datasets
|
|
23519
23736
|
* @summary Get sample datasets
|
|
@@ -34152,6 +34369,73 @@ const StoreCreationApiAxiosParamCreator = function (configuration) {
|
|
|
34152
34369
|
options: localVarRequestOptions,
|
|
34153
34370
|
};
|
|
34154
34371
|
}),
|
|
34372
|
+
/**
|
|
34373
|
+
* Retrieves validation status and results for a validation job. Poll this endpoint to check if validation is complete.
|
|
34374
|
+
* @summary Get validation status and results
|
|
34375
|
+
* @param {string} validationJobId Validation Job ID
|
|
34376
|
+
* @param {*} [options] Override http request option.
|
|
34377
|
+
* @throws {RequiredError}
|
|
34378
|
+
*/
|
|
34379
|
+
adminV1StoreCreationValidationStatusValidationJobIdGet: (validationJobId_1, ...args_1) => __awaiter(this, [validationJobId_1, ...args_1], void 0, function* (validationJobId, options = {}) {
|
|
34380
|
+
// verify required parameter 'validationJobId' is not null or undefined
|
|
34381
|
+
(0, common_1.assertParamExists)('adminV1StoreCreationValidationStatusValidationJobIdGet', 'validationJobId', validationJobId);
|
|
34382
|
+
const localVarPath = `/admin/v1/store-creation/validation-status/{validationJobId}`
|
|
34383
|
+
.replace(`{${"validationJobId"}}`, encodeURIComponent(String(validationJobId)));
|
|
34384
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34385
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
34386
|
+
let baseOptions;
|
|
34387
|
+
if (configuration) {
|
|
34388
|
+
baseOptions = configuration.baseOptions;
|
|
34389
|
+
}
|
|
34390
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
34391
|
+
const localVarHeaderParameter = {};
|
|
34392
|
+
const localVarQueryParameter = {};
|
|
34393
|
+
// authentication BearerAuth required
|
|
34394
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
34395
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
34396
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34397
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
34398
|
+
return {
|
|
34399
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
34400
|
+
options: localVarRequestOptions,
|
|
34401
|
+
};
|
|
34402
|
+
}),
|
|
34403
|
+
/**
|
|
34404
|
+
* Proceeds with importing data after validation. Can import only valid records if proceedWithPartial is true.
|
|
34405
|
+
* @summary Proceed with import after validation
|
|
34406
|
+
* @param {string} xstoreid Store XStoreID
|
|
34407
|
+
* @param {DataTypesProceedWithImportRequest} dataTypesProceedWithImportRequest Proceed import request
|
|
34408
|
+
* @param {*} [options] Override http request option.
|
|
34409
|
+
* @throws {RequiredError}
|
|
34410
|
+
*/
|
|
34411
|
+
adminV1StoreCreationXstoreidProceedImportPost: (xstoreid_1, dataTypesProceedWithImportRequest_1, ...args_1) => __awaiter(this, [xstoreid_1, dataTypesProceedWithImportRequest_1, ...args_1], void 0, function* (xstoreid, dataTypesProceedWithImportRequest, options = {}) {
|
|
34412
|
+
// verify required parameter 'xstoreid' is not null or undefined
|
|
34413
|
+
(0, common_1.assertParamExists)('adminV1StoreCreationXstoreidProceedImportPost', 'xstoreid', xstoreid);
|
|
34414
|
+
// verify required parameter 'dataTypesProceedWithImportRequest' is not null or undefined
|
|
34415
|
+
(0, common_1.assertParamExists)('adminV1StoreCreationXstoreidProceedImportPost', 'dataTypesProceedWithImportRequest', dataTypesProceedWithImportRequest);
|
|
34416
|
+
const localVarPath = `/admin/v1/store-creation/{xstoreid}/proceed-import`
|
|
34417
|
+
.replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)));
|
|
34418
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34419
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
34420
|
+
let baseOptions;
|
|
34421
|
+
if (configuration) {
|
|
34422
|
+
baseOptions = configuration.baseOptions;
|
|
34423
|
+
}
|
|
34424
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
34425
|
+
const localVarHeaderParameter = {};
|
|
34426
|
+
const localVarQueryParameter = {};
|
|
34427
|
+
// authentication BearerAuth required
|
|
34428
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
34429
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
34430
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
34431
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34432
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
34433
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesProceedWithImportRequest, localVarRequestOptions, configuration);
|
|
34434
|
+
return {
|
|
34435
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
34436
|
+
options: localVarRequestOptions,
|
|
34437
|
+
};
|
|
34438
|
+
}),
|
|
34155
34439
|
/**
|
|
34156
34440
|
* Deletes (soft delete) the store creation progress for a specific store using XStoreID from path parameter
|
|
34157
34441
|
* @summary Delete store creation progress by XStoreID
|
|
@@ -34290,6 +34574,46 @@ const StoreCreationApiAxiosParamCreator = function (configuration) {
|
|
|
34290
34574
|
options: localVarRequestOptions,
|
|
34291
34575
|
};
|
|
34292
34576
|
}),
|
|
34577
|
+
/**
|
|
34578
|
+
* Validates uploaded data file and returns validation results without importing. Use this to check for errors before proceeding with import.
|
|
34579
|
+
* @summary Validate uploaded data without importing
|
|
34580
|
+
* @param {string} xstoreid Store XStoreID
|
|
34581
|
+
* @param {File} file Data file (JSON or CSV)
|
|
34582
|
+
* @param {*} [options] Override http request option.
|
|
34583
|
+
* @throws {RequiredError}
|
|
34584
|
+
*/
|
|
34585
|
+
adminV1StoreCreationXstoreidValidateDataPost: (xstoreid_1, file_1, ...args_1) => __awaiter(this, [xstoreid_1, file_1, ...args_1], void 0, function* (xstoreid, file, options = {}) {
|
|
34586
|
+
// verify required parameter 'xstoreid' is not null or undefined
|
|
34587
|
+
(0, common_1.assertParamExists)('adminV1StoreCreationXstoreidValidateDataPost', 'xstoreid', xstoreid);
|
|
34588
|
+
// verify required parameter 'file' is not null or undefined
|
|
34589
|
+
(0, common_1.assertParamExists)('adminV1StoreCreationXstoreidValidateDataPost', 'file', file);
|
|
34590
|
+
const localVarPath = `/admin/v1/store-creation/{xstoreid}/validate-data`
|
|
34591
|
+
.replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)));
|
|
34592
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34593
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
34594
|
+
let baseOptions;
|
|
34595
|
+
if (configuration) {
|
|
34596
|
+
baseOptions = configuration.baseOptions;
|
|
34597
|
+
}
|
|
34598
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
34599
|
+
const localVarHeaderParameter = {};
|
|
34600
|
+
const localVarQueryParameter = {};
|
|
34601
|
+
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
34602
|
+
// authentication BearerAuth required
|
|
34603
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
34604
|
+
if (file !== undefined) {
|
|
34605
|
+
localVarFormParams.append('file', file);
|
|
34606
|
+
}
|
|
34607
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
34608
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
34609
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34610
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
34611
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
34612
|
+
return {
|
|
34613
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
34614
|
+
options: localVarRequestOptions,
|
|
34615
|
+
};
|
|
34616
|
+
}),
|
|
34293
34617
|
};
|
|
34294
34618
|
};
|
|
34295
34619
|
exports.StoreCreationApiAxiosParamCreator = StoreCreationApiAxiosParamCreator;
|
|
@@ -34378,6 +34702,39 @@ const StoreCreationApiFp = function (configuration) {
|
|
|
34378
34702
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34379
34703
|
});
|
|
34380
34704
|
},
|
|
34705
|
+
/**
|
|
34706
|
+
* Retrieves validation status and results for a validation job. Poll this endpoint to check if validation is complete.
|
|
34707
|
+
* @summary Get validation status and results
|
|
34708
|
+
* @param {string} validationJobId Validation Job ID
|
|
34709
|
+
* @param {*} [options] Override http request option.
|
|
34710
|
+
* @throws {RequiredError}
|
|
34711
|
+
*/
|
|
34712
|
+
adminV1StoreCreationValidationStatusValidationJobIdGet(validationJobId, options) {
|
|
34713
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34714
|
+
var _a, _b, _c;
|
|
34715
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoreCreationValidationStatusValidationJobIdGet(validationJobId, options);
|
|
34716
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
34717
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoreCreationApi.adminV1StoreCreationValidationStatusValidationJobIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
34718
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34719
|
+
});
|
|
34720
|
+
},
|
|
34721
|
+
/**
|
|
34722
|
+
* Proceeds with importing data after validation. Can import only valid records if proceedWithPartial is true.
|
|
34723
|
+
* @summary Proceed with import after validation
|
|
34724
|
+
* @param {string} xstoreid Store XStoreID
|
|
34725
|
+
* @param {DataTypesProceedWithImportRequest} dataTypesProceedWithImportRequest Proceed import request
|
|
34726
|
+
* @param {*} [options] Override http request option.
|
|
34727
|
+
* @throws {RequiredError}
|
|
34728
|
+
*/
|
|
34729
|
+
adminV1StoreCreationXstoreidProceedImportPost(xstoreid, dataTypesProceedWithImportRequest, options) {
|
|
34730
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34731
|
+
var _a, _b, _c;
|
|
34732
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoreCreationXstoreidProceedImportPost(xstoreid, dataTypesProceedWithImportRequest, options);
|
|
34733
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
34734
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoreCreationApi.adminV1StoreCreationXstoreidProceedImportPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
34735
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34736
|
+
});
|
|
34737
|
+
},
|
|
34381
34738
|
/**
|
|
34382
34739
|
* Deletes (soft delete) the store creation progress for a specific store using XStoreID from path parameter
|
|
34383
34740
|
* @summary Delete store creation progress by XStoreID
|
|
@@ -34444,6 +34801,23 @@ const StoreCreationApiFp = function (configuration) {
|
|
|
34444
34801
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34445
34802
|
});
|
|
34446
34803
|
},
|
|
34804
|
+
/**
|
|
34805
|
+
* Validates uploaded data file and returns validation results without importing. Use this to check for errors before proceeding with import.
|
|
34806
|
+
* @summary Validate uploaded data without importing
|
|
34807
|
+
* @param {string} xstoreid Store XStoreID
|
|
34808
|
+
* @param {File} file Data file (JSON or CSV)
|
|
34809
|
+
* @param {*} [options] Override http request option.
|
|
34810
|
+
* @throws {RequiredError}
|
|
34811
|
+
*/
|
|
34812
|
+
adminV1StoreCreationXstoreidValidateDataPost(xstoreid, file, options) {
|
|
34813
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34814
|
+
var _a, _b, _c;
|
|
34815
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoreCreationXstoreidValidateDataPost(xstoreid, file, options);
|
|
34816
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
34817
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoreCreationApi.adminV1StoreCreationXstoreidValidateDataPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
34818
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34819
|
+
});
|
|
34820
|
+
},
|
|
34447
34821
|
};
|
|
34448
34822
|
};
|
|
34449
34823
|
exports.StoreCreationApiFp = StoreCreationApiFp;
|
|
@@ -34502,6 +34876,27 @@ const StoreCreationApiFactory = function (configuration, basePath, axios) {
|
|
|
34502
34876
|
adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options) {
|
|
34503
34877
|
return localVarFp.adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options).then((request) => request(axios, basePath));
|
|
34504
34878
|
},
|
|
34879
|
+
/**
|
|
34880
|
+
* Retrieves validation status and results for a validation job. Poll this endpoint to check if validation is complete.
|
|
34881
|
+
* @summary Get validation status and results
|
|
34882
|
+
* @param {string} validationJobId Validation Job ID
|
|
34883
|
+
* @param {*} [options] Override http request option.
|
|
34884
|
+
* @throws {RequiredError}
|
|
34885
|
+
*/
|
|
34886
|
+
adminV1StoreCreationValidationStatusValidationJobIdGet(validationJobId, options) {
|
|
34887
|
+
return localVarFp.adminV1StoreCreationValidationStatusValidationJobIdGet(validationJobId, options).then((request) => request(axios, basePath));
|
|
34888
|
+
},
|
|
34889
|
+
/**
|
|
34890
|
+
* Proceeds with importing data after validation. Can import only valid records if proceedWithPartial is true.
|
|
34891
|
+
* @summary Proceed with import after validation
|
|
34892
|
+
* @param {string} xstoreid Store XStoreID
|
|
34893
|
+
* @param {DataTypesProceedWithImportRequest} dataTypesProceedWithImportRequest Proceed import request
|
|
34894
|
+
* @param {*} [options] Override http request option.
|
|
34895
|
+
* @throws {RequiredError}
|
|
34896
|
+
*/
|
|
34897
|
+
adminV1StoreCreationXstoreidProceedImportPost(xstoreid, dataTypesProceedWithImportRequest, options) {
|
|
34898
|
+
return localVarFp.adminV1StoreCreationXstoreidProceedImportPost(xstoreid, dataTypesProceedWithImportRequest, options).then((request) => request(axios, basePath));
|
|
34899
|
+
},
|
|
34505
34900
|
/**
|
|
34506
34901
|
* Deletes (soft delete) the store creation progress for a specific store using XStoreID from path parameter
|
|
34507
34902
|
* @summary Delete store creation progress by XStoreID
|
|
@@ -34544,6 +34939,17 @@ const StoreCreationApiFactory = function (configuration, basePath, axios) {
|
|
|
34544
34939
|
adminV1StoreCreationXstoreidUploadDataPost(xstoreid, file, options) {
|
|
34545
34940
|
return localVarFp.adminV1StoreCreationXstoreidUploadDataPost(xstoreid, file, options).then((request) => request(axios, basePath));
|
|
34546
34941
|
},
|
|
34942
|
+
/**
|
|
34943
|
+
* Validates uploaded data file and returns validation results without importing. Use this to check for errors before proceeding with import.
|
|
34944
|
+
* @summary Validate uploaded data without importing
|
|
34945
|
+
* @param {string} xstoreid Store XStoreID
|
|
34946
|
+
* @param {File} file Data file (JSON or CSV)
|
|
34947
|
+
* @param {*} [options] Override http request option.
|
|
34948
|
+
* @throws {RequiredError}
|
|
34949
|
+
*/
|
|
34950
|
+
adminV1StoreCreationXstoreidValidateDataPost(xstoreid, file, options) {
|
|
34951
|
+
return localVarFp.adminV1StoreCreationXstoreidValidateDataPost(xstoreid, file, options).then((request) => request(axios, basePath));
|
|
34952
|
+
},
|
|
34547
34953
|
};
|
|
34548
34954
|
};
|
|
34549
34955
|
exports.StoreCreationApiFactory = StoreCreationApiFactory;
|
|
@@ -34607,6 +35013,29 @@ class StoreCreationApi extends base_1.BaseAPI {
|
|
|
34607
35013
|
adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options) {
|
|
34608
35014
|
return (0, exports.StoreCreationApiFp)(this.configuration).adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
34609
35015
|
}
|
|
35016
|
+
/**
|
|
35017
|
+
* Retrieves validation status and results for a validation job. Poll this endpoint to check if validation is complete.
|
|
35018
|
+
* @summary Get validation status and results
|
|
35019
|
+
* @param {string} validationJobId Validation Job ID
|
|
35020
|
+
* @param {*} [options] Override http request option.
|
|
35021
|
+
* @throws {RequiredError}
|
|
35022
|
+
* @memberof StoreCreationApi
|
|
35023
|
+
*/
|
|
35024
|
+
adminV1StoreCreationValidationStatusValidationJobIdGet(validationJobId, options) {
|
|
35025
|
+
return (0, exports.StoreCreationApiFp)(this.configuration).adminV1StoreCreationValidationStatusValidationJobIdGet(validationJobId, options).then((request) => request(this.axios, this.basePath));
|
|
35026
|
+
}
|
|
35027
|
+
/**
|
|
35028
|
+
* Proceeds with importing data after validation. Can import only valid records if proceedWithPartial is true.
|
|
35029
|
+
* @summary Proceed with import after validation
|
|
35030
|
+
* @param {string} xstoreid Store XStoreID
|
|
35031
|
+
* @param {DataTypesProceedWithImportRequest} dataTypesProceedWithImportRequest Proceed import request
|
|
35032
|
+
* @param {*} [options] Override http request option.
|
|
35033
|
+
* @throws {RequiredError}
|
|
35034
|
+
* @memberof StoreCreationApi
|
|
35035
|
+
*/
|
|
35036
|
+
adminV1StoreCreationXstoreidProceedImportPost(xstoreid, dataTypesProceedWithImportRequest, options) {
|
|
35037
|
+
return (0, exports.StoreCreationApiFp)(this.configuration).adminV1StoreCreationXstoreidProceedImportPost(xstoreid, dataTypesProceedWithImportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
35038
|
+
}
|
|
34610
35039
|
/**
|
|
34611
35040
|
* Deletes (soft delete) the store creation progress for a specific store using XStoreID from path parameter
|
|
34612
35041
|
* @summary Delete store creation progress by XStoreID
|
|
@@ -34653,6 +35082,18 @@ class StoreCreationApi extends base_1.BaseAPI {
|
|
|
34653
35082
|
adminV1StoreCreationXstoreidUploadDataPost(xstoreid, file, options) {
|
|
34654
35083
|
return (0, exports.StoreCreationApiFp)(this.configuration).adminV1StoreCreationXstoreidUploadDataPost(xstoreid, file, options).then((request) => request(this.axios, this.basePath));
|
|
34655
35084
|
}
|
|
35085
|
+
/**
|
|
35086
|
+
* Validates uploaded data file and returns validation results without importing. Use this to check for errors before proceeding with import.
|
|
35087
|
+
* @summary Validate uploaded data without importing
|
|
35088
|
+
* @param {string} xstoreid Store XStoreID
|
|
35089
|
+
* @param {File} file Data file (JSON or CSV)
|
|
35090
|
+
* @param {*} [options] Override http request option.
|
|
35091
|
+
* @throws {RequiredError}
|
|
35092
|
+
* @memberof StoreCreationApi
|
|
35093
|
+
*/
|
|
35094
|
+
adminV1StoreCreationXstoreidValidateDataPost(xstoreid, file, options) {
|
|
35095
|
+
return (0, exports.StoreCreationApiFp)(this.configuration).adminV1StoreCreationXstoreidValidateDataPost(xstoreid, file, options).then((request) => request(this.axios, this.basePath));
|
|
35096
|
+
}
|
|
34656
35097
|
}
|
|
34657
35098
|
exports.StoreCreationApi = StoreCreationApi;
|
|
34658
35099
|
/**
|