@seekora-ai/admin-api 1.0.83 → 1.0.85

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/esm/api.js CHANGED
@@ -10365,6 +10365,554 @@ export class DocumentsApi extends BaseAPI {
10365
10365
  return DocumentsApiFp(this.configuration).adminStoresXStoreIDUploadPost(xStoreID, file, options).then((request) => request(this.axios, this.basePath));
10366
10366
  }
10367
10367
  }
10368
+ /**
10369
+ * FeatureLimitsApi - axios parameter creator
10370
+ * @export
10371
+ */
10372
+ export const FeatureLimitsApiAxiosParamCreator = function (configuration) {
10373
+ return {
10374
+ /**
10375
+ * Retrieves log of feature limit violations for monitoring
10376
+ * @summary Get feature limit violations
10377
+ * @param {string} [featureName] Filter by feature name
10378
+ * @param {number} [limit] Number of records to return (default: 50)
10379
+ * @param {*} [options] Override http request option.
10380
+ * @throws {RequiredError}
10381
+ */
10382
+ apiAdminFeatureLimitsViolationsGet: (featureName_1, limit_1, ...args_1) => __awaiter(this, [featureName_1, limit_1, ...args_1], void 0, function* (featureName, limit, options = {}) {
10383
+ const localVarPath = `/api/admin/feature-limits/violations`;
10384
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10385
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10386
+ let baseOptions;
10387
+ if (configuration) {
10388
+ baseOptions = configuration.baseOptions;
10389
+ }
10390
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10391
+ const localVarHeaderParameter = {};
10392
+ const localVarQueryParameter = {};
10393
+ // authentication BearerAuth required
10394
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
10395
+ if (featureName !== undefined) {
10396
+ localVarQueryParameter['feature_name'] = featureName;
10397
+ }
10398
+ if (limit !== undefined) {
10399
+ localVarQueryParameter['limit'] = limit;
10400
+ }
10401
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10402
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10403
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10404
+ return {
10405
+ url: toPathString(localVarUrlObj),
10406
+ options: localVarRequestOptions,
10407
+ };
10408
+ }),
10409
+ /**
10410
+ * Checks if a specific feature is within limits without incrementing usage
10411
+ * @summary Check if a feature can be used
10412
+ * @param {string} featureName Feature name to check
10413
+ * @param {number} [amount] Amount to check (default: 1)
10414
+ * @param {*} [options] Override http request option.
10415
+ * @throws {RequiredError}
10416
+ */
10417
+ apiFeatureLimitsCheckGet: (featureName_1, amount_1, ...args_1) => __awaiter(this, [featureName_1, amount_1, ...args_1], void 0, function* (featureName, amount, options = {}) {
10418
+ // verify required parameter 'featureName' is not null or undefined
10419
+ assertParamExists('apiFeatureLimitsCheckGet', 'featureName', featureName);
10420
+ const localVarPath = `/api/feature-limits/check`;
10421
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10422
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10423
+ let baseOptions;
10424
+ if (configuration) {
10425
+ baseOptions = configuration.baseOptions;
10426
+ }
10427
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10428
+ const localVarHeaderParameter = {};
10429
+ const localVarQueryParameter = {};
10430
+ // authentication BearerAuth required
10431
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
10432
+ if (featureName !== undefined) {
10433
+ localVarQueryParameter['feature_name'] = featureName;
10434
+ }
10435
+ if (amount !== undefined) {
10436
+ localVarQueryParameter['amount'] = amount;
10437
+ }
10438
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10439
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10440
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10441
+ return {
10442
+ url: toPathString(localVarUrlObj),
10443
+ options: localVarRequestOptions,
10444
+ };
10445
+ }),
10446
+ /**
10447
+ * Retrieves historical feature usage events for the organization
10448
+ * @summary Get feature usage history
10449
+ * @param {string} [featureName] Filter by feature name
10450
+ * @param {number} [limit] Number of records to return (default: 100)
10451
+ * @param {*} [options] Override http request option.
10452
+ * @throws {RequiredError}
10453
+ */
10454
+ apiFeatureLimitsHistoryGet: (featureName_1, limit_1, ...args_1) => __awaiter(this, [featureName_1, limit_1, ...args_1], void 0, function* (featureName, limit, options = {}) {
10455
+ const localVarPath = `/api/feature-limits/history`;
10456
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10457
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10458
+ let baseOptions;
10459
+ if (configuration) {
10460
+ baseOptions = configuration.baseOptions;
10461
+ }
10462
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10463
+ const localVarHeaderParameter = {};
10464
+ const localVarQueryParameter = {};
10465
+ // authentication BearerAuth required
10466
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
10467
+ if (featureName !== undefined) {
10468
+ localVarQueryParameter['feature_name'] = featureName;
10469
+ }
10470
+ if (limit !== undefined) {
10471
+ localVarQueryParameter['limit'] = limit;
10472
+ }
10473
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10474
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10475
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10476
+ return {
10477
+ url: toPathString(localVarUrlObj),
10478
+ options: localVarRequestOptions,
10479
+ };
10480
+ }),
10481
+ /**
10482
+ * Retrieves the organization\'s current plan with all feature limits
10483
+ * @summary Get organization plan features
10484
+ * @param {*} [options] Override http request option.
10485
+ * @throws {RequiredError}
10486
+ */
10487
+ apiFeatureLimitsPlanGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
10488
+ const localVarPath = `/api/feature-limits/plan`;
10489
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10490
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10491
+ let baseOptions;
10492
+ if (configuration) {
10493
+ baseOptions = configuration.baseOptions;
10494
+ }
10495
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10496
+ const localVarHeaderParameter = {};
10497
+ const localVarQueryParameter = {};
10498
+ // authentication BearerAuth required
10499
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
10500
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10501
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10502
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10503
+ return {
10504
+ url: toPathString(localVarUrlObj),
10505
+ options: localVarRequestOptions,
10506
+ };
10507
+ }),
10508
+ /**
10509
+ * Retrieves current feature usage statistics for the organization
10510
+ * @summary Get feature usage statistics
10511
+ * @param {*} [options] Override http request option.
10512
+ * @throws {RequiredError}
10513
+ */
10514
+ apiFeatureLimitsUsageGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
10515
+ const localVarPath = `/api/feature-limits/usage`;
10516
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10517
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10518
+ let baseOptions;
10519
+ if (configuration) {
10520
+ baseOptions = configuration.baseOptions;
10521
+ }
10522
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10523
+ const localVarHeaderParameter = {};
10524
+ const localVarQueryParameter = {};
10525
+ // authentication BearerAuth required
10526
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
10527
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10528
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10529
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10530
+ return {
10531
+ url: toPathString(localVarUrlObj),
10532
+ options: localVarRequestOptions,
10533
+ };
10534
+ }),
10535
+ };
10536
+ };
10537
+ /**
10538
+ * FeatureLimitsApi - functional programming interface
10539
+ * @export
10540
+ */
10541
+ export const FeatureLimitsApiFp = function (configuration) {
10542
+ const localVarAxiosParamCreator = FeatureLimitsApiAxiosParamCreator(configuration);
10543
+ return {
10544
+ /**
10545
+ * Retrieves log of feature limit violations for monitoring
10546
+ * @summary Get feature limit violations
10547
+ * @param {string} [featureName] Filter by feature name
10548
+ * @param {number} [limit] Number of records to return (default: 50)
10549
+ * @param {*} [options] Override http request option.
10550
+ * @throws {RequiredError}
10551
+ */
10552
+ apiAdminFeatureLimitsViolationsGet(featureName, limit, options) {
10553
+ return __awaiter(this, void 0, void 0, function* () {
10554
+ var _a, _b, _c;
10555
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminFeatureLimitsViolationsGet(featureName, limit, options);
10556
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10557
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsApi.apiAdminFeatureLimitsViolationsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10558
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10559
+ });
10560
+ },
10561
+ /**
10562
+ * Checks if a specific feature is within limits without incrementing usage
10563
+ * @summary Check if a feature can be used
10564
+ * @param {string} featureName Feature name to check
10565
+ * @param {number} [amount] Amount to check (default: 1)
10566
+ * @param {*} [options] Override http request option.
10567
+ * @throws {RequiredError}
10568
+ */
10569
+ apiFeatureLimitsCheckGet(featureName, amount, options) {
10570
+ return __awaiter(this, void 0, void 0, function* () {
10571
+ var _a, _b, _c;
10572
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiFeatureLimitsCheckGet(featureName, amount, options);
10573
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10574
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsApi.apiFeatureLimitsCheckGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10575
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10576
+ });
10577
+ },
10578
+ /**
10579
+ * Retrieves historical feature usage events for the organization
10580
+ * @summary Get feature usage history
10581
+ * @param {string} [featureName] Filter by feature name
10582
+ * @param {number} [limit] Number of records to return (default: 100)
10583
+ * @param {*} [options] Override http request option.
10584
+ * @throws {RequiredError}
10585
+ */
10586
+ apiFeatureLimitsHistoryGet(featureName, limit, options) {
10587
+ return __awaiter(this, void 0, void 0, function* () {
10588
+ var _a, _b, _c;
10589
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiFeatureLimitsHistoryGet(featureName, limit, options);
10590
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10591
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsApi.apiFeatureLimitsHistoryGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10592
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10593
+ });
10594
+ },
10595
+ /**
10596
+ * Retrieves the organization\'s current plan with all feature limits
10597
+ * @summary Get organization plan features
10598
+ * @param {*} [options] Override http request option.
10599
+ * @throws {RequiredError}
10600
+ */
10601
+ apiFeatureLimitsPlanGet(options) {
10602
+ return __awaiter(this, void 0, void 0, function* () {
10603
+ var _a, _b, _c;
10604
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiFeatureLimitsPlanGet(options);
10605
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10606
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsApi.apiFeatureLimitsPlanGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10607
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10608
+ });
10609
+ },
10610
+ /**
10611
+ * Retrieves current feature usage statistics for the organization
10612
+ * @summary Get feature usage statistics
10613
+ * @param {*} [options] Override http request option.
10614
+ * @throws {RequiredError}
10615
+ */
10616
+ apiFeatureLimitsUsageGet(options) {
10617
+ return __awaiter(this, void 0, void 0, function* () {
10618
+ var _a, _b, _c;
10619
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiFeatureLimitsUsageGet(options);
10620
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10621
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsApi.apiFeatureLimitsUsageGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10622
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10623
+ });
10624
+ },
10625
+ };
10626
+ };
10627
+ /**
10628
+ * FeatureLimitsApi - factory interface
10629
+ * @export
10630
+ */
10631
+ export const FeatureLimitsApiFactory = function (configuration, basePath, axios) {
10632
+ const localVarFp = FeatureLimitsApiFp(configuration);
10633
+ return {
10634
+ /**
10635
+ * Retrieves log of feature limit violations for monitoring
10636
+ * @summary Get feature limit violations
10637
+ * @param {string} [featureName] Filter by feature name
10638
+ * @param {number} [limit] Number of records to return (default: 50)
10639
+ * @param {*} [options] Override http request option.
10640
+ * @throws {RequiredError}
10641
+ */
10642
+ apiAdminFeatureLimitsViolationsGet(featureName, limit, options) {
10643
+ return localVarFp.apiAdminFeatureLimitsViolationsGet(featureName, limit, options).then((request) => request(axios, basePath));
10644
+ },
10645
+ /**
10646
+ * Checks if a specific feature is within limits without incrementing usage
10647
+ * @summary Check if a feature can be used
10648
+ * @param {string} featureName Feature name to check
10649
+ * @param {number} [amount] Amount to check (default: 1)
10650
+ * @param {*} [options] Override http request option.
10651
+ * @throws {RequiredError}
10652
+ */
10653
+ apiFeatureLimitsCheckGet(featureName, amount, options) {
10654
+ return localVarFp.apiFeatureLimitsCheckGet(featureName, amount, options).then((request) => request(axios, basePath));
10655
+ },
10656
+ /**
10657
+ * Retrieves historical feature usage events for the organization
10658
+ * @summary Get feature usage history
10659
+ * @param {string} [featureName] Filter by feature name
10660
+ * @param {number} [limit] Number of records to return (default: 100)
10661
+ * @param {*} [options] Override http request option.
10662
+ * @throws {RequiredError}
10663
+ */
10664
+ apiFeatureLimitsHistoryGet(featureName, limit, options) {
10665
+ return localVarFp.apiFeatureLimitsHistoryGet(featureName, limit, options).then((request) => request(axios, basePath));
10666
+ },
10667
+ /**
10668
+ * Retrieves the organization\'s current plan with all feature limits
10669
+ * @summary Get organization plan features
10670
+ * @param {*} [options] Override http request option.
10671
+ * @throws {RequiredError}
10672
+ */
10673
+ apiFeatureLimitsPlanGet(options) {
10674
+ return localVarFp.apiFeatureLimitsPlanGet(options).then((request) => request(axios, basePath));
10675
+ },
10676
+ /**
10677
+ * Retrieves current feature usage statistics for the organization
10678
+ * @summary Get feature usage statistics
10679
+ * @param {*} [options] Override http request option.
10680
+ * @throws {RequiredError}
10681
+ */
10682
+ apiFeatureLimitsUsageGet(options) {
10683
+ return localVarFp.apiFeatureLimitsUsageGet(options).then((request) => request(axios, basePath));
10684
+ },
10685
+ };
10686
+ };
10687
+ /**
10688
+ * FeatureLimitsApi - object-oriented interface
10689
+ * @export
10690
+ * @class FeatureLimitsApi
10691
+ * @extends {BaseAPI}
10692
+ */
10693
+ export class FeatureLimitsApi extends BaseAPI {
10694
+ /**
10695
+ * Retrieves log of feature limit violations for monitoring
10696
+ * @summary Get feature limit violations
10697
+ * @param {string} [featureName] Filter by feature name
10698
+ * @param {number} [limit] Number of records to return (default: 50)
10699
+ * @param {*} [options] Override http request option.
10700
+ * @throws {RequiredError}
10701
+ * @memberof FeatureLimitsApi
10702
+ */
10703
+ apiAdminFeatureLimitsViolationsGet(featureName, limit, options) {
10704
+ return FeatureLimitsApiFp(this.configuration).apiAdminFeatureLimitsViolationsGet(featureName, limit, options).then((request) => request(this.axios, this.basePath));
10705
+ }
10706
+ /**
10707
+ * Checks if a specific feature is within limits without incrementing usage
10708
+ * @summary Check if a feature can be used
10709
+ * @param {string} featureName Feature name to check
10710
+ * @param {number} [amount] Amount to check (default: 1)
10711
+ * @param {*} [options] Override http request option.
10712
+ * @throws {RequiredError}
10713
+ * @memberof FeatureLimitsApi
10714
+ */
10715
+ apiFeatureLimitsCheckGet(featureName, amount, options) {
10716
+ return FeatureLimitsApiFp(this.configuration).apiFeatureLimitsCheckGet(featureName, amount, options).then((request) => request(this.axios, this.basePath));
10717
+ }
10718
+ /**
10719
+ * Retrieves historical feature usage events for the organization
10720
+ * @summary Get feature usage history
10721
+ * @param {string} [featureName] Filter by feature name
10722
+ * @param {number} [limit] Number of records to return (default: 100)
10723
+ * @param {*} [options] Override http request option.
10724
+ * @throws {RequiredError}
10725
+ * @memberof FeatureLimitsApi
10726
+ */
10727
+ apiFeatureLimitsHistoryGet(featureName, limit, options) {
10728
+ return FeatureLimitsApiFp(this.configuration).apiFeatureLimitsHistoryGet(featureName, limit, options).then((request) => request(this.axios, this.basePath));
10729
+ }
10730
+ /**
10731
+ * Retrieves the organization\'s current plan with all feature limits
10732
+ * @summary Get organization plan features
10733
+ * @param {*} [options] Override http request option.
10734
+ * @throws {RequiredError}
10735
+ * @memberof FeatureLimitsApi
10736
+ */
10737
+ apiFeatureLimitsPlanGet(options) {
10738
+ return FeatureLimitsApiFp(this.configuration).apiFeatureLimitsPlanGet(options).then((request) => request(this.axios, this.basePath));
10739
+ }
10740
+ /**
10741
+ * Retrieves current feature usage statistics for the organization
10742
+ * @summary Get feature usage statistics
10743
+ * @param {*} [options] Override http request option.
10744
+ * @throws {RequiredError}
10745
+ * @memberof FeatureLimitsApi
10746
+ */
10747
+ apiFeatureLimitsUsageGet(options) {
10748
+ return FeatureLimitsApiFp(this.configuration).apiFeatureLimitsUsageGet(options).then((request) => request(this.axios, this.basePath));
10749
+ }
10750
+ }
10751
+ /**
10752
+ * FeatureLimitsAdminApi - axios parameter creator
10753
+ * @export
10754
+ */
10755
+ export const FeatureLimitsAdminApiAxiosParamCreator = function (configuration) {
10756
+ return {
10757
+ /**
10758
+ * Invalidates the cached plan data for an organization
10759
+ * @summary Invalidate plan cache (Admin)
10760
+ * @param {*} [options] Override http request option.
10761
+ * @throws {RequiredError}
10762
+ */
10763
+ apiAdminFeatureLimitsCacheInvalidatePost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
10764
+ const localVarPath = `/api/admin/feature-limits/cache/invalidate`;
10765
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10766
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10767
+ let baseOptions;
10768
+ if (configuration) {
10769
+ baseOptions = configuration.baseOptions;
10770
+ }
10771
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
10772
+ const localVarHeaderParameter = {};
10773
+ const localVarQueryParameter = {};
10774
+ // authentication BearerAuth required
10775
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
10776
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10777
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10778
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10779
+ return {
10780
+ url: toPathString(localVarUrlObj),
10781
+ options: localVarRequestOptions,
10782
+ };
10783
+ }),
10784
+ /**
10785
+ * Resets usage counter for a specific feature (admin only)
10786
+ * @summary Reset feature usage (Admin)
10787
+ * @param {string} featureName Feature name to reset
10788
+ * @param {*} [options] Override http request option.
10789
+ * @throws {RequiredError}
10790
+ */
10791
+ apiAdminFeatureLimitsResetPost: (featureName_1, ...args_1) => __awaiter(this, [featureName_1, ...args_1], void 0, function* (featureName, options = {}) {
10792
+ // verify required parameter 'featureName' is not null or undefined
10793
+ assertParamExists('apiAdminFeatureLimitsResetPost', 'featureName', featureName);
10794
+ const localVarPath = `/api/admin/feature-limits/reset`;
10795
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10796
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10797
+ let baseOptions;
10798
+ if (configuration) {
10799
+ baseOptions = configuration.baseOptions;
10800
+ }
10801
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
10802
+ const localVarHeaderParameter = {};
10803
+ const localVarQueryParameter = {};
10804
+ // authentication BearerAuth required
10805
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
10806
+ if (featureName !== undefined) {
10807
+ localVarQueryParameter['feature_name'] = featureName;
10808
+ }
10809
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10810
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10811
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10812
+ return {
10813
+ url: toPathString(localVarUrlObj),
10814
+ options: localVarRequestOptions,
10815
+ };
10816
+ }),
10817
+ };
10818
+ };
10819
+ /**
10820
+ * FeatureLimitsAdminApi - functional programming interface
10821
+ * @export
10822
+ */
10823
+ export const FeatureLimitsAdminApiFp = function (configuration) {
10824
+ const localVarAxiosParamCreator = FeatureLimitsAdminApiAxiosParamCreator(configuration);
10825
+ return {
10826
+ /**
10827
+ * Invalidates the cached plan data for an organization
10828
+ * @summary Invalidate plan cache (Admin)
10829
+ * @param {*} [options] Override http request option.
10830
+ * @throws {RequiredError}
10831
+ */
10832
+ apiAdminFeatureLimitsCacheInvalidatePost(options) {
10833
+ return __awaiter(this, void 0, void 0, function* () {
10834
+ var _a, _b, _c;
10835
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminFeatureLimitsCacheInvalidatePost(options);
10836
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10837
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsAdminApi.apiAdminFeatureLimitsCacheInvalidatePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10838
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10839
+ });
10840
+ },
10841
+ /**
10842
+ * Resets usage counter for a specific feature (admin only)
10843
+ * @summary Reset feature usage (Admin)
10844
+ * @param {string} featureName Feature name to reset
10845
+ * @param {*} [options] Override http request option.
10846
+ * @throws {RequiredError}
10847
+ */
10848
+ apiAdminFeatureLimitsResetPost(featureName, options) {
10849
+ return __awaiter(this, void 0, void 0, function* () {
10850
+ var _a, _b, _c;
10851
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminFeatureLimitsResetPost(featureName, options);
10852
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10853
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureLimitsAdminApi.apiAdminFeatureLimitsResetPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10854
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10855
+ });
10856
+ },
10857
+ };
10858
+ };
10859
+ /**
10860
+ * FeatureLimitsAdminApi - factory interface
10861
+ * @export
10862
+ */
10863
+ export const FeatureLimitsAdminApiFactory = function (configuration, basePath, axios) {
10864
+ const localVarFp = FeatureLimitsAdminApiFp(configuration);
10865
+ return {
10866
+ /**
10867
+ * Invalidates the cached plan data for an organization
10868
+ * @summary Invalidate plan cache (Admin)
10869
+ * @param {*} [options] Override http request option.
10870
+ * @throws {RequiredError}
10871
+ */
10872
+ apiAdminFeatureLimitsCacheInvalidatePost(options) {
10873
+ return localVarFp.apiAdminFeatureLimitsCacheInvalidatePost(options).then((request) => request(axios, basePath));
10874
+ },
10875
+ /**
10876
+ * Resets usage counter for a specific feature (admin only)
10877
+ * @summary Reset feature usage (Admin)
10878
+ * @param {string} featureName Feature name to reset
10879
+ * @param {*} [options] Override http request option.
10880
+ * @throws {RequiredError}
10881
+ */
10882
+ apiAdminFeatureLimitsResetPost(featureName, options) {
10883
+ return localVarFp.apiAdminFeatureLimitsResetPost(featureName, options).then((request) => request(axios, basePath));
10884
+ },
10885
+ };
10886
+ };
10887
+ /**
10888
+ * FeatureLimitsAdminApi - object-oriented interface
10889
+ * @export
10890
+ * @class FeatureLimitsAdminApi
10891
+ * @extends {BaseAPI}
10892
+ */
10893
+ export class FeatureLimitsAdminApi extends BaseAPI {
10894
+ /**
10895
+ * Invalidates the cached plan data for an organization
10896
+ * @summary Invalidate plan cache (Admin)
10897
+ * @param {*} [options] Override http request option.
10898
+ * @throws {RequiredError}
10899
+ * @memberof FeatureLimitsAdminApi
10900
+ */
10901
+ apiAdminFeatureLimitsCacheInvalidatePost(options) {
10902
+ return FeatureLimitsAdminApiFp(this.configuration).apiAdminFeatureLimitsCacheInvalidatePost(options).then((request) => request(this.axios, this.basePath));
10903
+ }
10904
+ /**
10905
+ * Resets usage counter for a specific feature (admin only)
10906
+ * @summary Reset feature usage (Admin)
10907
+ * @param {string} featureName Feature name to reset
10908
+ * @param {*} [options] Override http request option.
10909
+ * @throws {RequiredError}
10910
+ * @memberof FeatureLimitsAdminApi
10911
+ */
10912
+ apiAdminFeatureLimitsResetPost(featureName, options) {
10913
+ return FeatureLimitsAdminApiFp(this.configuration).apiAdminFeatureLimitsResetPost(featureName, options).then((request) => request(this.axios, this.basePath));
10914
+ }
10915
+ }
10368
10916
  /**
10369
10917
  * ItemAnalyticsApi - axios parameter creator
10370
10918
  * @export
@@ -15898,9 +16446,40 @@ export const PaymentGatewayApiAxiosParamCreator = function (configuration) {
15898
16446
  };
15899
16447
  }),
15900
16448
  /**
15901
- * Verifies the current status of a payment
16449
+ * 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.
16450
+ * @summary Verify payment status by order ID
16451
+ * @param {string} orderId Order ID (internal order ID like ORD_xxx or sub_xxx)
16452
+ * @param {*} [options] Override http request option.
16453
+ * @throws {RequiredError}
16454
+ */
16455
+ adminPaymentGatewayVerifyOrderIdGet: (orderId_1, ...args_1) => __awaiter(this, [orderId_1, ...args_1], void 0, function* (orderId, options = {}) {
16456
+ // verify required parameter 'orderId' is not null or undefined
16457
+ assertParamExists('adminPaymentGatewayVerifyOrderIdGet', 'orderId', orderId);
16458
+ const localVarPath = `/admin/payment-gateway/verify/{order_id}`
16459
+ .replace(`{${"order_id"}}`, encodeURIComponent(String(orderId)));
16460
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16461
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16462
+ let baseOptions;
16463
+ if (configuration) {
16464
+ baseOptions = configuration.baseOptions;
16465
+ }
16466
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16467
+ const localVarHeaderParameter = {};
16468
+ const localVarQueryParameter = {};
16469
+ // authentication BearerAuth required
16470
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
16471
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16472
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16473
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16474
+ return {
16475
+ url: toPathString(localVarUrlObj),
16476
+ options: localVarRequestOptions,
16477
+ };
16478
+ }),
16479
+ /**
16480
+ * Verifies the current status of a payment and returns frontend-friendly status (\"success\", \"pending\", or \"error\"). Accepts internal order ID (e.g., ORD_xxx) which is mapped to gateway order ID internally. This endpoint can be used for polling instead of payment-status endpoint for immediate verification.
15902
16481
  * @summary Verify payment status
15903
- * @param {DataTypesVerifyPaymentRequest} dataTypesVerifyPaymentRequest Payment verification details
16482
+ * @param {DataTypesVerifyPaymentRequest} dataTypesVerifyPaymentRequest Payment verification details (gateway_order_id can be internal order ID)
15904
16483
  * @param {*} [options] Override http request option.
15905
16484
  * @throws {RequiredError}
15906
16485
  */
