@seekora-ai/admin-api 1.1.16 → 1.1.18
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 +5 -2
- package/api.ts +116 -0
- package/dist/api.d.ts +77 -0
- package/dist/api.js +68 -0
- package/dist/esm/api.d.ts +77 -0
- package/dist/esm/api.js +68 -0
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.18.tgz +0 -0
- package/seekora-ai-admin-api-1.1.16.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.18
|
|
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.18 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -84,6 +84,7 @@ Class | Method | HTTP request | Description
|
|
|
84
84
|
*AnalyticsApi* | [**adminAnalyticsStoreXStoreIDTagsSummaryGet**](docs/AnalyticsApi.md#adminanalyticsstorexstoreidtagssummaryget) | **GET** /admin/analytics/store/{xStoreID}/tags/summary | Get Analytics Tags Summary
|
|
85
85
|
*AnalyticsApi* | [**analyticsApiUsageGet**](docs/AnalyticsApi.md#analyticsapiusageget) | **GET** /analytics/api-usage | Get API Usage Logs
|
|
86
86
|
*AnalyticsApi* | [**analyticsApiUsageStoreStoreIdGet**](docs/AnalyticsApi.md#analyticsapiusagestorestoreidget) | **GET** /analytics/api-usage/store/{storeId} | Get Store API Usage Logs
|
|
87
|
+
*AnalyticsApi* | [**getSearchCountLast7Days**](docs/AnalyticsApi.md#getsearchcountlast7days) | **GET** /admin/analytics/store/{xStoreID}/searchcount | Get daily search counts for the last 7 days
|
|
87
88
|
*AnalyticsEventsApi* | [**analyticsBatchPost**](docs/AnalyticsEventsApi.md#analyticsbatchpost) | **POST** /analytics/batch | Submit Batch Analytics Events
|
|
88
89
|
*AnalyticsEventsApi* | [**analyticsConfigGet**](docs/AnalyticsEventsApi.md#analyticsconfigget) | **GET** /analytics/config | Get Analytics Configuration
|
|
89
90
|
*AnalyticsEventsApi* | [**analyticsEventPost**](docs/AnalyticsEventsApi.md#analyticseventpost) | **POST** /analytics/event | Submit Analytics Event
|
|
@@ -556,6 +557,8 @@ Class | Method | HTTP request | Description
|
|
|
556
557
|
- [AnalyticsRuleAction](docs/AnalyticsRuleAction.md)
|
|
557
558
|
- [AnalyticsRuleCondition](docs/AnalyticsRuleCondition.md)
|
|
558
559
|
- [AnalyticsRuleType](docs/AnalyticsRuleType.md)
|
|
560
|
+
- [AnalyticsSearchCount](docs/AnalyticsSearchCount.md)
|
|
561
|
+
- [AnalyticsSearchCountResponse](docs/AnalyticsSearchCountResponse.md)
|
|
559
562
|
- [AnalyticsSharedQueryAnalysis](docs/AnalyticsSharedQueryAnalysis.md)
|
|
560
563
|
- [AnalyticsSuggestionCategory](docs/AnalyticsSuggestionCategory.md)
|
|
561
564
|
- [AnalyticsTimeSeriesPoint](docs/AnalyticsTimeSeriesPoint.md)
|
package/api.ts
CHANGED
|
@@ -6798,6 +6798,50 @@ export const AnalyticsRuleType = {
|
|
|
6798
6798
|
export type AnalyticsRuleType = typeof AnalyticsRuleType[keyof typeof AnalyticsRuleType];
|
|
6799
6799
|
|
|
6800
6800
|
|
|
6801
|
+
/**
|
|
6802
|
+
*
|
|
6803
|
+
* @export
|
|
6804
|
+
* @interface AnalyticsSearchCount
|
|
6805
|
+
*/
|
|
6806
|
+
export interface AnalyticsSearchCount {
|
|
6807
|
+
/**
|
|
6808
|
+
*
|
|
6809
|
+
* @type {number}
|
|
6810
|
+
* @memberof AnalyticsSearchCount
|
|
6811
|
+
*/
|
|
6812
|
+
'count'?: number;
|
|
6813
|
+
/**
|
|
6814
|
+
*
|
|
6815
|
+
* @type {string}
|
|
6816
|
+
* @memberof AnalyticsSearchCount
|
|
6817
|
+
*/
|
|
6818
|
+
'date'?: string;
|
|
6819
|
+
}
|
|
6820
|
+
/**
|
|
6821
|
+
*
|
|
6822
|
+
* @export
|
|
6823
|
+
* @interface AnalyticsSearchCountResponse
|
|
6824
|
+
*/
|
|
6825
|
+
export interface AnalyticsSearchCountResponse {
|
|
6826
|
+
/**
|
|
6827
|
+
*
|
|
6828
|
+
* @type {Array<AnalyticsSearchCount>}
|
|
6829
|
+
* @memberof AnalyticsSearchCountResponse
|
|
6830
|
+
*/
|
|
6831
|
+
'data'?: Array<AnalyticsSearchCount>;
|
|
6832
|
+
/**
|
|
6833
|
+
*
|
|
6834
|
+
* @type {string}
|
|
6835
|
+
* @memberof AnalyticsSearchCountResponse
|
|
6836
|
+
*/
|
|
6837
|
+
'message'?: string;
|
|
6838
|
+
/**
|
|
6839
|
+
*
|
|
6840
|
+
* @type {number}
|
|
6841
|
+
* @memberof AnalyticsSearchCountResponse
|
|
6842
|
+
*/
|
|
6843
|
+
'status'?: number;
|
|
6844
|
+
}
|
|
6801
6845
|
/**
|
|
6802
6846
|
*
|
|
6803
6847
|
* @export
|
|
@@ -24759,6 +24803,43 @@ export const AnalyticsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
24759
24803
|
|
|
24760
24804
|
|
|
24761
24805
|
|
|
24806
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24807
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24808
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
24809
|
+
|
|
24810
|
+
return {
|
|
24811
|
+
url: toPathString(localVarUrlObj),
|
|
24812
|
+
options: localVarRequestOptions,
|
|
24813
|
+
};
|
|
24814
|
+
},
|
|
24815
|
+
/**
|
|
24816
|
+
* Retrieves and returns the number of search events per day for the past 7 days from ClickHouse.
|
|
24817
|
+
* @summary Get daily search counts for the last 7 days
|
|
24818
|
+
* @param {string} xStoreID Unique store identifier
|
|
24819
|
+
* @param {*} [options] Override http request option.
|
|
24820
|
+
* @throws {RequiredError}
|
|
24821
|
+
*/
|
|
24822
|
+
getSearchCountLast7Days: async (xStoreID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
24823
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
24824
|
+
assertParamExists('getSearchCountLast7Days', 'xStoreID', xStoreID)
|
|
24825
|
+
const localVarPath = `/admin/analytics/store/{xStoreID}/searchcount`
|
|
24826
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
24827
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
24828
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
24829
|
+
let baseOptions;
|
|
24830
|
+
if (configuration) {
|
|
24831
|
+
baseOptions = configuration.baseOptions;
|
|
24832
|
+
}
|
|
24833
|
+
|
|
24834
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
24835
|
+
const localVarHeaderParameter = {} as any;
|
|
24836
|
+
const localVarQueryParameter = {} as any;
|
|
24837
|
+
|
|
24838
|
+
// authentication BearerAuth required
|
|
24839
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
24840
|
+
|
|
24841
|
+
|
|
24842
|
+
|
|
24762
24843
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
24763
24844
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
24764
24845
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -25312,6 +25393,19 @@ export const AnalyticsApiFp = function(configuration?: Configuration) {
|
|
|
25312
25393
|
const localVarOperationServerBasePath = operationServerMap['AnalyticsApi.analyticsApiUsageStoreStoreIdGet']?.[localVarOperationServerIndex]?.url;
|
|
25313
25394
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25314
25395
|
},
|
|
25396
|
+
/**
|
|
25397
|
+
* Retrieves and returns the number of search events per day for the past 7 days from ClickHouse.
|
|
25398
|
+
* @summary Get daily search counts for the last 7 days
|
|
25399
|
+
* @param {string} xStoreID Unique store identifier
|
|
25400
|
+
* @param {*} [options] Override http request option.
|
|
25401
|
+
* @throws {RequiredError}
|
|
25402
|
+
*/
|
|
25403
|
+
async getSearchCountLast7Days(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnalyticsSearchCountResponse>> {
|
|
25404
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSearchCountLast7Days(xStoreID, options);
|
|
25405
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
25406
|
+
const localVarOperationServerBasePath = operationServerMap['AnalyticsApi.getSearchCountLast7Days']?.[localVarOperationServerIndex]?.url;
|
|
25407
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25408
|
+
},
|
|
25315
25409
|
}
|
|
25316
25410
|
};
|
|
25317
25411
|
|
|
@@ -25796,6 +25890,16 @@ export const AnalyticsApiFactory = function (configuration?: Configuration, base
|
|
|
25796
25890
|
analyticsApiUsageStoreStoreIdGet(storeId: string, startDate?: string, endDate?: string, method?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<AnalyticsAPIUsageResponse> {
|
|
25797
25891
|
return localVarFp.analyticsApiUsageStoreStoreIdGet(storeId, startDate, endDate, method, page, perPage, options).then((request) => request(axios, basePath));
|
|
25798
25892
|
},
|
|
25893
|
+
/**
|
|
25894
|
+
* Retrieves and returns the number of search events per day for the past 7 days from ClickHouse.
|
|
25895
|
+
* @summary Get daily search counts for the last 7 days
|
|
25896
|
+
* @param {string} xStoreID Unique store identifier
|
|
25897
|
+
* @param {*} [options] Override http request option.
|
|
25898
|
+
* @throws {RequiredError}
|
|
25899
|
+
*/
|
|
25900
|
+
getSearchCountLast7Days(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<AnalyticsSearchCountResponse> {
|
|
25901
|
+
return localVarFp.getSearchCountLast7Days(xStoreID, options).then((request) => request(axios, basePath));
|
|
25902
|
+
},
|
|
25799
25903
|
};
|
|
25800
25904
|
};
|
|
25801
25905
|
|
|
@@ -26319,6 +26423,18 @@ export class AnalyticsApi extends BaseAPI {
|
|
|
26319
26423
|
public analyticsApiUsageStoreStoreIdGet(storeId: string, startDate?: string, endDate?: string, method?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) {
|
|
26320
26424
|
return AnalyticsApiFp(this.configuration).analyticsApiUsageStoreStoreIdGet(storeId, startDate, endDate, method, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
26321
26425
|
}
|
|
26426
|
+
|
|
26427
|
+
/**
|
|
26428
|
+
* Retrieves and returns the number of search events per day for the past 7 days from ClickHouse.
|
|
26429
|
+
* @summary Get daily search counts for the last 7 days
|
|
26430
|
+
* @param {string} xStoreID Unique store identifier
|
|
26431
|
+
* @param {*} [options] Override http request option.
|
|
26432
|
+
* @throws {RequiredError}
|
|
26433
|
+
* @memberof AnalyticsApi
|
|
26434
|
+
*/
|
|
26435
|
+
public getSearchCountLast7Days(xStoreID: string, options?: RawAxiosRequestConfig) {
|
|
26436
|
+
return AnalyticsApiFp(this.configuration).getSearchCountLast7Days(xStoreID, options).then((request) => request(this.axios, this.basePath));
|
|
26437
|
+
}
|
|
26322
26438
|
}
|
|
26323
26439
|
|
|
26324
26440
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -6798,6 +6798,50 @@ export declare const AnalyticsRuleType: {
|
|
|
6798
6798
|
readonly RuleTypeBanner: "banner";
|
|
6799
6799
|
};
|
|
6800
6800
|
export type AnalyticsRuleType = typeof AnalyticsRuleType[keyof typeof AnalyticsRuleType];
|
|
6801
|
+
/**
|
|
6802
|
+
*
|
|
6803
|
+
* @export
|
|
6804
|
+
* @interface AnalyticsSearchCount
|
|
6805
|
+
*/
|
|
6806
|
+
export interface AnalyticsSearchCount {
|
|
6807
|
+
/**
|
|
6808
|
+
*
|
|
6809
|
+
* @type {number}
|
|
6810
|
+
* @memberof AnalyticsSearchCount
|
|
6811
|
+
*/
|
|
6812
|
+
'count'?: number;
|
|
6813
|
+
/**
|
|
6814
|
+
*
|
|
6815
|
+
* @type {string}
|
|
6816
|
+
* @memberof AnalyticsSearchCount
|
|
6817
|
+
*/
|
|
6818
|
+
'date'?: string;
|
|
6819
|
+
}
|
|
6820
|
+
/**
|
|
6821
|
+
*
|
|
6822
|
+
* @export
|
|
6823
|
+
* @interface AnalyticsSearchCountResponse
|
|
6824
|
+
*/
|
|
6825
|
+
export interface AnalyticsSearchCountResponse {
|
|
6826
|
+
/**
|
|
6827
|
+
*
|
|
6828
|
+
* @type {Array<AnalyticsSearchCount>}
|
|
6829
|
+
* @memberof AnalyticsSearchCountResponse
|
|
6830
|
+
*/
|
|
6831
|
+
'data'?: Array<AnalyticsSearchCount>;
|
|
6832
|
+
/**
|
|
6833
|
+
*
|
|
6834
|
+
* @type {string}
|
|
6835
|
+
* @memberof AnalyticsSearchCountResponse
|
|
6836
|
+
*/
|
|
6837
|
+
'message'?: string;
|
|
6838
|
+
/**
|
|
6839
|
+
*
|
|
6840
|
+
* @type {number}
|
|
6841
|
+
* @memberof AnalyticsSearchCountResponse
|
|
6842
|
+
*/
|
|
6843
|
+
'status'?: number;
|
|
6844
|
+
}
|
|
6801
6845
|
/**
|
|
6802
6846
|
*
|
|
6803
6847
|
* @export
|
|
@@ -22594,6 +22638,14 @@ export declare const AnalyticsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
22594
22638
|
* @throws {RequiredError}
|
|
22595
22639
|
*/
|
|
22596
22640
|
analyticsApiUsageStoreStoreIdGet: (storeId: string, startDate?: string, endDate?: string, method?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
22641
|
+
/**
|
|
22642
|
+
* Retrieves and returns the number of search events per day for the past 7 days from ClickHouse.
|
|
22643
|
+
* @summary Get daily search counts for the last 7 days
|
|
22644
|
+
* @param {string} xStoreID Unique store identifier
|
|
22645
|
+
* @param {*} [options] Override http request option.
|
|
22646
|
+
* @throws {RequiredError}
|
|
22647
|
+
*/
|
|
22648
|
+
getSearchCountLast7Days: (xStoreID: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
22597
22649
|
};
|
|
22598
22650
|
/**
|
|
22599
22651
|
* AnalyticsApi - functional programming interface
|
|
@@ -23034,6 +23086,14 @@ export declare const AnalyticsApiFp: (configuration?: Configuration) => {
|
|
|
23034
23086
|
* @throws {RequiredError}
|
|
23035
23087
|
*/
|
|
23036
23088
|
analyticsApiUsageStoreStoreIdGet(storeId: string, startDate?: string, endDate?: string, method?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnalyticsAPIUsageResponse>>;
|
|
23089
|
+
/**
|
|
23090
|
+
* Retrieves and returns the number of search events per day for the past 7 days from ClickHouse.
|
|
23091
|
+
* @summary Get daily search counts for the last 7 days
|
|
23092
|
+
* @param {string} xStoreID Unique store identifier
|
|
23093
|
+
* @param {*} [options] Override http request option.
|
|
23094
|
+
* @throws {RequiredError}
|
|
23095
|
+
*/
|
|
23096
|
+
getSearchCountLast7Days(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnalyticsSearchCountResponse>>;
|
|
23037
23097
|
};
|
|
23038
23098
|
/**
|
|
23039
23099
|
* AnalyticsApi - factory interface
|
|
@@ -23474,6 +23534,14 @@ export declare const AnalyticsApiFactory: (configuration?: Configuration, basePa
|
|
|
23474
23534
|
* @throws {RequiredError}
|
|
23475
23535
|
*/
|
|
23476
23536
|
analyticsApiUsageStoreStoreIdGet(storeId: string, startDate?: string, endDate?: string, method?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<AnalyticsAPIUsageResponse>;
|
|
23537
|
+
/**
|
|
23538
|
+
* Retrieves and returns the number of search events per day for the past 7 days from ClickHouse.
|
|
23539
|
+
* @summary Get daily search counts for the last 7 days
|
|
23540
|
+
* @param {string} xStoreID Unique store identifier
|
|
23541
|
+
* @param {*} [options] Override http request option.
|
|
23542
|
+
* @throws {RequiredError}
|
|
23543
|
+
*/
|
|
23544
|
+
getSearchCountLast7Days(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<AnalyticsSearchCountResponse>;
|
|
23477
23545
|
};
|
|
23478
23546
|
/**
|
|
23479
23547
|
* AnalyticsApi - object-oriented interface
|
|
@@ -23936,6 +24004,15 @@ export declare class AnalyticsApi extends BaseAPI {
|
|
|
23936
24004
|
* @memberof AnalyticsApi
|
|
23937
24005
|
*/
|
|
23938
24006
|
analyticsApiUsageStoreStoreIdGet(storeId: string, startDate?: string, endDate?: string, method?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AnalyticsAPIUsageResponse, any, {}>>;
|
|
24007
|
+
/**
|
|
24008
|
+
* Retrieves and returns the number of search events per day for the past 7 days from ClickHouse.
|
|
24009
|
+
* @summary Get daily search counts for the last 7 days
|
|
24010
|
+
* @param {string} xStoreID Unique store identifier
|
|
24011
|
+
* @param {*} [options] Override http request option.
|
|
24012
|
+
* @throws {RequiredError}
|
|
24013
|
+
* @memberof AnalyticsApi
|
|
24014
|
+
*/
|
|
24015
|
+
getSearchCountLast7Days(xStoreID: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AnalyticsSearchCountResponse, any, {}>>;
|
|
23939
24016
|
}
|
|
23940
24017
|
/**
|
|
23941
24018
|
* @export
|
package/dist/api.js
CHANGED
|
@@ -2854,6 +2854,37 @@ const AnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
2854
2854
|
options: localVarRequestOptions,
|
|
2855
2855
|
};
|
|
2856
2856
|
}),
|
|
2857
|
+
/**
|
|
2858
|
+
* Retrieves and returns the number of search events per day for the past 7 days from ClickHouse.
|
|
2859
|
+
* @summary Get daily search counts for the last 7 days
|
|
2860
|
+
* @param {string} xStoreID Unique store identifier
|
|
2861
|
+
* @param {*} [options] Override http request option.
|
|
2862
|
+
* @throws {RequiredError}
|
|
2863
|
+
*/
|
|
2864
|
+
getSearchCountLast7Days: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
|
|
2865
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
2866
|
+
(0, common_1.assertParamExists)('getSearchCountLast7Days', 'xStoreID', xStoreID);
|
|
2867
|
+
const localVarPath = `/admin/analytics/store/{xStoreID}/searchcount`
|
|
2868
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
2869
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2870
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2871
|
+
let baseOptions;
|
|
2872
|
+
if (configuration) {
|
|
2873
|
+
baseOptions = configuration.baseOptions;
|
|
2874
|
+
}
|
|
2875
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2876
|
+
const localVarHeaderParameter = {};
|
|
2877
|
+
const localVarQueryParameter = {};
|
|
2878
|
+
// authentication BearerAuth required
|
|
2879
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
2880
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2881
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2882
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2883
|
+
return {
|
|
2884
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2885
|
+
options: localVarRequestOptions,
|
|
2886
|
+
};
|
|
2887
|
+
}),
|
|
2857
2888
|
};
|
|
2858
2889
|
};
|
|
2859
2890
|
exports.AnalyticsApiAxiosParamCreator = AnalyticsApiAxiosParamCreator;
|
|
@@ -3458,6 +3489,22 @@ const AnalyticsApiFp = function (configuration) {
|
|
|
3458
3489
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3459
3490
|
});
|
|
3460
3491
|
},
|
|
3492
|
+
/**
|
|
3493
|
+
* Retrieves and returns the number of search events per day for the past 7 days from ClickHouse.
|
|
3494
|
+
* @summary Get daily search counts for the last 7 days
|
|
3495
|
+
* @param {string} xStoreID Unique store identifier
|
|
3496
|
+
* @param {*} [options] Override http request option.
|
|
3497
|
+
* @throws {RequiredError}
|
|
3498
|
+
*/
|
|
3499
|
+
getSearchCountLast7Days(xStoreID, options) {
|
|
3500
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3501
|
+
var _a, _b, _c;
|
|
3502
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSearchCountLast7Days(xStoreID, options);
|
|
3503
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3504
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AnalyticsApi.getSearchCountLast7Days']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3505
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3506
|
+
});
|
|
3507
|
+
},
|
|
3461
3508
|
};
|
|
3462
3509
|
};
|
|
3463
3510
|
exports.AnalyticsApiFp = AnalyticsApiFp;
|
|
@@ -3942,6 +3989,16 @@ const AnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
|
3942
3989
|
analyticsApiUsageStoreStoreIdGet(storeId, startDate, endDate, method, page, perPage, options) {
|
|
3943
3990
|
return localVarFp.analyticsApiUsageStoreStoreIdGet(storeId, startDate, endDate, method, page, perPage, options).then((request) => request(axios, basePath));
|
|
3944
3991
|
},
|
|
3992
|
+
/**
|
|
3993
|
+
* Retrieves and returns the number of search events per day for the past 7 days from ClickHouse.
|
|
3994
|
+
* @summary Get daily search counts for the last 7 days
|
|
3995
|
+
* @param {string} xStoreID Unique store identifier
|
|
3996
|
+
* @param {*} [options] Override http request option.
|
|
3997
|
+
* @throws {RequiredError}
|
|
3998
|
+
*/
|
|
3999
|
+
getSearchCountLast7Days(xStoreID, options) {
|
|
4000
|
+
return localVarFp.getSearchCountLast7Days(xStoreID, options).then((request) => request(axios, basePath));
|
|
4001
|
+
},
|
|
3945
4002
|
};
|
|
3946
4003
|
};
|
|
3947
4004
|
exports.AnalyticsApiFactory = AnalyticsApiFactory;
|
|
@@ -4446,6 +4503,17 @@ class AnalyticsApi extends base_1.BaseAPI {
|
|
|
4446
4503
|
analyticsApiUsageStoreStoreIdGet(storeId, startDate, endDate, method, page, perPage, options) {
|
|
4447
4504
|
return (0, exports.AnalyticsApiFp)(this.configuration).analyticsApiUsageStoreStoreIdGet(storeId, startDate, endDate, method, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
4448
4505
|
}
|
|
4506
|
+
/**
|
|
4507
|
+
* Retrieves and returns the number of search events per day for the past 7 days from ClickHouse.
|
|
4508
|
+
* @summary Get daily search counts for the last 7 days
|
|
4509
|
+
* @param {string} xStoreID Unique store identifier
|
|
4510
|
+
* @param {*} [options] Override http request option.
|
|
4511
|
+
* @throws {RequiredError}
|
|
4512
|
+
* @memberof AnalyticsApi
|
|
4513
|
+
*/
|
|
4514
|
+
getSearchCountLast7Days(xStoreID, options) {
|
|
4515
|
+
return (0, exports.AnalyticsApiFp)(this.configuration).getSearchCountLast7Days(xStoreID, options).then((request) => request(this.axios, this.basePath));
|
|
4516
|
+
}
|
|
4449
4517
|
}
|
|
4450
4518
|
exports.AnalyticsApi = AnalyticsApi;
|
|
4451
4519
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -6798,6 +6798,50 @@ export declare const AnalyticsRuleType: {
|
|
|
6798
6798
|
readonly RuleTypeBanner: "banner";
|
|
6799
6799
|
};
|
|
6800
6800
|
export type AnalyticsRuleType = typeof AnalyticsRuleType[keyof typeof AnalyticsRuleType];
|
|
6801
|
+
/**
|
|
6802
|
+
*
|
|
6803
|
+
* @export
|
|
6804
|
+
* @interface AnalyticsSearchCount
|
|
6805
|
+
*/
|
|
6806
|
+
export interface AnalyticsSearchCount {
|
|
6807
|
+
/**
|
|
6808
|
+
*
|
|
6809
|
+
* @type {number}
|
|
6810
|
+
* @memberof AnalyticsSearchCount
|
|
6811
|
+
*/
|
|
6812
|
+
'count'?: number;
|
|
6813
|
+
/**
|
|
6814
|
+
*
|
|
6815
|
+
* @type {string}
|
|
6816
|
+
* @memberof AnalyticsSearchCount
|
|
6817
|
+
*/
|
|
6818
|
+
'date'?: string;
|
|
6819
|
+
}
|
|
6820
|
+
/**
|
|
6821
|
+
*
|
|
6822
|
+
* @export
|
|
6823
|
+
* @interface AnalyticsSearchCountResponse
|
|
6824
|
+
*/
|
|
6825
|
+
export interface AnalyticsSearchCountResponse {
|
|
6826
|
+
/**
|
|
6827
|
+
*
|
|
6828
|
+
* @type {Array<AnalyticsSearchCount>}
|
|
6829
|
+
* @memberof AnalyticsSearchCountResponse
|
|
6830
|
+
*/
|
|
6831
|
+
'data'?: Array<AnalyticsSearchCount>;
|
|
6832
|
+
/**
|
|
6833
|
+
*
|
|
6834
|
+
* @type {string}
|
|
6835
|
+
* @memberof AnalyticsSearchCountResponse
|
|
6836
|
+
*/
|
|
6837
|
+
'message'?: string;
|
|
6838
|
+
/**
|
|
6839
|
+
*
|
|
6840
|
+
* @type {number}
|
|
6841
|
+
* @memberof AnalyticsSearchCountResponse
|
|
6842
|
+
*/
|
|
6843
|
+
'status'?: number;
|
|
6844
|
+
}
|
|
6801
6845
|
/**
|
|
6802
6846
|
*
|
|
6803
6847
|
* @export
|
|
@@ -22594,6 +22638,14 @@ export declare const AnalyticsApiAxiosParamCreator: (configuration?: Configurati
|
|
|
22594
22638
|
* @throws {RequiredError}
|
|
22595
22639
|
*/
|
|
22596
22640
|
analyticsApiUsageStoreStoreIdGet: (storeId: string, startDate?: string, endDate?: string, method?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
22641
|
+
/**
|
|
22642
|
+
* Retrieves and returns the number of search events per day for the past 7 days from ClickHouse.
|
|
22643
|
+
* @summary Get daily search counts for the last 7 days
|
|
22644
|
+
* @param {string} xStoreID Unique store identifier
|
|
22645
|
+
* @param {*} [options] Override http request option.
|
|
22646
|
+
* @throws {RequiredError}
|
|
22647
|
+
*/
|
|
22648
|
+
getSearchCountLast7Days: (xStoreID: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
22597
22649
|
};
|
|
22598
22650
|
/**
|
|
22599
22651
|
* AnalyticsApi - functional programming interface
|
|
@@ -23034,6 +23086,14 @@ export declare const AnalyticsApiFp: (configuration?: Configuration) => {
|
|
|
23034
23086
|
* @throws {RequiredError}
|
|
23035
23087
|
*/
|
|
23036
23088
|
analyticsApiUsageStoreStoreIdGet(storeId: string, startDate?: string, endDate?: string, method?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnalyticsAPIUsageResponse>>;
|
|
23089
|
+
/**
|
|
23090
|
+
* Retrieves and returns the number of search events per day for the past 7 days from ClickHouse.
|
|
23091
|
+
* @summary Get daily search counts for the last 7 days
|
|
23092
|
+
* @param {string} xStoreID Unique store identifier
|
|
23093
|
+
* @param {*} [options] Override http request option.
|
|
23094
|
+
* @throws {RequiredError}
|
|
23095
|
+
*/
|
|
23096
|
+
getSearchCountLast7Days(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AnalyticsSearchCountResponse>>;
|
|
23037
23097
|
};
|
|
23038
23098
|
/**
|
|
23039
23099
|
* AnalyticsApi - factory interface
|
|
@@ -23474,6 +23534,14 @@ export declare const AnalyticsApiFactory: (configuration?: Configuration, basePa
|
|
|
23474
23534
|
* @throws {RequiredError}
|
|
23475
23535
|
*/
|
|
23476
23536
|
analyticsApiUsageStoreStoreIdGet(storeId: string, startDate?: string, endDate?: string, method?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<AnalyticsAPIUsageResponse>;
|
|
23537
|
+
/**
|
|
23538
|
+
* Retrieves and returns the number of search events per day for the past 7 days from ClickHouse.
|
|
23539
|
+
* @summary Get daily search counts for the last 7 days
|
|
23540
|
+
* @param {string} xStoreID Unique store identifier
|
|
23541
|
+
* @param {*} [options] Override http request option.
|
|
23542
|
+
* @throws {RequiredError}
|
|
23543
|
+
*/
|
|
23544
|
+
getSearchCountLast7Days(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<AnalyticsSearchCountResponse>;
|
|
23477
23545
|
};
|
|
23478
23546
|
/**
|
|
23479
23547
|
* AnalyticsApi - object-oriented interface
|
|
@@ -23936,6 +24004,15 @@ export declare class AnalyticsApi extends BaseAPI {
|
|
|
23936
24004
|
* @memberof AnalyticsApi
|
|
23937
24005
|
*/
|
|
23938
24006
|
analyticsApiUsageStoreStoreIdGet(storeId: string, startDate?: string, endDate?: string, method?: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AnalyticsAPIUsageResponse, any, {}>>;
|
|
24007
|
+
/**
|
|
24008
|
+
* Retrieves and returns the number of search events per day for the past 7 days from ClickHouse.
|
|
24009
|
+
* @summary Get daily search counts for the last 7 days
|
|
24010
|
+
* @param {string} xStoreID Unique store identifier
|
|
24011
|
+
* @param {*} [options] Override http request option.
|
|
24012
|
+
* @throws {RequiredError}
|
|
24013
|
+
* @memberof AnalyticsApi
|
|
24014
|
+
*/
|
|
24015
|
+
getSearchCountLast7Days(xStoreID: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AnalyticsSearchCountResponse, any, {}>>;
|
|
23939
24016
|
}
|
|
23940
24017
|
/**
|
|
23941
24018
|
* @export
|
package/dist/esm/api.js
CHANGED
|
@@ -2838,6 +2838,37 @@ export const AnalyticsApiAxiosParamCreator = function (configuration) {
|
|
|
2838
2838
|
options: localVarRequestOptions,
|
|
2839
2839
|
};
|
|
2840
2840
|
}),
|
|
2841
|
+
/**
|
|
2842
|
+
* Retrieves and returns the number of search events per day for the past 7 days from ClickHouse.
|
|
2843
|
+
* @summary Get daily search counts for the last 7 days
|
|
2844
|
+
* @param {string} xStoreID Unique store identifier
|
|
2845
|
+
* @param {*} [options] Override http request option.
|
|
2846
|
+
* @throws {RequiredError}
|
|
2847
|
+
*/
|
|
2848
|
+
getSearchCountLast7Days: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
|
|
2849
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
2850
|
+
assertParamExists('getSearchCountLast7Days', 'xStoreID', xStoreID);
|
|
2851
|
+
const localVarPath = `/admin/analytics/store/{xStoreID}/searchcount`
|
|
2852
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
2853
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2854
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2855
|
+
let baseOptions;
|
|
2856
|
+
if (configuration) {
|
|
2857
|
+
baseOptions = configuration.baseOptions;
|
|
2858
|
+
}
|
|
2859
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2860
|
+
const localVarHeaderParameter = {};
|
|
2861
|
+
const localVarQueryParameter = {};
|
|
2862
|
+
// authentication BearerAuth required
|
|
2863
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
2864
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2865
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2866
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2867
|
+
return {
|
|
2868
|
+
url: toPathString(localVarUrlObj),
|
|
2869
|
+
options: localVarRequestOptions,
|
|
2870
|
+
};
|
|
2871
|
+
}),
|
|
2841
2872
|
};
|
|
2842
2873
|
};
|
|
2843
2874
|
/**
|
|
@@ -3441,6 +3472,22 @@ export const AnalyticsApiFp = function (configuration) {
|
|
|
3441
3472
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3442
3473
|
});
|
|
3443
3474
|
},
|
|
3475
|
+
/**
|
|
3476
|
+
* Retrieves and returns the number of search events per day for the past 7 days from ClickHouse.
|
|
3477
|
+
* @summary Get daily search counts for the last 7 days
|
|
3478
|
+
* @param {string} xStoreID Unique store identifier
|
|
3479
|
+
* @param {*} [options] Override http request option.
|
|
3480
|
+
* @throws {RequiredError}
|
|
3481
|
+
*/
|
|
3482
|
+
getSearchCountLast7Days(xStoreID, options) {
|
|
3483
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3484
|
+
var _a, _b, _c;
|
|
3485
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSearchCountLast7Days(xStoreID, options);
|
|
3486
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3487
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AnalyticsApi.getSearchCountLast7Days']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3488
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3489
|
+
});
|
|
3490
|
+
},
|
|
3444
3491
|
};
|
|
3445
3492
|
};
|
|
3446
3493
|
/**
|
|
@@ -3924,6 +3971,16 @@ export const AnalyticsApiFactory = function (configuration, basePath, axios) {
|
|
|
3924
3971
|
analyticsApiUsageStoreStoreIdGet(storeId, startDate, endDate, method, page, perPage, options) {
|
|
3925
3972
|
return localVarFp.analyticsApiUsageStoreStoreIdGet(storeId, startDate, endDate, method, page, perPage, options).then((request) => request(axios, basePath));
|
|
3926
3973
|
},
|
|
3974
|
+
/**
|
|
3975
|
+
* Retrieves and returns the number of search events per day for the past 7 days from ClickHouse.
|
|
3976
|
+
* @summary Get daily search counts for the last 7 days
|
|
3977
|
+
* @param {string} xStoreID Unique store identifier
|
|
3978
|
+
* @param {*} [options] Override http request option.
|
|
3979
|
+
* @throws {RequiredError}
|
|
3980
|
+
*/
|
|
3981
|
+
getSearchCountLast7Days(xStoreID, options) {
|
|
3982
|
+
return localVarFp.getSearchCountLast7Days(xStoreID, options).then((request) => request(axios, basePath));
|
|
3983
|
+
},
|
|
3927
3984
|
};
|
|
3928
3985
|
};
|
|
3929
3986
|
/**
|
|
@@ -4427,6 +4484,17 @@ export class AnalyticsApi extends BaseAPI {
|
|
|
4427
4484
|
analyticsApiUsageStoreStoreIdGet(storeId, startDate, endDate, method, page, perPage, options) {
|
|
4428
4485
|
return AnalyticsApiFp(this.configuration).analyticsApiUsageStoreStoreIdGet(storeId, startDate, endDate, method, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
4429
4486
|
}
|
|
4487
|
+
/**
|
|
4488
|
+
* Retrieves and returns the number of search events per day for the past 7 days from ClickHouse.
|
|
4489
|
+
* @summary Get daily search counts for the last 7 days
|
|
4490
|
+
* @param {string} xStoreID Unique store identifier
|
|
4491
|
+
* @param {*} [options] Override http request option.
|
|
4492
|
+
* @throws {RequiredError}
|
|
4493
|
+
* @memberof AnalyticsApi
|
|
4494
|
+
*/
|
|
4495
|
+
getSearchCountLast7Days(xStoreID, options) {
|
|
4496
|
+
return AnalyticsApiFp(this.configuration).getSearchCountLast7Days(xStoreID, options).then((request) => request(this.axios, this.basePath));
|
|
4497
|
+
}
|
|
4430
4498
|
}
|
|
4431
4499
|
/**
|
|
4432
4500
|
* @export
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|