@seekora-ai/admin-api 1.0.77 → 1.0.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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'
@@ -4935,10 +4940,10 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
4935
4940
  * @param {*} [options] Override http request option.
4936
4941
  * @throws {RequiredError}
4937
4942
  */
4938
- apiAdminV1AnalyticsRulesGet: (authorization_1, storeId_1, collectionName_1, isActive_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, searchQuery_1, ...args_1) => __awaiter(this, [authorization_1, storeId_1, collectionName_1, isActive_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, searchQuery_1, ...args_1], void 0, function* (authorization, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options = {}) {
4943
+ adminV1AnalyticsRulesGet: (authorization_1, storeId_1, collectionName_1, isActive_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, searchQuery_1, ...args_1) => __awaiter(this, [authorization_1, storeId_1, collectionName_1, isActive_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, searchQuery_1, ...args_1], void 0, function* (authorization, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options = {}) {
4939
4944
  // verify required parameter 'authorization' is not null or undefined
4940
- assertParamExists('apiAdminV1AnalyticsRulesGet', 'authorization', authorization);
4941
- const localVarPath = `/api/admin/v1/analytics/rules`;
4945
+ assertParamExists('adminV1AnalyticsRulesGet', 'authorization', authorization);
4946
+ const localVarPath = `/admin/v1/analytics/rules`;
4942
4947
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4943
4948
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4944
4949
  let baseOptions;
@@ -4948,6 +4953,8 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
4948
4953
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4949
4954
  const localVarHeaderParameter = {};
4950
4955
  const localVarQueryParameter = {};
4956
+ // authentication BearerAuth required
4957
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
4951
4958
  if (storeId !== undefined) {
4952
4959
  localVarQueryParameter['store_id'] = storeId;
4953
4960
  }
@@ -4997,12 +5004,12 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
4997
5004
  * @param {*} [options] Override http request option.
4998
5005
  * @throws {RequiredError}
4999
5006
  */
5000
- apiAdminV1AnalyticsRulesPost: (authorization_1, dataTypesCreateAnalyticsRuleRequest_1, ...args_1) => __awaiter(this, [authorization_1, dataTypesCreateAnalyticsRuleRequest_1, ...args_1], void 0, function* (authorization, dataTypesCreateAnalyticsRuleRequest, options = {}) {
5007
+ adminV1AnalyticsRulesPost: (authorization_1, dataTypesCreateAnalyticsRuleRequest_1, ...args_1) => __awaiter(this, [authorization_1, dataTypesCreateAnalyticsRuleRequest_1, ...args_1], void 0, function* (authorization, dataTypesCreateAnalyticsRuleRequest, options = {}) {
5001
5008
  // verify required parameter 'authorization' is not null or undefined
5002
- assertParamExists('apiAdminV1AnalyticsRulesPost', 'authorization', authorization);
5009
+ assertParamExists('adminV1AnalyticsRulesPost', 'authorization', authorization);
5003
5010
  // verify required parameter 'dataTypesCreateAnalyticsRuleRequest' is not null or undefined
5004
- assertParamExists('apiAdminV1AnalyticsRulesPost', 'dataTypesCreateAnalyticsRuleRequest', dataTypesCreateAnalyticsRuleRequest);
5005
- const localVarPath = `/api/admin/v1/analytics/rules`;
5011
+ assertParamExists('adminV1AnalyticsRulesPost', 'dataTypesCreateAnalyticsRuleRequest', dataTypesCreateAnalyticsRuleRequest);
5012
+ const localVarPath = `/admin/v1/analytics/rules`;
5006
5013
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5007
5014
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5008
5015
  let baseOptions;
@@ -5012,6 +5019,8 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
5012
5019
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5013
5020
  const localVarHeaderParameter = {};
5014
5021
  const localVarQueryParameter = {};
5022
+ // authentication BearerAuth required
5023
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
5015
5024
  localVarHeaderParameter['Content-Type'] = 'application/json';
5016
5025
  if (authorization != null) {
5017
5026
  localVarHeaderParameter['Authorization'] = String(authorization);
@@ -5033,12 +5042,12 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
5033
5042
  * @param {*} [options] Override http request option.
5034
5043
  * @throws {RequiredError}
5035
5044
  */
5036
- apiAdminV1AnalyticsRulesRuleIdDelete: (authorization_1, ruleId_1, ...args_1) => __awaiter(this, [authorization_1, ruleId_1, ...args_1], void 0, function* (authorization, ruleId, options = {}) {
5045
+ adminV1AnalyticsRulesRuleIdDelete: (authorization_1, ruleId_1, ...args_1) => __awaiter(this, [authorization_1, ruleId_1, ...args_1], void 0, function* (authorization, ruleId, options = {}) {
5037
5046
  // verify required parameter 'authorization' is not null or undefined
5038
- assertParamExists('apiAdminV1AnalyticsRulesRuleIdDelete', 'authorization', authorization);
5047
+ assertParamExists('adminV1AnalyticsRulesRuleIdDelete', 'authorization', authorization);
5039
5048
  // verify required parameter 'ruleId' is not null or undefined
5040
- assertParamExists('apiAdminV1AnalyticsRulesRuleIdDelete', 'ruleId', ruleId);
5041
- const localVarPath = `/api/admin/v1/analytics/rules/{ruleId}`
5049
+ assertParamExists('adminV1AnalyticsRulesRuleIdDelete', 'ruleId', ruleId);
5050
+ const localVarPath = `/admin/v1/analytics/rules/{ruleId}`
5042
5051
  .replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
5043
5052
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5044
5053
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5049,6 +5058,8 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
5049
5058
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
5050
5059
  const localVarHeaderParameter = {};
5051
5060
  const localVarQueryParameter = {};
5061
+ // authentication BearerAuth required
5062
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
5052
5063
  if (authorization != null) {
5053
5064
  localVarHeaderParameter['Authorization'] = String(authorization);
5054
5065
  }
@@ -5068,12 +5079,12 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
5068
5079
  * @param {*} [options] Override http request option.
5069
5080
  * @throws {RequiredError}
5070
5081
  */
5071
- apiAdminV1AnalyticsRulesRuleIdGet: (authorization_1, ruleId_1, ...args_1) => __awaiter(this, [authorization_1, ruleId_1, ...args_1], void 0, function* (authorization, ruleId, options = {}) {
5082
+ adminV1AnalyticsRulesRuleIdGet: (authorization_1, ruleId_1, ...args_1) => __awaiter(this, [authorization_1, ruleId_1, ...args_1], void 0, function* (authorization, ruleId, options = {}) {
5072
5083
  // verify required parameter 'authorization' is not null or undefined
5073
- assertParamExists('apiAdminV1AnalyticsRulesRuleIdGet', 'authorization', authorization);
5084
+ assertParamExists('adminV1AnalyticsRulesRuleIdGet', 'authorization', authorization);
5074
5085
  // verify required parameter 'ruleId' is not null or undefined
5075
- assertParamExists('apiAdminV1AnalyticsRulesRuleIdGet', 'ruleId', ruleId);
5076
- const localVarPath = `/api/admin/v1/analytics/rules/{ruleId}`
5086
+ assertParamExists('adminV1AnalyticsRulesRuleIdGet', 'ruleId', ruleId);
5087
+ const localVarPath = `/admin/v1/analytics/rules/{ruleId}`
5077
5088
  .replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
5078
5089
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5079
5090
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5084,6 +5095,8 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
5084
5095
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5085
5096
  const localVarHeaderParameter = {};
5086
5097
  const localVarQueryParameter = {};
5098
+ // authentication BearerAuth required
5099
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
5087
5100
  if (authorization != null) {
5088
5101
  localVarHeaderParameter['Authorization'] = String(authorization);
5089
5102
  }
@@ -5104,14 +5117,14 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
5104
5117
  * @param {*} [options] Override http request option.
5105
5118
  * @throws {RequiredError}
5106
5119
  */
5107
- apiAdminV1AnalyticsRulesRuleIdPut: (authorization_1, ruleId_1, dataTypesUpdateAnalyticsRuleRequest_1, ...args_1) => __awaiter(this, [authorization_1, ruleId_1, dataTypesUpdateAnalyticsRuleRequest_1, ...args_1], void 0, function* (authorization, ruleId, dataTypesUpdateAnalyticsRuleRequest, options = {}) {
5120
+ adminV1AnalyticsRulesRuleIdPut: (authorization_1, ruleId_1, dataTypesUpdateAnalyticsRuleRequest_1, ...args_1) => __awaiter(this, [authorization_1, ruleId_1, dataTypesUpdateAnalyticsRuleRequest_1, ...args_1], void 0, function* (authorization, ruleId, dataTypesUpdateAnalyticsRuleRequest, options = {}) {
5108
5121
  // verify required parameter 'authorization' is not null or undefined
5109
- assertParamExists('apiAdminV1AnalyticsRulesRuleIdPut', 'authorization', authorization);
5122
+ assertParamExists('adminV1AnalyticsRulesRuleIdPut', 'authorization', authorization);
5110
5123
  // verify required parameter 'ruleId' is not null or undefined
5111
- assertParamExists('apiAdminV1AnalyticsRulesRuleIdPut', 'ruleId', ruleId);
5124
+ assertParamExists('adminV1AnalyticsRulesRuleIdPut', 'ruleId', ruleId);
5112
5125
  // verify required parameter 'dataTypesUpdateAnalyticsRuleRequest' is not null or undefined
5113
- assertParamExists('apiAdminV1AnalyticsRulesRuleIdPut', 'dataTypesUpdateAnalyticsRuleRequest', dataTypesUpdateAnalyticsRuleRequest);
5114
- const localVarPath = `/api/admin/v1/analytics/rules/{ruleId}`
5126
+ assertParamExists('adminV1AnalyticsRulesRuleIdPut', 'dataTypesUpdateAnalyticsRuleRequest', dataTypesUpdateAnalyticsRuleRequest);
5127
+ const localVarPath = `/admin/v1/analytics/rules/{ruleId}`
5115
5128
  .replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
5116
5129
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5117
5130
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5122,6 +5135,8 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
5122
5135
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5123
5136
  const localVarHeaderParameter = {};
5124
5137
  const localVarQueryParameter = {};
5138
+ // authentication BearerAuth required
5139
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
5125
5140
  localVarHeaderParameter['Content-Type'] = 'application/json';
5126
5141
  if (authorization != null) {
5127
5142
  localVarHeaderParameter['Authorization'] = String(authorization);
@@ -5143,12 +5158,12 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
5143
5158
  * @param {*} [options] Override http request option.
5144
5159
  * @throws {RequiredError}
5145
5160
  */
5146
- apiAdminV1AnalyticsRulesSyncPost: (authorization_1, dataTypesAnalyticsRuleSyncRequest_1, ...args_1) => __awaiter(this, [authorization_1, dataTypesAnalyticsRuleSyncRequest_1, ...args_1], void 0, function* (authorization, dataTypesAnalyticsRuleSyncRequest, options = {}) {
5161
+ adminV1AnalyticsRulesSyncPost: (authorization_1, dataTypesAnalyticsRuleSyncRequest_1, ...args_1) => __awaiter(this, [authorization_1, dataTypesAnalyticsRuleSyncRequest_1, ...args_1], void 0, function* (authorization, dataTypesAnalyticsRuleSyncRequest, options = {}) {
5147
5162
  // verify required parameter 'authorization' is not null or undefined
5148
- assertParamExists('apiAdminV1AnalyticsRulesSyncPost', 'authorization', authorization);
5163
+ assertParamExists('adminV1AnalyticsRulesSyncPost', 'authorization', authorization);
5149
5164
  // verify required parameter 'dataTypesAnalyticsRuleSyncRequest' is not null or undefined
5150
- assertParamExists('apiAdminV1AnalyticsRulesSyncPost', 'dataTypesAnalyticsRuleSyncRequest', dataTypesAnalyticsRuleSyncRequest);
5151
- const localVarPath = `/api/admin/v1/analytics/rules/sync`;
5165
+ assertParamExists('adminV1AnalyticsRulesSyncPost', 'dataTypesAnalyticsRuleSyncRequest', dataTypesAnalyticsRuleSyncRequest);
5166
+ const localVarPath = `/admin/v1/analytics/rules/sync`;
5152
5167
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5153
5168
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5154
5169
  let baseOptions;
@@ -5158,6 +5173,8 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
5158
5173
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5159
5174
  const localVarHeaderParameter = {};
5160
5175
  const localVarQueryParameter = {};
5176
+ // authentication BearerAuth required
5177
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
5161
5178
  localVarHeaderParameter['Content-Type'] = 'application/json';
5162
5179
  if (authorization != null) {
5163
5180
  localVarHeaderParameter['Authorization'] = String(authorization);
@@ -5171,6 +5188,89 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
5171
5188
  options: localVarRequestOptions,
5172
5189
  };
5173
5190
  }),
5191
+ /**
5192
+ * 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.
5193
+ * @summary Get Item by ID for Rule Management
5194
+ * @param {string} authorization Bearer JWT token
5195
+ * @param {string} xStoreID X-Store ID (same format as admin search API)
5196
+ * @param {string} itemId Item ID to retrieve
5197
+ * @param {*} [options] Override http request option.
5198
+ * @throws {RequiredError}
5199
+ */
5200
+ adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet: (authorization_1, xStoreID_1, itemId_1, ...args_1) => __awaiter(this, [authorization_1, xStoreID_1, itemId_1, ...args_1], void 0, function* (authorization, xStoreID, itemId, options = {}) {
5201
+ // verify required parameter 'authorization' is not null or undefined
5202
+ assertParamExists('adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet', 'authorization', authorization);
5203
+ // verify required parameter 'xStoreID' is not null or undefined
5204
+ assertParamExists('adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet', 'xStoreID', xStoreID);
5205
+ // verify required parameter 'itemId' is not null or undefined
5206
+ assertParamExists('adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet', 'itemId', itemId);
5207
+ const localVarPath = `/admin/v1/stores/{xStoreID}/analytics/rules/items/{itemId}`
5208
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
5209
+ .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId)));
5210
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5211
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5212
+ let baseOptions;
5213
+ if (configuration) {
5214
+ baseOptions = configuration.baseOptions;
5215
+ }
5216
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5217
+ const localVarHeaderParameter = {};
5218
+ const localVarQueryParameter = {};
5219
+ // authentication BearerAuth required
5220
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
5221
+ if (authorization != null) {
5222
+ localVarHeaderParameter['Authorization'] = String(authorization);
5223
+ }
5224
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5225
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5226
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5227
+ return {
5228
+ url: toPathString(localVarUrlObj),
5229
+ options: localVarRequestOptions,
5230
+ };
5231
+ }),
5232
+ /**
5233
+ * 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).
5234
+ * @summary Search Items for Rule Management
5235
+ * @param {string} authorization Bearer JWT token
5236
+ * @param {string} xStoreID X-Store ID (same format as admin search API)
5237
+ * @param {DataTypesSearchRuleItemsRequest} dataTypesSearchRuleItemsRequest Search parameters (query, page, per_page, filter)
5238
+ * @param {*} [options] Override http request option.
5239
+ * @throws {RequiredError}
5240
+ */
5241
+ adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost: (authorization_1, xStoreID_1, dataTypesSearchRuleItemsRequest_1, ...args_1) => __awaiter(this, [authorization_1, xStoreID_1, dataTypesSearchRuleItemsRequest_1, ...args_1], void 0, function* (authorization, xStoreID, dataTypesSearchRuleItemsRequest, options = {}) {
5242
+ // verify required parameter 'authorization' is not null or undefined
5243
+ assertParamExists('adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost', 'authorization', authorization);
5244
+ // verify required parameter 'xStoreID' is not null or undefined
5245
+ assertParamExists('adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost', 'xStoreID', xStoreID);
5246
+ // verify required parameter 'dataTypesSearchRuleItemsRequest' is not null or undefined
5247
+ assertParamExists('adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost', 'dataTypesSearchRuleItemsRequest', dataTypesSearchRuleItemsRequest);
5248
+ const localVarPath = `/admin/v1/stores/{xStoreID}/analytics/rules/search-items`
5249
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
5250
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5251
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5252
+ let baseOptions;
5253
+ if (configuration) {
5254
+ baseOptions = configuration.baseOptions;
5255
+ }
5256
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5257
+ const localVarHeaderParameter = {};
5258
+ const localVarQueryParameter = {};
5259
+ // authentication BearerAuth required
5260
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
5261
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5262
+ if (authorization != null) {
5263
+ localVarHeaderParameter['Authorization'] = String(authorization);
5264
+ }
5265
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5266
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5267
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5268
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesSearchRuleItemsRequest, localVarRequestOptions, configuration);
5269
+ return {
5270
+ url: toPathString(localVarUrlObj),
5271
+ options: localVarRequestOptions,
5272
+ };
5273
+ }),
5174
5274
  /**
5175
5275
  * 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
5276
  * @summary List Analytics Rules
@@ -5189,12 +5289,12 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
5189
5289
  * @param {*} [options] Override http request option.
5190
5290
  * @throws {RequiredError}
5191
5291
  */
5192
- apiAdminV1StoresXstoreidAnalyticsRulesGet: (authorization_1, xstoreid_1, storeId_1, collectionName_1, isActive_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, searchQuery_1, ...args_1) => __awaiter(this, [authorization_1, xstoreid_1, storeId_1, collectionName_1, isActive_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, searchQuery_1, ...args_1], void 0, function* (authorization, xstoreid, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options = {}) {
5292
+ adminV1StoresXstoreidAnalyticsRulesGet: (authorization_1, xstoreid_1, storeId_1, collectionName_1, isActive_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, searchQuery_1, ...args_1) => __awaiter(this, [authorization_1, xstoreid_1, storeId_1, collectionName_1, isActive_1, page_1, pageSize_1, limit_1, offset_1, sortBy_1, sortOrder_1, searchQuery_1, ...args_1], void 0, function* (authorization, xstoreid, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options = {}) {
5193
5293
  // verify required parameter 'authorization' is not null or undefined
5194
- assertParamExists('apiAdminV1StoresXstoreidAnalyticsRulesGet', 'authorization', authorization);
5294
+ assertParamExists('adminV1StoresXstoreidAnalyticsRulesGet', 'authorization', authorization);
5195
5295
  // verify required parameter 'xstoreid' is not null or undefined
5196
- assertParamExists('apiAdminV1StoresXstoreidAnalyticsRulesGet', 'xstoreid', xstoreid);
5197
- const localVarPath = `/api/admin/v1/stores/{xstoreid}/analytics/rules`
5296
+ assertParamExists('adminV1StoresXstoreidAnalyticsRulesGet', 'xstoreid', xstoreid);
5297
+ const localVarPath = `/admin/v1/stores/{xstoreid}/analytics/rules`
5198
5298
  .replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)));
5199
5299
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5200
5300
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5205,6 +5305,8 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
5205
5305
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5206
5306
  const localVarHeaderParameter = {};
5207
5307
  const localVarQueryParameter = {};
5308
+ // authentication BearerAuth required
5309
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
5208
5310
  if (storeId !== undefined) {
5209
5311
  localVarQueryParameter['store_id'] = storeId;
5210
5312
  }
@@ -5255,14 +5357,14 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
5255
5357
  * @param {*} [options] Override http request option.
5256
5358
  * @throws {RequiredError}
5257
5359
  */
5258
- apiAdminV1StoresXstoreidAnalyticsRulesPost: (authorization_1, xstoreid_1, dataTypesCreateAnalyticsRuleRequest_1, ...args_1) => __awaiter(this, [authorization_1, xstoreid_1, dataTypesCreateAnalyticsRuleRequest_1, ...args_1], void 0, function* (authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options = {}) {
5360
+ adminV1StoresXstoreidAnalyticsRulesPost: (authorization_1, xstoreid_1, dataTypesCreateAnalyticsRuleRequest_1, ...args_1) => __awaiter(this, [authorization_1, xstoreid_1, dataTypesCreateAnalyticsRuleRequest_1, ...args_1], void 0, function* (authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options = {}) {
5259
5361
  // verify required parameter 'authorization' is not null or undefined
5260
- assertParamExists('apiAdminV1StoresXstoreidAnalyticsRulesPost', 'authorization', authorization);
5362
+ assertParamExists('adminV1StoresXstoreidAnalyticsRulesPost', 'authorization', authorization);
5261
5363
  // verify required parameter 'xstoreid' is not null or undefined
5262
- assertParamExists('apiAdminV1StoresXstoreidAnalyticsRulesPost', 'xstoreid', xstoreid);
5364
+ assertParamExists('adminV1StoresXstoreidAnalyticsRulesPost', 'xstoreid', xstoreid);
5263
5365
  // verify required parameter 'dataTypesCreateAnalyticsRuleRequest' is not null or undefined
5264
- assertParamExists('apiAdminV1StoresXstoreidAnalyticsRulesPost', 'dataTypesCreateAnalyticsRuleRequest', dataTypesCreateAnalyticsRuleRequest);
5265
- const localVarPath = `/api/admin/v1/stores/{xstoreid}/analytics/rules`
5366
+ assertParamExists('adminV1StoresXstoreidAnalyticsRulesPost', 'dataTypesCreateAnalyticsRuleRequest', dataTypesCreateAnalyticsRuleRequest);
5367
+ const localVarPath = `/admin/v1/stores/{xstoreid}/analytics/rules`
5266
5368
  .replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)));
5267
5369
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5268
5370
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5273,6 +5375,8 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
5273
5375
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5274
5376
  const localVarHeaderParameter = {};
5275
5377
  const localVarQueryParameter = {};
5378
+ // authentication BearerAuth required
5379
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
5276
5380
  localVarHeaderParameter['Content-Type'] = 'application/json';
5277
5381
  if (authorization != null) {
5278
5382
  localVarHeaderParameter['Authorization'] = String(authorization);
@@ -5295,14 +5399,14 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
5295
5399
  * @param {*} [options] Override http request option.
5296
5400
  * @throws {RequiredError}
5297
5401
  */
5298
- apiAdminV1StoresXstoreidAnalyticsRulesRuleIdDelete: (authorization_1, xstoreid_1, ruleId_1, ...args_1) => __awaiter(this, [authorization_1, xstoreid_1, ruleId_1, ...args_1], void 0, function* (authorization, xstoreid, ruleId, options = {}) {
5402
+ adminV1StoresXstoreidAnalyticsRulesRuleIdDelete: (authorization_1, xstoreid_1, ruleId_1, ...args_1) => __awaiter(this, [authorization_1, xstoreid_1, ruleId_1, ...args_1], void 0, function* (authorization, xstoreid, ruleId, options = {}) {
5299
5403
  // verify required parameter 'authorization' is not null or undefined
5300
- assertParamExists('apiAdminV1StoresXstoreidAnalyticsRulesRuleIdDelete', 'authorization', authorization);
5404
+ assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdDelete', 'authorization', authorization);
5301
5405
  // verify required parameter 'xstoreid' is not null or undefined
5302
- assertParamExists('apiAdminV1StoresXstoreidAnalyticsRulesRuleIdDelete', 'xstoreid', xstoreid);
5406
+ assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdDelete', 'xstoreid', xstoreid);
5303
5407
  // verify required parameter 'ruleId' is not null or undefined
5304
- assertParamExists('apiAdminV1StoresXstoreidAnalyticsRulesRuleIdDelete', 'ruleId', ruleId);
5305
- const localVarPath = `/api/admin/v1/stores/{xstoreid}/analytics/rules/{ruleId}`
5408
+ assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdDelete', 'ruleId', ruleId);
5409
+ const localVarPath = `/admin/v1/stores/{xstoreid}/analytics/rules/{ruleId}`
5306
5410
  .replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)))
5307
5411
  .replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
5308
5412
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -5314,6 +5418,8 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
5314
5418
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
5315
5419
  const localVarHeaderParameter = {};
5316
5420
  const localVarQueryParameter = {};
5421
+ // authentication BearerAuth required
5422
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
5317
5423
  if (authorization != null) {
5318
5424
  localVarHeaderParameter['Authorization'] = String(authorization);
5319
5425
  }
@@ -5334,14 +5440,14 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
5334
5440
  * @param {*} [options] Override http request option.
5335
5441
  * @throws {RequiredError}
5336
5442
  */
5337
- apiAdminV1StoresXstoreidAnalyticsRulesRuleIdGet: (authorization_1, xstoreid_1, ruleId_1, ...args_1) => __awaiter(this, [authorization_1, xstoreid_1, ruleId_1, ...args_1], void 0, function* (authorization, xstoreid, ruleId, options = {}) {
5443
+ adminV1StoresXstoreidAnalyticsRulesRuleIdGet: (authorization_1, xstoreid_1, ruleId_1, ...args_1) => __awaiter(this, [authorization_1, xstoreid_1, ruleId_1, ...args_1], void 0, function* (authorization, xstoreid, ruleId, options = {}) {
5338
5444
  // verify required parameter 'authorization' is not null or undefined
5339
- assertParamExists('apiAdminV1StoresXstoreidAnalyticsRulesRuleIdGet', 'authorization', authorization);
5445
+ assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdGet', 'authorization', authorization);
5340
5446
  // verify required parameter 'xstoreid' is not null or undefined
5341
- assertParamExists('apiAdminV1StoresXstoreidAnalyticsRulesRuleIdGet', 'xstoreid', xstoreid);
5447
+ assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdGet', 'xstoreid', xstoreid);
5342
5448
  // verify required parameter 'ruleId' is not null or undefined
5343
- assertParamExists('apiAdminV1StoresXstoreidAnalyticsRulesRuleIdGet', 'ruleId', ruleId);
5344
- const localVarPath = `/api/admin/v1/stores/{xstoreid}/analytics/rules/{ruleId}`
5449
+ assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdGet', 'ruleId', ruleId);
5450
+ const localVarPath = `/admin/v1/stores/{xstoreid}/analytics/rules/{ruleId}`
5345
5451
  .replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)))
5346
5452
  .replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
5347
5453
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -5353,6 +5459,8 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
5353
5459
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
5354
5460
  const localVarHeaderParameter = {};
5355
5461
  const localVarQueryParameter = {};
5462
+ // authentication BearerAuth required
5463
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
5356
5464
  if (authorization != null) {
5357
5465
  localVarHeaderParameter['Authorization'] = String(authorization);
5358
5466
  }
@@ -5374,16 +5482,16 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
5374
5482
  * @param {*} [options] Override http request option.
5375
5483
  * @throws {RequiredError}
5376
5484
  */
5377
- apiAdminV1StoresXstoreidAnalyticsRulesRuleIdPut: (authorization_1, xstoreid_1, ruleId_1, dataTypesUpdateAnalyticsRuleRequest_1, ...args_1) => __awaiter(this, [authorization_1, xstoreid_1, ruleId_1, dataTypesUpdateAnalyticsRuleRequest_1, ...args_1], void 0, function* (authorization, xstoreid, ruleId, dataTypesUpdateAnalyticsRuleRequest, options = {}) {
5485
+ adminV1StoresXstoreidAnalyticsRulesRuleIdPut: (authorization_1, xstoreid_1, ruleId_1, dataTypesUpdateAnalyticsRuleRequest_1, ...args_1) => __awaiter(this, [authorization_1, xstoreid_1, ruleId_1, dataTypesUpdateAnalyticsRuleRequest_1, ...args_1], void 0, function* (authorization, xstoreid, ruleId, dataTypesUpdateAnalyticsRuleRequest, options = {}) {
5378
5486
  // verify required parameter 'authorization' is not null or undefined
5379
- assertParamExists('apiAdminV1StoresXstoreidAnalyticsRulesRuleIdPut', 'authorization', authorization);
5487
+ assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdPut', 'authorization', authorization);
5380
5488
  // verify required parameter 'xstoreid' is not null or undefined
5381
- assertParamExists('apiAdminV1StoresXstoreidAnalyticsRulesRuleIdPut', 'xstoreid', xstoreid);
5489
+ assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdPut', 'xstoreid', xstoreid);
5382
5490
  // verify required parameter 'ruleId' is not null or undefined
5383
- assertParamExists('apiAdminV1StoresXstoreidAnalyticsRulesRuleIdPut', 'ruleId', ruleId);
5491
+ assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdPut', 'ruleId', ruleId);
5384
5492
  // verify required parameter 'dataTypesUpdateAnalyticsRuleRequest' is not null or undefined
5385
- assertParamExists('apiAdminV1StoresXstoreidAnalyticsRulesRuleIdPut', 'dataTypesUpdateAnalyticsRuleRequest', dataTypesUpdateAnalyticsRuleRequest);
5386
- const localVarPath = `/api/admin/v1/stores/{xstoreid}/analytics/rules/{ruleId}`
5493
+ assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdPut', 'dataTypesUpdateAnalyticsRuleRequest', dataTypesUpdateAnalyticsRuleRequest);
5494
+ const localVarPath = `/admin/v1/stores/{xstoreid}/analytics/rules/{ruleId}`
5387
5495
  .replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)))
5388
5496
  .replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
5389
5497
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -5395,6 +5503,8 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
5395
5503
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
5396
5504
  const localVarHeaderParameter = {};
5397
5505
  const localVarQueryParameter = {};
5506
+ // authentication BearerAuth required
5507
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
5398
5508
  localVarHeaderParameter['Content-Type'] = 'application/json';
5399
5509
  if (authorization != null) {
5400
5510
  localVarHeaderParameter['Authorization'] = String(authorization);
@@ -5417,14 +5527,14 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
5417
5527
  * @param {*} [options] Override http request option.
5418
5528
  * @throws {RequiredError}
5419
5529
  */
5420
- apiAdminV1StoresXstoreidAnalyticsRulesSyncPost: (authorization_1, xstoreid_1, dataTypesAnalyticsRuleSyncRequest_1, ...args_1) => __awaiter(this, [authorization_1, xstoreid_1, dataTypesAnalyticsRuleSyncRequest_1, ...args_1], void 0, function* (authorization, xstoreid, dataTypesAnalyticsRuleSyncRequest, options = {}) {
5530
+ adminV1StoresXstoreidAnalyticsRulesSyncPost: (authorization_1, xstoreid_1, dataTypesAnalyticsRuleSyncRequest_1, ...args_1) => __awaiter(this, [authorization_1, xstoreid_1, dataTypesAnalyticsRuleSyncRequest_1, ...args_1], void 0, function* (authorization, xstoreid, dataTypesAnalyticsRuleSyncRequest, options = {}) {
5421
5531
  // verify required parameter 'authorization' is not null or undefined
5422
- assertParamExists('apiAdminV1StoresXstoreidAnalyticsRulesSyncPost', 'authorization', authorization);
5532
+ assertParamExists('adminV1StoresXstoreidAnalyticsRulesSyncPost', 'authorization', authorization);
5423
5533
  // verify required parameter 'xstoreid' is not null or undefined
5424
- assertParamExists('apiAdminV1StoresXstoreidAnalyticsRulesSyncPost', 'xstoreid', xstoreid);
5534
+ assertParamExists('adminV1StoresXstoreidAnalyticsRulesSyncPost', 'xstoreid', xstoreid);
5425
5535
  // verify required parameter 'dataTypesAnalyticsRuleSyncRequest' is not null or undefined
5426
- assertParamExists('apiAdminV1StoresXstoreidAnalyticsRulesSyncPost', 'dataTypesAnalyticsRuleSyncRequest', dataTypesAnalyticsRuleSyncRequest);
5427
- const localVarPath = `/api/admin/v1/stores/{xstoreid}/analytics/rules/sync`
5536
+ assertParamExists('adminV1StoresXstoreidAnalyticsRulesSyncPost', 'dataTypesAnalyticsRuleSyncRequest', dataTypesAnalyticsRuleSyncRequest);
5537
+ const localVarPath = `/admin/v1/stores/{xstoreid}/analytics/rules/sync`
5428
5538
  .replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)));
5429
5539
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5430
5540
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5435,6 +5545,8 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration) {
5435
5545
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5436
5546
  const localVarHeaderParameter = {};
5437
5547
  const localVarQueryParameter = {};
5548
+ // authentication BearerAuth required
5549
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
5438
5550
  localVarHeaderParameter['Content-Type'] = 'application/json';
5439
5551
  if (authorization != null) {
5440
5552
  localVarHeaderParameter['Authorization'] = String(authorization);
@@ -5474,12 +5586,12 @@ export const AnalyticsRulesApiFp = function (configuration) {
5474
5586
  * @param {*} [options] Override http request option.
5475
5587
  * @throws {RequiredError}
5476
5588
  */
5477
- apiAdminV1AnalyticsRulesGet(authorization, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options) {
5589
+ adminV1AnalyticsRulesGet(authorization, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options) {
5478
5590
  return __awaiter(this, void 0, void 0, function* () {
5479
5591
  var _a, _b, _c;
5480
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminV1AnalyticsRulesGet(authorization, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options);
5592
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1AnalyticsRulesGet(authorization, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options);
5481
5593
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5482
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.apiAdminV1AnalyticsRulesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5594
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.adminV1AnalyticsRulesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5483
5595
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5484
5596
  });
5485
5597
  },
@@ -5491,12 +5603,12 @@ export const AnalyticsRulesApiFp = function (configuration) {
5491
5603
  * @param {*} [options] Override http request option.
5492
5604
  * @throws {RequiredError}
5493
5605
  */
5494
- apiAdminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options) {
5606
+ adminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options) {
5495
5607
  return __awaiter(this, void 0, void 0, function* () {
5496
5608
  var _a, _b, _c;
5497
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options);
5609
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options);
5498
5610
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5499
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.apiAdminV1AnalyticsRulesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5611
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.adminV1AnalyticsRulesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5500
5612
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5501
5613
  });
5502
5614
  },
@@ -5508,12 +5620,12 @@ export const AnalyticsRulesApiFp = function (configuration) {
5508
5620
  * @param {*} [options] Override http request option.
5509
5621
  * @throws {RequiredError}
5510
5622
  */
5511
- apiAdminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options) {
5623
+ adminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options) {
5512
5624
  return __awaiter(this, void 0, void 0, function* () {
5513
5625
  var _a, _b, _c;
5514
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options);
5626
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options);
5515
5627
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5516
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.apiAdminV1AnalyticsRulesRuleIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5628
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.adminV1AnalyticsRulesRuleIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5517
5629
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5518
5630
  });
5519
5631
  },
@@ -5525,12 +5637,12 @@ export const AnalyticsRulesApiFp = function (configuration) {
5525
5637
  * @param {*} [options] Override http request option.
5526
5638
  * @throws {RequiredError}
5527
5639
  */
5528
- apiAdminV1AnalyticsRulesRuleIdGet(authorization, ruleId, options) {
5640
+ adminV1AnalyticsRulesRuleIdGet(authorization, ruleId, options) {
5529
5641
  return __awaiter(this, void 0, void 0, function* () {
5530
5642
  var _a, _b, _c;
5531
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminV1AnalyticsRulesRuleIdGet(authorization, ruleId, options);
5643
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1AnalyticsRulesRuleIdGet(authorization, ruleId, options);
5532
5644
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5533
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.apiAdminV1AnalyticsRulesRuleIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5645
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.adminV1AnalyticsRulesRuleIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5534
5646
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5535
5647
  });
5536
5648
  },
@@ -5543,12 +5655,12 @@ export const AnalyticsRulesApiFp = function (configuration) {
5543
5655
  * @param {*} [options] Override http request option.
5544
5656
  * @throws {RequiredError}
5545
5657
  */
5546
- apiAdminV1AnalyticsRulesRuleIdPut(authorization, ruleId, dataTypesUpdateAnalyticsRuleRequest, options) {
5658
+ adminV1AnalyticsRulesRuleIdPut(authorization, ruleId, dataTypesUpdateAnalyticsRuleRequest, options) {
5547
5659
  return __awaiter(this, void 0, void 0, function* () {
5548
5660
  var _a, _b, _c;
5549
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminV1AnalyticsRulesRuleIdPut(authorization, ruleId, dataTypesUpdateAnalyticsRuleRequest, options);
5661
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1AnalyticsRulesRuleIdPut(authorization, ruleId, dataTypesUpdateAnalyticsRuleRequest, options);
5550
5662
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5551
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.apiAdminV1AnalyticsRulesRuleIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5663
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.adminV1AnalyticsRulesRuleIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5552
5664
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5553
5665
  });
5554
5666
  },
@@ -5560,12 +5672,48 @@ export const AnalyticsRulesApiFp = function (configuration) {
5560
5672
  * @param {*} [options] Override http request option.
5561
5673
  * @throws {RequiredError}
5562
5674
  */
5563
- apiAdminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options) {
5675
+ adminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options) {
5676
+ return __awaiter(this, void 0, void 0, function* () {
5677
+ var _a, _b, _c;
5678
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options);
5679
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5680
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.adminV1AnalyticsRulesSyncPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5681
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5682
+ });
5683
+ },
5684
+ /**
5685
+ * 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.
5686
+ * @summary Get Item by ID for Rule Management
5687
+ * @param {string} authorization Bearer JWT token
5688
+ * @param {string} xStoreID X-Store ID (same format as admin search API)
5689
+ * @param {string} itemId Item ID to retrieve
5690
+ * @param {*} [options] Override http request option.
5691
+ * @throws {RequiredError}
5692
+ */
5693
+ adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options) {
5694
+ return __awaiter(this, void 0, void 0, function* () {
5695
+ var _a, _b, _c;
5696
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options);
5697
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5698
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5699
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5700
+ });
5701
+ },
5702
+ /**
5703
+ * 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).
5704
+ * @summary Search Items for Rule Management
5705
+ * @param {string} authorization Bearer JWT token
5706
+ * @param {string} xStoreID X-Store ID (same format as admin search API)
5707
+ * @param {DataTypesSearchRuleItemsRequest} dataTypesSearchRuleItemsRequest Search parameters (query, page, per_page, filter)
5708
+ * @param {*} [options] Override http request option.
5709
+ * @throws {RequiredError}
5710
+ */
5711
+ adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options) {
5564
5712
  return __awaiter(this, void 0, void 0, function* () {
5565
5713
  var _a, _b, _c;
5566
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options);
5714
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options);
5567
5715
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5568
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.apiAdminV1AnalyticsRulesSyncPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5716
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5569
5717
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5570
5718
  });
5571
5719
  },
@@ -5587,12 +5735,12 @@ export const AnalyticsRulesApiFp = function (configuration) {
5587
5735
  * @param {*} [options] Override http request option.
5588
5736
  * @throws {RequiredError}
5589
5737
  */
5590
- apiAdminV1StoresXstoreidAnalyticsRulesGet(authorization, xstoreid, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options) {
5738
+ adminV1StoresXstoreidAnalyticsRulesGet(authorization, xstoreid, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options) {
5591
5739
  return __awaiter(this, void 0, void 0, function* () {
5592
5740
  var _a, _b, _c;
5593
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminV1StoresXstoreidAnalyticsRulesGet(authorization, xstoreid, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options);
5741
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoresXstoreidAnalyticsRulesGet(authorization, xstoreid, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options);
5594
5742
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5595
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.apiAdminV1StoresXstoreidAnalyticsRulesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5743
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.adminV1StoresXstoreidAnalyticsRulesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5596
5744
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5597
5745
  });
5598
5746
  },
@@ -5605,12 +5753,12 @@ export const AnalyticsRulesApiFp = function (configuration) {
5605
5753
  * @param {*} [options] Override http request option.
5606
5754
  * @throws {RequiredError}
5607
5755
  */
5608
- apiAdminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options) {
5756
+ adminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options) {
5609
5757
  return __awaiter(this, void 0, void 0, function* () {
5610
5758
  var _a, _b, _c;
5611
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options);
5759
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options);
5612
5760
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5613
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.apiAdminV1StoresXstoreidAnalyticsRulesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5761
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.adminV1StoresXstoreidAnalyticsRulesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5614
5762
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5615
5763
  });
5616
5764
  },
@@ -5623,12 +5771,12 @@ export const AnalyticsRulesApiFp = function (configuration) {
5623
5771
  * @param {*} [options] Override http request option.
5624
5772
  * @throws {RequiredError}
5625
5773
  */
5626
- apiAdminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options) {
5774
+ adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options) {
5627
5775
  return __awaiter(this, void 0, void 0, function* () {
5628
5776
  var _a, _b, _c;
5629
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options);
5777
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options);
5630
5778
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5631
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.apiAdminV1StoresXstoreidAnalyticsRulesRuleIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5779
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.adminV1StoresXstoreidAnalyticsRulesRuleIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5632
5780
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5633
5781
  });
5634
5782
  },
@@ -5641,12 +5789,12 @@ export const AnalyticsRulesApiFp = function (configuration) {
5641
5789
  * @param {*} [options] Override http request option.
5642
5790
  * @throws {RequiredError}
5643
5791
  */
5644
- apiAdminV1StoresXstoreidAnalyticsRulesRuleIdGet(authorization, xstoreid, ruleId, options) {
5792
+ adminV1StoresXstoreidAnalyticsRulesRuleIdGet(authorization, xstoreid, ruleId, options) {
5645
5793
  return __awaiter(this, void 0, void 0, function* () {
5646
5794
  var _a, _b, _c;
5647
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminV1StoresXstoreidAnalyticsRulesRuleIdGet(authorization, xstoreid, ruleId, options);
5795
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoresXstoreidAnalyticsRulesRuleIdGet(authorization, xstoreid, ruleId, options);
5648
5796
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5649
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.apiAdminV1StoresXstoreidAnalyticsRulesRuleIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5797
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.adminV1StoresXstoreidAnalyticsRulesRuleIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5650
5798
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5651
5799
  });
5652
5800
  },
@@ -5660,12 +5808,12 @@ export const AnalyticsRulesApiFp = function (configuration) {
5660
5808
  * @param {*} [options] Override http request option.
5661
5809
  * @throws {RequiredError}
5662
5810
  */
5663
- apiAdminV1StoresXstoreidAnalyticsRulesRuleIdPut(authorization, xstoreid, ruleId, dataTypesUpdateAnalyticsRuleRequest, options) {
5811
+ adminV1StoresXstoreidAnalyticsRulesRuleIdPut(authorization, xstoreid, ruleId, dataTypesUpdateAnalyticsRuleRequest, options) {
5664
5812
  return __awaiter(this, void 0, void 0, function* () {
5665
5813
  var _a, _b, _c;
5666
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminV1StoresXstoreidAnalyticsRulesRuleIdPut(authorization, xstoreid, ruleId, dataTypesUpdateAnalyticsRuleRequest, options);
5814
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoresXstoreidAnalyticsRulesRuleIdPut(authorization, xstoreid, ruleId, dataTypesUpdateAnalyticsRuleRequest, options);
5667
5815
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5668
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.apiAdminV1StoresXstoreidAnalyticsRulesRuleIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5816
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.adminV1StoresXstoreidAnalyticsRulesRuleIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5669
5817
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5670
5818
  });
5671
5819
  },
@@ -5678,12 +5826,12 @@ export const AnalyticsRulesApiFp = function (configuration) {
5678
5826
  * @param {*} [options] Override http request option.
5679
5827
  * @throws {RequiredError}
5680
5828
  */
5681
- apiAdminV1StoresXstoreidAnalyticsRulesSyncPost(authorization, xstoreid, dataTypesAnalyticsRuleSyncRequest, options) {
5829
+ adminV1StoresXstoreidAnalyticsRulesSyncPost(authorization, xstoreid, dataTypesAnalyticsRuleSyncRequest, options) {
5682
5830
  return __awaiter(this, void 0, void 0, function* () {
5683
5831
  var _a, _b, _c;
5684
- const localVarAxiosArgs = yield localVarAxiosParamCreator.apiAdminV1StoresXstoreidAnalyticsRulesSyncPost(authorization, xstoreid, dataTypesAnalyticsRuleSyncRequest, options);
5832
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminV1StoresXstoreidAnalyticsRulesSyncPost(authorization, xstoreid, dataTypesAnalyticsRuleSyncRequest, options);
5685
5833
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5686
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.apiAdminV1StoresXstoreidAnalyticsRulesSyncPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5834
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsRulesApi.adminV1StoresXstoreidAnalyticsRulesSyncPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5687
5835
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5688
5836
  });
5689
5837
  },
@@ -5713,8 +5861,8 @@ export const AnalyticsRulesApiFactory = function (configuration, basePath, axios
5713
5861
  * @param {*} [options] Override http request option.
5714
5862
  * @throws {RequiredError}
5715
5863
  */
5716
- apiAdminV1AnalyticsRulesGet(authorization, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options) {
5717
- return localVarFp.apiAdminV1AnalyticsRulesGet(authorization, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options).then((request) => request(axios, basePath));
5864
+ adminV1AnalyticsRulesGet(authorization, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options) {
5865
+ return localVarFp.adminV1AnalyticsRulesGet(authorization, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options).then((request) => request(axios, basePath));
5718
5866
  },
5719
5867
  /**
5720
5868
  * Create a new analytics rule for Typesense curation. Rules define how search results should be modified (promoted, hidden, filtered, sorted) based on query conditions.
@@ -5724,8 +5872,8 @@ export const AnalyticsRulesApiFactory = function (configuration, basePath, axios
5724
5872
  * @param {*} [options] Override http request option.
5725
5873
  * @throws {RequiredError}
5726
5874
  */
5727
- apiAdminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options) {
5728
- return localVarFp.apiAdminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options).then((request) => request(axios, basePath));
5875
+ adminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options) {
5876
+ return localVarFp.adminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options).then((request) => request(axios, basePath));
5729
5877
  },
5730
5878
  /**
5731
5879
  * Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
@@ -5735,8 +5883,8 @@ export const AnalyticsRulesApiFactory = function (configuration, basePath, axios
5735
5883
  * @param {*} [options] Override http request option.
5736
5884
  * @throws {RequiredError}
5737
5885
  */
5738
- apiAdminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options) {
5739
- return localVarFp.apiAdminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options).then((request) => request(axios, basePath));
5886
+ adminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options) {
5887
+ return localVarFp.adminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options).then((request) => request(axios, basePath));
5740
5888
  },
5741
5889
  /**
5742
5890
  * Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
@@ -5746,8 +5894,8 @@ export const AnalyticsRulesApiFactory = function (configuration, basePath, axios
5746
5894
  * @param {*} [options] Override http request option.
5747
5895
  * @throws {RequiredError}
5748
5896
  */
5749
- apiAdminV1AnalyticsRulesRuleIdGet(authorization, ruleId, options) {
5750
- return localVarFp.apiAdminV1AnalyticsRulesRuleIdGet(authorization, ruleId, options).then((request) => request(axios, basePath));
5897
+ adminV1AnalyticsRulesRuleIdGet(authorization, ruleId, options) {
5898
+ return localVarFp.adminV1AnalyticsRulesRuleIdGet(authorization, ruleId, options).then((request) => request(axios, basePath));
5751
5899
  },
5752
5900
  /**
5753
5901
  * Update an existing analytics rule. Supports partial updates. When is_active is set to false, the rule is removed from Typesense. When is_active is set to true, the rule is synced to Typesense.
@@ -5758,8 +5906,8 @@ export const AnalyticsRulesApiFactory = function (configuration, basePath, axios
5758
5906
  * @param {*} [options] Override http request option.
5759
5907
  * @throws {RequiredError}
5760
5908
  */
5761
- apiAdminV1AnalyticsRulesRuleIdPut(authorization, ruleId, dataTypesUpdateAnalyticsRuleRequest, options) {
5762
- return localVarFp.apiAdminV1AnalyticsRulesRuleIdPut(authorization, ruleId, dataTypesUpdateAnalyticsRuleRequest, options).then((request) => request(axios, basePath));
5909
+ adminV1AnalyticsRulesRuleIdPut(authorization, ruleId, dataTypesUpdateAnalyticsRuleRequest, options) {
5910
+ return localVarFp.adminV1AnalyticsRulesRuleIdPut(authorization, ruleId, dataTypesUpdateAnalyticsRuleRequest, options).then((request) => request(axios, basePath));
5763
5911
  },
5764
5912
  /**
5765
5913
  * Manually synchronize analytics rules to Typesense. This endpoint can be used to force a sync of all active rules or specific rules to Typesense collections.
@@ -5769,8 +5917,32 @@ export const AnalyticsRulesApiFactory = function (configuration, basePath, axios
5769
5917
  * @param {*} [options] Override http request option.
5770
5918
  * @throws {RequiredError}
5771
5919
  */
5772
- apiAdminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options) {
5773
- return localVarFp.apiAdminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options).then((request) => request(axios, basePath));
5920
+ adminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options) {
5921
+ return localVarFp.adminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options).then((request) => request(axios, basePath));
5922
+ },
5923
+ /**
5924
+ * 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.
5925
+ * @summary Get Item by ID for Rule Management
5926
+ * @param {string} authorization Bearer JWT token
5927
+ * @param {string} xStoreID X-Store ID (same format as admin search API)
5928
+ * @param {string} itemId Item ID to retrieve
5929
+ * @param {*} [options] Override http request option.
5930
+ * @throws {RequiredError}
5931
+ */
5932
+ adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options) {
5933
+ return localVarFp.adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options).then((request) => request(axios, basePath));
5934
+ },
5935
+ /**
5936
+ * 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).
5937
+ * @summary Search Items for Rule Management
5938
+ * @param {string} authorization Bearer JWT token
5939
+ * @param {string} xStoreID X-Store ID (same format as admin search API)
5940
+ * @param {DataTypesSearchRuleItemsRequest} dataTypesSearchRuleItemsRequest Search parameters (query, page, per_page, filter)
5941
+ * @param {*} [options] Override http request option.
5942
+ * @throws {RequiredError}
5943
+ */
5944
+ adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options) {
5945
+ return localVarFp.adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options).then((request) => request(axios, basePath));
5774
5946
  },
5775
5947
  /**
5776
5948
  * Retrieve a paginated list of analytics rules with optional filtering by store, collection, and active status. Supports both page-based and offset-based pagination.
@@ -5790,8 +5962,8 @@ export const AnalyticsRulesApiFactory = function (configuration, basePath, axios
5790
5962
  * @param {*} [options] Override http request option.
5791
5963
  * @throws {RequiredError}
5792
5964
  */
5793
- apiAdminV1StoresXstoreidAnalyticsRulesGet(authorization, xstoreid, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options) {
5794
- return localVarFp.apiAdminV1StoresXstoreidAnalyticsRulesGet(authorization, xstoreid, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options).then((request) => request(axios, basePath));
5965
+ adminV1StoresXstoreidAnalyticsRulesGet(authorization, xstoreid, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options) {
5966
+ return localVarFp.adminV1StoresXstoreidAnalyticsRulesGet(authorization, xstoreid, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options).then((request) => request(axios, basePath));
5795
5967
  },
5796
5968
  /**
5797
5969
  * Create a new analytics rule for Typesense curation. Rules define how search results should be modified (promoted, hidden, filtered, sorted) based on query conditions.
@@ -5802,8 +5974,8 @@ export const AnalyticsRulesApiFactory = function (configuration, basePath, axios
5802
5974
  * @param {*} [options] Override http request option.
5803
5975
  * @throws {RequiredError}
5804
5976
  */
5805
- apiAdminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options) {
5806
- return localVarFp.apiAdminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options).then((request) => request(axios, basePath));
5977
+ adminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options) {
5978
+ return localVarFp.adminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options).then((request) => request(axios, basePath));
5807
5979
  },
5808
5980
  /**
5809
5981
  * Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
@@ -5814,8 +5986,8 @@ export const AnalyticsRulesApiFactory = function (configuration, basePath, axios
5814
5986
  * @param {*} [options] Override http request option.
5815
5987
  * @throws {RequiredError}
5816
5988
  */
5817
- apiAdminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options) {
5818
- return localVarFp.apiAdminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options).then((request) => request(axios, basePath));
5989
+ adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options) {
5990
+ return localVarFp.adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options).then((request) => request(axios, basePath));
5819
5991
  },
5820
5992
  /**
5821
5993
  * Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
@@ -5826,8 +5998,8 @@ export const AnalyticsRulesApiFactory = function (configuration, basePath, axios
5826
5998
  * @param {*} [options] Override http request option.
5827
5999
  * @throws {RequiredError}
5828
6000
  */
5829
- apiAdminV1StoresXstoreidAnalyticsRulesRuleIdGet(authorization, xstoreid, ruleId, options) {
5830
- return localVarFp.apiAdminV1StoresXstoreidAnalyticsRulesRuleIdGet(authorization, xstoreid, ruleId, options).then((request) => request(axios, basePath));
6001
+ adminV1StoresXstoreidAnalyticsRulesRuleIdGet(authorization, xstoreid, ruleId, options) {
6002
+ return localVarFp.adminV1StoresXstoreidAnalyticsRulesRuleIdGet(authorization, xstoreid, ruleId, options).then((request) => request(axios, basePath));
5831
6003
  },
5832
6004
  /**
5833
6005
  * Update an existing analytics rule. Supports partial updates. When is_active is set to false, the rule is removed from Typesense. When is_active is set to true, the rule is synced to Typesense.
@@ -5839,8 +6011,8 @@ export const AnalyticsRulesApiFactory = function (configuration, basePath, axios
5839
6011
  * @param {*} [options] Override http request option.
5840
6012
  * @throws {RequiredError}
5841
6013
  */
5842
- apiAdminV1StoresXstoreidAnalyticsRulesRuleIdPut(authorization, xstoreid, ruleId, dataTypesUpdateAnalyticsRuleRequest, options) {
5843
- return localVarFp.apiAdminV1StoresXstoreidAnalyticsRulesRuleIdPut(authorization, xstoreid, ruleId, dataTypesUpdateAnalyticsRuleRequest, options).then((request) => request(axios, basePath));
6014
+ adminV1StoresXstoreidAnalyticsRulesRuleIdPut(authorization, xstoreid, ruleId, dataTypesUpdateAnalyticsRuleRequest, options) {
6015
+ return localVarFp.adminV1StoresXstoreidAnalyticsRulesRuleIdPut(authorization, xstoreid, ruleId, dataTypesUpdateAnalyticsRuleRequest, options).then((request) => request(axios, basePath));
5844
6016
  },
5845
6017
  /**
5846
6018
  * Manually synchronize analytics rules to Typesense. This endpoint can be used to force a sync of all active rules or specific rules to Typesense collections.
@@ -5851,8 +6023,8 @@ export const AnalyticsRulesApiFactory = function (configuration, basePath, axios
5851
6023
  * @param {*} [options] Override http request option.
5852
6024
  * @throws {RequiredError}
5853
6025
  */
5854
- apiAdminV1StoresXstoreidAnalyticsRulesSyncPost(authorization, xstoreid, dataTypesAnalyticsRuleSyncRequest, options) {
5855
- return localVarFp.apiAdminV1StoresXstoreidAnalyticsRulesSyncPost(authorization, xstoreid, dataTypesAnalyticsRuleSyncRequest, options).then((request) => request(axios, basePath));
6026
+ adminV1StoresXstoreidAnalyticsRulesSyncPost(authorization, xstoreid, dataTypesAnalyticsRuleSyncRequest, options) {
6027
+ return localVarFp.adminV1StoresXstoreidAnalyticsRulesSyncPost(authorization, xstoreid, dataTypesAnalyticsRuleSyncRequest, options).then((request) => request(axios, basePath));
5856
6028
  },
5857
6029
  };
5858
6030
  };
@@ -5881,8 +6053,8 @@ export class AnalyticsRulesApi extends BaseAPI {
5881
6053
  * @throws {RequiredError}
5882
6054
  * @memberof AnalyticsRulesApi
5883
6055
  */
5884
- apiAdminV1AnalyticsRulesGet(authorization, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options) {
5885
- return AnalyticsRulesApiFp(this.configuration).apiAdminV1AnalyticsRulesGet(authorization, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options).then((request) => request(this.axios, this.basePath));
6056
+ adminV1AnalyticsRulesGet(authorization, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options) {
6057
+ return AnalyticsRulesApiFp(this.configuration).adminV1AnalyticsRulesGet(authorization, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options).then((request) => request(this.axios, this.basePath));
5886
6058
  }
5887
6059
  /**
5888
6060
  * Create a new analytics rule for Typesense curation. Rules define how search results should be modified (promoted, hidden, filtered, sorted) based on query conditions.
@@ -5893,8 +6065,8 @@ export class AnalyticsRulesApi extends BaseAPI {
5893
6065
  * @throws {RequiredError}
5894
6066
  * @memberof AnalyticsRulesApi
5895
6067
  */
5896
- apiAdminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options) {
5897
- return AnalyticsRulesApiFp(this.configuration).apiAdminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options).then((request) => request(this.axios, this.basePath));
6068
+ adminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options) {
6069
+ return AnalyticsRulesApiFp(this.configuration).adminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options).then((request) => request(this.axios, this.basePath));
5898
6070
  }
5899
6071
  /**
5900
6072
  * Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
@@ -5905,8 +6077,8 @@ export class AnalyticsRulesApi extends BaseAPI {
5905
6077
  * @throws {RequiredError}
5906
6078
  * @memberof AnalyticsRulesApi
5907
6079
  */
5908
- apiAdminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options) {
5909
- return AnalyticsRulesApiFp(this.configuration).apiAdminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options).then((request) => request(this.axios, this.basePath));
6080
+ adminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options) {
6081
+ return AnalyticsRulesApiFp(this.configuration).adminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options).then((request) => request(this.axios, this.basePath));
5910
6082
  }
5911
6083
  /**
5912
6084
  * Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
@@ -5917,8 +6089,8 @@ export class AnalyticsRulesApi extends BaseAPI {
5917
6089
  * @throws {RequiredError}
5918
6090
  * @memberof AnalyticsRulesApi
5919
6091
  */
5920
- apiAdminV1AnalyticsRulesRuleIdGet(authorization, ruleId, options) {
5921
- return AnalyticsRulesApiFp(this.configuration).apiAdminV1AnalyticsRulesRuleIdGet(authorization, ruleId, options).then((request) => request(this.axios, this.basePath));
6092
+ adminV1AnalyticsRulesRuleIdGet(authorization, ruleId, options) {
6093
+ return AnalyticsRulesApiFp(this.configuration).adminV1AnalyticsRulesRuleIdGet(authorization, ruleId, options).then((request) => request(this.axios, this.basePath));
5922
6094
  }
5923
6095
  /**
5924
6096
  * Update an existing analytics rule. Supports partial updates. When is_active is set to false, the rule is removed from Typesense. When is_active is set to true, the rule is synced to Typesense.
@@ -5930,8 +6102,8 @@ export class AnalyticsRulesApi extends BaseAPI {
5930
6102
  * @throws {RequiredError}
5931
6103
  * @memberof AnalyticsRulesApi
5932
6104
  */
5933
- apiAdminV1AnalyticsRulesRuleIdPut(authorization, ruleId, dataTypesUpdateAnalyticsRuleRequest, options) {
5934
- return AnalyticsRulesApiFp(this.configuration).apiAdminV1AnalyticsRulesRuleIdPut(authorization, ruleId, dataTypesUpdateAnalyticsRuleRequest, options).then((request) => request(this.axios, this.basePath));
6105
+ adminV1AnalyticsRulesRuleIdPut(authorization, ruleId, dataTypesUpdateAnalyticsRuleRequest, options) {
6106
+ return AnalyticsRulesApiFp(this.configuration).adminV1AnalyticsRulesRuleIdPut(authorization, ruleId, dataTypesUpdateAnalyticsRuleRequest, options).then((request) => request(this.axios, this.basePath));
5935
6107
  }
5936
6108
  /**
5937
6109
  * Manually synchronize analytics rules to Typesense. This endpoint can be used to force a sync of all active rules or specific rules to Typesense collections.
@@ -5942,8 +6114,34 @@ export class AnalyticsRulesApi extends BaseAPI {
5942
6114
  * @throws {RequiredError}
5943
6115
  * @memberof AnalyticsRulesApi
5944
6116
  */
5945
- apiAdminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options) {
5946
- return AnalyticsRulesApiFp(this.configuration).apiAdminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options).then((request) => request(this.axios, this.basePath));
6117
+ adminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options) {
6118
+ return AnalyticsRulesApiFp(this.configuration).adminV1AnalyticsRulesSyncPost(authorization, dataTypesAnalyticsRuleSyncRequest, options).then((request) => request(this.axios, this.basePath));
6119
+ }
6120
+ /**
6121
+ * 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.
6122
+ * @summary Get Item by ID for Rule Management
6123
+ * @param {string} authorization Bearer JWT token
6124
+ * @param {string} xStoreID X-Store ID (same format as admin search API)
6125
+ * @param {string} itemId Item ID to retrieve
6126
+ * @param {*} [options] Override http request option.
6127
+ * @throws {RequiredError}
6128
+ * @memberof AnalyticsRulesApi
6129
+ */
6130
+ adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options) {
6131
+ return AnalyticsRulesApiFp(this.configuration).adminV1StoresXStoreIDAnalyticsRulesItemsItemIdGet(authorization, xStoreID, itemId, options).then((request) => request(this.axios, this.basePath));
6132
+ }
6133
+ /**
6134
+ * 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).
6135
+ * @summary Search Items for Rule Management
6136
+ * @param {string} authorization Bearer JWT token
6137
+ * @param {string} xStoreID X-Store ID (same format as admin search API)
6138
+ * @param {DataTypesSearchRuleItemsRequest} dataTypesSearchRuleItemsRequest Search parameters (query, page, per_page, filter)
6139
+ * @param {*} [options] Override http request option.
6140
+ * @throws {RequiredError}
6141
+ * @memberof AnalyticsRulesApi
6142
+ */
6143
+ adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options) {
6144
+ return AnalyticsRulesApiFp(this.configuration).adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost(authorization, xStoreID, dataTypesSearchRuleItemsRequest, options).then((request) => request(this.axios, this.basePath));
5947
6145
  }
5948
6146
  /**
5949
6147
  * Retrieve a paginated list of analytics rules with optional filtering by store, collection, and active status. Supports both page-based and offset-based pagination.
@@ -5964,8 +6162,8 @@ export class AnalyticsRulesApi extends BaseAPI {
5964
6162
  * @throws {RequiredError}
5965
6163
  * @memberof AnalyticsRulesApi
5966
6164
  */
5967
- apiAdminV1StoresXstoreidAnalyticsRulesGet(authorization, xstoreid, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options) {
5968
- return AnalyticsRulesApiFp(this.configuration).apiAdminV1StoresXstoreidAnalyticsRulesGet(authorization, xstoreid, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options).then((request) => request(this.axios, this.basePath));
6165
+ adminV1StoresXstoreidAnalyticsRulesGet(authorization, xstoreid, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options) {
6166
+ return AnalyticsRulesApiFp(this.configuration).adminV1StoresXstoreidAnalyticsRulesGet(authorization, xstoreid, storeId, collectionName, isActive, page, pageSize, limit, offset, sortBy, sortOrder, searchQuery, options).then((request) => request(this.axios, this.basePath));
5969
6167
  }
5970
6168
  /**
5971
6169
  * Create a new analytics rule for Typesense curation. Rules define how search results should be modified (promoted, hidden, filtered, sorted) based on query conditions.
@@ -5977,8 +6175,8 @@ export class AnalyticsRulesApi extends BaseAPI {
5977
6175
  * @throws {RequiredError}
5978
6176
  * @memberof AnalyticsRulesApi
5979
6177
  */
5980
- apiAdminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options) {
5981
- return AnalyticsRulesApiFp(this.configuration).apiAdminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options).then((request) => request(this.axios, this.basePath));
6178
+ adminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options) {
6179
+ return AnalyticsRulesApiFp(this.configuration).adminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options).then((request) => request(this.axios, this.basePath));
5982
6180
  }
5983
6181
  /**
5984
6182
  * Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
@@ -5990,8 +6188,8 @@ export class AnalyticsRulesApi extends BaseAPI {
5990
6188
  * @throws {RequiredError}
5991
6189
  * @memberof AnalyticsRulesApi
5992
6190
  */
5993
- apiAdminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options) {
5994
- return AnalyticsRulesApiFp(this.configuration).apiAdminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options).then((request) => request(this.axios, this.basePath));
6191
+ adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options) {
6192
+ return AnalyticsRulesApiFp(this.configuration).adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options).then((request) => request(this.axios, this.basePath));
5995
6193
  }
5996
6194
  /**
5997
6195
  * Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
@@ -6003,8 +6201,8 @@ export class AnalyticsRulesApi extends BaseAPI {
6003
6201
  * @throws {RequiredError}
6004
6202
  * @memberof AnalyticsRulesApi
6005
6203
  */
6006
- apiAdminV1StoresXstoreidAnalyticsRulesRuleIdGet(authorization, xstoreid, ruleId, options) {
6007
- return AnalyticsRulesApiFp(this.configuration).apiAdminV1StoresXstoreidAnalyticsRulesRuleIdGet(authorization, xstoreid, ruleId, options).then((request) => request(this.axios, this.basePath));
6204
+ adminV1StoresXstoreidAnalyticsRulesRuleIdGet(authorization, xstoreid, ruleId, options) {
6205
+ return AnalyticsRulesApiFp(this.configuration).adminV1StoresXstoreidAnalyticsRulesRuleIdGet(authorization, xstoreid, ruleId, options).then((request) => request(this.axios, this.basePath));
6008
6206
  }
6009
6207
  /**
6010
6208
  * Update an existing analytics rule. Supports partial updates. When is_active is set to false, the rule is removed from Typesense. When is_active is set to true, the rule is synced to Typesense.
@@ -6017,8 +6215,8 @@ export class AnalyticsRulesApi extends BaseAPI {
6017
6215
  * @throws {RequiredError}
6018
6216
  * @memberof AnalyticsRulesApi
6019
6217
  */
6020
- apiAdminV1StoresXstoreidAnalyticsRulesRuleIdPut(authorization, xstoreid, ruleId, dataTypesUpdateAnalyticsRuleRequest, options) {
6021
- return AnalyticsRulesApiFp(this.configuration).apiAdminV1StoresXstoreidAnalyticsRulesRuleIdPut(authorization, xstoreid, ruleId, dataTypesUpdateAnalyticsRuleRequest, options).then((request) => request(this.axios, this.basePath));
6218
+ adminV1StoresXstoreidAnalyticsRulesRuleIdPut(authorization, xstoreid, ruleId, dataTypesUpdateAnalyticsRuleRequest, options) {
6219
+ return AnalyticsRulesApiFp(this.configuration).adminV1StoresXstoreidAnalyticsRulesRuleIdPut(authorization, xstoreid, ruleId, dataTypesUpdateAnalyticsRuleRequest, options).then((request) => request(this.axios, this.basePath));
6022
6220
  }
6023
6221
  /**
6024
6222
  * Manually synchronize analytics rules to Typesense. This endpoint can be used to force a sync of all active rules or specific rules to Typesense collections.
@@ -6030,8 +6228,8 @@ export class AnalyticsRulesApi extends BaseAPI {
6030
6228
  * @throws {RequiredError}
6031
6229
  * @memberof AnalyticsRulesApi
6032
6230
  */
6033
- apiAdminV1StoresXstoreidAnalyticsRulesSyncPost(authorization, xstoreid, dataTypesAnalyticsRuleSyncRequest, options) {
6034
- return AnalyticsRulesApiFp(this.configuration).apiAdminV1StoresXstoreidAnalyticsRulesSyncPost(authorization, xstoreid, dataTypesAnalyticsRuleSyncRequest, options).then((request) => request(this.axios, this.basePath));
6231
+ adminV1StoresXstoreidAnalyticsRulesSyncPost(authorization, xstoreid, dataTypesAnalyticsRuleSyncRequest, options) {
6232
+ return AnalyticsRulesApiFp(this.configuration).adminV1StoresXstoreidAnalyticsRulesSyncPost(authorization, xstoreid, dataTypesAnalyticsRuleSyncRequest, options).then((request) => request(this.axios, this.basePath));
6035
6233
  }
6036
6234
  }
6037
6235
  /**
@@ -6809,18 +7007,146 @@ export class AutomatedRefundManagementApi extends BaseAPI {
6809
7007
  */
6810
7008
  export const BillingDashboardApiAxiosParamCreator = function (configuration) {
6811
7009
  return {
7010
+ /**
7011
+ * Returns all billing alerts configured for the organization
7012
+ * @summary Get billing alerts
7013
+ * @param {*} [options] Override http request option.
7014
+ * @throws {RequiredError}
7015
+ */
7016
+ adminBillingAlertsGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
7017
+ const localVarPath = `/admin/billing/alerts`;
7018
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7019
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7020
+ let baseOptions;
7021
+ if (configuration) {
7022
+ baseOptions = configuration.baseOptions;
7023
+ }
7024
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7025
+ const localVarHeaderParameter = {};
7026
+ const localVarQueryParameter = {};
7027
+ // authentication BearerAuth required
7028
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
7029
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7030
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7031
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7032
+ return {
7033
+ url: toPathString(localVarUrlObj),
7034
+ options: localVarRequestOptions,
7035
+ };
7036
+ }),
7037
+ /**
7038
+ * Deletes a billing alert configuration
7039
+ * @summary Delete billing alert
7040
+ * @param {number} id Alert ID
7041
+ * @param {*} [options] Override http request option.
7042
+ * @throws {RequiredError}
7043
+ */
7044
+ adminBillingAlertsIdDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
7045
+ // verify required parameter 'id' is not null or undefined
7046
+ assertParamExists('adminBillingAlertsIdDelete', 'id', id);
7047
+ const localVarPath = `/admin/billing/alerts/{id}`
7048
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
7049
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7050
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7051
+ let baseOptions;
7052
+ if (configuration) {
7053
+ baseOptions = configuration.baseOptions;
7054
+ }
7055
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
7056
+ const localVarHeaderParameter = {};
7057
+ const localVarQueryParameter = {};
7058
+ // authentication BearerAuth required
7059
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
7060
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7061
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7062
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7063
+ return {
7064
+ url: toPathString(localVarUrlObj),
7065
+ options: localVarRequestOptions,
7066
+ };
7067
+ }),
7068
+ /**
7069
+ * Updates an existing billing alert configuration
7070
+ * @summary Update billing alert
7071
+ * @param {number} id Alert ID
7072
+ * @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Updated alert configuration
7073
+ * @param {*} [options] Override http request option.
7074
+ * @throws {RequiredError}
7075
+ */
7076
+ adminBillingAlertsIdPut: (id_1, dataTypesBillingAlertRequest_1, ...args_1) => __awaiter(this, [id_1, dataTypesBillingAlertRequest_1, ...args_1], void 0, function* (id, dataTypesBillingAlertRequest, options = {}) {
7077
+ // verify required parameter 'id' is not null or undefined
7078
+ assertParamExists('adminBillingAlertsIdPut', 'id', id);
7079
+ // verify required parameter 'dataTypesBillingAlertRequest' is not null or undefined
7080
+ assertParamExists('adminBillingAlertsIdPut', 'dataTypesBillingAlertRequest', dataTypesBillingAlertRequest);
7081
+ const localVarPath = `/admin/billing/alerts/{id}`
7082
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
7083
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7084
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7085
+ let baseOptions;
7086
+ if (configuration) {
7087
+ baseOptions = configuration.baseOptions;
7088
+ }
7089
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
7090
+ const localVarHeaderParameter = {};
7091
+ const localVarQueryParameter = {};
7092
+ // authentication BearerAuth required
7093
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
7094
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7095
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7096
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7097
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7098
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesBillingAlertRequest, localVarRequestOptions, configuration);
7099
+ return {
7100
+ url: toPathString(localVarUrlObj),
7101
+ options: localVarRequestOptions,
7102
+ };
7103
+ }),
7104
+ /**
7105
+ * Creates a new billing alert configuration for the organization
7106
+ * @summary Create billing alert
7107
+ * @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Alert configuration
7108
+ * @param {*} [options] Override http request option.
7109
+ * @throws {RequiredError}
7110
+ */
7111
+ adminBillingAlertsPost: (dataTypesBillingAlertRequest_1, ...args_1) => __awaiter(this, [dataTypesBillingAlertRequest_1, ...args_1], void 0, function* (dataTypesBillingAlertRequest, options = {}) {
7112
+ // verify required parameter 'dataTypesBillingAlertRequest' is not null or undefined
7113
+ assertParamExists('adminBillingAlertsPost', 'dataTypesBillingAlertRequest', dataTypesBillingAlertRequest);
7114
+ const localVarPath = `/admin/billing/alerts`;
7115
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7116
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7117
+ let baseOptions;
7118
+ if (configuration) {
7119
+ baseOptions = configuration.baseOptions;
7120
+ }
7121
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7122
+ const localVarHeaderParameter = {};
7123
+ const localVarQueryParameter = {};
7124
+ // authentication BearerAuth required
7125
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
7126
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7127
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7128
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7129
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7130
+ localVarRequestOptions.data = serializeDataIfNeeded(dataTypesBillingAlertRequest, localVarRequestOptions, configuration);
7131
+ return {
7132
+ url: toPathString(localVarUrlObj),
7133
+ options: localVarRequestOptions,
7134
+ };
7135
+ }),
6812
7136
  /**
6813
7137
  * Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
6814
7138
  * @summary Get credit consumption
6815
7139
  * @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} [limit] Number of results per page (default: 50, max: 100)
6819
- * @param {number} [offset] Number of results to skip (default: 0)
7140
+ * @param {string} [startDate] Start date (YYYY-MM-DD format, defaults to 7 days ago)
7141
+ * @param {string} [endDate] End date (YYYY-MM-DD format, defaults to now)
7142
+ * @param {number} [page] Page number (default: 1)
7143
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100)
7144
+ * @param {number} [limit] Alternative: Number of results (default: 20, max: 100)
7145
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
6820
7146
  * @param {*} [options] Override http request option.
6821
7147
  * @throws {RequiredError}
6822
7148
  */
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 = {}) {
7149
+ 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
7150
  const localVarPath = `/admin/billing/credit-consumption`;
6825
7151
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6826
7152
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -6842,6 +7168,12 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
6842
7168
  if (endDate !== undefined) {
6843
7169
  localVarQueryParameter['end_date'] = endDate;
6844
7170
  }
7171
+ if (page !== undefined) {
7172
+ localVarQueryParameter['page'] = page;
7173
+ }
7174
+ if (pageSize !== undefined) {
7175
+ localVarQueryParameter['page_size'] = pageSize;
7176
+ }
6845
7177
  if (limit !== undefined) {
6846
7178
  localVarQueryParameter['limit'] = limit;
6847
7179
  }
@@ -7044,6 +7376,33 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
7044
7376
  options: localVarRequestOptions,
7045
7377
  };
7046
7378
  }),
7379
+ /**
7380
+ * Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
7381
+ * @summary Get org admin billing overview
7382
+ * @param {*} [options] Override http request option.
7383
+ * @throws {RequiredError}
7384
+ */
7385
+ adminBillingOrgOverviewGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
7386
+ const localVarPath = `/admin/billing/org-overview`;
7387
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7388
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7389
+ let baseOptions;
7390
+ if (configuration) {
7391
+ baseOptions = configuration.baseOptions;
7392
+ }
7393
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7394
+ const localVarHeaderParameter = {};
7395
+ const localVarQueryParameter = {};
7396
+ // authentication BearerAuth required
7397
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
7398
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7399
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7400
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7401
+ return {
7402
+ url: toPathString(localVarUrlObj),
7403
+ options: localVarRequestOptions,
7404
+ };
7405
+ }),
7047
7406
  /**
7048
7407
  * Retrieves billing summary for all organizations with filtering options
7049
7408
  * @summary Get organization billing summary
@@ -7177,6 +7536,33 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
7177
7536
  options: localVarRequestOptions,
7178
7537
  };
7179
7538
  }),
7539
+ /**
7540
+ * Returns saved payment cards from Razorpay for the organization
7541
+ * @summary Get saved payment cards
7542
+ * @param {*} [options] Override http request option.
7543
+ * @throws {RequiredError}
7544
+ */
7545
+ adminBillingSavedCardsGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
7546
+ const localVarPath = `/admin/billing/saved-cards`;
7547
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7548
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7549
+ let baseOptions;
7550
+ if (configuration) {
7551
+ baseOptions = configuration.baseOptions;
7552
+ }
7553
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7554
+ const localVarHeaderParameter = {};
7555
+ const localVarQueryParameter = {};
7556
+ // authentication BearerAuth required
7557
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
7558
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7559
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7560
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7561
+ return {
7562
+ url: toPathString(localVarUrlObj),
7563
+ options: localVarRequestOptions,
7564
+ };
7565
+ }),
7180
7566
  };
