@strimz/shared-types 0.16.0 → 0.17.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 +141 -141
- package/dist/analytics.d.ts +141 -141
- package/dist/api-keys.d.cts +14 -14
- package/dist/api-keys.d.ts +14 -14
- package/dist/compliance.d.cts +8 -8
- package/dist/compliance.d.ts +8 -8
- package/dist/customers.d.cts +7 -7
- package/dist/customers.d.ts +7 -7
- package/dist/events.d.cts +1460 -1460
- package/dist/events.d.ts +1460 -1460
- package/dist/index.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -7
- package/dist/index.d.ts +25 -7
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/invoices.d.cts +12 -12
- package/dist/invoices.d.ts +12 -12
- package/dist/merchants.d.cts +26 -26
- package/dist/merchants.d.ts +26 -26
- 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 +13 -13
- package/dist/storefronts.d.ts +13 -13
- package/dist/subscriptions.d.cts +32 -32
- package/dist/subscriptions.d.ts +32 -32
- package/dist/transactions.d.cts +10 -10
- package/dist/transactions.d.ts +10 -10
- package/dist/webhooks.d.cts +28 -28
- package/dist/webhooks.d.ts +28 -28
- package/package.json +2 -2
- package/src/notifications.ts +9 -0
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
|
-
amount: string;
|
|
33
|
-
currency: "USDC" | "EURC";
|
|
34
|
-
merchantId: string;
|
|
35
32
|
id: string;
|
|
36
|
-
|
|
33
|
+
merchantId: string;
|
|
37
34
|
createdAt: string;
|
|
35
|
+
currency: "USDC" | "EURC";
|
|
36
|
+
note: string | null;
|
|
37
|
+
amount: 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
|
-
amount: string;
|
|
48
|
-
currency: "USDC" | "EURC";
|
|
49
|
-
merchantId: string;
|
|
50
47
|
id: string;
|
|
51
|
-
|
|
48
|
+
merchantId: string;
|
|
52
49
|
createdAt: string;
|
|
50
|
+
currency: "USDC" | "EURC";
|
|
51
|
+
note: string | null;
|
|
52
|
+
amount: 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
|
-
amount: string;
|
|
104
|
-
to: string;
|
|
105
103
|
note: string;
|
|
106
|
-
token: string;
|
|
107
|
-
}, {
|
|
108
104
|
amount: string;
|
|
105
|
+
token: string;
|
|
109
106
|
to: string;
|
|
107
|
+
}, {
|
|
110
108
|
note: string;
|
|
109
|
+
amount: string;
|
|
111
110
|
token: string;
|
|
111
|
+
to: 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
|
-
amount: string;
|
|
133
|
-
currency: "USDC" | "EURC";
|
|
134
|
-
merchantId: string;
|
|
135
132
|
id: string;
|
|
136
|
-
|
|
133
|
+
merchantId: string;
|
|
137
134
|
createdAt: string;
|
|
135
|
+
currency: "USDC" | "EURC";
|
|
136
|
+
note: string | null;
|
|
137
|
+
amount: 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
|
-
amount: string;
|
|
148
|
-
currency: "USDC" | "EURC";
|
|
149
|
-
merchantId: string;
|
|
150
147
|
id: string;
|
|
151
|
-
|
|
148
|
+
merchantId: string;
|
|
152
149
|
createdAt: string;
|
|
150
|
+
currency: "USDC" | "EURC";
|
|
151
|
+
note: string | null;
|
|
152
|
+
amount: 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
|
-
amount: string;
|
|
168
|
-
to: string;
|
|
169
167
|
note: string;
|
|
170
|
-
token: string;
|
|
171
|
-
}, {
|
|
172
168
|
amount: string;
|
|
169
|
+
token: string;
|
|
173
170
|
to: string;
|
|
171
|
+
}, {
|
|
174
172
|
note: string;
|
|
173
|
+
amount: string;
|
|
175
174
|
token: string;
|
|
175
|
+
to: string;
|
|
176
176
|
}>;
|
|
177
177
|
}, "strip", z.ZodTypeAny, {
|
|
178
178
|
refund: {
|
|
179
179
|
status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
|
|
180
|
-
amount: string;
|
|
181
|
-
currency: "USDC" | "EURC";
|
|
182
|
-
merchantId: string;
|
|
183
180
|
id: string;
|
|
184
|
-
|
|
181
|
+
merchantId: string;
|
|
185
182
|
createdAt: string;
|
|
183
|
+
currency: "USDC" | "EURC";
|
|
184
|
+
note: string | null;
|
|
185
|
+
amount: 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
|
-
amount: string;
|
|
196
|
-
to: string;
|
|
197
195
|
note: string;
|
|
196
|
+
amount: string;
|
|
198
197
|
token: string;
|
|
198
|
+
to: string;
|
|
199
199
|
};
|
|
200
200
|
}, {
|
|
201
201
|
refund: {
|
|
202
202
|
status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
|
|
203
|
-
amount: string;
|
|
204
|
-
currency: "USDC" | "EURC";
|
|
205
|
-
merchantId: string;
|
|
206
203
|
id: string;
|
|
207
|
-
|
|
204
|
+
merchantId: string;
|
|
208
205
|
createdAt: string;
|
|
206
|
+
currency: "USDC" | "EURC";
|
|
207
|
+
note: string | null;
|
|
208
|
+
amount: 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
|
-
amount: string;
|
|
219
|
-
to: string;
|
|
220
218
|
note: string;
|
|
219
|
+
amount: string;
|
|
221
220
|
token: string;
|
|
221
|
+
to: 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
|
-
amount: string;
|
|
33
|
-
currency: "USDC" | "EURC";
|
|
34
|
-
merchantId: string;
|
|
35
32
|
id: string;
|
|
36
|
-
|
|
33
|
+
merchantId: string;
|
|
37
34
|
createdAt: string;
|
|
35
|
+
currency: "USDC" | "EURC";
|
|
36
|
+
note: string | null;
|
|
37
|
+
amount: 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
|
-
amount: string;
|
|
48
|
-
currency: "USDC" | "EURC";
|
|
49
|
-
merchantId: string;
|
|
50
47
|
id: string;
|
|
51
|
-
|
|
48
|
+
merchantId: string;
|
|
52
49
|
createdAt: string;
|
|
50
|
+
currency: "USDC" | "EURC";
|
|
51
|
+
note: string | null;
|
|
52
|
+
amount: 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
|
-
amount: string;
|
|
104
|
-
to: string;
|
|
105
103
|
note: string;
|
|
106
|
-
token: string;
|
|
107
|
-
}, {
|
|
108
104
|
amount: string;
|
|
105
|
+
token: string;
|
|
109
106
|
to: string;
|
|
107
|
+
}, {
|
|
110
108
|
note: string;
|
|
109
|
+
amount: string;
|
|
111
110
|
token: string;
|
|
111
|
+
to: 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
|
-
amount: string;
|
|
133
|
-
currency: "USDC" | "EURC";
|
|
134
|
-
merchantId: string;
|
|
135
132
|
id: string;
|
|
136
|
-
|
|
133
|
+
merchantId: string;
|
|
137
134
|
createdAt: string;
|
|
135
|
+
currency: "USDC" | "EURC";
|
|
136
|
+
note: string | null;
|
|
137
|
+
amount: 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
|
-
amount: string;
|
|
148
|
-
currency: "USDC" | "EURC";
|
|
149
|
-
merchantId: string;
|
|
150
147
|
id: string;
|
|
151
|
-
|
|
148
|
+
merchantId: string;
|
|
152
149
|
createdAt: string;
|
|
150
|
+
currency: "USDC" | "EURC";
|
|
151
|
+
note: string | null;
|
|
152
|
+
amount: 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
|
-
amount: string;
|
|
168
|
-
to: string;
|
|
169
167
|
note: string;
|
|
170
|
-
token: string;
|
|
171
|
-
}, {
|
|
172
168
|
amount: string;
|
|
169
|
+
token: string;
|
|
173
170
|
to: string;
|
|
171
|
+
}, {
|
|
174
172
|
note: string;
|
|
173
|
+
amount: string;
|
|
175
174
|
token: string;
|
|
175
|
+
to: string;
|
|
176
176
|
}>;
|
|
177
177
|
}, "strip", z.ZodTypeAny, {
|
|
178
178
|
refund: {
|
|
179
179
|
status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
|
|
180
|
-
amount: string;
|
|
181
|
-
currency: "USDC" | "EURC";
|
|
182
|
-
merchantId: string;
|
|
183
180
|
id: string;
|
|
184
|
-
|
|
181
|
+
merchantId: string;
|
|
185
182
|
createdAt: string;
|
|
183
|
+
currency: "USDC" | "EURC";
|
|
184
|
+
note: string | null;
|
|
185
|
+
amount: 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
|
-
amount: string;
|
|
196
|
-
to: string;
|
|
197
195
|
note: string;
|
|
196
|
+
amount: string;
|
|
198
197
|
token: string;
|
|
198
|
+
to: string;
|
|
199
199
|
};
|
|
200
200
|
}, {
|
|
201
201
|
refund: {
|
|
202
202
|
status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
|
|
203
|
-
amount: string;
|
|
204
|
-
currency: "USDC" | "EURC";
|
|
205
|
-
merchantId: string;
|
|
206
203
|
id: string;
|
|
207
|
-
|
|
204
|
+
merchantId: string;
|
|
208
205
|
createdAt: string;
|
|
206
|
+
currency: "USDC" | "EURC";
|
|
207
|
+
note: string | null;
|
|
208
|
+
amount: 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
|
-
amount: string;
|
|
219
|
-
to: string;
|
|
220
218
|
note: string;
|
|
219
|
+
amount: string;
|
|
221
220
|
token: string;
|
|
221
|
+
to: string;
|
|
222
222
|
};
|
|
223
223
|
}>;
|
|
224
224
|
type RefundCreateOutput = z.infer<typeof refundCreateOutputSchema>;
|
package/dist/storefronts.d.cts
CHANGED
|
@@ -21,10 +21,10 @@ 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;
|
|
27
26
|
createdAt: string;
|
|
27
|
+
description: string | null;
|
|
28
28
|
updatedAt: string;
|
|
29
29
|
name: string;
|
|
30
30
|
logoUrl: string | null;
|
|
@@ -34,10 +34,10 @@ 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;
|
|
40
39
|
createdAt: string;
|
|
40
|
+
description: string | null;
|
|
41
41
|
updatedAt: string;
|
|
42
42
|
name: string;
|
|
43
43
|
logoUrl: string | null;
|
|
@@ -101,10 +101,10 @@ 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;
|
|
107
105
|
createdAt: string;
|
|
106
|
+
description: string | null;
|
|
107
|
+
currency: "USDC" | "EURC";
|
|
108
108
|
updatedAt: string;
|
|
109
109
|
name: string;
|
|
110
110
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
|
|
@@ -118,10 +118,10 @@ 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;
|
|
124
122
|
createdAt: string;
|
|
123
|
+
description: string | null;
|
|
124
|
+
currency: "USDC" | "EURC";
|
|
125
125
|
updatedAt: string;
|
|
126
126
|
name: string;
|
|
127
127
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
|
|
@@ -137,8 +137,8 @@ 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
140
|
description: z.ZodNullable<z.ZodString>;
|
|
141
|
+
currency: z.ZodEnum<["USDC", "EURC"]>;
|
|
142
142
|
name: z.ZodString;
|
|
143
143
|
interval: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "quarterly", "yearly"]>>;
|
|
144
144
|
intervalCount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -151,8 +151,8 @@ 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
154
|
description: string | null;
|
|
155
|
+
currency: "USDC" | "EURC";
|
|
156
156
|
name: string;
|
|
157
157
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
|
|
158
158
|
intervalCount: number | null;
|
|
@@ -164,8 +164,8 @@ 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
167
|
description: string | null;
|
|
168
|
+
currency: "USDC" | "EURC";
|
|
169
169
|
name: string;
|
|
170
170
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
|
|
171
171
|
intervalCount: number | null;
|
|
@@ -177,8 +177,8 @@ 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
180
|
description: string | null;
|
|
181
|
+
currency: "USDC" | "EURC";
|
|
182
182
|
name: string;
|
|
183
183
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
|
|
184
184
|
intervalCount: number | null;
|
|
@@ -190,8 +190,8 @@ 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
193
|
description: string | null;
|
|
194
|
+
currency: "USDC" | "EURC";
|
|
195
195
|
name: string;
|
|
196
196
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
|
|
197
197
|
intervalCount: number | null;
|
package/dist/storefronts.d.ts
CHANGED
|
@@ -21,10 +21,10 @@ 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;
|
|
27
26
|
createdAt: string;
|
|
27
|
+
description: string | null;
|
|
28
28
|
updatedAt: string;
|
|
29
29
|
name: string;
|
|
30
30
|
logoUrl: string | null;
|
|
@@ -34,10 +34,10 @@ 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;
|
|
40
39
|
createdAt: string;
|
|
40
|
+
description: string | null;
|
|
41
41
|
updatedAt: string;
|
|
42
42
|
name: string;
|
|
43
43
|
logoUrl: string | null;
|
|
@@ -101,10 +101,10 @@ 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;
|
|
107
105
|
createdAt: string;
|
|
106
|
+
description: string | null;
|
|
107
|
+
currency: "USDC" | "EURC";
|
|
108
108
|
updatedAt: string;
|
|
109
109
|
name: string;
|
|
110
110
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
|
|
@@ -118,10 +118,10 @@ 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;
|
|
124
122
|
createdAt: string;
|
|
123
|
+
description: string | null;
|
|
124
|
+
currency: "USDC" | "EURC";
|
|
125
125
|
updatedAt: string;
|
|
126
126
|
name: string;
|
|
127
127
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
|
|
@@ -137,8 +137,8 @@ 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
140
|
description: z.ZodNullable<z.ZodString>;
|
|
141
|
+
currency: z.ZodEnum<["USDC", "EURC"]>;
|
|
142
142
|
name: z.ZodString;
|
|
143
143
|
interval: z.ZodNullable<z.ZodEnum<["daily", "weekly", "monthly", "quarterly", "yearly"]>>;
|
|
144
144
|
intervalCount: z.ZodNullable<z.ZodNumber>;
|
|
@@ -151,8 +151,8 @@ 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
154
|
description: string | null;
|
|
155
|
+
currency: "USDC" | "EURC";
|
|
156
156
|
name: string;
|
|
157
157
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
|
|
158
158
|
intervalCount: number | null;
|
|
@@ -164,8 +164,8 @@ 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
167
|
description: string | null;
|
|
168
|
+
currency: "USDC" | "EURC";
|
|
169
169
|
name: string;
|
|
170
170
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
|
|
171
171
|
intervalCount: number | null;
|
|
@@ -177,8 +177,8 @@ 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
180
|
description: string | null;
|
|
181
|
+
currency: "USDC" | "EURC";
|
|
182
182
|
name: string;
|
|
183
183
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
|
|
184
184
|
intervalCount: number | null;
|
|
@@ -190,8 +190,8 @@ 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
193
|
description: string | null;
|
|
194
|
+
currency: "USDC" | "EURC";
|
|
195
195
|
name: string;
|
|
196
196
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly" | null;
|
|
197
197
|
intervalCount: number | null;
|
package/dist/subscriptions.d.cts
CHANGED
|
@@ -51,15 +51,15 @@ declare const subscriptionPlanSchema: z.ZodObject<{
|
|
|
51
51
|
updatedAt: z.ZodString;
|
|
52
52
|
}, "strip", z.ZodTypeAny, {
|
|
53
53
|
status: "active" | "archived";
|
|
54
|
-
amount: string;
|
|
55
|
-
currency: "USDC" | "EURC";
|
|
56
|
-
merchantId: string;
|
|
57
|
-
description: string | null;
|
|
58
54
|
id: string;
|
|
55
|
+
merchantId: string;
|
|
59
56
|
createdAt: string;
|
|
57
|
+
description: string | null;
|
|
58
|
+
currency: "USDC" | "EURC";
|
|
60
59
|
updatedAt: string;
|
|
61
60
|
chainMerchantId: string | null;
|
|
62
61
|
tokenAddress: string | null;
|
|
62
|
+
amount: string;
|
|
63
63
|
successUrl: string | null;
|
|
64
64
|
cancelUrl: string | null;
|
|
65
65
|
metadata: Record<string, string | number | boolean | null>;
|
|
@@ -70,15 +70,15 @@ declare const subscriptionPlanSchema: z.ZodObject<{
|
|
|
70
70
|
trialPeriodDays: number | null;
|
|
71
71
|
}, {
|
|
72
72
|
status: "active" | "archived";
|
|
73
|
-
amount: string;
|
|
74
|
-
currency: "USDC" | "EURC";
|
|
75
|
-
merchantId: string;
|
|
76
|
-
description: string | null;
|
|
77
73
|
id: string;
|
|
74
|
+
merchantId: string;
|
|
78
75
|
createdAt: string;
|
|
76
|
+
description: string | null;
|
|
77
|
+
currency: "USDC" | "EURC";
|
|
79
78
|
updatedAt: string;
|
|
80
79
|
chainMerchantId: string | null;
|
|
81
80
|
tokenAddress: string | null;
|
|
81
|
+
amount: string;
|
|
82
82
|
successUrl: string | null;
|
|
83
83
|
cancelUrl: string | null;
|
|
84
84
|
intervalSeconds: number;
|
|
@@ -101,8 +101,8 @@ declare const createSubscriptionPlanInputSchema: z.ZodObject<{
|
|
|
101
101
|
cancelUrl: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
102
102
|
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>>>>;
|
|
103
103
|
}, "strip", z.ZodTypeAny, {
|
|
104
|
-
amount: string;
|
|
105
104
|
currency: "USDC" | "EURC";
|
|
105
|
+
amount: string;
|
|
106
106
|
name: string;
|
|
107
107
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
108
108
|
intervalCount: number;
|
|
@@ -112,8 +112,8 @@ declare const createSubscriptionPlanInputSchema: z.ZodObject<{
|
|
|
112
112
|
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
113
113
|
trialPeriodDays?: number | undefined;
|
|
114
114
|
}, {
|
|
115
|
-
amount: string;
|
|
116
115
|
currency: "USDC" | "EURC";
|
|
116
|
+
amount: string;
|
|
117
117
|
name: string;
|
|
118
118
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
119
119
|
description?: string | undefined;
|
|
@@ -155,14 +155,14 @@ declare const subscriptionResultMessageSchema: z.ZodDiscriminatedUnion<"type", [
|
|
|
155
155
|
txHash: z.ZodString;
|
|
156
156
|
}, "strip", z.ZodTypeAny, {
|
|
157
157
|
type: "strimz:subscription:success";
|
|
158
|
+
subscriptionId: string | null;
|
|
158
159
|
txHash: string;
|
|
159
160
|
planId: string;
|
|
160
|
-
subscriptionId: string | null;
|
|
161
161
|
}, {
|
|
162
162
|
type: "strimz:subscription:success";
|
|
163
|
+
subscriptionId: string | null;
|
|
163
164
|
txHash: string;
|
|
164
165
|
planId: string;
|
|
165
|
-
subscriptionId: string | null;
|
|
166
166
|
}>, z.ZodObject<{
|
|
167
167
|
type: z.ZodLiteral<"strimz:subscription:cancel">;
|
|
168
168
|
planId: z.ZodString;
|
|
@@ -213,14 +213,14 @@ declare const subscriptionSchema: z.ZodObject<{
|
|
|
213
213
|
createdAt: z.ZodString;
|
|
214
214
|
updatedAt: z.ZodString;
|
|
215
215
|
}, "strip", z.ZodTypeAny, {
|
|
216
|
-
status: "cancelled" | "
|
|
217
|
-
amount: string;
|
|
218
|
-
currency: "USDC" | "EURC";
|
|
219
|
-
customerId: string;
|
|
220
|
-
merchantId: string;
|
|
216
|
+
status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
|
|
221
217
|
id: string;
|
|
218
|
+
merchantId: string;
|
|
222
219
|
createdAt: string;
|
|
220
|
+
currency: "USDC" | "EURC";
|
|
223
221
|
updatedAt: string;
|
|
222
|
+
customerId: string;
|
|
223
|
+
amount: string;
|
|
224
224
|
metadata: Record<string, string | number | boolean | null>;
|
|
225
225
|
payerAddress: string;
|
|
226
226
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
@@ -234,14 +234,14 @@ declare const subscriptionSchema: z.ZodObject<{
|
|
|
234
234
|
gracePeriodHours: number;
|
|
235
235
|
cancelledAt: string | null;
|
|
236
236
|
}, {
|
|
237
|
-
status: "cancelled" | "
|
|
238
|
-
amount: string;
|
|
239
|
-
currency: "USDC" | "EURC";
|
|
240
|
-
customerId: string;
|
|
241
|
-
merchantId: string;
|
|
237
|
+
status: "cancelled" | "active" | "trialing" | "at_risk" | "paused" | "lapsed";
|
|
242
238
|
id: string;
|
|
239
|
+
merchantId: string;
|
|
243
240
|
createdAt: string;
|
|
241
|
+
currency: "USDC" | "EURC";
|
|
244
242
|
updatedAt: string;
|
|
243
|
+
customerId: string;
|
|
244
|
+
amount: string;
|
|
245
245
|
payerAddress: string;
|
|
246
246
|
interval: "daily" | "weekly" | "monthly" | "quarterly" | "yearly";
|
|
247
247
|
intervalCount: number;
|
|
@@ -261,11 +261,11 @@ declare const subscriptionStatusResultSchema: z.ZodObject<{
|
|
|
261
261
|
active: z.ZodBoolean;
|
|
262
262
|
subscriptionId: z.ZodNullable<z.ZodString>;
|
|
263
263
|
}, "strip", z.ZodTypeAny, {
|
|
264
|
-
active: boolean;
|
|
265
264
|
subscriptionId: string | null;
|
|
266
|
-
}, {
|
|
267
265
|
active: boolean;
|
|
266
|
+
}, {
|
|
268
267
|
subscriptionId: string | null;
|
|
268
|
+
active: boolean;
|
|
269
269
|
}>;
|
|
270
270
|
type SubscriptionStatusResult = z.infer<typeof subscriptionStatusResultSchema>;
|
|
271
271
|
declare const subscriptionEnrolmentTermsSchema: z.ZodObject<{
|
|
@@ -318,15 +318,15 @@ declare const subscriptionChargeSchema: z.ZodObject<{
|
|
|
318
318
|
updatedAt: z.ZodString;
|
|
319
319
|
}, "strip", z.ZodTypeAny, {
|
|
320
320
|
status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
|
|
321
|
-
amount: string;
|
|
322
|
-
currency: "USDC" | "EURC";
|
|
323
|
-
merchantId: string;
|
|
324
321
|
id: string;
|
|
322
|
+
merchantId: string;
|
|
323
|
+
subscriptionId: string;
|
|
325
324
|
createdAt: string;
|
|
325
|
+
currency: "USDC" | "EURC";
|
|
326
326
|
updatedAt: string;
|
|
327
|
+
amount: string;
|
|
327
328
|
onchainTxHash: string | null;
|
|
328
329
|
failureReason: string | null;
|
|
329
|
-
subscriptionId: string;
|
|
330
330
|
chargeAttemptId: string;
|
|
331
331
|
periodStartAt: string;
|
|
332
332
|
periodEndAt: string;
|
|
@@ -336,15 +336,15 @@ declare const subscriptionChargeSchema: z.ZodObject<{
|
|
|
336
336
|
executedAt: string | null;
|
|
337
337
|
}, {
|
|
338
338
|
status: "failed" | "pending" | "in_flight" | "succeeded" | "retrying" | "abandoned";
|
|
339
|
-
amount: string;
|
|
340
|
-
currency: "USDC" | "EURC";
|
|
341
|
-
merchantId: string;
|
|
342
339
|
id: string;
|
|
340
|
+
merchantId: string;
|
|
341
|
+
subscriptionId: string;
|
|
343
342
|
createdAt: string;
|
|
343
|
+
currency: "USDC" | "EURC";
|
|
344
344
|
updatedAt: string;
|
|
345
|
+
amount: string;
|
|
345
346
|
onchainTxHash: string | null;
|
|
346
347
|
failureReason: string | null;
|
|
347
|
-
subscriptionId: string;
|
|
348
348
|
chargeAttemptId: string;
|
|
349
349
|
periodStartAt: string;
|
|
350
350
|
periodEndAt: string;
|