@lovrabet/sdk 1.1.12 → 1.1.14
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/LICENSE +58 -0
- package/README.md +355 -233
- package/dist/index.js +1 -1
- package/dist/src/http/post.d.ts +1 -1
- package/dist/src/models/openapi-model.d.ts +2 -0
- package/dist/src/types/index.d.ts +2 -0
- package/package.json +2 -1
package/dist/src/http/post.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const post: <ResponseData>(url: string, body?: Record<string, any>, init?: RequestInit) => Promise<ResponseData>;
|
|
1
|
+
export declare const post: <ResponseData>(url: string, body?: Record<string, any>, init?: RequestInit, debug?: boolean) => Promise<ResponseData>;
|
|
@@ -10,6 +10,8 @@ export declare class OpenApiModel extends AbstractBaseModel {
|
|
|
10
10
|
protected getApiPath(sdkMethod: string): string;
|
|
11
11
|
/**
|
|
12
12
|
* OpenAPI 模式的请求体构建策略
|
|
13
|
+
* 认证信息(token、timeStamp)由 HttpClient 自动添加到请求头(Header)中
|
|
14
|
+
* 请求体只包含业务数据
|
|
13
15
|
*/
|
|
14
16
|
protected buildRequestBody(method: string, data: any): any;
|
|
15
17
|
}
|