@strimz/shared-types 0.7.0 → 0.8.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.
@@ -29,32 +29,32 @@ 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
- id: string;
33
- merchantId: string;
34
- createdAt: string;
35
32
  amount: string;
36
33
  currency: "USDC" | "EURC";
37
- payerAddress: string;
38
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
39
- failureReason: string | null;
40
- transactionId: string;
34
+ merchantId: string;
35
+ id: string;
41
36
  note: string | null;
37
+ createdAt: string;
38
+ transactionId: string;
39
+ reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
40
+ payerAddress: string;
42
41
  refundTxHash: string | null;
42
+ failureReason: string | null;
43
43
  initiatedBy: string;
44
44
  completedAt: string | null;
45
45
  }, {
46
46
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
47
- id: string;
48
- merchantId: string;
49
- createdAt: string;
50
47
  amount: string;
51
48
  currency: "USDC" | "EURC";
52
- payerAddress: string;
53
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
54
- failureReason: string | null;
55
- transactionId: string;
49
+ merchantId: string;
50
+ id: string;
56
51
  note: string | null;
52
+ createdAt: string;
53
+ transactionId: string;
54
+ reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
55
+ payerAddress: string;
57
56
  refundTxHash: string | null;
57
+ failureReason: string | null;
58
58
  initiatedBy: string;
59
59
  completedAt: string | null;
60
60
  }>;
@@ -66,13 +66,13 @@ declare const createRefundInputSchema: z.ZodObject<{
66
66
  note: z.ZodOptional<z.ZodString>;
67
67
  }, "strip", z.ZodTypeAny, {
68
68
  amount: string;
69
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
70
69
  transactionId: string;
70
+ reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
71
71
  note?: string | undefined;
72
72
  }, {
73
73
  amount: string;
74
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
75
74
  transactionId: string;
75
+ reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
76
76
  note?: string | undefined;
77
77
  }>;
78
78
  type CreateRefundInput = z.input<typeof createRefundInputSchema>;
@@ -101,14 +101,14 @@ declare const refundSigningInstructionsSchema: z.ZodObject<{
101
101
  note: z.ZodString;
102
102
  }, "strip", z.ZodTypeAny, {
103
103
  amount: string;
104
+ to: string;
104
105
  note: string;
105
106
  token: string;
106
- to: string;
107
107
  }, {
108
108
  amount: string;
109
+ to: string;
109
110
  note: string;
110
111
  token: string;
111
- to: string;
112
112
  }>;
113
113
  type RefundSigningInstructions = z.infer<typeof refundSigningInstructionsSchema>;
114
114
  declare const refundCreateOutputSchema: z.ZodObject<{
@@ -129,32 +129,32 @@ 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
- id: string;
133
- merchantId: string;
134
- createdAt: string;
135
132
  amount: string;
136
133
  currency: "USDC" | "EURC";
137
- payerAddress: string;
138
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
139
- failureReason: string | null;
140
- transactionId: string;
134
+ merchantId: string;
135
+ id: string;
141
136
  note: string | null;
137
+ createdAt: string;
138
+ transactionId: string;
139
+ reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
140
+ payerAddress: string;
142
141
  refundTxHash: string | null;
142
+ failureReason: string | null;
143
143
  initiatedBy: string;
144
144
  completedAt: string | null;
145
145
  }, {
146
146
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
147
- id: string;
148
- merchantId: string;
149
- createdAt: string;
150
147
  amount: string;
151
148
  currency: "USDC" | "EURC";
152
- payerAddress: string;
153
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
154
- failureReason: string | null;
155
- transactionId: string;
149
+ merchantId: string;
150
+ id: string;
156
151
  note: string | null;
152
+ createdAt: string;
153
+ transactionId: string;
154
+ reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
155
+ payerAddress: string;
157
156
  refundTxHash: string | null;
157
+ failureReason: string | null;
158
158
  initiatedBy: string;
159
159
  completedAt: string | null;
160
160
  }>;
@@ -165,60 +165,60 @@ declare const refundCreateOutputSchema: z.ZodObject<{
165
165
  note: z.ZodString;
166
166
  }, "strip", z.ZodTypeAny, {
167
167
  amount: string;
168
+ to: string;
168
169
  note: string;
169
170
  token: string;
170
- to: string;
171
171
  }, {
172
172
  amount: string;
173
+ to: string;
173
174
  note: string;
174
175
  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
- id: string;
181
- merchantId: string;
182
- createdAt: string;
183
180
  amount: string;
184
181
  currency: "USDC" | "EURC";
185
- payerAddress: string;
186
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
187
- failureReason: string | null;
188
- transactionId: string;
182
+ merchantId: string;
183
+ id: string;
189
184
  note: string | null;
185
+ createdAt: string;
186
+ transactionId: string;
187
+ reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
188
+ payerAddress: string;
190
189
  refundTxHash: string | null;
190
+ failureReason: string | null;
191
191
  initiatedBy: string;
192
192
  completedAt: string | null;
193
193
  };
