@strimz/shared-types 0.11.0 → 0.11.2
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/agents.d.cts +2 -2
- package/dist/agents.d.ts +2 -2
- package/dist/analytics.d.cts +136 -136
- package/dist/analytics.d.ts +136 -136
- package/dist/api-keys.d.cts +20 -20
- package/dist/api-keys.d.ts +20 -20
- package/dist/compliance.d.cts +4 -4
- package/dist/compliance.d.ts +4 -4
- package/dist/customers.d.cts +6 -6
- package/dist/customers.d.ts +6 -6
- package/dist/events.d.cts +1435 -1435
- package/dist/events.d.ts +1435 -1435
- package/dist/index.d.cts +14 -14
- package/dist/index.d.ts +14 -14
- package/dist/invoices.d.cts +10 -10
- package/dist/invoices.d.ts +10 -10
- package/dist/merchants.d.cts +20 -20
- package/dist/merchants.d.ts +20 -20
- package/dist/payment-sessions.d.cts +16 -16
- package/dist/payment-sessions.d.ts +16 -16
- package/dist/refunds.d.cts +36 -36
- package/dist/refunds.d.ts +36 -36
- package/dist/storefronts.d.cts +27 -27
- package/dist/storefronts.d.ts +27 -27
- package/dist/subscriptions.d.cts +30 -30
- package/dist/subscriptions.d.ts +30 -30
- package/dist/transactions.d.cts +12 -12
- package/dist/transactions.d.ts +12 -12
- package/dist/webhooks.d.cts +22 -22
- package/dist/webhooks.d.ts +22 -22
- package/package.json +4 -4
package/dist/storefronts.d.cts
CHANGED
|
@@ -21,12 +21,12 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
21
21
|
updatedAt: z.ZodString;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
status: "draft" | "archived" | "published";
|
|
24
|
-
merchantId: string;
|
|
25
|
-
description: string | null;
|
|
26
24
|
id: string;
|
|
25
|
+
merchantId: string;
|
|
26
|
+
name: string;
|
|
27
27
|
createdAt: string;
|
|
28
|
+
description: string | null;
|
|
28
29
|
updatedAt: string;
|
|
29
|
-
name: string;
|
|
30
30
|
logoUrl: string | null;
|
|
31
31
|
slug: string;
|
|
32
32
|
coverImageUrl: string | null;
|
|
@@ -34,12 +34,12 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
34
34
|
socialLinks: string[];
|
|
35
35
|
}, {
|
|
36
36
|
status: "draft" | "archived" | "published";
|
|
37
|
-
merchantId: string;
|
|
38
|
-
description: string | null;
|
|
39
37
|
id: string;
|
|
38
|
+
merchantId: string;
|
|
39
|
+
name: string;
|
|
40
40
|
createdAt: string;
|
|
41
|
+
description: string | null;
|
|
41
42
|
updatedAt: string;
|
|
42
|
-
name: string;
|
|
43
43
|
logoUrl: string | null;
|
|
44
44
|
slug: string;
|
|
45
45
|
coverImageUrl: string | null;
|
|
@@ -60,17 +60,17 @@ declare const createStorefrontInputSchema: z.ZodObject<Pick<{
|
|
|
60
60
|
status: z.ZodEnum<["draft", "published", "archived"]>;
|
|
61
61
|
createdAt: z.ZodString;
|
|
62
62
|
updatedAt: z.ZodString;
|
|
63
|
-
}, "
|
|
64
|
-
description: string | null;
|
|
63
|
+
}, "name" | "description" | "logoUrl" | "slug" | "coverImageUrl" | "accentColor" | "socialLinks">, "strip", z.ZodTypeAny, {
|
|
65
64
|
name: string;
|
|
65
|
+
description: string | null;
|
|
66
66
|
logoUrl: string | null;
|
|
67
67
|
slug: string;
|
|
68
68
|
coverImageUrl: string | null;
|
|
69
69
|
accentColor: string | null;
|
|
70
70
|
socialLinks: string[];
|
|
71
71
|
}, {
|
|
72
|
-
description: string | null;
|
|
73
72
|
name: string;
|
|
73
|
+
description: string | null;
|
|
74
74
|
logoUrl: string | null;
|
|
75
75
|
slug: string;
|
|
76
76
|
coverImageUrl: string | null;
|
|
@@ -101,12 +101,12 @@ declare const storefrontProductSchema: z.ZodObject<{
|
|
|
101
101
|
updatedAt: z.ZodString;
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
103
103
|
type: "subscription" | "one_time";
|
|
104
|
-
currency: "USDC" | "EURC";
|
|
105
|
-
description: string | null;
|
|
106
104
|
id: string;
|
|
105
|
+
name: string;
|
|
107
106
|
createdAt: string;
|
|
107
|
+
description: string | null;
|
|
108
|
+
currency: "USDC" | "EURC";
|
|
108
109
|
updatedAt: string;
|
|
109
|
-
name: string;
|
|
110
110
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
|
|
111
111
|
intervalCount: number | null;
|
|
112
112
|
planId: string | null;
|
|
@@ -118,12 +118,12 @@ declare const storefrontProductSchema: z.ZodObject<{
|
|
|
118
118
|
sortOrder: number;
|
|
119
119
|
}, {
|
|
120
120
|
type: "subscription" | "one_time";
|
|
121
|
-
currency: "USDC" | "EURC";
|
|
122
|
-
description: string | null;
|
|
123
121
|
id: string;
|
|
122
|
+
name: string;
|
|
124
123
|
createdAt: string;
|
|
124
|
+
description: string | null;
|
|
125
|
+
currency: "USDC" | "EURC";
|
|
125
126
|
updatedAt: string;
|
|
126
|
-
name: string;
|
|
127
127
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
|
|
128
128
|
intervalCount: number | null;
|
|
129
129
|
planId: string | null;
|
|
@@ -137,9 +137,9 @@ declare const storefrontProductSchema: z.ZodObject<{
|
|
|
137
137
|
type StorefrontProduct = z.infer<typeof storefrontProductSchema>;
|
|
138
138
|
declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
|
|
139
139
|
type: z.ZodEnum<["one_time", "subscription"]>;
|
|
140
|
-
currency: z.ZodEnum<["USDC", "EURC"]>;
|
|
141
|
-
description: z.ZodNullable<z.ZodString>;
|
|
142
140
|
name: z.ZodString;
|
|
141
|
+
description: z.ZodNullable<z.ZodString>;
|
|
142
|
+
currency: z.ZodEnum<["USDC", "EURC"]>;
|
|
143
143
|
interval: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "quarterly", "yearly"]>>;
|
|
144
144
|
intervalCount: z.ZodNullable<z.ZodNumber>;
|
|
145
145
|
price: z.ZodString;
|
|
@@ -151,9 +151,9 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
151
151
|
planId: z.ZodOptional<z.ZodString>;
|
|
152
152
|
}, "strip", z.ZodTypeAny, {
|
|
153
153
|
type: "subscription" | "one_time";
|
|
154
|
-
currency: "USDC" | "EURC";
|
|
155
|
-
description: string | null;
|
|
156
154
|
name: string;
|
|
155
|
+
description: string | null;
|
|
156
|
+
currency: "USDC" | "EURC";
|
|
157
157
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
|
|
158
158
|
intervalCount: number | null;
|
|
159
159
|
price: string;
|
|
@@ -164,9 +164,9 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
164
164
|
imageUrl?: string | undefined;
|
|
165
165
|
}, {
|
|
166
166
|
type: "subscription" | "one_time";
|
|
167
|
-
currency: "USDC" | "EURC";
|
|
168
|
-
description: string | null;
|
|
169
167
|
name: string;
|
|
168
|
+
description: string | null;
|
|
169
|
+
currency: "USDC" | "EURC";
|
|
170
170
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
|
|
171
171
|
intervalCount: number | null;
|
|
172
172
|
price: string;
|
|
@@ -177,9 +177,9 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
177
177
|
sortOrder?: number | undefined;
|
|
178
178
|
}>, {
|
|
179
179
|
type: "subscription" | "one_time";
|
|
180
|
-
currency: "USDC" | "EURC";
|
|
181
|
-
description: string | null;
|
|
182
180
|
name: string;
|
|
181
|
+
description: string | null;
|
|
182
|
+
currency: "USDC" | "EURC";
|
|
183
183
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
|
|
184
184
|
intervalCount: number | null;
|
|
185
185
|
price: string;
|
|
@@ -190,9 +190,9 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
190
190
|
imageUrl?: string | undefined;
|
|
191
191
|
}, {
|
|
192
192
|
type: "subscription" | "one_time";
|
|
193
|
-
currency: "USDC" | "EURC";
|
|
194
|
-
description: string | null;
|
|
195
193
|
name: string;
|
|
194
|
+
description: string | null;
|
|
195
|
+
currency: "USDC" | "EURC";
|
|
196
196
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
|
|
197
197
|
intervalCount: number | null;
|
|
198
198
|
price: string;
|
|
@@ -232,12 +232,12 @@ declare const storefrontCheckoutResponseSchema: z.ZodObject<{
|
|
|
232
232
|
/** Which downstream checkout the URL points at. */
|
|
233
233
|
kind: z.ZodEnum<["payment_session", "subscription_plan"]>;
|
|
234
234
|
}, "strip", z.ZodTypeAny, {
|
|
235
|
-
checkoutUrl: string;
|
|
236
235
|
kind: "payment_session" | "subscription_plan";
|
|
236
|
+
checkoutUrl: string;
|
|
237
237
|
ref: string;
|
|
238
238
|
}, {
|
|
239
|
-
checkoutUrl: string;
|
|
240
239
|
kind: "payment_session" | "subscription_plan";
|
|
240
|
+
checkoutUrl: string;
|
|
241
241
|
ref: string;
|
|
242
242
|
}>;
|
|
243
243
|
type StorefrontCheckoutResponse = z.infer<typeof storefrontCheckoutResponseSchema>;
|
package/dist/storefronts.d.ts
CHANGED
|
@@ -21,12 +21,12 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
21
21
|
updatedAt: z.ZodString;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
status: "draft" | "archived" | "published";
|
|
24
|
-
merchantId: string;
|
|
25
|
-
description: string | null;
|
|
26
24
|
id: string;
|
|
25
|
+
merchantId: string;
|
|
26
|
+
name: string;
|
|
27
27
|
createdAt: string;
|
|
28
|
+
description: string | null;
|
|
28
29
|
updatedAt: string;
|
|
29
|
-
name: string;
|
|
30
30
|
logoUrl: string | null;
|
|
31
31
|
slug: string;
|
|
32
32
|
coverImageUrl: string | null;
|
|
@@ -34,12 +34,12 @@ declare const storefrontSchema: z.ZodObject<{
|
|
|
34
34
|
socialLinks: string[];
|
|
35
35
|
}, {
|
|
36
36
|
status: "draft" | "archived" | "published";
|
|
37
|
-
merchantId: string;
|
|
38
|
-
description: string | null;
|
|
39
37
|
id: string;
|
|
38
|
+
merchantId: string;
|
|
39
|
+
name: string;
|
|
40
40
|
createdAt: string;
|
|
41
|
+
description: string | null;
|
|
41
42
|
updatedAt: string;
|
|
42
|
-
name: string;
|
|
43
43
|
logoUrl: string | null;
|
|
44
44
|
slug: string;
|
|
45
45
|
coverImageUrl: string | null;
|
|
@@ -60,17 +60,17 @@ declare const createStorefrontInputSchema: z.ZodObject<Pick<{
|
|
|
60
60
|
status: z.ZodEnum<["draft", "published", "archived"]>;
|
|
61
61
|
createdAt: z.ZodString;
|
|
62
62
|
updatedAt: z.ZodString;
|
|
63
|
-
}, "
|
|
64
|
-
description: string | null;
|
|
63
|
+
}, "name" | "description" | "logoUrl" | "slug" | "coverImageUrl" | "accentColor" | "socialLinks">, "strip", z.ZodTypeAny, {
|
|
65
64
|
name: string;
|
|
65
|
+
description: string | null;
|
|
66
66
|
logoUrl: string | null;
|
|
67
67
|
slug: string;
|
|
68
68
|
coverImageUrl: string | null;
|
|
69
69
|
accentColor: string | null;
|
|
70
70
|
socialLinks: string[];
|
|
71
71
|
}, {
|
|
72
|
-
description: string | null;
|
|
73
72
|
name: string;
|
|
73
|
+
description: string | null;
|
|
74
74
|
logoUrl: string | null;
|
|
75
75
|
slug: string;
|
|
76
76
|
coverImageUrl: string | null;
|
|
@@ -101,12 +101,12 @@ declare const storefrontProductSchema: z.ZodObject<{
|
|
|
101
101
|
updatedAt: z.ZodString;
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
103
103
|
type: "subscription" | "one_time";
|
|
104
|
-
currency: "USDC" | "EURC";
|
|
105
|
-
description: string | null;
|
|
106
104
|
id: string;
|
|
105
|
+
name: string;
|
|
107
106
|
createdAt: string;
|
|
107
|
+
description: string | null;
|
|
108
|
+
currency: "USDC" | "EURC";
|
|
108
109
|
updatedAt: string;
|
|
109
|
-
name: string;
|
|
110
110
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
|
|
111
111
|
intervalCount: number | null;
|
|
112
112
|
planId: string | null;
|
|
@@ -118,12 +118,12 @@ declare const storefrontProductSchema: z.ZodObject<{
|
|
|
118
118
|
sortOrder: number;
|
|
119
119
|
}, {
|
|
120
120
|
type: "subscription" | "one_time";
|
|
121
|
-
currency: "USDC" | "EURC";
|
|
122
|
-
description: string | null;
|
|
123
121
|
id: string;
|
|
122
|
+
name: string;
|
|
124
123
|
createdAt: string;
|
|
124
|
+
description: string | null;
|
|
125
|
+
currency: "USDC" | "EURC";
|
|
125
126
|
updatedAt: string;
|
|
126
|
-
name: string;
|
|
127
127
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
|
|
128
128
|
intervalCount: number | null;
|
|
129
129
|
planId: string | null;
|
|
@@ -137,9 +137,9 @@ declare const storefrontProductSchema: z.ZodObject<{
|
|
|
137
137
|
type StorefrontProduct = z.infer<typeof storefrontProductSchema>;
|
|
138
138
|
declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
|
|
139
139
|
type: z.ZodEnum<["one_time", "subscription"]>;
|
|
140
|
-
currency: z.ZodEnum<["USDC", "EURC"]>;
|
|
141
|
-
description: z.ZodNullable<z.ZodString>;
|
|
142
140
|
name: z.ZodString;
|
|
141
|
+
description: z.ZodNullable<z.ZodString>;
|
|
142
|
+
currency: z.ZodEnum<["USDC", "EURC"]>;
|
|
143
143
|
interval: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "quarterly", "yearly"]>>;
|
|
144
144
|
intervalCount: z.ZodNullable<z.ZodNumber>;
|
|
145
145
|
price: z.ZodString;
|
|
@@ -151,9 +151,9 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
151
151
|
planId: z.ZodOptional<z.ZodString>;
|
|
152
152
|
}, "strip", z.ZodTypeAny, {
|
|
153
153
|
type: "subscription" | "one_time";
|
|
154
|
-
currency: "USDC" | "EURC";
|
|
155
|
-
description: string | null;
|
|
156
154
|
name: string;
|
|
155
|
+
description: string | null;
|
|
156
|
+
currency: "USDC" | "EURC";
|
|
157
157
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
|
|
158
158
|
intervalCount: number | null;
|
|
159
159
|
price: string;
|
|
@@ -164,9 +164,9 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
164
164
|
imageUrl?: string | undefined;
|
|
165
165
|
}, {
|
|
166
166
|
type: "subscription" | "one_time";
|
|
167
|
-
currency: "USDC" | "EURC";
|
|
168
|
-
description: string | null;
|
|
169
167
|
name: string;
|
|
168
|
+
description: string | null;
|
|
169
|
+
currency: "USDC" | "EURC";
|
|
170
170
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
|
|
171
171
|
intervalCount: number | null;
|
|
172
172
|
price: string;
|
|
@@ -177,9 +177,9 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
177
177
|
sortOrder?: number | undefined;
|
|
178
178
|
}>, {
|
|
179
179
|
type: "subscription" | "one_time";
|
|
180
|
-
currency: "USDC" | "EURC";
|
|
181
|
-
description: string | null;
|
|
182
180
|
name: string;
|
|
181
|
+
description: string | null;
|
|
182
|
+
currency: "USDC" | "EURC";
|
|
183
183
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
|
|
184
184
|
intervalCount: number | null;
|
|
185
185
|
price: string;
|
|
@@ -190,9 +190,9 @@ declare const createStorefrontProductInputSchema: z.ZodEffects<z.ZodObject<{
|
|
|
190
190
|
imageUrl?: string | undefined;
|
|
191
191
|
}, {
|
|
192
192
|
type: "subscription" | "one_time";
|
|
193
|
-
currency: "USDC" | "EURC";
|
|
194
|
-
description: string | null;
|
|
195
193
|
name: string;
|
|
194
|
+
description: string | null;
|
|
195
|
+
currency: "USDC" | "EURC";
|
|
196
196
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
|
|
197
197
|
intervalCount: number | null;
|
|
198
198
|
price: string;
|
|
@@ -232,12 +232,12 @@ declare const storefrontCheckoutResponseSchema: z.ZodObject<{
|
|
|
232
232
|
/** Which downstream checkout the URL points at. */
|
|
233
233
|
kind: z.ZodEnum<["payment_session", "subscription_plan"]>;
|
|
234
234
|
}, "strip", z.ZodTypeAny, {
|
|
235
|
-
checkoutUrl: string;
|
|
236
235
|
kind: "payment_session" | "subscription_plan";
|
|
236
|
+
checkoutUrl: string;
|
|
237
237
|
ref: string;
|
|
238
238
|
}, {
|
|
239
|
-
checkoutUrl: string;
|
|
240
239
|
kind: "payment_session" | "subscription_plan";
|
|
240
|
+
checkoutUrl: string;
|
|
241
241
|
ref: string;
|
|
242
242
|
}>;
|
|
243
243
|
type StorefrontCheckoutResponse = z.infer<typeof storefrontCheckoutResponseSchema>;
|
package/dist/subscriptions.d.cts
CHANGED
|
@@ -48,34 +48,34 @@ declare const subscriptionPlanSchema: z.ZodObject<{
|
|
|
48
48
|
updatedAt: z.ZodString;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
50
|
status: "active" | "archived";
|
|
51
|
-
amount: string;
|
|
52
|
-
currency: "USDC" | "EURC";
|
|
53
|
-
merchantId: string;
|
|
54
|
-
description: string | null;
|
|
55
51
|
id: string;
|
|
52
|
+
merchantId: string;
|
|
53
|
+
name: string;
|
|
56
54
|
createdAt: string;
|
|
55
|
+
description: string | null;
|
|
56
|
+
currency: "USDC" | "EURC";
|
|
57
57
|
updatedAt: string;
|
|
58
58
|
chainMerchantId: string | null;
|
|
59
59
|
tokenAddress: string | null;
|
|
60
|
+
amount: string;
|
|
60
61
|
metadata: Record<string, string | number | boolean | null>;
|
|
61
62
|
intervalSeconds: number;
|
|
62
|
-
name: string;
|
|
63
63
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
64
64
|
intervalCount: number;
|
|
65
65
|
trialPeriodDays: number | null;
|
|
66
66
|
}, {
|
|
67
67
|
status: "active" | "archived";
|
|
68
|
-
amount: string;
|
|
69
|
-
currency: "USDC" | "EURC";
|
|
70
|
-
merchantId: string;
|
|
71
|
-
description: string | null;
|
|
72
68
|
id: string;
|
|
69
|
+
merchantId: string;
|
|
70
|
+
name: string;
|
|
73
71
|
createdAt: string;
|
|
72
|
+
description: string | null;
|
|
73
|
+
currency: "USDC" | "EURC";
|
|
74
74
|
updatedAt: string;
|
|
75
75
|
chainMerchantId: string | null;
|
|
76
76
|
tokenAddress: string | null;
|
|
77
|
+
amount: string;
|
|
77
78
|
intervalSeconds: number;
|
|
78
|
-
name: string;
|
|
79
79
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
80
80
|
intervalCount: number;
|
|
81
81
|
trialPeriodDays: number | null;
|
|
@@ -92,18 +92,18 @@ declare const createSubscriptionPlanInputSchema: z.ZodObject<{
|
|
|
92
92
|
trialPeriodDays: z.ZodOptional<z.ZodNumber>;
|
|
93
93
|
metadata: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>>>;
|
|
94
94
|
}, "strip", z.ZodTypeAny, {
|
|
95
|
-
amount: string;
|
|
96
|
-
currency: "USDC" | "EURC";
|
|
97
95
|
name: string;
|
|
96
|
+
currency: "USDC" | "EURC";
|
|
97
|
+
amount: string;
|
|
98
98
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
99
99
|
intervalCount: number;
|
|
100
100
|
description?: string | undefined;
|
|
101
101
|
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
102
102
|
trialPeriodDays?: number | undefined;
|
|
103
103
|
}, {
|
|
104
|
-
amount: string;
|
|
105
|
-
currency: "USDC" | "EURC";
|
|
106
104
|
name: string;
|
|
105
|
+
currency: "USDC" | "EURC";
|
|
106
|
+
amount: string;
|
|
107
107
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
108
108
|
description?: string | undefined;
|
|
109
109
|
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
@@ -136,14 +136,14 @@ declare const subscriptionSchema: z.ZodObject<{
|
|
|
136
136
|
createdAt: z.ZodString;
|
|
137
137
|
updatedAt: z.ZodString;
|
|
138
138
|
}, "strip", z.ZodTypeAny, {
|
|
139
|
-
status: "cancelled" | "
|
|
140
|
-
amount: string;
|
|
141
|
-
currency: "USDC" | "EURC";
|
|
142
|
-
customerId: string;
|
|
143
|
-
merchantId: string;
|
|
139
|
+
status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
|
|
144
140
|
id: string;
|
|
141
|
+
merchantId: string;
|
|
145
142
|
createdAt: string;
|
|
143
|
+
currency: "USDC" | "EURC";
|
|
146
144
|
updatedAt: string;
|
|
145
|
+
customerId: string;
|
|
146
|
+
amount: string;
|
|
147
147
|
metadata: Record<string, string | number | boolean | null>;
|
|
148
148
|
payerAddress: string;
|
|
149
149
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
@@ -157,14 +157,14 @@ declare const subscriptionSchema: z.ZodObject<{
|
|
|
157
157
|
gracePeriodHours: number;
|
|
158
158
|
cancelledAt: string | null;
|
|
159
159
|
}, {
|
|
160
|
-
status: "cancelled" | "
|
|
161
|
-
amount: string;
|
|
162
|
-
currency: "USDC" | "EURC";
|
|
163
|
-
customerId: string;
|
|
164
|
-
merchantId: string;
|
|
160
|
+
status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
|
|
165
161
|
id: string;
|
|
162
|
+
merchantId: string;
|
|
166
163
|
createdAt: string;
|
|
164
|
+
currency: "USDC" | "EURC";
|
|
167
165
|
updatedAt: string;
|
|
166
|
+
customerId: string;
|
|
167
|
+
amount: string;
|
|
168
168
|
payerAddress: string;
|
|
169
169
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
170
170
|
intervalCount: number;
|
|
@@ -241,12 +241,12 @@ declare const subscriptionChargeSchema: z.ZodObject<{
|
|
|
241
241
|
updatedAt: z.ZodString;
|
|
242
242
|
}, "strip", z.ZodTypeAny, {
|
|
243
243
|
status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
|
|
244
|
-
amount: string;
|
|
245
|
-
currency: "USDC" | "EURC";
|
|
246
|
-
merchantId: string;
|
|
247
244
|
id: string;
|
|
245
|
+
merchantId: string;
|
|
248
246
|
createdAt: string;
|
|
247
|
+
currency: "USDC" | "EURC";
|
|
249
248
|
updatedAt: string;
|
|
249
|
+
amount: string;
|
|
250
250
|
onchainTxHash: string | null;
|
|
251
251
|
failureReason: string | null;
|
|
252
252
|
subscriptionId: string;
|
|
@@ -259,12 +259,12 @@ declare const subscriptionChargeSchema: z.ZodObject<{
|
|
|
259
259
|
executedAt: string | null;
|
|
260
260
|
}, {
|
|
261
261
|
status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
|
|
262
|
-
amount: string;
|
|
263
|
-
currency: "USDC" | "EURC";
|
|
264
|
-
merchantId: string;
|
|
265
262
|
id: string;
|
|
263
|
+
merchantId: string;
|
|
266
264
|
createdAt: string;
|
|
265
|
+
currency: "USDC" | "EURC";
|
|
267
266
|
updatedAt: string;
|
|
267
|
+
amount: string;
|
|
268
268
|
onchainTxHash: string | null;
|
|
269
269
|
failureReason: string | null;
|
|
270
270
|
subscriptionId: string;
|
package/dist/subscriptions.d.ts
CHANGED
|
@@ -48,34 +48,34 @@ declare const subscriptionPlanSchema: z.ZodObject<{
|
|
|
48
48
|
updatedAt: z.ZodString;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
50
|
status: "active" | "archived";
|
|
51
|
-
amount: string;
|
|
52
|
-
currency: "USDC" | "EURC";
|
|
53
|
-
merchantId: string;
|
|
54
|
-
description: string | null;
|
|
55
51
|
id: string;
|
|
52
|
+
merchantId: string;
|
|
53
|
+
name: string;
|
|
56
54
|
createdAt: string;
|
|
55
|
+
description: string | null;
|
|
56
|
+
currency: "USDC" | "EURC";
|
|
57
57
|
updatedAt: string;
|
|
58
58
|
chainMerchantId: string | null;
|
|
59
59
|
tokenAddress: string | null;
|
|
60
|
+
amount: string;
|
|
60
61
|
metadata: Record<string, string | number | boolean | null>;
|
|
61
62
|
intervalSeconds: number;
|
|
62
|
-
name: string;
|
|
63
63
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
64
64
|
intervalCount: number;
|
|
65
65
|
trialPeriodDays: number | null;
|
|
66
66
|
}, {
|
|
67
67
|
status: "active" | "archived";
|
|
68
|
-
amount: string;
|
|
69
|
-
currency: "USDC" | "EURC";
|
|
70
|
-
merchantId: string;
|
|
71
|
-
description: string | null;
|
|
72
68
|
id: string;
|
|
69
|
+
merchantId: string;
|
|
70
|
+
name: string;
|
|
73
71
|
createdAt: string;
|
|
72
|
+
description: string | null;
|
|
73
|
+
currency: "USDC" | "EURC";
|
|
74
74
|
updatedAt: string;
|
|
75
75
|
chainMerchantId: string | null;
|
|
76
76
|
tokenAddress: string | null;
|
|
77
|
+
amount: string;
|
|
77
78
|
intervalSeconds: number;
|
|
78
|
-
name: string;
|
|
79
79
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
80
80
|
intervalCount: number;
|
|
81
81
|
trialPeriodDays: number | null;
|
|
@@ -92,18 +92,18 @@ declare const createSubscriptionPlanInputSchema: z.ZodObject<{
|
|
|
92
92
|
trialPeriodDays: z.ZodOptional<z.ZodNumber>;
|
|
93
93
|
metadata: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>, Record<string, string | number | boolean | null>, Record<string, string | number | boolean | null>>>>;
|
|
94
94
|
}, "strip", z.ZodTypeAny, {
|
|
95
|
-
amount: string;
|
|
96
|
-
currency: "USDC" | "EURC";
|
|
97
95
|
name: string;
|
|
96
|
+
currency: "USDC" | "EURC";
|
|
97
|
+
amount: string;
|
|
98
98
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
99
99
|
intervalCount: number;
|
|
100
100
|
description?: string | undefined;
|
|
101
101
|
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
102
102
|
trialPeriodDays?: number | undefined;
|
|
103
103
|
}, {
|
|
104
|
-
amount: string;
|
|
105
|
-
currency: "USDC" | "EURC";
|
|
106
104
|
name: string;
|
|
105
|
+
currency: "USDC" | "EURC";
|
|
106
|
+
amount: string;
|
|
107
107
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
108
108
|
description?: string | undefined;
|
|
109
109
|
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
@@ -136,14 +136,14 @@ declare const subscriptionSchema: z.ZodObject<{
|
|
|
136
136
|
createdAt: z.ZodString;
|
|
137
137
|
updatedAt: z.ZodString;
|
|
138
138
|
}, "strip", z.ZodTypeAny, {
|
|
139
|
-
status: "cancelled" | "
|
|
140
|
-
amount: string;
|
|
141
|
-
currency: "USDC" | "EURC";
|
|
142
|
-
customerId: string;
|
|
143
|
-
merchantId: string;
|
|
139
|
+
status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
|
|
144
140
|
id: string;
|
|
141
|
+
merchantId: string;
|
|
145
142
|
createdAt: string;
|
|
143
|
+
currency: "USDC" | "EURC";
|
|
146
144
|
updatedAt: string;
|
|
145
|
+
customerId: string;
|
|
146
|
+
amount: string;
|
|
147
147
|
metadata: Record<string, string | number | boolean | null>;
|
|
148
148
|
payerAddress: string;
|
|
149
149
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
@@ -157,14 +157,14 @@ declare const subscriptionSchema: z.ZodObject<{
|
|
|
157
157
|
gracePeriodHours: number;
|
|
158
158
|
cancelledAt: string | null;
|
|
159
159
|
}, {
|
|
160
|
-
status: "cancelled" | "
|
|
161
|
-
amount: string;
|
|
162
|
-
currency: "USDC" | "EURC";
|
|
163
|
-
customerId: string;
|
|
164
|
-
merchantId: string;
|
|
160
|
+
status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
|
|
165
161
|
id: string;
|
|
162
|
+
merchantId: string;
|
|
166
163
|
createdAt: string;
|
|
164
|
+
currency: "USDC" | "EURC";
|
|
167
165
|
updatedAt: string;
|
|
166
|
+
customerId: string;
|
|
167
|
+
amount: string;
|
|
168
168
|
payerAddress: string;
|
|
169
169
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
170
170
|
intervalCount: number;
|
|
@@ -241,12 +241,12 @@ declare const subscriptionChargeSchema: z.ZodObject<{
|
|
|
241
241
|
updatedAt: z.ZodString;
|
|
242
242
|
}, "strip", z.ZodTypeAny, {
|
|
243
243
|
status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
|
|
244
|
-
amount: string;
|
|
245
|
-
currency: "USDC" | "EURC";
|
|
246
|
-
merchantId: string;
|
|
247
244
|
id: string;
|
|
245
|
+
merchantId: string;
|
|
248
246
|
createdAt: string;
|
|
247
|
+
currency: "USDC" | "EURC";
|
|
249
248
|
updatedAt: string;
|
|
249
|
+
amount: string;
|
|
250
250
|
onchainTxHash: string | null;
|
|
251
251
|
failureReason: string | null;
|
|
252
252
|
subscriptionId: string;
|
|
@@ -259,12 +259,12 @@ declare const subscriptionChargeSchema: z.ZodObject<{
|
|
|
259
259
|
executedAt: string | null;
|
|
260
260
|
}, {
|
|
261
261
|
status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
|
|
262
|
-
amount: string;
|
|
263
|
-
currency: "USDC" | "EURC";
|
|
264
|
-
merchantId: string;
|
|
265
262
|
id: string;
|
|
263
|
+
merchantId: string;
|
|
266
264
|
createdAt: string;
|
|
265
|
+
currency: "USDC" | "EURC";
|
|
267
266
|
updatedAt: string;
|
|
267
|
+
amount: string;
|
|
268
268
|
onchainTxHash: string | null;
|
|
269
269
|
failureReason: string | null;
|
|
270
270
|
subscriptionId: string;
|
package/dist/transactions.d.cts
CHANGED
|
@@ -34,19 +34,19 @@ declare const transactionSchema: z.ZodObject<{
|
|
|
34
34
|
createdAt: z.ZodString;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
36
|
status: "confirmed" | "failed" | "pending";
|
|
37
|
-
amount: string;
|
|
38
|
-
currency: "USDC" | "EURC";
|
|
39
|
-
customerId: string | null;
|
|
40
|
-
merchantId: string;
|
|
41
37
|
id: string;
|
|
42
|
-
|
|
38
|
+
merchantId: string;
|
|
39
|
+
kind: "refund" | "one_shot" | "subscription_charge" | "invoice_payment" | "storefront_purchase";
|
|
43
40
|
createdAt: string;
|
|
41
|
+
currency: "USDC" | "EURC";
|
|
42
|
+
sessionId: string | null;
|
|
43
|
+
customerId: string | null;
|
|
44
|
+
amount: string;
|
|
44
45
|
feeAmount: string;
|
|
45
46
|
netAmount: string;
|
|
46
47
|
onchainTxHash: string;
|
|
47
48
|
payerAddress: string;
|
|
48
49
|
subscriptionId: string | null;
|
|
49
|
-
kind: "refund" | "one_shot" | "subscription_charge" | "invoice_payment" | "storefront_purchase";
|
|
50
50
|
subscriptionChargeId: string | null;
|
|
51
51
|
refundId: string | null;
|
|
52
52
|
merchantAddress: string;
|
|
@@ -54,19 +54,19 @@ declare const transactionSchema: z.ZodObject<{
|
|
|
54
54
|
blockTimestamp: string;
|
|
55
55
|
}, {
|
|
56
56
|
status: "confirmed" | "failed" | "pending";
|
|
57
|
-
amount: string;
|
|
58
|
-
currency: "USDC" | "EURC";
|
|
59
|
-
customerId: string | null;
|
|
60
|
-
merchantId: string;
|
|
61
57
|
id: string;
|
|
62
|
-
|
|
58
|
+
merchantId: string;
|
|
59
|
+
kind: "refund" | "one_shot" | "subscription_charge" | "invoice_payment" | "storefront_purchase";
|
|
63
60
|
createdAt: string;
|
|
61
|
+
currency: "USDC" | "EURC";
|
|
62
|
+
sessionId: string | null;
|
|
63
|
+
customerId: string | null;
|
|
64
|
+
amount: string;
|
|
64
65
|
feeAmount: string;
|
|
65
66
|
netAmount: string;
|
|
66
67
|
onchainTxHash: string;
|
|
67
68
|
payerAddress: string;
|
|
68
69
|
subscriptionId: string | null;
|
|
69
|
-
kind: "refund" | "one_shot" | "subscription_charge" | "invoice_payment" | "storefront_purchase";
|
|
70
70
|
subscriptionChargeId: string | null;
|
|
71
71
|
refundId: string | null;
|
|
72
72
|
merchantAddress: string;
|