7181
7567
  };
7182
7568
  /**
@@ -7186,21 +7572,87 @@ export const BillingDashboardApiAxiosParamCreator = function (configuration) {
7186
7572
  export const BillingDashboardApiFp = function (configuration) {
7187
7573
  const localVarAxiosParamCreator = BillingDashboardApiAxiosParamCreator(configuration);
7188
7574
  return {
7575
+ /**
7576
+ * Returns all billing alerts configured for the organization
7577
+ * @summary Get billing alerts
7578
+ * @param {*} [options] Override http request option.
7579
+ * @throws {RequiredError}
7580
+ */
7581
+ adminBillingAlertsGet(options) {
7582
+ return __awaiter(this, void 0, void 0, function* () {
7583
+ var _a, _b, _c;
7584
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertsGet(options);
7585
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7586
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingAlertsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7587
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7588
+ });
7589
+ },
7590
+ /**
7591
+ * Deletes a billing alert configuration
7592
+ * @summary Delete billing alert
7593
+ * @param {number} id Alert ID
7594
+ * @param {*} [options] Override http request option.
7595
+ * @throws {RequiredError}
7596
+ */
7597
+ adminBillingAlertsIdDelete(id, options) {
7598
+ return __awaiter(this, void 0, void 0, function* () {
7599
+ var _a, _b, _c;
7600
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertsIdDelete(id, options);
7601
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7602
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingAlertsIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7603
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7604
+ });
7605
+ },
7606
+ /**
7607
+ * Updates an existing billing alert configuration
7608
+ * @summary Update billing alert
7609
+ * @param {number} id Alert ID
7610
+ * @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Updated alert configuration
7611
+ * @param {*} [options] Override http request option.
7612
+ * @throws {RequiredError}
7613
+ */
7614
+ adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options) {
7615
+ return __awaiter(this, void 0, void 0, function* () {
7616
+ var _a, _b, _c;
7617
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options);
7618
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7619
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingAlertsIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7620
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7621
+ });
7622
+ },
7623
+ /**
7624
+ * Creates a new billing alert configuration for the organization
7625
+ * @summary Create billing alert
7626
+ * @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Alert configuration
7627
+ * @param {*} [options] Override http request option.
7628
+ * @throws {RequiredError}
7629
+ */
7630
+ adminBillingAlertsPost(dataTypesBillingAlertRequest, options) {
7631
+ return __awaiter(this, void 0, void 0, function* () {
7632
+ var _a, _b, _c;
7633
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingAlertsPost(dataTypesBillingAlertRequest, options);
7634
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7635
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingAlertsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7636
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7637
+ });
7638
+ },
7189
7639
  /**
7190
7640
  * Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
7191
7641
  * @summary Get credit consumption
7192
7642
  * @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} [limit] Number of results per page (default: 50, max: 100)
7196
- * @param {number} [offset] Number of results to skip (default: 0)
7643
+ * @param {string} [startDate] Start date (YYYY-MM-DD format, defaults to 7 days ago)
7644
+ * @param {string} [endDate] End date (YYYY-MM-DD format, defaults to now)
7645
+ * @param {number} [page] Page number (default: 1)
7646
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100)
7647
+ * @param {number} [limit] Alternative: Number of results (default: 20, max: 100)
7648
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
7197
7649
  * @param {*} [options] Override http request option.
7198
7650
  * @throws {RequiredError}
7199
7651
  */