194
194
  signingInstructions: {
195
195
  amount: string;
196
+ to: string;
196
197
  note: string;
197
198
  token: string;
198
- to: string;
199
199
  };
200
200
  }, {
201
201
  refund: {
202
202
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
203
- id: string;
204
- merchantId: string;
205
- createdAt: string;
206
203
  amount: string;
207
204
  currency: "USDC" | "EURC";
208
- payerAddress: string;
209
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
210
- failureReason: string | null;
211
- transactionId: string;
205
+ merchantId: string;
206
+ id: string;
212
207
  note: string | null;
208
+ createdAt: string;
209
+ transactionId: string;
210
+ reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
211
+ payerAddress: string;
213
212
  refundTxHash: string | null;
213
+ failureReason: string | null;
214
214
  initiatedBy: string;
215
215
  completedAt: string | null;
216
216
  };
217
217
  signingInstructions: {
218
218
  amount: string;
219
+ to: string;
219
220
  note: string;
220
221
  token: string;
221
- to: string;
222
222
  };
223
223
  }>;
224
224
  type RefundCreateOutput = z.infer<typeof refundCreateOutputSchema>;
package/dist/refunds.d.ts CHANGED
@@ -29,32 +29,32 @@ 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
- id: string;
33
- merchantId: string;
34
- createdAt: string;
35
32
  amount: string;
36
33
  currency: "USDC" | "EURC";
37
- payerAddress: string;
38
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
39
- failureReason: string | null;
40
- transactionId: string;
34
+ merchantId: string;
35
+ id: string;
41
36
  note: string | null;
37
+ createdAt: string;
38
+ transactionId: string;
39
+ reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
40
+ payerAddress: string;
42
41
  refundTxHash: string | null;
42
+ failureReason: string | null;
43
43
  initiatedBy: string;
44
44
  completedAt: string | null;
45
45
  }, {
46
46
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
47
- id: string;
48
- merchantId: string;
49
- createdAt: string;
50
47
  amount: string;
51
48
  currency: "USDC" | "EURC";
52
- payerAddress: string;
53
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
54
- failureReason: string | null;
55
- transactionId: string;
49
+ merchantId: string;
50
+ id: string;
56
51
  note: string | null;
52
+ createdAt: string;
53
+ transactionId: string;
54
+ reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
55
+ payerAddress: string;
57
56
  refundTxHash: string | null;
57
+ failureReason: string | null;
58
58
  initiatedBy: string;
59
59
  completedAt: string | null;
60
60
  }>;
@@ -66,13 +66,13 @@ declare const createRefundInputSchema: z.ZodObject<{
66
66
  note: z.ZodOptional<z.ZodString>;
67
67
  }, "strip", z.ZodTypeAny, {
68
68
  amount: string;
69
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
70
69
  transactionId: string;
70
+ reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
71
71
  note?: string | undefined;
72
72
  }, {
73
73
  amount: string;
74
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
75
74
  transactionId: string;
75
+ reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
76
76
  note?: string | undefined;
77
77
  }>;
78
78
  type CreateRefundInput = z.input<typeof createRefundInputSchema>;
@@ -101,14 +101,14 @@ declare const refundSigningInstructionsSchema: z.ZodObject<{
101
101
  note: z.ZodString;
102
102
  }, "strip", z.ZodTypeAny, {
103
103
  amount: string;
104
+ to: string;
104
105
  note: string;
105
106
  token: string;
106
- to: string;
107
107
  }, {
108
108
  amount: string;
109
+ to: string;
109
110
  note: string;
110
111
  token: string;
111
- to: string;
112
112
  }>;
113
113
  type RefundSigningInstructions = z.infer<typeof refundSigningInstructionsSchema>;
