@seekora-ai/admin-api 1.0.76 → 1.0.78
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 +29 -2
- package/api.ts +1457 -117
- package/dist/api.d.ts +1045 -32
- package/dist/api.js +608 -28
- package/dist/esm/api.d.ts +1045 -32
- package/dist/esm/api.js +603 -23
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.0.78.tgz +0 -0
- package/seekora-ai-admin-api-1.0.76.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'
|
|
@@ -5194,6 +5199,85 @@ const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5194
5199
|
options: localVarRequestOptions,
|
|
5195
5200
|
};
|
|
5196
5201
|
}),
|
|
5202
|
+
/**
|
|
5203
|
+
* 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.
|
|
5204
|
+
* @summary Get Item by ID for Rule Management
|
|
5205
|
+
* @param {string} authorization Bearer JWT token
|
|
5206
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
5207
|
+
* @param {string} itemId Item ID to retrieve
|
|
5208
|
+
* @param {*} [options] Override http request option.
|
|
5209
|
+
* @throws {RequiredError}
|
|
5210
|
+
*/
|
|
5211
|
+
apiAdminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet: (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 = {}) {
|
|
5212
|
+
// verify required parameter 'authorization' is not null or undefined
|
|
5213
|
+
(0, common_1.assertParamExists)('apiAdminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet', 'authorization', authorization);
|
|
5214
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
5215
|
+
(0, common_1.assertParamExists)('apiAdminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet', 'xStoreID', xStoreID);
|
|
5216
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
5217
|
+
(0, common_1.assertParamExists)('apiAdminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet', 'itemId', itemId);
|
|
5218
|
+
const localVarPath = `/api/admin/v1/stores/{xStoreID}/analytics/rules/items/{itemId}`
|
|
5219
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
|
|
5220
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
5221
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5222
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5223
|
+
let baseOptions;
|
|
5224
|
+
if (configuration) {
|
|
5225
|
+
baseOptions = configuration.baseOptions;
|
|
5226
|
+
}
|
|
5227
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5228
|
+
const localVarHeaderParameter = {};
|
|
5229
|
+
const localVarQueryParameter = {};
|
|
5230
|
+
if (authorization != null) {
|
|
5231
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5232
|
+
}
|
|
5233
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5234
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5235
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5236
|
+
return {
|
|
5237
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5238
|
+
options: localVarRequestOptions,
|
|
5239
|
+
};
|
|
5240
|
+
}),
|
|
5241
|
+
/**
|
|
5242
|
+
* 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).
|
|
5243
|
+
* @summary Search Items for Rule Management
|
|
5244
|
+
* @param {string} authorization Bearer JWT token
|
|
5245
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
5246
|
+
* @param {DataTypesSearchRuleItemsRequest} dataTypesSearchRuleItemsRequest Search parameters (query, page, per_page, filter)
|
|
5247
|
+
* @param {*} [options] Override http request option.
|
|
5248
|
+
* @throws {RequiredError}
|
|
5249
|
+
*/
|
|
5250
|
+
apiAdminV1StoresXStoreIDAnalyticsRulesSearchItemsPost: (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 = {}) {
|
|
5251
|
+
// verify required parameter 'authorization' is not null or undefined
|
|
5252
|
+
(0, common_1.assertParamExists)('apiAdminV1StoresXStoreIDAnalyticsRulesSearchItemsPost', 'authorization', authorization);
|
|
5253
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
5254
|
+
(0, common_1.assertParamExists)('apiAdminV1StoresXStoreIDAnalyticsRulesSearchItemsPost', 'xStoreID', xStoreID);
|
|
5255
|
+
// verify required parameter 'dataTypesSearchRuleItemsRequest' is not null or undefined
|
|
5256
|
+
(0, common_1.assertParamExists)('apiAdminV1StoresXStoreIDAnalyticsRulesSearchItemsPost', 'dataTypesSearchRuleItemsRequest', dataTypesSearchRuleItemsRequest);
|
|
5257
|
+
const localVarPath = `/api/admin/v1/stores/{xStoreID}/analytics/rules/search-items`
|
|
5258
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
5259
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5260
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5261
|
+
let baseOptions;
|
|
5262
|
+
if (configuration) {
|
|
5263
|
+
baseOptions = configuration.baseOptions;
|
|
5264
|
+
}
|
|
5265
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5266
|
+
const localVarHeaderParameter = {};
|
|
5267
|
+
const localVarQueryParameter = {};
|
|
5268
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5269
|
+
if (authorization != null) {
|
|
5270
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5271
|
+
}
|
|
5272
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5273
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5274
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5275
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesSearchRuleItemsRequest, localVarRequestOptions, configuration);
|
|
5276
|
+
return {
|
|
5277
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5278
|
+
options: localVarRequestOptions,
|
|
5279
|
+
};
|
|
5280
|
+
}),
|
|
5197
5281
|
/**
|
|
5198
5282
|
* 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
5283
|
* @summary List Analytics Rules
|
|
@@ -5593,6 +5677,42 @@ const AnalyticsRulesApiFp = function (configuration) {
|
|
|
5593
5677
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5594
5678
|
});
|
|
5595
5679
|
},
|
|
5680
|
+
/**
|
|
5681
|
+
* 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.
|
|
5682
|
+
* @summary Get Item by ID for Rule Management
|
|
5683
|
+
* @param {string} authorization Bearer JWT token
|
|
5684
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
5685
|
+
* @param {string} itemId Item ID to retrieve
|
|
5686
|
+
* @param {*} [options] Override http request option.
|
|
5687
|
+
* @throws {RequiredError}
|
|
5688
|
+
*/
|
|
5689
|
+
apiAdminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options) {
|
|
5690
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5691
|
+
var _a, _b, _c;
|
|
5692
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options);
|
|
5693
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5694
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.apiAdminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5695
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5696
|
+
});
|
|
5697
|
+
},
|
|
5698
|
+
/**
|
|
5699
|
+
* 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).
|
|
5700
|
+
* @summary Search Items for Rule Management
|
|
5701
|
+
* @param {string} authorization Bearer JWT token
|
|
5702
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
5703
|
+
* @param {DataTypesSearchRuleItemsRequest} dataTypesSearchRuleItemsRequest Search parameters (query, page, per_page, filter)
|
|
5704
|
+
* @param {*} [options] Override http request option.
|
|
5705
|
+
* @throws {RequiredError}
|
|
5706
|
+
*/
|
|
5707
|
+
apiAdminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options) {
|
|
5708
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5709
|
+
var _a, _b, _c;
|
|
5710
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options);
|
|
5711
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5712
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsRulesApi.apiAdminV1StoresXStoreIDAnalyticsRulesSearchItemsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5713
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5714
|
+
});
|
|
5715
|
+
},
|
|
5596
5716
|
/**
|
|
5597
5717
|
* Retrieve a paginated list of analytics rules with optional filtering by store, collection, and active status. Supports both page-based and offset-based pagination.
|
|
5598
5718
|
* @summary List Analytics Rules
|
|
@@ -5797,6 +5917,30 @@ const AnalyticsRulesApiFactory = function (configuration, basePath, axios) {
|
|
|
5797
5917
|
apiAdminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options) {
|
|
5798
5918
|
return localVarFp.apiAdminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options).then((request) => request(axios, basePath));
|
|
5799
5919
|
},
|
|
5920
|
+
/**
|
|
5921
|
+
* 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.
|
|
5922
|
+
* @summary Get Item by ID for Rule Management
|
|
5923
|
+
* @param {string} authorization Bearer JWT token
|
|
5924
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
5925
|
+
* @param {string} itemId Item ID to retrieve
|
|
5926
|
+
* @param {*} [options] Override http request option.
|
|
5927
|
+
* @throws {RequiredError}
|
|
5928
|
+
*/
|
|
5929
|
+
apiAdminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options) {
|
|
5930
|
+
return localVarFp.apiAdminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options).then((request) => request(axios, basePath));
|
|
5931
|
+
},
|
|
5932
|
+
/**
|
|
5933
|
+
* 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).
|
|
5934
|
+
* @summary Search Items for Rule Management
|
|
5935
|
+
* @param {string} authorization Bearer JWT token
|
|
5936
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
5937
|
+
* @param {DataTypesSearchRuleItemsRequest} dataTypesSearchRuleItemsRequest Search parameters (query, page, per_page, filter)
|
|
5938
|
+
* @param {*} [options] Override http request option.
|
|
5939
|
+
* @throws {RequiredError}
|
|
5940
|
+
*/
|
|
5941
|
+
apiAdminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options) {
|
|
5942
|
+
return localVarFp.apiAdminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options).then((request) => request(axios, basePath));
|
|
5943
|
+
},
|
|
5800
5944
|
/**
|
|
5801
5945
|
* Retrieve a paginated list of analytics rules with optional filtering by store, collection, and active status. Supports both page-based and offset-based pagination.
|
|
5802
5946
|
* @summary List Analytics Rules
|
|
@@ -5971,6 +6115,32 @@ class AnalyticsRulesApi extends base_1.BaseAPI {
|
|
|
5971
6115
|
apiAdminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options) {
|
|
5972
6116
|
return (0, exports.AnalyticsRulesApiFp)(this.configuration).apiAdminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5973
6117
|
}
|
|
6118
|
+
/**
|
|
6119
|
+
* 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.
|
|
6120
|
+
* @summary Get Item by ID for Rule Management
|
|
6121
|
+
* @param {string} authorization Bearer JWT token
|
|
6122
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
6123
|
+
* @param {string} itemId Item ID to retrieve
|
|
6124
|
+
* @param {*} [options] Override http request option.
|
|
6125
|
+
* @throws {RequiredError}
|
|
6126
|
+
* @memberof AnalyticsRulesApi
|
|
6127
|
+
*/
|
|
6128
|
+
apiAdminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options) {
|
|
6129
|
+
return (0, exports.AnalyticsRulesApiFp)(this.configuration).apiAdminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options).then((request) => request(this.axios, this.basePath));
|
|
6130
|
+
}
|
|
6131
|
+
/**
|
|
6132
|
+
* 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).
|
|
6133
|
+
* @summary Search Items for Rule Management
|
|
6134
|
+
* @param {string} authorization Bearer JWT token
|
|
6135
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
6136
|
+
* @param {DataTypesSearchRuleItemsRequest} dataTypesSearchRuleItemsRequest Search parameters (query, page, per_page, filter)
|
|
6137
|
+
* @param {*} [options] Override http request option.
|
|
6138
|
+
* @throws {RequiredError}
|
|
6139
|
+
* @memberof AnalyticsRulesApi
|
|
6140
|
+
*/
|
|
6141
|
+
apiAdminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options) {
|
|
6142
|
+
return (0, exports.AnalyticsRulesApiFp)(this.configuration).apiAdminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6143
|
+
}
|
|
5974
6144
|
/**
|
|
5975
6145
|
* Retrieve a paginated list of analytics rules with optional filtering by store, collection, and active status. Supports both page-based and offset-based pagination.
|
|
5976
6146
|
* @summary List Analytics Rules
|
|
@@ -6848,18 +7018,146 @@ exports.AutomatedRefundManagementApi = AutomatedRefundManagementApi;
|
|
|
6848
7018
|
*/
|
|
6849
7019
|
const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
6850
7020
|
return {
|
|
7021
|
+
/**
|
|
7022
|
+
* Returns all billing alerts configured for the organization
|
|
7023
|
+
* @summary Get billing alerts
|
|
7024
|
+
* @param {*} [options] Override http request option.
|
|
7025
|
+
* @throws {RequiredError}
|
|
7026
|
+
*/
|
|
7027
|
+
adminBillingAlertsGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7028
|
+
const localVarPath = `/admin/billing/alerts`;
|
|
7029
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7030
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7031
|
+
let baseOptions;
|
|
7032
|
+
if (configuration) {
|
|
7033
|
+
baseOptions = configuration.baseOptions;
|
|
7034
|
+
}
|
|
7035
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7036
|
+
const localVarHeaderParameter = {};
|
|
7037
|
+
const localVarQueryParameter = {};
|
|
7038
|
+
// authentication BearerAuth required
|
|
7039
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7040
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7041
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7042
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7043
|
+
return {
|
|
7044
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7045
|
+
options: localVarRequestOptions,
|
|
7046
|
+
};
|
|
7047
|
+
}),
|
|
7048
|
+
/**
|
|
7049
|
+
* Deletes a billing alert configuration
|
|
7050
|
+
* @summary Delete billing alert
|
|
7051
|
+
* @param {number} id Alert ID
|
|
7052
|
+
* @param {*} [options] Override http request option.
|
|
7053
|
+
* @throws {RequiredError}
|
|
7054
|
+
*/
|
|
7055
|
+
adminBillingAlertsIdDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
7056
|
+
// verify required parameter 'id' is not null or undefined
|
|
7057
|
+
(0, common_1.assertParamExists)('adminBillingAlertsIdDelete', 'id', id);
|
|
7058
|
+
const localVarPath = `/admin/billing/alerts/{id}`
|
|
7059
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7060
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7061
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7062
|
+
let baseOptions;
|
|
7063
|
+
if (configuration) {
|
|
7064
|
+
baseOptions = configuration.baseOptions;
|
|
7065
|
+
}
|
|
7066
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
7067
|
+
const localVarHeaderParameter = {};
|
|
7068
|
+
const localVarQueryParameter = {};
|
|
7069
|
+
// authentication BearerAuth required
|
|
7070
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7071
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7072
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7073
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7074
|
+
return {
|
|
7075
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7076
|
+
options: localVarRequestOptions,
|
|
7077
|
+
};
|
|
7078
|
+
}),
|
|
7079
|
+
/**
|
|
7080
|
+
* Updates an existing billing alert configuration
|
|
7081
|
+
* @summary Update billing alert
|
|
7082
|
+
* @param {number} id Alert ID
|
|
7083
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Updated alert configuration
|
|
7084
|
+
* @param {*} [options] Override http request option.
|
|
7085
|
+
* @throws {RequiredError}
|
|
7086
|
+
*/
|
|
7087
|
+
adminBillingAlertsIdPut: (id_1, dataTypesBillingAlertRequest_1, ...args_1) => __awaiter(this, [id_1, dataTypesBillingAlertRequest_1, ...args_1], void 0, function* (id, dataTypesBillingAlertRequest, options = {}) {
|
|
7088
|
+
// verify required parameter 'id' is not null or undefined
|
|
7089
|
+
(0, common_1.assertParamExists)('adminBillingAlertsIdPut', 'id', id);
|
|
7090
|
+
// verify required parameter 'dataTypesBillingAlertRequest' is not null or undefined
|
|
7091
|
+
(0, common_1.assertParamExists)('adminBillingAlertsIdPut', 'dataTypesBillingAlertRequest', dataTypesBillingAlertRequest);
|
|
7092
|
+
const localVarPath = `/admin/billing/alerts/{id}`
|
|
7093
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7094
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7095
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7096
|
+
let baseOptions;
|
|
7097
|
+
if (configuration) {
|
|
7098
|
+
baseOptions = configuration.baseOptions;
|
|
7099
|
+
}
|
|
7100
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
7101
|
+
const localVarHeaderParameter = {};
|
|
7102
|
+
const localVarQueryParameter = {};
|
|
7103
|
+
// authentication BearerAuth required
|
|
7104
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7105
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7106
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7107
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7108
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7109
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesBillingAlertRequest, localVarRequestOptions, configuration);
|
|
7110
|
+
return {
|
|
7111
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7112
|
+
options: localVarRequestOptions,
|
|
7113
|
+
};
|
|
7114
|
+
}),
|
|
7115
|
+
/**
|
|
7116
|
+
* Creates a new billing alert configuration for the organization
|
|
7117
|
+
* @summary Create billing alert
|
|
7118
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Alert configuration
|
|
7119
|
+
* @param {*} [options] Override http request option.
|
|
7120
|
+
* @throws {RequiredError}
|
|
7121
|
+
*/
|
|
7122
|
+
adminBillingAlertsPost: (dataTypesBillingAlertRequest_1, ...args_1) => __awaiter(this, [dataTypesBillingAlertRequest_1, ...args_1], void 0, function* (dataTypesBillingAlertRequest, options = {}) {
|
|
7123
|
+
// verify required parameter 'dataTypesBillingAlertRequest' is not null or undefined
|
|
7124
|
+
(0, common_1.assertParamExists)('adminBillingAlertsPost', 'dataTypesBillingAlertRequest', dataTypesBillingAlertRequest);
|
|
7125
|
+
const localVarPath = `/admin/billing/alerts`;
|
|
7126
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7127
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7128
|
+
let baseOptions;
|
|
7129
|
+
if (configuration) {
|
|
7130
|
+
baseOptions = configuration.baseOptions;
|
|
7131
|
+
}
|
|
7132
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7133
|
+
const localVarHeaderParameter = {};
|
|
7134
|
+
const localVarQueryParameter = {};
|
|
7135
|
+
// authentication BearerAuth required
|
|
7136
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7137
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7138
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7139
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7140
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7141
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesBillingAlertRequest, localVarRequestOptions, configuration);
|
|
7142
|
+
return {
|
|
7143
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7144
|
+
options: localVarRequestOptions,
|
|
7145
|
+
};
|
|
7146
|
+
}),
|
|
6851
7147
|
/**
|
|
6852
7148
|
* Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
|
|
6853
7149
|
* @summary Get credit consumption
|
|
6854
7150
|
* @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} [
|
|
7151
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format, defaults to 7 days ago)
|
|
7152
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format, defaults to now)
|
|
7153
|
+
* @param {number} [page] Page number (default: 1)
|
|
7154
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100)
|
|
7155
|
+
* @param {number} [limit] Alternative: Number of results (default: 20, max: 100)
|
|
7156
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
6859
7157
|
* @param {*} [options] Override http request option.
|
|
6860
7158
|
* @throws {RequiredError}
|
|
6861
7159
|
*/
|
|
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 = {}) {
|
|
7160
|
+
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
7161
|
const localVarPath = `/admin/billing/credit-consumption`;
|
|
6864
7162
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6865
7163
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6881,6 +7179,12 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
6881
7179
|
if (endDate !== undefined) {
|
|
6882
7180
|
localVarQueryParameter['end_date'] = endDate;
|
|
6883
7181
|
}
|
|
7182
|
+
if (page !== undefined) {
|
|
7183
|
+
localVarQueryParameter['page'] = page;
|
|
7184
|
+
}
|
|
7185
|
+
if (pageSize !== undefined) {
|
|
7186
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
7187
|
+
}
|
|
6884
7188
|
if (limit !== undefined) {
|
|
6885
7189
|
localVarQueryParameter['limit'] = limit;
|
|
6886
7190
|
}
|
|
@@ -7083,6 +7387,33 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7083
7387
|
options: localVarRequestOptions,
|
|
7084
7388
|
};
|
|
7085
7389
|
}),
|
|
7390
|
+
/**
|
|
7391
|
+
* Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
|
|
7392
|
+
* @summary Get org admin billing overview
|
|
7393
|
+
* @param {*} [options] Override http request option.
|
|
7394
|
+
* @throws {RequiredError}
|
|
7395
|
+
*/
|
|
7396
|
+
adminBillingOrgOverviewGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7397
|
+
const localVarPath = `/admin/billing/org-overview`;
|
|
7398
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7399
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7400
|
+
let baseOptions;
|
|
7401
|
+
if (configuration) {
|
|
7402
|
+
baseOptions = configuration.baseOptions;
|
|
7403
|
+
}
|
|
7404
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7405
|
+
const localVarHeaderParameter = {};
|
|
7406
|
+
const localVarQueryParameter = {};
|
|
7407
|
+
// authentication BearerAuth required
|
|
7408
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7409
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7410
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7411
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7412
|
+
return {
|
|
7413
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7414
|
+
options: localVarRequestOptions,
|
|
7415
|
+
};
|
|
7416
|
+
}),
|
|
7086
7417
|
/**
|
|
7087
7418
|
* Retrieves billing summary for all organizations with filtering options
|
|
7088
7419
|
* @summary Get organization billing summary
|
|
@@ -7216,6 +7547,33 @@ const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7216
7547
|
options: localVarRequestOptions,
|
|
7217
7548
|
};
|
|
7218
7549
|
}),
|
|
7550
|
+
/**
|
|
7551
|
+
* Returns saved payment cards from Razorpay for the organization
|
|
7552
|
+
* @summary Get saved payment cards
|
|
7553
|
+
* @param {*} [options] Override http request option.
|
|
7554
|
+
* @throws {RequiredError}
|
|
7555
|
+
*/
|
|
7556
|
+
adminBillingSavedCardsGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7557
|
+
const localVarPath = `/admin/billing/saved-cards`;
|
|
7558
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7559
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7560
|
+
let baseOptions;
|
|
7561
|
+
if (configuration) {
|
|
7562
|
+
baseOptions = configuration.baseOptions;
|
|
7563
|
+
}
|
|
7564
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7565
|
+
const localVarHeaderParameter = {};
|
|
7566
|
+
const localVarQueryParameter = {};
|
|
7567
|
+
// authentication BearerAuth required
|
|
7568
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
7569
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7570
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7571
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7572
|
+
return {
|
|
7573
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7574
|
+
options: localVarRequestOptions,
|
|
7575
|
+
};
|
|
7576
|
+
}),
|
|
7219
7577
|
};
|
|
7220
7578
|
};
|
|
7221
7579
|
exports.BillingDashboardApiAxiosParamCreator = BillingDashboardApiAxiosParamCreator;
|
|
@@ -7226,21 +7584,87 @@ exports.BillingDashboardApiAxiosParamCreator = BillingDashboardApiAxiosParamCrea
|
|
|
7226
7584
|
const BillingDashboardApiFp = function (configuration) {
|
|
7227
7585
|
const localVarAxiosParamCreator = (0, exports.BillingDashboardApiAxiosParamCreator)(configuration);
|
|
7228
7586
|
return {
|
|
7587
|
+
/**
|
|
7588
|
+
* Returns all billing alerts configured for the organization
|
|
7589
|
+
* @summary Get billing alerts
|
|
7590
|
+
* @param {*} [options] Override http request option.
|
|
7591
|
+
* @throws {RequiredError}
|
|
7592
|
+
*/
|
|
7593
|
+
adminBillingAlertsGet(options) {
|
|
7594
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7595
|
+
var _a, _b, _c;
|
|
7596
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertsGet(options);
|
|
7597
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7598
|
+
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;
|
|
7599
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7600
|
+
});
|
|
7601
|
+
},
|
|
7602
|
+
/**
|
|
7603
|
+
* Deletes a billing alert configuration
|
|
7604
|
+
* @summary Delete billing alert
|
|
7605
|
+
* @param {number} id Alert ID
|
|
7606
|
+
* @param {*} [options] Override http request option.
|
|
7607
|
+
* @throws {RequiredError}
|
|
7608
|
+
*/
|
|
7609
|
+
adminBillingAlertsIdDelete(id, options) {
|
|
7610
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7611
|
+
var _a, _b, _c;
|
|
7612
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertsIdDelete(id, options);
|
|
7613
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7614
|
+
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;
|
|
7615
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7616
|
+
});
|
|
7617
|
+
},
|
|
7618
|
+
/**
|
|
7619
|
+
* Updates an existing billing alert configuration
|
|
7620
|
+
* @summary Update billing alert
|
|
7621
|
+
* @param {number} id Alert ID
|
|
7622
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Updated alert configuration
|
|
7623
|
+
* @param {*} [options] Override http request option.
|
|
7624
|
+
* @throws {RequiredError}
|
|
7625
|
+
*/
|
|
7626
|
+
adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options) {
|
|
7627
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7628
|
+
var _a, _b, _c;
|
|
7629
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options);
|
|
7630
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7631
|
+
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;
|
|
7632
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7633
|
+
});
|
|
7634
|
+
},
|
|
7635
|
+
/**
|
|
7636
|
+
* Creates a new billing alert configuration for the organization
|
|
7637
|
+
* @summary Create billing alert
|
|
7638
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Alert configuration
|
|
7639
|
+
* @param {*} [options] Override http request option.
|
|
7640
|
+
* @throws {RequiredError}
|
|
7641
|
+
*/
|
|
7642
|
+
adminBillingAlertsPost(dataTypesBillingAlertRequest, options) {
|
|
7643
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7644
|
+
var _a, _b, _c;
|
|
7645
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertsPost(dataTypesBillingAlertRequest, options);
|
|
7646
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7647
|
+
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;
|
|
7648
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7649
|
+
});
|
|
7650
|
+
},
|
|
7229
7651
|
/**
|
|
7230
7652
|
* Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
|
|
7231
7653
|
* @summary Get credit consumption
|
|
7232
7654
|
* @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} [
|
|
7655
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format, defaults to 7 days ago)
|
|
7656
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format, defaults to now)
|
|
7657
|
+
* @param {number} [page] Page number (default: 1)
|
|
7658
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100)
|
|
7659
|
+
* @param {number} [limit] Alternative: Number of results (default: 20, max: 100)
|
|
7660
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
7237
7661
|
* @param {*} [options] Override http request option.
|
|
7238
7662
|
* @throws {RequiredError}
|
|
7239
7663
|
*/
|
|
7240
|
-
adminBillingCreditConsumptionGet(orgId, startDate, endDate, limit, offset, options) {
|
|
7664
|
+
adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options) {
|
|
7241
7665
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7242
7666
|
var _a, _b, _c;
|
|
7243
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditConsumptionGet(orgId, startDate, endDate, limit, offset, options);
|
|
7667
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options);
|
|
7244
7668
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7245
7669
|
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
7670
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7326,6 +7750,21 @@ const BillingDashboardApiFp = function (configuration) {
|
|
|
7326
7750
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7327
7751
|
});
|
|
7328
7752
|
},
|
|
7753
|
+
/**
|
|
7754
|
+
* Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
|
|
7755
|
+
* @summary Get org admin billing overview
|
|
7756
|
+
* @param {*} [options] Override http request option.
|
|
7757
|
+
* @throws {RequiredError}
|
|
7758
|
+
*/
|
|
7759
|
+
adminBillingOrgOverviewGet(options) {
|
|
7760
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7761
|
+
var _a, _b, _c;
|
|
7762
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingOrgOverviewGet(options);
|
|
7763
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7764
|
+
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;
|
|
7765
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7766
|
+
});
|
|
7767
|
+
},
|
|
7329
7768
|
/**
|
|
7330
7769
|
* Retrieves billing summary for all organizations with filtering options
|
|
7331
7770
|
* @summary Get organization billing summary
|
|
@@ -7384,6 +7823,21 @@ const BillingDashboardApiFp = function (configuration) {
|
|
|
7384
7823
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7385
7824
|
});
|
|
7386
7825
|
},
|
|
7826
|
+
/**
|
|
7827
|
+
* Returns saved payment cards from Razorpay for the organization
|
|
7828
|
+
* @summary Get saved payment cards
|
|
7829
|
+
* @param {*} [options] Override http request option.
|
|
7830
|
+
* @throws {RequiredError}
|
|
7831
|
+
*/
|
|
7832
|
+
adminBillingSavedCardsGet(options) {
|
|
7833
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7834
|
+
var _a, _b, _c;
|
|
7835
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingSavedCardsGet(options);
|
|
7836
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7837
|
+
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;
|
|
7838
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7839
|
+
});
|
|
7840
|
+
},
|
|
7387
7841
|
};
|
|
7388
7842
|
};
|
|
7389
7843
|
exports.BillingDashboardApiFp = BillingDashboardApiFp;
|
|
@@ -7394,19 +7848,61 @@ exports.BillingDashboardApiFp = BillingDashboardApiFp;
|
|
|
7394
7848
|
const BillingDashboardApiFactory = function (configuration, basePath, axios) {
|
|
7395
7849
|
const localVarFp = (0, exports.BillingDashboardApiFp)(configuration);
|
|
7396
7850
|
return {
|
|
7851
|
+
/**
|
|
7852
|
+
* Returns all billing alerts configured for the organization
|
|
7853
|
+
* @summary Get billing alerts
|
|
7854
|
+
* @param {*} [options] Override http request option.
|
|
7855
|
+
* @throws {RequiredError}
|
|
7856
|
+
*/
|
|
7857
|
+
adminBillingAlertsGet(options) {
|
|
7858
|
+
return localVarFp.adminBillingAlertsGet(options).then((request) => request(axios, basePath));
|
|
7859
|
+
},
|
|
7860
|
+
/**
|
|
7861
|
+
* Deletes a billing alert configuration
|
|
7862
|
+
* @summary Delete billing alert
|
|
7863
|
+
* @param {number} id Alert ID
|
|
7864
|
+
* @param {*} [options] Override http request option.
|
|
7865
|
+
* @throws {RequiredError}
|
|
7866
|
+
*/
|
|
7867
|
+
adminBillingAlertsIdDelete(id, options) {
|
|
7868
|
+
return localVarFp.adminBillingAlertsIdDelete(id, options).then((request) => request(axios, basePath));
|
|
7869
|
+
},
|
|
7870
|
+
/**
|
|
7871
|
+
* Updates an existing billing alert configuration
|
|
7872
|
+
* @summary Update billing alert
|
|
7873
|
+
* @param {number} id Alert ID
|
|
7874
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Updated alert configuration
|
|
7875
|
+
* @param {*} [options] Override http request option.
|
|
7876
|
+
* @throws {RequiredError}
|
|
7877
|
+
*/
|
|
7878
|
+
adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options) {
|
|
7879
|
+
return localVarFp.adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options).then((request) => request(axios, basePath));
|
|
7880
|
+
},
|
|
7881
|
+
/**
|
|
7882
|
+
* Creates a new billing alert configuration for the organization
|
|
7883
|
+
* @summary Create billing alert
|
|
7884
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Alert configuration
|
|
7885
|
+
* @param {*} [options] Override http request option.
|
|
7886
|
+
* @throws {RequiredError}
|
|
7887
|
+
*/
|
|
7888
|
+
adminBillingAlertsPost(dataTypesBillingAlertRequest, options) {
|
|
7889
|
+
return localVarFp.adminBillingAlertsPost(dataTypesBillingAlertRequest, options).then((request) => request(axios, basePath));
|
|
7890
|
+
},
|
|
7397
7891
|
/**
|
|
7398
7892
|
* Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
|
|
7399
7893
|
* @summary Get credit consumption
|
|
7400
7894
|
* @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} [
|
|
7895
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format, defaults to 7 days ago)
|
|
7896
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format, defaults to now)
|
|
7897
|
+
* @param {number} [page] Page number (default: 1)
|
|
7898
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100)
|
|
7899
|
+
* @param {number} [limit] Alternative: Number of results (default: 20, max: 100)
|
|
7900
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
7405
7901
|
* @param {*} [options] Override http request option.
|
|
7406
7902
|
* @throws {RequiredError}
|
|
7407
7903
|
*/
|
|
7408
|
-
adminBillingCreditConsumptionGet(orgId, startDate, endDate, limit, offset, options) {
|
|
7409
|
-
return localVarFp.adminBillingCreditConsumptionGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
7904
|
+
adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options) {
|
|
7905
|
+
return localVarFp.adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options).then((request) => request(axios, basePath));
|
|
7410
7906
|
},
|
|
7411
7907
|
/**
|
|
7412
7908
|
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
@@ -7464,6 +7960,15 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
7464
7960
|
adminBillingOrdersGet(orgId, startDate, endDate, limit, offset, options) {
|
|
7465
7961
|
return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
7466
7962
|
},
|
|
7963
|
+
/**
|
|
7964
|
+
* Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
|
|
7965
|
+
* @summary Get org admin billing overview
|
|
7966
|
+
* @param {*} [options] Override http request option.
|
|
7967
|
+
* @throws {RequiredError}
|
|
7968
|
+
*/
|
|
7969
|
+
adminBillingOrgOverviewGet(options) {
|
|
7970
|
+
return localVarFp.adminBillingOrgOverviewGet(options).then((request) => request(axios, basePath));
|
|
7971
|
+
},
|
|
7467
7972
|
/**
|
|
7468
7973
|
* Retrieves billing summary for all organizations with filtering options
|
|
7469
7974
|
* @summary Get organization billing summary
|
|
@@ -7504,6 +8009,15 @@ const BillingDashboardApiFactory = function (configuration, basePath, axios) {
|
|
|
7504
8009
|
adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
|
|
7505
8010
|
return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
7506
8011
|
},
|
|
8012
|
+
/**
|
|
8013
|
+
* Returns saved payment cards from Razorpay for the organization
|
|
8014
|
+
* @summary Get saved payment cards
|
|
8015
|
+
* @param {*} [options] Override http request option.
|
|
8016
|
+
* @throws {RequiredError}
|
|
8017
|
+
*/
|
|
8018
|
+
adminBillingSavedCardsGet(options) {
|
|
8019
|
+
return localVarFp.adminBillingSavedCardsGet(options).then((request) => request(axios, basePath));
|
|
8020
|
+
},
|
|
7507
8021
|
};
|
|
7508
8022
|
};
|
|
7509
8023
|
exports.BillingDashboardApiFactory = BillingDashboardApiFactory;
|
|
@@ -7514,20 +8028,66 @@ exports.BillingDashboardApiFactory = BillingDashboardApiFactory;
|
|
|
7514
8028
|
* @extends {BaseAPI}
|
|
7515
8029
|
*/
|
|
7516
8030
|
class BillingDashboardApi extends base_1.BaseAPI {
|
|
8031
|
+
/**
|
|
8032
|
+
* Returns all billing alerts configured for the organization
|
|
8033
|
+
* @summary Get billing alerts
|
|
8034
|
+
* @param {*} [options] Override http request option.
|
|
8035
|
+
* @throws {RequiredError}
|
|
8036
|
+
* @memberof BillingDashboardApi
|
|
8037
|
+
*/
|
|
8038
|
+
adminBillingAlertsGet(options) {
|
|
8039
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingAlertsGet(options).then((request) => request(this.axios, this.basePath));
|
|
8040
|
+
}
|
|
8041
|
+
/**
|
|
8042
|
+
* Deletes a billing alert configuration
|
|
8043
|
+
* @summary Delete billing alert
|
|
8044
|
+
* @param {number} id Alert ID
|
|
8045
|
+
* @param {*} [options] Override http request option.
|
|
8046
|
+
* @throws {RequiredError}
|
|
8047
|
+
* @memberof BillingDashboardApi
|
|
8048
|
+
*/
|
|
8049
|
+
adminBillingAlertsIdDelete(id, options) {
|
|
8050
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingAlertsIdDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
8051
|
+
}
|
|
8052
|
+
/**
|
|
8053
|
+
* Updates an existing billing alert configuration
|
|
8054
|
+
* @summary Update billing alert
|
|
8055
|
+
* @param {number} id Alert ID
|
|
8056
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Updated alert configuration
|
|
8057
|
+
* @param {*} [options] Override http request option.
|
|
8058
|
+
* @throws {RequiredError}
|
|
8059
|
+
* @memberof BillingDashboardApi
|
|
8060
|
+
*/
|
|
8061
|
+
adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options) {
|
|
8062
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8063
|
+
}
|
|
8064
|
+
/**
|
|
8065
|
+
* Creates a new billing alert configuration for the organization
|
|
8066
|
+
* @summary Create billing alert
|
|
8067
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Alert configuration
|
|
8068
|
+
* @param {*} [options] Override http request option.
|
|
8069
|
+
* @throws {RequiredError}
|
|
8070
|
+
* @memberof BillingDashboardApi
|
|
8071
|
+
*/
|
|
8072
|
+
adminBillingAlertsPost(dataTypesBillingAlertRequest, options) {
|
|
8073
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingAlertsPost(dataTypesBillingAlertRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8074
|
+
}
|
|
7517
8075
|
/**
|
|
7518
8076
|
* Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
|
|
7519
8077
|
* @summary Get credit consumption
|
|
7520
8078
|
* @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} [
|
|
8079
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format, defaults to 7 days ago)
|
|
8080
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format, defaults to now)
|
|
8081
|
+
* @param {number} [page] Page number (default: 1)
|
|
8082
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100)
|
|
8083
|
+
* @param {number} [limit] Alternative: Number of results (default: 20, max: 100)
|
|
8084
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
7525
8085
|
* @param {*} [options] Override http request option.
|
|
7526
8086
|
* @throws {RequiredError}
|
|
7527
8087
|
* @memberof BillingDashboardApi
|
|
7528
8088
|
*/
|
|
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));
|
|
8089
|
+
adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options) {
|
|
8090
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
7531
8091
|
}
|
|
7532
8092
|
/**
|
|
7533
8093
|
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
@@ -7589,6 +8149,16 @@ class BillingDashboardApi extends base_1.BaseAPI {
|
|
|
7589
8149
|
adminBillingOrdersGet(orgId, startDate, endDate, limit, offset, options) {
|
|
7590
8150
|
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
7591
8151
|
}
|
|
8152
|
+
/**
|
|
8153
|
+
* Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
|
|
8154
|
+
* @summary Get org admin billing overview
|
|
8155
|
+
* @param {*} [options] Override http request option.
|
|
8156
|
+
* @throws {RequiredError}
|
|
8157
|
+
* @memberof BillingDashboardApi
|
|
8158
|
+
*/
|
|
8159
|
+
adminBillingOrgOverviewGet(options) {
|
|
8160
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingOrgOverviewGet(options).then((request) => request(this.axios, this.basePath));
|
|
8161
|
+
}
|
|
7592
8162
|
/**
|
|
7593
8163
|
* Retrieves billing summary for all organizations with filtering options
|
|
7594
8164
|
* @summary Get organization billing summary
|
|
@@ -7632,6 +8202,16 @@ class BillingDashboardApi extends base_1.BaseAPI {
|
|
|
7632
8202
|
adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
|
|
7633
8203
|
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
7634
8204
|
}
|
|
8205
|
+
/**
|
|
8206
|
+
* Returns saved payment cards from Razorpay for the organization
|
|
8207
|
+
* @summary Get saved payment cards
|
|
8208
|
+
* @param {*} [options] Override http request option.
|
|
8209
|
+
* @throws {RequiredError}
|
|
8210
|
+
* @memberof BillingDashboardApi
|
|
8211
|
+
*/
|
|
8212
|
+
adminBillingSavedCardsGet(options) {
|
|
8213
|
+
return (0, exports.BillingDashboardApiFp)(this.configuration).adminBillingSavedCardsGet(options).then((request) => request(this.axios, this.basePath));
|
|
8214
|
+
}
|
|
7635
8215
|
}
|
|
7636
8216
|
exports.BillingDashboardApi = BillingDashboardApi;
|
|
7637
8217
|
/**
|