7200
- adminBillingCreditConsumptionGet(orgId, startDate, endDate, limit, offset, options) {
7652
+ adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options) {
7201
7653
  return __awaiter(this, void 0, void 0, function* () {
7202
7654
  var _a, _b, _c;
7203
- const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditConsumptionGet(orgId, startDate, endDate, limit, offset, options);
7655
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options);
7204
7656
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7205
7657
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingCreditConsumptionGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7206
7658
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -7286,6 +7738,21 @@ export const BillingDashboardApiFp = function (configuration) {
7286
7738
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7287
7739
  });
7288
7740
  },
7741
+ /**
7742
+ * Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
7743
+ * @summary Get org admin billing overview
7744
+ * @param {*} [options] Override http request option.
7745
+ * @throws {RequiredError}
7746
+ */
7747
+ adminBillingOrgOverviewGet(options) {
7748
+ return __awaiter(this, void 0, void 0, function* () {
7749
+ var _a, _b, _c;
7750
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingOrgOverviewGet(options);
7751
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7752
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingOrgOverviewGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7753
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7754
+ });
7755
+ },
7289
7756
  /**
7290
7757
  * Retrieves billing summary for all organizations with filtering options
7291
7758
  * @summary Get organization billing summary
@@ -7344,6 +7811,21 @@ export const BillingDashboardApiFp = function (configuration) {
7344
7811
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7345
7812
  });
7346
7813
  },
7814
+ /**
7815
+ * Returns saved payment cards from Razorpay for the organization
7816
+ * @summary Get saved payment cards
7817
+ * @param {*} [options] Override http request option.
7818
+ * @throws {RequiredError}
7819
+ */
7820
+ adminBillingSavedCardsGet(options) {
7821
+ return __awaiter(this, void 0, void 0, function* () {
7822
+ var _a, _b, _c;
7823
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminBillingSavedCardsGet(options);
7824
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7825
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BillingDashboardApi.adminBillingSavedCardsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7826
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7827
+ });
7828
+ },
7347
7829
  };
