@seekora-ai/admin-api 1.0.92 → 1.0.94
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 +32 -3
- package/api.ts +1575 -105
- package/dist/api.d.ts +1085 -70
- package/dist/api.js +818 -26
- package/dist/esm/api.d.ts +1085 -70
- package/dist/esm/api.js +818 -26
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.0.94.tgz +0 -0
- package/seekora-ai-admin-api-1.0.92.tgz +0 -0
package/dist/api.js
CHANGED
|
@@ -7369,6 +7369,213 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7369
7369
|
options: localVarRequestOptions,
|
|
7370
7370
|
};
|
|
7371
7371
|
}),
|
|
7372
|
+
/**
|
|
7373
|
+
* Automatically generates invoices for all completed payments without invoices
|
|
7374
|
+
* @summary Auto-generate invoices
|
|
7375
|
+
* @param {*} [options] Override http request option.
|
|
7376
|
+
* @throws {RequiredError}
|
|
7377
|
+
*/
|
|
7378
|
+
adminBillingInvoicesAutoGeneratePost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7379
|
+
const localVarPath = `/admin/billing/invoices/auto-generate`;
|
|
7380
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7381
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7382
|
+
let baseOptions;
|
|
7383
|
+
if (configuration) {
|
|
7384
|
+
baseOptions = configuration.baseOptions;
|
|
7385
|
+
}
|
|
7386
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7387
|
+
const localVarHeaderParameter = {};
|
|
7388
|
+
const localVarQueryParameter = {};
|
|
7389
|
+
// authentication BearerAuth required
|
|
7390
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7391
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7392
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7393
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7394
|
+
return {
|
|
7395
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7396
|
+
options: localVarRequestOptions,
|
|
7397
|
+
};
|
|
7398
|
+
}),
|
|
7399
|
+
/**
|
|
7400
|
+
* Generates an invoice automatically from a completed payment
|
|
7401
|
+
* @summary Generate invoice from payment
|
|
7402
|
+
* @param {number} paymentId Payment ID
|
|
7403
|
+
* @param {*} [options] Override http request option.
|
|
7404
|
+
* @throws {RequiredError}
|
|
7405
|
+
*/
|
|
7406
|
+
adminBillingInvoicesGeneratePaymentIdPost: (paymentId_1, ...args_1) => __awaiter(this, [paymentId_1, ...args_1], void 0, function* (paymentId, options = {}) {
|
|
7407
|
+
// verify required parameter 'paymentId' is not null or undefined
|
|
7408
|
+
(0, common_1.assertParamExists)('adminBillingInvoicesGeneratePaymentIdPost', 'paymentId', paymentId);
|
|
7409
|
+
const localVarPath = `/admin/billing/invoices/generate/{paymentId}`
|
|
7410
|
+
.replace(`{${"paymentId"}}`, encodeURIComponent(String(paymentId)));
|
|
7411
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7412
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7413
|
+
let baseOptions;
|
|
7414
|
+
if (configuration) {
|
|
7415
|
+
baseOptions = configuration.baseOptions;
|
|
7416
|
+
}
|
|
7417
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7418
|
+
const localVarHeaderParameter = {};
|
|
7419
|
+
const localVarQueryParameter = {};
|
|
7420
|
+
// authentication BearerAuth required
|
|
7421
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7422
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7423
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7424
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7425
|
+
return {
|
|
7426
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7427
|
+
options: localVarRequestOptions,
|
|
7428
|
+
};
|
|
7429
|
+
}),
|
|
7430
|
+
/**
|
|
7431
|
+
* Retrieves invoices with filtering options
|
|
7432
|
+
* @summary Get invoices
|
|
7433
|
+
* @param {number} [orgId] Organization ID
|
|
7434
|
+
* @param {string} [status] Invoice status
|
|
7435
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
7436
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
7437
|
+
* @param {number} [page] Page number (default: 1)
|
|
7438
|
+
* @param {number} [limit] Number of results per page (default: 20, max: 100)
|
|
7439
|
+
* @param {*} [options] Override http request option.
|
|
7440
|
+
* @throws {RequiredError}
|
|
7441
|
+
*/
|
|
7442
|
+
adminBillingInvoicesGet: (orgId_1, status_1, startDate_1, endDate_1, page_1, limit_1, ...args_1) => __awaiter(this, [orgId_1, status_1, startDate_1, endDate_1, page_1, limit_1, ...args_1], void 0, function* (orgId, status, startDate, endDate, page, limit, options = {}) {
|
|
7443
|
+
const localVarPath = `/admin/billing/invoices`;
|
|
7444
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7445
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7446
|
+
let baseOptions;
|
|
7447
|
+
if (configuration) {
|
|
7448
|
+
baseOptions = configuration.baseOptions;
|
|
7449
|
+
}
|
|
7450
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7451
|
+
const localVarHeaderParameter = {};
|
|
7452
|
+
const localVarQueryParameter = {};
|
|
7453
|
+
// authentication BearerAuth required
|
|
7454
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7455
|
+
if (orgId !== undefined) {
|
|
7456
|
+
localVarQueryParameter['org_id'] = orgId;
|
|
7457
|
+
}
|
|
7458
|
+
if (status !== undefined) {
|
|
7459
|
+
localVarQueryParameter['status'] = status;
|
|
7460
|
+
}
|
|
7461
|
+
if (startDate !== undefined) {
|
|
7462
|
+
localVarQueryParameter['start_date'] = startDate;
|
|
7463
|
+
}
|
|
7464
|
+
if (endDate !== undefined) {
|
|
7465
|
+
localVarQueryParameter['end_date'] = endDate;
|
|
7466
|
+
}
|
|
7467
|
+
if (page !== undefined) {
|
|
7468
|
+
localVarQueryParameter['page'] = page;
|
|
7469
|
+
}
|
|
7470
|
+
if (limit !== undefined) {
|
|
7471
|
+
localVarQueryParameter['limit'] = limit;
|
|
7472
|
+
}
|
|
7473
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7474
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7475
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7476
|
+
return {
|
|
7477
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7478
|
+
options: localVarRequestOptions,
|
|
7479
|
+
};
|
|
7480
|
+
}),
|
|
7481
|
+
/**
|
|
7482
|
+
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
7483
|
+
* @summary Delete invoice
|
|
7484
|
+
* @param {string} id Invoice ID
|
|
7485
|
+
* @param {*} [options] Override http request option.
|
|
7486
|
+
* @throws {RequiredError}
|
|
7487
|
+
*/
|
|
7488
|
+
adminBillingInvoicesIdDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
7489
|
+
// verify required parameter 'id' is not null or undefined
|
|
7490
|
+
(0, common_1.assertParamExists)('adminBillingInvoicesIdDelete', 'id', id);
|
|
7491
|
+
const localVarPath = `/admin/billing/invoices/{id}`
|
|
7492
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7493
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7494
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7495
|
+
let baseOptions;
|
|
7496
|
+
if (configuration) {
|
|
7497
|
+
baseOptions = configuration.baseOptions;
|
|
7498
|
+
}
|
|
7499
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
7500
|
+
const localVarHeaderParameter = {};
|
|
7501
|
+
const localVarQueryParameter = {};
|
|
7502
|
+
// authentication BearerAuth required
|
|
7503
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7504
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7505
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7506
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7507
|
+
return {
|
|
7508
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7509
|
+
options: localVarRequestOptions,
|
|
7510
|
+
};
|
|
7511
|
+
}),
|
|
7512
|
+
/**
|
|
7513
|
+
* Retrieves a single invoice by ID
|
|
7514
|
+
* @summary Get invoice
|
|
7515
|
+
* @param {string} id Invoice ID
|
|
7516
|
+
* @param {*} [options] Override http request option.
|
|
7517
|
+
* @throws {RequiredError}
|
|
7518
|
+
*/
|
|
7519
|
+
adminBillingInvoicesIdGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
7520
|
+
// verify required parameter 'id' is not null or undefined
|
|
7521
|
+
(0, common_1.assertParamExists)('adminBillingInvoicesIdGet', 'id', id);
|
|
7522
|
+
const localVarPath = `/admin/billing/invoices/{id}`
|
|
7523
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7524
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7525
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7526
|
+
let baseOptions;
|
|
7527
|
+
if (configuration) {
|
|
7528
|
+
baseOptions = configuration.baseOptions;
|
|
7529
|
+
}
|
|
7530
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7531
|
+
const localVarHeaderParameter = {};
|
|
7532
|
+
const localVarQueryParameter = {};
|
|
7533
|
+
// authentication BearerAuth required
|
|
7534
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7535
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7536
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7537
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7538
|
+
return {
|
|
7539
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7540
|
+
options: localVarRequestOptions,
|
|
7541
|
+
};
|
|
7542
|
+
}),
|
|
7543
|
+
/**
|
|
7544
|
+
* Updates an existing invoice
|
|
7545
|
+
* @summary Update invoice
|
|
7546
|
+
* @param {string} id Invoice ID
|
|
7547
|
+
* @param {DataTypesUpdateInvoiceRequest} dataTypesUpdateInvoiceRequest Updated invoice data
|
|
7548
|
+
* @param {*} [options] Override http request option.
|
|
7549
|
+
* @throws {RequiredError}
|
|
7550
|
+
*/
|
|
7551
|
+
adminBillingInvoicesIdPut: (id_1, dataTypesUpdateInvoiceRequest_1, ...args_1) => __awaiter(this, [id_1, dataTypesUpdateInvoiceRequest_1, ...args_1], void 0, function* (id, dataTypesUpdateInvoiceRequest, options = {}) {
|
|
7552
|
+
// verify required parameter 'id' is not null or undefined
|
|
7553
|
+
(0, common_1.assertParamExists)('adminBillingInvoicesIdPut', 'id', id);
|
|
7554
|
+
// verify required parameter 'dataTypesUpdateInvoiceRequest' is not null or undefined
|
|
7555
|
+
(0, common_1.assertParamExists)('adminBillingInvoicesIdPut', 'dataTypesUpdateInvoiceRequest', dataTypesUpdateInvoiceRequest);
|
|
7556
|
+
const localVarPath = `/admin/billing/invoices/{id}`
|
|
7557
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7558
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7559
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7560
|
+
let baseOptions;
|
|
7561
|
+
if (configuration) {
|
|
7562
|
+
baseOptions = configuration.baseOptions;
|
|
7563
|
+
}
|
|
7564
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
7565
|
+
const localVarHeaderParameter = {};
|
|
7566
|
+
const localVarQueryParameter = {};
|
|
7567
|
+
// authentication BearerAuth required
|
|
7568
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7569
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7570
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7571
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7572
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7573
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesUpdateInvoiceRequest, localVarRequestOptions, configuration);
|
|
7574
|
+
return {
|
|
7575
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7576
|
+
options: localVarRequestOptions,
|
|
7577
|
+
};
|
|
7578
|
+
}),
|
|
7372
7579
|
/**
|
|
7373
7580
|
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization
|
|
7374
7581
|
* @summary Get orders
|
|
@@ -7529,6 +7736,33 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7529
7736
|
options: localVarRequestOptions,
|
|
7530
7737
|
};
|
|
7531
7738
|
}),
|
|
7739
|
+
/**
|
|
7740
|
+
* Returns comprehensive billing overview with credit balance, plan info, and usage summary
|
|
7741
|
+
* @summary Get billing overview (new)
|
|
7742
|
+
* @param {*} [options] Override http request option.
|
|
7743
|
+
* @throws {RequiredError}
|
|
7744
|
+
*/
|
|
7745
|
+
adminBillingOverviewNewGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7746
|
+
const localVarPath = `/admin/billing/overview-new`;
|
|
7747
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7748
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7749
|
+
let baseOptions;
|
|
7750
|
+
if (configuration) {
|
|
7751
|
+
baseOptions = configuration.baseOptions;
|
|
7752
|
+
}
|
|
7753
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7754
|
+
const localVarHeaderParameter = {};
|
|
7755
|
+
const localVarQueryParameter = {};
|
|
7756
|
+
// authentication BearerAuth required
|
|
7757
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7758
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7759
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7760
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7761
|
+
return {
|
|
7762
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7763
|
+
options: localVarRequestOptions,
|
|
7764
|
+
};
|
|
7765
|
+
}),
|
|
7532
7766
|
/**
|
|
7533
7767
|
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
7534
7768
|
* @summary Get payment transactions
|
|
@@ -7603,6 +7837,41 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7603
7837
|
options: localVarRequestOptions,
|
|
7604
7838
|
};
|
|
7605
7839
|
}),
|
|
7840
|
+
/**
|
|
7841
|
+
* Returns detailed usage information with charts and breakdown
|
|
7842
|
+
* @summary Get usage details
|
|
7843
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
7844
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
7845
|
+
* @param {*} [options] Override http request option.
|
|
7846
|
+
* @throws {RequiredError}
|
|
7847
|
+
*/
|
|
7848
|
+
adminBillingUsageDetailsGet: (startDate_1, endDate_1, ...args_1) => __awaiter(this, [startDate_1, endDate_1, ...args_1], void 0, function* (startDate, endDate, options = {}) {
|
|
7849
|
+
const localVarPath = `/admin/billing/usage-details`;
|
|
7850
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7851
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7852
|
+
let baseOptions;
|
|
7853
|
+
if (configuration) {
|
|
7854
|
+
baseOptions = configuration.baseOptions;
|
|
7855
|
+
}
|
|
7856
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7857
|
+
const localVarHeaderParameter = {};
|
|
7858
|
+
const localVarQueryParameter = {};
|
|
7859
|
+
// authentication BearerAuth required
|
|
7860
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7861
|
+
if (startDate !== undefined) {
|
|
7862
|
+
localVarQueryParameter['start_date'] = startDate;
|
|
7863
|
+
}
|
|
7864
|
+
if (endDate !== undefined) {
|
|
7865
|
+
localVarQueryParameter['end_date'] = endDate;
|
|
7866
|
+
}
|
|
7867
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7868
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7869
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7870
|
+
return {
|
|
7871
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7872
|
+
options: localVarRequestOptions,
|
|
7873
|
+
};
|
|
7874
|
+
}),
|
|
7606
7875
|
};
|
|
7607
7876
|
};
|
|
7608
7877
|
exports.BillingDashboardApiAxiosParamCreator = BillingDashboardApiAxiosParamCreator;
|
|
@@ -7759,6 +8028,107 @@ const BillingDashboardApiFp = function (configuration) {
|
|
|
7759
8028
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7760
8029
|
});
|
|
7761
8030
|
},
|
|
8031
|
+
/**
|
|
8032
|
+
* Automatically generates invoices for all completed payments without invoices
|
|
8033
|
+
* @summary Auto-generate invoices
|
|
8034
|
+
* @param {*} [options] Override http request option.
|
|
8035
|
+
* @throws {RequiredError}
|
|
8036
|
+
*/
|
|
8037
|
+
adminBillingInvoicesAutoGeneratePost(options) {
|
|
8038
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8039
|
+
var _a, _b, _c;
|
|
8040
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesAutoGeneratePost(options);
|
|
8041
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8042
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingInvoicesAutoGeneratePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8043
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8044
|
+
});
|
|
8045
|
+
},
|
|
8046
|
+
/**
|
|
8047
|
+
* Generates an invoice automatically from a completed payment
|
|
8048
|
+
* @summary Generate invoice from payment
|
|
8049
|
+
* @param {number} paymentId Payment ID
|
|
8050
|
+
* @param {*} [options] Override http request option.
|
|
8051
|
+
* @throws {RequiredError}
|
|
8052
|
+
*/
|
|
8053
|
+
adminBillingInvoicesGeneratePaymentIdPost(paymentId, options) {
|
|
8054
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8055
|
+
var _a, _b, _c;
|
|
8056
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGeneratePaymentIdPost(paymentId, options);
|
|
8057
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8058
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingInvoicesGeneratePaymentIdPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8059
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8060
|
+
});
|
|
8061
|
+
},
|
|
8062
|
+
/**
|
|
8063
|
+
* Retrieves invoices with filtering options
|
|
8064
|
+
* @summary Get invoices
|
|
8065
|
+
* @param {number} [orgId] Organization ID
|
|
8066
|
+
* @param {string} [status] Invoice status
|
|
8067
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8068
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8069
|
+
* @param {number} [page] Page number (default: 1)
|
|
8070
|
+
* @param {number} [limit] Number of results per page (default: 20, max: 100)
|
|
8071
|
+
* @param {*} [options] Override http request option.
|
|
8072
|
+
* @throws {RequiredError}
|
|
8073
|
+
*/
|
|
8074
|
+
adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options) {
|
|
8075
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8076
|
+
var _a, _b, _c;
|
|
8077
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options);
|
|
8078
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8079
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingInvoicesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8080
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8081
|
+
});
|
|
8082
|
+
},
|
|
8083
|
+
/**
|
|
8084
|
+
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
8085
|
+
* @summary Delete invoice
|
|
8086
|
+
* @param {string} id Invoice ID
|
|
8087
|
+
* @param {*} [options] Override http request option.
|
|
8088
|
+
* @throws {RequiredError}
|
|
8089
|
+
*/
|
|
8090
|
+
adminBillingInvoicesIdDelete(id, options) {
|
|
8091
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8092
|
+
var _a, _b, _c;
|
|
8093
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesIdDelete(id, options);
|
|
8094
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8095
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingInvoicesIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8096
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8097
|
+
});
|
|
8098
|
+
},
|
|
8099
|
+
/**
|
|
8100
|
+
* Retrieves a single invoice by ID
|
|
8101
|
+
* @summary Get invoice
|
|
8102
|
+
* @param {string} id Invoice ID
|
|
8103
|
+
* @param {*} [options] Override http request option.
|
|
8104
|
+
* @throws {RequiredError}
|
|
8105
|
+
*/
|
|
8106
|
+
adminBillingInvoicesIdGet(id, options) {
|
|
8107
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8108
|
+
var _a, _b, _c;
|
|
8109
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesIdGet(id, options);
|
|
8110
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8111
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingInvoicesIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8112
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8113
|
+
});
|
|
8114
|
+
},
|
|
8115
|
+
/**
|
|
8116
|
+
* Updates an existing invoice
|
|
8117
|
+
* @summary Update invoice
|
|
8118
|
+
* @param {string} id Invoice ID
|
|
8119
|
+
* @param {DataTypesUpdateInvoiceRequest} dataTypesUpdateInvoiceRequest Updated invoice data
|
|
8120
|
+
* @param {*} [options] Override http request option.
|
|
8121
|
+
* @throws {RequiredError}
|
|
8122
|
+
*/
|
|
8123
|
+
adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options) {
|
|
8124
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8125
|
+
var _a, _b, _c;
|
|
8126
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options);
|
|
8127
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8128
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingInvoicesIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8129
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8130
|
+
});
|
|
8131
|
+
},
|
|
7762
8132
|
/**
|
|
7763
8133
|
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization
|
|
7764
8134
|
* @summary Get orders
|
|
@@ -7832,6 +8202,21 @@ const BillingDashboardApiFp = function (configuration) {
|
|
|
7832
8202
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7833
8203
|
});
|
|
7834
8204
|
},
|
|
8205
|
+
/**
|
|
8206
|
+
* Returns comprehensive billing overview with credit balance, plan info, and usage summary
|
|
8207
|
+
* @summary Get billing overview (new)
|
|
8208
|
+
* @param {*} [options] Override http request option.
|
|
8209
|
+
* @throws {RequiredError}
|
|
8210
|
+
*/
|
|
8211
|
+
adminBillingOverviewNewGet(options) {
|
|
8212
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8213
|
+
var _a, _b, _c;
|
|
8214
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingOverviewNewGet(options);
|
|
8215
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8216
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingOverviewNewGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8217
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8218
|
+
});
|
|
8219
|
+
},
|
|
7835
8220
|
/**
|
|
7836
8221
|
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
7837
8222
|
* @summary Get payment transactions
|
|
@@ -7863,7 +8248,24 @@ const BillingDashboardApiFp = function (configuration) {
|
|
|
7863
8248
|
var _a, _b, _c;
|
|
7864
8249
|
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingSavedCardsGet(options);
|
|
7865
8250
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7866
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingSavedCardsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8251
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingSavedCardsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
8252
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8253
|
+
});
|
|
8254
|
+
},
|
|
8255
|
+
/**
|
|
8256
|
+
* Returns detailed usage information with charts and breakdown
|
|
8257
|
+
* @summary Get usage details
|
|
8258
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8259
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8260
|
+
* @param {*} [options] Override http request option.
|
|
8261
|
+
* @throws {RequiredError}
|
|
8262
|
+
*/
|
|
8263
|
+
adminBillingUsageDetailsGet(startDate, endDate, options) {
|
|
8264
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8265
|
+
var _a, _b, _c;
|
|
8266
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingUsageDetailsGet(startDate, endDate, options);
|
|
8267
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
8268
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingUsageDetailsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7867
8269
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7868
8270
|
});
|
|
7869
8271
|
},
|
|
@@ -7975,6 +8377,71 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
7975
8377
|
adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
|
|
7976
8378
|
return localVarFp.adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
7977
8379
|
},
|
|
8380
|
+
/**
|
|
8381
|
+
* Automatically generates invoices for all completed payments without invoices
|
|
8382
|
+
* @summary Auto-generate invoices
|
|
8383
|
+
* @param {*} [options] Override http request option.
|
|
8384
|
+
* @throws {RequiredError}
|
|
8385
|
+
*/
|
|
8386
|
+
adminBillingInvoicesAutoGeneratePost(options) {
|
|
8387
|
+
return localVarFp.adminBillingInvoicesAutoGeneratePost(options).then((request) => request(axios, basePath));
|
|
8388
|
+
},
|
|
8389
|
+
/**
|
|
8390
|
+
* Generates an invoice automatically from a completed payment
|
|
8391
|
+
* @summary Generate invoice from payment
|
|
8392
|
+
* @param {number} paymentId Payment ID
|
|
8393
|
+
* @param {*} [options] Override http request option.
|
|
8394
|
+
* @throws {RequiredError}
|
|
8395
|
+
*/
|
|
8396
|
+
adminBillingInvoicesGeneratePaymentIdPost(paymentId, options) {
|
|
8397
|
+
return localVarFp.adminBillingInvoicesGeneratePaymentIdPost(paymentId, options).then((request) => request(axios, basePath));
|
|
8398
|
+
},
|
|
8399
|
+
/**
|
|
8400
|
+
* Retrieves invoices with filtering options
|
|
8401
|
+
* @summary Get invoices
|
|
8402
|
+
* @param {number} [orgId] Organization ID
|
|
8403
|
+
* @param {string} [status] Invoice status
|
|
8404
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8405
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8406
|
+
* @param {number} [page] Page number (default: 1)
|
|
8407
|
+
* @param {number} [limit] Number of results per page (default: 20, max: 100)
|
|
8408
|
+
* @param {*} [options] Override http request option.
|
|
8409
|
+
* @throws {RequiredError}
|
|
8410
|
+
*/
|
|
8411
|
+
adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options) {
|
|
8412
|
+
return localVarFp.adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options).then((request) => request(axios, basePath));
|
|
8413
|
+
},
|
|
8414
|
+
/**
|
|
8415
|
+
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
8416
|
+
* @summary Delete invoice
|
|
8417
|
+
* @param {string} id Invoice ID
|
|
8418
|
+
* @param {*} [options] Override http request option.
|
|
8419
|
+
* @throws {RequiredError}
|
|
8420
|
+
*/
|
|
8421
|
+
adminBillingInvoicesIdDelete(id, options) {
|
|
8422
|
+
return localVarFp.adminBillingInvoicesIdDelete(id, options).then((request) => request(axios, basePath));
|
|
8423
|
+
},
|
|
8424
|
+
/**
|
|
8425
|
+
* Retrieves a single invoice by ID
|
|
8426
|
+
* @summary Get invoice
|
|
8427
|
+
* @param {string} id Invoice ID
|
|
8428
|
+
* @param {*} [options] Override http request option.
|
|
8429
|
+
* @throws {RequiredError}
|
|
8430
|
+
*/
|
|
8431
|
+
adminBillingInvoicesIdGet(id, options) {
|
|
8432
|
+
return localVarFp.adminBillingInvoicesIdGet(id, options).then((request) => request(axios, basePath));
|
|
8433
|
+
},
|
|
8434
|
+
/**
|
|
8435
|
+
* Updates an existing invoice
|
|
8436
|
+
* @summary Update invoice
|
|
8437
|
+
* @param {string} id Invoice ID
|
|
8438
|
+
* @param {DataTypesUpdateInvoiceRequest} dataTypesUpdateInvoiceRequest Updated invoice data
|
|
8439
|
+
* @param {*} [options] Override http request option.
|
|
8440
|
+
* @throws {RequiredError}
|
|
8441
|
+
*/
|
|
8442
|
+
adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options) {
|
|
8443
|
+
return localVarFp.adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(axios, basePath));
|
|
8444
|
+
},
|
|
7978
8445
|
/**
|
|
7979
8446
|
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization
|
|
7980
8447
|
* @summary Get orders
|
|
@@ -8024,6 +8491,15 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
8024
8491
|
adminBillingOverviewGet(orgId, startDate, endDate, options) {
|
|
8025
8492
|
return localVarFp.adminBillingOverviewGet(orgId, startDate, endDate, options).then((request) => request(axios, basePath));
|
|
8026
8493
|
},
|
|
8494
|
+
/**
|
|
8495
|
+
* Returns comprehensive billing overview with credit balance, plan info, and usage summary
|
|
8496
|
+
* @summary Get billing overview (new)
|
|
8497
|
+
* @param {*} [options] Override http request option.
|
|
8498
|
+
* @throws {RequiredError}
|
|
8499
|
+
*/
|
|
8500
|
+
adminBillingOverviewNewGet(options) {
|
|
8501
|
+
return localVarFp.adminBillingOverviewNewGet(options).then((request) => request(axios, basePath));
|
|
8502
|
+
},
|
|
8027
8503
|
/**
|
|
8028
8504
|
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
8029
8505
|
* @summary Get payment transactions
|
|
@@ -8047,6 +8523,17 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
8047
8523
|
adminBillingSavedCardsGet(options) {
|
|
8048
8524
|
return localVarFp.adminBillingSavedCardsGet(options).then((request) => request(axios, basePath));
|
|
8049
8525
|
},
|
|
8526
|
+
/**
|
|
8527
|
+
* Returns detailed usage information with charts and breakdown
|
|
8528
|
+
* @summary Get usage details
|
|
8529
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8530
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8531
|
+
* @param {*} [options] Override http request option.
|
|
8532
|
+
* @throws {RequiredError}
|
|
8533
|
+
*/
|
|
8534
|
+
adminBillingUsageDetailsGet(startDate, endDate, options) {
|
|
8535
|
+
return localVarFp.adminBillingUsageDetailsGet(startDate, endDate, options).then((request) => request(axios, basePath));
|
|
8536
|
+
},
|
|
8050
8537
|
};
|
|
8051
8538
|
};
|
|
8052
8539
|
exports.BillingDashboardApiFactory = BillingDashboardApiFactory;
|
|
@@ -8163,6 +8650,77 @@ class BillingDashboardApi extends base_1.BaseAPI {
|
|
|
8163
8650
|
adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
|
|
8164
8651
|
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingCreditTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
8165
8652
|
}
|
|
8653
|
+
/**
|
|
8654
|
+
* Automatically generates invoices for all completed payments without invoices
|
|
8655
|
+
* @summary Auto-generate invoices
|
|
8656
|
+
* @param {*} [options] Override http request option.
|
|
8657
|
+
* @throws {RequiredError}
|
|
8658
|
+
* @memberof BillingDashboardApi
|
|
8659
|
+
*/
|
|
8660
|
+
adminBillingInvoicesAutoGeneratePost(options) {
|
|
8661
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesAutoGeneratePost(options).then((request) => request(this.axios, this.basePath));
|
|
8662
|
+
}
|
|
8663
|
+
/**
|
|
8664
|
+
* Generates an invoice automatically from a completed payment
|
|
8665
|
+
* @summary Generate invoice from payment
|
|
8666
|
+
* @param {number} paymentId Payment ID
|
|
8667
|
+
* @param {*} [options] Override http request option.
|
|
8668
|
+
* @throws {RequiredError}
|
|
8669
|
+
* @memberof BillingDashboardApi
|
|
8670
|
+
*/
|
|
8671
|
+
adminBillingInvoicesGeneratePaymentIdPost(paymentId, options) {
|
|
8672
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesGeneratePaymentIdPost(paymentId, options).then((request) => request(this.axios, this.basePath));
|
|
8673
|
+
}
|
|
8674
|
+
/**
|
|
8675
|
+
* Retrieves invoices with filtering options
|
|
8676
|
+
* @summary Get invoices
|
|
8677
|
+
* @param {number} [orgId] Organization ID
|
|
8678
|
+
* @param {string} [status] Invoice status
|
|
8679
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8680
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8681
|
+
* @param {number} [page] Page number (default: 1)
|
|
8682
|
+
* @param {number} [limit] Number of results per page (default: 20, max: 100)
|
|
8683
|
+
* @param {*} [options] Override http request option.
|
|
8684
|
+
* @throws {RequiredError}
|
|
8685
|
+
* @memberof BillingDashboardApi
|
|
8686
|
+
*/
|
|
8687
|
+
adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options) {
|
|
8688
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesGet(orgId, status, startDate, endDate, page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
8689
|
+
}
|
|
8690
|
+
/**
|
|
8691
|
+
* Deletes an invoice (soft delete by setting status to cancelled)
|
|
8692
|
+
* @summary Delete invoice
|
|
8693
|
+
* @param {string} id Invoice ID
|
|
8694
|
+
* @param {*} [options] Override http request option.
|
|
8695
|
+
* @throws {RequiredError}
|
|
8696
|
+
* @memberof BillingDashboardApi
|
|
8697
|
+
*/
|
|
8698
|
+
adminBillingInvoicesIdDelete(id, options) {
|
|
8699
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesIdDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
8700
|
+
}
|
|
8701
|
+
/**
|
|
8702
|
+
* Retrieves a single invoice by ID
|
|
8703
|
+
* @summary Get invoice
|
|
8704
|
+
* @param {string} id Invoice ID
|
|
8705
|
+
* @param {*} [options] Override http request option.
|
|
8706
|
+
* @throws {RequiredError}
|
|
8707
|
+
* @memberof BillingDashboardApi
|
|
8708
|
+
*/
|
|
8709
|
+
adminBillingInvoicesIdGet(id, options) {
|
|
8710
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
8711
|
+
}
|
|
8712
|
+
/**
|
|
8713
|
+
* Updates an existing invoice
|
|
8714
|
+
* @summary Update invoice
|
|
8715
|
+
* @param {string} id Invoice ID
|
|
8716
|
+
* @param {DataTypesUpdateInvoiceRequest} dataTypesUpdateInvoiceRequest Updated invoice data
|
|
8717
|
+
* @param {*} [options] Override http request option.
|
|
8718
|
+
* @throws {RequiredError}
|
|
8719
|
+
* @memberof BillingDashboardApi
|
|
8720
|
+
*/
|
|
8721
|
+
adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options) {
|
|
8722
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesIdPut(id, dataTypesUpdateInvoiceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8723
|
+
}
|
|
8166
8724
|
/**
|
|
8167
8725
|
* Retrieves paginated list of orders with filtering options for the authenticated user\'s organization
|
|
8168
8726
|
* @summary Get orders
|
|
@@ -8216,6 +8774,16 @@ class BillingDashboardApi extends base_1.BaseAPI {
|
|
|
8216
8774
|
adminBillingOverviewGet(orgId, startDate, endDate, options) {
|
|
8217
8775
|
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingOverviewGet(orgId, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
|
|
8218
8776
|
}
|
|
8777
|
+
/**
|
|
8778
|
+
* Returns comprehensive billing overview with credit balance, plan info, and usage summary
|
|
8779
|
+
* @summary Get billing overview (new)
|
|
8780
|
+
* @param {*} [options] Override http request option.
|
|
8781
|
+
* @throws {RequiredError}
|
|
8782
|
+
* @memberof BillingDashboardApi
|
|
8783
|
+
*/
|
|
8784
|
+
adminBillingOverviewNewGet(options) {
|
|
8785
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingOverviewNewGet(options).then((request) => request(this.axios, this.basePath));
|
|
8786
|
+
}
|
|
8219
8787
|
/**
|
|
8220
8788
|
* Retrieves paginated list of payment transactions with filtering options for the authenticated user\'s organization
|
|
8221
8789
|
* @summary Get payment transactions
|
|
@@ -8241,6 +8809,18 @@ class BillingDashboardApi extends base_1.BaseAPI {
|
|
|
8241
8809
|
adminBillingSavedCardsGet(options) {
|
|
8242
8810
|
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingSavedCardsGet(options).then((request) => request(this.axios, this.basePath));
|
|
8243
8811
|
}
|
|
8812
|
+
/**
|
|
8813
|
+
* Returns detailed usage information with charts and breakdown
|
|
8814
|
+
* @summary Get usage details
|
|
8815
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
8816
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
8817
|
+
* @param {*} [options] Override http request option.
|
|
8818
|
+
* @throws {RequiredError}
|
|
8819
|
+
* @memberof BillingDashboardApi
|
|
8820
|
+
*/
|
|
8821
|
+
adminBillingUsageDetailsGet(startDate, endDate, options) {
|
|
8822
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingUsageDetailsGet(startDate, endDate, options).then((request) => request(this.axios, this.basePath));
|
|
8823
|
+
}
|
|
8244
8824
|
}
|
|
8245
8825
|
exports.BillingDashboardApi = BillingDashboardApi;
|
|
8246
8826
|
/**
|
|
@@ -24994,7 +25574,7 @@ const StoreCreationApiAxiosParamCreator = function (configuration) {
|
|
|
24994
25574
|
};
|
|
24995
25575
|
}),
|
|
24996
25576
|
/**
|
|
24997
|
-
* Retrieves the current step and state of store creation for the user
|
|
25577
|
+
* Retrieves the current step and state of store creation for the user. This endpoint gets the most recent store creation progress. For specific store creation flows, use the path-based endpoint with xstoreid.
|
|
24998
25578
|
* @summary Get current store creation progress
|
|
24999
25579
|
* @param {*} [options] Override http request option.
|
|
25000
25580
|
* @throws {RequiredError}
|
|
@@ -25057,7 +25637,7 @@ const StoreCreationApiAxiosParamCreator = function (configuration) {
|
|
|
25057
25637
|
};
|
|
25058
25638
|
}),
|
|
25059
25639
|
/**
|
|
25060
|
-
* Updates a specific step in the store creation flow
|
|
25640
|
+
* Updates a specific step in the store creation flow. This endpoint updates the most recent store creation progress. For specific store creation flows, use the path-based endpoint with xstoreid.
|
|
25061
25641
|
* @summary Update store creation step
|
|
25062
25642
|
* @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
|
|
25063
25643
|
* @param {*} [options] Override http request option.
|
|
@@ -25088,21 +25668,119 @@ const StoreCreationApiAxiosParamCreator = function (configuration) {
|
|
|
25088
25668
|
options: localVarRequestOptions,
|
|
25089
25669
|
};
|
|
25090
25670
|
}),
|
|
25671
|
+
/**
|
|
25672
|
+
* Deletes (soft delete) the store creation progress for a specific store using XStoreID from path parameter
|
|
25673
|
+
* @summary Delete store creation progress by XStoreID
|
|
25674
|
+
* @param {string} xstoreid XStoreID for specific store creation flow
|
|
25675
|
+
* @param {*} [options] Override http request option.
|
|
25676
|
+
* @throws {RequiredError}
|
|
25677
|
+
*/
|
|
25678
|
+
adminV1StoreCreationXstoreidProgressDelete: (xstoreid_1, ...args_1) => __awaiter(this, [xstoreid_1, ...args_1], void 0, function* (xstoreid, options = {}) {
|
|
25679
|
+
// verify required parameter 'xstoreid' is not null or undefined
|
|
25680
|
+
(0, common_1.assertParamExists)('adminV1StoreCreationXstoreidProgressDelete', 'xstoreid', xstoreid);
|
|
25681
|
+
const localVarPath = `/admin/v1/store-creation/{xstoreid}/progress`
|
|
25682
|
+
.replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)));
|
|
25683
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25684
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
25685
|
+
let baseOptions;
|
|
25686
|
+
if (configuration) {
|
|
25687
|
+
baseOptions = configuration.baseOptions;
|
|
25688
|
+
}
|
|
25689
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
25690
|
+
const localVarHeaderParameter = {};
|
|
25691
|
+
const localVarQueryParameter = {};
|
|
25692
|
+
// authentication BearerAuth required
|
|
25693
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
25694
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
25695
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25696
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25697
|
+
return {
|
|
25698
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
25699
|
+
options: localVarRequestOptions,
|
|
25700
|
+
};
|
|
25701
|
+
}),
|
|
25702
|
+
/**
|
|
25703
|
+
* Retrieves the current step and state of store creation for a specific store using XStoreID from path parameter
|
|
25704
|
+
* @summary Get store creation progress by XStoreID
|
|
25705
|
+
* @param {string} xstoreid XStoreID for specific store creation flow
|
|
25706
|
+
* @param {*} [options] Override http request option.
|
|
25707
|
+
* @throws {RequiredError}
|
|
25708
|
+
*/
|
|
25709
|
+
adminV1StoreCreationXstoreidProgressGet: (xstoreid_1, ...args_1) => __awaiter(this, [xstoreid_1, ...args_1], void 0, function* (xstoreid, options = {}) {
|
|
25710
|
+
// verify required parameter 'xstoreid' is not null or undefined
|
|
25711
|
+
(0, common_1.assertParamExists)('adminV1StoreCreationXstoreidProgressGet', 'xstoreid', xstoreid);
|
|
25712
|
+
const localVarPath = `/admin/v1/store-creation/{xstoreid}/progress`
|
|
25713
|
+
.replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)));
|
|
25714
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25715
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
25716
|
+
let baseOptions;
|
|
25717
|
+
if (configuration) {
|
|
25718
|
+
baseOptions = configuration.baseOptions;
|
|
25719
|
+
}
|
|
25720
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
25721
|
+
const localVarHeaderParameter = {};
|
|
25722
|
+
const localVarQueryParameter = {};
|
|
25723
|
+
// authentication BearerAuth required
|
|
25724
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
25725
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
25726
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25727
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25728
|
+
return {
|
|
25729
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
25730
|
+
options: localVarRequestOptions,
|
|
25731
|
+
};
|
|
25732
|
+
}),
|
|
25733
|
+
/**
|
|
25734
|
+
* Updates a specific step in the store creation flow for a specific store using XStoreID from path parameter
|
|
25735
|
+
* @summary Update store creation step by XStoreID
|
|
25736
|
+
* @param {string} xstoreid XStoreID for specific store creation flow
|
|
25737
|
+
* @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
|
|
25738
|
+
* @param {*} [options] Override http request option.
|
|
25739
|
+
* @throws {RequiredError}
|
|
25740
|
+
*/
|
|
25741
|
+
adminV1StoreCreationXstoreidStepPost: (xstoreid_1, dataTypesStoreCreationRequest_1, ...args_1) => __awaiter(this, [xstoreid_1, dataTypesStoreCreationRequest_1, ...args_1], void 0, function* (xstoreid, dataTypesStoreCreationRequest, options = {}) {
|
|
25742
|
+
// verify required parameter 'xstoreid' is not null or undefined
|
|
25743
|
+
(0, common_1.assertParamExists)('adminV1StoreCreationXstoreidStepPost', 'xstoreid', xstoreid);
|
|
25744
|
+
// verify required parameter 'dataTypesStoreCreationRequest' is not null or undefined
|
|
25745
|
+
(0, common_1.assertParamExists)('adminV1StoreCreationXstoreidStepPost', 'dataTypesStoreCreationRequest', dataTypesStoreCreationRequest);
|
|
25746
|
+
const localVarPath = `/admin/v1/store-creation/{xstoreid}/step`
|
|
25747
|
+
.replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)));
|
|
25748
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25749
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
25750
|
+
let baseOptions;
|
|
25751
|
+
if (configuration) {
|
|
25752
|
+
baseOptions = configuration.baseOptions;
|
|
25753
|
+
}
|
|
25754
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
25755
|
+
const localVarHeaderParameter = {};
|
|
25756
|
+
const localVarQueryParameter = {};
|
|
25757
|
+
// authentication BearerAuth required
|
|
25758
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
25759
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
25760
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
25761
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25762
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25763
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesStoreCreationRequest, localVarRequestOptions, configuration);
|
|
25764
|
+
return {
|
|
25765
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
25766
|
+
options: localVarRequestOptions,
|
|
25767
|
+
};
|
|
25768
|
+
}),
|
|
25091
25769
|
/**
|
|
25092
25770
|
* Uploads a custom JSON or CSV file for store data import
|
|
25093
25771
|
* @summary Upload custom data file for store
|
|
25094
|
-
* @param {
|
|
25772
|
+
* @param {string} xstoreid Store XStoreID
|
|
25095
25773
|
* @param {File} file Data file (JSON or CSV)
|
|
25096
25774
|
* @param {*} [options] Override http request option.
|
|
25097
25775
|
* @throws {RequiredError}
|
|
25098
25776
|
*/
|
|
25099
|
-
|
|
25100
|
-
// verify required parameter '
|
|
25101
|
-
(0, common_1.assertParamExists)('
|
|
25777
|
+
adminV1StoreCreationXstoreidUploadDataPost: (xstoreid_1, file_1, ...args_1) => __awaiter(this, [xstoreid_1, file_1, ...args_1], void 0, function* (xstoreid, file, options = {}) {
|
|
25778
|
+
// verify required parameter 'xstoreid' is not null or undefined
|
|
25779
|
+
(0, common_1.assertParamExists)('adminV1StoreCreationXstoreidUploadDataPost', 'xstoreid', xstoreid);
|
|
25102
25780
|
// verify required parameter 'file' is not null or undefined
|
|
25103
|
-
(0, common_1.assertParamExists)('
|
|
25104
|
-
const localVarPath = `/admin/v1/store-creation/{
|
|
25105
|
-
.replace(`{${"
|
|
25781
|
+
(0, common_1.assertParamExists)('adminV1StoreCreationXstoreidUploadDataPost', 'file', file);
|
|
25782
|
+
const localVarPath = `/admin/v1/store-creation/{xstoreid}/upload-data`
|
|
25783
|
+
.replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)));
|
|
25106
25784
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25107
25785
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
25108
25786
|
let baseOptions;
|
|
@@ -25154,7 +25832,7 @@ const StoreCreationApiFp = function (configuration) {
|
|
|
25154
25832
|
});
|
|
25155
25833
|
},
|
|
25156
25834
|
/**
|
|
25157
|
-
* Retrieves the current step and state of store creation for the user
|
|
25835
|
+
* Retrieves the current step and state of store creation for the user. This endpoint gets the most recent store creation progress. For specific store creation flows, use the path-based endpoint with xstoreid.
|
|
25158
25836
|
* @summary Get current store creation progress
|
|
25159
25837
|
* @param {*} [options] Override http request option.
|
|
25160
25838
|
* @throws {RequiredError}
|
|
@@ -25185,7 +25863,7 @@ const StoreCreationApiFp = function (configuration) {
|
|
|
25185
25863
|
});
|
|
25186
25864
|
},
|
|
25187
25865
|
/**
|
|
25188
|
-
* Updates a specific step in the store creation flow
|
|
25866
|
+
* Updates a specific step in the store creation flow. This endpoint updates the most recent store creation progress. For specific store creation flows, use the path-based endpoint with xstoreid.
|
|
25189
25867
|
* @summary Update store creation step
|
|
25190
25868
|
* @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
|
|
25191
25869
|
* @param {*} [options] Override http request option.
|
|
@@ -25200,20 +25878,69 @@ const StoreCreationApiFp = function (configuration) {
|
|
|
25200
25878
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25201
25879
|
});
|
|
25202
25880
|
},
|
|
25881
|
+
/**
|
|
25882
|
+
* Deletes (soft delete) the store creation progress for a specific store using XStoreID from path parameter
|
|
25883
|
+
* @summary Delete store creation progress by XStoreID
|
|
25884
|
+
* @param {string} xstoreid XStoreID for specific store creation flow
|
|
25885
|
+
* @param {*} [options] Override http request option.
|
|
25886
|
+
* @throws {RequiredError}
|
|
25887
|
+
*/
|
|
25888
|
+
adminV1StoreCreationXstoreidProgressDelete(xstoreid, options) {
|
|
25889
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25890
|
+
var _a, _b, _c;
|
|
25891
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoreCreationXstoreidProgressDelete(xstoreid, options);
|
|
25892
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
25893
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoreCreationApi.adminV1StoreCreationXstoreidProgressDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
25894
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25895
|
+
});
|
|
25896
|
+
},
|
|
25897
|
+
/**
|
|
25898
|
+
* Retrieves the current step and state of store creation for a specific store using XStoreID from path parameter
|
|
25899
|
+
* @summary Get store creation progress by XStoreID
|
|
25900
|
+
* @param {string} xstoreid XStoreID for specific store creation flow
|
|
25901
|
+
* @param {*} [options] Override http request option.
|
|
25902
|
+
* @throws {RequiredError}
|
|
25903
|
+
*/
|
|
25904
|
+
adminV1StoreCreationXstoreidProgressGet(xstoreid, options) {
|
|
25905
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25906
|
+
var _a, _b, _c;
|
|
25907
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoreCreationXstoreidProgressGet(xstoreid, options);
|
|
25908
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
25909
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoreCreationApi.adminV1StoreCreationXstoreidProgressGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
25910
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25911
|
+
});
|
|
25912
|
+
},
|
|
25913
|
+
/**
|
|
25914
|
+
* Updates a specific step in the store creation flow for a specific store using XStoreID from path parameter
|
|
25915
|
+
* @summary Update store creation step by XStoreID
|
|
25916
|
+
* @param {string} xstoreid XStoreID for specific store creation flow
|
|
25917
|
+
* @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
|
|
25918
|
+
* @param {*} [options] Override http request option.
|
|
25919
|
+
* @throws {RequiredError}
|
|
25920
|
+
*/
|
|
25921
|
+
adminV1StoreCreationXstoreidStepPost(xstoreid, dataTypesStoreCreationRequest, options) {
|
|
25922
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25923
|
+
var _a, _b, _c;
|
|
25924
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoreCreationXstoreidStepPost(xstoreid, dataTypesStoreCreationRequest, options);
|
|
25925
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
25926
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoreCreationApi.adminV1StoreCreationXstoreidStepPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
25927
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25928
|
+
});
|
|
25929
|
+
},
|
|
25203
25930
|
/**
|
|
25204
25931
|
* Uploads a custom JSON or CSV file for store data import
|
|
25205
25932
|
* @summary Upload custom data file for store
|
|
25206
|
-
* @param {
|
|
25933
|
+
* @param {string} xstoreid Store XStoreID
|
|
25207
25934
|
* @param {File} file Data file (JSON or CSV)
|
|
25208
25935
|
* @param {*} [options] Override http request option.
|
|
25209
25936
|
* @throws {RequiredError}
|
|
25210
25937
|
*/
|
|
25211
|
-
|
|
25938
|
+
adminV1StoreCreationXstoreidUploadDataPost(xstoreid, file, options) {
|
|
25212
25939
|
return __awaiter(this, void 0, void 0, function* () {
|
|
25213
25940
|
var _a, _b, _c;
|
|
25214
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
25941
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoreCreationXstoreidUploadDataPost(xstoreid, file, options);
|
|
25215
25942
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
25216
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoreCreationApi.
|
|
25943
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoreCreationApi.adminV1StoreCreationXstoreidUploadDataPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
25217
25944
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25218
25945
|
});
|
|
25219
25946
|
},
|
|
@@ -25237,7 +25964,7 @@ const StoreCreationApiFactory = function (configuration, basePath, axios) {
|
|
|
25237
25964
|
return localVarFp.adminV1StoreCreationProgressDelete(options).then((request) => request(axios, basePath));
|
|
25238
25965
|
},
|
|
25239
25966
|
/**
|
|
25240
|
-
* Retrieves the current step and state of store creation for the user
|
|
25967
|
+
* Retrieves the current step and state of store creation for the user. This endpoint gets the most recent store creation progress. For specific store creation flows, use the path-based endpoint with xstoreid.
|
|
25241
25968
|
* @summary Get current store creation progress
|
|
25242
25969
|
* @param {*} [options] Override http request option.
|
|
25243
25970
|
* @throws {RequiredError}
|
|
@@ -25256,7 +25983,7 @@ const StoreCreationApiFactory = function (configuration, basePath, axios) {
|
|
|
25256
25983
|
return localVarFp.adminV1StoreCreationSchemaUploadPost(file, options).then((request) => request(axios, basePath));
|
|
25257
25984
|
},
|
|
25258
25985
|
/**
|
|
25259
|
-
* Updates a specific step in the store creation flow
|
|
25986
|
+
* Updates a specific step in the store creation flow. This endpoint updates the most recent store creation progress. For specific store creation flows, use the path-based endpoint with xstoreid.
|
|
25260
25987
|
* @summary Update store creation step
|
|
25261
25988
|
* @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
|
|
25262
25989
|
* @param {*} [options] Override http request option.
|
|
@@ -25265,16 +25992,47 @@ const StoreCreationApiFactory = function (configuration, basePath, axios) {
|
|
|
25265
25992
|
adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options) {
|
|
25266
25993
|
return localVarFp.adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options).then((request) => request(axios, basePath));
|
|
25267
25994
|
},
|
|
25995
|
+
/**
|
|
25996
|
+
* Deletes (soft delete) the store creation progress for a specific store using XStoreID from path parameter
|
|
25997
|
+
* @summary Delete store creation progress by XStoreID
|
|
25998
|
+
* @param {string} xstoreid XStoreID for specific store creation flow
|
|
25999
|
+
* @param {*} [options] Override http request option.
|
|
26000
|
+
* @throws {RequiredError}
|
|
26001
|
+
*/
|
|
26002
|
+
adminV1StoreCreationXstoreidProgressDelete(xstoreid, options) {
|
|
26003
|
+
return localVarFp.adminV1StoreCreationXstoreidProgressDelete(xstoreid, options).then((request) => request(axios, basePath));
|
|
26004
|
+
},
|
|
26005
|
+
/**
|
|
26006
|
+
* Retrieves the current step and state of store creation for a specific store using XStoreID from path parameter
|
|
26007
|
+
* @summary Get store creation progress by XStoreID
|
|
26008
|
+
* @param {string} xstoreid XStoreID for specific store creation flow
|
|
26009
|
+
* @param {*} [options] Override http request option.
|
|
26010
|
+
* @throws {RequiredError}
|
|
26011
|
+
*/
|
|
26012
|
+
adminV1StoreCreationXstoreidProgressGet(xstoreid, options) {
|
|
26013
|
+
return localVarFp.adminV1StoreCreationXstoreidProgressGet(xstoreid, options).then((request) => request(axios, basePath));
|
|
26014
|
+
},
|
|
26015
|
+
/**
|
|
26016
|
+
* Updates a specific step in the store creation flow for a specific store using XStoreID from path parameter
|
|
26017
|
+
* @summary Update store creation step by XStoreID
|
|
26018
|
+
* @param {string} xstoreid XStoreID for specific store creation flow
|
|
26019
|
+
* @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
|
|
26020
|
+
* @param {*} [options] Override http request option.
|
|
26021
|
+
* @throws {RequiredError}
|
|
26022
|
+
*/
|
|
26023
|
+
adminV1StoreCreationXstoreidStepPost(xstoreid, dataTypesStoreCreationRequest, options) {
|
|
26024
|
+
return localVarFp.adminV1StoreCreationXstoreidStepPost(xstoreid, dataTypesStoreCreationRequest, options).then((request) => request(axios, basePath));
|
|
26025
|
+
},
|
|
25268
26026
|
/**
|
|
25269
26027
|
* Uploads a custom JSON or CSV file for store data import
|
|
25270
26028
|
* @summary Upload custom data file for store
|
|
25271
|
-
* @param {
|
|
26029
|
+
* @param {string} xstoreid Store XStoreID
|
|
25272
26030
|
* @param {File} file Data file (JSON or CSV)
|
|
25273
26031
|
* @param {*} [options] Override http request option.
|
|
25274
26032
|
* @throws {RequiredError}
|
|
25275
26033
|
*/
|
|
25276
|
-
|
|
25277
|
-
return localVarFp.
|
|
26034
|
+
adminV1StoreCreationXstoreidUploadDataPost(xstoreid, file, options) {
|
|
26035
|
+
return localVarFp.adminV1StoreCreationXstoreidUploadDataPost(xstoreid, file, options).then((request) => request(axios, basePath));
|
|
25278
26036
|
},
|
|
25279
26037
|
};
|
|
25280
26038
|
};
|
|
@@ -25297,7 +26055,7 @@ class StoreCreationApi extends base_1.BaseAPI {
|
|
|
25297
26055
|
return (0, exports.StoreCreationApiFp)(this.configuration).adminV1StoreCreationProgressDelete(options).then((request) => request(this.axios, this.basePath));
|
|
25298
26056
|
}
|
|
25299
26057
|
/**
|
|
25300
|
-
* Retrieves the current step and state of store creation for the user
|
|
26058
|
+
* Retrieves the current step and state of store creation for the user. This endpoint gets the most recent store creation progress. For specific store creation flows, use the path-based endpoint with xstoreid.
|
|
25301
26059
|
* @summary Get current store creation progress
|
|
25302
26060
|
* @param {*} [options] Override http request option.
|
|
25303
26061
|
* @throws {RequiredError}
|
|
@@ -25318,7 +26076,7 @@ class StoreCreationApi extends base_1.BaseAPI {
|
|
|
25318
26076
|
return (0, exports.StoreCreationApiFp)(this.configuration).adminV1StoreCreationSchemaUploadPost(file, options).then((request) => request(this.axios, this.basePath));
|
|
25319
26077
|
}
|
|
25320
26078
|
/**
|
|
25321
|
-
* Updates a specific step in the store creation flow
|
|
26079
|
+
* Updates a specific step in the store creation flow. This endpoint updates the most recent store creation progress. For specific store creation flows, use the path-based endpoint with xstoreid.
|
|
25322
26080
|
* @summary Update store creation step
|
|
25323
26081
|
* @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
|
|
25324
26082
|
* @param {*} [options] Override http request option.
|
|
@@ -25328,17 +26086,51 @@ class StoreCreationApi extends base_1.BaseAPI {
|
|
|
25328
26086
|
adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options) {
|
|
25329
26087
|
return (0, exports.StoreCreationApiFp)(this.configuration).adminV1StoreCreationStepPost(dataTypesStoreCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
25330
26088
|
}
|
|
26089
|
+
/**
|
|
26090
|
+
* Deletes (soft delete) the store creation progress for a specific store using XStoreID from path parameter
|
|
26091
|
+
* @summary Delete store creation progress by XStoreID
|
|
26092
|
+
* @param {string} xstoreid XStoreID for specific store creation flow
|
|
26093
|
+
* @param {*} [options] Override http request option.
|
|
26094
|
+
* @throws {RequiredError}
|
|
26095
|
+
* @memberof StoreCreationApi
|
|
26096
|
+
*/
|
|
26097
|
+
adminV1StoreCreationXstoreidProgressDelete(xstoreid, options) {
|
|
26098
|
+
return (0, exports.StoreCreationApiFp)(this.configuration).adminV1StoreCreationXstoreidProgressDelete(xstoreid, options).then((request) => request(this.axios, this.basePath));
|
|
26099
|
+
}
|
|
26100
|
+
/**
|
|
26101
|
+
* Retrieves the current step and state of store creation for a specific store using XStoreID from path parameter
|
|
26102
|
+
* @summary Get store creation progress by XStoreID
|
|
26103
|
+
* @param {string} xstoreid XStoreID for specific store creation flow
|
|
26104
|
+
* @param {*} [options] Override http request option.
|
|
26105
|
+
* @throws {RequiredError}
|
|
26106
|
+
* @memberof StoreCreationApi
|
|
26107
|
+
*/
|
|
26108
|
+
adminV1StoreCreationXstoreidProgressGet(xstoreid, options) {
|
|
26109
|
+
return (0, exports.StoreCreationApiFp)(this.configuration).adminV1StoreCreationXstoreidProgressGet(xstoreid, options).then((request) => request(this.axios, this.basePath));
|
|
26110
|
+
}
|
|
26111
|
+
/**
|
|
26112
|
+
* Updates a specific step in the store creation flow for a specific store using XStoreID from path parameter
|
|
26113
|
+
* @summary Update store creation step by XStoreID
|
|
26114
|
+
* @param {string} xstoreid XStoreID for specific store creation flow
|
|
26115
|
+
* @param {DataTypesStoreCreationRequest} dataTypesStoreCreationRequest Store creation step data
|
|
26116
|
+
* @param {*} [options] Override http request option.
|
|
26117
|
+
* @throws {RequiredError}
|
|
26118
|
+
* @memberof StoreCreationApi
|
|
26119
|
+
*/
|
|
26120
|
+
adminV1StoreCreationXstoreidStepPost(xstoreid, dataTypesStoreCreationRequest, options) {
|
|
26121
|
+
return (0, exports.StoreCreationApiFp)(this.configuration).adminV1StoreCreationXstoreidStepPost(xstoreid, dataTypesStoreCreationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
26122
|
+
}
|
|
25331
26123
|
/**
|
|
25332
26124
|
* Uploads a custom JSON or CSV file for store data import
|
|
25333
26125
|
* @summary Upload custom data file for store
|
|
25334
|
-
* @param {
|
|
26126
|
+
* @param {string} xstoreid Store XStoreID
|
|
25335
26127
|
* @param {File} file Data file (JSON or CSV)
|
|
25336
26128
|
* @param {*} [options] Override http request option.
|
|
25337
26129
|
* @throws {RequiredError}
|
|
25338
26130
|
* @memberof StoreCreationApi
|
|
25339
26131
|
*/
|
|
25340
|
-
|
|
25341
|
-
return (0, exports.StoreCreationApiFp)(this.configuration).
|
|
26132
|
+
adminV1StoreCreationXstoreidUploadDataPost(xstoreid, file, options) {
|
|
26133
|
+
return (0, exports.StoreCreationApiFp)(this.configuration).adminV1StoreCreationXstoreidUploadDataPost(xstoreid, file, options).then((request) => request(this.axios, this.basePath));
|
|
25342
26134
|
}
|
|
25343
26135
|
}
|
|
25344
26136
|
exports.StoreCreationApi = StoreCreationApi;
|