@@ -16104,9 +16683,25 @@ export const PaymentGatewayApiFp = function (configuration) {
16104
16683
  });
16105
16684
  },
16106
16685
  /**
16107
- * Verifies the current status of a payment
16686
+ * 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.
16687
+ * @summary Verify payment status by order ID
16688
+ * @param {string} orderId Order ID (internal order ID like ORD_xxx or sub_xxx)
16689
+ * @param {*} [options] Override http request option.
16690
+ * @throws {RequiredError}
16691
+ */
16692
+ adminPaymentGatewayVerifyOrderIdGet(orderId, options) {
16693
+ return __awaiter(this, void 0, void 0, function* () {
16694
+ var _a, _b, _c;
16695
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayVerifyOrderIdGet(orderId, options);
16696
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16697
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentGatewayApi.adminPaymentGatewayVerifyOrderIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
16698
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16699
+ });
16700
+ },
16701
+ /**
16702
+ * Verifies the current status of a payment and returns frontend-friendly status (\"success\", \"pending\", or \"error\"). Accepts internal order ID (e.g., ORD_xxx) which is mapped to gateway order ID internally. This endpoint can be used for polling instead of payment-status endpoint for immediate verification.
16108
16703
  * @summary Verify payment status
16109
- * @param {DataTypesVerifyPaymentRequest} dataTypesVerifyPaymentRequest Payment verification details
16704
+ * @param {DataTypesVerifyPaymentRequest} dataTypesVerifyPaymentRequest Payment verification details (gateway_order_id can be internal order ID)
16110
16705
  * @param {*} [options] Override http request option.
16111
16706
  * @throws {RequiredError}
16112
16707
  */