7348
7830
  };
7349
7831
  /**
@@ -7353,19 +7835,61 @@ export const BillingDashboardApiFp = function (configuration) {
7353
7835
  export const BillingDashboardApiFactory = function (configuration, basePath, axios) {
7354
7836
  const localVarFp = BillingDashboardApiFp(configuration);
7355
7837
  return {
7838
+ /**
7839
+ * Returns all billing alerts configured for the organization
7840
+ * @summary Get billing alerts
7841
+ * @param {*} [options] Override http request option.
7842
+ * @throws {RequiredError}
7843
+ */
7844
+ adminBillingAlertsGet(options) {
7845
+ return localVarFp.adminBillingAlertsGet(options).then((request) => request(axios, basePath));
7846
+ },
7847
+ /**
7848
+ * Deletes a billing alert configuration
7849
+ * @summary Delete billing alert
7850
+ * @param {number} id Alert ID
7851
+ * @param {*} [options] Override http request option.
7852
+ * @throws {RequiredError}
7853
+ */
7854
+ adminBillingAlertsIdDelete(id, options) {
7855
+ return localVarFp.adminBillingAlertsIdDelete(id, options).then((request) => request(axios, basePath));
7856
+ },
7857
+ /**
7858
+ * Updates an existing billing alert configuration
7859
+ * @summary Update billing alert
7860
+ * @param {number} id Alert ID
7861
+ * @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Updated alert configuration
7862
+ * @param {*} [options] Override http request option.
7863
+ * @throws {RequiredError}
7864
+ */
7865
+ adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options) {
7866
+ return localVarFp.adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options).then((request) => request(axios, basePath));
7867
+ },
7868
+ /**
7869
+ * Creates a new billing alert configuration for the organization
7870
+ * @summary Create billing alert
7871
+ * @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Alert configuration
7872
+ * @param {*} [options] Override http request option.
7873
+ * @throws {RequiredError}
7874
+ */
7875
+ adminBillingAlertsPost(dataTypesBillingAlertRequest, options) {
7876
+ return localVarFp.adminBillingAlertsPost(dataTypesBillingAlertRequest, options).then((request) => request(axios, basePath));
7877
+ },
7356
7878
  /**
7357
7879
  * Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
7358
7880
  * @summary Get credit consumption
7359
7881
  * @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} [limit] Number of results per page (default: 50, max: 100)
7363
- * @param {number} [offset] Number of results to skip (default: 0)
7882
+ * @param {string} [startDate] Start date (YYYY-MM-DD format, defaults to 7 days ago)
7883
+ * @param {string} [endDate] End date (YYYY-MM-DD format, defaults to now)
7884
+ * @param {number} [page] Page number (default: 1)
7885
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100)
7886
+ * @param {number} [limit] Alternative: Number of results (default: 20, max: 100)
7887
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
7364
7888
  * @param {*} [options] Override http request option.
7365
7889
  * @throws {RequiredError}
7366
7890
  */
