@strimz/shared-types 0.16.0 → 0.18.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.cjs CHANGED
@@ -601,6 +601,7 @@ var webhookEventNameSchema = zod.z.enum([
601
601
  "subscription.reactivated",
602
602
  "refund.created",
603
603
  "refund.completed",
604
+ "refund.failed",
604
605
  "invoice.created",
605
606
  "invoice.paid",
606
607
  "invoice.overdue",
@@ -983,6 +984,7 @@ var refundCompletedEventSchema = envelope(
983
984
  "refund.completed",
984
985
  zod.z.object({ refund: refundSchema, transaction: transactionSchema })
985
986
  );
987
+ var refundFailedEventSchema = envelope("refund.failed", refundSchema);
986
988
  var invoiceCreatedEventSchema = envelope("invoice.created", invoiceSchema);
987
989
  var invoicePaidEventSchema = envelope(
988
990
  "invoice.paid",
@@ -1013,6 +1015,7 @@ var webhookEventSchema = zod.z.discriminatedUnion("type", [
1013
1015
  subscriptionReactivatedEventSchema,
1014
1016
  refundCreatedEventSchema,
1015
1017
  refundCompletedEventSchema,
1018
+ refundFailedEventSchema,
1016
1019
  invoiceCreatedEventSchema,
1017
1020
  invoicePaidEventSchema,
1018
1021
  invoiceOverdueEventSchema,
@@ -1091,6 +1094,12 @@ var broadcastSchema = zod.z.object({
1091
1094
  var broadcastListResponseSchema = zod.z.object({
1092
1095
  data: zod.z.array(broadcastSchema)
1093
1096
  });
1097
+ var notificationBroadcastSchema = zod.z.object({
1098
+ id: idSchema,
1099
+ title: zod.z.string(),
1100
+ html: zod.z.string(),
1101
+ createdAt: isoTimestampSchema
1102
+ });
1094
1103
  var notificationSchema = zod.z.object({
1095
1104
  /** Deterministic client id — `{kind}:{sourceId}`. Safe for React keys. */
1096
1105
  id: zod.z.string().min(1),
@@ -1396,6 +1405,7 @@ exports.merchantTierSchema = merchantTierSchema;
1396
1405
  exports.metadataSchema = metadataSchema;
1397
1406
  exports.modeSchema = modeSchema;
1398
1407
  exports.moneySchema = moneySchema;
1408
+ exports.notificationBroadcastSchema = notificationBroadcastSchema;
1399
1409
  exports.notificationKindSchema = notificationKindSchema;
1400
1410
  exports.notificationListResponseSchema = notificationListResponseSchema;
1401
1411
  exports.notificationSchema = notificationSchema;
@@ -1411,6 +1421,7 @@ exports.paymentSessionStatusSchema = paymentSessionStatusSchema;
1411
1421
  exports.refundCompletedEventSchema = refundCompletedEventSchema;
1412
1422
  exports.refundCreateOutputSchema = refundCreateOutputSchema;
1413
1423
  exports.refundCreatedEventSchema = refundCreatedEventSchema;
1424
+ exports.refundFailedEventSchema = refundFailedEventSchema;
1414
1425
  exports.refundReasonSchema = refundReasonSchema;
1415
1426
  exports.refundSchema = refundSchema;
1416
1427
  exports.refundSigningInstructionsSchema = refundSigningInstructionsSchema;