@blocklet/payment-js 1.15.26 → 1.15.28
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/lib/index.d.ts
CHANGED
|
@@ -237,9 +237,12 @@ declare const _default: {
|
|
|
237
237
|
del: (_params: string, data?: never) => Promise<import("sequelize").InferAttributes<import("@blocklet/payment-types").SubscriptionItem, {
|
|
238
238
|
omit: never;
|
|
239
239
|
}>>;
|
|
240
|
-
createUsageRecord: (data:
|
|
241
|
-
|
|
242
|
-
|
|
240
|
+
createUsageRecord: (data: {
|
|
241
|
+
quantity: number;
|
|
242
|
+
action?: "increment" | "set";
|
|
243
|
+
timestamp?: number;
|
|
244
|
+
subscription_item_id: string;
|
|
245
|
+
}, params?: never) => Promise<import("sequelize").InferAttributes<import("@blocklet/payment-types").UsageRecord, {
|
|
243
246
|
omit: never;
|
|
244
247
|
}>>;
|
|
245
248
|
listUsageRecordSummaries: (_params: import("@blocklet/payment-types").Pagination<{
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import type { Paginated, Pagination, TSubscriptionItemExpanded, TUsageRecordSummary } from '@blocklet/payment-types';
|
|
2
|
+
type UsageReportType = {
|
|
3
|
+
quantity: number;
|
|
4
|
+
action?: 'increment' | 'set';
|
|
5
|
+
timestamp?: number;
|
|
6
|
+
subscription_item_id: string;
|
|
7
|
+
};
|
|
2
8
|
declare const _default: {
|
|
3
9
|
create: (data: Partial<import("sequelize").InferAttributes<import("@blocklet/payment-types").SubscriptionItem, {
|
|
4
10
|
omit: never;
|
|
@@ -17,9 +23,7 @@ declare const _default: {
|
|
|
17
23
|
del: (_params: string, data?: never) => Promise<import("sequelize").InferAttributes<import("@blocklet/payment-types").SubscriptionItem, {
|
|
18
24
|
omit: never;
|
|
19
25
|
}>>;
|
|
20
|
-
createUsageRecord: (data:
|
|
21
|
-
omit: never;
|
|
22
|
-
}>>, params?: never) => Promise<import("sequelize").InferAttributes<import("@blocklet/payment-types").UsageRecord, {
|
|
26
|
+
createUsageRecord: (data: UsageReportType, params?: never) => Promise<import("sequelize").InferAttributes<import("@blocklet/payment-types").UsageRecord, {
|
|
23
27
|
omit: never;
|
|
24
28
|
}>>;
|
|
25
29
|
listUsageRecordSummaries: (_params: Pagination<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/payment-js",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.28",
|
|
4
4
|
"description": "Node.js client for Payment Kit",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"types",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"url": "https://github.com/blocklet/payment-kit/issues"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@blocklet/payment-types": "1.15.
|
|
39
|
+
"@blocklet/payment-types": "1.15.28",
|
|
40
40
|
"@blocklet/sdk": "1.16.33-beta-20241031-073543-49b1ff9b"
|
|
41
41
|
},
|
|
42
42
|
"importSort": {
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"type-fest": "^4.23.0",
|
|
63
63
|
"typescript": "^5.5.4"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "0978937b91bc34a90d0b41af665999d471cec63e"
|
|
66
66
|
}
|