7367
- adminBillingCreditConsumptionGet(orgId, startDate, endDate, limit, offset, options) {
7368
- return localVarFp.adminBillingCreditConsumptionGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
7891
+ adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options) {
7892
+ return localVarFp.adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options).then((request) => request(axios, basePath));
7369
7893
  },
7370
7894
  /**
7371
7895
  * Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
@@ -7423,6 +7947,15 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
7423
7947
  adminBillingOrdersGet(orgId, startDate, endDate, limit, offset, options) {
7424
7948
  return localVarFp.adminBillingOrdersGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
7425
7949
  },
7950
+ /**
7951
+ * Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
7952
+ * @summary Get org admin billing overview
7953
+ * @param {*} [options] Override http request option.
7954
+ * @throws {RequiredError}
7955
+ */
7956
+ adminBillingOrgOverviewGet(options) {
7957
+ return localVarFp.adminBillingOrgOverviewGet(options).then((request) => request(axios, basePath));
7958
+ },
7426
7959
  /**
7427
7960
  * Retrieves billing summary for all organizations with filtering options
7428
7961
  * @summary Get organization billing summary
@@ -7463,6 +7996,15 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
7463
7996
  adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
7464
7997
  return localVarFp.adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(axios, basePath));
7465
7998
  },
7999
+ /**
8000
+ * Returns saved payment cards from Razorpay for the organization
8001
+ * @summary Get saved payment cards
8002
+ * @param {*} [options] Override http request option.
8003
+ * @throws {RequiredError}
8004
+ */
8005
+ adminBillingSavedCardsGet(options) {
8006
+ return localVarFp.adminBillingSavedCardsGet(options).then((request) => request(axios, basePath));
8007
+ },
7466
8008
  };