114
114
  declare const refundCreateOutputSchema: z.ZodObject<{
@@ -129,32 +129,32 @@ 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
- id: string;
133
- merchantId: string;
134
- createdAt: string;
135
132
  amount: string;
136
133
  currency: "USDC" | "EURC";
137
- payerAddress: string;
138
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
139
- failureReason: string | null;
140
- transactionId: string;
134
+ merchantId: string;
135
+ id: string;
141
136
  note: string | null;
137
+ createdAt: string;
138
+ transactionId: string;
139
+ reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
140
+ payerAddress: string;
142
141
  refundTxHash: string | null;
142
+ failureReason: string | null;
143
143
  initiatedBy: string;
144
144
  completedAt: string | null;
145
145
  }, {
146
146
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
147
- id: string;
148
- merchantId: string;
149
- createdAt: string;
150
147
  amount: string;
151
148
  currency: "USDC" | "EURC";
152
- payerAddress: string;
153
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
154
- failureReason: string | null;
155
- transactionId: string;
149
+ merchantId: string;
150
+ id: string;
156
151
  note: string | null;
152
+ createdAt: string;
153
+ transactionId: string;
154
+ reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
155
+ payerAddress: string;
157
156
  refundTxHash: string | null;
157
+ failureReason: string | null;
158
158
  initiatedBy: string;
159
159
  completedAt: string | null;
160
160
  }>;
@@ -165,60 +165,60 @@ declare const refundCreateOutputSchema: z.ZodObject<{
165
165
  note: z.ZodString;
166
166
  }, "strip", z.ZodTypeAny, {
167
167
  amount: string;
168
+ to: string;
168
169
  note: string;
169
170
  token: string;
170
- to: string;
171
171
  }, {
172
172
  amount: string;
173
+ to: string;
173
174
  note: string;
174
175
  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
- id: string;
181
- merchantId: string;
182
- createdAt: string;
183
180
  amount: string;
184
181
  currency: "USDC" | "EURC";
185
- payerAddress: string;
186
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
187
- failureReason: string | null;
188
- transactionId: string;
182
+ merchantId: string;
183
+ id: string;
189
184
  note: string | null;
185
+ createdAt: string;
186
+ transactionId: string;
187
+ reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
188
+ payerAddress: string;
190
189
  refundTxHash: string | null;
190
+ failureReason: string | null;
191
191
  initiatedBy: string;
192
192
  completedAt: string | null;
193
193
  };
194
194
  signingInstructions: {
195
195
  amount: string;
196
+ to: string;
196
197
  note: string;
197
198
  token: string;
198
- to: string;
199
199
  };
200
200
  }, {
201
201
  refund: {
202
202
  status: "submitted" | "failed" | "cancelled" | "pending" | "awaiting_signature" | "completed";
203
- id: string;
204
- merchantId: string;
205
- createdAt: string;
206
203
  amount: string;
207
204
  currency: "USDC" | "EURC";
208
- payerAddress: string;
209
- reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
210
- failureReason: string | null;
211
- transactionId: string;
205
+ merchantId: string;
206
+ id: string;
212
207
  note: string | null;
208
+ createdAt: string;
209
+ transactionId: string;
210
+ reason: "customer_request" | "product_issue" | "duplicate_charge" | "fraudulent" | "other";
211
+ payerAddress: string;
213
212
  refundTxHash: string | null;
213
+ failureReason: string | null;
214
214
  initiatedBy: string;
215
215
  completedAt: string | null;
216
216
  };
217
217
  signingInstructions: {
218
218
  amount: string;
219
+ to: string;
219
220
  note: string;
220
221
  token: string;
221
- to: string;
222
222
  };
223
223
  }>;
224
224
  type RefundCreateOutput = z.infer<typeof refundCreateOutputSchema>;
@@ -20,26 +20,26 @@ declare const storefrontSchema: z.ZodObject<{
20
20
  createdAt: z.ZodString;
21
21
  updatedAt: z.ZodString;
22
22
  }, "strip", z.ZodTypeAny, {
23
- status: "archived" | "draft" | "published";
24
- id: string;
23
+ status: "draft" | "archived" | "published";
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;
33
33
  accentColor: string | null;
34
34
  socialLinks: string[];
35
35
  }, {
36
- status: "archived" | "draft" | "published";
37
- id: string;
36
+ status: "draft" | "archived" | "published";
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
- }, "name" | "description" | "logoUrl" | "slug" | "coverImageUrl" | "accentColor" | "socialLinks">, "strip", z.ZodTypeAny, {
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
- id: string;
105
- name: string;
106
- createdAt: string;
107
104
  currency: "USDC" | "EURC";
108
105
  description: string | null;
106
+ id: string;
107
+ createdAt: string;
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
- id: string;
122
- name: string;
123
- createdAt: string;
124
121
  currency: "USDC" | "EURC";
125
122
  description: string | null;
123
+ id: string;
124
+ createdAt: string;
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
140
  currency: z.ZodEnum<["USDC", "EURC"]>;
142
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.ZodEffects<z.ZodString, string, string>;
@@ -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
154
  currency: "USDC" | "EURC";
156
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
167
  currency: "USDC" | "EURC";
169
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
180
  currency: "USDC" | "EURC";
182
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
193
  currency: "USDC" | "EURC";
195
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>;