@strimz/shared-types 0.13.1 → 0.14.0
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/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.cjs +1 -25
- package/dist/events.cjs.map +1 -1
- package/dist/events.d.cts +1343 -2149
- package/dist/events.d.ts +1343 -2149
- package/dist/events.js +2 -23
- package/dist/events.js.map +1 -1
- package/dist/index.cjs +0 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -15
- package/dist/index.d.ts +15 -15
- package/dist/index.js +1 -22
- package/dist/index.js.map +1 -1
- 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.cjs +0 -3
- package/dist/webhooks.cjs.map +1 -1
- package/dist/webhooks.d.cts +40 -40
- package/dist/webhooks.d.ts +40 -40
- package/dist/webhooks.js +0 -3
- package/dist/webhooks.js.map +1 -1
- package/package.json +2 -2
- package/src/events.ts +1 -24
- package/src/webhooks.ts +0 -3
package/dist/refunds.d.cts
CHANGED
|
@@ -29,12 +29,12 @@ declare const refundSchema: z.ZodObject<{
|
|
|
29
29
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
31
|
status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
|
|
32
|
-
|
|
33
|
-
merchantId: string;
|
|
34
|
-
createdAt: string;
|
|
32
|
+
amount: string;
|
|
35
33
|
currency: "USDC" | "EURC";
|
|
34
|
+
merchantId: string;
|
|
35
|
+
id: string;
|
|
36
36
|
note: string | null;
|
|
37
|
-
|
|
37
|
+
createdAt: string;
|
|
38
38
|
transactionId: string;
|
|
39
39
|
reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
|
|
40
40
|
payerAddress: string;
|
|
@@ -44,12 +44,12 @@ declare const refundSchema: z.ZodObject<{
|
|
|
44
44
|
completedAt: string | null;
|
|
45
45
|
}, {
|
|
46
46
|
status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
|
|
47
|
-
|
|
48
|
-
merchantId: string;
|
|
49
|
-
createdAt: string;
|
|
47
|
+
amount: string;
|
|
50
48
|
currency: "USDC" | "EURC";
|
|
49
|
+
merchantId: string;
|
|
50
|
+
id: string;
|
|
51
51
|
note: string | null;
|
|
52
|
-
|
|
52
|
+
createdAt: string;
|
|
53
53
|
transactionId: string;
|
|
54
54
|
reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
|
|
55
55
|
payerAddress: string;
|
|
@@ -100,15 +100,15 @@ declare const refundSigningInstructionsSchema: z.ZodObject<{
|
|
|
100
100
|
amount: z.ZodString;
|
|
101
101
|
note: z.ZodString;
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
103
|
-
note: string;
|
|
104
103
|
amount: string;
|
|
105
|
-
token: string;
|
|
106
104
|
to: string;
|
|
107
|
-
}, {
|
|
108
105
|
note: string;
|
|
109
|
-
amount: string;
|
|
110
106
|
token: string;
|
|
107
|
+
}, {
|
|
108
|
+
amount: string;
|
|
111
109
|
to: string;
|
|
110
|
+
note: string;
|
|
111
|
+
token: string;
|
|
112
112
|
}>;
|
|
113
113
|
type RefundSigningInstructions = z.infer<typeof refundSigningInstructionsSchema>;
|
|
114
114
|
declare const refundCreateOutputSchema: z.ZodObject<{
|
|
@@ -129,12 +129,12 @@ declare const refundCreateOutputSchema: z.ZodObject<{
|
|
|
129
129
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
130
130
|
}, "strip", z.ZodTypeAny, {
|
|
131
131
|
status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
|
|
132
|
-
|
|
133
|
-
merchantId: string;
|
|
134
|
-
createdAt: string;
|
|
132
|
+
amount: string;
|
|
135
133
|
currency: "USDC" | "EURC";
|
|
134
|
+
merchantId: string;
|
|
135
|
+
id: string;
|
|
136
136
|
note: string | null;
|
|
137
|
-
|
|
137
|
+
createdAt: string;
|
|
138
138
|
transactionId: string;
|
|
139
139
|
reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
|
|
140
140
|
payerAddress: string;
|
|
@@ -144,12 +144,12 @@ declare const refundCreateOutputSchema: z.ZodObject<{
|
|
|
144
144
|
completedAt: string | null;
|
|
145
145
|
}, {
|
|
146
146
|
status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
|
|
147
|
-
|
|
148
|
-
merchantId: string;
|
|
149
|
-
createdAt: string;
|
|
147
|
+
amount: string;
|
|
150
148
|
currency: "USDC" | "EURC";
|
|
149
|
+
merchantId: string;
|
|
150
|
+
id: string;
|
|
151
151
|
note: string | null;
|
|
152
|
-
|
|
152
|
+
createdAt: string;
|
|
153
153
|
transactionId: string;
|
|
154
154
|
reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
|
|
155
155
|
payerAddress: string;
|
|
@@ -164,25 +164,25 @@ declare const refundCreateOutputSchema: z.ZodObject<{
|
|
|
164
164
|
amount: z.ZodString;
|
|
165
165
|
note: z.ZodString;
|
|
166
166
|
}, "strip", z.ZodTypeAny, {
|
|
167
|
-
note: string;
|
|
168
167
|
amount: string;
|
|
169
|
-
token: string;
|
|
170
168
|
to: string;
|
|
171
|
-
}, {
|
|
172
169
|
note: string;
|
|
173
|
-
amount: string;
|
|
174
170
|
token: string;
|
|
171
|
+
}, {
|
|
172
|
+
amount: string;
|
|
175
173
|
to: string;
|
|
174
|
+
note: string;
|
|
175
|
+
token: string;
|
|
176
176
|
}>;
|
|
177
177
|
}, "strip", z.ZodTypeAny, {
|
|
178
178
|
refund: {
|
|
179
179
|
status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
|
|
180
|
-
|
|
181
|
-
merchantId: string;
|
|
182
|
-
createdAt: string;
|
|
180
|
+
amount: string;
|
|
183
181
|
currency: "USDC" | "EURC";
|
|
182
|
+
merchantId: string;
|
|
183
|
+
id: string;
|
|
184
184
|
note: string | null;
|
|
185
|
-
|
|
185
|
+
createdAt: string;
|
|
186
186
|
transactionId: string;
|
|
187
187
|
reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
|
|
188
188
|
payerAddress: string;
|
|
@@ -192,20 +192,20 @@ declare const refundCreateOutputSchema: z.ZodObject<{
|
|
|
192
192
|
completedAt: string | null;
|
|
193
193
|
};
|
|
194
194
|
signingInstructions: {
|
|
195
|
-
note: string;
|
|
196
195
|
amount: string;
|
|
197
|
-
token: string;
|
|
198
196
|
to: string;
|
|
197
|
+
note: string;
|
|
198
|
+
token: string;
|
|
199
199
|
};
|
|
200
200
|
}, {
|
|
201
201
|
refund: {
|
|
202
202
|
status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
|
|
203
|
-
|
|
204
|
-
merchantId: string;
|
|
205
|
-
createdAt: string;
|
|
203
|
+
amount: string;
|
|
206
204
|
currency: "USDC" | "EURC";
|
|
205
|
+
merchantId: string;
|
|
206
|
+
id: string;
|
|
207
207
|
note: string | null;
|
|
208
|
-
|
|
208
|
+
createdAt: string;
|
|
209
209
|
transactionId: string;
|
|
210
210
|
reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
|
|
211
211
|
payerAddress: string;
|
|
@@ -215,10 +215,10 @@ declare const refundCreateOutputSchema: z.ZodObject<{
|
|
|
215
215
|
completedAt: string | null;
|
|
216
216
|
};
|
|
217
217
|
signingInstructions: {
|
|
218
|
-
note: string;
|
|
219
218
|
amount: string;
|
|
220
|
-
token: string;
|
|
221
219
|
to: string;
|
|
220
|
+
note: string;
|
|
221
|
+
token: string;
|
|
222
222
|
};
|
|
223
223
|
}>;
|
|
224
224
|
type RefundCreateOutput = z.infer<typeof refundCreateOutputSchema>;
|
package/dist/refunds.d.ts
CHANGED
|
@@ -29,12 +29,12 @@ declare const refundSchema: z.ZodObject<{
|
|
|
29
29
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
31
|
status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
|
|
32
|
-
|
|
33
|
-
merchantId: string;
|
|
34
|
-
createdAt: string;
|
|
32
|
+
amount: string;
|
|
35
33
|
currency: "USDC" | "EURC";
|
|
34
|
+
merchantId: string;
|
|
35
|
+
id: string;
|
|
36
36
|
note: string | null;
|
|
37
|
-
|
|
37
|
+
createdAt: string;
|
|
38
38
|
transactionId: string;
|
|
39
39
|
reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
|
|
40
40
|
payerAddress: string;
|
|
@@ -44,12 +44,12 @@ declare const refundSchema: z.ZodObject<{
|
|
|
44
44
|
completedAt: string | null;
|
|
45
45
|
}, {
|
|
46
46
|
status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
|
|
47
|
-
|
|
48
|
-
merchantId: string;
|
|
49
|
-
createdAt: string;
|
|
47
|
+
amount: string;
|
|
50
48
|
currency: "USDC" | "EURC";
|
|
49
|
+
merchantId: string;
|
|
50
|
+
id: string;
|
|
51
51
|
note: string | null;
|
|
52
|
-
|
|
52
|
+
createdAt: string;
|
|
53
53
|
transactionId: string;
|
|
54
54
|
reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
|
|
55
55
|
payerAddress: string;
|
|
@@ -100,15 +100,15 @@ declare const refundSigningInstructionsSchema: z.ZodObject<{
|
|
|
100
100
|
amount: z.ZodString;
|
|
101
101
|
note: z.ZodString;
|
|
102
102
|
}, "strip", z.ZodTypeAny, {
|
|
103
|
-
note: string;
|
|
104
103
|
amount: string;
|
|
105
|
-
token: string;
|
|
106
104
|
to: string;
|
|
107
|
-
}, {
|
|
108
105
|
note: string;
|
|
109
|
-
amount: string;
|
|
110
106
|
token: string;
|
|
107
|
+
}, {
|
|
108
|
+
amount: string;
|
|
111
109
|
to: string;
|
|
110
|
+
note: string;
|
|
111
|
+
token: string;
|
|
112
112
|
}>;
|
|
113
113
|
type RefundSigningInstructions = z.infer<typeof refundSigningInstructionsSchema>;
|
|
114
114
|
declare const refundCreateOutputSchema: z.ZodObject<{
|
|
@@ -129,12 +129,12 @@ declare const refundCreateOutputSchema: z.ZodObject<{
|
|
|
129
129
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
130
130
|
}, "strip", z.ZodTypeAny, {
|
|
131
131
|
status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
|
|
132
|
-
|
|
133
|
-
merchantId: string;
|
|
134
|
-
createdAt: string;
|
|
132
|
+
amount: string;
|
|
135
133
|
currency: "USDC" | "EURC";
|
|
134
|
+
merchantId: string;
|
|
135
|
+
id: string;
|
|
136
136
|
note: string | null;
|
|
137
|
-
|
|
137
|
+
createdAt: string;
|
|
138
138
|
transactionId: string;
|
|
139
139
|
reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
|
|
140
140
|
payerAddress: string;
|
|
@@ -144,12 +144,12 @@ declare const refundCreateOutputSchema: z.ZodObject<{
|
|
|
144
144
|
completedAt: string | null;
|
|
145
145
|
}, {
|
|
146
146
|
status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
|
|
147
|
-
|
|
148
|
-
merchantId: string;
|
|
149
|
-
createdAt: string;
|
|
147
|
+
amount: string;
|
|
150
148
|
currency: "USDC" | "EURC";
|
|
149
|
+
merchantId: string;
|
|
150
|
+
id: string;
|
|
151
151
|
note: string | null;
|
|
152
|
-
|
|
152
|
+
createdAt: string;
|
|
153
153
|
transactionId: string;
|
|
154
154
|
reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
|
|
155
155
|
payerAddress: string;
|
|
@@ -164,25 +164,25 @@ declare const refundCreateOutputSchema: z.ZodObject<{
|
|
|
164
164
|
amount: z.ZodString;
|
|
165
165
|
note: z.ZodString;
|
|
166
166
|
}, "strip", z.ZodTypeAny, {
|
|
167
|
-
note: string;
|
|
168
167
|
amount: string;
|
|
169
|
-
token: string;
|
|
170
168
|
to: string;
|
|
171
|
-
}, {
|
|
172
169
|
note: string;
|
|
173
|
-
amount: string;
|
|
174
170
|
token: string;
|
|
171
|
+
}, {
|
|
172
|
+
amount: string;
|
|
175
173
|
to: string;
|
|
174
|
+
note: string;
|
|
175
|
+
token: string;
|
|
176
176
|
}>;
|
|
177
177
|
}, "strip", z.ZodTypeAny, {
|
|
178
178
|
refund: {
|
|
179
179
|
status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
|
|
180
|
-
|
|
181
|
-
merchantId: string;
|
|
182
|
-
createdAt: string;
|
|
180
|
+
amount: string;
|
|
183
181
|
currency: "USDC" | "EURC";
|
|
182
|
+
merchantId: string;
|
|
183
|
+
id: string;
|
|
184
184
|
note: string | null;
|
|
185
|
-
|
|
185
|
+
createdAt: string;
|
|
186
186
|
transactionId: string;
|
|
187
187
|
reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
|
|
188
188
|
payerAddress: string;
|
|
@@ -192,20 +192,20 @@ declare const refundCreateOutputSchema: z.ZodObject<{
|
|
|
192
192
|
completedAt: string | null;
|
|
193
193
|
};
|
|
194
194
|
signingInstructions: {
|
|
195
|
-
note: string;
|
|
196
195
|
amount: string;
|
|
197
|
-
token: string;
|
|
198
196
|
to: string;
|
|
197
|
+
note: string;
|
|
198
|
+
token: string;
|
|
199
199
|
};
|
|
200
200
|
}, {
|
|
201
201
|
refund: {
|
|
202
202
|
status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
|
|
203
|
-
|
|
204
|
-
merchantId: string;
|
|
205
|
-
createdAt: string;
|
|
203
|
+
amount: string;
|
|
206
204
|
currency: "USDC" | "EURC";
|
|
205
|
+
merchantId: string;
|
|
206
|
+
id: string;
|
|
207
207
|
note: string | null;
|
|
208
|
-
|
|
208
|
+
createdAt: string;
|
|
209
209
|
transactionId: string;
|
|
210
210
|
reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
|
|
211
211
|
payerAddress: string;
|
|
@@ -215,10 +215,10 @@ declare const refundCreateOutputSchema: z.ZodObject<{
|
|
|
215
215
|
completedAt: string | null;
|
|
216
216
|
};
|
|
217
217
|
signingInstructions: {
|
|
218
|
-
note: string;
|
|
219
218
|
amount: string;
|
|
220
|
-
token: string;
|
|
221
219
|
to: string;
|
|
220
|
+
note: string;
|
|
221
|
+
token: string;
|
|
222
222
|
};
|
|
223
223
|
}>;
|
|
224
224
|
type RefundCreateOutput = z.infer<typeof refundCreateOutputSchema>;
|
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
|
-
id: string;
|
|
25
24
|
merchantId: string;
|
|
26
|
-
name: string;
|
|
27
|
-
createdAt: string;
|
|
28
25
|
description: string | null;
|
|
26
|
+
id: string;
|
|
27
|
+
createdAt: string;
|
|
29
28
|
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
|
-
id: string;
|
|
38
37
|
merchantId: string;
|
|
39
|
-
name: string;
|
|
40
|
-
createdAt: string;
|
|
41
38
|
description: string | null;
|
|
39
|
+
id: string;
|
|
40
|
+
createdAt: string;
|
|
42
41
|
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
|
-
name: string;
|
|
63
|
+
}, "description" | "name" | "logoUrl" | "slug" | "coverImageUrl" | "accentColor" | "socialLinks">, "strip", z.ZodTypeAny, {
|
|
65
64
|
description: string | null;
|
|
65
|
+
name: string;
|
|
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
|
-
name: string;
|
|
73
72
|
description: string | null;
|
|
73
|
+
name: string;
|
|
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;
|
|
104
106
|
id: string;
|
|
105
|
-
name: string;
|
|
106
107
|
createdAt: string;
|
|
107
|
-
description: string | null;
|
|
108
|
-
currency: "USDC" | "EURC";
|
|
109
108
|
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;
|
|
121
123
|
id: string;
|
|
122
|
-
name: string;
|
|
123
124
|
createdAt: string;
|
|
124
|
-
description: string | null;
|
|
125
|
-
currency: "USDC" | "EURC";
|
|
126
125
|
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
|
-
name: z.ZodString;
|
|
141
|
-
description: z.ZodNullable<z.ZodString>;
|
|
142
140
|
currency: z.ZodEnum<["USDC", "EURC"]>;
|
|
141
|
+
description: z.ZodNullable<z.ZodString>;
|
|
142
|
+
name: z.ZodString;
|
|
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
|
-
name: string;
|
|
155
|
-
description: string | null;
|
|
156
154
|
currency: "USDC" | "EURC";
|
|
155
|
+
description: string | null;
|
|
156
|
+
name: string;
|
|
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
|
-
name: string;
|
|
168
|
-
description: string | null;
|
|
169
167
|
currency: "USDC" | "EURC";
|
|
168
|
+
description: string | null;
|
|
169
|
+
name: string;
|
|
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
|
-
name: string;
|
|
181
|
-
description: string | null;
|
|
182
180
|
currency: "USDC" | "EURC";
|
|
181
|
+
description: string | null;
|
|
182
|
+
name: string;
|
|
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
|
-
name: string;
|
|
194
|
-
description: string | null;
|
|
195
193
|
currency: "USDC" | "EURC";
|
|
194
|
+
description: string | null;
|
|
195
|
+
name: string;
|
|
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
|
-
kind: "payment_session" | "subscription_plan";
|
|
236
235
|
checkoutUrl: string;
|
|
236
|
+
kind: "payment_session" | "subscription_plan";
|
|
237
237
|
ref: string;
|
|
238
238
|
}, {
|
|
239
|
-
kind: "payment_session" | "subscription_plan";
|
|
240
239
|
checkoutUrl: string;
|
|
240
|
+
kind: "payment_session" | "subscription_plan";
|
|
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
|
-
id: string;
|
|
25
24
|
merchantId: string;
|
|
26
|
-
name: string;
|
|
27
|
-
createdAt: string;
|
|
28
25
|
description: string | null;
|
|
26
|
+
id: string;
|
|
27
|
+
createdAt: string;
|
|
29
28
|
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
|
-
id: string;
|
|
38
37
|
merchantId: string;
|
|
39
|
-
name: string;
|
|
40
|
-
createdAt: string;
|
|
41
38
|
description: string | null;
|
|
39
|
+
id: string;
|
|
40
|
+
createdAt: string;
|
|
42
41
|
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
|
-
name: string;
|
|
63
|
+
}, "description" | "name" | "logoUrl" | "slug" | "coverImageUrl" | "accentColor" | "socialLinks">, "strip", z.ZodTypeAny, {
|
|
65
64
|
description: string | null;
|
|
65
|
+
name: string;
|
|
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
|
-
name: string;
|
|
73
72
|
description: string | null;
|
|
73
|
+
name: string;
|
|
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;
|
|
104
106
|
id: string;
|
|
105
|
-
name: string;
|
|
106
107
|
createdAt: string;
|
|
107
|
-
description: string | null;
|
|
108
|
-
currency: "USDC" | "EURC";
|
|
109
108
|
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;
|
|
121
123
|
id: string;
|
|
122
|
-
name: string;
|
|
123
124
|
createdAt: string;
|
|
124
|
-
description: string | null;
|
|
125
|
-
currency: "USDC" | "EURC";
|
|
126
125
|
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
|
-
name: z.ZodString;
|
|
141
|
-
description: z.ZodNullable<z.ZodString>;
|
|
142
140
|
currency: z.ZodEnum<["USDC", "EURC"]>;
|
|
141
|
+
description: z.ZodNullable<z.ZodString>;
|
|
142
|
+
name: z.ZodString;
|
|
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
|
-
name: string;
|
|
155
|
-
description: string | null;
|
|
156
154
|
currency: "USDC" | "EURC";
|
|
155
|
+
description: string | null;
|
|
156
|
+
name: string;
|
|
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
|
-
name: string;
|
|
168
|
-
description: string | null;
|
|
169
167
|
currency: "USDC" | "EURC";
|
|
168
|
+
description: string | null;
|
|
169
|
+
name: string;
|
|
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
|
-
name: string;
|
|
181
|
-
description: string | null;
|
|
182
180
|
currency: "USDC" | "EURC";
|
|
181
|
+
description: string | null;
|
|
182
|
+
name: string;
|
|
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
|
-
name: string;
|
|
194
|
-
description: string | null;
|
|
195
193
|
currency: "USDC" | "EURC";
|
|
194
|
+
description: string | null;
|
|
195
|
+
name: string;
|
|
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
|
-
kind: "payment_session" | "subscription_plan";
|
|
236
235
|
checkoutUrl: string;
|
|
236
|
+
kind: "payment_session" | "subscription_plan";
|
|
237
237
|
ref: string;
|
|
238
238
|
}, {
|
|
239
|
-
kind: "payment_session" | "subscription_plan";
|
|
240
239
|
checkoutUrl: string;
|
|
240
|
+
kind: "payment_session" | "subscription_plan";
|
|
241
241
|
ref: string;
|
|
242
242
|
}>;
|
|
243
243
|
type StorefrontCheckoutResponse = z.infer<typeof storefrontCheckoutResponseSchema>;
|