@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.
- package/dist/analytics.cjs +558 -0
- package/dist/analytics.cjs.map +1 -0
- package/dist/analytics.d.cts +1719 -0
- package/dist/analytics.d.ts +1719 -0
- package/dist/analytics.js +530 -0
- package/dist/analytics.js.map +1 -0
- package/dist/api-keys.d.cts +20 -20
- package/dist/api-keys.d.ts +20 -20
- package/dist/compliance.d.cts +6 -6
- package/dist/compliance.d.ts +6 -6
- package/dist/customers.d.cts +7 -7
- package/dist/customers.d.ts +7 -7
- package/dist/events.cjs +0 -10
- package/dist/events.cjs.map +1 -1
- package/dist/events.d.cts +1885 -1885
- package/dist/events.d.ts +1885 -1885
- package/dist/events.js +0 -10
- package/dist/events.js.map +1 -1
- package/dist/index.cjs +216 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -15
- package/dist/index.d.ts +16 -15
- package/dist/index.js +190 -11
- package/dist/index.js.map +1 -1
- package/dist/invoices.d.cts +16 -16
- package/dist/invoices.d.ts +16 -16
- package/dist/merchants.d.cts +29 -29
- package/dist/merchants.d.ts +29 -29
- package/dist/payment-sessions.d.cts +19 -19
- package/dist/payment-sessions.d.ts +19 -19
- package/dist/refunds.d.cts +50 -50
- package/dist/refunds.d.ts +50 -50
- package/dist/storefronts.cjs +0 -10
- package/dist/storefronts.cjs.map +1 -1
- package/dist/storefronts.d.cts +24 -24
- package/dist/storefronts.d.ts +24 -24
- package/dist/storefronts.js +0 -10
- package/dist/storefronts.js.map +1 -1
- package/dist/subscriptions.cjs +0 -11
- package/dist/subscriptions.cjs.map +1 -1
- package/dist/subscriptions.d.cts +43 -81
- package/dist/subscriptions.d.ts +43 -81
- package/dist/subscriptions.js +1 -11
- package/dist/subscriptions.js.map +1 -1
- package/dist/transactions.d.cts +16 -16
- package/dist/transactions.d.ts +16 -16
- package/dist/webhooks.d.cts +28 -28
- package/dist/webhooks.d.ts +28 -28
- package/package.json +6 -1
- package/src/analytics.ts +275 -0
- package/src/index.ts +1 -0
- package/src/subscriptions.ts +0 -13
package/src/subscriptions.ts
CHANGED
|
@@ -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(),
|