@seekora-ai/admin-api 1.1.0 → 1.1.1

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/dist/api.js CHANGED
@@ -7448,6 +7448,33 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
7448
7448
  options: localVarRequestOptions,
7449
7449
  };
7450
7450
  }),
7451
+ /**
7452
+ * Returns available alert types and their configurations for the frontend
7453
+ * @summary Get billing alert types
7454
+ * @param {*} [options] Override http request option.
7455
+ * @throws {RequiredError}
7456
+ */
7457
+ adminBillingAlertsTypesGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
7458
+ const localVarPath = `/admin/billing/alerts/types`;
7459
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7460
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7461
+ let baseOptions;
7462
+ if (configuration) {
7463
+ baseOptions = configuration.baseOptions;
7464
+ }
7465
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7466
+ const localVarHeaderParameter = {};
7467
+ const localVarQueryParameter = {};
7468
+ // authentication BearerAuth required
7469
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
7470
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7471
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7472
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7473
+ return {
7474
+ url: (0, common_1.toPathString)(localVarUrlObj),
7475
+ options: localVarRequestOptions,
7476
+ };
7477
+ }),
7451
7478
  /**
7452
7479
  * Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
7453
7480
  * @summary Get credit consumption
@@ -7816,7 +7843,7 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
7816
7843
  };
7817
7844
  }),
7818
7845
  /**
7819
- * Downloads an invoice as an HTML file (PDF can be added later)
7846
+ * Downloads an invoice as a PDF file
7820
7847
  * @summary Download invoice
7821
7848
  * @param {string} id Invoice ID
7822
7849
  * @param {*} [options] Override http request option.
@@ -8380,6 +8407,21 @@ const BillingDashboardApiFp = function (configuration) {
8380
8407
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8381
8408
  });
8382
8409
  },
8410
+ /**
8411
+ * Returns available alert types and their configurations for the frontend
8412
+ * @summary Get billing alert types
8413
+ * @param {*} [options] Override http request option.
8414
+ * @throws {RequiredError}
8415
+ */
8416
+ adminBillingAlertsTypesGet(options) {
8417
+ return __awaiter(this, void 0, void 0, function* () {
8418
+ var _a, _b, _c;
8419
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertsTypesGet(options);
8420
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
8421
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingAlertsTypesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
8422
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8423
+ });
8424
+ },
8383
8425
  /**
8384
8426
  * Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
8385
8427
  * @summary Get credit consumption
@@ -8547,7 +8589,7 @@ const BillingDashboardApiFp = function (configuration) {
8547
8589
  });
8548
8590
  },
8549
8591
  /**
8550
- * Downloads an invoice as an HTML file (PDF can be added later)
8592
+ * Downloads an invoice as a PDF file
8551
8593
  * @summary Download invoice
8552
8594
  * @param {string} id Invoice ID
8553
8595
  * @param {*} [options] Override http request option.
@@ -8826,6 +8868,15 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
8826
8868
  adminBillingAlertsPost(dataTypesBillingAlertRequest, options) {
8827
8869
  return localVarFp.adminBillingAlertsPost(dataTypesBillingAlertRequest, options).then((request) => request(axios, basePath));
8828
8870
  },
8871
+ /**
8872
+ * Returns available alert types and their configurations for the frontend
8873
+ * @summary Get billing alert types
8874
+ * @param {*} [options] Override http request option.
8875
+ * @throws {RequiredError}
8876
+ */
8877
+ adminBillingAlertsTypesGet(options) {
8878
+ return localVarFp.adminBillingAlertsTypesGet(options).then((request) => request(axios, basePath));
8879
+ },
8829
8880
  /**
8830
8881
  * Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
8831
8882
  * @summary Get credit consumption
@@ -8939,7 +8990,7 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
8939
8990
  return localVarFp.adminBillingInvoicesIdDelete(id, options).then((request) => request(axios, basePath));
8940
8991
  },
8941
8992
  /**
8942
- * Downloads an invoice as an HTML file (PDF can be added later)
8993
+ * Downloads an invoice as a PDF file
8943
8994
  * @summary Download invoice
8944
8995
  * @param {string} id Invoice ID
8945
8996
  * @param {*} [options] Override http request option.
@@ -9144,6 +9195,16 @@ class BillingDashboardApi extends base_1.BaseAPI {
9144
9195
  adminBillingAlertsPost(dataTypesBillingAlertRequest, options) {
9145
9196
  return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingAlertsPost(dataTypesBillingAlertRequest, options).then((request) => request(this.axios, this.basePath));
9146
9197
  }
9198
+ /**
9199
+ * Returns available alert types and their configurations for the frontend
9200
+ * @summary Get billing alert types
9201
+ * @param {*} [options] Override http request option.
9202
+ * @throws {RequiredError}
9203
+ * @memberof BillingDashboardApi
9204
+ */
9205
+ adminBillingAlertsTypesGet(options) {
9206
+ return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingAlertsTypesGet(options).then((request) => request(this.axios, this.basePath));
9207
+ }
9147
9208
  /**
9148
9209
  * Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
9149
9210
  * @summary Get credit consumption
@@ -9266,7 +9327,7 @@ class BillingDashboardApi extends base_1.BaseAPI {
9266
9327
  return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingInvoicesIdDelete(id, options).then((request) => request(this.axios, this.basePath));
9267
9328
  }
9268
9329
  /**
9269
- * Downloads an invoice as an HTML file (PDF can be added later)
9330
+ * Downloads an invoice as a PDF file
9270
9331
  * @summary Download invoice
9271
9332
  * @param {string} id Invoice ID
9272
9333
  * @param {*} [options] Override http request option.
@@ -11768,6 +11829,60 @@ const FeatureLimitsApiAxiosParamCreator = function (configuration) {
11768
11829
  options: localVarRequestOptions,
11769
11830
  };
11770
11831
  }),
11832
+ /**
11833
+ * Returns plan details and feature availability map for UI rendering
11834
+ * @summary Get plan information for frontend
11835
+ * @param {*} [options] Override http request option.
11836
+ * @throws {RequiredError}
11837
+ */
11838
+ apiFeatureLimitsPlanInfoGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11839
+ const localVarPath = `/api/feature-limits/plan/info`;
11840
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11841
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11842
+ let baseOptions;
11843
+ if (configuration) {
11844
+ baseOptions = configuration.baseOptions;
11845
+ }
11846
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11847
+ const localVarHeaderParameter = {};
11848
+ const localVarQueryParameter = {};
11849
+ // authentication BearerAuth required
11850
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
11851
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11852
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11853
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11854
+ return {
11855
+ url: (0, common_1.toPathString)(localVarUrlObj),
11856
+ options: localVarRequestOptions,
11857
+ };
11858
+ }),
11859
+ /**
11860
+ * Retrieves comprehensive real-time limit status for the organization including all features, credits, and API calls
11861
+ * @summary Get real-time limit status
11862
+ * @param {*} [options] Override http request option.
11863
+ * @throws {RequiredError}
11864
+ */
11865
+ apiFeatureLimitsStatusGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
11866
+ const localVarPath = `/api/feature-limits/status`;
11867
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11868
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
11869
+ let baseOptions;
11870
+ if (configuration) {
11871
+ baseOptions = configuration.baseOptions;
11872
+ }
11873
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
11874
+ const localVarHeaderParameter = {};
11875
+ const localVarQueryParameter = {};
11876
+ // authentication BearerAuth required
11877
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
11878
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
11879
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11880
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
11881
+ return {
11882
+ url: (0, common_1.toPathString)(localVarUrlObj),
11883
+ options: localVarRequestOptions,
11884
+ };
11885
+ }),
11771
11886
  /**
11772
11887
  * Retrieves current feature usage statistics for the organization
11773
11888
  * @summary Get feature usage statistics
@@ -11871,6 +11986,36 @@ const FeatureLimitsApiFp = function (configuration) {
11871
11986
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11872
11987
  });
11873
11988
  },
11989
+ /**
11990
+ * Returns plan details and feature availability map for UI rendering
11991
+ * @summary Get plan information for frontend
11992
+ * @param {*} [options] Override http request option.
11993
+ * @throws {RequiredError}
11994
+ */
11995
+ apiFeatureLimitsPlanInfoGet(options) {
11996
+ return __awaiter(this, void 0, void 0, function* () {
11997
+ var _a, _b, _c;
11998
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiFeatureLimitsPlanInfoGet(options);
11999
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12000
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FeatureLimitsApi.apiFeatureLimitsPlanInfoGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12001
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12002
+ });
12003
+ },
12004
+ /**
12005
+ * Retrieves comprehensive real-time limit status for the organization including all features, credits, and API calls
12006
+ * @summary Get real-time limit status
12007
+ * @param {*} [options] Override http request option.
12008
+ * @throws {RequiredError}
12009
+ */
12010
+ apiFeatureLimitsStatusGet(options) {
12011
+ return __awaiter(this, void 0, void 0, function* () {
12012
+ var _a, _b, _c;
12013
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiFeatureLimitsStatusGet(options);
12014
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12015
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FeatureLimitsApi.apiFeatureLimitsStatusGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12016
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12017
+ });
12018
+ },
11874
12019
  /**
11875
12020
  * Retrieves current feature usage statistics for the organization
11876
12021
  * @summary Get feature usage statistics
@@ -11938,6 +12083,24 @@ const FeatureLimitsApiFactory = function (configuration, basePath, axios) {
11938
12083
  apiFeatureLimitsPlanGet(options) {
11939
12084
  return localVarFp.apiFeatureLimitsPlanGet(options).then((request) => request(axios, basePath));
11940
12085
  },
12086
+ /**
12087
+ * Returns plan details and feature availability map for UI rendering
12088
+ * @summary Get plan information for frontend
12089
+ * @param {*} [options] Override http request option.
12090
+ * @throws {RequiredError}
12091
+ */
12092
+ apiFeatureLimitsPlanInfoGet(options) {
12093
+ return localVarFp.apiFeatureLimitsPlanInfoGet(options).then((request) => request(axios, basePath));
12094
+ },
12095
+ /**
12096
+ * Retrieves comprehensive real-time limit status for the organization including all features, credits, and API calls
12097
+ * @summary Get real-time limit status
12098
+ * @param {*} [options] Override http request option.
12099
+ * @throws {RequiredError}
12100
+ */
12101
+ apiFeatureLimitsStatusGet(options) {
12102
+ return localVarFp.apiFeatureLimitsStatusGet(options).then((request) => request(axios, basePath));
12103
+ },
11941
12104
  /**
11942
12105
  * Retrieves current feature usage statistics for the organization
11943
12106
  * @summary Get feature usage statistics
@@ -12003,6 +12166,26 @@ class FeatureLimitsApi extends base_1.BaseAPI {
12003
12166
  apiFeatureLimitsPlanGet(options) {
12004
12167
  return (0, exports.FeatureLimitsApiFp)(this.configuration).apiFeatureLimitsPlanGet(options).then((request) => request(this.axios, this.basePath));
12005
12168
  }
12169
+ /**
12170
+ * Returns plan details and feature availability map for UI rendering
12171
+ * @summary Get plan information for frontend
12172
+ * @param {*} [options] Override http request option.
12173
+ * @throws {RequiredError}
12174
+ * @memberof FeatureLimitsApi
12175
+ */
12176
+ apiFeatureLimitsPlanInfoGet(options) {
12177
+ return (0, exports.FeatureLimitsApiFp)(this.configuration).apiFeatureLimitsPlanInfoGet(options).then((request) => request(this.axios, this.basePath));
12178
+ }
12179
+ /**
12180
+ * Retrieves comprehensive real-time limit status for the organization including all features, credits, and API calls
12181
+ * @summary Get real-time limit status
12182
+ * @param {*} [options] Override http request option.
12183
+ * @throws {RequiredError}
12184
+ * @memberof FeatureLimitsApi
12185
+ */
12186
+ apiFeatureLimitsStatusGet(options) {
12187
+ return (0, exports.FeatureLimitsApiFp)(this.configuration).apiFeatureLimitsStatusGet(options).then((request) => request(this.axios, this.basePath));
12188
+ }
12006
12189
  /**
12007
12190
  * Retrieves current feature usage statistics for the organization
12008
12191
  * @summary Get feature usage statistics
@@ -17818,6 +18001,38 @@ const PaymentGatewayApiAxiosParamCreator = function (configuration) {
17818
18001
  options: localVarRequestOptions,
17819
18002
  };
17820
18003
  }),
18004
+ /**
18005
+ * Verifies an invoice payment using only the gateway order ID. Fetches payment details from the gateway automatically. Ideal for testing without webhook access.
18006
+ * @summary Verify invoice payment (simplified)
18007
+ * @param {AdminPaymentGatewayVerifyInvoicePostRequest} adminPaymentGatewayVerifyInvoicePostRequest Gateway Order ID
18008
+ * @param {*} [options] Override http request option.
18009
+ * @throws {RequiredError}
18010
+ */
18011
+ adminPaymentGatewayVerifyInvoicePost: (adminPaymentGatewayVerifyInvoicePostRequest_1, ...args_1) => __awaiter(this, [adminPaymentGatewayVerifyInvoicePostRequest_1, ...args_1], void 0, function* (adminPaymentGatewayVerifyInvoicePostRequest, options = {}) {
18012
+ // verify required parameter 'adminPaymentGatewayVerifyInvoicePostRequest' is not null or undefined
18013
+ (0, common_1.assertParamExists)('adminPaymentGatewayVerifyInvoicePost', 'adminPaymentGatewayVerifyInvoicePostRequest', adminPaymentGatewayVerifyInvoicePostRequest);
18014
+ const localVarPath = `/admin/payment-gateway/verify-invoice`;
18015
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18016
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
18017
+ let baseOptions;
18018
+ if (configuration) {
18019
+ baseOptions = configuration.baseOptions;
18020
+ }
18021
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
18022
+ const localVarHeaderParameter = {};
18023
+ const localVarQueryParameter = {};
18024
+ // authentication BearerAuth required
18025
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
18026
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18027
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
18028
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18029
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
18030
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(adminPaymentGatewayVerifyInvoicePostRequest, localVarRequestOptions, configuration);
18031
+ return {
18032
+ url: (0, common_1.toPathString)(localVarUrlObj),
18033
+ options: localVarRequestOptions,
18034
+ };
18035
+ }),
17821
18036
  /**
17822
18037
  * Verifies the current status of a payment using only the order ID. Returns frontend-friendly status (\"success\", \"pending\", or \"error\"). This is a simplified endpoint that can be used for polling instead of payment-status endpoint for immediate verification.
17823
18038
  * @summary Verify payment status by order ID
@@ -18089,6 +18304,22 @@ const PaymentGatewayApiFp = function (configuration) {
18089
18304
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18090
18305
  });
18091
18306
  },
18307
+ /**
18308
+ * Verifies an invoice payment using only the gateway order ID. Fetches payment details from the gateway automatically. Ideal for testing without webhook access.
18309
+ * @summary Verify invoice payment (simplified)
18310
+ * @param {AdminPaymentGatewayVerifyInvoicePostRequest} adminPaymentGatewayVerifyInvoicePostRequest Gateway Order ID
18311
+ * @param {*} [options] Override http request option.
18312
+ * @throws {RequiredError}
18313
+ */
18314
+ adminPaymentGatewayVerifyInvoicePost(adminPaymentGatewayVerifyInvoicePostRequest, options) {
18315
+ return __awaiter(this, void 0, void 0, function* () {
18316
+ var _a, _b, _c;
18317
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayVerifyInvoicePost(adminPaymentGatewayVerifyInvoicePostRequest, options);
18318
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
18319
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentGatewayApi.adminPaymentGatewayVerifyInvoicePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
18320
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18321
+ });
18322
+ },
18092
18323
  /**
18093
18324
  * Verifies the current status of a payment using only the order ID. Returns frontend-friendly status (\"success\", \"pending\", or \"error\"). This is a simplified endpoint that can be used for polling instead of payment-status endpoint for immediate verification.
18094
18325
  * @summary Verify payment status by order ID
@@ -18248,6 +18479,16 @@ const PaymentGatewayApiFactory = function (configuration, basePath, axios) {
18248
18479
  adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options) {
18249
18480
  return localVarFp.adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options).then((request) => request(axios, basePath));
18250
18481
  },
18482
+ /**
18483
+ * Verifies an invoice payment using only the gateway order ID. Fetches payment details from the gateway automatically. Ideal for testing without webhook access.
18484
+ * @summary Verify invoice payment (simplified)
18485
+ * @param {AdminPaymentGatewayVerifyInvoicePostRequest} adminPaymentGatewayVerifyInvoicePostRequest Gateway Order ID
18486
+ * @param {*} [options] Override http request option.
18487
+ * @throws {RequiredError}
18488
+ */
18489
+ adminPaymentGatewayVerifyInvoicePost(adminPaymentGatewayVerifyInvoicePostRequest, options) {
18490
+ return localVarFp.adminPaymentGatewayVerifyInvoicePost(adminPaymentGatewayVerifyInvoicePostRequest, options).then((request) => request(axios, basePath));
18491
+ },
18251
18492
  /**
18252
18493
  * Verifies the current status of a payment using only the order ID. Returns frontend-friendly status (\"success\", \"pending\", or \"error\"). This is a simplified endpoint that can be used for polling instead of payment-status endpoint for immediate verification.
18253
18494
  * @summary Verify payment status by order ID
@@ -18384,6 +18625,17 @@ class PaymentGatewayApi extends base_1.BaseAPI {
18384
18625
  adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options) {
18385
18626
  return (0, exports.PaymentGatewayApiFp)(this.configuration).adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
18386
18627
  }
18628
+ /**
18629
+ * Verifies an invoice payment using only the gateway order ID. Fetches payment details from the gateway automatically. Ideal for testing without webhook access.
18630
+ * @summary Verify invoice payment (simplified)
18631
+ * @param {AdminPaymentGatewayVerifyInvoicePostRequest} adminPaymentGatewayVerifyInvoicePostRequest Gateway Order ID
18632
+ * @param {*} [options] Override http request option.
18633
+ * @throws {RequiredError}
18634
+ * @memberof PaymentGatewayApi
18635
+ */
18636
+ adminPaymentGatewayVerifyInvoicePost(adminPaymentGatewayVerifyInvoicePostRequest, options) {
18637
+ return (0, exports.PaymentGatewayApiFp)(this.configuration).adminPaymentGatewayVerifyInvoicePost(adminPaymentGatewayVerifyInvoicePostRequest, options).then((request) => request(this.axios, this.basePath));
18638
+ }
18387
18639
  /**
18388
18640
  * Verifies the current status of a payment using only the order ID. Returns frontend-friendly status (\"success\", \"pending\", or \"error\"). This is a simplified endpoint that can be used for polling instead of payment-status endpoint for immediate verification.
18389
18641
  * @summary Verify payment status by order ID
@@ -27589,6 +27841,90 @@ const StoresApiAxiosParamCreator = function (configuration) {
27589
27841
  options: localVarRequestOptions,
27590
27842
  };
27591
27843
  }),
27844
+ /**
27845
+ * Retrieves aggregated daily statistics for a specific store including records usage, response times, and operation counts.
27846
+ * @summary Get Daily Statistics for a Store
27847
+ * @param {string} xStoreID Store ID
27848
+ * @param {string} [startDate] Start date (YYYY-MM-DD)
27849
+ * @param {string} [endDate] End date (YYYY-MM-DD)
27850
+ * @param {*} [options] Override http request option.
27851
+ * @throws {RequiredError}
27852
+ */
27853
+ adminStoresXStoreIDAnalyticsDailyStatsGet: (xStoreID_1, startDate_1, endDate_1, ...args_1) => __awaiter(this, [xStoreID_1, startDate_1, endDate_1, ...args_1], void 0, function* (xStoreID, startDate, endDate, options = {}) {
27854
+ // verify required parameter 'xStoreID' is not null or undefined
27855
+ (0, common_1.assertParamExists)('adminStoresXStoreIDAnalyticsDailyStatsGet', 'xStoreID', xStoreID);
27856
+ const localVarPath = `/admin/Stores/{xStoreID}/analytics/daily-stats`
27857
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
27858
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27859
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
27860
+ let baseOptions;
27861
+ if (configuration) {
27862
+ baseOptions = configuration.baseOptions;
27863
+ }
27864
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
27865
+ const localVarHeaderParameter = {};
27866
+ const localVarQueryParameter = {};
27867
+ // authentication BearerAuth required
27868
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
27869
+ if (startDate !== undefined) {
27870
+ localVarQueryParameter['start_date'] = startDate;
27871
+ }
27872
+ if (endDate !== undefined) {
27873
+ localVarQueryParameter['end_date'] = endDate;
27874
+ }
27875
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
27876
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27877
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
27878
+ return {
27879
+ url: (0, common_1.toPathString)(localVarUrlObj),
27880
+ options: localVarRequestOptions,
27881
+ };
27882
+ }),
27883
+ /**
27884
+ * Retrieves time series data for a specific metric (records, search_response_time, operations, or search_requests) with date filtering for graphing.
27885
+ * @summary Get Time Series Data for Store Metrics
27886
+ * @param {string} xStoreID Store ID
27887
+ * @param {string} metric Metric type: records, search_response_time, operations, search_requests
27888
+ * @param {string} [startDate] Start date (YYYY-MM-DD)
27889
+ * @param {string} [endDate] End date (YYYY-MM-DD)
27890
+ * @param {*} [options] Override http request option.
27891
+ * @throws {RequiredError}
27892
+ */
27893
+ adminStoresXStoreIDAnalyticsTimeseriesGet: (xStoreID_1, metric_1, startDate_1, endDate_1, ...args_1) => __awaiter(this, [xStoreID_1, metric_1, startDate_1, endDate_1, ...args_1], void 0, function* (xStoreID, metric, startDate, endDate, options = {}) {
27894
+ // verify required parameter 'xStoreID' is not null or undefined
27895
+ (0, common_1.assertParamExists)('adminStoresXStoreIDAnalyticsTimeseriesGet', 'xStoreID', xStoreID);
27896
+ // verify required parameter 'metric' is not null or undefined
27897
+ (0, common_1.assertParamExists)('adminStoresXStoreIDAnalyticsTimeseriesGet', 'metric', metric);
27898
+ const localVarPath = `/admin/Stores/{xStoreID}/analytics/timeseries`
27899
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
27900
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27901
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
27902
+ let baseOptions;
27903
+ if (configuration) {
27904
+ baseOptions = configuration.baseOptions;
27905
+ }
27906
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
27907
+ const localVarHeaderParameter = {};
27908
+ const localVarQueryParameter = {};
27909
+ // authentication BearerAuth required
27910
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
27911
+ if (metric !== undefined) {
27912
+ localVarQueryParameter['metric'] = metric;
27913
+ }
27914
+ if (startDate !== undefined) {
27915
+ localVarQueryParameter['start_date'] = startDate;
27916
+ }
27917
+ if (endDate !== undefined) {
27918
+ localVarQueryParameter['end_date'] = endDate;
27919
+ }
27920
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
27921
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27922
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
27923
+ return {
27924
+ url: (0, common_1.toPathString)(localVarUrlObj),
27925
+ options: localVarRequestOptions,
27926
+ };
27927
+ }),
27592
27928
  /**
27593
27929
  * Retrieve detailed information for a specific API usage event including headers, request body, and response body
27594
27930
  * @summary Get Specific API Usage Event
@@ -28075,6 +28411,43 @@ const StoresApiFp = function (configuration) {
28075
28411
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28076
28412
  });
28077
28413
  },
28414
+ /**
28415
+ * Retrieves aggregated daily statistics for a specific store including records usage, response times, and operation counts.
28416
+ * @summary Get Daily Statistics for a Store
28417
+ * @param {string} xStoreID Store ID
28418
+ * @param {string} [startDate] Start date (YYYY-MM-DD)
28419
+ * @param {string} [endDate] End date (YYYY-MM-DD)
28420
+ * @param {*} [options] Override http request option.
28421
+ * @throws {RequiredError}
28422
+ */
28423
+ adminStoresXStoreIDAnalyticsDailyStatsGet(xStoreID, startDate, endDate, options) {
28424
+ return __awaiter(this, void 0, void 0, function* () {
28425
+ var _a, _b, _c;
28426
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDAnalyticsDailyStatsGet(xStoreID, startDate, endDate, options);
28427
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
28428
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresXStoreIDAnalyticsDailyStatsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
28429
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28430
+ });
28431
+ },
28432
+ /**
28433
+ * Retrieves time series data for a specific metric (records, search_response_time, operations, or search_requests) with date filtering for graphing.
28434
+ * @summary Get Time Series Data for Store Metrics
28435
+ * @param {string} xStoreID Store ID
28436
+ * @param {string} metric Metric type: records, search_response_time, operations, search_requests
28437
+ * @param {string} [startDate] Start date (YYYY-MM-DD)
28438
+ * @param {string} [endDate] End date (YYYY-MM-DD)
28439
+ * @param {*} [options] Override http request option.
28440
+ * @throws {RequiredError}
28441
+ */
28442
+ adminStoresXStoreIDAnalyticsTimeseriesGet(xStoreID, metric, startDate, endDate, options) {
28443
+ return __awaiter(this, void 0, void 0, function* () {
28444
+ var _a, _b, _c;
28445
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDAnalyticsTimeseriesGet(xStoreID, metric, startDate, endDate, options);
28446
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
28447
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresXStoreIDAnalyticsTimeseriesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
28448
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28449
+ });
28450
+ },
28078
28451
  /**
28079
28452
  * Retrieve detailed information for a specific API usage event including headers, request body, and response body
28080
28453
  * @summary Get Specific API Usage Event
@@ -28325,6 +28698,31 @@ const StoresApiFactory = function (configuration, basePath, axios) {
28325
28698
  adminStoresUpdateStatusIdStatusPut(id, status, options) {
28326
28699
  return localVarFp.adminStoresUpdateStatusIdStatusPut(id, status, options).then((request) => request(axios, basePath));
28327
28700
  },
28701
+ /**
28702
+ * Retrieves aggregated daily statistics for a specific store including records usage, response times, and operation counts.
28703
+ * @summary Get Daily Statistics for a Store
28704
+ * @param {string} xStoreID Store ID
28705
+ * @param {string} [startDate] Start date (YYYY-MM-DD)
28706
+ * @param {string} [endDate] End date (YYYY-MM-DD)
28707
+ * @param {*} [options] Override http request option.
28708
+ * @throws {RequiredError}
28709
+ */
28710
+ adminStoresXStoreIDAnalyticsDailyStatsGet(xStoreID, startDate, endDate, options) {
28711
+ return localVarFp.adminStoresXStoreIDAnalyticsDailyStatsGet(xStoreID, startDate, endDate, options).then((request) => request(axios, basePath));
28712
+ },
28713
+ /**
28714
+ * Retrieves time series data for a specific metric (records, search_response_time, operations, or search_requests) with date filtering for graphing.
28715
+ * @summary Get Time Series Data for Store Metrics
28716
+ * @param {string} xStoreID Store ID
28717
+ * @param {string} metric Metric type: records, search_response_time, operations, search_requests
28718
+ * @param {string} [startDate] Start date (YYYY-MM-DD)
28719
+ * @param {string} [endDate] End date (YYYY-MM-DD)
28720
+ * @param {*} [options] Override http request option.
28721
+ * @throws {RequiredError}
28722
+ */
28723
+ adminStoresXStoreIDAnalyticsTimeseriesGet(xStoreID, metric, startDate, endDate, options) {
28724
+ return localVarFp.adminStoresXStoreIDAnalyticsTimeseriesGet(xStoreID, metric, startDate, endDate, options).then((request) => request(axios, basePath));
28725
+ },
28328
28726
  /**
28329
28727
  * Retrieve detailed information for a specific API usage event including headers, request body, and response body
28330
28728
  * @summary Get Specific API Usage Event
@@ -28514,6 +28912,33 @@ class StoresApi extends base_1.BaseAPI {
28514
28912
  adminStoresUpdateStatusIdStatusPut(id, status, options) {
28515
28913
  return (0, exports.StoresApiFp)(this.configuration).adminStoresUpdateStatusIdStatusPut(id, status, options).then((request) => request(this.axios, this.basePath));
28516
28914
  }
28915
+ /**
28916
+ * Retrieves aggregated daily statistics for a specific store including records usage, response times, and operation counts.
28917
+ * @summary Get Daily Statistics for a Store
28918
+ * @param {string} xStoreID Store ID
28919
+ * @param {string} [startDate] Start date (YYYY-MM-DD)
28920
+ * @param {string} [endDate] End date (YYYY-MM-DD)
28921
+ * @param {*} [options] Override http request option.
28922
+ * @throws {RequiredError}
28923
+ * @memberof StoresApi
28924
+ */
28925
+ adminStoresXStoreIDAnalyticsDailyStatsGet(xStoreID, startDate, endDate, options) {
28926
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresXStoreIDAnalyticsDailyStatsGet(xStoreID, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
28927
+ }
28928
+ /**
28929
+ * Retrieves time series data for a specific metric (records, search_response_time, operations, or search_requests) with date filtering for graphing.
28930
+ * @summary Get Time Series Data for Store Metrics
28931
+ * @param {string} xStoreID Store ID
28932
+ * @param {string} metric Metric type: records, search_response_time, operations, search_requests
28933
+ * @param {string} [startDate] Start date (YYYY-MM-DD)
28934
+ * @param {string} [endDate] End date (YYYY-MM-DD)
28935
+ * @param {*} [options] Override http request option.
28936
+ * @throws {RequiredError}
28937
+ * @memberof StoresApi
28938
+ */
28939
+ adminStoresXStoreIDAnalyticsTimeseriesGet(xStoreID, metric, startDate, endDate, options) {
28940
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresXStoreIDAnalyticsTimeseriesGet(xStoreID, metric, startDate, endDate, options).then((request) => request(this.axios, this.basePath));
28941
+ }
28517
28942
  /**
28518
28943
  * Retrieve detailed information for a specific API usage event including headers, request body, and response body
28519
28944
  * @summary Get Specific API Usage Event