@@ -16225,9 +16820,19 @@ export const PaymentGatewayApiFactory = function (configuration, basePath, axios
16225
16820
  return localVarFp.adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options).then((request) => request(axios, basePath));
16226
16821
  },
16227
16822
  /**
16228
- * Verifies the current status of a payment
16823
+ * 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.
16824
+ * @summary Verify payment status by order ID
16825
+ * @param {string} orderId Order ID (internal order ID like ORD_xxx or sub_xxx)
16826
+ * @param {*} [options] Override http request option.
16827
+ * @throws {RequiredError}
16828
+ */
16829
+ adminPaymentGatewayVerifyOrderIdGet(orderId, options) {
16830
+ return localVarFp.adminPaymentGatewayVerifyOrderIdGet(orderId, options).then((request) => request(axios, basePath));
16831
+ },
16832
+ /**
16833
+ * Verifies the current status of a payment and returns frontend-friendly status (\"success\", \"pending\", or \"error\"). Accepts internal order ID (e.g., ORD_xxx) which is mapped to gateway order ID internally. This endpoint can be used for polling instead of payment-status endpoint for immediate verification.
16229
16834
  * @summary Verify payment status
16230
- * @param {DataTypesVerifyPaymentRequest} dataTypesVerifyPaymentRequest Payment verification details
16835
+ * @param {DataTypesVerifyPaymentRequest} dataTypesVerifyPaymentRequest Payment verification details (gateway_order_id can be internal order ID)
16231
16836
  * @param {*} [options] Override http request option.
16232
16837
  * @throws {RequiredError}
16233
16838
  */