7467
8009
  };
7468
8010
  /**
@@ -7472,20 +8014,66 @@ export const BillingDashboardApiFactory = function (configuration, basePath, axi
7472
8014
  * @extends {BaseAPI}
7473
8015
  */
7474
8016
  export class BillingDashboardApi extends BaseAPI {
8017
+ /**
8018
+ * Returns all billing alerts configured for the organization
8019
+ * @summary Get billing alerts
8020
+ * @param {*} [options] Override http request option.
8021
+ * @throws {RequiredError}
8022
+ * @memberof BillingDashboardApi
8023
+ */
8024
+ adminBillingAlertsGet(options) {
8025
+ return BillingDashboardApiFp(this.configuration).adminBillingAlertsGet(options).then((request) => request(this.axios, this.basePath));
8026
+ }
8027
+ /**
8028
+ * Deletes a billing alert configuration
8029
+ * @summary Delete billing alert
8030
+ * @param {number} id Alert ID
8031
+ * @param {*} [options] Override http request option.
8032
+ * @throws {RequiredError}
8033
+ * @memberof BillingDashboardApi
8034
+ */
8035
+ adminBillingAlertsIdDelete(id, options) {
8036
+ return BillingDashboardApiFp(this.configuration).adminBillingAlertsIdDelete(id, options).then((request) => request(this.axios, this.basePath));
8037
+ }
8038
+ /**
8039
+ * Updates an existing billing alert configuration
8040
+ * @summary Update billing alert
8041
+ * @param {number} id Alert ID
8042
+ * @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Updated alert configuration
8043
+ * @param {*} [options] Override http request option.
8044
+ * @throws {RequiredError}
8045
+ * @memberof BillingDashboardApi
8046
+ */
8047
+ adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options) {
8048
+ return BillingDashboardApiFp(this.configuration).adminBillingAlertsIdPut(id, dataTypesBillingAlertRequest, options).then((request) => request(this.axios, this.basePath));
8049
+ }
8050
+ /**
8051
+ * Creates a new billing alert configuration for the organization
8052
+ * @summary Create billing alert
8053
+ * @param {DataTypesBillingAlertRequest} dataTypesBillingAlertRequest Alert configuration
8054
+ * @param {*} [options] Override http request option.
8055
+ * @throws {RequiredError}
8056
+ * @memberof BillingDashboardApi
8057
+ */
8058
+ adminBillingAlertsPost(dataTypesBillingAlertRequest, options) {
8059
+ return BillingDashboardApiFp(this.configuration).adminBillingAlertsPost(dataTypesBillingAlertRequest, options).then((request) => request(this.axios, this.basePath));
8060
+ }
7475
8061
  /**
7476
8062
  * Retrieves paginated list of credit consumption records with filtering options for the authenticated user\'s organization
7477
8063
  * @summary Get credit consumption
7478
8064
  * @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} [limit] Number of results per page (default: 50, max: 100)
7482
- * @param {number} [offset] Number of results to skip (default: 0)
8065
+ * @param {string} [startDate] Start date (YYYY-MM-DD format, defaults to 7 days ago)
8066
+ * @param {string} [endDate] End date (YYYY-MM-DD format, defaults to now)
8067
+ * @param {number} [page] Page number (default: 1)
8068
+ * @param {number} [pageSize] Number of results per page (default: 20, max: 100)
8069
+ * @param {number} [limit] Alternative: Number of results (default: 20, max: 100)
8070
+ * @param {number} [offset] Alternative: Number of results to skip (default: 0)
7483
8071
  * @param {*} [options] Override http request option.
7484
8072
  * @throws {RequiredError}
7485
8073
  * @memberof BillingDashboardApi
7486
8074
  */
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));
8075
+ adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options) {
8076
+ return BillingDashboardApiFp(this.configuration).adminBillingCreditConsumptionGet(orgId, startDate, endDate, page, pageSize, limit, offset, options).then((request) => request(this.axios, this.basePath));
7489
8077
  }
