@nvwa-app/sdk-functions 6.0.37 → 6.0.40
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/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -37,6 +37,8 @@ interface CreateOrderParams {
|
|
|
37
37
|
metadata?: Record<string, unknown>;
|
|
38
38
|
workspaceId?: string;
|
|
39
39
|
projectId?: string;
|
|
40
|
+
/** 前端实际终端类型:Desktop-web/Mobile-web/Wechat-H5/MP-Wechat/MP-Alipay/Android/IOS/Harmony */
|
|
41
|
+
endpointType?: string;
|
|
40
42
|
}
|
|
41
43
|
interface CreateOrderResult {
|
|
42
44
|
platformOrderId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -37,6 +37,8 @@ interface CreateOrderParams {
|
|
|
37
37
|
metadata?: Record<string, unknown>;
|
|
38
38
|
workspaceId?: string;
|
|
39
39
|
projectId?: string;
|
|
40
|
+
/** 前端实际终端类型:Desktop-web/Mobile-web/Wechat-H5/MP-Wechat/MP-Alipay/Android/IOS/Harmony */
|
|
41
|
+
endpointType?: string;
|
|
40
42
|
}
|
|
41
43
|
interface CreateOrderResult {
|
|
42
44
|
platformOrderId: string;
|
package/dist/index.js
CHANGED
|
@@ -166,7 +166,8 @@ function createPaymentClient(options) {
|
|
|
166
166
|
returnUrl: params.returnUrl,
|
|
167
167
|
successNotifyUrl: params.successNotifyUrl,
|
|
168
168
|
successNotifySecret: params.successNotifySecret,
|
|
169
|
-
metadata: params.metadata
|
|
169
|
+
metadata: params.metadata,
|
|
170
|
+
endpointType: params.endpointType
|
|
170
171
|
};
|
|
171
172
|
const data = await post("/api/platform/payment/create", payload);
|
|
172
173
|
return { platformOrderId: data.platformOrderId, payParams: data.payParams };
|
package/dist/index.mjs
CHANGED
|
@@ -123,7 +123,8 @@ function createPaymentClient(options) {
|
|
|
123
123
|
returnUrl: params.returnUrl,
|
|
124
124
|
successNotifyUrl: params.successNotifyUrl,
|
|
125
125
|
successNotifySecret: params.successNotifySecret,
|
|
126
|
-
metadata: params.metadata
|
|
126
|
+
metadata: params.metadata,
|
|
127
|
+
endpointType: params.endpointType
|
|
127
128
|
};
|
|
128
129
|
const data = await post("/api/platform/payment/create", payload);
|
|
129
130
|
return { platformOrderId: data.platformOrderId, payParams: data.payParams };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nvwa-app/sdk-functions",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.40",
|
|
4
4
|
"description": "NVWA Edge Functions SDK: db, payment gateway, auth, provider list. Use in Deno: import from 'npm:@nvwa-app/sdk-functions'.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|