@wenex/sdk 1.1.49 → 1.1.50
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/common/core/classes/restful.service.d.ts +38 -0
- package/common/core/classes/restful.service.js +21 -4
- package/common/core/classes/restful.service.js.map +1 -1
- package/common/core/helpers/brotli.helper.d.ts +8 -0
- package/common/core/helpers/brotli.helper.js +25 -0
- package/common/core/helpers/brotli.helper.js.map +1 -0
- package/common/core/helpers/index.d.ts +1 -0
- package/common/core/helpers/index.js +1 -0
- package/common/core/helpers/index.js.map +1 -1
- package/package.json +7 -1
|
@@ -20,6 +20,9 @@ export type RequestConfig<T extends object = Core> = Omit<AxiosRequestConfig, 'p
|
|
|
20
20
|
};
|
|
21
21
|
} & {
|
|
22
22
|
fullResponse?: boolean;
|
|
23
|
+
brotli?: {
|
|
24
|
+
quality: number;
|
|
25
|
+
} | boolean;
|
|
23
26
|
};
|
|
24
27
|
export type ResponseType<T extends object = Core, D = any, C extends RequestConfig<T> | undefined = RequestConfig<T>> = C extends {
|
|
25
28
|
fullResponse: true;
|
|
@@ -40,4 +43,39 @@ export declare class RestfulService<T extends Core, D extends Dto<Core>> extends
|
|
|
40
43
|
destroyById<Path extends object = object, C extends RequestConfig<T> = RequestConfig<T>>(id: string, config?: C): Promise<ResponseType<Data<Serializer<T, Path>>, Serializer<T, Path>, C>>;
|
|
41
44
|
updateBulk<C extends RequestConfig<T> = RequestConfig<T>>(data: Optional<D>, query: Query<T>, config?: C): Promise<ResponseType<Total, number, C>>;
|
|
42
45
|
updateById<Path extends object = object, C extends RequestConfig<T> = RequestConfig<T>>(id: string, data: Optional<D>, config?: C): Promise<ResponseType<Data<Serializer<T, Path>>, Serializer<T, Path>, C>>;
|
|
46
|
+
protected getParams(queryOrFilter: Query<any> | Filter<any>, config?: RequestConfig<any>): Promise<({
|
|
47
|
+
[x: string]: any;
|
|
48
|
+
$and?: import("mongoose").FilterQuery<any>[] | undefined;
|
|
49
|
+
$nor?: import("mongoose").FilterQuery<any>[] | undefined;
|
|
50
|
+
$or?: import("mongoose").FilterQuery<any>[] | undefined;
|
|
51
|
+
$text?: {
|
|
52
|
+
$search: string;
|
|
53
|
+
$language?: string;
|
|
54
|
+
$caseSensitive?: boolean;
|
|
55
|
+
$diacriticSensitive?: boolean;
|
|
56
|
+
};
|
|
57
|
+
$where?: string | Function;
|
|
58
|
+
$comment?: string;
|
|
59
|
+
$expr?: Record<string, any>;
|
|
60
|
+
_id?: import("mongoose").Condition<string>;
|
|
61
|
+
} | {
|
|
62
|
+
populate?: import("../interfaces/mongo").Populate;
|
|
63
|
+
projection?: import("../interfaces/mongo").Projection<any> | undefined;
|
|
64
|
+
pagination?: Pagination<any> | undefined;
|
|
65
|
+
query: Query<any>;
|
|
66
|
+
}) & {
|
|
67
|
+
[x: string]: any;
|
|
68
|
+
populate?: import("../interfaces/mongo").Populate;
|
|
69
|
+
projection?: import("../interfaces/mongo").Projection<any> | undefined;
|
|
70
|
+
pagination?: Pagination<any> | undefined;
|
|
71
|
+
query?: Query<any> | undefined;
|
|
72
|
+
zone?: string;
|
|
73
|
+
skip?: number;
|
|
74
|
+
limit?: number;
|
|
75
|
+
sort?: {
|
|
76
|
+
[x: string]: import("mongoose").SortOrder | {
|
|
77
|
+
$meta: "textScore";
|
|
78
|
+
} | undefined;
|
|
79
|
+
} | undefined;
|
|
80
|
+
}>;
|
|
43
81
|
}
|
|
@@ -5,7 +5,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.RestfulService = void 0;
|
|
7
7
|
const fetch_event_source_1 = require("@microsoft/fetch-event-source");
|
|
8
|
+
const brotli_compress_1 = require("brotli-compress");
|
|
9
|
+
const base64url_1 = __importDefault(require("base64url"));
|
|
10
|
+
const buffer_1 = __importDefault(require("buffer"));
|
|
8
11
|
const qs_1 = __importDefault(require("qs"));
|
|
12
|
+
const utils_1 = require("../utils");
|
|
9
13
|
const providers_1 = require("../providers");
|
|
10
14
|
class RestfulService extends providers_1.RequestService {
|
|
11
15
|
constructor(path, axios) {
|
|
@@ -15,7 +19,7 @@ class RestfulService extends providers_1.RequestService {
|
|
|
15
19
|
this.url = (path) => `/${this.path}${path ? `/${path}` : ''}`;
|
|
16
20
|
}
|
|
17
21
|
async count(query, config) {
|
|
18
|
-
const params =
|
|
22
|
+
const params = await this.getParams(query, config);
|
|
19
23
|
if (!config?.fullResponse) {
|
|
20
24
|
return (await this.get(this.url('count'), { ...config, params })).total;
|
|
21
25
|
}
|
|
@@ -42,13 +46,13 @@ class RestfulService extends providers_1.RequestService {
|
|
|
42
46
|
const authorization = this.axios.defaults.headers['Authorization'] || this.axios.defaults.headers.common['Authorization'];
|
|
43
47
|
if (authorization)
|
|
44
48
|
Object.assign(options.headers, { Authorization: authorization });
|
|
49
|
+
const params = await this.getParams(filter, config);
|
|
45
50
|
const baseURL = this.axios.defaults.baseURL?.replace(/\/$/, '');
|
|
46
|
-
const params = Object.assign({ ...filter }, { ...config?.params });
|
|
47
51
|
const input = `${baseURL}/${this.path}/cursor?${qs_1.default.stringify(params)}`;
|
|
48
52
|
await (0, fetch_event_source_1.fetchEventSource)(input, options);
|
|
49
53
|
}
|
|
50
54
|
async find(filter, config) {
|
|
51
|
-
const params =
|
|
55
|
+
const params = await this.getParams(filter, config);
|
|
52
56
|
if (!config?.fullResponse) {
|
|
53
57
|
return (await this.get(this.url(), { ...config, params })).items;
|
|
54
58
|
}
|
|
@@ -84,7 +88,7 @@ class RestfulService extends providers_1.RequestService {
|
|
|
84
88
|
return (await this.delete(this.url(`${id}/destroy`), config));
|
|
85
89
|
}
|
|
86
90
|
async updateBulk(data, query, config) {
|
|
87
|
-
const params =
|
|
91
|
+
const params = await this.getParams(query, config);
|
|
88
92
|
if (!config?.fullResponse) {
|
|
89
93
|
return (await this.patch(this.url('bulk'), data, { ...config, params })).total;
|
|
90
94
|
}
|
|
@@ -98,6 +102,19 @@ class RestfulService extends providers_1.RequestService {
|
|
|
98
102
|
else
|
|
99
103
|
return (await this.patch(this.url(id), data, config));
|
|
100
104
|
}
|
|
105
|
+
// ###############################
|
|
106
|
+
// Private / Protected Method's
|
|
107
|
+
// ###############################
|
|
108
|
+
async getParams(queryOrFilter, config) {
|
|
109
|
+
if (config?.brotli) {
|
|
110
|
+
const quality = typeof config?.brotli === 'object' ? config?.brotli.quality : 8;
|
|
111
|
+
const params = (0, utils_1.toString)(Object.assign({ ...queryOrFilter }, { ...config?.params }));
|
|
112
|
+
const compressed = await (0, brotli_compress_1.compress)(new TextEncoder().encode(params), { quality: quality });
|
|
113
|
+
return { q: base64url_1.default.encode(buffer_1.default.Buffer.from(compressed)) };
|
|
114
|
+
}
|
|
115
|
+
else
|
|
116
|
+
return Object.assign({ ...queryOrFilter }, { ...config?.params });
|
|
117
|
+
}
|
|
101
118
|
}
|
|
102
119
|
exports.RestfulService = RestfulService;
|
|
103
120
|
//# sourceMappingURL=restful.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restful.service.js","sourceRoot":"","sources":["../../../src/common/core/classes/restful.service.ts"],"names":[],"mappings":";;;;;;AAAA,sEAAuF;AAEvF,4CAAoB;
|
|
1
|
+
{"version":3,"file":"restful.service.js","sourceRoot":"","sources":["../../../src/common/core/classes/restful.service.ts"],"names":[],"mappings":";;;;;;AAAA,sEAAuF;AAEvF,qDAA2C;AAC3C,0DAAkC;AAClC,oDAA4B;AAC5B,4CAAoB;AAEpB,oCAAoC;AAEpC,4CAA8C;AAoB9C,MAAa,cAAoD,SAAQ,0BAAc;IAGrF,YACqB,IAAgB,EAChB,KAAoB;QAEvC,KAAK,CAAC,KAAK,CAAC,CAAC;QAHM,SAAI,GAAJ,IAAI,CAAY;QAChB,UAAK,GAAL,KAAK,CAAe;QAJtB,QAAG,GAAG,CAAC,IAAa,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,CA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?: BrotliWasmType;
|
|
4
|
+
compress(buf: Uint8Array<ArrayBufferLike>, quality?: number): Buffer<ArrayBuffer>;
|
|
5
|
+
decompress(buf: Uint8Array<ArrayBufferLike>): Buffer<ArrayBuffer>;
|
|
6
|
+
init(): Promise<this>;
|
|
7
|
+
static new(): Promise<Brotli>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Brotli = void 0;
|
|
4
|
+
class Brotli {
|
|
5
|
+
compress(buf, quality = 8) {
|
|
6
|
+
if (!this.brotli)
|
|
7
|
+
throw Error('brotli helper is not initialized');
|
|
8
|
+
return Buffer.from(this.brotli.compress(buf, { quality }));
|
|
9
|
+
}
|
|
10
|
+
decompress(buf) {
|
|
11
|
+
if (!this.brotli)
|
|
12
|
+
throw Error('brotli helper is not initialized');
|
|
13
|
+
return Buffer.from(this.brotli.decompress(buf));
|
|
14
|
+
}
|
|
15
|
+
async init() {
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
17
|
+
this.brotli = this.brotli ?? (await require('brotli-wasm'));
|
|
18
|
+
return this;
|
|
19
|
+
}
|
|
20
|
+
static async new() {
|
|
21
|
+
return new Brotli().init();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.Brotli = Brotli;
|
|
25
|
+
//# sourceMappingURL=brotli.helper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brotli.helper.js","sourceRoot":"","sources":["../../../src/common/core/helpers/brotli.helper.ts"],"names":[],"mappings":";;;AAEA,MAAa,MAAM;IAGjB,QAAQ,CAAC,GAAgC,EAAE,UAAkB,CAAC;QAC5D,IAAI,CAAC,IAAI,CAAC,MAAM;YAAE,MAAM,KAAK,CAAC,kCAAkC,CAAC,CAAC;QAClE,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;IAC7D,CAAC;IAED,UAAU,CAAC,GAAgC;QACzC,IAAI,CAAC,IAAI,CAAC,MAAM;YAAE,MAAM,KAAK,CAAC,kCAAkC,CAAC,CAAC;QAClE,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,IAAI;QACR,iEAAiE;QACjE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;QAC5D,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,GAAG;QACd,OAAO,IAAI,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;IAC7B,CAAC;CACF;AAtBD,wBAsBC"}
|
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./aes.helper"), exports);
|
|
18
|
+
__exportStar(require("./brotli.helper"), exports);
|
|
18
19
|
__exportStar(require("./hash.helper"), exports);
|
|
19
20
|
__exportStar(require("./machine.helper"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/core/helpers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,gDAA8B;AAC9B,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/core/helpers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,kDAAgC;AAChC,gDAA8B;AAC9B,mDAAiC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wenex/sdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.50",
|
|
4
4
|
"description": "Wenex SDK",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -41,10 +41,16 @@
|
|
|
41
41
|
"npm run lint"
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
|
+
"peerDependencies": {
|
|
45
|
+
"brotli-wasm": "^3.0.1"
|
|
46
|
+
},
|
|
44
47
|
"dependencies": {
|
|
45
48
|
"@microsoft/fetch-event-source": "^2.0.1",
|
|
46
49
|
"axios": "^1.7.9",
|
|
47
50
|
"base-x": "^5.0.0",
|
|
51
|
+
"base64url": "^3.0.1",
|
|
52
|
+
"brotli-compress": "^1.3.3",
|
|
53
|
+
"buffer": "^6.0.3",
|
|
48
54
|
"class-transformer": "^0.5.1",
|
|
49
55
|
"class-validator": "^0.14.1",
|
|
50
56
|
"cron-validate": "^1.4.5",
|