@strimz/shared-types 0.7.0 → 0.9.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.
Files changed (52) hide show
  1. package/dist/analytics.cjs +558 -0
  2. package/dist/analytics.cjs.map +1 -0
  3. package/dist/analytics.d.cts +1719 -0
  4. package/dist/analytics.d.ts +1719 -0
  5. package/dist/analytics.js +530 -0
  6. package/dist/analytics.js.map +1 -0
  7. package/dist/api-keys.d.cts +20 -20
  8. package/dist/api-keys.d.ts +20 -20
  9. package/dist/compliance.d.cts +6 -6
  10. package/dist/compliance.d.ts +6 -6
  11. package/dist/customers.d.cts +7 -7
  12. package/dist/customers.d.ts +7 -7
  13. package/dist/events.cjs +0 -10
  14. package/dist/events.cjs.map +1 -1
  15. package/dist/events.d.cts +1885 -1885
  16. package/dist/events.d.ts +1885 -1885
  17. package/dist/events.js +0 -10
  18. package/dist/events.js.map +1 -1
  19. package/dist/index.cjs +216 -11
  20. package/dist/index.cjs.map +1 -1
  21. package/dist/index.d.cts +16 -15
  22. package/dist/index.d.ts +16 -15
  23. package/dist/index.js +190 -11
  24. package/dist/index.js.map +1 -1
  25. package/dist/invoices.d.cts +16 -16
  26. package/dist/invoices.d.ts +16 -16
  27. package/dist/merchants.d.cts +29 -29
  28. package/dist/merchants.d.ts +29 -29
  29. package/dist/payment-sessions.d.cts +19 -19
  30. package/dist/payment-sessions.d.ts +19 -19
  31. package/dist/refunds.d.cts +50 -50
  32. package/dist/refunds.d.ts +50 -50
  33. package/dist/storefronts.cjs +0 -10
  34. package/dist/storefronts.cjs.map +1 -1
  35. package/dist/storefronts.d.cts +24 -24
  36. package/dist/storefronts.d.ts +24 -24
  37. package/dist/storefronts.js +0 -10
  38. package/dist/storefronts.js.map +1 -1
  39. package/dist/subscriptions.cjs +0 -11
  40. package/dist/subscriptions.cjs.map +1 -1
  41. package/dist/subscriptions.d.cts +43 -81
  42. package/dist/subscriptions.d.ts +43 -81
  43. package/dist/subscriptions.js +1 -11
  44. package/dist/subscriptions.js.map +1 -1
  45. package/dist/transactions.d.cts +16 -16
  46. package/dist/transactions.d.ts +16 -16
  47. package/dist/webhooks.d.cts +28 -28
  48. package/dist/webhooks.d.ts +28 -28
  49. package/package.json +6 -1
  50. package/src/analytics.ts +275 -0
  51. package/src/index.ts +1 -0
  52. package/src/subscriptions.ts +0 -13
@@ -134,19 +134,6 @@ export const subscriptionEnrolmentTermsSchema = z.object({
134
134
  })
135
135
  export type SubscriptionEnrolmentTerms = z.infer<typeof subscriptionEnrolmentTermsSchema>
136
136
 
137
- export const createSubscriptionInputSchema = z.object({
138
- planId: idSchema,
139
- customer: z.object({
140
- walletAddress: evmAddressSchema,
141
- email: z.string().email().optional(),
142
- externalRef: z.string().max(120).optional(),
143
- }),
144
- gracePeriodHours: z.union([z.literal(24), z.literal(48), z.literal(72)]).default(48),
145
- metadata: metadataSchema.optional(),
146
- })
147
- export type CreateSubscriptionInput = z.input<typeof createSubscriptionInputSchema>
148
- export type CreateSubscriptionParsed = z.output<typeof createSubscriptionInputSchema>
149
-
150
137
  export const cancelSubscriptionInputSchema = z.object({
151
138
  id: idSchema,
152
139
  reason: z.string().max(500).optional(),