@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/README.md +21 -3
- package/api.ts +2150 -1055
- package/dist/api.d.ts +885 -133
- package/dist/api.js +636 -11
- package/dist/esm/api.d.ts +885 -133
- package/dist/esm/api.js +624 -8
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.0.85.tgz +0 -0
- package/seekora-ai-admin-api-1.0.83.tgz +0 -0
package/dist/api.js
CHANGED
|
@@ -24,9 +24,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.AdminAnalyticsStoreXStoreIDKpiGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDGeoInsightsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoInsightsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDFiltersTrendsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersTrendsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDFiltersTrendsGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDFiltersGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDFiltersGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDFiltersEffectivenessGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersEffectivenessGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDFiltersCombinationsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersCombinationsGetSortByEnum = exports.AnalyticsApi = exports.AnalyticsApiFactory = exports.AnalyticsApiFp = exports.AnalyticsApiAxiosParamCreator = exports.AccountSettingsApi = exports.AccountSettingsApiFactory = exports.AccountSettingsApiFp = exports.AccountSettingsApiAxiosParamCreator = exports.APICallsApi = exports.APICallsApiFactory = exports.APICallsApiFp = exports.APICallsApiAxiosParamCreator = exports.RefundRefundPreviewRequestDtoRefundTypeEnum = exports.DataTypesUpdateWordStatusRequestWordTypeEnum = exports.DataTypesUpdatePluralDeclensionRequestTypeEnum = exports.DataTypesRefundCalculationRequestDtoRefundTypeEnum = exports.DataTypesRefundApprovalDtoActionEnum = exports.DataTypesProcessRefundRequestDtoRefundTypeEnum = exports.DataTypesCreditTransactionTransactionTypeEnum = exports.DataTypesCreateTaskRequestTypeEnum = exports.DataTypesCreateTaskRequestIndexingStrategyEnum = exports.DataTypesCreateTaskRequestFrequencyEnum = exports.DataTypesCreateRefundRequestDtoRefundTypeEnum = exports.DataTypesCreatePluralDeclensionRequestTypeEnum = exports.DataTypesCreatePaymentOrderRequestPaymentTypeEnum = exports.DataTypesCreateCustomWordListRequestTypeEnum = exports.DataTypesBillingAlertRequestAlertTypeEnum = exports.AnalyticsRuleType = exports.AnalyticsQuerySuggestionStatus = exports.AnalyticsQuerySuggestionSource = exports.AnalyticsBulkOperation = exports.AnalyticsBannedMatchType = void 0;
|
|
26
26
|
exports.CommonApiAxiosParamCreator = exports.BillingDashboardApi = exports.BillingDashboardApiFactory = exports.BillingDashboardApiFp = exports.BillingDashboardApiAxiosParamCreator = exports.AutomatedRefundManagementApi = exports.AutomatedRefundManagementApiFactory = exports.AutomatedRefundManagementApiFp = exports.AutomatedRefundManagementApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AnalyticsRulesApi = exports.AnalyticsRulesApiFactory = exports.AnalyticsRulesApiFp = exports.AnalyticsRulesApiAxiosParamCreator = exports.AnalyticsEventsApi = exports.AnalyticsEventsApiFactory = exports.AnalyticsEventsApiFp = exports.AnalyticsEventsApiAxiosParamCreator = exports.AdminAnalyticsStoreXStoreIDTagsSummaryGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDTagsSummaryGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDTagsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDTagsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDResultsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDResultsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDResultsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDResultsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesQueryInsightsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesQueryInsightsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDKpiGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDKpiGetTagsMatchModeEnum = void 0;
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
27
|
+
exports.LimitsApi = exports.LimitsApiFactory = exports.LimitsApiFp = exports.LimitsApiAxiosParamCreator = exports.AdminAnalyticsStoreXStoreIDQueriesItemPerformanceGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesItemPerformanceGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsTrendsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsTrendsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsTrendsGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDItemsPerformanceGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsPerformanceGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetGroupByEnum = exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDItemsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsDiscoveryGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsDiscoveryGetSortByEnum = exports.ItemAnalyticsApi = exports.ItemAnalyticsApiFactory = exports.ItemAnalyticsApiFp = exports.ItemAnalyticsApiAxiosParamCreator = exports.FeatureLimitsAdminApi = exports.FeatureLimitsAdminApiFactory = exports.FeatureLimitsAdminApiFp = exports.FeatureLimitsAdminApiAxiosParamCreator = exports.FeatureLimitsApi = exports.FeatureLimitsApiFactory = exports.FeatureLimitsApiFp = exports.FeatureLimitsApiAxiosParamCreator = exports.DocumentsApi = exports.DocumentsApiFactory = exports.DocumentsApiFp = exports.DocumentsApiAxiosParamCreator = exports.CustomStopwordsApi = exports.CustomStopwordsApiFactory = exports.CustomStopwordsApiFp = exports.CustomStopwordsApiAxiosParamCreator = exports.CreditsTransactionsGetTypeEnum = exports.CreditsApi = exports.CreditsApiFactory = exports.CreditsApiFp = exports.CreditsApiAxiosParamCreator = exports.ConnectorsApi = exports.ConnectorsApiFactory = exports.ConnectorsApiFp = exports.ConnectorsApiAxiosParamCreator = exports.CommonApi = exports.CommonApiFactory = exports.CommonApiFp = void 0;
|
|
28
|
+
exports.V1SuggestionsQueriesGetTimeRangeEnum = exports.V1SuggestionsQueriesGetTagsMatchModeEnum = exports.QuerySuggestionsApi = exports.QuerySuggestionsApiFactory = exports.QuerySuggestionsApiFp = exports.QuerySuggestionsApiAxiosParamCreator = exports.PluralsDeclensionsApi = exports.PluralsDeclensionsApiFactory = exports.PluralsDeclensionsApiFp = exports.PluralsDeclensionsApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PaymentsApi = exports.PaymentsApiFactory = exports.PaymentsApiFp = exports.PaymentsApiAxiosParamCreator = exports.PaymentGatewayApi = exports.PaymentGatewayApiFactory = exports.PaymentGatewayApiFp = exports.PaymentGatewayApiAxiosParamCreator = exports.ParentMenusApi = exports.ParentMenusApiFactory = exports.ParentMenusApiFp = exports.ParentMenusApiAxiosParamCreator = exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.OnboardingApi = exports.OnboardingApiFactory = exports.OnboardingApiFp = exports.OnboardingApiAxiosParamCreator = exports.NewsLettersApi = exports.NewsLettersApiFactory = exports.NewsLettersApiFp = exports.NewsLettersApiAxiosParamCreator = exports.MongoDbApi = exports.MongoDbApiFactory = exports.MongoDbApiFp = exports.MongoDbApiAxiosParamCreator = exports.ModulesApi = exports.ModulesApiFactory = exports.ModulesApiFp = exports.ModulesApiAxiosParamCreator = exports.MenusApi = exports.MenusApiFactory = exports.MenusApiFp = exports.MenusApiAxiosParamCreator = void 0;
|
|
29
|
+
exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SubscriptionsApi = exports.SubscriptionsApiFactory = exports.SubscriptionsApiFp = exports.SubscriptionsApiAxiosParamCreator = exports.StoresApi = exports.StoresApiFactory = exports.StoresApiFp = exports.StoresApiAxiosParamCreator = exports.StoreDocumentsApi = exports.StoreDocumentsApiFactory = exports.StoreDocumentsApiFp = exports.StoreDocumentsApiAxiosParamCreator = exports.StoreCreationApi = exports.StoreCreationApiFactory = exports.StoreCreationApiFp = exports.StoreCreationApiAxiosParamCreator = exports.StopwordsApi = exports.StopwordsApiFactory = exports.StopwordsApiFp = exports.StopwordsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.RolesApi = exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiAxiosParamCreator = exports.RoleRightsApi = exports.RoleRightsApiFactory = exports.RoleRightsApiFp = exports.RoleRightsApiAxiosParamCreator = exports.RequestsApi = exports.RequestsApiFactory = exports.RequestsApiFp = exports.RequestsApiAxiosParamCreator = exports.RegisterApi = exports.RegisterApiFactory = exports.RegisterApiFp = exports.RegisterApiAxiosParamCreator = exports.RefundManagementApi = exports.RefundManagementApiFactory = exports.RefundManagementApiFp = exports.RefundManagementApiAxiosParamCreator = exports.QuerySuggestionsManagementApi = exports.QuerySuggestionsManagementApiFactory = exports.QuerySuggestionsManagementApiFp = exports.QuerySuggestionsManagementApiAxiosParamCreator = void 0;
|
|
30
|
+
exports.UserApi = exports.UserApiFactory = void 0;
|
|
30
31
|
const axios_1 = require("axios");
|
|
31
32
|
// Some imports not used depending on template conditions
|
|
32
33
|
// @ts-ignore
|
|
@@ -10428,6 +10429,562 @@ class DocumentsApi extends base_1.BaseAPI {
|
|
|
10428
10429
|
}
|
|
10429
10430
|
}
|
|
10430
10431
|
exports.DocumentsApi = DocumentsApi;
|
|
10432
|
+
/**
|
|
10433
|
+
* FeatureLimitsApi - axios parameter creator
|
|
10434
|
+
* @export
|
|
10435
|
+
*/
|
|
10436
|
+
const FeatureLimitsApiAxiosParamCreator = function (configuration) {
|
|
10437
|
+
return {
|
|
10438
|
+
/**
|
|
10439
|
+
* Retrieves log of feature limit violations for monitoring
|
|
10440
|
+
* @summary Get feature limit violations
|
|
10441
|
+
* @param {string} [featureName] Filter by feature name
|
|
10442
|
+
* @param {number} [limit] Number of records to return (default: 50)
|
|
10443
|
+
* @param {*} [options] Override http request option.
|
|
10444
|
+
* @throws {RequiredError}
|
|
10445
|
+
*/
|
|
10446
|
+
apiAdminFeatureLimitsViolationsGet: (featureName_1, limit_1, ...args_1) => __awaiter(this, [featureName_1, limit_1, ...args_1], void 0, function* (featureName, limit, options = {}) {
|
|
10447
|
+
const localVarPath = `/api/admin/feature-limits/violations`;
|
|
10448
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10449
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10450
|
+
let baseOptions;
|
|
10451
|
+
if (configuration) {
|
|
10452
|
+
baseOptions = configuration.baseOptions;
|
|
10453
|
+
}
|
|
10454
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10455
|
+
const localVarHeaderParameter = {};
|
|
10456
|
+
const localVarQueryParameter = {};
|
|
10457
|
+
// authentication BearerAuth required
|
|
10458
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
10459
|
+
if (featureName !== undefined) {
|
|
10460
|
+
localVarQueryParameter['feature_name'] = featureName;
|
|
10461
|
+
}
|
|
10462
|
+
if (limit !== undefined) {
|
|
10463
|
+
localVarQueryParameter['limit'] = limit;
|
|
10464
|
+
}
|
|
10465
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10466
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10467
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10468
|
+
return {
|
|
10469
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10470
|
+
options: localVarRequestOptions,
|
|
10471
|
+
};
|
|
10472
|
+
}),
|
|
10473
|
+
/**
|
|
10474
|
+
* Checks if a specific feature is within limits without incrementing usage
|
|
10475
|
+
* @summary Check if a feature can be used
|
|
10476
|
+
* @param {string} featureName Feature name to check
|
|
10477
|
+
* @param {number} [amount] Amount to check (default: 1)
|
|
10478
|
+
* @param {*} [options] Override http request option.
|
|
10479
|
+
* @throws {RequiredError}
|
|
10480
|
+
*/
|
|
10481
|
+
apiFeatureLimitsCheckGet: (featureName_1, amount_1, ...args_1) => __awaiter(this, [featureName_1, amount_1, ...args_1], void 0, function* (featureName, amount, options = {}) {
|
|
10482
|
+
// verify required parameter 'featureName' is not null or undefined
|
|
10483
|
+
(0, common_1.assertParamExists)('apiFeatureLimitsCheckGet', 'featureName', featureName);
|
|
10484
|
+
const localVarPath = `/api/feature-limits/check`;
|
|
10485
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10486
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10487
|
+
let baseOptions;
|
|
10488
|
+
if (configuration) {
|
|
10489
|
+
baseOptions = configuration.baseOptions;
|
|
10490
|
+
}
|
|
10491
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10492
|
+
const localVarHeaderParameter = {};
|
|
10493
|
+
const localVarQueryParameter = {};
|
|
10494
|
+
// authentication BearerAuth required
|
|
10495
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
10496
|
+
if (featureName !== undefined) {
|
|
10497
|
+
localVarQueryParameter['feature_name'] = featureName;
|
|
10498
|
+
}
|
|
10499
|
+
if (amount !== undefined) {
|
|
10500
|
+
localVarQueryParameter['amount'] = amount;
|
|
10501
|
+
}
|
|
10502
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10503
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10504
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10505
|
+
return {
|
|
10506
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10507
|
+
options: localVarRequestOptions,
|
|
10508
|
+
};
|
|
10509
|
+
}),
|
|
10510
|
+
/**
|
|
10511
|
+
* Retrieves historical feature usage events for the organization
|
|
10512
|
+
* @summary Get feature usage history
|
|
10513
|
+
* @param {string} [featureName] Filter by feature name
|
|
10514
|
+
* @param {number} [limit] Number of records to return (default: 100)
|
|
10515
|
+
* @param {*} [options] Override http request option.
|
|
10516
|
+
* @throws {RequiredError}
|
|
10517
|
+
*/
|
|
10518
|
+
apiFeatureLimitsHistoryGet: (featureName_1, limit_1, ...args_1) => __awaiter(this, [featureName_1, limit_1, ...args_1], void 0, function* (featureName, limit, options = {}) {
|
|
10519
|
+
const localVarPath = `/api/feature-limits/history`;
|
|
10520
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10521
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10522
|
+
let baseOptions;
|
|
10523
|
+
if (configuration) {
|
|
10524
|
+
baseOptions = configuration.baseOptions;
|
|
10525
|
+
}
|
|
10526
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10527
|
+
const localVarHeaderParameter = {};
|
|
10528
|
+
const localVarQueryParameter = {};
|
|
10529
|
+
// authentication BearerAuth required
|
|
10530
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
10531
|
+
if (featureName !== undefined) {
|
|
10532
|
+
localVarQueryParameter['feature_name'] = featureName;
|
|
10533
|
+
}
|
|
10534
|
+
if (limit !== undefined) {
|
|
10535
|
+
localVarQueryParameter['limit'] = limit;
|
|
10536
|
+
}
|
|
10537
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10538
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10539
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10540
|
+
return {
|
|
10541
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10542
|
+
options: localVarRequestOptions,
|
|
10543
|
+
};
|
|
10544
|
+
}),
|
|
10545
|
+
/**
|
|
10546
|
+
* Retrieves the organization\'s current plan with all feature limits
|
|
10547
|
+
* @summary Get organization plan features
|
|
10548
|
+
* @param {*} [options] Override http request option.
|
|
10549
|
+
* @throws {RequiredError}
|
|
10550
|
+
*/
|
|
10551
|
+
apiFeatureLimitsPlanGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
10552
|
+
const localVarPath = `/api/feature-limits/plan`;
|
|
10553
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10554
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10555
|
+
let baseOptions;
|
|
10556
|
+
if (configuration) {
|
|
10557
|
+
baseOptions = configuration.baseOptions;
|
|
10558
|
+
}
|
|
10559
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10560
|
+
const localVarHeaderParameter = {};
|
|
10561
|
+
const localVarQueryParameter = {};
|
|
10562
|
+
// authentication BearerAuth required
|
|
10563
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
10564
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10565
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10566
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10567
|
+
return {
|
|
10568
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10569
|
+
options: localVarRequestOptions,
|
|
10570
|
+
};
|
|
10571
|
+
}),
|
|
10572
|
+
/**
|
|
10573
|
+
* Retrieves current feature usage statistics for the organization
|
|
10574
|
+
* @summary Get feature usage statistics
|
|
10575
|
+
* @param {*} [options] Override http request option.
|
|
10576
|
+
* @throws {RequiredError}
|
|
10577
|
+
*/
|
|
10578
|
+
apiFeatureLimitsUsageGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
10579
|
+
const localVarPath = `/api/feature-limits/usage`;
|
|
10580
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10581
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10582
|
+
let baseOptions;
|
|
10583
|
+
if (configuration) {
|
|
10584
|
+
baseOptions = configuration.baseOptions;
|
|
10585
|
+
}
|
|
10586
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10587
|
+
const localVarHeaderParameter = {};
|
|
10588
|
+
const localVarQueryParameter = {};
|
|
10589
|
+
// authentication BearerAuth required
|
|
10590
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
10591
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10592
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10593
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10594
|
+
return {
|
|
10595
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10596
|
+
options: localVarRequestOptions,
|
|
10597
|
+
};
|
|
10598
|
+
}),
|
|
10599
|
+
};
|
|
10600
|
+
};
|
|
10601
|
+
exports.FeatureLimitsApiAxiosParamCreator = FeatureLimitsApiAxiosParamCreator;
|
|
10602
|
+
/**
|
|
10603
|
+
* FeatureLimitsApi - functional programming interface
|
|
10604
|
+
* @export
|
|
10605
|
+
*/
|
|
10606
|
+
const FeatureLimitsApiFp = function (configuration) {
|
|
10607
|
+
const localVarAxiosParamCreator = (0, exports.FeatureLimitsApiAxiosParamCreator)(configuration);
|
|
10608
|
+
return {
|
|
10609
|
+
/**
|
|
10610
|
+
* Retrieves log of feature limit violations for monitoring
|
|
10611
|
+
* @summary Get feature limit violations
|
|
10612
|
+
* @param {string} [featureName] Filter by feature name
|
|
10613
|
+
* @param {number} [limit] Number of records to return (default: 50)
|
|
10614
|
+
* @param {*} [options] Override http request option.
|
|
10615
|
+
* @throws {RequiredError}
|
|
10616
|
+
*/
|
|
10617
|
+
apiAdminFeatureLimitsViolationsGet(featureName, limit, options) {
|
|
10618
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10619
|
+
var _a, _b, _c;
|
|
10620
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminFeatureLimitsViolationsGet(featureName, limit, options);
|
|
10621
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10622
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FeatureLimitsApi.apiAdminFeatureLimitsViolationsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10623
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10624
|
+
});
|
|
10625
|
+
},
|
|
10626
|
+
/**
|
|
10627
|
+
* Checks if a specific feature is within limits without incrementing usage
|
|
10628
|
+
* @summary Check if a feature can be used
|
|
10629
|
+
* @param {string} featureName Feature name to check
|
|
10630
|
+
* @param {number} [amount] Amount to check (default: 1)
|
|
10631
|
+
* @param {*} [options] Override http request option.
|
|
10632
|
+
* @throws {RequiredError}
|
|
10633
|
+
*/
|
|
10634
|
+
apiFeatureLimitsCheckGet(featureName, amount, options) {
|
|
10635
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10636
|
+
var _a, _b, _c;
|
|
10637
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiFeatureLimitsCheckGet(featureName, amount, options);
|
|
10638
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10639
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FeatureLimitsApi.apiFeatureLimitsCheckGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10640
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10641
|
+
});
|
|
10642
|
+
},
|
|
10643
|
+
/**
|
|
10644
|
+
* Retrieves historical feature usage events for the organization
|
|
10645
|
+
* @summary Get feature usage history
|
|
10646
|
+
* @param {string} [featureName] Filter by feature name
|
|
10647
|
+
* @param {number} [limit] Number of records to return (default: 100)
|
|
10648
|
+
* @param {*} [options] Override http request option.
|
|
10649
|
+
* @throws {RequiredError}
|
|
10650
|
+
*/
|
|
10651
|
+
apiFeatureLimitsHistoryGet(featureName, limit, options) {
|
|
10652
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10653
|
+
var _a, _b, _c;
|
|
10654
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiFeatureLimitsHistoryGet(featureName, limit, options);
|
|
10655
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10656
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FeatureLimitsApi.apiFeatureLimitsHistoryGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10657
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10658
|
+
});
|
|
10659
|
+
},
|
|
10660
|
+
/**
|
|
10661
|
+
* Retrieves the organization\'s current plan with all feature limits
|
|
10662
|
+
* @summary Get organization plan features
|
|
10663
|
+
* @param {*} [options] Override http request option.
|
|
10664
|
+
* @throws {RequiredError}
|
|
10665
|
+
*/
|
|
10666
|
+
apiFeatureLimitsPlanGet(options) {
|
|
10667
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10668
|
+
var _a, _b, _c;
|
|
10669
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiFeatureLimitsPlanGet(options);
|
|
10670
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10671
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FeatureLimitsApi.apiFeatureLimitsPlanGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10672
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10673
|
+
});
|
|
10674
|
+
},
|
|
10675
|
+
/**
|
|
10676
|
+
* Retrieves current feature usage statistics for the organization
|
|
10677
|
+
* @summary Get feature usage statistics
|
|
10678
|
+
* @param {*} [options] Override http request option.
|
|
10679
|
+
* @throws {RequiredError}
|
|
10680
|
+
*/
|
|
10681
|
+
apiFeatureLimitsUsageGet(options) {
|
|
10682
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10683
|
+
var _a, _b, _c;
|
|
10684
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiFeatureLimitsUsageGet(options);
|
|
10685
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10686
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FeatureLimitsApi.apiFeatureLimitsUsageGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10687
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10688
|
+
});
|
|
10689
|
+
},
|
|
10690
|
+
};
|
|
10691
|
+
};
|
|
10692
|
+
exports.FeatureLimitsApiFp = FeatureLimitsApiFp;
|
|
10693
|
+
/**
|
|
10694
|
+
* FeatureLimitsApi - factory interface
|
|
10695
|
+
* @export
|
|
10696
|
+
*/
|
|
10697
|
+
const FeatureLimitsApiFactory = function (configuration, basePath, axios) {
|
|
10698
|
+
const localVarFp = (0, exports.FeatureLimitsApiFp)(configuration);
|
|
10699
|
+
return {
|
|
10700
|
+
/**
|
|
10701
|
+
* Retrieves log of feature limit violations for monitoring
|
|
10702
|
+
* @summary Get feature limit violations
|
|
10703
|
+
* @param {string} [featureName] Filter by feature name
|
|
10704
|
+
* @param {number} [limit] Number of records to return (default: 50)
|
|
10705
|
+
* @param {*} [options] Override http request option.
|
|
10706
|
+
* @throws {RequiredError}
|
|
10707
|
+
*/
|
|
10708
|
+
apiAdminFeatureLimitsViolationsGet(featureName, limit, options) {
|
|
10709
|
+
return localVarFp.apiAdminFeatureLimitsViolationsGet(featureName, limit, options).then((request) => request(axios, basePath));
|
|
10710
|
+
},
|
|
10711
|
+
/**
|
|
10712
|
+
* Checks if a specific feature is within limits without incrementing usage
|
|
10713
|
+
* @summary Check if a feature can be used
|
|
10714
|
+
* @param {string} featureName Feature name to check
|
|
10715
|
+
* @param {number} [amount] Amount to check (default: 1)
|
|
10716
|
+
* @param {*} [options] Override http request option.
|
|
10717
|
+
* @throws {RequiredError}
|
|
10718
|
+
*/
|
|
10719
|
+
apiFeatureLimitsCheckGet(featureName, amount, options) {
|
|
10720
|
+
return localVarFp.apiFeatureLimitsCheckGet(featureName, amount, options).then((request) => request(axios, basePath));
|
|
10721
|
+
},
|
|
10722
|
+
/**
|
|
10723
|
+
* Retrieves historical feature usage events for the organization
|
|
10724
|
+
* @summary Get feature usage history
|
|
10725
|
+
* @param {string} [featureName] Filter by feature name
|
|
10726
|
+
* @param {number} [limit] Number of records to return (default: 100)
|
|
10727
|
+
* @param {*} [options] Override http request option.
|
|
10728
|
+
* @throws {RequiredError}
|
|
10729
|
+
*/
|
|
10730
|
+
apiFeatureLimitsHistoryGet(featureName, limit, options) {
|
|
10731
|
+
return localVarFp.apiFeatureLimitsHistoryGet(featureName, limit, options).then((request) => request(axios, basePath));
|
|
10732
|
+
},
|
|
10733
|
+
/**
|
|
10734
|
+
* Retrieves the organization\'s current plan with all feature limits
|
|
10735
|
+
* @summary Get organization plan features
|
|
10736
|
+
* @param {*} [options] Override http request option.
|
|
10737
|
+
* @throws {RequiredError}
|
|
10738
|
+
*/
|
|
10739
|
+
apiFeatureLimitsPlanGet(options) {
|
|
10740
|
+
return localVarFp.apiFeatureLimitsPlanGet(options).then((request) => request(axios, basePath));
|
|
10741
|
+
},
|
|
10742
|
+
/**
|
|
10743
|
+
* Retrieves current feature usage statistics for the organization
|
|
10744
|
+
* @summary Get feature usage statistics
|
|
10745
|
+
* @param {*} [options] Override http request option.
|
|
10746
|
+
* @throws {RequiredError}
|
|
10747
|
+
*/
|
|
10748
|
+
apiFeatureLimitsUsageGet(options) {
|
|
10749
|
+
return localVarFp.apiFeatureLimitsUsageGet(options).then((request) => request(axios, basePath));
|
|
10750
|
+
},
|
|
10751
|
+
};
|
|
10752
|
+
};
|
|
10753
|
+
exports.FeatureLimitsApiFactory = FeatureLimitsApiFactory;
|
|
10754
|
+
/**
|
|
10755
|
+
* FeatureLimitsApi - object-oriented interface
|
|
10756
|
+
* @export
|
|
10757
|
+
* @class FeatureLimitsApi
|
|
10758
|
+
* @extends {BaseAPI}
|
|
10759
|
+
*/
|
|
10760
|
+
class FeatureLimitsApi extends base_1.BaseAPI {
|
|
10761
|
+
/**
|
|
10762
|
+
* Retrieves log of feature limit violations for monitoring
|
|
10763
|
+
* @summary Get feature limit violations
|
|
10764
|
+
* @param {string} [featureName] Filter by feature name
|
|
10765
|
+
* @param {number} [limit] Number of records to return (default: 50)
|
|
10766
|
+
* @param {*} [options] Override http request option.
|
|
10767
|
+
* @throws {RequiredError}
|
|
10768
|
+
* @memberof FeatureLimitsApi
|
|
10769
|
+
*/
|
|
10770
|
+
apiAdminFeatureLimitsViolationsGet(featureName, limit, options) {
|
|
10771
|
+
return (0, exports.FeatureLimitsApiFp)(this.configuration).apiAdminFeatureLimitsViolationsGet(featureName, limit, options).then((request) => request(this.axios, this.basePath));
|
|
10772
|
+
}
|
|
10773
|
+
/**
|
|
10774
|
+
* Checks if a specific feature is within limits without incrementing usage
|
|
10775
|
+
* @summary Check if a feature can be used
|
|
10776
|
+
* @param {string} featureName Feature name to check
|
|
10777
|
+
* @param {number} [amount] Amount to check (default: 1)
|
|
10778
|
+
* @param {*} [options] Override http request option.
|
|
10779
|
+
* @throws {RequiredError}
|
|
10780
|
+
* @memberof FeatureLimitsApi
|
|
10781
|
+
*/
|
|
10782
|
+
apiFeatureLimitsCheckGet(featureName, amount, options) {
|
|
10783
|
+
return (0, exports.FeatureLimitsApiFp)(this.configuration).apiFeatureLimitsCheckGet(featureName, amount, options).then((request) => request(this.axios, this.basePath));
|
|
10784
|
+
}
|
|
10785
|
+
/**
|
|
10786
|
+
* Retrieves historical feature usage events for the organization
|
|
10787
|
+
* @summary Get feature usage history
|
|
10788
|
+
* @param {string} [featureName] Filter by feature name
|
|
10789
|
+
* @param {number} [limit] Number of records to return (default: 100)
|
|
10790
|
+
* @param {*} [options] Override http request option.
|
|
10791
|
+
* @throws {RequiredError}
|
|
10792
|
+
* @memberof FeatureLimitsApi
|
|
10793
|
+
*/
|
|
10794
|
+
apiFeatureLimitsHistoryGet(featureName, limit, options) {
|
|
10795
|
+
return (0, exports.FeatureLimitsApiFp)(this.configuration).apiFeatureLimitsHistoryGet(featureName, limit, options).then((request) => request(this.axios, this.basePath));
|
|
10796
|
+
}
|
|
10797
|
+
/**
|
|
10798
|
+
* Retrieves the organization\'s current plan with all feature limits
|
|
10799
|
+
* @summary Get organization plan features
|
|
10800
|
+
* @param {*} [options] Override http request option.
|
|
10801
|
+
* @throws {RequiredError}
|
|
10802
|
+
* @memberof FeatureLimitsApi
|
|
10803
|
+
*/
|
|
10804
|
+
apiFeatureLimitsPlanGet(options) {
|
|
10805
|
+
return (0, exports.FeatureLimitsApiFp)(this.configuration).apiFeatureLimitsPlanGet(options).then((request) => request(this.axios, this.basePath));
|
|
10806
|
+
}
|
|
10807
|
+
/**
|
|
10808
|
+
* Retrieves current feature usage statistics for the organization
|
|
10809
|
+
* @summary Get feature usage statistics
|
|
10810
|
+
* @param {*} [options] Override http request option.
|
|
10811
|
+
* @throws {RequiredError}
|
|
10812
|
+
* @memberof FeatureLimitsApi
|
|
10813
|
+
*/
|
|
10814
|
+
apiFeatureLimitsUsageGet(options) {
|
|
10815
|
+
return (0, exports.FeatureLimitsApiFp)(this.configuration).apiFeatureLimitsUsageGet(options).then((request) => request(this.axios, this.basePath));
|
|
10816
|
+
}
|
|
10817
|
+
}
|
|
10818
|
+
exports.FeatureLimitsApi = FeatureLimitsApi;
|
|
10819
|
+
/**
|
|
10820
|
+
* FeatureLimitsAdminApi - axios parameter creator
|
|
10821
|
+
* @export
|
|
10822
|
+
*/
|
|
10823
|
+
const FeatureLimitsAdminApiAxiosParamCreator = function (configuration) {
|
|
10824
|
+
return {
|
|
10825
|
+
/**
|
|
10826
|
+
* Invalidates the cached plan data for an organization
|
|
10827
|
+
* @summary Invalidate plan cache (Admin)
|
|
10828
|
+
* @param {*} [options] Override http request option.
|
|
10829
|
+
* @throws {RequiredError}
|
|
10830
|
+
*/
|
|
10831
|
+
apiAdminFeatureLimitsCacheInvalidatePost: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
10832
|
+
const localVarPath = `/api/admin/feature-limits/cache/invalidate`;
|
|
10833
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10834
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10835
|
+
let baseOptions;
|
|
10836
|
+
if (configuration) {
|
|
10837
|
+
baseOptions = configuration.baseOptions;
|
|
10838
|
+
}
|
|
10839
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
10840
|
+
const localVarHeaderParameter = {};
|
|
10841
|
+
const localVarQueryParameter = {};
|
|
10842
|
+
// authentication BearerAuth required
|
|
10843
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
10844
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10845
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10846
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10847
|
+
return {
|
|
10848
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10849
|
+
options: localVarRequestOptions,
|
|
10850
|
+
};
|
|
10851
|
+
}),
|
|
10852
|
+
/**
|
|
10853
|
+
* Resets usage counter for a specific feature (admin only)
|
|
10854
|
+
* @summary Reset feature usage (Admin)
|
|
10855
|
+
* @param {string} featureName Feature name to reset
|
|
10856
|
+
* @param {*} [options] Override http request option.
|
|
10857
|
+
* @throws {RequiredError}
|
|
10858
|
+
*/
|
|
10859
|
+
apiAdminFeatureLimitsResetPost: (featureName_1, ...args_1) => __awaiter(this, [featureName_1, ...args_1], void 0, function* (featureName, options = {}) {
|
|
10860
|
+
// verify required parameter 'featureName' is not null or undefined
|
|
10861
|
+
(0, common_1.assertParamExists)('apiAdminFeatureLimitsResetPost', 'featureName', featureName);
|
|
10862
|
+
const localVarPath = `/api/admin/feature-limits/reset`;
|
|
10863
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10864
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10865
|
+
let baseOptions;
|
|
10866
|
+
if (configuration) {
|
|
10867
|
+
baseOptions = configuration.baseOptions;
|
|
10868
|
+
}
|
|
10869
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
10870
|
+
const localVarHeaderParameter = {};
|
|
10871
|
+
const localVarQueryParameter = {};
|
|
10872
|
+
// authentication BearerAuth required
|
|
10873
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
10874
|
+
if (featureName !== undefined) {
|
|
10875
|
+
localVarQueryParameter['feature_name'] = featureName;
|
|
10876
|
+
}
|
|
10877
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10878
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
10879
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10880
|
+
return {
|
|
10881
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10882
|
+
options: localVarRequestOptions,
|
|
10883
|
+
};
|
|
10884
|
+
}),
|
|
10885
|
+
};
|
|
10886
|
+
};
|
|
10887
|
+
exports.FeatureLimitsAdminApiAxiosParamCreator = FeatureLimitsAdminApiAxiosParamCreator;
|
|
10888
|
+
/**
|
|
10889
|
+
* FeatureLimitsAdminApi - functional programming interface
|
|
10890
|
+
* @export
|
|
10891
|
+
*/
|
|
10892
|
+
const FeatureLimitsAdminApiFp = function (configuration) {
|
|
10893
|
+
const localVarAxiosParamCreator = (0, exports.FeatureLimitsAdminApiAxiosParamCreator)(configuration);
|
|
10894
|
+
return {
|
|
10895
|
+
/**
|
|
10896
|
+
* Invalidates the cached plan data for an organization
|
|
10897
|
+
* @summary Invalidate plan cache (Admin)
|
|
10898
|
+
* @param {*} [options] Override http request option.
|
|
10899
|
+
* @throws {RequiredError}
|
|
10900
|
+
*/
|
|
10901
|
+
apiAdminFeatureLimitsCacheInvalidatePost(options) {
|
|
10902
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10903
|
+
var _a, _b, _c;
|
|
10904
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminFeatureLimitsCacheInvalidatePost(options);
|
|
10905
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10906
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FeatureLimitsAdminApi.apiAdminFeatureLimitsCacheInvalidatePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10907
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10908
|
+
});
|
|
10909
|
+
},
|
|
10910
|
+
/**
|
|
10911
|
+
* Resets usage counter for a specific feature (admin only)
|
|
10912
|
+
* @summary Reset feature usage (Admin)
|
|
10913
|
+
* @param {string} featureName Feature name to reset
|
|
10914
|
+
* @param {*} [options] Override http request option.
|
|
10915
|
+
* @throws {RequiredError}
|
|
10916
|
+
*/
|
|
10917
|
+
apiAdminFeatureLimitsResetPost(featureName, options) {
|
|
10918
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10919
|
+
var _a, _b, _c;
|
|
10920
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminFeatureLimitsResetPost(featureName, options);
|
|
10921
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
10922
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FeatureLimitsAdminApi.apiAdminFeatureLimitsResetPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
10923
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
10924
|
+
});
|
|
10925
|
+
},
|
|
10926
|
+
};
|
|
10927
|
+
};
|
|
10928
|
+
exports.FeatureLimitsAdminApiFp = FeatureLimitsAdminApiFp;
|
|
10929
|
+
/**
|
|
10930
|
+
* FeatureLimitsAdminApi - factory interface
|
|
10931
|
+
* @export
|
|
10932
|
+
*/
|
|
10933
|
+
const FeatureLimitsAdminApiFactory = function (configuration, basePath, axios) {
|
|
10934
|
+
const localVarFp = (0, exports.FeatureLimitsAdminApiFp)(configuration);
|
|
10935
|
+
return {
|
|
10936
|
+
/**
|
|
10937
|
+
* Invalidates the cached plan data for an organization
|
|
10938
|
+
* @summary Invalidate plan cache (Admin)
|
|
10939
|
+
* @param {*} [options] Override http request option.
|
|
10940
|
+
* @throws {RequiredError}
|
|
10941
|
+
*/
|
|
10942
|
+
apiAdminFeatureLimitsCacheInvalidatePost(options) {
|
|
10943
|
+
return localVarFp.apiAdminFeatureLimitsCacheInvalidatePost(options).then((request) => request(axios, basePath));
|
|
10944
|
+
},
|
|
10945
|
+
/**
|
|
10946
|
+
* Resets usage counter for a specific feature (admin only)
|
|
10947
|
+
* @summary Reset feature usage (Admin)
|
|
10948
|
+
* @param {string} featureName Feature name to reset
|
|
10949
|
+
* @param {*} [options] Override http request option.
|
|
10950
|
+
* @throws {RequiredError}
|
|
10951
|
+
*/
|
|
10952
|
+
apiAdminFeatureLimitsResetPost(featureName, options) {
|
|
10953
|
+
return localVarFp.apiAdminFeatureLimitsResetPost(featureName, options).then((request) => request(axios, basePath));
|
|
10954
|
+
},
|
|
10955
|
+
};
|
|
10956
|
+
};
|
|
10957
|
+
exports.FeatureLimitsAdminApiFactory = FeatureLimitsAdminApiFactory;
|
|
10958
|
+
/**
|
|
10959
|
+
* FeatureLimitsAdminApi - object-oriented interface
|
|
10960
|
+
* @export
|
|
10961
|
+
* @class FeatureLimitsAdminApi
|
|
10962
|
+
* @extends {BaseAPI}
|
|
10963
|
+
*/
|
|
10964
|
+
class FeatureLimitsAdminApi extends base_1.BaseAPI {
|
|
10965
|
+
/**
|
|
10966
|
+
* Invalidates the cached plan data for an organization
|
|
10967
|
+
* @summary Invalidate plan cache (Admin)
|
|
10968
|
+
* @param {*} [options] Override http request option.
|
|
10969
|
+
* @throws {RequiredError}
|
|
10970
|
+
* @memberof FeatureLimitsAdminApi
|
|
10971
|
+
*/
|
|
10972
|
+
apiAdminFeatureLimitsCacheInvalidatePost(options) {
|
|
10973
|
+
return (0, exports.FeatureLimitsAdminApiFp)(this.configuration).apiAdminFeatureLimitsCacheInvalidatePost(options).then((request) => request(this.axios, this.basePath));
|
|
10974
|
+
}
|
|
10975
|
+
/**
|
|
10976
|
+
* Resets usage counter for a specific feature (admin only)
|
|
10977
|
+
* @summary Reset feature usage (Admin)
|
|
10978
|
+
* @param {string} featureName Feature name to reset
|
|
10979
|
+
* @param {*} [options] Override http request option.
|
|
10980
|
+
* @throws {RequiredError}
|
|
10981
|
+
* @memberof FeatureLimitsAdminApi
|
|
10982
|
+
*/
|
|
10983
|
+
apiAdminFeatureLimitsResetPost(featureName, options) {
|
|
10984
|
+
return (0, exports.FeatureLimitsAdminApiFp)(this.configuration).apiAdminFeatureLimitsResetPost(featureName, options).then((request) => request(this.axios, this.basePath));
|
|
10985
|
+
}
|
|
10986
|
+
}
|
|
10987
|
+
exports.FeatureLimitsAdminApi = FeatureLimitsAdminApi;
|
|
10431
10988
|
/**
|
|
10432
10989
|
* ItemAnalyticsApi - axios parameter creator
|
|
10433
10990
|
* @export
|
|
@@ -15997,9 +16554,40 @@ const PaymentGatewayApiAxiosParamCreator = function (configuration) {
|
|
|
15997
16554
|
};
|
|
15998
16555
|
}),
|
|
15999
16556
|
/**
|
|
16000
|
-
* Verifies the current status of a payment
|
|
16557
|
+
* 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.
|
|
16558
|
+
* @summary Verify payment status by order ID
|
|
16559
|
+
* @param {string} orderId Order ID (internal order ID like ORD_xxx or sub_xxx)
|
|
16560
|
+
* @param {*} [options] Override http request option.
|
|
16561
|
+
* @throws {RequiredError}
|
|
16562
|
+
*/
|
|
16563
|
+
adminPaymentGatewayVerifyOrderIdGet: (orderId_1, ...args_1) => __awaiter(this, [orderId_1, ...args_1], void 0, function* (orderId, options = {}) {
|
|
16564
|
+
// verify required parameter 'orderId' is not null or undefined
|
|
16565
|
+
(0, common_1.assertParamExists)('adminPaymentGatewayVerifyOrderIdGet', 'orderId', orderId);
|
|
16566
|
+
const localVarPath = `/admin/payment-gateway/verify/{order_id}`
|
|
16567
|
+
.replace(`{${"order_id"}}`, encodeURIComponent(String(orderId)));
|
|
16568
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16569
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16570
|
+
let baseOptions;
|
|
16571
|
+
if (configuration) {
|
|
16572
|
+
baseOptions = configuration.baseOptions;
|
|
16573
|
+
}
|
|
16574
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
16575
|
+
const localVarHeaderParameter = {};
|
|
16576
|
+
const localVarQueryParameter = {};
|
|
16577
|
+
// authentication BearerAuth required
|
|
16578
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
16579
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16580
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16581
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16582
|
+
return {
|
|
16583
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16584
|
+
options: localVarRequestOptions,
|
|
16585
|
+
};
|
|
16586
|
+
}),
|
|
16587
|
+
/**
|
|
16588
|
+
* 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.
|
|
16001
16589
|
* @summary Verify payment status
|
|
16002
|
-
* @param {DataTypesVerifyPaymentRequest} dataTypesVerifyPaymentRequest Payment verification details
|
|
16590
|
+
* @param {DataTypesVerifyPaymentRequest} dataTypesVerifyPaymentRequest Payment verification details (gateway_order_id can be internal order ID)
|
|
16003
16591
|
* @param {*} [options] Override http request option.
|
|
16004
16592
|
* @throws {RequiredError}
|
|
16005
16593
|
*/
|
|
@@ -16204,9 +16792,25 @@ const PaymentGatewayApiFp = function (configuration) {
|
|
|
16204
16792
|
});
|
|
16205
16793
|
},
|
|
16206
16794
|
/**
|
|
16207
|
-
* Verifies the current status of a payment
|
|
16795
|
+
* 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.
|
|
16796
|
+
* @summary Verify payment status by order ID
|
|
16797
|
+
* @param {string} orderId Order ID (internal order ID like ORD_xxx or sub_xxx)
|
|
16798
|
+
* @param {*} [options] Override http request option.
|
|
16799
|
+
* @throws {RequiredError}
|
|
16800
|
+
*/
|
|
16801
|
+
adminPaymentGatewayVerifyOrderIdGet(orderId, options) {
|
|
16802
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16803
|
+
var _a, _b, _c;
|
|
16804
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminPaymentGatewayVerifyOrderIdGet(orderId, options);
|
|
16805
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16806
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentGatewayApi.adminPaymentGatewayVerifyOrderIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16807
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16808
|
+
});
|
|
16809
|
+
},
|
|
16810
|
+
/**
|
|
16811
|
+
* 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.
|
|
16208
16812
|
* @summary Verify payment status
|
|
16209
|
-
* @param {DataTypesVerifyPaymentRequest} dataTypesVerifyPaymentRequest Payment verification details
|
|
16813
|
+
* @param {DataTypesVerifyPaymentRequest} dataTypesVerifyPaymentRequest Payment verification details (gateway_order_id can be internal order ID)
|
|
16210
16814
|
* @param {*} [options] Override http request option.
|
|
16211
16815
|
* @throws {RequiredError}
|
|
16212
16816
|
*/
|
|
@@ -16326,9 +16930,19 @@ const PaymentGatewayApiFactory = function (configuration, basePath, axios) {
|
|
|
16326
16930
|
return localVarFp.adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options).then((request) => request(axios, basePath));
|
|
16327
16931
|
},
|
|
16328
16932
|
/**
|
|
16329
|
-
* Verifies the current status of a payment
|
|
16933
|
+
* 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.
|
|
16934
|
+
* @summary Verify payment status by order ID
|
|
16935
|
+
* @param {string} orderId Order ID (internal order ID like ORD_xxx or sub_xxx)
|
|
16936
|
+
* @param {*} [options] Override http request option.
|
|
16937
|
+
* @throws {RequiredError}
|
|
16938
|
+
*/
|
|
16939
|
+
adminPaymentGatewayVerifyOrderIdGet(orderId, options) {
|
|
16940
|
+
return localVarFp.adminPaymentGatewayVerifyOrderIdGet(orderId, options).then((request) => request(axios, basePath));
|
|
16941
|
+
},
|
|
16942
|
+
/**
|
|
16943
|
+
* 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.
|
|
16330
16944
|
* @summary Verify payment status
|
|
16331
|
-
* @param {DataTypesVerifyPaymentRequest} dataTypesVerifyPaymentRequest Payment verification details
|
|
16945
|
+
* @param {DataTypesVerifyPaymentRequest} dataTypesVerifyPaymentRequest Payment verification details (gateway_order_id can be internal order ID)
|
|
16332
16946
|
* @param {*} [options] Override http request option.
|
|
16333
16947
|
* @throws {RequiredError}
|
|
16334
16948
|
*/
|
|
@@ -16429,9 +17043,20 @@ class PaymentGatewayApi extends base_1.BaseAPI {
|
|
|
16429
17043
|
return (0, exports.PaymentGatewayApiFp)(this.configuration).adminPaymentGatewayRefundPost(dataTypesRefundRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
16430
17044
|
}
|
|
16431
17045
|
/**
|
|
16432
|
-
* Verifies the current status of a payment
|
|
17046
|
+
* 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.
|
|
17047
|
+
* @summary Verify payment status by order ID
|
|
17048
|
+
* @param {string} orderId Order ID (internal order ID like ORD_xxx or sub_xxx)
|
|
17049
|
+
* @param {*} [options] Override http request option.
|
|
17050
|
+
* @throws {RequiredError}
|
|
17051
|
+
* @memberof PaymentGatewayApi
|
|
17052
|
+
*/
|
|
17053
|
+
adminPaymentGatewayVerifyOrderIdGet(orderId, options) {
|
|
17054
|
+
return (0, exports.PaymentGatewayApiFp)(this.configuration).adminPaymentGatewayVerifyOrderIdGet(orderId, options).then((request) => request(this.axios, this.basePath));
|
|
17055
|
+
}
|
|
17056
|
+
/**
|
|
17057
|
+
* 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.
|
|
16433
17058
|
* @summary Verify payment status
|
|
16434
|
-
* @param {DataTypesVerifyPaymentRequest} dataTypesVerifyPaymentRequest Payment verification details
|
|
17059
|
+
* @param {DataTypesVerifyPaymentRequest} dataTypesVerifyPaymentRequest Payment verification details (gateway_order_id can be internal order ID)
|
|
16435
17060
|
* @param {*} [options] Override http request option.
|
|
16436
17061
|
* @throws {RequiredError}
|
|
16437
17062
|
* @memberof PaymentGatewayApi
|