@seekora-ai/admin-api 1.1.39 → 1.1.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/api.ts +232 -17
- package/dist/api.d.ts +142 -14
- package/dist/api.js +209 -18
- package/dist/esm/api.d.ts +142 -14
- package/dist/esm/api.js +202 -11
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.41.tgz +0 -0
- package/seekora-ai-admin-api-1.1.39.tgz +0 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @seekora-ai/admin-api@1.1.
|
|
1
|
+
## @seekora-ai/admin-api@1.1.41
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @seekora-ai/admin-api@1.1.
|
|
39
|
+
npm install @seekora-ai/admin-api@1.1.41 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -111,6 +111,7 @@ Class | Method | HTTP request | Description
|
|
|
111
111
|
*AnalyticsEventsApi* | [**analyticsValidatePost**](docs/AnalyticsEventsApi.md#analyticsvalidatepost) | **POST** /analytics/validate | Validate Analytics Event
|
|
112
112
|
*AnalyticsRulesApi* | [**adminV1AnalyticsRulesGet**](docs/AnalyticsRulesApi.md#adminv1analyticsrulesget) | **GET** /admin/v1/analytics/rules | List Analytics Rules
|
|
113
113
|
*AnalyticsRulesApi* | [**adminV1AnalyticsRulesPost**](docs/AnalyticsRulesApi.md#adminv1analyticsrulespost) | **POST** /admin/v1/analytics/rules | Create Analytics Rule
|
|
114
|
+
*AnalyticsRulesApi* | [**adminV1AnalyticsRulesRuleIdDelete**](docs/AnalyticsRulesApi.md#adminv1analyticsrulesruleiddelete) | **DELETE** /admin/v1/analytics/rules/{ruleId} | Delete Analytics Rule
|
|
114
115
|
*AnalyticsRulesApi* | [**adminV1AnalyticsRulesRuleIdGet**](docs/AnalyticsRulesApi.md#adminv1analyticsrulesruleidget) | **GET** /admin/v1/analytics/rules/{ruleId} | Get Analytics Rule
|
|
115
116
|
*AnalyticsRulesApi* | [**adminV1AnalyticsRulesRuleIdPut**](docs/AnalyticsRulesApi.md#adminv1analyticsrulesruleidput) | **PUT** /admin/v1/analytics/rules/{ruleId} | Update Analytics Rule
|
|
116
117
|
*AnalyticsRulesApi* | [**adminV1AnalyticsRulesSyncPost**](docs/AnalyticsRulesApi.md#adminv1analyticsrulessyncpost) | **POST** /admin/v1/analytics/rules/sync | Sync Rules to Typesense
|
|
@@ -118,6 +119,7 @@ Class | Method | HTTP request | Description
|
|
|
118
119
|
*AnalyticsRulesApi* | [**adminV1StoresXStoreIDAnalyticsRulesSearchItemsPost**](docs/AnalyticsRulesApi.md#adminv1storesxstoreidanalyticsrulessearchitemspost) | **POST** /admin/v1/stores/{xStoreID}/analytics/rules/search-items | Search Items for Rule Management
|
|
119
120
|
*AnalyticsRulesApi* | [**adminV1StoresXstoreidAnalyticsRulesGet**](docs/AnalyticsRulesApi.md#adminv1storesxstoreidanalyticsrulesget) | **GET** /admin/v1/stores/{xstoreid}/analytics/rules | List Analytics Rules
|
|
120
121
|
*AnalyticsRulesApi* | [**adminV1StoresXstoreidAnalyticsRulesPost**](docs/AnalyticsRulesApi.md#adminv1storesxstoreidanalyticsrulespost) | **POST** /admin/v1/stores/{xstoreid}/analytics/rules | Create Analytics Rule
|
|
122
|
+
*AnalyticsRulesApi* | [**adminV1StoresXstoreidAnalyticsRulesRuleIdDelete**](docs/AnalyticsRulesApi.md#adminv1storesxstoreidanalyticsrulesruleiddelete) | **DELETE** /admin/v1/stores/{xstoreid}/analytics/rules/{ruleId} | Delete Analytics Rule
|
|
121
123
|
*AnalyticsRulesApi* | [**adminV1StoresXstoreidAnalyticsRulesRuleIdGet**](docs/AnalyticsRulesApi.md#adminv1storesxstoreidanalyticsrulesruleidget) | **GET** /admin/v1/stores/{xstoreid}/analytics/rules/{ruleId} | Get Analytics Rule
|
|
122
124
|
*AnalyticsRulesApi* | [**adminV1StoresXstoreidAnalyticsRulesRuleIdPut**](docs/AnalyticsRulesApi.md#adminv1storesxstoreidanalyticsrulesruleidput) | **PUT** /admin/v1/stores/{xstoreid}/analytics/rules/{ruleId} | Update Analytics Rule
|
|
123
125
|
*AnalyticsRulesApi* | [**adminV1StoresXstoreidAnalyticsRulesSyncPost**](docs/AnalyticsRulesApi.md#adminv1storesxstoreidanalyticsrulessyncpost) | **POST** /admin/v1/stores/{xstoreid}/analytics/rules/sync | Sync Rules to Typesense
|
package/api.ts
CHANGED
|
@@ -1438,16 +1438,22 @@ export interface AnalyticsActivityLogEvent {
|
|
|
1438
1438
|
'action_type'?: string;
|
|
1439
1439
|
/**
|
|
1440
1440
|
*
|
|
1441
|
-
* @type {string}
|
|
1441
|
+
* @type {Array<string>}
|
|
1442
1442
|
* @memberof AnalyticsActivityLogEvent
|
|
1443
1443
|
*/
|
|
1444
|
-
'changed_fields'?: string
|
|
1444
|
+
'changed_fields'?: Array<string>;
|
|
1445
1445
|
/**
|
|
1446
1446
|
*
|
|
1447
1447
|
* @type {string}
|
|
1448
1448
|
* @memberof AnalyticsActivityLogEvent
|
|
1449
1449
|
*/
|
|
1450
1450
|
'description'?: string;
|
|
1451
|
+
/**
|
|
1452
|
+
*
|
|
1453
|
+
* @type {string}
|
|
1454
|
+
* @memberof AnalyticsActivityLogEvent
|
|
1455
|
+
*/
|
|
1456
|
+
'email'?: string;
|
|
1451
1457
|
/**
|
|
1452
1458
|
*
|
|
1453
1459
|
* @type {string}
|
|
@@ -1474,16 +1480,16 @@ export interface AnalyticsActivityLogEvent {
|
|
|
1474
1480
|
'resource_type'?: string;
|
|
1475
1481
|
/**
|
|
1476
1482
|
*
|
|
1477
|
-
* @type {string}
|
|
1483
|
+
* @type {{ [key: string]: any; }}
|
|
1478
1484
|
* @memberof AnalyticsActivityLogEvent
|
|
1479
1485
|
*/
|
|
1480
|
-
'state_after'?: string;
|
|
1486
|
+
'state_after'?: { [key: string]: any; };
|
|
1481
1487
|
/**
|
|
1482
1488
|
*
|
|
1483
|
-
* @type {string}
|
|
1489
|
+
* @type {{ [key: string]: any; }}
|
|
1484
1490
|
* @memberof AnalyticsActivityLogEvent
|
|
1485
1491
|
*/
|
|
1486
|
-
'state_before'?: string;
|
|
1492
|
+
'state_before'?: { [key: string]: any; };
|
|
1487
1493
|
/**
|
|
1488
1494
|
*
|
|
1489
1495
|
* @type {string}
|
|
@@ -1496,6 +1502,12 @@ export interface AnalyticsActivityLogEvent {
|
|
|
1496
1502
|
* @memberof AnalyticsActivityLogEvent
|
|
1497
1503
|
*/
|
|
1498
1504
|
'user_agent'?: string;
|
|
1505
|
+
/**
|
|
1506
|
+
* NEW: User identity extracted from event payload
|
|
1507
|
+
* @type {string}
|
|
1508
|
+
* @memberof AnalyticsActivityLogEvent
|
|
1509
|
+
*/
|
|
1510
|
+
'username'?: string;
|
|
1499
1511
|
}
|
|
1500
1512
|
/**
|
|
1501
1513
|
*
|
|
@@ -26685,16 +26697,19 @@ export class AccountSettingsApi extends BaseAPI {
|
|
|
26685
26697
|
export const ActivityLogsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
26686
26698
|
return {
|
|
26687
26699
|
/**
|
|
26688
|
-
* Retrieve user activity logs from ClickHouse system_events table with filtering and pagination.
|
|
26700
|
+
* Retrieve user activity logs from ClickHouse system_events table with full filtering, search, and pagination.
|
|
26689
26701
|
* @summary Get Activity Logs
|
|
26690
26702
|
* @param {string} [startDate] Start date (ISO 8601 format)
|
|
26691
26703
|
* @param {string} [endDate] End date (ISO 8601 format)
|
|
26704
|
+
* @param {string} [search] Search text (matches description, username, email, resource_type, resource_id)
|
|
26705
|
+
* @param {AnalyticsActivityLogsGetActionEnum} [action] Action filter
|
|
26706
|
+
* @param {string} [entity] Entity type filter
|
|
26692
26707
|
* @param {number} [page] Page number (default: 1)
|
|
26693
26708
|
* @param {number} [perPage] Results per page (default: 50, max: 1000)
|
|
26694
26709
|
* @param {*} [options] Override http request option.
|
|
26695
26710
|
* @throws {RequiredError}
|
|
26696
26711
|
*/
|
|
26697
|
-
analyticsActivityLogsGet: async (startDate?: string, endDate?: string, page?: number, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26712
|
+
analyticsActivityLogsGet: async (startDate?: string, endDate?: string, search?: string, action?: AnalyticsActivityLogsGetActionEnum, entity?: string, page?: number, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26698
26713
|
const localVarPath = `/analytics/activity-logs`;
|
|
26699
26714
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26700
26715
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -26718,6 +26733,18 @@ export const ActivityLogsApiAxiosParamCreator = function (configuration?: Config
|
|
|
26718
26733
|
localVarQueryParameter['end_date'] = endDate;
|
|
26719
26734
|
}
|
|
26720
26735
|
|
|
26736
|
+
if (search !== undefined) {
|
|
26737
|
+
localVarQueryParameter['search'] = search;
|
|
26738
|
+
}
|
|
26739
|
+
|
|
26740
|
+
if (action !== undefined) {
|
|
26741
|
+
localVarQueryParameter['action'] = action;
|
|
26742
|
+
}
|
|
26743
|
+
|
|
26744
|
+
if (entity !== undefined) {
|
|
26745
|
+
localVarQueryParameter['entity'] = entity;
|
|
26746
|
+
}
|
|
26747
|
+
|
|
26721
26748
|
if (page !== undefined) {
|
|
26722
26749
|
localVarQueryParameter['page'] = page;
|
|
26723
26750
|
}
|
|
@@ -26748,17 +26775,20 @@ export const ActivityLogsApiFp = function(configuration?: Configuration) {
|
|
|
26748
26775
|
const localVarAxiosParamCreator = ActivityLogsApiAxiosParamCreator(configuration)
|
|
26749
26776
|
return {
|
|
26750
26777
|
/**
|
|
26751
|
-
* Retrieve user activity logs from ClickHouse system_events table with filtering and pagination.
|
|
26778
|
+
* Retrieve user activity logs from ClickHouse system_events table with full filtering, search, and pagination.
|
|
26752
26779
|
* @summary Get Activity Logs
|
|
26753
26780
|
* @param {string} [startDate] Start date (ISO 8601 format)
|
|
26754
26781
|
* @param {string} [endDate] End date (ISO 8601 format)
|
|
26782
|
+
* @param {string} [search] Search text (matches description, username, email, resource_type, resource_id)
|
|
26783
|
+
* @param {AnalyticsActivityLogsGetActionEnum} [action] Action filter
|
|
26784
|
+
* @param {string} [entity] Entity type filter
|
|
26755
26785
|
* @param {number} [page] Page number (default: 1)
|
|
26756
26786
|
* @param {number} [perPage] Results per page (default: 50, max: 1000)
|
|
26757
26787
|
* @param {*} [options] Override http request option.
|
|
26758
26788
|
* @throws {RequiredError}
|
|
26759
26789
|
*/
|
|
26760
|
-
async analyticsActivityLogsGet(startDate?: string, endDate?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnalyticsActivityLogResponse>> {
|
|
26761
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.analyticsActivityLogsGet(startDate, endDate, page, perPage, options);
|
|
26790
|
+
async analyticsActivityLogsGet(startDate?: string, endDate?: string, search?: string, action?: AnalyticsActivityLogsGetActionEnum, entity?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnalyticsActivityLogResponse>> {
|
|
26791
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.analyticsActivityLogsGet(startDate, endDate, search, action, entity, page, perPage, options);
|
|
26762
26792
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26763
26793
|
const localVarOperationServerBasePath = operationServerMap['ActivityLogsApi.analyticsActivityLogsGet']?.[localVarOperationServerIndex]?.url;
|
|
26764
26794
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -26774,17 +26804,20 @@ export const ActivityLogsApiFactory = function (configuration?: Configuration, b
|
|
|
26774
26804
|
const localVarFp = ActivityLogsApiFp(configuration)
|
|
26775
26805
|
return {
|
|
26776
26806
|
/**
|
|
26777
|
-
* Retrieve user activity logs from ClickHouse system_events table with filtering and pagination.
|
|
26807
|
+
* Retrieve user activity logs from ClickHouse system_events table with full filtering, search, and pagination.
|
|
26778
26808
|
* @summary Get Activity Logs
|
|
26779
26809
|
* @param {string} [startDate] Start date (ISO 8601 format)
|
|
26780
26810
|
* @param {string} [endDate] End date (ISO 8601 format)
|
|
26811
|
+
* @param {string} [search] Search text (matches description, username, email, resource_type, resource_id)
|
|
26812
|
+
* @param {AnalyticsActivityLogsGetActionEnum} [action] Action filter
|
|
26813
|
+
* @param {string} [entity] Entity type filter
|
|
26781
26814
|
* @param {number} [page] Page number (default: 1)
|
|
26782
26815
|
* @param {number} [perPage] Results per page (default: 50, max: 1000)
|
|
26783
26816
|
* @param {*} [options] Override http request option.
|
|
26784
26817
|
* @throws {RequiredError}
|
|
26785
26818
|
*/
|
|
26786
|
-
analyticsActivityLogsGet(startDate?: string, endDate?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<AnalyticsActivityLogResponse> {
|
|
26787
|
-
return localVarFp.analyticsActivityLogsGet(startDate, endDate, page, perPage, options).then((request) => request(axios, basePath));
|
|
26819
|
+
analyticsActivityLogsGet(startDate?: string, endDate?: string, search?: string, action?: AnalyticsActivityLogsGetActionEnum, entity?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<AnalyticsActivityLogResponse> {
|
|
26820
|
+
return localVarFp.analyticsActivityLogsGet(startDate, endDate, search, action, entity, page, perPage, options).then((request) => request(axios, basePath));
|
|
26788
26821
|
},
|
|
26789
26822
|
};
|
|
26790
26823
|
};
|
|
@@ -26797,21 +26830,34 @@ export const ActivityLogsApiFactory = function (configuration?: Configuration, b
|
|
|
26797
26830
|
*/
|
|
26798
26831
|
export class ActivityLogsApi extends BaseAPI {
|
|
26799
26832
|
/**
|
|
26800
|
-
* Retrieve user activity logs from ClickHouse system_events table with filtering and pagination.
|
|
26833
|
+
* Retrieve user activity logs from ClickHouse system_events table with full filtering, search, and pagination.
|
|
26801
26834
|
* @summary Get Activity Logs
|
|
26802
26835
|
* @param {string} [startDate] Start date (ISO 8601 format)
|
|
26803
26836
|
* @param {string} [endDate] End date (ISO 8601 format)
|
|
26837
|
+
* @param {string} [search] Search text (matches description, username, email, resource_type, resource_id)
|
|
26838
|
+
* @param {AnalyticsActivityLogsGetActionEnum} [action] Action filter
|
|
26839
|
+
* @param {string} [entity] Entity type filter
|
|
26804
26840
|
* @param {number} [page] Page number (default: 1)
|
|
26805
26841
|
* @param {number} [perPage] Results per page (default: 50, max: 1000)
|
|
26806
26842
|
* @param {*} [options] Override http request option.
|
|
26807
26843
|
* @throws {RequiredError}
|
|
26808
26844
|
* @memberof ActivityLogsApi
|
|
26809
26845
|
*/
|
|
26810
|
-
public analyticsActivityLogsGet(startDate?: string, endDate?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) {
|
|
26811
|
-
return ActivityLogsApiFp(this.configuration).analyticsActivityLogsGet(startDate, endDate, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
26846
|
+
public analyticsActivityLogsGet(startDate?: string, endDate?: string, search?: string, action?: AnalyticsActivityLogsGetActionEnum, entity?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) {
|
|
26847
|
+
return ActivityLogsApiFp(this.configuration).analyticsActivityLogsGet(startDate, endDate, search, action, entity, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
26812
26848
|
}
|
|
26813
26849
|
}
|
|
26814
26850
|
|
|
26851
|
+
/**
|
|
26852
|
+
* @export
|
|
26853
|
+
*/
|
|
26854
|
+
export const AnalyticsActivityLogsGetActionEnum = {
|
|
26855
|
+
Create: 'create',
|
|
26856
|
+
Update: 'update',
|
|
26857
|
+
Delete: 'delete',
|
|
26858
|
+
Upload: 'upload'
|
|
26859
|
+
} as const;
|
|
26860
|
+
export type AnalyticsActivityLogsGetActionEnum = typeof AnalyticsActivityLogsGetActionEnum[keyof typeof AnalyticsActivityLogsGetActionEnum];
|
|
26815
26861
|
|
|
26816
26862
|
|
|
26817
26863
|
/**
|
|
@@ -32999,6 +33045,49 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
32999
33045
|
options: localVarRequestOptions,
|
|
33000
33046
|
};
|
|
33001
33047
|
},
|
|
33048
|
+
/**
|
|
33049
|
+
* Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
|
|
33050
|
+
* @summary Delete Analytics Rule
|
|
33051
|
+
* @param {string} authorization Bearer JWT token
|
|
33052
|
+
* @param {string} ruleId Rule ID
|
|
33053
|
+
* @param {*} [options] Override http request option.
|
|
33054
|
+
* @throws {RequiredError}
|
|
33055
|
+
*/
|
|
33056
|
+
adminV1AnalyticsRulesRuleIdDelete: async (authorization: string, ruleId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33057
|
+
// verify required parameter 'authorization' is not null or undefined
|
|
33058
|
+
assertParamExists('adminV1AnalyticsRulesRuleIdDelete', 'authorization', authorization)
|
|
33059
|
+
// verify required parameter 'ruleId' is not null or undefined
|
|
33060
|
+
assertParamExists('adminV1AnalyticsRulesRuleIdDelete', 'ruleId', ruleId)
|
|
33061
|
+
const localVarPath = `/admin/v1/analytics/rules/{ruleId}`
|
|
33062
|
+
.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
33063
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33064
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33065
|
+
let baseOptions;
|
|
33066
|
+
if (configuration) {
|
|
33067
|
+
baseOptions = configuration.baseOptions;
|
|
33068
|
+
}
|
|
33069
|
+
|
|
33070
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
33071
|
+
const localVarHeaderParameter = {} as any;
|
|
33072
|
+
const localVarQueryParameter = {} as any;
|
|
33073
|
+
|
|
33074
|
+
// authentication BearerAuth required
|
|
33075
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
33076
|
+
|
|
33077
|
+
|
|
33078
|
+
|
|
33079
|
+
if (authorization != null) {
|
|
33080
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
33081
|
+
}
|
|
33082
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33083
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33084
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33085
|
+
|
|
33086
|
+
return {
|
|
33087
|
+
url: toPathString(localVarUrlObj),
|
|
33088
|
+
options: localVarRequestOptions,
|
|
33089
|
+
};
|
|
33090
|
+
},
|
|
33002
33091
|
/**
|
|
33003
33092
|
* Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
|
|
33004
33093
|
* @summary Get Analytics Rule
|
|
@@ -33374,6 +33463,53 @@ export const AnalyticsRulesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
33374
33463
|
options: localVarRequestOptions,
|
|
33375
33464
|
};
|
|
33376
33465
|
},
|
|
33466
|
+
/**
|
|
33467
|
+
* Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
|
|
33468
|
+
* @summary Delete Analytics Rule
|
|
33469
|
+
* @param {string} authorization Bearer JWT token
|
|
33470
|
+
* @param {string} xstoreid Store ID (for store-specific routes)
|
|
33471
|
+
* @param {string} ruleId Rule ID
|
|
33472
|
+
* @param {*} [options] Override http request option.
|
|
33473
|
+
* @throws {RequiredError}
|
|
33474
|
+
*/
|
|
33475
|
+
adminV1StoresXstoreidAnalyticsRulesRuleIdDelete: async (authorization: string, xstoreid: string, ruleId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33476
|
+
// verify required parameter 'authorization' is not null or undefined
|
|
33477
|
+
assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdDelete', 'authorization', authorization)
|
|
33478
|
+
// verify required parameter 'xstoreid' is not null or undefined
|
|
33479
|
+
assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdDelete', 'xstoreid', xstoreid)
|
|
33480
|
+
// verify required parameter 'ruleId' is not null or undefined
|
|
33481
|
+
assertParamExists('adminV1StoresXstoreidAnalyticsRulesRuleIdDelete', 'ruleId', ruleId)
|
|
33482
|
+
const localVarPath = `/admin/v1/stores/{xstoreid}/analytics/rules/{ruleId}`
|
|
33483
|
+
.replace(`{${"xstoreid"}}`, encodeURIComponent(String(xstoreid)))
|
|
33484
|
+
.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
33485
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33486
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33487
|
+
let baseOptions;
|
|
33488
|
+
if (configuration) {
|
|
33489
|
+
baseOptions = configuration.baseOptions;
|
|
33490
|
+
}
|
|
33491
|
+
|
|
33492
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
33493
|
+
const localVarHeaderParameter = {} as any;
|
|
33494
|
+
const localVarQueryParameter = {} as any;
|
|
33495
|
+
|
|
33496
|
+
// authentication BearerAuth required
|
|
33497
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
33498
|
+
|
|
33499
|
+
|
|
33500
|
+
|
|
33501
|
+
if (authorization != null) {
|
|
33502
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
33503
|
+
}
|
|
33504
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33505
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33506
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33507
|
+
|
|
33508
|
+
return {
|
|
33509
|
+
url: toPathString(localVarUrlObj),
|
|
33510
|
+
options: localVarRequestOptions,
|
|
33511
|
+
};
|
|
33512
|
+
},
|
|
33377
33513
|
/**
|
|
33378
33514
|
* Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
|
|
33379
33515
|
* @summary Get Analytics Rule
|
|
@@ -33570,6 +33706,20 @@ export const AnalyticsRulesApiFp = function(configuration?: Configuration) {
|
|
|
33570
33706
|
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.adminV1AnalyticsRulesPost']?.[localVarOperationServerIndex]?.url;
|
|
33571
33707
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33572
33708
|
},
|
|
33709
|
+
/**
|
|
33710
|
+
* Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
|
|
33711
|
+
* @summary Delete Analytics Rule
|
|
33712
|
+
* @param {string} authorization Bearer JWT token
|
|
33713
|
+
* @param {string} ruleId Rule ID
|
|
33714
|
+
* @param {*} [options] Override http request option.
|
|
33715
|
+
* @throws {RequiredError}
|
|
33716
|
+
*/
|
|
33717
|
+
async adminV1AnalyticsRulesRuleIdDelete(authorization: string, ruleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
|
|
33718
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options);
|
|
33719
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
33720
|
+
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.adminV1AnalyticsRulesRuleIdDelete']?.[localVarOperationServerIndex]?.url;
|
|
33721
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33722
|
+
},
|
|
33573
33723
|
/**
|
|
33574
33724
|
* Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
|
|
33575
33725
|
* @summary Get Analytics Rule
|
|
@@ -33682,6 +33832,21 @@ export const AnalyticsRulesApiFp = function(configuration?: Configuration) {
|
|
|
33682
33832
|
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.adminV1StoresXstoreidAnalyticsRulesPost']?.[localVarOperationServerIndex]?.url;
|
|
33683
33833
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33684
33834
|
},
|
|
33835
|
+
/**
|
|
33836
|
+
* Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
|
|
33837
|
+
* @summary Delete Analytics Rule
|
|
33838
|
+
* @param {string} authorization Bearer JWT token
|
|
33839
|
+
* @param {string} xstoreid Store ID (for store-specific routes)
|
|
33840
|
+
* @param {string} ruleId Rule ID
|
|
33841
|
+
* @param {*} [options] Override http request option.
|
|
33842
|
+
* @throws {RequiredError}
|
|
33843
|
+
*/
|
|
33844
|
+
async adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization: string, xstoreid: string, ruleId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<{ [key: string]: any; }>> {
|
|
33845
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options);
|
|
33846
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
33847
|
+
const localVarOperationServerBasePath = operationServerMap['AnalyticsRulesApi.adminV1StoresXstoreidAnalyticsRulesRuleIdDelete']?.[localVarOperationServerIndex]?.url;
|
|
33848
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
33849
|
+
},
|
|
33685
33850
|
/**
|
|
33686
33851
|
* Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
|
|
33687
33852
|
* @summary Get Analytics Rule
|
|
@@ -33769,6 +33934,17 @@ export const AnalyticsRulesApiFactory = function (configuration?: Configuration,
|
|
|
33769
33934
|
adminV1AnalyticsRulesPost(authorization: string, dataTypesCreateAnalyticsRuleRequest: DataTypesCreateAnalyticsRuleRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesAnalyticsRuleResponse> {
|
|
33770
33935
|
return localVarFp.adminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options).then((request) => request(axios, basePath));
|
|
33771
33936
|
},
|
|
33937
|
+
/**
|
|
33938
|
+
* Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
|
|
33939
|
+
* @summary Delete Analytics Rule
|
|
33940
|
+
* @param {string} authorization Bearer JWT token
|
|
33941
|
+
* @param {string} ruleId Rule ID
|
|
33942
|
+
* @param {*} [options] Override http request option.
|
|
33943
|
+
* @throws {RequiredError}
|
|
33944
|
+
*/
|
|
33945
|
+
adminV1AnalyticsRulesRuleIdDelete(authorization: string, ruleId: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
|
|
33946
|
+
return localVarFp.adminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options).then((request) => request(axios, basePath));
|
|
33947
|
+
},
|
|
33772
33948
|
/**
|
|
33773
33949
|
* Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
|
|
33774
33950
|
* @summary Get Analytics Rule
|
|
@@ -33860,6 +34036,18 @@ export const AnalyticsRulesApiFactory = function (configuration?: Configuration,
|
|
|
33860
34036
|
adminV1StoresXstoreidAnalyticsRulesPost(authorization: string, xstoreid: string, dataTypesCreateAnalyticsRuleRequest: DataTypesCreateAnalyticsRuleRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesAnalyticsRuleResponse> {
|
|
33861
34037
|
return localVarFp.adminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options).then((request) => request(axios, basePath));
|
|
33862
34038
|
},
|
|
34039
|
+
/**
|
|
34040
|
+
* Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
|
|
34041
|
+
* @summary Delete Analytics Rule
|
|
34042
|
+
* @param {string} authorization Bearer JWT token
|
|
34043
|
+
* @param {string} xstoreid Store ID (for store-specific routes)
|
|
34044
|
+
* @param {string} ruleId Rule ID
|
|
34045
|
+
* @param {*} [options] Override http request option.
|
|
34046
|
+
* @throws {RequiredError}
|
|
34047
|
+
*/
|
|
34048
|
+
adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization: string, xstoreid: string, ruleId: string, options?: RawAxiosRequestConfig): AxiosPromise<{ [key: string]: any; }> {
|
|
34049
|
+
return localVarFp.adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options).then((request) => request(axios, basePath));
|
|
34050
|
+
},
|
|
33863
34051
|
/**
|
|
33864
34052
|
* Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
|
|
33865
34053
|
* @summary Get Analytics Rule
|
|
@@ -33942,6 +34130,19 @@ export class AnalyticsRulesApi extends BaseAPI {
|
|
|
33942
34130
|
return AnalyticsRulesApiFp(this.configuration).adminV1AnalyticsRulesPost(authorization, dataTypesCreateAnalyticsRuleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
33943
34131
|
}
|
|
33944
34132
|
|
|
34133
|
+
/**
|
|
34134
|
+
* Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
|
|
34135
|
+
* @summary Delete Analytics Rule
|
|
34136
|
+
* @param {string} authorization Bearer JWT token
|
|
34137
|
+
* @param {string} ruleId Rule ID
|
|
34138
|
+
* @param {*} [options] Override http request option.
|
|
34139
|
+
* @throws {RequiredError}
|
|
34140
|
+
* @memberof AnalyticsRulesApi
|
|
34141
|
+
*/
|
|
34142
|
+
public adminV1AnalyticsRulesRuleIdDelete(authorization: string, ruleId: string, options?: RawAxiosRequestConfig) {
|
|
34143
|
+
return AnalyticsRulesApiFp(this.configuration).adminV1AnalyticsRulesRuleIdDelete(authorization, ruleId, options).then((request) => request(this.axios, this.basePath));
|
|
34144
|
+
}
|
|
34145
|
+
|
|
33945
34146
|
/**
|
|
33946
34147
|
* Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
|
|
33947
34148
|
* @summary Get Analytics Rule
|
|
@@ -34047,6 +34248,20 @@ export class AnalyticsRulesApi extends BaseAPI {
|
|
|
34047
34248
|
return AnalyticsRulesApiFp(this.configuration).adminV1StoresXstoreidAnalyticsRulesPost(authorization, xstoreid, dataTypesCreateAnalyticsRuleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
34048
34249
|
}
|
|
34049
34250
|
|
|
34251
|
+
/**
|
|
34252
|
+
* Permanently delete an analytics rule from both the database and Typesense. This operation cannot be undone.
|
|
34253
|
+
* @summary Delete Analytics Rule
|
|
34254
|
+
* @param {string} authorization Bearer JWT token
|
|
34255
|
+
* @param {string} xstoreid Store ID (for store-specific routes)
|
|
34256
|
+
* @param {string} ruleId Rule ID
|
|
34257
|
+
* @param {*} [options] Override http request option.
|
|
34258
|
+
* @throws {RequiredError}
|
|
34259
|
+
* @memberof AnalyticsRulesApi
|
|
34260
|
+
*/
|
|
34261
|
+
public adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization: string, xstoreid: string, ruleId: string, options?: RawAxiosRequestConfig) {
|
|
34262
|
+
return AnalyticsRulesApiFp(this.configuration).adminV1StoresXstoreidAnalyticsRulesRuleIdDelete(authorization, xstoreid, ruleId, options).then((request) => request(this.axios, this.basePath));
|
|
34263
|
+
}
|
|
34264
|
+
|
|
34050
34265
|
/**
|
|
34051
34266
|
* Retrieve a specific analytics rule by its ID. Returns the complete rule configuration including Typesense override actions.
|
|
34052
34267
|
* @summary Get Analytics Rule
|