7490
8078
  /**
7491
8079
  * Retrieves paginated list of credit ledger entries with filtering options for the authenticated user\'s organization
@@ -7547,6 +8135,16 @@ export class BillingDashboardApi extends BaseAPI {
7547
8135
  adminBillingOrdersGet(orgId, startDate, endDate, limit, offset, options) {
7548
8136
  return BillingDashboardApiFp(this.configuration).adminBillingOrdersGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
7549
8137
  }
8138
+ /**
8139
+ * Returns comprehensive billing overview including plan, next charge, balance, and projected runout for org admins
8140
+ * @summary Get org admin billing overview
8141
+ * @param {*} [options] Override http request option.
8142
+ * @throws {RequiredError}
8143
+ * @memberof BillingDashboardApi
8144
+ */
8145
+ adminBillingOrgOverviewGet(options) {
8146
+ return BillingDashboardApiFp(this.configuration).adminBillingOrgOverviewGet(options).then((request) => request(this.axios, this.basePath));
8147
+ }
7550
8148
  /**
7551
8149
  * Retrieves billing summary for all organizations with filtering options
7552
8150
  * @summary Get organization billing summary
@@ -7590,6 +8188,16 @@ export class BillingDashboardApi extends BaseAPI {
7590
8188
  adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options) {
7591
8189
  return BillingDashboardApiFp(this.configuration).adminBillingPaymentTransactionsGet(orgId, startDate, endDate, limit, offset, options).then((request) => request(this.axios, this.basePath));
7592
8190
  }
8191
+ /**
8192
+ * Returns saved payment cards from Razorpay for the organization
8193
+ * @summary Get saved payment cards
8194
+ * @param {*} [options] Override http request option.
8195
+ * @throws {RequiredError}
8196
+ * @memberof BillingDashboardApi
8197
+ */
8198
+ adminBillingSavedCardsGet(options) {
8199
+ return BillingDashboardApiFp(this.configuration).adminBillingSavedCardsGet(options).then((request) => request(this.axios, this.basePath));
8200
+ }
7593
8201
  }
7594
8202
  /**
7595
8203
  * CommonApi - axios parameter creator