@seekora-ai/admin-api 1.0.77 → 1.0.79
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 +41 -14
- package/api.ts +1597 -221
- package/dist/api.d.ts +1087 -80
- package/dist/api.js +774 -166
- package/dist/esm/api.d.ts +1087 -80
- package/dist/esm/api.js +769 -161
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.0.79.tgz +0 -0
- package/seekora-ai-admin-api-1.0.77.tgz +0 -0
package/dist/api.js
CHANGED
|
@@ -22,11 +22,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.UserApi = exports.UserApiFactory = 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 = void 0;
|
|
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
|
+
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.ModulesApi = exports.ModulesApiFactory = exports.ModulesApiFp = exports.ModulesApiAxiosParamCreator = exports.MenusApi = exports.MenusApiFactory = exports.MenusApiFp = exports.MenusApiAxiosParamCreator = 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.DocumentsApi = exports.DocumentsApiFactory = exports.DocumentsApiFp = exports.DocumentsApiAxiosParamCreator = exports.CustomStopwordsApi = exports.CustomStopwordsApiFactory = exports.CustomStopwordsApiFp = exports.CustomStopwordsApiAxiosParamCreator = exports.ApiCreditsTransactionsGetTypeEnum = 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.RefundManagementApi = exports.RefundManagementApiFactory = exports.RefundManagementApiFp = exports.RefundManagementApiAxiosParamCreator = exports.QuerySuggestionsManagementApi = exports.QuerySuggestionsManagementApiFactory = exports.QuerySuggestionsManagementApiFp = exports.QuerySuggestionsManagementApiAxiosParamCreator = 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 = void 0;
|
|
29
|
+
exports.UserApi = exports.UserApiFactory = 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 = void 0;
|
|
30
30
|
const axios_1 = require("axios");
|
|
31
31
|
// Some imports not used depending on template conditions
|
|
32
32
|
// @ts-ignore
|
|
@@ -86,6 +86,11 @@ exports.AnalyticsRuleType = {
|
|
|
86
86
|
RuleTypeRedirect: 'redirect',
|
|
87
87
|
RuleTypeBanner: 'banner'
|
|
88
88
|
};
|
|
89
|
+
exports.DataTypesBillingAlertRequestAlertTypeEnum = {
|
|
90
|
+
LowBalance: 'low_balance',
|
|
91
|
+
ExpiringCredits: 'expiring_credits',
|
|
92
|
+
DaysRemaining: 'days_remaining'
|
|
93
|
+
};
|
|
89
94
|
exports.DataTypesCreateCustomWordListRequestTypeEnum = {
|
|
90
95
|
Stopwords: 'stopwords',
|
|
91
96
|
Synonyms: 'synonyms'
|
|
@@ -4958,10 +4963,10 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
4958
4963
|
* @param {*} [options] Override http request option.
|
|
4959
4964
|
* @throws {RequiredError}
|
|
4960
4965
|
*/
|
|
4961
|
-
|
|
4966
|
+
adminV1AnalyticsRulesGet: (authorization_1, storeId_1, collectionName_1, isActive_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, searchQuery_1, ...args_1) => __awaiter(this, [authorization_1, storeId_1, collectionName_1, isActive_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, searchQuery_1, ...args_1], void 0, function* (authorization, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options = {}) {
|
|
4962
4967
|
// verify required parameter 'authorization' is not null or undefined
|
|
4963
|
-
(0, common_1.assertParamExists)('
|
|
4964
|
-
const localVarPath = `/
|
|
4968
|
+
(0, common_1.assertParamExists)('adminV1AnalyticsRulesGet', 'authorization', authorization);
|
|
4969
|
+
const localVarPath = `/admin/v1/analytics/rules`;
|
|
4965
4970
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4966
4971
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4967
4972
|
let baseOptions;
|
|
@@ -4971,6 +4976,8 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
4971
4976
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4972
4977
|
const localVarHeaderParameter = {};
|
|
4973
4978
|
const localVarQueryParameter = {};
|
|
4979
|
+
// authentication BearerAuth required
|
|
4980
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
4974
4981
|
if (storeId !== undefined) {
|
|
4975
4982
|
localVarQueryParameter['store_id'] = storeId;
|
|
4976
4983
|
}
|
|
@@ -5020,12 +5027,12 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5020
5027
|
* @param {*} [options] Override http request option.
|
|
5021
5028
|
* @throws {RequiredError}
|
|
5022
5029
|
*/
|
|
5023
|
-
|
|
5030
|
+
adminV1AnalyticsRulesPost: (authorization_1, dataTypesCreateAnalyticsRuleRequest_1, ...args_1) => __awaiter(this, [authorization_1, dataTypesCreateAnalyticsRuleRequest_1, ...args_1], void 0, function* (authorization, dataTypesCreateAnalyticsRuleRequest, options = {}) {
|
|
5024
5031
|
// verify required parameter 'authorization' is not null or undefined
|
|
5025
|
-
(0, common_1.assertParamExists)('
|
|
5032
|
+
(0, common_1.assertParamExists)('adminV1AnalyticsRulesPost', 'authorization', authorization);
|
|
5026
5033
|
// verify required parameter 'dataTypesCreateAnalyticsRuleRequest' is not null or undefined
|
|
5027
|
-
(0, common_1.assertParamExists)('
|
|
5028
|
-
const localVarPath = `/
|
|
5034
|
+
(0, common_1.assertParamExists)('adminV1AnalyticsRulesPost', 'dataTypesCreateAnalyticsRuleRequest', dataTypesCreateAnalyticsRuleRequest);
|
|
5035
|
+
const localVarPath = `/admin/v1/analytics/rules`;
|
|
5029
5036
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5030
5037
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5031
5038
|
let baseOptions;
|
|
@@ -5035,6 +5042,8 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5035
5042
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5036
5043
|
const localVarHeaderParameter = {};
|
|
5037
5044
|
const localVarQueryParameter = {};
|
|
5045
|
+
// authentication BearerAuth required
|
|
5046
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
5038
5047
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5039
5048
|
if (authorization != null) {
|
|
5040
5049
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
@@ -5056,12 +5065,12 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5056
5065
|
* @param {*} [options] Override http request option.
|
|
5057
5066
|
* @throws {RequiredError}
|
|
5058
5067
|
*/
|
|
5059
|
-
|
|
5068
|
+
adminV1AnalyticsRulesRuleIdDelete: (authorization_1, ruleId_1, ...args_1) => __awaiter(this, [authorization_1, ruleId_1, ...args_1], void 0, function* (authorization, ruleId, options = {}) {
|
|
5060
5069
|
// verify required parameter 'authorization' is not null or undefined
|
|
5061
|
-
(0, common_1.assertParamExists)('
|
|
5070
|
+
(0, common_1.assertParamExists)('adminV1AnalyticsRulesRuleIdDelete', 'authorization', authorization);
|
|
5062
5071
|
// verify required parameter 'ruleId' is not null or undefined
|
|
5063
|
-
(0, common_1.assertParamExists)('
|
|
5064
|
-
const localVarPath = `/
|
|
5072
|
+
(0, common_1.assertParamExists)('adminV1AnalyticsRulesRuleIdDelete', 'ruleId', ruleId);
|
|
5073
|
+
const localVarPath = `/admin/v1/analytics/rules/{ruleId}`
|
|
5065
5074
|
.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
5066
5075
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5067
5076
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5072,6 +5081,8 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5072
5081
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
5073
5082
|
const localVarHeaderParameter = {};
|
|
5074
5083
|
const localVarQueryParameter = {};
|
|
5084
|
+
// authentication BearerAuth required
|
|
5085
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
5075
5086
|
if (authorization != null) {
|
|
5076
5087
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5077
5088
|
}
|
|
@@ -5091,12 +5102,12 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5091
5102
|
* @param {*} [options] Override http request option.
|
|
5092
5103
|
* @throws {RequiredError}
|
|
5093
5104
|
*/
|
|
5094
|
-
|
|
5105
|
+
adminV1AnalyticsRulesRuleIdGet: (authorization_1, ruleId_1, ...args_1) => __awaiter(this, [authorization_1, ruleId_1, ...args_1], void 0, function* (authorization, ruleId, options = {}) {
|
|
5095
5106
|
// verify required parameter 'authorization' is not null or undefined
|
|
5096
|
-
(0, common_1.assertParamExists)('
|
|
5107
|
+
(0, common_1.assertParamExists)('adminV1AnalyticsRulesRuleIdGet', 'authorization', authorization);
|
|
5097
5108
|
// verify required parameter 'ruleId' is not null or undefined
|
|
5098
|
-
(0, common_1.assertParamExists)('
|
|
5099
|
-
const localVarPath = `/
|
|
5109
|
+
(0, common_1.assertParamExists)('adminV1AnalyticsRulesRuleIdGet', 'ruleId', ruleId);
|
|
5110
|
+
const localVarPath = `/admin/v1/analytics/rules/{ruleId}`
|
|
5100
5111
|
.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
5101
5112
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5102
5113
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5107,6 +5118,8 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5107
5118
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5108
5119
|
const localVarHeaderParameter = {};
|
|
5109
5120
|
const localVarQueryParameter = {};
|
|
5121
|
+
// authentication BearerAuth required
|
|
5122
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
5110
5123
|
if (authorization != null) {
|
|
5111
5124
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5112
5125
|
}
|
|
@@ -5127,14 +5140,14 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5127
5140
|
* @param {*} [options] Override http request option.
|
|
5128
5141
|
* @throws {RequiredError}
|
|
5129
5142
|
*/
|
|
5130
|
-
|
|
5143
|
+
adminV1AnalyticsRulesRuleIdPut: (authorization_1, ruleId_1, dataTypesUpdateAnalyticsRuleRequest_1, ...args_1) => __awaiter(this, [authorization_1, ruleId_1, dataTypesUpdateAnalyticsRuleRequest_1, ...args_1], void 0, function* (authorization, ruleId, dataTypesUpdateAnalyticsRuleRequest, options = {}) {
|
|
5131
5144
|
// verify required parameter 'authorization' is not null or undefined
|
|
5132
|
-
(0, common_1.assertParamExists)('
|
|
5145
|
+
(0, common_1.assertParamExists)('adminV1AnalyticsRulesRuleIdPut', 'authorization', authorization);
|
|
5133
5146
|
// verify required parameter 'ruleId' is not null or undefined
|
|
5134
|
-
(0, common_1.assertParamExists)('
|
|
5147
|
+
(0, common_1.assertParamExists)('adminV1AnalyticsRulesRuleIdPut', 'ruleId', ruleId);
|
|
5135
5148
|
// verify required parameter 'dataTypesUpdateAnalyticsRuleRequest' is not null or undefined
|
|
5136
|
-
(0, common_1.assertParamExists)('
|
|
5137
|
-
const localVarPath = `/
|
|
5149
|
+
(0, common_1.assertParamExists)('adminV1AnalyticsRulesRuleIdPut', 'dataTypesUpdateAnalyticsRuleRequest', dataTypesUpdateAnalyticsRuleRequest);
|
|
5150
|
+
const localVarPath = `/admin/v1/analytics/rules/{ruleId}`
|
|
5138
5151
|
.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
5139
5152
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5140
5153
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5145,6 +5158,8 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5145
5158
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
5146
5159
|
const localVarHeaderParameter = {};
|
|
5147
5160
|
const localVarQueryParameter = {};
|
|
5161
|
+
// authentication BearerAuth required
|
|
5162
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
5148
5163
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5149
5164
|
if (authorization != null) {
|
|
5150
5165
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
@@ -5166,12 +5181,12 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5166
5181
|
* @param {*} [options] Override http request option.
|
|
5167
5182
|
* @throws {RequiredError}
|
|
5168
5183
|
*/
|
|
5169
|
-
|
|
5184
|
+
adminV1AnalyticsRulesSyncPost: (authorization_1, dataTypesAnalyticsRuleSyncRequest_1, ...args_1) => __awaiter(this, [authorization_1, dataTypesAnalyticsRuleSyncRequest_1, ...args_1], void 0, function* (authorization, dataTypesAnalyticsRuleSyncRequest, options = {}) {
|
|
5170
5185
|
// verify required parameter 'authorization' is not null or undefined
|
|
5171
|
-
(0, common_1.assertParamExists)('
|
|
5186
|
+
(0, common_1.assertParamExists)('adminV1AnalyticsRulesSyncPost', 'authorization', authorization);
|
|
5172
5187
|
// verify required parameter 'dataTypesAnalyticsRuleSyncRequest' is not null or undefined
|
|
5173
|
-
(0, common_1.assertParamExists)('
|
|
5174
|
-
const localVarPath = `/
|
|
5188
|
+
(0, common_1.assertParamExists)('adminV1AnalyticsRulesSyncPost', 'dataTypesAnalyticsRuleSyncRequest', dataTypesAnalyticsRuleSyncRequest);
|
|
5189
|
+
const localVarPath = `/admin/v1/analytics/rules/sync`;
|
|
5175
5190
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5176
5191
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5177
5192
|
let baseOptions;
|
|
@@ -5181,6 +5196,8 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5181
5196
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5182
5197
|
const localVarHeaderParameter = {};
|
|
5183
5198
|
const localVarQueryParameter = {};
|
|
5199
|
+
// authentication BearerAuth required
|
|
5200
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
5184
5201
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5185
5202
|
if (authorization != null) {
|
|
5186
5203
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
@@ -5194,6 +5211,89 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5194
5211
|
options: localVarRequestOptions,
|
|
5195
5212
|
};
|
|
5196
5213
|
}),
|
|
5214
|
+
/**
|
|
5215
|
+
* Retrieve a specific item by its ID from the Typesense collection. Useful for fetching details of items already in rules or for direct item selection by ID. Uses Redis caching for fast performance.
|
|
5216
|
+
* @summary Get Item by ID for Rule Management
|
|
5217
|
+
* @param {string} authorization Bearer JWT token
|
|
5218
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
5219
|
+
* @param {string} itemId Item ID to retrieve
|
|
5220
|
+
* @param {*} [options] Override http request option.
|
|
5221
|
+
* @throws {RequiredError}
|
|
5222
|
+
*/
|
|
5223
|
+
adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet: (authorization_1, xStoreID_1, itemId_1, ...args_1) => __awaiter(this, [authorization_1, xStoreID_1, itemId_1, ...args_1], void 0, function* (authorization, xStoreID, itemId, options = {}) {
|
|
5224
|
+
// verify required parameter 'authorization' is not null or undefined
|
|
5225
|
+
(0, common_1.assertParamExists)('adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet', 'authorization', authorization);
|
|
5226
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
5227
|
+
(0, common_1.assertParamExists)('adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet', 'xStoreID', xStoreID);
|
|
5228
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
5229
|
+
(0, common_1.assertParamExists)('adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet', 'itemId', itemId);
|
|
5230
|
+
const localVarPath = `/admin/v1/stores/{xStoreID}/analytics/rules/items/{itemId}`
|
|
5231
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
|
|
5232
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
5233
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5234
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5235
|
+
let baseOptions;
|
|
5236
|
+
if (configuration) {
|
|
5237
|
+
baseOptions = configuration.baseOptions;
|
|
5238
|
+
}
|
|
5239
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5240
|
+
const localVarHeaderParameter = {};
|
|
5241
|
+
const localVarQueryParameter = {};
|
|
5242
|
+
// authentication BearerAuth required
|
|
5243
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
5244
|
+
if (authorization != null) {
|
|
5245
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5246
|
+
}
|
|
5247
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5248
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5249
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5250
|
+
return {
|
|
5251
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5252
|
+
options: localVarRequestOptions,
|
|
5253
|
+
};
|
|
5254
|
+
}),
|
|
5255
|
+
/**
|
|
5256
|
+
* Search through all items in the store\'s Typesense collection to find items that can be pinned or hidden in rules. Searches across ALL searchable attributes by analyzing Typesense schema. Uses Redis caching for fast performance (same as admin search API).
|
|
5257
|
+
* @summary Search Items for Rule Management
|
|
5258
|
+
* @param {string} authorization Bearer JWT token
|
|
5259
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
5260
|
+
* @param {DataTypesSearchRuleItemsRequest} dataTypesSearchRuleItemsRequest Search parameters (query, page, per_page, filter)
|
|
5261
|
+
* @param {*} [options] Override http request option.
|
|
5262
|
+
* @throws {RequiredError}
|
|
5263
|
+
*/
|
|
5264
|
+
adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost: (authorization_1, xStoreID_1, dataTypesSearchRuleItemsRequest_1, ...args_1) => __awaiter(this, [authorization_1, xStoreID_1, dataTypesSearchRuleItemsRequest_1, ...args_1], void 0, function* (authorization, xStoreID, dataTypesSearchRuleItemsRequest, options = {}) {
|
|
5265
|
+
// verify required parameter 'authorization' is not null or undefined
|
|
5266
|
+
(0, common_1.assertParamExists)('adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost', 'authorization', authorization);
|
|
5267
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
5268
|
+
(0, common_1.assertParamExists)('adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost', 'xStoreID', xStoreID);
|
|
5269
|
+
// verify required parameter 'dataTypesSearchRuleItemsRequest' is not null or undefined
|
|
5270
|
+
(0, common_1.assertParamExists)('adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost', 'dataTypesSearchRuleItemsRequest', dataTypesSearchRuleItemsRequest);
|
|
5271
|
+
const localVarPath = `/admin/v1/stores/{xStoreID}/analytics/rules/search-items`
|
|
5272
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
5273
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5274
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5275
|
+
let baseOptions;
|
|
5276
|
+
if (configuration) {
|
|
5277
|
+
baseOptions = configuration.baseOptions;
|
|
5278
|
+
}
|
|
5279
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5280
|
+
const localVarHeaderParameter = {};
|
|
5281
|
+
const localVarQueryParameter = {};
|
|
5282
|
+
// authentication BearerAuth required
|
|
5283
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
5284
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5285
|
+
if (authorization != null) {
|
|
5286
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5287
|
+
}
|
|
5288
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5289
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5290
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5291
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesSearchRuleItemsRequest, localVarRequestOptions, configuration);
|
|
5292
|
+
return {
|
|
5293
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5294
|
+
options: localVarRequestOptions,
|
|
5295
|
+
};
|
|
5296
|
+
}),
|
|
5197
5297
|
/**
|
|
5198
5298
|
* Retrieve a paginated list of analytics rules with optional filtering by store, collection, and active status. Supports both page-based and offset-based pagination.
|
|
5199
5299
|
* @summary List Analytics Rules
|
|
@@ -5212,12 +5312,12 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5212
5312
|
* @param {*} [options] Override http request option.
|
|
5213
5313
|
* @throws {RequiredError}
|
|
5214
5314
|
*/
|
|
5215
|
-
|
|
5315
|
+
adminV1StoresXstoreidAnalyticsRulesGet: (authorization_1, xstoreid_1, storeId_1, collectionName_1, isActive_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, searchQuery_1, ...args_1) => __awaiter(this, [authorization_1, xstoreid_1, storeId_1, collectionName_1, isActive_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, searchQuery_1, ...args_1], void 0, function* (authorization, xstoreid, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options = {}) {
|
|
5216
5316
|
// verify required parameter 'authorization' is not null or undefined
|
|
5217
|
-
(0, common_1.assertParamExists)('
|
|
5317
|
+
(0, common_1.assertParamExists)('adminV1StoresXstoreidAnalyticsRulesGet', 'authorization', authorization);
|
|
5218
5318
|
// verify required parameter 'xstoreid' is not null or undefined
|
|
5219
|
-
(0, common_1.assertParamExists)('
|
|
5220
|
-
const localVarPath = `/
|
|
5319
|
+
(0, common_1.assertParamExists)('adminV1StoresXstoreidAnalyticsRulesGet', 'xstoreid', xstoreid);
|
|
5320
|
+
const localVarPath = `/admin/v1/stores/{xstoreid}/analytics/rules`
|
|
5221
5321
|
.replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)));
|
|
5222
5322
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5223
5323
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5228,6 +5328,8 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5228
5328
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5229
5329
|
const localVarHeaderParameter = {};
|
|
5230
5330
|
const localVarQueryParameter = {};
|
|
5331
|
+
// authentication BearerAuth required
|
|
5332
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
5231
5333
|
if (storeId !== undefined) {
|
|
5232
5334
|
localVarQueryParameter['store_id'] = storeId;
|
|
5233
5335
|
}
|
|
@@ -5278,14 +5380,14 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5278
5380
|
* @param {*} [options] Override http request option.
|
|
5279
5381
|
* @throws {RequiredError}
|
|
5280
5382
|
*/
|
|
5281
|
-
|
|
5383
|
+
adminV1StoresXstoreidAnalyticsRulesPost: (authorization_1, xstoreid_1, dataTypesCreateAnalyticsRuleRequest_1, ...args_1) => __awaiter(this, [authorization_1, xstoreid_1, dataTypesCreateAnalyticsRuleRequest_1, ...args_1], void 0, function* (authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options = {}) {
|
|
5282
5384
|
// verify required parameter 'authorization' is not null or undefined
|
|
5283
|
-
(0, common_1.assertParamExists)('
|
|
5385
|
+
(0, common_1.assertParamExists)('adminV1StoresXstoreidAnalyticsRulesPost', 'authorization', authorization);
|
|
5284
5386
|
// verify required parameter 'xstoreid' is not null or undefined
|
|
5285
|
-
(0, common_1.assertParamExists)('
|
|
5387
|
+
(0, common_1.assertParamExists)('adminV1StoresXstoreidAnalyticsRulesPost', 'xstoreid', xstoreid);
|
|
5286
5388
|
// verify required parameter 'dataTypesCreateAnalyticsRuleRequest' is not null or undefined
|
|
5287
|
-
(0, common_1.assertParamExists)('
|
|
5288
|
-
const localVarPath = `/
|
|
5389
|
+
(0, common_1.assertParamExists)('adminV1StoresXstoreidAnalyticsRulesPost', 'dataTypesCreateAnalyticsRuleRequest', dataTypesCreateAnalyticsRuleRequest);
|
|
5390
|
+
const localVarPath = `/admin/v1/stores/{xstoreid}/analytics/rules`
|
|
5289
5391
|
.replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)));
|
|
5290
5392
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5291
5393
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5296,6 +5398,8 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5296
5398
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5297
5399
|
const localVarHeaderParameter = {};
|
|
5298
5400
|
const localVarQueryParameter = {};
|
|
5401
|
+
// authentication BearerAuth required
|
|
5402
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
5299
5403
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5300
5404
|
if (authorization != null) {
|
|
5301
5405
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
@@ -5318,14 +5422,14 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5318
5422
|
* @param {*} [options] Override http request option.
|
|
5319
5423
|
* @throws {RequiredError}
|
|
5320
5424
|
*/
|
|
5321
|
-
|
|
5425
|
+
adminV1StoresXstoreidAnalyticsRulesRuleIdDelete: (authorization_1, xstoreid_1, ruleId_1, ...args_1) => __awaiter(this, [authorization_1, xstoreid_1, ruleId_1, ...args_1], void 0, function* (authorization, xstoreid, ruleId, options = {}) {
|
|
5322
5426
|
// verify required parameter 'authorization' is not null or undefined
|
|
5323
|
-
(0, common_1.assertParamExists)('
|
|
5427
|
+
(0, common_1.assertParamExists)('adminV1StoresXstoreidAnalyticsRulesRuleIdDelete', 'authorization', authorization);
|
|
5324
5428
|
// verify required parameter 'xstoreid' is not null or undefined
|
|
5325
|
-
(0, common_1.assertParamExists)('
|
|
5429
|
+
(0, common_1.assertParamExists)('adminV1StoresXstoreidAnalyticsRulesRuleIdDelete', 'xstoreid', xstoreid);
|
|
5326
5430
|
// verify required parameter 'ruleId' is not null or undefined
|
|
5327
|
-
(0, common_1.assertParamExists)('
|
|
5328
|
-
const localVarPath = `/
|
|
5431
|
+
(0, common_1.assertParamExists)('adminV1StoresXstoreidAnalyticsRulesRuleIdDelete', 'ruleId', ruleId);
|
|
5432
|
+
const localVarPath = `/admin/v1/stores/{xstoreid}/analytics/rules/{ruleId}`
|
|
5329
5433
|
.replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)))
|
|
5330
5434
|
.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
5331
5435
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -5337,6 +5441,8 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5337
5441
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
5338
5442
|
const localVarHeaderParameter = {};
|
|
5339
5443
|
const localVarQueryParameter = {};
|
|
5444
|
+
// authentication BearerAuth required
|
|
5445
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
5340
5446
|
if (authorization != null) {
|
|
5341
5447
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5342
5448
|
}
|
|
@@ -5357,14 +5463,14 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5357
5463
|
* @param {*} [options] Override http request option.
|
|
5358
5464
|
* @throws {RequiredError}
|
|
5359
5465
|
*/
|
|
5360
|
-
|
|
5466
|
+
adminV1StoresXstoreidAnalyticsRulesRuleIdGet: (authorization_1, xstoreid_1, ruleId_1, ...args_1) => __awaiter(this, [authorization_1, xstoreid_1, ruleId_1, ...args_1], void 0, function* (authorization, xstoreid, ruleId, options = {}) {
|
|
5361
5467
|
// verify required parameter 'authorization' is not null or undefined
|
|
5362
|
-
(0, common_1.assertParamExists)('
|
|
5468
|
+
(0, common_1.assertParamExists)('adminV1StoresXstoreidAnalyticsRulesRuleIdGet', 'authorization', authorization);
|
|
5363
5469
|
// verify required parameter 'xstoreid' is not null or undefined
|
|
5364
|
-
(0, common_1.assertParamExists)('
|
|
5470
|
+
(0, common_1.assertParamExists)('adminV1StoresXstoreidAnalyticsRulesRuleIdGet', 'xstoreid', xstoreid);
|
|
5365
5471
|
// verify required parameter 'ruleId' is not null or undefined
|
|
5366
|
-
(0, common_1.assertParamExists)('
|
|
5367
|
-
const localVarPath = `/
|
|
5472
|
+
(0, common_1.assertParamExists)('adminV1StoresXstoreidAnalyticsRulesRuleIdGet', 'ruleId', ruleId);
|
|
5473
|
+
const localVarPath = `/admin/v1/stores/{xstoreid}/analytics/rules/{ruleId}`
|
|
5368
5474
|
.replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)))
|
|
5369
5475
|
.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
5370
5476
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -5376,6 +5482,8 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5376
5482
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5377
5483
|
const localVarHeaderParameter = {};
|
|
5378
5484
|
const localVarQueryParameter = {};
|
|
5485
|
+
// authentication BearerAuth required
|
|
5486
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
5379
5487
|
if (authorization != null) {
|
|
5380
5488
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5381
5489
|
}
|
|
@@ -5397,16 +5505,16 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5397
5505
|
* @param {*} [options] Override http request option.
|
|
5398
5506
|
* @throws {RequiredError}
|
|
5399
5507
|
*/
|
|
5400
|
-
|
|
5508
|
+
adminV1StoresXstoreidAnalyticsRulesRuleIdPut: (authorization_1, xstoreid_1, ruleId_1, dataTypesUpdateAnalyticsRuleRequest_1, ...args_1) => __awaiter(this, [authorization_1, xstoreid_1, ruleId_1, dataTypesUpdateAnalyticsRuleRequest_1, ...args_1], void 0, function* (authorization, xstoreid, ruleId, dataTypesUpdateAnalyticsRuleRequest, options = {}) {
|
|
5401
5509
|
// verify required parameter 'authorization' is not null or undefined
|
|
5402
|
-
(0, common_1.assertParamExists)('
|
|
5510
|
+
(0, common_1.assertParamExists)('adminV1StoresXstoreidAnalyticsRulesRuleIdPut', 'authorization', authorization);
|
|
5403
5511
|
// verify required parameter 'xstoreid' is not null or undefined
|
|
5404
|
-
(0, common_1.assertParamExists)('
|
|
5512
|
+
(0, common_1.assertParamExists)('adminV1StoresXstoreidAnalyticsRulesRuleIdPut', 'xstoreid', xstoreid);
|
|
5405
5513
|
// verify required parameter 'ruleId' is not null or undefined
|
|
5406
|
-
(0, common_1.assertParamExists)('
|
|
5514
|
+
(0, common_1.assertParamExists)('adminV1StoresXstoreidAnalyticsRulesRuleIdPut', 'ruleId', ruleId);
|
|
5407
5515
|
// verify required parameter 'dataTypesUpdateAnalyticsRuleRequest' is not null or undefined
|
|
5408
|
-
(0, common_1.assertParamExists)('
|
|
5409
|
-
const localVarPath = `/
|
|
5516
|
+
(0, common_1.assertParamExists)('adminV1StoresXstoreidAnalyticsRulesRuleIdPut', 'dataTypesUpdateAnalyticsRuleRequest', dataTypesUpdateAnalyticsRuleRequest);
|
|
5517
|
+
const localVarPath = `/admin/v1/stores/{xstoreid}/analytics/rules/{ruleId}`
|
|
5410
5518
|
.replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)))
|
|
5411
5519
|
.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
5412
5520
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -5418,6 +5526,8 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5418
5526
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
5419
5527
|
const localVarHeaderParameter = {};
|
|
5420
5528
|
const localVarQueryParameter = {};
|
|
5529
|
+
// authentication BearerAuth required
|
|
5530
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
5421
5531
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5422
5532
|
if (authorization != null) {
|
|
5423
5533
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
@@ -5440,14 +5550,14 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5440
5550
|
* @param {*} [options] Override http request option.
|
|
5441
5551
|
* @throws {RequiredError}
|
|
5442
5552
|
*/
|
|
5443
|
-
|
|
5553
|
+
adminV1StoresXstoreidAnalyticsRulesSyncPost: (authorization_1, xstoreid_1, dataTypesAnalyticsRuleSyncRequest_1, ...args_1) => __awaiter(this, [authorization_1, xstoreid_1, dataTypesAnalyticsRuleSyncRequest_1, ...args_1], void 0, function* (authorization, xstoreid, dataTypesAnalyticsRuleSyncRequest, options = {}) {
|
|
5444
5554
|
// verify required parameter 'authorization' is not null or undefined
|
|
5445
|
-
(0, common_1.assertParamExists)('
|
|
5555
|
+
(0, common_1.assertParamExists)('adminV1StoresXstoreidAnalyticsRulesSyncPost', 'authorization', authorization);
|
|
5446
5556
|
// verify required parameter 'xstoreid' is not null or undefined
|
|
5447
|
-
(0, common_1.assertParamExists)('
|
|
5557
|
+
(0, common_1.assertParamExists)('adminV1StoresXstoreidAnalyticsRulesSyncPost', 'xstoreid', xstoreid);
|
|
5448
5558
|
// verify required parameter 'dataTypesAnalyticsRuleSyncRequest' is not null or undefined
|
|
5449
|
-
(0, common_1.assertParamExists)('
|
|
5450
|
-
const localVarPath = `/
|
|
5559
|
+
(0, common_1.assertParamExists)('adminV1StoresXstoreidAnalyticsRulesSyncPost', 'dataTypesAnalyticsRuleSyncRequest', dataTypesAnalyticsRuleSyncRequest);
|
|
5560
|
+
const localVarPath = `/admin/v1/stores/{xstoreid}/analytics/rules/sync`
|
|
5451
5561
|
.replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)));
|
|
5452
5562
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5453
5563
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -5458,6 +5568,8 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5458
5568
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5459
5569
|
const localVarHeaderParameter = {};
|
|
5460
5570
|
const localVarQueryParameter = {};
|
|
5571
|
+
// authentication BearerAuth required
|
|
5572
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
5461
5573
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5462
5574
|
if (authorization != null) {
|
|
5463
5575
|
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
@@ -5498,12 +5610,12 @@ const AnalyticsRulesApiFp = function (configuration) {
|
|
|
5498
5610
|
* @param {*} [options] Override http request option.
|
|
5499
5611
|
* @throws {RequiredError}
|
|
5500
5612
|
*/
|
|
5501
|
-
|
|
5613
|
+
adminV1AnalyticsRulesGet(authorization, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options) {
|
|
5502
5614
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5503
5615
|
var _a, _b, _c;
|
|
5504
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
5616
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1AnalyticsRulesGet(authorization, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options);
|
|
5505
5617
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5506
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.
|
|
5618
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.adminV1AnalyticsRulesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5507
5619
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5508
5620
|
});
|
|
5509
5621
|
},
|
|
@@ -5515,12 +5627,12 @@ const AnalyticsRulesApiFp = function (configuration) {
|
|
|
5515
5627
|
* @param {*} [options] Override http request option.
|
|
5516
5628
|
* @throws {RequiredError}
|
|
5517
5629
|
*/
|
|
5518
|
-
|
|
5630
|
+
adminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options) {
|
|
5519
5631
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5520
5632
|
var _a, _b, _c;
|
|
5521
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
5633
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options);
|
|
5522
5634
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5523
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.
|
|
5635
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.adminV1AnalyticsRulesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5524
5636
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5525
5637
|
});
|
|
5526
5638
|
},
|
|
@@ -5532,12 +5644,12 @@ const AnalyticsRulesApiFp = function (configuration) {
|
|
|
5532
5644
|
* @param {*} [options] Override http request option.
|
|
5533
5645
|
* @throws {RequiredError}
|
|
5534
5646
|
*/
|
|
5535
|
-
|
|
5647
|
+
adminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options) {
|
|
5536
5648
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5537
5649
|
var _a, _b, _c;
|
|
5538
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
5650
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options);
|
|
5539
5651
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5540
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.
|
|
5652
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.adminV1AnalyticsRulesRuleIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5541
5653
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5542
5654
|
});
|
|
5543
5655
|
},
|
|
@@ -5549,12 +5661,12 @@ const AnalyticsRulesApiFp = function (configuration) {
|
|
|
5549
5661
|
* @param {*} [options] Override http request option.
|
|
5550
5662
|
* @throws {RequiredError}
|
|
5551
5663
|
*/
|
|
5552
|
-
|
|
5664
|
+
adminV1AnalyticsRulesRuleIdGet(authorization, ruleId, options) {
|
|
5553
5665
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5554
5666
|
var _a, _b, _c;
|
|
5555
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
5667
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1AnalyticsRulesRuleIdGet(authorization, ruleId, options);
|
|
5556
5668
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5557
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.
|
|
5669
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.adminV1AnalyticsRulesRuleIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5558
5670
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5559
5671
|
});
|
|
5560
5672
|
},
|
|
@@ -5567,12 +5679,12 @@ const AnalyticsRulesApiFp = function (configuration) {
|
|
|
5567
5679
|
* @param {*} [options] Override http request option.
|
|
5568
5680
|
* @throws {RequiredError}
|
|
5569
5681
|
*/
|
|
5570
|
-
|
|
5682
|
+
adminV1AnalyticsRulesRuleIdPut(authorization, ruleId, dataTypesUpdateAnalyticsRuleRequest, options) {
|
|
5571
5683
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5572
5684
|
var _a, _b, _c;
|
|
5573
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
5685
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1AnalyticsRulesRuleIdPut(authorization, ruleId, dataTypesUpdateAnalyticsRuleRequest, options);
|
|
5574
5686
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5575
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.
|
|
5687
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.adminV1AnalyticsRulesRuleIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5576
5688
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5577
5689
|
});
|
|
5578
5690
|
},
|
|
@@ -5584,12 +5696,48 @@ const AnalyticsRulesApiFp = function (configuration) {
|
|
|
5584
5696
|
* @param {*} [options] Override http request option.
|
|
5585
5697
|
* @throws {RequiredError}
|
|
5586
5698
|
*/
|
|
5587
|
-
|
|
5699
|
+
adminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options) {
|
|
5700
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5701
|
+
var _a, _b, _c;
|
|
5702
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options);
|
|
5703
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5704
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.adminV1AnalyticsRulesSyncPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5705
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5706
|
+
});
|
|
5707
|
+
},
|
|
5708
|
+
/**
|
|
5709
|
+
* Retrieve a specific item by its ID from the Typesense collection. Useful for fetching details of items already in rules or for direct item selection by ID. Uses Redis caching for fast performance.
|
|
5710
|
+
* @summary Get Item by ID for Rule Management
|
|
5711
|
+
* @param {string} authorization Bearer JWT token
|
|
5712
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
5713
|
+
* @param {string} itemId Item ID to retrieve
|
|
5714
|
+
* @param {*} [options] Override http request option.
|
|
5715
|
+
* @throws {RequiredError}
|
|
5716
|
+
*/
|
|
5717
|
+
adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options) {
|
|
5718
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5719
|
+
var _a, _b, _c;
|
|
5720
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options);
|
|
5721
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5722
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5723
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5724
|
+
});
|
|
5725
|
+
},
|
|
5726
|
+
/**
|
|
5727
|
+
* Search through all items in the store\'s Typesense collection to find items that can be pinned or hidden in rules. Searches across ALL searchable attributes by analyzing Typesense schema. Uses Redis caching for fast performance (same as admin search API).
|
|
5728
|
+
* @summary Search Items for Rule Management
|
|
5729
|
+
* @param {string} authorization Bearer JWT token
|
|
5730
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
5731
|
+
* @param {DataTypesSearchRuleItemsRequest} dataTypesSearchRuleItemsRequest Search parameters (query, page, per_page, filter)
|
|
5732
|
+
* @param {*} [options] Override http request option.
|
|
5733
|
+
* @throws {RequiredError}
|
|
5734
|
+
*/
|
|
5735
|
+
adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options) {
|
|
5588
5736
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5589
5737
|
var _a, _b, _c;
|
|
5590
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
5738
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options);
|
|
5591
5739
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5592
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.
|
|
5740
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5593
5741
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5594
5742
|
});
|
|
5595
5743
|
},
|
|
@@ -5611,12 +5759,12 @@ const AnalyticsRulesApiFp = function (configuration) {
|
|
|
5611
5759
|
* @param {*} [options] Override http request option.
|
|
5612
5760
|
* @throws {RequiredError}
|
|
5613
5761
|
*/
|
|
5614
|
-
|
|
5762
|
+
adminV1StoresXstoreidAnalyticsRulesGet(authorization, xstoreid, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options) {
|
|
5615
5763
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5616
5764
|
var _a, _b, _c;
|
|
5617
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
5765
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoresXstoreidAnalyticsRulesGet(authorization, xstoreid, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options);
|
|
5618
5766
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5619
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.
|
|
5767
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.adminV1StoresXstoreidAnalyticsRulesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5620
5768
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5621
5769
|
});
|
|
5622
5770
|
},
|
|
@@ -5629,12 +5777,12 @@ const AnalyticsRulesApiFp = function (configuration) {
|
|
|
5629
5777
|
* @param {*} [options] Override http request option.
|
|
5630
5778
|
* @throws {RequiredError}
|
|
5631
5779
|
*/
|
|
5632
|
-
|
|
5780
|
+
adminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options) {
|
|
5633
5781
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5634
5782
|
var _a, _b, _c;
|
|
5635
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
5783
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options);
|
|
5636
5784
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5637
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.
|
|
5785
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.adminV1StoresXstoreidAnalyticsRulesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5638
5786
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5639
5787
|
});
|
|
5640
5788
|
},
|
|
@@ -5647,12 +5795,12 @@ const AnalyticsRulesApiFp = function (configuration) {
|
|
|
5647
5795
|
* @param {*} [options] Override http request option.
|
|
5648
5796
|
* @throws {RequiredError}
|
|
5649
5797
|
*/
|
|
5650
|
-
|
|
5798
|
+
adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options) {
|
|
5651
5799
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5652
5800
|
var _a, _b, _c;
|
|
5653
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
5801
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options);
|
|
5654
5802
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5655
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.
|
|
5803
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.adminV1StoresXstoreidAnalyticsRulesRuleIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5656
5804
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5657
5805
|
});
|
|
5658
5806
|
},
|
|
@@ -5665,12 +5813,12 @@ const AnalyticsRulesApiFp = function (configuration) {
|
|
|
5665
5813
|
* @param {*} [options] Override http request option.
|
|
5666
5814
|
* @throws {RequiredError}
|
|
5667
5815
|
*/
|
|
5668
|
-
|
|
5816
|
+
adminV1StoresXstoreidAnalyticsRulesRuleIdGet(authorization, xstoreid, ruleId, options) {
|
|
5669
5817
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5670
5818
|
var _a, _b, _c;
|
|
5671
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
5819
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoresXstoreidAnalyticsRulesRuleIdGet(authorization, xstoreid, ruleId, options);
|
|
5672
5820
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5673
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.
|
|
5821
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.adminV1StoresXstoreidAnalyticsRulesRuleIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5674
5822
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5675
5823
|
});
|
|
5676
5824
|
},
|
|
@@ -5684,12 +5832,12 @@ const AnalyticsRulesApiFp = function (configuration) {
|
|
|
5684
5832
|
* @param {*} [options] Override http request option.
|
|
5685
5833
|
* @throws {RequiredError}
|
|
5686
5834
|
*/
|
|
5687
|
-
|
|
5835
|
+
adminV1StoresXstoreidAnalyticsRulesRuleIdPut(authorization, xstoreid, ruleId, dataTypesUpdateAnalyticsRuleRequest, options) {
|
|
5688
5836
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5689
5837
|
var _a, _b, _c;
|
|
5690
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
5838
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoresXstoreidAnalyticsRulesRuleIdPut(authorization, xstoreid, ruleId, dataTypesUpdateAnalyticsRuleRequest, options);
|
|
5691
5839
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5692
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.
|
|
5840
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.adminV1StoresXstoreidAnalyticsRulesRuleIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5693
5841
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5694
5842
|
});
|
|
5695
5843
|
},
|
|
@@ -5702,12 +5850,12 @@ const AnalyticsRulesApiFp = function (configuration) {
|
|
|
5702
5850
|
* @param {*} [options] Override http request option.
|
|
5703
5851
|
* @throws {RequiredError}
|
|
5704
5852
|
*/
|
|
5705
|
-
|
|
5853
|
+
adminV1StoresXstoreidAnalyticsRulesSyncPost(authorization, xstoreid, dataTypesAnalyticsRuleSyncRequest, options) {
|
|
5706
5854
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5707
5855
|
var _a, _b, _c;
|
|
5708
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
5856
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoresXstoreidAnalyticsRulesSyncPost(authorization, xstoreid, dataTypesAnalyticsRuleSyncRequest, options);
|
|
5709
5857
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5710
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.
|
|
5858
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.adminV1StoresXstoreidAnalyticsRulesSyncPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5711
5859
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5712
5860
|
});
|
|
5713
5861
|
},
|
|
@@ -5738,8 +5886,8 @@ const AnalyticsRulesApiFactory = function (configuration, basePath, axios) {
|
|
|
5738
5886
|
* @param {*} [options] Override http request option.
|
|
5739
5887
|
* @throws {RequiredError}
|
|
5740
5888
|
*/
|
|
5741
|
-
|
|
5742
|
-
return localVarFp.
|
|
5889
|
+
adminV1AnalyticsRulesGet(authorization, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options) {
|
|
5890
|
+
return localVarFp.adminV1AnalyticsRulesGet(authorization, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options).then((request) => request(axios, basePath));
|
|
5743
5891
|
},
|
|
5744
5892
|
/**
|
|
5745
5893
|
* Create a new analytics rule for Typesense curation. Rules define how search results should be modified (promoted, hidden, filtered, sorted) based on query conditions.
|
|
@@ -5749,8 +5897,8 @@ const AnalyticsRulesApiFactory = function (configuration, basePath, axios) {
|
|
|
5749
5897
|
* @param {*} [options] Override http request option.
|
|
5750
5898
|
* @throws {RequiredError}
|
|
5751
5899
|
*/
|
|
5752
|
-
|
|
5753
|
-
return localVarFp.
|
|
5900
|
+
adminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options) {
|
|
5901
|
+
return localVarFp.adminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options).then((request) => request(axios, basePath));
|
|
5754
5902
|
},
|
|
5755
5903
|
/**
|
|
5756
5904
|
* Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
|
|
@@ -5760,8 +5908,8 @@ const AnalyticsRulesApiFactory = function (configuration, basePath, axios) {
|
|
|
5760
5908
|
* @param {*} [options] Override http request option.
|
|
5761
5909
|
* @throws {RequiredError}
|
|
5762
5910
|
*/
|
|
5763
|
-
|
|
5764
|
-
return localVarFp.
|
|
5911
|
+
adminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options) {
|
|
5912
|
+
return localVarFp.adminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options).then((request) => request(axios, basePath));
|
|
5765
5913
|
},
|
|
5766
5914
|
/**
|
|
5767
5915
|
* Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
|
|
@@ -5771,8 +5919,8 @@ const AnalyticsRulesApiFactory = function (configuration, basePath, axios) {
|
|
|
5771
5919
|
* @param {*} [options] Override http request option.
|
|
5772
5920
|
* @throws {RequiredError}
|
|
5773
5921
|
*/
|
|
5774
|
-
|
|
5775
|
-
return localVarFp.
|
|
5922
|
+
adminV1AnalyticsRulesRuleIdGet(authorization, ruleId, options) {
|
|
5923
|
+
return localVarFp.adminV1AnalyticsRulesRuleIdGet(authorization, ruleId, options).then((request) => request(axios, basePath));
|
|
5776
5924
|
},
|
|
5777
5925
|
/**
|
|
5778
5926
|
* Update an existing analytics rule. Supports partial updates. When is_active is set to false, the rule is removed from Typesense. When is_active is set to true, the rule is synced to Typesense.
|
|
@@ -5783,8 +5931,8 @@ const AnalyticsRulesApiFactory = function (configuration, basePath, axios) {
|
|
|
5783
5931
|
* @param {*} [options] Override http request option.
|
|
5784
5932
|
* @throws {RequiredError}
|
|
5785
5933
|
*/
|
|
5786
|
-
|
|
5787
|
-
return localVarFp.
|
|
5934
|
+
adminV1AnalyticsRulesRuleIdPut(authorization, ruleId, dataTypesUpdateAnalyticsRuleRequest, options) {
|
|
5935
|
+
return localVarFp.adminV1AnalyticsRulesRuleIdPut(authorization, ruleId, dataTypesUpdateAnalyticsRuleRequest, options).then((request) => request(axios, basePath));
|
|
5788
5936
|
},
|
|
5789
5937
|
/**
|
|
5790
5938
|
* Manually synchronize analytics rules to Typesense. This endpoint can be used to force a sync of all active rules or specific rules to Typesense collections.
|
|
@@ -5794,8 +5942,32 @@ const AnalyticsRulesApiFactory = function (configuration, basePath, axios) {
|
|
|
5794
5942
|
* @param {*} [options] Override http request option.
|
|
5795
5943
|
* @throws {RequiredError}
|
|
5796
5944
|
*/
|
|
5797
|
-
|
|
5798
|
-
return localVarFp.
|
|
5945
|
+
adminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options) {
|
|
5946
|
+
return localVarFp.adminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options).then((request) => request(axios, basePath));
|
|
5947
|
+
},
|
|
5948
|
+
/**
|
|
5949
|
+
* Retrieve a specific item by its ID from the Typesense collection. Useful for fetching details of items already in rules or for direct item selection by ID. Uses Redis caching for fast performance.
|
|
5950
|
+
* @summary Get Item by ID for Rule Management
|
|
5951
|
+
* @param {string} authorization Bearer JWT token
|
|
5952
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
5953
|
+
* @param {string} itemId Item ID to retrieve
|
|
5954
|
+
* @param {*} [options] Override http request option.
|
|
5955
|
+
* @throws {RequiredError}
|
|
5956
|
+
*/
|
|
5957
|
+
adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options) {
|
|
5958
|
+
return localVarFp.adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options).then((request) => request(axios, basePath));
|
|
5959
|
+
},
|
|
5960
|
+
/**
|
|
5961
|
+
* Search through all items in the store\'s Typesense collection to find items that can be pinned or hidden in rules. Searches across ALL searchable attributes by analyzing Typesense schema. Uses Redis caching for fast performance (same as admin search API).
|
|
5962
|
+
* @summary Search Items for Rule Management
|
|
5963
|
+
* @param {string} authorization Bearer JWT token
|
|
5964
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
5965
|
+
* @param {DataTypesSearchRuleItemsRequest} dataTypesSearchRuleItemsRequest Search parameters (query, page, per_page, filter)
|
|
5966
|
+
* @param {*} [options] Override http request option.
|
|
5967
|
+
* @throws {RequiredError}
|
|
5968
|
+
*/
|
|
5969
|
+
adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options) {
|
|
5970
|
+
return localVarFp.adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options).then((request) => request(axios, basePath));
|
|
5799
5971
|
},
|
|
5800
5972
|
/**
|
|
5801
5973
|
* Retrieve a paginated list of analytics rules with optional filtering by store, collection, and active status. Supports both page-based and offset-based pagination.
|
|
@@ -5815,8 +5987,8 @@ const AnalyticsRulesApiFactory = function (configuration, basePath, axios) {
|
|
|
5815
5987
|
* @param {*} [options] Override http request option.
|
|
5816
5988
|
* @throws {RequiredError}
|
|
5817
5989
|
*/
|
|
5818
|
-
|
|
5819
|
-
return localVarFp.
|
|
5990
|
+
adminV1StoresXstoreidAnalyticsRulesGet(authorization, xstoreid, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options) {
|
|
5991
|
+
return localVarFp.adminV1StoresXstoreidAnalyticsRulesGet(authorization, xstoreid, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options).then((request) => request(axios, basePath));
|
|
5820
5992
|
},
|
|
5821
5993
|
/**
|
|
5822
5994
|
* Create a new analytics rule for Typesense curation. Rules define how search results should be modified (promoted, hidden, filtered, sorted) based on query conditions.
|
|
@@ -5827,8 +5999,8 @@ const AnalyticsRulesApiFactory = function (configuration, basePath, axios) {
|
|
|
5827
5999
|
* @param {*} [options] Override http request option.
|
|
5828
6000
|
* @throws {RequiredError}
|
|
5829
6001
|
*/
|
|
5830
|
-
|
|
5831
|
-
return localVarFp.
|
|
6002
|
+
adminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options) {
|
|
6003
|
+
return localVarFp.adminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options).then((request) => request(axios, basePath));
|
|
5832
6004
|
},
|
|
5833
6005
|
/**
|
|
5834
6006
|
* Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
|
|
@@ -5839,8 +6011,8 @@ const AnalyticsRulesApiFactory = function (configuration, basePath, axios) {
|
|
|
5839
6011
|
* @param {*} [options] Override http request option.
|
|
5840
6012
|
* @throws {RequiredError}
|
|
5841
6013
|
*/
|
|
5842
|
-
|
|
5843
|
-
return localVarFp.
|
|
6014
|
+
adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options) {
|
|
6015
|
+
return localVarFp.adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options).then((request) => request(axios, basePath));
|
|
5844
6016
|
},
|
|
5845
6017
|
/**
|
|
5846
6018
|
* Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
|
|
@@ -5851,8 +6023,8 @@ const AnalyticsRulesApiFactory = function (configuration, basePath, axios) {
|
|
|
5851
6023
|
* @param {*} [options] Override http request option.
|
|
5852
6024
|
* @throws {RequiredError}
|
|
5853
6025
|
*/
|
|
5854
|
-
|
|
5855
|
-
return localVarFp.
|
|
6026
|
+
adminV1StoresXstoreidAnalyticsRulesRuleIdGet(authorization, xstoreid, ruleId, options) {
|
|
6027
|
+
return localVarFp.adminV1StoresXstoreidAnalyticsRulesRuleIdGet(authorization, xstoreid, ruleId, options).then((request) => request(axios, basePath));
|
|
5856
6028
|
},
|
|
5857
6029
|
/**
|
|
5858
6030
|
* Update an existing analytics rule. Supports partial updates. When is_active is set to false, the rule is removed from Typesense. When is_active is set to true, the rule is synced to Typesense.
|
|
@@ -5864,8 +6036,8 @@ const AnalyticsRulesApiFactory = function (configuration, basePath, axios) {
|
|
|
5864
6036
|
* @param {*} [options] Override http request option.
|
|
5865
6037
|
* @throws {RequiredError}
|
|
5866
6038
|
*/
|
|
5867
|
-
|
|
5868
|
-
return localVarFp.
|
|
6039
|
+
adminV1StoresXstoreidAnalyticsRulesRuleIdPut(authorization, xstoreid, ruleId, dataTypesUpdateAnalyticsRuleRequest, options) {
|
|
6040
|
+
return localVarFp.adminV1StoresXstoreidAnalyticsRulesRuleIdPut(authorization, xstoreid, ruleId, dataTypesUpdateAnalyticsRuleRequest, options).then((request) => request(axios, basePath));
|
|
5869
6041
|
},
|
|
5870
6042
|
/**
|
|
5871
6043
|
* Manually synchronize analytics rules to Typesense. This endpoint can be used to force a sync of all active rules or specific rules to Typesense collections.
|
|
@@ -5876,8 +6048,8 @@ const AnalyticsRulesApiFactory = function (configuration, basePath, axios) {
|
|
|
5876
6048
|
* @param {*} [options] Override http request option.
|
|
5877
6049
|
* @throws {RequiredError}
|
|
5878
6050
|
*/
|
|
5879
|
-
|
|
5880
|
-
return localVarFp.
|
|
6051
|
+
adminV1StoresXstoreidAnalyticsRulesSyncPost(authorization, xstoreid, dataTypesAnalyticsRuleSyncRequest, options) {
|
|
6052
|
+
return localVarFp.adminV1StoresXstoreidAnalyticsRulesSyncPost(authorization, xstoreid, dataTypesAnalyticsRuleSyncRequest, options).then((request) => request(axios, basePath));
|
|
5881
6053
|
},
|
|
5882
6054
|
};
|
|
5883
6055
|
};
|
|
@@ -5907,8 +6079,8 @@ class AnalyticsRulesApi extends base_1.BaseAPI {
|
|
|
5907
6079
|
* @throws {RequiredError}
|
|
5908
6080
|
* @memberof AnalyticsRulesApi
|
|
5909
6081
|
*/
|
|
5910
|
-
|
|
5911
|
-
return (0, exports.AnalyticsRulesApiFp)(this.configuration).
|
|
6082
|
+
adminV1AnalyticsRulesGet(authorization, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options) {
|
|
6083
|
+
return (0, exports.AnalyticsRulesApiFp)(this.configuration).adminV1AnalyticsRulesGet(authorization, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options).then((request) => request(this.axios, this.basePath));
|
|
5912
6084
|
}
|
|
5913
6085
|
/**
|
|
5914
6086
|
* Create a new analytics rule for Typesense curation. Rules define how search results should be modified (promoted, hidden, filtered, sorted) based on query conditions.
|
|
@@ -5919,8 +6091,8 @@ class AnalyticsRulesApi extends base_1.BaseAPI {
|
|
|
5919
6091
|
* @throws {RequiredError}
|
|
5920
6092
|
* @memberof AnalyticsRulesApi
|
|
5921
6093
|
*/
|
|
5922
|
-
|
|
5923
|
-
return (0, exports.AnalyticsRulesApiFp)(this.configuration).
|
|
6094
|
+
adminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options) {
|
|
6095
|
+
return (0, exports.AnalyticsRulesApiFp)(this.configuration).adminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5924
6096
|
}
|
|
5925
6097
|
/**
|
|
5926
6098
|
* Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
|
|
@@ -5931,8 +6103,8 @@ class AnalyticsRulesApi extends base_1.BaseAPI {
|
|
|
5931
6103
|
* @throws {RequiredError}
|
|
5932
6104
|
* @memberof AnalyticsRulesApi
|
|
5933
6105
|
*/
|
|
5934
|
-
|
|
5935
|
-
return (0, exports.AnalyticsRulesApiFp)(this.configuration).
|
|
6106
|
+
adminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options) {
|
|
6107
|
+
return (0, exports.AnalyticsRulesApiFp)(this.configuration).adminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options).then((request) => request(this.axios, this.basePath));
|
|
5936
6108
|
}
|
|
5937
6109
|
/**
|
|
5938
6110
|
* Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
|
|
@@ -5943,8 +6115,8 @@ class AnalyticsRulesApi extends base_1.BaseAPI {
|
|
|
5943
6115
|
* @throws {RequiredError}
|
|
5944
6116
|
* @memberof AnalyticsRulesApi
|
|
5945
6117
|
*/
|
|
5946
|
-
|
|
5947
|
-
return (0, exports.AnalyticsRulesApiFp)(this.configuration).
|
|
6118
|
+
adminV1AnalyticsRulesRuleIdGet(authorization, ruleId, options) {
|
|
6119
|
+
return (0, exports.AnalyticsRulesApiFp)(this.configuration).adminV1AnalyticsRulesRuleIdGet(authorization, ruleId, options).then((request) => request(this.axios, this.basePath));
|
|
5948
6120
|
}
|
|
5949
6121
|
/**
|
|
5950
6122
|
* Update an existing analytics rule. Supports partial updates. When is_active is set to false, the rule is removed from Typesense. When is_active is set to true, the rule is synced to Typesense.
|
|
@@ -5956,8 +6128,8 @@ class AnalyticsRulesApi extends base_1.BaseAPI {
|
|
|
5956
6128
|
* @throws {RequiredError}
|
|
5957
6129
|
* @memberof AnalyticsRulesApi
|
|
5958
6130
|
*/
|
|
5959
|
-
|
|
5960
|
-
return (0, exports.AnalyticsRulesApiFp)(this.configuration).
|
|
6131
|
+
adminV1AnalyticsRulesRuleIdPut(authorization, ruleId, dataTypesUpdateAnalyticsRuleRequest, options) {
|
|
6132
|
+
return (0, exports.AnalyticsRulesApiFp)(this.configuration).adminV1AnalyticsRulesRuleIdPut(authorization, ruleId, dataTypesUpdateAnalyticsRuleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5961
6133
|
}
|
|
5962
6134
|
/**
|
|
5963
6135
|
* Manually synchronize analytics rules to Typesense. This endpoint can be used to force a sync of all active rules or specific rules to Typesense collections.
|
|
@@ -5968,8 +6140,34 @@ class AnalyticsRulesApi extends base_1.BaseAPI {
|
|
|
5968
6140
|
* @throws {RequiredError}
|
|
5969
6141
|
* @memberof AnalyticsRulesApi
|
|
5970
6142
|
*/
|
|
5971
|
-
|
|
5972
|
-
return (0, exports.AnalyticsRulesApiFp)(this.configuration).
|
|
6143
|
+
adminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options) {
|
|
6144
|
+
return (0, exports.AnalyticsRulesApiFp)(this.configuration).adminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6145
|
+
}
|
|
6146
|
+
/**
|
|
6147
|
+
* Retrieve a specific item by its ID from the Typesense collection. Useful for fetching details of items already in rules or for direct item selection by ID. Uses Redis caching for fast performance.
|
|
6148
|
+
* @summary Get Item by ID for Rule Management
|
|
6149
|
+
* @param {string} authorization Bearer JWT token
|
|
6150
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
6151
|
+
* @param {string} itemId Item ID to retrieve
|
|
6152
|
+
* @param {*} [options] Override http request option.
|
|
6153
|
+
* @throws {RequiredError}
|
|
6154
|
+
* @memberof AnalyticsRulesApi
|
|
6155
|
+
*/
|
|
6156
|
+
adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options) {
|
|
6157
|
+
return (0, exports.AnalyticsRulesApiFp)(this.configuration).adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options).then((request) => request(this.axios, this.basePath));
|
|
6158
|
+
}
|
|
6159
|
+
/**
|
|
6160
|
+
* Search through all items in the store\'s Typesense collection to find items that can be pinned or hidden in rules. Searches across ALL searchable attributes by analyzing Typesense schema. Uses Redis caching for fast performance (same as admin search API).
|
|
6161
|
+
* @summary Search Items for Rule Management
|
|
6162
|
+
* @param {string} authorization Bearer JWT token
|
|
6163
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
6164
|
+
* @param {DataTypesSearchRuleItemsRequest} dataTypesSearchRuleItemsRequest Search parameters (query, page, per_page, filter)
|
|
6165
|
+
* @param {*} [options] Override http request option.
|
|
6166
|
+
* @throws {RequiredError}
|
|
6167
|
+
* @memberof AnalyticsRulesApi
|
|
6168
|
+
*/
|
|
6169
|
+
adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options) {
|
|
6170
|
+
return (0, exports.AnalyticsRulesApiFp)(this.configuration).adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5973
6171
|
}
|
|
5974
6172
|
/**
|
|
5975
6173
|
* Retrieve a paginated list of analytics rules with optional filtering by store, collection, and active status. Supports both page-based and offset-based pagination.
|
|
@@ -5990,8 +6188,8 @@ class AnalyticsRulesApi extends base_1.BaseAPI {
|
|
|
5990
6188
|
* @throws {RequiredError}
|
|
5991
6189
|
* @memberof AnalyticsRulesApi
|
|
5992
6190
|
*/
|
|
5993
|
-
|
|
5994
|
-
return (0, exports.AnalyticsRulesApiFp)(this.configuration).
|
|
6191
|
+
adminV1StoresXstoreidAnalyticsRulesGet(authorization, xstoreid, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options) {
|
|
6192
|
+
return (0, exports.AnalyticsRulesApiFp)(this.configuration).adminV1StoresXstoreidAnalyticsRulesGet(authorization, xstoreid, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options).then((request) => request(this.axios, this.basePath));
|
|
5995
6193
|
}
|
|
5996
6194
|
/**
|
|
5997
6195
|
* Create a new analytics rule for Typesense curation. Rules define how search results should be modified (promoted, hidden, filtered, sorted) based on query conditions.
|
|
@@ -6003,8 +6201,8 @@ class AnalyticsRulesApi extends base_1.BaseAPI {
|
|
|
6003
6201
|
* @throws {RequiredError}
|
|
6004
6202
|
* @memberof AnalyticsRulesApi
|
|
6005
6203
|
*/
|
|
6006
|
-
|
|
6007
|
-
return (0, exports.AnalyticsRulesApiFp)(this.configuration).
|
|
6204
|
+
adminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options) {
|
|
6205
|
+
return (0, exports.AnalyticsRulesApiFp)(this.configuration).adminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6008
6206
|
}
|
|
6009
6207
|
/**
|
|
6010
6208
|
* Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
|
|
@@ -6016,8 +6214,8 @@ class AnalyticsRulesApi extends base_1.BaseAPI {
|
|
|
6016
6214
|
* @throws {RequiredError}
|
|
6017
6215
|
* @memberof AnalyticsRulesApi
|
|
6018
6216
|
*/
|
|
6019
|
-
|
|
6020
|
-
return (0, exports.AnalyticsRulesApiFp)(this.configuration).
|
|
6217
|
+
adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options) {
|
|
6218
|
+
return (0, exports.AnalyticsRulesApiFp)(this.configuration).adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options).then((request) => request(this.axios, this.basePath));
|
|
6021
6219
|
}
|
|
6022
6220
|
/**
|
|
6023
6221
|
* Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
|
|
@@ -6029,8 +6227,8 @@ class AnalyticsRulesApi extends base_1.BaseAPI {
|
|
|
6029
6227
|
* @throws {RequiredError}
|
|
6030
6228
|
* @memberof AnalyticsRulesApi
|
|
6031
6229
|
*/
|
|
6032
|
-
|
|
6033
|
-
return (0, exports.AnalyticsRulesApiFp)(this.configuration).
|
|
6230
|
+
adminV1StoresXstoreidAnalyticsRulesRuleIdGet(authorization, xstoreid, ruleId, options) {
|
|
6231
|
+
return (0, exports.AnalyticsRulesApiFp)(this.configuration).adminV1StoresXstoreidAnalyticsRulesRuleIdGet(authorization, xstoreid, ruleId, options).then((request) => request(this.axios, this.basePath));
|
|
6034
6232
|
}
|
|
6035
6233
|
/**
|
|
6036
6234
|
* Update an existing analytics rule. Supports partial updates. When is_active is set to false, the rule is removed from Typesense. When is_active is set to true, the rule is synced to Typesense.
|
|
@@ -6043,8 +6241,8 @@ class AnalyticsRulesApi extends base_1.BaseAPI {
|
|
|
6043
6241
|
* @throws {RequiredError}
|
|
6044
6242
|
* @memberof AnalyticsRulesApi
|
|
6045
6243
|
*/
|
|
6046
|
-
|
|
6047
|
-
return (0, exports.AnalyticsRulesApiFp)(this.configuration).
|
|
6244
|
+
adminV1StoresXstoreidAnalyticsRulesRuleIdPut(authorization, xstoreid, ruleId, dataTypesUpdateAnalyticsRuleRequest, options) {
|
|
6245
|
+
return (0, exports.AnalyticsRulesApiFp)(this.configuration).adminV1StoresXstoreidAnalyticsRulesRuleIdPut(authorization, xstoreid, ruleId, dataTypesUpdateAnalyticsRuleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6048
6246
|
}
|
|
6049
6247
|
/**
|
|
6050
6248
|
* Manually synchronize analytics rules to Typesense. This endpoint can be used to force a sync of all active rules or specific rules to Typesense collections.
|
|
@@ -6056,8 +6254,8 @@ class AnalyticsRulesApi extends base_1.BaseAPI {
|
|
|
6056
6254
|
* @throws {RequiredError}
|
|
6057
6255
|
* @memberof AnalyticsRulesApi
|
|
6058
6256
|
*/
|
|
6059
|
-
|
|
6060
|
-
return (0, exports.AnalyticsRulesApiFp)(this.configuration).
|
|
6257
|
+
adminV1StoresXstoreidAnalyticsRulesSyncPost(authorization, xstoreid, dataTypesAnalyticsRuleSyncRequest, options) {
|
|
6258
|
+
return (0, exports.AnalyticsRulesApiFp)(this.configuration).adminV1StoresXstoreidAnalyticsRulesSyncPost(authorization, xstoreid, dataTypesAnalyticsRuleSyncRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6061
6259
|
}
|
|
6062
6260
|
}
|
|
6063
6261
|
exports.AnalyticsRulesApi = AnalyticsRulesApi;
|
|
@@ -6848,18 +7046,146 @@ exports.AutomatedRefundManagementApi = AutomatedRefundManagementApi;
|
|
|
6848
7046
|
*/
|
|
6849
7047
|
const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
6850
7048
|
return {
|
|
7049
|
+
/**
|
|
7050
|
+
* Returns all billing alerts configured for the organization
|
|
7051
|
+
* @summary Get billing alerts
|
|
7052
|
+
* @param {*} [options] Override http request option.
|
|
7053
|
+
* @throws {RequiredError}
|
|
7054
|
+
*/
|
|
7055
|
+
adminBillingAlertsGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7056
|
+
const localVarPath = `/admin/billing/alerts`;
|
|
7057
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7058
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7059
|
+
let baseOptions;
|
|
7060
|
+
if (configuration) {
|
|
7061
|
+
baseOptions = configuration.baseOptions;
|
|
7062
|
+
}
|
|
7063
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7064
|
+
const localVarHeaderParameter = {};
|
|
7065
|
+
const localVarQueryParameter = {};
|
|
7066
|
+
// authentication BearerAuth required
|
|
7067
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7068
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7069
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7070
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7071
|
+
return {
|
|
7072
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7073
|
+
options: localVarRequestOptions,
|
|
7074
|
+
};
|
|
7075
|
+
}),
|
|
7076
|
+
/**
|
|
7077
|
+
* Deletes a billing alert configuration
|
|
7078
|
+
* @summary Delete billing alert
|
|
7079
|
+
* @param {number} id Alert ID
|
|
7080
|
+
* @param {*} [options] Override http request option.
|
|
7081
|
+
* @throws {RequiredError}
|
|
7082
|
+
*/
|
|
7083
|
+
adminBillingAlertsIdDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
7084
|
+
// verify required parameter 'id' is not null or undefined
|
|
7085
|
+
(0, common_1.assertParamExists)('adminBillingAlertsIdDelete', 'id', id);
|
|
7086
|
+
const localVarPath = `/admin/billing/alerts/{id}`
|
|
7087
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7088
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7089
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7090
|
+
let baseOptions;
|
|
7091
|
+
if (configuration) {
|
|
7092
|
+
baseOptions = configuration.baseOptions;
|
|
7093
|
+
}
|
|
7094
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
7095
|
+
const localVarHeaderParameter = {};
|
|
7096
|
+
const localVarQueryParameter = {};
|
|
7097
|
+
// authentication BearerAuth required
|
|
7098
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7099
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7100
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7101
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7102
|
+
return {
|
|
7103
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7104
|
+
options: localVarRequestOptions,
|
|
7105
|
+
};
|
|
7106
|
+
}),
|
|
7107
|
+
/**
|
|
7108
|
+
* Updates an existing billing alert configuration
|
|
7109
|
+
* @summary Update billing alert
|
|
7110
|
+
* @param {number} id Alert ID
|
|
7111
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Updated alert configuration
|
|
7112
|
+
* @param {*} [options] Override http request option.
|
|
7113
|
+
* @throws {RequiredError}
|
|
7114
|
+
*/
|
|
7115
|
+
adminBillingAlertsIdPut: (id_1, dataTypesBillingAlertRequest_1, ...args_1) => __awaiter(this, [id_1, dataTypesBillingAlertRequest_1, ...args_1], void 0, function* (id, dataTypesBillingAlertRequest, options = {}) {
|
|
7116
|
+
// verify required parameter 'id' is not null or undefined
|
|
7117
|
+
(0, common_1.assertParamExists)('adminBillingAlertsIdPut', 'id', id);
|
|
7118
|
+
// verify required parameter 'dataTypesBillingAlertRequest' is not null or undefined
|
|
7119
|
+
(0, common_1.assertParamExists)('adminBillingAlertsIdPut', 'dataTypesBillingAlertRequest', dataTypesBillingAlertRequest);
|
|
7120
|
+
const localVarPath = `/admin/billing/alerts/{id}`
|
|
7121
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7122
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7123
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7124
|
+
let baseOptions;
|
|
7125
|
+
if (configuration) {
|
|
7126
|
+
baseOptions = configuration.baseOptions;
|
|
7127
|
+
}
|
|
7128
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
7129
|
+
const localVarHeaderParameter = {};
|
|
7130
|
+
const localVarQueryParameter = {};
|
|
7131
|
+
// authentication BearerAuth required
|
|
7132
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7133
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7134
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7135
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7136
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7137
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesBillingAlertRequest, localVarRequestOptions, configuration);
|
|
7138
|
+
return {
|
|
7139
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7140
|
+
options: localVarRequestOptions,
|
|
7141
|
+
};
|
|
7142
|
+
}),
|
|
7143
|
+
/**
|
|
7144
|
+
* Creates a new billing alert configuration for the organization
|
|
7145
|
+
* @summary Create billing alert
|
|
7146
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Alert configuration
|
|
7147
|
+
* @param {*} [options] Override http request option.
|
|
7148
|
+
* @throws {RequiredError}
|
|
7149
|
+
*/
|
|
7150
|
+
adminBillingAlertsPost: (dataTypesBillingAlertRequest_1, ...args_1) => __awaiter(this, [dataTypesBillingAlertRequest_1, ...args_1], void 0, function* (dataTypesBillingAlertRequest, options = {}) {
|
|
7151
|
+
// verify required parameter 'dataTypesBillingAlertRequest' is not null or undefined
|
|
7152
|
+
(0, common_1.assertParamExists)('adminBillingAlertsPost', 'dataTypesBillingAlertRequest', dataTypesBillingAlertRequest);
|
|
7153
|
+
const localVarPath = `/admin/billing/alerts`;
|
|
7154
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7155
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7156
|
+
let baseOptions;
|
|
7157
|
+
if (configuration) {
|
|
7158
|
+
baseOptions = configuration.baseOptions;
|
|
7159
|
+
}
|
|
7160
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7161
|
+
const localVarHeaderParameter = {};
|
|
7162
|
+
const localVarQueryParameter = {};
|
|
7163
|
+
// authentication BearerAuth required
|
|
7164
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7165
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7166
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7167
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7168
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7169
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesBillingAlertRequest, localVarRequestOptions, configuration);
|
|
7170
|
+
return {
|
|
7171
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7172
|
+
options: localVarRequestOptions,
|
|
7173
|
+
};
|
|
7174
|
+
}),
|
|
6851
7175
|
/**
|
|
6852
7176
|
* Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
|
|
6853
7177
|
* @summary Get credit consumption
|
|
6854
7178
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
6855
|
-
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
6856
|
-
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
6857
|
-
* @param {number} [
|
|
6858
|
-
* @param {number} [
|
|
7179
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format, defaults to 7 days ago)
|
|
7180
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format, defaults to now)
|
|
7181
|
+
* @param {number} [page] Page number (default: 1)
|
|
7182
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100)
|
|
7183
|
+
* @param {number} [limit] Alternative: Number of results (default: 20, max: 100)
|
|
7184
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
6859
7185
|
* @param {*} [options] Override http request option.
|
|
6860
7186
|
* @throws {RequiredError}
|
|
6861
7187
|
*/
|
|
6862
|
-
adminBillingCreditConsumptionGet: (orgId_1, startDate_1, endDate_1, limit_1, offset_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, limit_1, offset_1, ...args_1], void 0, function* (orgId, startDate, endDate, limit, offset, options = {}) {
|
|
7188
|
+
adminBillingCreditConsumptionGet: (orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, offset_1, ...args_1) => __awaiter(this, [orgId_1, startDate_1, endDate_1, page_1, pageSize_1, limit_1, offset_1, ...args_1], void 0, function* (orgId, startDate, endDate, page, pageSize, limit, offset, options = {}) {
|
|
6863
7189
|
const localVarPath = `/admin/billing/credit-consumption`;
|
|
6864
7190
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6865
7191
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6881,6 +7207,12 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
6881
7207
|
if (endDate !== undefined) {
|
|
6882
7208
|
localVarQueryParameter['end_date'] = endDate;
|
|
6883
7209
|
}
|
|
7210
|
+
if (page !== undefined) {
|
|
7211
|
+
localVarQueryParameter['page'] = page;
|
|
7212
|
+
}
|
|
7213
|
+
if (pageSize !== undefined) {
|
|
7214
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
7215
|
+
}
|
|
6884
7216
|
if (limit !== undefined) {
|
|
6885
7217
|
localVarQueryParameter['limit'] = limit;
|
|
6886
7218
|
}
|
|
@@ -7083,6 +7415,33 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7083
7415
|
options: localVarRequestOptions,
|
|
7084
7416
|
};
|
|
7085
7417
|
}),
|
|
7418
|
+
/**
|
|
7419
|
+
* Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
|
|
7420
|
+
* @summary Get org admin billing overview
|
|
7421
|
+
* @param {*} [options] Override http request option.
|
|
7422
|
+
* @throws {RequiredError}
|
|
7423
|
+
*/
|
|
7424
|
+
adminBillingOrgOverviewGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7425
|
+
const localVarPath = `/admin/billing/org-overview`;
|
|
7426
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7427
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7428
|
+
let baseOptions;
|
|
7429
|
+
if (configuration) {
|
|
7430
|
+
baseOptions = configuration.baseOptions;
|
|
7431
|
+
}
|
|
7432
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7433
|
+
const localVarHeaderParameter = {};
|
|
7434
|
+
const localVarQueryParameter = {};
|
|
7435
|
+
// authentication BearerAuth required
|
|
7436
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7437
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7438
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7439
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7440
|
+
return {
|
|
7441
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7442
|
+
options: localVarRequestOptions,
|
|
7443
|
+
};
|
|
7444
|
+
}),
|
|
7086
7445
|
/**
|
|
7087
7446
|
* Retrieves billing summary for all organizations with filtering options
|
|
7088
7447
|
* @summary Get organization billing summary
|
|
@@ -7216,6 +7575,33 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7216
7575
|
options: localVarRequestOptions,
|
|
7217
7576
|
};
|
|
7218
7577
|
}),
|
|
7578
|
+
/**
|
|
7579
|
+
* Returns saved payment cards from Razorpay for the organization
|
|
7580
|
+
* @summary Get saved payment cards
|
|
7581
|
+
* @param {*} [options] Override http request option.
|
|
7582
|
+
* @throws {RequiredError}
|
|
7583
|
+
*/
|
|
7584
|
+
adminBillingSavedCardsGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7585
|
+
const localVarPath = `/admin/billing/saved-cards`;
|
|
7586
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7587
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7588
|
+
let baseOptions;
|
|
7589
|
+
if (configuration) {
|
|
7590
|
+
baseOptions = configuration.baseOptions;
|
|
7591
|
+
}
|
|
7592
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7593
|
+
const localVarHeaderParameter = {};
|
|
7594
|
+
const localVarQueryParameter = {};
|
|
7595
|
+
// authentication BearerAuth required
|
|
7596
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7597
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7598
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7599
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7600
|
+
return {
|
|
7601
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7602
|
+
options: localVarRequestOptions,
|
|
7603
|
+
};
|
|
7604
|
+
}),
|
|
7219
7605
|
};
|
|
7220
7606
|
};
|
|
7221
7607
|
exports.BillingDashboardApiAxiosParamCreator = BillingDashboardApiAxiosParamCreator;
|
|
@@ -7226,21 +7612,87 @@ exports.BillingDashboardApiAxiosParamCreator = BillingDashboardApiAxiosParamCrea
|
|
|
7226
7612
|
const BillingDashboardApiFp = function (configuration) {
|
|
7227
7613
|
const localVarAxiosParamCreator = (0, exports.BillingDashboardApiAxiosParamCreator)(configuration);
|
|
7228
7614
|
return {
|
|
7615
|
+
/**
|
|
7616
|
+
* Returns all billing alerts configured for the organization
|
|
7617
|
+
* @summary Get billing alerts
|
|
7618
|
+
* @param {*} [options] Override http request option.
|
|
7619
|
+
* @throws {RequiredError}
|
|
7620
|
+
*/
|
|
7621
|
+
adminBillingAlertsGet(options) {
|
|
7622
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7623
|
+
var _a, _b, _c;
|
|
7624
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertsGet(options);
|
|
7625
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7626
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingAlertsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7627
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7628
|
+
});
|
|
7629
|
+
},
|
|
7630
|
+
/**
|
|
7631
|
+
* Deletes a billing alert configuration
|
|
7632
|
+
* @summary Delete billing alert
|
|
7633
|
+
* @param {number} id Alert ID
|
|
7634
|
+
* @param {*} [options] Override http request option.
|
|
7635
|
+
* @throws {RequiredError}
|
|
7636
|
+
*/
|
|
7637
|
+
adminBillingAlertsIdDelete(id, options) {
|
|
7638
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7639
|
+
var _a, _b, _c;
|
|
7640
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertsIdDelete(id, options);
|
|
7641
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7642
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingAlertsIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7643
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7644
|
+
});
|
|
7645
|
+
},
|
|
7646
|
+
/**
|
|
7647
|
+
* Updates an existing billing alert configuration
|
|
7648
|
+
* @summary Update billing alert
|
|
7649
|
+
* @param {number} id Alert ID
|
|
7650
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Updated alert configuration
|
|
7651
|
+
* @param {*} [options] Override http request option.
|
|
7652
|
+
* @throws {RequiredError}
|
|
7653
|
+
*/
|
|
7654
|
+
adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options) {
|
|
7655
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7656
|
+
var _a, _b, _c;
|
|
7657
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options);
|
|
7658
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7659
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingAlertsIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7660
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7661
|
+
});
|
|
7662
|
+
},
|
|
7663
|
+
/**
|
|
7664
|
+
* Creates a new billing alert configuration for the organization
|
|
7665
|
+
* @summary Create billing alert
|
|
7666
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Alert configuration
|
|
7667
|
+
* @param {*} [options] Override http request option.
|
|
7668
|
+
* @throws {RequiredError}
|
|
7669
|
+
*/
|
|
7670
|
+
adminBillingAlertsPost(dataTypesBillingAlertRequest, options) {
|
|
7671
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7672
|
+
var _a, _b, _c;
|
|
7673
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertsPost(dataTypesBillingAlertRequest, options);
|
|
7674
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7675
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingAlertsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7676
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7677
|
+
});
|
|
7678
|
+
},
|
|
7229
7679
|
/**
|
|
7230
7680
|
* Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
|
|
7231
7681
|
* @summary Get credit consumption
|
|
7232
7682
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
7233
|
-
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
7234
|
-
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
7235
|
-
* @param {number} [
|
|
7236
|
-
* @param {number} [
|
|
7683
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format, defaults to 7 days ago)
|
|
7684
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format, defaults to now)
|
|
7685
|
+
* @param {number} [page] Page number (default: 1)
|
|
7686
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100)
|
|
7687
|
+
* @param {number} [limit] Alternative: Number of results (default: 20, max: 100)
|
|
7688
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
7237
7689
|
* @param {*} [options] Override http request option.
|
|
7238
7690
|
* @throws {RequiredError}
|
|
7239
7691
|
*/
|
|
7240
|
-
adminBillingCreditConsumptionGet(orgId, startDate, endDate, limit, offset, options) {
|
|
7692
|
+
adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options) {
|
|
7241
7693
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7242
7694
|
var _a, _b, _c;
|
|
7243
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditConsumptionGet(orgId, startDate, endDate, limit, offset, options);
|
|
7695
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options);
|
|
7244
7696
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7245
7697
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingCreditConsumptionGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7246
7698
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7326,6 +7778,21 @@ const BillingDashboardApiFp = function (configuration) {
|
|
|
7326
7778
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7327
7779
|
});
|
|
7328
7780
|
},
|
|
7781
|
+
/**
|
|
7782
|
+
* Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
|
|
7783
|
+
* @summary Get org admin billing overview
|
|
7784
|
+
* @param {*} [options] Override http request option.
|
|
7785
|
+
* @throws {RequiredError}
|
|
7786
|
+
*/
|
|
7787
|
+
adminBillingOrgOverviewGet(options) {
|
|
7788
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7789
|
+
var _a, _b, _c;
|
|
7790
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingOrgOverviewGet(options);
|
|
7791
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7792
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingOrgOverviewGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7793
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7794
|
+
});
|
|
7795
|
+
},
|
|
7329
7796
|
/**
|
|
7330
7797
|
* Retrieves billing summary for all organizations with filtering options
|
|
7331
7798
|
* @summary Get organization billing summary
|
|
@@ -7384,6 +7851,21 @@ const BillingDashboardApiFp = function (configuration) {
|
|
|
7384
7851
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7385
7852
|
});
|
|
7386
7853
|
},
|
|
7854
|
+
/**
|
|
7855
|
+
* Returns saved payment cards from Razorpay for the organization
|
|
7856
|
+
* @summary Get saved payment cards
|
|
7857
|
+
* @param {*} [options] Override http request option.
|
|
7858
|
+
* @throws {RequiredError}
|
|
7859
|
+
*/
|
|
7860
|
+
adminBillingSavedCardsGet(options) {
|
|
7861
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7862
|
+
var _a, _b, _c;
|
|
7863
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingSavedCardsGet(options);
|
|
7864
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7865
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingDashboardApi.adminBillingSavedCardsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7866
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7867
|
+
});
|
|
7868
|
+
},
|
|
7387
7869
|
};
|
|
7388
7870
|
};
|
|
7389
7871
|
exports.BillingDashboardApiFp = BillingDashboardApiFp;
|
|
@@ -7394,19 +7876,61 @@ exports.BillingDashboardApiFp = BillingDashboardApiFp;
|
|
|
7394
7876
|
const BillingDashboardApiFactory = function (configuration, basePath, axios) {
|
|
7395
7877
|
const localVarFp = (0, exports.BillingDashboardApiFp)(configuration);
|
|
7396
7878
|
return {
|
|
7879
|
+
/**
|
|
7880
|
+
* Returns all billing alerts configured for the organization
|
|
7881
|
+
* @summary Get billing alerts
|
|
7882
|
+
* @param {*} [options] Override http request option.
|
|
7883
|
+
* @throws {RequiredError}
|
|
7884
|
+
*/
|
|
7885
|
+
adminBillingAlertsGet(options) {
|
|
7886
|
+
return localVarFp.adminBillingAlertsGet(options).then((request) => request(axios, basePath));
|
|
7887
|
+
},
|
|
7888
|
+
/**
|
|
7889
|
+
* Deletes a billing alert configuration
|
|
7890
|
+
* @summary Delete billing alert
|
|
7891
|
+
* @param {number} id Alert ID
|
|
7892
|
+
* @param {*} [options] Override http request option.
|
|
7893
|
+
* @throws {RequiredError}
|
|
7894
|
+
*/
|
|
7895
|
+
adminBillingAlertsIdDelete(id, options) {
|
|
7896
|
+
return localVarFp.adminBillingAlertsIdDelete(id, options).then((request) => request(axios, basePath));
|
|
7897
|
+
},
|
|
7898
|
+
/**
|
|
7899
|
+
* Updates an existing billing alert configuration
|
|
7900
|
+
* @summary Update billing alert
|
|
7901
|
+
* @param {number} id Alert ID
|
|
7902
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Updated alert configuration
|
|
7903
|
+
* @param {*} [options] Override http request option.
|
|
7904
|
+
* @throws {RequiredError}
|
|
7905
|
+
*/
|
|
7906
|
+
adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options) {
|
|
7907
|
+
return localVarFp.adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options).then((request) => request(axios, basePath));
|
|
7908
|
+
},
|
|
7909
|
+
/**
|
|
7910
|
+
* Creates a new billing alert configuration for the organization
|
|
7911
|
+
* @summary Create billing alert
|
|
7912
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Alert configuration
|
|
7913
|
+
* @param {*} [options] Override http request option.
|
|
7914
|
+
* @throws {RequiredError}
|
|
7915
|
+
*/
|
|
7916
|
+
adminBillingAlertsPost(dataTypesBillingAlertRequest, options) {
|
|
7917
|
+
return localVarFp.adminBillingAlertsPost(dataTypesBillingAlertRequest, options).then((request) => request(axios, basePath));
|
|
7918
|
+
},
|
|
7397
7919
|
/**
|
|
7398
7920
|
* Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
|
|
7399
7921
|
* @summary Get credit consumption
|
|
7400
7922
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
7401
|
-
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
7402
|
-
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
7403
|
-
* @param {number} [
|
|
7404
|
-
* @param {number} [
|
|
7923
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format, defaults to 7 days ago)
|
|
7924
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format, defaults to now)
|
|
7925
|
+
* @param {number} [page] Page number (default: 1)
|
|
7926
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100)
|
|
7927
|
+
* @param {number} [limit] Alternative: Number of results (default: 20, max: 100)
|
|
7928
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
7405
7929
|
* @param {*} [options] Override http request option.
|
|
7406
7930
|
* @throws {RequiredError}
|
|
7407
7931
|
*/
|
|
7408
|
-
adminBillingCreditConsumptionGet(orgId, startDate, endDate, limit, offset, options) {
|
|
7409
|
-
return localVarFp.adminBillingCreditConsumptionGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
7932
|
+
adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options) {
|
|
7933
|
+
return localVarFp.adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options).then((request) => request(axios, basePath));
|
|
7410
7934
|
},
|
|
7411
7935
|
/**
|
|
7412
7936
|
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
@@ -7464,6 +7988,15 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
7464
7988
|
adminBillingOrdersGet(orgId, startDate, endDate, limit, offset, options) {
|
|
7465
7989
|
return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
7466
7990
|
},
|
|
7991
|
+
/**
|
|
7992
|
+
* Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
|
|
7993
|
+
* @summary Get org admin billing overview
|
|
7994
|
+
* @param {*} [options] Override http request option.
|
|
7995
|
+
* @throws {RequiredError}
|
|
7996
|
+
*/
|
|
7997
|
+
adminBillingOrgOverviewGet(options) {
|
|
7998
|
+
return localVarFp.adminBillingOrgOverviewGet(options).then((request) => request(axios, basePath));
|
|
7999
|
+
},
|
|
7467
8000
|
/**
|
|
7468
8001
|
* Retrieves billing summary for all organizations with filtering options
|
|
7469
8002
|
* @summary Get organization billing summary
|
|
@@ -7504,6 +8037,15 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
7504
8037
|
adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
|
|
7505
8038
|
return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
7506
8039
|
},
|
|
8040
|
+
/**
|
|
8041
|
+
* Returns saved payment cards from Razorpay for the organization
|
|
8042
|
+
* @summary Get saved payment cards
|
|
8043
|
+
* @param {*} [options] Override http request option.
|
|
8044
|
+
* @throws {RequiredError}
|
|
8045
|
+
*/
|
|
8046
|
+
adminBillingSavedCardsGet(options) {
|
|
8047
|
+
return localVarFp.adminBillingSavedCardsGet(options).then((request) => request(axios, basePath));
|
|
8048
|
+
},
|
|
7507
8049
|
};
|
|
7508
8050
|
};
|
|
7509
8051
|
exports.BillingDashboardApiFactory = BillingDashboardApiFactory;
|
|
@@ -7514,20 +8056,66 @@ exports.BillingDashboardApiFactory = BillingDashboardApiFactory;
|
|
|
7514
8056
|
* @extends {BaseAPI}
|
|
7515
8057
|
*/
|
|
7516
8058
|
class BillingDashboardApi extends base_1.BaseAPI {
|
|
8059
|
+
/**
|
|
8060
|
+
* Returns all billing alerts configured for the organization
|
|
8061
|
+
* @summary Get billing alerts
|
|
8062
|
+
* @param {*} [options] Override http request option.
|
|
8063
|
+
* @throws {RequiredError}
|
|
8064
|
+
* @memberof BillingDashboardApi
|
|
8065
|
+
*/
|
|
8066
|
+
adminBillingAlertsGet(options) {
|
|
8067
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingAlertsGet(options).then((request) => request(this.axios, this.basePath));
|
|
8068
|
+
}
|
|
8069
|
+
/**
|
|
8070
|
+
* Deletes a billing alert configuration
|
|
8071
|
+
* @summary Delete billing alert
|
|
8072
|
+
* @param {number} id Alert ID
|
|
8073
|
+
* @param {*} [options] Override http request option.
|
|
8074
|
+
* @throws {RequiredError}
|
|
8075
|
+
* @memberof BillingDashboardApi
|
|
8076
|
+
*/
|
|
8077
|
+
adminBillingAlertsIdDelete(id, options) {
|
|
8078
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingAlertsIdDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
8079
|
+
}
|
|
8080
|
+
/**
|
|
8081
|
+
* Updates an existing billing alert configuration
|
|
8082
|
+
* @summary Update billing alert
|
|
8083
|
+
* @param {number} id Alert ID
|
|
8084
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Updated alert configuration
|
|
8085
|
+
* @param {*} [options] Override http request option.
|
|
8086
|
+
* @throws {RequiredError}
|
|
8087
|
+
* @memberof BillingDashboardApi
|
|
8088
|
+
*/
|
|
8089
|
+
adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options) {
|
|
8090
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8091
|
+
}
|
|
8092
|
+
/**
|
|
8093
|
+
* Creates a new billing alert configuration for the organization
|
|
8094
|
+
* @summary Create billing alert
|
|
8095
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Alert configuration
|
|
8096
|
+
* @param {*} [options] Override http request option.
|
|
8097
|
+
* @throws {RequiredError}
|
|
8098
|
+
* @memberof BillingDashboardApi
|
|
8099
|
+
*/
|
|
8100
|
+
adminBillingAlertsPost(dataTypesBillingAlertRequest, options) {
|
|
8101
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingAlertsPost(dataTypesBillingAlertRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8102
|
+
}
|
|
7517
8103
|
/**
|
|
7518
8104
|
* Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
|
|
7519
8105
|
* @summary Get credit consumption
|
|
7520
8106
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
7521
|
-
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
7522
|
-
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
7523
|
-
* @param {number} [
|
|
7524
|
-
* @param {number} [
|
|
8107
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format, defaults to 7 days ago)
|
|
8108
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format, defaults to now)
|
|
8109
|
+
* @param {number} [page] Page number (default: 1)
|
|
8110
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100)
|
|
8111
|
+
* @param {number} [limit] Alternative: Number of results (default: 20, max: 100)
|
|
8112
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
7525
8113
|
* @param {*} [options] Override http request option.
|
|
7526
8114
|
* @throws {RequiredError}
|
|
7527
8115
|
* @memberof BillingDashboardApi
|
|
7528
8116
|
*/
|
|
7529
|
-
adminBillingCreditConsumptionGet(orgId, startDate, endDate, limit, offset, options) {
|
|
7530
|
-
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingCreditConsumptionGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
8117
|
+
adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options) {
|
|
8118
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
7531
8119
|
}
|
|
7532
8120
|
/**
|
|
7533
8121
|
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
@@ -7589,6 +8177,16 @@ class BillingDashboardApi extends base_1.BaseAPI {
|
|
|
7589
8177
|
adminBillingOrdersGet(orgId, startDate, endDate, limit, offset, options) {
|
|
7590
8178
|
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
7591
8179
|
}
|
|
8180
|
+
/**
|
|
8181
|
+
* Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
|
|
8182
|
+
* @summary Get org admin billing overview
|
|
8183
|
+
* @param {*} [options] Override http request option.
|
|
8184
|
+
* @throws {RequiredError}
|
|
8185
|
+
* @memberof BillingDashboardApi
|
|
8186
|
+
*/
|
|
8187
|
+
adminBillingOrgOverviewGet(options) {
|
|
8188
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingOrgOverviewGet(options).then((request) => request(this.axios, this.basePath));
|
|
8189
|
+
}
|
|
7592
8190
|
/**
|
|
7593
8191
|
* Retrieves billing summary for all organizations with filtering options
|
|
7594
8192
|
* @summary Get organization billing summary
|
|
@@ -7632,6 +8230,16 @@ class BillingDashboardApi extends base_1.BaseAPI {
|
|
|
7632
8230
|
adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
|
|
7633
8231
|
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
7634
8232
|
}
|
|
8233
|
+
/**
|
|
8234
|
+
* Returns saved payment cards from Razorpay for the organization
|
|
8235
|
+
* @summary Get saved payment cards
|
|
8236
|
+
* @param {*} [options] Override http request option.
|
|
8237
|
+
* @throws {RequiredError}
|
|
8238
|
+
* @memberof BillingDashboardApi
|
|
8239
|
+
*/
|
|
8240
|
+
adminBillingSavedCardsGet(options) {
|
|
8241
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingSavedCardsGet(options).then((request) => request(this.axios, this.basePath));
|
|
8242
|
+
}
|
|
7635
8243
|
}
|
|
7636
8244
|
exports.BillingDashboardApi = BillingDashboardApi;
|
|
7637
8245
|
/**
|