@wenex/sdk 1.3.7 → 1.3.9
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/package.json
CHANGED
|
@@ -9,6 +9,6 @@ export declare class PostsService<Properties extends object = object> extends Re
|
|
|
9
9
|
protected readonly axios: AxiosInstance;
|
|
10
10
|
protected readonly pathPrefix: string;
|
|
11
11
|
constructor(axios: AxiosInstance, pathPrefix?: string);
|
|
12
|
-
search<C extends RequestConfig<Post<Properties>> = RequestConfig<Post<Properties>>>(
|
|
12
|
+
search<C extends RequestConfig<Post<Properties>> = RequestConfig<Post<Properties>>>(filter: Filter<Post<Properties>>, request: SearchRequest, config?: C): Promise<ResponseType<Data<SearchResponse<Post<Properties>>>, SearchResponse<Post<Properties>>, C>>;
|
|
13
13
|
static build<Properties extends object = object>(axios: AxiosInstance, prefix?: string): PostsService<Properties>;
|
|
14
14
|
}
|
|
@@ -9,7 +9,7 @@ class PostsService extends classes_1.RestfulService {
|
|
|
9
9
|
this.axios = axios;
|
|
10
10
|
this.pathPrefix = pathPrefix;
|
|
11
11
|
}
|
|
12
|
-
async search(
|
|
12
|
+
async search(filter, request, config) {
|
|
13
13
|
const params = await (0, utils_1.getParams)(config, filter);
|
|
14
14
|
const response = await this.post(this.url('search'), request, {
|
|
15
15
|
...config,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"posts.service.js","sourceRoot":"","sources":["../../src/services/content/posts.service.ts"],"names":[],"mappings":";;;AAGA,mDAAoD;AACpD,uDAA2D;AAM3D,MAAa,YAAiD,SAAQ,wBAAqD;IACzH,YACqB,KAAoB,EACpB,aAAqB,GAAG;QAE3C,KAAK,CAAC,eAAe,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC;QAHvB,UAAK,GAAL,KAAK,CAAe;QACpB,eAAU,GAAV,UAAU,CAAc;IAG7C,CAAC;IAED,KAAK,CAAC,MAAM,CACV,OAAsB,EACtB,
|
|
1
|
+
{"version":3,"file":"posts.service.js","sourceRoot":"","sources":["../../src/services/content/posts.service.ts"],"names":[],"mappings":";;;AAGA,mDAAoD;AACpD,uDAA2D;AAM3D,MAAa,YAAiD,SAAQ,wBAAqD;IACzH,YACqB,KAAoB,EACpB,aAAqB,GAAG;QAE3C,KAAK,CAAC,eAAe,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC;QAHvB,UAAK,GAAL,KAAK,CAAe;QACpB,eAAU,GAAV,UAAU,CAAc;IAG7C,CAAC;IAED,KAAK,CAAC,MAAM,CACV,MAAgC,EAChC,OAAsB,EACtB,MAAU;QAEV,MAAM,MAAM,GAAG,MAAM,IAAA,iBAAS,EAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QAI/C,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,IAAI,CAAwD,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE;YACnH,GAAG,MAAM;YACT,MAAM;SACP,CAAC,CAAC;QAEH,OAAO,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAa,CAAC;IACvE,CAAC;IAED,MAAM,CAAC,KAAK,CAAqC,KAAoB,EAAE,SAAiB,GAAG;QACzF,OAAO,IAAI,YAAY,CAAa,KAAK,EAAE,MAAM,IAAI,GAAG,CAAC,CAAC;IAC5D,CAAC;CACF;AA5BD,oCA4BC"}
|