@seekora-ai/admin-api 1.0.77 → 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 +1452 -118
- package/dist/api.d.ts +1039 -32
- package/dist/api.js +608 -28
- package/dist/esm/api.d.ts +1039 -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.77.tgz +0 -0
package/dist/esm/api.js
CHANGED
|
@@ -79,6 +79,11 @@ export const AnalyticsRuleType = {
|
|
|
79
79
|
RuleTypeRedirect: 'redirect',
|
|
80
80
|
RuleTypeBanner: 'banner'
|
|
81
81
|
};
|
|
82
|
+
export const DataTypesBillingAlertRequestAlertTypeEnum = {
|
|
83
|
+
LowBalance: 'low_balance',
|
|
84
|
+
ExpiringCredits: 'expiring_credits',
|
|
85
|
+
DaysRemaining: 'days_remaining'
|
|
86
|
+
};
|
|
82
87
|
export const DataTypesCreateCustomWordListRequestTypeEnum = {
|
|
83
88
|
Stopwords: 'stopwords',
|
|
84
89
|
Synonyms: 'synonyms'
|
|
@@ -5171,6 +5176,85 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
|
|
|
5171
5176
|
options: localVarRequestOptions,
|
|
5172
5177
|
};
|
|
5173
5178
|
}),
|
|
5179
|
+
/**
|
|
5180
|
+
* 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.
|
|
5181
|
+
* @summary Get Item by ID for Rule Management
|
|
5182
|
+
* @param {string} authorization Bearer JWT token
|
|
5183
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
5184
|
+
* @param {string} itemId Item ID to retrieve
|
|
5185
|
+
* @param {*} [options] Override http request option.
|
|
5186
|
+
* @throws {RequiredError}
|
|
5187
|
+
*/
|
|
5188
|
+
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 = {}) {
|
|
5189
|
+
// verify required parameter 'authorization' is not null or undefined
|
|
5190
|
+
assertParamExists('apiAdminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet', 'authorization', authorization);
|
|
5191
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
5192
|
+
assertParamExists('apiAdminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet', 'xStoreID', xStoreID);
|
|
5193
|
+
// verify required parameter 'itemId' is not null or undefined
|
|
5194
|
+
assertParamExists('apiAdminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet', 'itemId', itemId);
|
|
5195
|
+
const localVarPath = `/api/admin/v1/stores/{xStoreID}/analytics/rules/items/{itemId}`
|
|
5196
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
|
|
5197
|
+
.replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
|
|
5198
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5199
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5200
|
+
let baseOptions;
|
|
5201
|
+
if (configuration) {
|
|
5202
|
+
baseOptions = configuration.baseOptions;
|
|
5203
|
+
}
|
|
5204
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5205
|
+
const localVarHeaderParameter = {};
|
|
5206
|
+
const localVarQueryParameter = {};
|
|
5207
|
+
if (authorization != null) {
|
|
5208
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5209
|
+
}
|
|
5210
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5211
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5212
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5213
|
+
return {
|
|
5214
|
+
url: toPathString(localVarUrlObj),
|
|
5215
|
+
options: localVarRequestOptions,
|
|
5216
|
+
};
|
|
5217
|
+
}),
|
|
5218
|
+
/**
|
|
5219
|
+
* 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).
|
|
5220
|
+
* @summary Search Items for Rule Management
|
|
5221
|
+
* @param {string} authorization Bearer JWT token
|
|
5222
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
5223
|
+
* @param {DataTypesSearchRuleItemsRequest} dataTypesSearchRuleItemsRequest Search parameters (query, page, per_page, filter)
|
|
5224
|
+
* @param {*} [options] Override http request option.
|
|
5225
|
+
* @throws {RequiredError}
|
|
5226
|
+
*/
|
|
5227
|
+
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 = {}) {
|
|
5228
|
+
// verify required parameter 'authorization' is not null or undefined
|
|
5229
|
+
assertParamExists('apiAdminV1StoresXStoreIDAnalyticsRulesSearchItemsPost', 'authorization', authorization);
|
|
5230
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
5231
|
+
assertParamExists('apiAdminV1StoresXStoreIDAnalyticsRulesSearchItemsPost', 'xStoreID', xStoreID);
|
|
5232
|
+
// verify required parameter 'dataTypesSearchRuleItemsRequest' is not null or undefined
|
|
5233
|
+
assertParamExists('apiAdminV1StoresXStoreIDAnalyticsRulesSearchItemsPost', 'dataTypesSearchRuleItemsRequest', dataTypesSearchRuleItemsRequest);
|
|
5234
|
+
const localVarPath = `/api/admin/v1/stores/{xStoreID}/analytics/rules/search-items`
|
|
5235
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
5236
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5237
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5238
|
+
let baseOptions;
|
|
5239
|
+
if (configuration) {
|
|
5240
|
+
baseOptions = configuration.baseOptions;
|
|
5241
|
+
}
|
|
5242
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5243
|
+
const localVarHeaderParameter = {};
|
|
5244
|
+
const localVarQueryParameter = {};
|
|
5245
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5246
|
+
if (authorization != null) {
|
|
5247
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
5248
|
+
}
|
|
5249
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5250
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5251
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5252
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesSearchRuleItemsRequest, localVarRequestOptions, configuration);
|
|
5253
|
+
return {
|
|
5254
|
+
url: toPathString(localVarUrlObj),
|
|
5255
|
+
options: localVarRequestOptions,
|
|
5256
|
+
};
|
|
5257
|
+
}),
|
|
5174
5258
|
/**
|
|
5175
5259
|
* Retrieve a paginated list of analytics rules with optional filtering by store, collection, and active status. Supports both page-based and offset-based pagination.
|
|
5176
5260
|
* @summary List Analytics Rules
|
|
@@ -5569,6 +5653,42 @@ export const AnalyticsRulesApiFp = function (configuration) {
|
|
|
5569
5653
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5570
5654
|
});
|
|
5571
5655
|
},
|
|
5656
|
+
/**
|
|
5657
|
+
* 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.
|
|
5658
|
+
* @summary Get Item by ID for Rule Management
|
|
5659
|
+
* @param {string} authorization Bearer JWT token
|
|
5660
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
5661
|
+
* @param {string} itemId Item ID to retrieve
|
|
5662
|
+
* @param {*} [options] Override http request option.
|
|
5663
|
+
* @throws {RequiredError}
|
|
5664
|
+
*/
|
|
5665
|
+
apiAdminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options) {
|
|
5666
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5667
|
+
var _a, _b, _c;
|
|
5668
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options);
|
|
5669
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5670
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.apiAdminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5671
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5672
|
+
});
|
|
5673
|
+
},
|
|
5674
|
+
/**
|
|
5675
|
+
* 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).
|
|
5676
|
+
* @summary Search Items for Rule Management
|
|
5677
|
+
* @param {string} authorization Bearer JWT token
|
|
5678
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
5679
|
+
* @param {DataTypesSearchRuleItemsRequest} dataTypesSearchRuleItemsRequest Search parameters (query, page, per_page, filter)
|
|
5680
|
+
* @param {*} [options] Override http request option.
|
|
5681
|
+
* @throws {RequiredError}
|
|
5682
|
+
*/
|
|
5683
|
+
apiAdminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options) {
|
|
5684
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5685
|
+
var _a, _b, _c;
|
|
5686
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options);
|
|
5687
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5688
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.apiAdminV1StoresXStoreIDAnalyticsRulesSearchItemsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5689
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5690
|
+
});
|
|
5691
|
+
},
|
|
5572
5692
|
/**
|
|
5573
5693
|
* Retrieve a paginated list of analytics rules with optional filtering by store, collection, and active status. Supports both page-based and offset-based pagination.
|
|
5574
5694
|
* @summary List Analytics Rules
|
|
@@ -5772,6 +5892,30 @@ export const AnalyticsRulesApiFactory = function (configuration, basePath, axios
|
|
|
5772
5892
|
apiAdminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options) {
|
|
5773
5893
|
return localVarFp.apiAdminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options).then((request) => request(axios, basePath));
|
|
5774
5894
|
},
|
|
5895
|
+
/**
|
|
5896
|
+
* 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.
|
|
5897
|
+
* @summary Get Item by ID for Rule Management
|
|
5898
|
+
* @param {string} authorization Bearer JWT token
|
|
5899
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
5900
|
+
* @param {string} itemId Item ID to retrieve
|
|
5901
|
+
* @param {*} [options] Override http request option.
|
|
5902
|
+
* @throws {RequiredError}
|
|
5903
|
+
*/
|
|
5904
|
+
apiAdminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options) {
|
|
5905
|
+
return localVarFp.apiAdminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options).then((request) => request(axios, basePath));
|
|
5906
|
+
},
|
|
5907
|
+
/**
|
|
5908
|
+
* 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).
|
|
5909
|
+
* @summary Search Items for Rule Management
|
|
5910
|
+
* @param {string} authorization Bearer JWT token
|
|
5911
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
5912
|
+
* @param {DataTypesSearchRuleItemsRequest} dataTypesSearchRuleItemsRequest Search parameters (query, page, per_page, filter)
|
|
5913
|
+
* @param {*} [options] Override http request option.
|
|
5914
|
+
* @throws {RequiredError}
|
|
5915
|
+
*/
|
|
5916
|
+
apiAdminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options) {
|
|
5917
|
+
return localVarFp.apiAdminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options).then((request) => request(axios, basePath));
|
|
5918
|
+
},
|
|
5775
5919
|
/**
|
|
5776
5920
|
* Retrieve a paginated list of analytics rules with optional filtering by store, collection, and active status. Supports both page-based and offset-based pagination.
|
|
5777
5921
|
* @summary List Analytics Rules
|
|
@@ -5945,6 +6089,32 @@ export class AnalyticsRulesApi extends BaseAPI {
|
|
|
5945
6089
|
apiAdminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options) {
|
|
5946
6090
|
return AnalyticsRulesApiFp(this.configuration).apiAdminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5947
6091
|
}
|
|
6092
|
+
/**
|
|
6093
|
+
* 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.
|
|
6094
|
+
* @summary Get Item by ID for Rule Management
|
|
6095
|
+
* @param {string} authorization Bearer JWT token
|
|
6096
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
6097
|
+
* @param {string} itemId Item ID to retrieve
|
|
6098
|
+
* @param {*} [options] Override http request option.
|
|
6099
|
+
* @throws {RequiredError}
|
|
6100
|
+
* @memberof AnalyticsRulesApi
|
|
6101
|
+
*/
|
|
6102
|
+
apiAdminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options) {
|
|
6103
|
+
return AnalyticsRulesApiFp(this.configuration).apiAdminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options).then((request) => request(this.axios, this.basePath));
|
|
6104
|
+
}
|
|
6105
|
+
/**
|
|
6106
|
+
* 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).
|
|
6107
|
+
* @summary Search Items for Rule Management
|
|
6108
|
+
* @param {string} authorization Bearer JWT token
|
|
6109
|
+
* @param {string} xStoreID X-Store ID (same format as admin search API)
|
|
6110
|
+
* @param {DataTypesSearchRuleItemsRequest} dataTypesSearchRuleItemsRequest Search parameters (query, page, per_page, filter)
|
|
6111
|
+
* @param {*} [options] Override http request option.
|
|
6112
|
+
* @throws {RequiredError}
|
|
6113
|
+
* @memberof AnalyticsRulesApi
|
|
6114
|
+
*/
|
|
6115
|
+
apiAdminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options) {
|
|
6116
|
+
return AnalyticsRulesApiFp(this.configuration).apiAdminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6117
|
+
}
|
|
5948
6118
|
/**
|
|
5949
6119
|
* Retrieve a paginated list of analytics rules with optional filtering by store, collection, and active status. Supports both page-based and offset-based pagination.
|
|
5950
6120
|
* @summary List Analytics Rules
|
|
@@ -6809,18 +6979,146 @@ export class AutomatedRefundManagementApi extends BaseAPI {
|
|
|
6809
6979
|
*/
|
|
6810
6980
|
export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
6811
6981
|
return {
|
|
6982
|
+
/**
|
|
6983
|
+
* Returns all billing alerts configured for the organization
|
|
6984
|
+
* @summary Get billing alerts
|
|
6985
|
+
* @param {*} [options] Override http request option.
|
|
6986
|
+
* @throws {RequiredError}
|
|
6987
|
+
*/
|
|
6988
|
+
adminBillingAlertsGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
6989
|
+
const localVarPath = `/admin/billing/alerts`;
|
|
6990
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6991
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6992
|
+
let baseOptions;
|
|
6993
|
+
if (configuration) {
|
|
6994
|
+
baseOptions = configuration.baseOptions;
|
|
6995
|
+
}
|
|
6996
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6997
|
+
const localVarHeaderParameter = {};
|
|
6998
|
+
const localVarQueryParameter = {};
|
|
6999
|
+
// authentication BearerAuth required
|
|
7000
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
7001
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7002
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7003
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7004
|
+
return {
|
|
7005
|
+
url: toPathString(localVarUrlObj),
|
|
7006
|
+
options: localVarRequestOptions,
|
|
7007
|
+
};
|
|
7008
|
+
}),
|
|
7009
|
+
/**
|
|
7010
|
+
* Deletes a billing alert configuration
|
|
7011
|
+
* @summary Delete billing alert
|
|
7012
|
+
* @param {number} id Alert ID
|
|
7013
|
+
* @param {*} [options] Override http request option.
|
|
7014
|
+
* @throws {RequiredError}
|
|
7015
|
+
*/
|
|
7016
|
+
adminBillingAlertsIdDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
7017
|
+
// verify required parameter 'id' is not null or undefined
|
|
7018
|
+
assertParamExists('adminBillingAlertsIdDelete', 'id', id);
|
|
7019
|
+
const localVarPath = `/admin/billing/alerts/{id}`
|
|
7020
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7021
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7022
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7023
|
+
let baseOptions;
|
|
7024
|
+
if (configuration) {
|
|
7025
|
+
baseOptions = configuration.baseOptions;
|
|
7026
|
+
}
|
|
7027
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
7028
|
+
const localVarHeaderParameter = {};
|
|
7029
|
+
const localVarQueryParameter = {};
|
|
7030
|
+
// authentication BearerAuth required
|
|
7031
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
7032
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7033
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7034
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7035
|
+
return {
|
|
7036
|
+
url: toPathString(localVarUrlObj),
|
|
7037
|
+
options: localVarRequestOptions,
|
|
7038
|
+
};
|
|
7039
|
+
}),
|
|
7040
|
+
/**
|
|
7041
|
+
* Updates an existing billing alert configuration
|
|
7042
|
+
* @summary Update billing alert
|
|
7043
|
+
* @param {number} id Alert ID
|
|
7044
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Updated alert configuration
|
|
7045
|
+
* @param {*} [options] Override http request option.
|
|
7046
|
+
* @throws {RequiredError}
|
|
7047
|
+
*/
|
|
7048
|
+
adminBillingAlertsIdPut: (id_1, dataTypesBillingAlertRequest_1, ...args_1) => __awaiter(this, [id_1, dataTypesBillingAlertRequest_1, ...args_1], void 0, function* (id, dataTypesBillingAlertRequest, options = {}) {
|
|
7049
|
+
// verify required parameter 'id' is not null or undefined
|
|
7050
|
+
assertParamExists('adminBillingAlertsIdPut', 'id', id);
|
|
7051
|
+
// verify required parameter 'dataTypesBillingAlertRequest' is not null or undefined
|
|
7052
|
+
assertParamExists('adminBillingAlertsIdPut', 'dataTypesBillingAlertRequest', dataTypesBillingAlertRequest);
|
|
7053
|
+
const localVarPath = `/admin/billing/alerts/{id}`
|
|
7054
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7055
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7056
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7057
|
+
let baseOptions;
|
|
7058
|
+
if (configuration) {
|
|
7059
|
+
baseOptions = configuration.baseOptions;
|
|
7060
|
+
}
|
|
7061
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
7062
|
+
const localVarHeaderParameter = {};
|
|
7063
|
+
const localVarQueryParameter = {};
|
|
7064
|
+
// authentication BearerAuth required
|
|
7065
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
7066
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7067
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7068
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7069
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7070
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesBillingAlertRequest, localVarRequestOptions, configuration);
|
|
7071
|
+
return {
|
|
7072
|
+
url: toPathString(localVarUrlObj),
|
|
7073
|
+
options: localVarRequestOptions,
|
|
7074
|
+
};
|
|
7075
|
+
}),
|
|
7076
|
+
/**
|
|
7077
|
+
* Creates a new billing alert configuration for the organization
|
|
7078
|
+
* @summary Create billing alert
|
|
7079
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Alert configuration
|
|
7080
|
+
* @param {*} [options] Override http request option.
|
|
7081
|
+
* @throws {RequiredError}
|
|
7082
|
+
*/
|
|
7083
|
+
adminBillingAlertsPost: (dataTypesBillingAlertRequest_1, ...args_1) => __awaiter(this, [dataTypesBillingAlertRequest_1, ...args_1], void 0, function* (dataTypesBillingAlertRequest, options = {}) {
|
|
7084
|
+
// verify required parameter 'dataTypesBillingAlertRequest' is not null or undefined
|
|
7085
|
+
assertParamExists('adminBillingAlertsPost', 'dataTypesBillingAlertRequest', dataTypesBillingAlertRequest);
|
|
7086
|
+
const localVarPath = `/admin/billing/alerts`;
|
|
7087
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7088
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7089
|
+
let baseOptions;
|
|
7090
|
+
if (configuration) {
|
|
7091
|
+
baseOptions = configuration.baseOptions;
|
|
7092
|
+
}
|
|
7093
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7094
|
+
const localVarHeaderParameter = {};
|
|
7095
|
+
const localVarQueryParameter = {};
|
|
7096
|
+
// authentication BearerAuth required
|
|
7097
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
7098
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7099
|
+
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
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesBillingAlertRequest, localVarRequestOptions, configuration);
|
|
7103
|
+
return {
|
|
7104
|
+
url: toPathString(localVarUrlObj),
|
|
7105
|
+
options: localVarRequestOptions,
|
|
7106
|
+
};
|
|
7107
|
+
}),
|
|
6812
7108
|
/**
|
|
6813
7109
|
* Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
|
|
6814
7110
|
* @summary Get credit consumption
|
|
6815
7111
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
6816
|
-
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
6817
|
-
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
6818
|
-
* @param {number} [
|
|
6819
|
-
* @param {number} [
|
|
7112
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format, defaults to 7 days ago)
|
|
7113
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format, defaults to now)
|
|
7114
|
+
* @param {number} [page] Page number (default: 1)
|
|
7115
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100)
|
|
7116
|
+
* @param {number} [limit] Alternative: Number of results (default: 20, max: 100)
|
|
7117
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
6820
7118
|
* @param {*} [options] Override http request option.
|
|
6821
7119
|
* @throws {RequiredError}
|
|
6822
7120
|
*/
|
|
6823
|
-
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 = {}) {
|
|
7121
|
+
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 = {}) {
|
|
6824
7122
|
const localVarPath = `/admin/billing/credit-consumption`;
|
|
6825
7123
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6826
7124
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6842,6 +7140,12 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
6842
7140
|
if (endDate !== undefined) {
|
|
6843
7141
|
localVarQueryParameter['end_date'] = endDate;
|
|
6844
7142
|
}
|
|
7143
|
+
if (page !== undefined) {
|
|
7144
|
+
localVarQueryParameter['page'] = page;
|
|
7145
|
+
}
|
|
7146
|
+
if (pageSize !== undefined) {
|
|
7147
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
7148
|
+
}
|
|
6845
7149
|
if (limit !== undefined) {
|
|
6846
7150
|
localVarQueryParameter['limit'] = limit;
|
|
6847
7151
|
}
|
|
@@ -7044,6 +7348,33 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7044
7348
|
options: localVarRequestOptions,
|
|
7045
7349
|
};
|
|
7046
7350
|
}),
|
|
7351
|
+
/**
|
|
7352
|
+
* Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
|
|
7353
|
+
* @summary Get org admin billing overview
|
|
7354
|
+
* @param {*} [options] Override http request option.
|
|
7355
|
+
* @throws {RequiredError}
|
|
7356
|
+
*/
|
|
7357
|
+
adminBillingOrgOverviewGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7358
|
+
const localVarPath = `/admin/billing/org-overview`;
|
|
7359
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7360
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7361
|
+
let baseOptions;
|
|
7362
|
+
if (configuration) {
|
|
7363
|
+
baseOptions = configuration.baseOptions;
|
|
7364
|
+
}
|
|
7365
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7366
|
+
const localVarHeaderParameter = {};
|
|
7367
|
+
const localVarQueryParameter = {};
|
|
7368
|
+
// authentication BearerAuth required
|
|
7369
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
7370
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7371
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7372
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7373
|
+
return {
|
|
7374
|
+
url: toPathString(localVarUrlObj),
|
|
7375
|
+
options: localVarRequestOptions,
|
|
7376
|
+
};
|
|
7377
|
+
}),
|
|
7047
7378
|
/**
|
|
7048
7379
|
* Retrieves billing summary for all organizations with filtering options
|
|
7049
7380
|
* @summary Get organization billing summary
|
|
@@ -7177,6 +7508,33 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7177
7508
|
options: localVarRequestOptions,
|
|
7178
7509
|
};
|
|
7179
7510
|
}),
|
|
7511
|
+
/**
|
|
7512
|
+
* Returns saved payment cards from Razorpay for the organization
|
|
7513
|
+
* @summary Get saved payment cards
|
|
7514
|
+
* @param {*} [options] Override http request option.
|
|
7515
|
+
* @throws {RequiredError}
|
|
7516
|
+
*/
|
|
7517
|
+
adminBillingSavedCardsGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
7518
|
+
const localVarPath = `/admin/billing/saved-cards`;
|
|
7519
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7520
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7521
|
+
let baseOptions;
|
|
7522
|
+
if (configuration) {
|
|
7523
|
+
baseOptions = configuration.baseOptions;
|
|
7524
|
+
}
|
|
7525
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7526
|
+
const localVarHeaderParameter = {};
|
|
7527
|
+
const localVarQueryParameter = {};
|
|
7528
|
+
// authentication BearerAuth required
|
|
7529
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
7530
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7531
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7532
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7533
|
+
return {
|
|
7534
|
+
url: toPathString(localVarUrlObj),
|
|
7535
|
+
options: localVarRequestOptions,
|
|
7536
|
+
};
|
|
7537
|
+
}),
|
|
7180
7538
|
};
|
|
7181
7539
|
};
|
|
7182
7540
|
/**
|
|
@@ -7186,21 +7544,87 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
|
|
|
7186
7544
|
export const BillingDashboardApiFp = function (configuration) {
|
|
7187
7545
|
const localVarAxiosParamCreator = BillingDashboardApiAxiosParamCreator(configuration);
|
|
7188
7546
|
return {
|
|
7547
|
+
/**
|
|
7548
|
+
* Returns all billing alerts configured for the organization
|
|
7549
|
+
* @summary Get billing alerts
|
|
7550
|
+
* @param {*} [options] Override http request option.
|
|
7551
|
+
* @throws {RequiredError}
|
|
7552
|
+
*/
|
|
7553
|
+
adminBillingAlertsGet(options) {
|
|
7554
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7555
|
+
var _a, _b, _c;
|
|
7556
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertsGet(options);
|
|
7557
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7558
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingAlertsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7559
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7560
|
+
});
|
|
7561
|
+
},
|
|
7562
|
+
/**
|
|
7563
|
+
* Deletes a billing alert configuration
|
|
7564
|
+
* @summary Delete billing alert
|
|
7565
|
+
* @param {number} id Alert ID
|
|
7566
|
+
* @param {*} [options] Override http request option.
|
|
7567
|
+
* @throws {RequiredError}
|
|
7568
|
+
*/
|
|
7569
|
+
adminBillingAlertsIdDelete(id, options) {
|
|
7570
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7571
|
+
var _a, _b, _c;
|
|
7572
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertsIdDelete(id, options);
|
|
7573
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7574
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingAlertsIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7575
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7576
|
+
});
|
|
7577
|
+
},
|
|
7578
|
+
/**
|
|
7579
|
+
* Updates an existing billing alert configuration
|
|
7580
|
+
* @summary Update billing alert
|
|
7581
|
+
* @param {number} id Alert ID
|
|
7582
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Updated alert configuration
|
|
7583
|
+
* @param {*} [options] Override http request option.
|
|
7584
|
+
* @throws {RequiredError}
|
|
7585
|
+
*/
|
|
7586
|
+
adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options) {
|
|
7587
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7588
|
+
var _a, _b, _c;
|
|
7589
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options);
|
|
7590
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7591
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingAlertsIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7592
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7593
|
+
});
|
|
7594
|
+
},
|
|
7595
|
+
/**
|
|
7596
|
+
* Creates a new billing alert configuration for the organization
|
|
7597
|
+
* @summary Create billing alert
|
|
7598
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Alert configuration
|
|
7599
|
+
* @param {*} [options] Override http request option.
|
|
7600
|
+
* @throws {RequiredError}
|
|
7601
|
+
*/
|
|
7602
|
+
adminBillingAlertsPost(dataTypesBillingAlertRequest, options) {
|
|
7603
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7604
|
+
var _a, _b, _c;
|
|
7605
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertsPost(dataTypesBillingAlertRequest, options);
|
|
7606
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7607
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingAlertsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7608
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7609
|
+
});
|
|
7610
|
+
},
|
|
7189
7611
|
/**
|
|
7190
7612
|
* Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
|
|
7191
7613
|
* @summary Get credit consumption
|
|
7192
7614
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
7193
|
-
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
7194
|
-
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
7195
|
-
* @param {number} [
|
|
7196
|
-
* @param {number} [
|
|
7615
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format, defaults to 7 days ago)
|
|
7616
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format, defaults to now)
|
|
7617
|
+
* @param {number} [page] Page number (default: 1)
|
|
7618
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100)
|
|
7619
|
+
* @param {number} [limit] Alternative: Number of results (default: 20, max: 100)
|
|
7620
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
7197
7621
|
* @param {*} [options] Override http request option.
|
|
7198
7622
|
* @throws {RequiredError}
|
|
7199
7623
|
*/
|
|
7200
|
-
adminBillingCreditConsumptionGet(orgId, startDate, endDate, limit, offset, options) {
|
|
7624
|
+
adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options) {
|
|
7201
7625
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7202
7626
|
var _a, _b, _c;
|
|
7203
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditConsumptionGet(orgId, startDate, endDate, limit, offset, options);
|
|
7627
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options);
|
|
7204
7628
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7205
7629
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingCreditConsumptionGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7206
7630
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7286,6 +7710,21 @@ export const BillingDashboardApiFp = function (configuration) {
|
|
|
7286
7710
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7287
7711
|
});
|
|
7288
7712
|
},
|
|
7713
|
+
/**
|
|
7714
|
+
* Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
|
|
7715
|
+
* @summary Get org admin billing overview
|
|
7716
|
+
* @param {*} [options] Override http request option.
|
|
7717
|
+
* @throws {RequiredError}
|
|
7718
|
+
*/
|
|
7719
|
+
adminBillingOrgOverviewGet(options) {
|
|
7720
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7721
|
+
var _a, _b, _c;
|
|
7722
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingOrgOverviewGet(options);
|
|
7723
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7724
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingOrgOverviewGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7725
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7726
|
+
});
|
|
7727
|
+
},
|
|
7289
7728
|
/**
|
|
7290
7729
|
* Retrieves billing summary for all organizations with filtering options
|
|
7291
7730
|
* @summary Get organization billing summary
|
|
@@ -7344,6 +7783,21 @@ export const BillingDashboardApiFp = function (configuration) {
|
|
|
7344
7783
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7345
7784
|
});
|
|
7346
7785
|
},
|
|
7786
|
+
/**
|
|
7787
|
+
* Returns saved payment cards from Razorpay for the organization
|
|
7788
|
+
* @summary Get saved payment cards
|
|
7789
|
+
* @param {*} [options] Override http request option.
|
|
7790
|
+
* @throws {RequiredError}
|
|
7791
|
+
*/
|
|
7792
|
+
adminBillingSavedCardsGet(options) {
|
|
7793
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7794
|
+
var _a, _b, _c;
|
|
7795
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingSavedCardsGet(options);
|
|
7796
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7797
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingSavedCardsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7798
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7799
|
+
});
|
|
7800
|
+
},
|
|
7347
7801
|
};
|
|
7348
7802
|
};
|
|
7349
7803
|
/**
|
|
@@ -7353,19 +7807,61 @@ export const BillingDashboardApiFp = function (configuration) {
|
|
|
7353
7807
|
export const BillingDashboardApiFactory = function (configuration, basePath, axios) {
|
|
7354
7808
|
const localVarFp = BillingDashboardApiFp(configuration);
|
|
7355
7809
|
return {
|
|
7810
|
+
/**
|
|
7811
|
+
* Returns all billing alerts configured for the organization
|
|
7812
|
+
* @summary Get billing alerts
|
|
7813
|
+
* @param {*} [options] Override http request option.
|
|
7814
|
+
* @throws {RequiredError}
|
|
7815
|
+
*/
|
|
7816
|
+
adminBillingAlertsGet(options) {
|
|
7817
|
+
return localVarFp.adminBillingAlertsGet(options).then((request) => request(axios, basePath));
|
|
7818
|
+
},
|
|
7819
|
+
/**
|
|
7820
|
+
* Deletes a billing alert configuration
|
|
7821
|
+
* @summary Delete billing alert
|
|
7822
|
+
* @param {number} id Alert ID
|
|
7823
|
+
* @param {*} [options] Override http request option.
|
|
7824
|
+
* @throws {RequiredError}
|
|
7825
|
+
*/
|
|
7826
|
+
adminBillingAlertsIdDelete(id, options) {
|
|
7827
|
+
return localVarFp.adminBillingAlertsIdDelete(id, options).then((request) => request(axios, basePath));
|
|
7828
|
+
},
|
|
7829
|
+
/**
|
|
7830
|
+
* Updates an existing billing alert configuration
|
|
7831
|
+
* @summary Update billing alert
|
|
7832
|
+
* @param {number} id Alert ID
|
|
7833
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Updated alert configuration
|
|
7834
|
+
* @param {*} [options] Override http request option.
|
|
7835
|
+
* @throws {RequiredError}
|
|
7836
|
+
*/
|
|
7837
|
+
adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options) {
|
|
7838
|
+
return localVarFp.adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options).then((request) => request(axios, basePath));
|
|
7839
|
+
},
|
|
7840
|
+
/**
|
|
7841
|
+
* Creates a new billing alert configuration for the organization
|
|
7842
|
+
* @summary Create billing alert
|
|
7843
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Alert configuration
|
|
7844
|
+
* @param {*} [options] Override http request option.
|
|
7845
|
+
* @throws {RequiredError}
|
|
7846
|
+
*/
|
|
7847
|
+
adminBillingAlertsPost(dataTypesBillingAlertRequest, options) {
|
|
7848
|
+
return localVarFp.adminBillingAlertsPost(dataTypesBillingAlertRequest, options).then((request) => request(axios, basePath));
|
|
7849
|
+
},
|
|
7356
7850
|
/**
|
|
7357
7851
|
* Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
|
|
7358
7852
|
* @summary Get credit consumption
|
|
7359
7853
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
7360
|
-
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
7361
|
-
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
7362
|
-
* @param {number} [
|
|
7363
|
-
* @param {number} [
|
|
7854
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format, defaults to 7 days ago)
|
|
7855
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format, defaults to now)
|
|
7856
|
+
* @param {number} [page] Page number (default: 1)
|
|
7857
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100)
|
|
7858
|
+
* @param {number} [limit] Alternative: Number of results (default: 20, max: 100)
|
|
7859
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
7364
7860
|
* @param {*} [options] Override http request option.
|
|
7365
7861
|
* @throws {RequiredError}
|
|
7366
7862
|
*/
|
|
7367
|
-
adminBillingCreditConsumptionGet(orgId, startDate, endDate, limit, offset, options) {
|
|
7368
|
-
return localVarFp.adminBillingCreditConsumptionGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
7863
|
+
adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options) {
|
|
7864
|
+
return localVarFp.adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options).then((request) => request(axios, basePath));
|
|
7369
7865
|
},
|
|
7370
7866
|
/**
|
|
7371
7867
|
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
@@ -7423,6 +7919,15 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
|
|
|
7423
7919
|
adminBillingOrdersGet(orgId, startDate, endDate, limit, offset, options) {
|
|
7424
7920
|
return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
7425
7921
|
},
|
|
7922
|
+
/**
|
|
7923
|
+
* Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
|
|
7924
|
+
* @summary Get org admin billing overview
|
|
7925
|
+
* @param {*} [options] Override http request option.
|
|
7926
|
+
* @throws {RequiredError}
|
|
7927
|
+
*/
|
|
7928
|
+
adminBillingOrgOverviewGet(options) {
|
|
7929
|
+
return localVarFp.adminBillingOrgOverviewGet(options).then((request) => request(axios, basePath));
|
|
7930
|
+
},
|
|
7426
7931
|
/**
|
|
7427
7932
|
* Retrieves billing summary for all organizations with filtering options
|
|
7428
7933
|
* @summary Get organization billing summary
|
|
@@ -7463,6 +7968,15 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
|
|
|
7463
7968
|
adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
|
|
7464
7969
|
return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
|
|
7465
7970
|
},
|
|
7971
|
+
/**
|
|
7972
|
+
* Returns saved payment cards from Razorpay for the organization
|
|
7973
|
+
* @summary Get saved payment cards
|
|
7974
|
+
* @param {*} [options] Override http request option.
|
|
7975
|
+
* @throws {RequiredError}
|
|
7976
|
+
*/
|
|
7977
|
+
adminBillingSavedCardsGet(options) {
|
|
7978
|
+
return localVarFp.adminBillingSavedCardsGet(options).then((request) => request(axios, basePath));
|
|
7979
|
+
},
|
|
7466
7980
|
};
|
|
7467
7981
|
};
|
|
7468
7982
|
/**
|
|
@@ -7472,20 +7986,66 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
|
|
|
7472
7986
|
* @extends {BaseAPI}
|
|
7473
7987
|
*/
|
|
7474
7988
|
export class BillingDashboardApi extends BaseAPI {
|
|
7989
|
+
/**
|
|
7990
|
+
* Returns all billing alerts configured for the organization
|
|
7991
|
+
* @summary Get billing alerts
|
|
7992
|
+
* @param {*} [options] Override http request option.
|
|
7993
|
+
* @throws {RequiredError}
|
|
7994
|
+
* @memberof BillingDashboardApi
|
|
7995
|
+
*/
|
|
7996
|
+
adminBillingAlertsGet(options) {
|
|
7997
|
+
return BillingDashboardApiFp(this.configuration).adminBillingAlertsGet(options).then((request) => request(this.axios, this.basePath));
|
|
7998
|
+
}
|
|
7999
|
+
/**
|
|
8000
|
+
* Deletes a billing alert configuration
|
|
8001
|
+
* @summary Delete billing alert
|
|
8002
|
+
* @param {number} id Alert ID
|
|
8003
|
+
* @param {*} [options] Override http request option.
|
|
8004
|
+
* @throws {RequiredError}
|
|
8005
|
+
* @memberof BillingDashboardApi
|
|
8006
|
+
*/
|
|
8007
|
+
adminBillingAlertsIdDelete(id, options) {
|
|
8008
|
+
return BillingDashboardApiFp(this.configuration).adminBillingAlertsIdDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
8009
|
+
}
|
|
8010
|
+
/**
|
|
8011
|
+
* Updates an existing billing alert configuration
|
|
8012
|
+
* @summary Update billing alert
|
|
8013
|
+
* @param {number} id Alert ID
|
|
8014
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Updated alert configuration
|
|
8015
|
+
* @param {*} [options] Override http request option.
|
|
8016
|
+
* @throws {RequiredError}
|
|
8017
|
+
* @memberof BillingDashboardApi
|
|
8018
|
+
*/
|
|
8019
|
+
adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options) {
|
|
8020
|
+
return BillingDashboardApiFp(this.configuration).adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8021
|
+
}
|
|
8022
|
+
/**
|
|
8023
|
+
* Creates a new billing alert configuration for the organization
|
|
8024
|
+
* @summary Create billing alert
|
|
8025
|
+
* @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Alert configuration
|
|
8026
|
+
* @param {*} [options] Override http request option.
|
|
8027
|
+
* @throws {RequiredError}
|
|
8028
|
+
* @memberof BillingDashboardApi
|
|
8029
|
+
*/
|
|
8030
|
+
adminBillingAlertsPost(dataTypesBillingAlertRequest, options) {
|
|
8031
|
+
return BillingDashboardApiFp(this.configuration).adminBillingAlertsPost(dataTypesBillingAlertRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8032
|
+
}
|
|
7475
8033
|
/**
|
|
7476
8034
|
* Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
|
|
7477
8035
|
* @summary Get credit consumption
|
|
7478
8036
|
* @param {number} [orgId] Organization ID (defaults to user\'s org)
|
|
7479
|
-
* @param {string} [startDate] Start date (YYYY-MM-DD format)
|
|
7480
|
-
* @param {string} [endDate] End date (YYYY-MM-DD format)
|
|
7481
|
-
* @param {number} [
|
|
7482
|
-
* @param {number} [
|
|
8037
|
+
* @param {string} [startDate] Start date (YYYY-MM-DD format, defaults to 7 days ago)
|
|
8038
|
+
* @param {string} [endDate] End date (YYYY-MM-DD format, defaults to now)
|
|
8039
|
+
* @param {number} [page] Page number (default: 1)
|
|
8040
|
+
* @param {number} [pageSize] Number of results per page (default: 20, max: 100)
|
|
8041
|
+
* @param {number} [limit] Alternative: Number of results (default: 20, max: 100)
|
|
8042
|
+
* @param {number} [offset] Alternative: Number of results to skip (default: 0)
|
|
7483
8043
|
* @param {*} [options] Override http request option.
|
|
7484
8044
|
* @throws {RequiredError}
|
|
7485
8045
|
* @memberof BillingDashboardApi
|
|
7486
8046
|
*/
|
|
7487
|
-
adminBillingCreditConsumptionGet(orgId, startDate, endDate, limit, offset, options) {
|
|
7488
|
-
return BillingDashboardApiFp(this.configuration).adminBillingCreditConsumptionGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
8047
|
+
adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options) {
|
|
8048
|
+
return BillingDashboardApiFp(this.configuration).adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
7489
8049
|
}
|
|
7490
8050
|
/**
|
|
7491
8051
|
* Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
|
|
@@ -7547,6 +8107,16 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
7547
8107
|
adminBillingOrdersGet(orgId, startDate, endDate, limit, offset, options) {
|
|
7548
8108
|
return BillingDashboardApiFp(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
7549
8109
|
}
|
|
8110
|
+
/**
|
|
8111
|
+
* Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
|
|
8112
|
+
* @summary Get org admin billing overview
|
|
8113
|
+
* @param {*} [options] Override http request option.
|
|
8114
|
+
* @throws {RequiredError}
|
|
8115
|
+
* @memberof BillingDashboardApi
|
|
8116
|
+
*/
|
|
8117
|
+
adminBillingOrgOverviewGet(options) {
|
|
8118
|
+
return BillingDashboardApiFp(this.configuration).adminBillingOrgOverviewGet(options).then((request) => request(this.axios, this.basePath));
|
|
8119
|
+
}
|
|
7550
8120
|
/**
|
|
7551
8121
|
* Retrieves billing summary for all organizations with filtering options
|
|
7552
8122
|
* @summary Get organization billing summary
|
|
@@ -7590,6 +8160,16 @@ export class BillingDashboardApi extends BaseAPI {
|
|
|
7590
8160
|
adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
|
|
7591
8161
|
return BillingDashboardApiFp(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
|
|
7592
8162
|
}
|
|
8163
|
+
/**
|
|
8164
|
+
* Returns saved payment cards from Razorpay for the organization
|
|
8165
|
+
* @summary Get saved payment cards
|
|
8166
|
+
* @param {*} [options] Override http request option.
|
|
8167
|
+
* @throws {RequiredError}
|
|
8168
|
+
* @memberof BillingDashboardApi
|
|
8169
|
+
*/
|
|
8170
|
+
adminBillingSavedCardsGet(options) {
|
|
8171
|
+
return BillingDashboardApiFp(this.configuration).adminBillingSavedCardsGet(options).then((request) => request(this.axios, this.basePath));
|
|
8172
|
+
}
|
|
7593
8173
|
}
|
|
7594
8174
|
/**
|
|
7595
8175
|
* CommonApi - axios parameter creator
|