@wenex/sdk 1.0.25 → 1.0.27
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type MetaKey = 'user-agent' | 'x-at' | 'x-by' | 'x-in' | 'x-zone' | 'x-token' | 'x-user-ip' | 'x-api-key' | 'x-api-token' | 'x-request-id' | 'x-user-agent' | 'x-nested-keys' | 'x-saga-session' | 'x-authorization' | 'x-can-with-policies' | 'x-naming-convention' | 'x-stat-learning-rate' | 'x-stat-delay-datetime';
|
|
1
|
+
export type MetaKey = 'user-agent' | 'x-at' | 'x-by' | 'x-in' | 'x-zone' | 'x-token' | 'x-user-ip' | 'x-api-key' | 'x-saga-ttl' | 'x-api-token' | 'x-request-id' | 'x-user-agent' | 'x-nested-keys' | 'x-saga-session' | 'x-authorization' | 'x-payment-amount' | 'x-can-with-policies' | 'x-naming-convention' | 'x-stat-learning-rate' | 'x-stat-delay-datetime';
|
|
2
2
|
export type Metadata = {
|
|
3
3
|
[key in MetaKey]?: any;
|
|
4
4
|
};
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { AxiosInstance } from 'axios';
|
|
2
|
-
import { Serializer } from '../../common/core/interfaces';
|
|
2
|
+
import { Result, Serializer } from '../../common/core/interfaces';
|
|
3
3
|
import { RequestConfig, RestfulService } from '../../common/core/classes';
|
|
4
4
|
import { Stat, StatCollectDto, StatDto } from '../../common/interfaces/special';
|
|
5
5
|
export declare class StatsService<Properties extends object = object> extends RestfulService<Stat<Properties>, StatDto<Properties>> {
|
|
6
6
|
protected axios: AxiosInstance;
|
|
7
7
|
constructor(axios: AxiosInstance);
|
|
8
8
|
collect(data: StatCollectDto<Properties>, config?: RequestConfig<Stat<Properties>>): Promise<Serializer<Stat<Properties>>[]>;
|
|
9
|
+
stackup(data: StatCollectDto<Properties>, config?: RequestConfig<Stat<Properties>>): Promise<Result>;
|
|
9
10
|
static build<Properties extends object = object>(axios: AxiosInstance): StatsService<Properties>;
|
|
10
11
|
}
|
|
@@ -11,6 +11,9 @@ class StatsService extends classes_1.RestfulService {
|
|
|
11
11
|
return (await this.post(this.url('collect'), data, config))
|
|
12
12
|
.items;
|
|
13
13
|
}
|
|
14
|
+
async stackup(data, config) {
|
|
15
|
+
return await this.post(this.url('stackup'), data, config);
|
|
16
|
+
}
|
|
14
17
|
static build(axios) {
|
|
15
18
|
return new StatsService(axios);
|
|
16
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stats.service.js","sourceRoot":"","sources":["../../src/services/special/stats.service.ts"],"names":[],"mappings":";;;AAGA,uDAA0E;AAG1E,MAAa,YAAiD,SAAQ,wBAAqD;IACzH,YAAsB,KAAoB;QACxC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QADF,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAED,KAAK,CAAC,OAAO,CACX,IAAgC,EAChC,MAAwC;QAExC,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAkE,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;aACzH,KAAK,CAAC;IACX,CAAC;IAED,MAAM,CAAC,KAAK,CAAqC,KAAoB;QACnE,OAAO,IAAI,YAAY,CAAa,KAAK,CAAC,CAAC;IAC7C,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"stats.service.js","sourceRoot":"","sources":["../../src/services/special/stats.service.ts"],"names":[],"mappings":";;;AAGA,uDAA0E;AAG1E,MAAa,YAAiD,SAAQ,wBAAqD;IACzH,YAAsB,KAAoB;QACxC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QADF,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAED,KAAK,CAAC,OAAO,CACX,IAAgC,EAChC,MAAwC;QAExC,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAkE,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;aACzH,KAAK,CAAC;IACX,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,IAAgC,EAAE,MAAwC;QACtF,OAAO,MAAM,IAAI,CAAC,IAAI,CAAqC,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IAChG,CAAC;IAED,MAAM,CAAC,KAAK,CAAqC,KAAoB;QACnE,OAAO,IAAI,YAAY,CAAa,KAAK,CAAC,CAAC;IAC7C,CAAC;CACF;AApBD,oCAoBC"}
|