@@ -16327,9 +16932,20 @@ export class PaymentGatewayApi extends BaseAPI {
16327
16932
  return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
16328
16933
  }
16329
16934
  /**
16330
- * Verifies the current status of a payment
16935
+ * 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.
16936
+ * @summary Verify payment status by order ID
16937
+ * @param {string} orderId Order ID (internal order ID like ORD_xxx or sub_xxx)
16938
+ * @param {*} [options] Override http request option.
16939
+ * @throws {RequiredError}
16940
+ * @memberof PaymentGatewayApi
16941
+ */
16942
+ adminPaymentGatewayVerifyOrderIdGet(orderId, options) {
16943
+ return PaymentGatewayApiFp(this.configuration).adminPaymentGatewayVerifyOrderIdGet(orderId, options).then((request) => request(this.axios, this.basePath));
16944
+ }
16945
+ /**
16946
+ * Verifies the current status of a payment and returns frontend-friendly status (\"success\", \"pending\", or \"error\"). Accepts internal order ID (e.g., ORD_xxx) which is mapped to gateway order ID internally. This endpoint can be used for polling instead of payment-status endpoint for immediate verification.
16331
16947
  * @summary Verify payment status
16332
- * @param {DataTypesVerifyPaymentRequest} dataTypesVerifyPaymentRequest Payment verification details
16948
+ * @param {DataTypesVerifyPaymentRequest} dataTypesVerifyPaymentRequest Payment verification details (gateway_order_id can be internal order ID)
16333
16949
  * @param {*} [options] Override http request option.
16334
16950
  * @throws {RequiredError}
16335
16951
  * @memberof PaymentGatewayApi