@strimz/shared-types 0.18.0 → 0.19.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/index.d.cts CHANGED
@@ -163,7 +163,7 @@ type ContactRequestOutput = z.infer<typeof contactRequestOutputSchema>;
163
163
  * just be a denormalised copy.
164
164
  */
165
165
 
166
- declare const notificationKindSchema: z.ZodEnum<["payment_received", "subscription_started", "refund_processed", "admin_broadcast"]>;
166
+ declare const notificationKindSchema: z.ZodEnum<["payment_received", "subscription_started", "refund_processed", "admin_broadcast", "allowance_low"]>;
167
167
  type NotificationKind = z.infer<typeof notificationKindSchema>;
168
168
  declare const broadcastAudienceSchema: z.ZodEnum<["all", "merchant"]>;
169
169
  type BroadcastAudience = z.infer<typeof broadcastAudienceSchema>;
@@ -315,7 +315,7 @@ type NotificationBroadcast = z.infer<typeof notificationBroadcastSchema>;
315
315
  declare const notificationSchema: z.ZodObject<{
316
316
  /** Deterministic client id — `{kind}:{sourceId}`. Safe for React keys. */
317
317
  id: z.ZodString;
318
- kind: z.ZodEnum<["payment_received", "subscription_started", "refund_processed", "admin_broadcast"]>;
318
+ kind: z.ZodEnum<["payment_received", "subscription_started", "refund_processed", "admin_broadcast", "allowance_low"]>;
319
319
  title: z.ZodString;
320
320
  detail: z.ZodString;
321
321
  /** Dashboard route the tray links to. */
@@ -329,7 +329,7 @@ declare const notificationSchema: z.ZodObject<{
329
329
  }, "strip", z.ZodTypeAny, {
330
330
  id: string;
331
331
  createdAt: string;
332
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
332
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast" | "allowance_low";
333
333
  title: string;
334
334
  detail: string;
335
335
  href: string;
@@ -338,7 +338,7 @@ declare const notificationSchema: z.ZodObject<{
338
338
  }, {
339
339
  id: string;
340
340
  createdAt: string;
341
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
341
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast" | "allowance_low";
342
342
  title: string;
343
343
  detail: string;
344
344
  href: string;
@@ -350,7 +350,7 @@ declare const notificationListResponseSchema: z.ZodObject<{
350
350
  data: z.ZodArray<z.ZodObject<{
351
351
  /** Deterministic client id — `{kind}:{sourceId}`. Safe for React keys. */
352
352
  id: z.ZodString;
353
- kind: z.ZodEnum<["payment_received", "subscription_started", "refund_processed", "admin_broadcast"]>;
353
+ kind: z.ZodEnum<["payment_received", "subscription_started", "refund_processed", "admin_broadcast", "allowance_low"]>;
354
354
  title: z.ZodString;
355
355
  detail: z.ZodString;
356
356
  /** Dashboard route the tray links to. */
@@ -364,7 +364,7 @@ declare const notificationListResponseSchema: z.ZodObject<{
364
364
  }, "strip", z.ZodTypeAny, {
365
365
  id: string;
366
366
  createdAt: string;
367
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
367
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast" | "allowance_low";
368
368
  title: string;
369
369
  detail: string;
370
370
  href: string;
@@ -373,7 +373,7 @@ declare const notificationListResponseSchema: z.ZodObject<{
373
373
  }, {
374
374
  id: string;
375
375
  createdAt: string;
376
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
376
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast" | "allowance_low";
377
377
  title: string;
378
378
  detail: string;
379
379
  href: string;
@@ -386,7 +386,7 @@ declare const notificationListResponseSchema: z.ZodObject<{
386
386
  data: {
387
387
  id: string;
388
388
  createdAt: string;
389
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
389
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast" | "allowance_low";
390
390
  title: string;
391
391
  detail: string;
392
392
  href: string;
@@ -399,7 +399,7 @@ declare const notificationListResponseSchema: z.ZodObject<{
399
399
  data: {
400
400
  id: string;
401
401
  createdAt: string;
402
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
402
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast" | "allowance_low";
403
403
  title: string;
404
404
  detail: string;
405
405
  href: string;
package/dist/index.d.ts CHANGED
@@ -163,7 +163,7 @@ type ContactRequestOutput = z.infer<typeof contactRequestOutputSchema>;
163
163
  * just be a denormalised copy.
164
164
  */
165
165
 
166
- declare const notificationKindSchema: z.ZodEnum<["payment_received", "subscription_started", "refund_processed", "admin_broadcast"]>;
166
+ declare const notificationKindSchema: z.ZodEnum<["payment_received", "subscription_started", "refund_processed", "admin_broadcast", "allowance_low"]>;
167
167
  type NotificationKind = z.infer<typeof notificationKindSchema>;
168
168
  declare const broadcastAudienceSchema: z.ZodEnum<["all", "merchant"]>;
169
169
  type BroadcastAudience = z.infer<typeof broadcastAudienceSchema>;
@@ -315,7 +315,7 @@ type NotificationBroadcast = z.infer<typeof notificationBroadcastSchema>;
315
315
  declare const notificationSchema: z.ZodObject<{
316
316
  /** Deterministic client id — `{kind}:{sourceId}`. Safe for React keys. */
317
317
  id: z.ZodString;
318
- kind: z.ZodEnum<["payment_received", "subscription_started", "refund_processed", "admin_broadcast"]>;
318
+ kind: z.ZodEnum<["payment_received", "subscription_started", "refund_processed", "admin_broadcast", "allowance_low"]>;
319
319
  title: z.ZodString;
320
320
  detail: z.ZodString;
321
321
  /** Dashboard route the tray links to. */
@@ -329,7 +329,7 @@ declare const notificationSchema: z.ZodObject<{
329
329
  }, "strip", z.ZodTypeAny, {
330
330
  id: string;
331
331
  createdAt: string;
332
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
332
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast" | "allowance_low";
333
333
  title: string;
334
334
  detail: string;
335
335
  href: string;
@@ -338,7 +338,7 @@ declare const notificationSchema: z.ZodObject<{
338
338
  }, {
339
339
  id: string;
340
340
  createdAt: string;
341
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
341
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast" | "allowance_low";
342
342
  title: string;
343
343
  detail: string;
344
344
  href: string;
@@ -350,7 +350,7 @@ declare const notificationListResponseSchema: z.ZodObject<{
350
350
  data: z.ZodArray<z.ZodObject<{
351
351
  /** Deterministic client id — `{kind}:{sourceId}`. Safe for React keys. */
352
352
  id: z.ZodString;
353
- kind: z.ZodEnum<["payment_received", "subscription_started", "refund_processed", "admin_broadcast"]>;
353
+ kind: z.ZodEnum<["payment_received", "subscription_started", "refund_processed", "admin_broadcast", "allowance_low"]>;
354
354
  title: z.ZodString;
355
355
  detail: z.ZodString;
356
356
  /** Dashboard route the tray links to. */
@@ -364,7 +364,7 @@ declare const notificationListResponseSchema: z.ZodObject<{
364
364
  }, "strip", z.ZodTypeAny, {
365
365
  id: string;
366
366
  createdAt: string;
367
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
367
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast" | "allowance_low";
368
368
  title: string;
369
369
  detail: string;
370
370
  href: string;
@@ -373,7 +373,7 @@ declare const notificationListResponseSchema: z.ZodObject<{
373
373
  }, {
374
374
  id: string;
375
375
  createdAt: string;
376
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
376
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast" | "allowance_low";
377
377
  title: string;
378
378
  detail: string;
379
379
  href: string;
@@ -386,7 +386,7 @@ declare const notificationListResponseSchema: z.ZodObject<{
386
386
  data: {
387
387
  id: string;
388
388
  createdAt: string;
389
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
389
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast" | "allowance_low";
390
390
  title: string;
391
391
  detail: string;
392
392
  href: string;
@@ -399,7 +399,7 @@ declare const notificationListResponseSchema: z.ZodObject<{
399
399
  data: {
400
400
  id: string;
401
401
  createdAt: string;
402
- kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast";
402
+ kind: "payment_received" | "subscription_started" | "refund_processed" | "admin_broadcast" | "allowance_low";
403
403
  title: string;
404
404
  detail: string;
405
405
  href: string;
package/dist/index.js CHANGED
@@ -1064,7 +1064,9 @@ var notificationKindSchema = z.enum([
1064
1064
  "subscription_started",
1065
1065
  "refund_processed",
1066
1066
  /** Message an admin broadcast to this merchant (or all merchants). */
1067
- "admin_broadcast"
1067
+ "admin_broadcast",
1068
+ /** A subscriber's token approval covers fewer than two more charges. */
1069
+ "allowance_low"
1068
1070
  ]);
1069
1071
  var broadcastAudienceSchema = z.enum(["all", "merchant"]);
1070
1072
  var createBroadcastInputSchema = z.object({