autumn-js 0.0.92 → 0.0.93
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/libraries/backend/better-auth.d.mts +33 -33
- package/dist/libraries/backend/better-auth.d.ts +33 -33
- package/dist/libraries/backend/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/{referralTypes-KJHGHDgD.d.ts → referralTypes-BAYl5TR1.d.ts} +18 -18
- package/dist/libraries/backend/{referralTypes-C_LRkLGP.d.mts → referralTypes-ecz_wESO.d.mts} +18 -18
- package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
- package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
- package/dist/libraries/react/AutumnContext.d.mts +4 -4
- package/dist/libraries/react/AutumnContext.d.ts +4 -4
- package/dist/libraries/react/AutumnContext.mjs +5 -5
- package/dist/libraries/react/BaseAutumnProvider.d.mts +4 -4
- package/dist/libraries/react/BaseAutumnProvider.d.ts +4 -4
- package/dist/libraries/react/BaseAutumnProvider.js +2 -1
- package/dist/libraries/react/BaseAutumnProvider.mjs +9 -9
- package/dist/libraries/react/{ReactAutumnClient-PGnPqPkr.d.ts → ReactAutumnClient-GEzKNujl.d.ts} +8 -8
- package/dist/libraries/react/{ReactAutumnClient-BmHGkNH1.d.mts → ReactAutumnClient-Z3DcfZ0x.d.mts} +8 -8
- package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.js +2 -1
- package/dist/libraries/react/ReactAutumnProvider.mjs +10 -10
- package/dist/libraries/react/{chunk-RZW3QO6B.mjs → chunk-3WP2MI55.mjs} +2 -2
- package/dist/libraries/react/{chunk-SDZ5NW6G.mjs → chunk-6JOSRG5Z.mjs} +2 -2
- package/dist/libraries/react/{chunk-TCCWWPEC.mjs → chunk-CHQRTGXF.mjs} +2 -2
- package/dist/libraries/react/{chunk-6SDVW33H.mjs → chunk-CRIKYVUD.mjs} +4 -3
- package/dist/libraries/react/{chunk-Y6RO4AM2.mjs → chunk-CZAXPWHV.mjs} +277 -277
- package/dist/libraries/react/{chunk-PJK6OPCU.mjs → chunk-GK75OJJJ.mjs} +2 -2
- package/dist/libraries/react/{chunk-HL4JNKWK.mjs → chunk-ITN754AD.mjs} +1 -1
- package/dist/libraries/react/{chunk-VH4FTCAC.mjs → chunk-QTEFT7SA.mjs} +2 -2
- package/dist/libraries/react/{chunk-OGFFPM5T.mjs → chunk-SJAAUTL2.mjs} +2 -2
- package/dist/libraries/react/{chunk-LPJSRHPQ.mjs → chunk-TBKIB6DH.mjs} +1 -1
- package/dist/libraries/react/{chunk-L3IZ2O3T.mjs → chunk-TD6CFKDQ.mjs} +3 -3
- package/dist/libraries/react/{chunk-DIJJCQ2N.mjs → chunk-UHUADKEF.mjs} +3 -3
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +4 -4
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +4 -4
- package/dist/libraries/react/client/ReactAutumnClient.mjs +4 -4
- package/dist/libraries/react/client/clientCompMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientCompMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientCusMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientCusMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientEntityMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientEntityMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientGenMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientGenMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientProdMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientProdMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientReferralMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientReferralMethods.d.ts +4 -4
- package/dist/libraries/react/client/types/clientGenTypes.d.mts +12 -12
- package/dist/libraries/react/client/types/clientGenTypes.d.ts +12 -12
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.mts +1 -1
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +1 -1
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.js +2 -1
- package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +18 -18
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +1 -1
- package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.mts +1 -1
- package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.ts +1 -1
- package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +1 -1
- package/dist/libraries/react/components/check-dialog/lib/check-content.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +2 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +18 -18
- package/dist/libraries/react/components/ui/button.d.mts +1 -1
- package/dist/libraries/react/components/ui/button.d.ts +1 -1
- package/dist/libraries/react/{cusTypes-WaPJKeAb.d.ts → cusTypes-DUC0TrK5.d.mts} +1 -1
- package/dist/libraries/react/{cusTypes-WaPJKeAb.d.mts → cusTypes-DUC0TrK5.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-D01S8gFX.d.ts → entTypes-Ddl0CGp9.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-aIV0QUCW.d.mts → entTypes-Mq0F4CAa.d.mts} +1 -1
- package/dist/libraries/react/hooks/handleAllowed.d.mts +2 -2
- package/dist/libraries/react/hooks/handleAllowed.d.ts +2 -2
- package/dist/libraries/react/hooks/useAutumn.d.mts +2 -2
- package/dist/libraries/react/hooks/useAutumn.d.ts +2 -2
- package/dist/libraries/react/hooks/useAutumn.mjs +8 -8
- package/dist/libraries/react/hooks/useAutumnBase.d.mts +4 -4
- package/dist/libraries/react/hooks/useAutumnBase.d.ts +4 -4
- package/dist/libraries/react/hooks/useAutumnBase.mjs +7 -7
- package/dist/libraries/react/hooks/useCustomer.d.mts +4 -4
- package/dist/libraries/react/hooks/useCustomer.d.ts +4 -4
- package/dist/libraries/react/hooks/useCustomer.js +2 -1
- package/dist/libraries/react/hooks/useCustomer.mjs +9 -9
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +4 -4
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +4 -4
- package/dist/libraries/react/hooks/useCustomerBase.js +2 -1
- package/dist/libraries/react/hooks/useCustomerBase.mjs +8 -8
- package/dist/libraries/react/hooks/useEntity.d.mts +3 -3
- package/dist/libraries/react/hooks/useEntity.d.ts +3 -3
- package/dist/libraries/react/hooks/useEntity.mjs +9 -9
- package/dist/libraries/react/hooks/useEntityBase.d.mts +4 -4
- package/dist/libraries/react/hooks/useEntityBase.d.ts +4 -4
- package/dist/libraries/react/hooks/useEntityBase.mjs +8 -8
- package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.mjs +7 -7
- package/dist/libraries/react/hooks/usePricingTableBase.d.mts +4 -4
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +4 -4
- package/dist/libraries/react/hooks/usePricingTableBase.mjs +6 -6
- package/dist/libraries/react/hooks/useProductsBase.mjs +5 -5
- package/dist/libraries/react/index.js +2 -1
- package/dist/libraries/react/index.mjs +2 -1
- package/dist/libraries/react/{response-CvPzWrT9.d.ts → response-B8Tq3x66.d.ts} +3 -3
- package/dist/libraries/react/{response-Bt5OMm4y.d.mts → response-CMrRLv9c.d.mts} +3 -3
- package/dist/next/client/NextAutumnClient.d.mts +6 -6
- package/dist/next/client/NextAutumnClient.d.ts +6 -6
- package/dist/next/client/hooks/useAutumn.d.mts +1 -1
- package/dist/next/client/hooks/useAutumn.d.ts +1 -1
- package/dist/next/client/hooks/useCustomer.d.mts +1 -1
- package/dist/next/client/hooks/useCustomer.d.ts +1 -1
- package/dist/next/client/hooks/useEntity.d.mts +1 -1
- package/dist/next/client/hooks/useEntity.d.ts +1 -1
- package/package.json +1 -1
- package/dist/libraries/react/{chunk-NCPXL3J2.mjs → chunk-QAHVMSK4.mjs} +13 -13
- package/dist/next/client/{clientGenTypes-BPjTbeG-.d.mts → clientGenTypes-DWrGEdrD.d.mts} +12 -12
- package/dist/next/client/{clientGenTypes-Bqecpl58.d.ts → clientGenTypes-D_Ea92Du.d.ts} +12 -12
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import * as better_auth from 'better-auth';
|
|
3
|
-
import { A as Autumn } from './referralTypes-
|
|
3
|
+
import { A as Autumn } from './referralTypes-ecz_wESO.mjs';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import './response-CV6KGWH5.mjs';
|
|
6
6
|
|
|
@@ -122,20 +122,20 @@ declare const autumn: (options?: {
|
|
|
122
122
|
attach: {
|
|
123
123
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
124
124
|
body: {
|
|
125
|
-
options?: {
|
|
126
|
-
quantity: number;
|
|
127
|
-
featureId: string;
|
|
128
|
-
}[] | undefined;
|
|
129
125
|
metadata?: Record<string, string> | undefined;
|
|
130
|
-
|
|
126
|
+
checkoutSessionParams?: Record<string, any> | undefined;
|
|
131
127
|
productId?: string | undefined;
|
|
132
128
|
entityId?: string | undefined;
|
|
129
|
+
options?: {
|
|
130
|
+
featureId: string;
|
|
131
|
+
quantity: number;
|
|
132
|
+
}[] | undefined;
|
|
133
133
|
productIds?: string[] | undefined;
|
|
134
134
|
freeTrial?: boolean | undefined;
|
|
135
135
|
successUrl?: string | undefined;
|
|
136
136
|
forceCheckout?: boolean | undefined;
|
|
137
137
|
entityData?: any;
|
|
138
|
-
|
|
138
|
+
reward?: string | undefined;
|
|
139
139
|
};
|
|
140
140
|
} & {
|
|
141
141
|
method?: "POST" | undefined;
|
|
@@ -168,11 +168,11 @@ declare const autumn: (options?: {
|
|
|
168
168
|
featureId: z.ZodString;
|
|
169
169
|
quantity: z.ZodNumber;
|
|
170
170
|
}, "strip", z.ZodTypeAny, {
|
|
171
|
-
quantity: number;
|
|
172
171
|
featureId: string;
|
|
173
|
-
}, {
|
|
174
172
|
quantity: number;
|
|
173
|
+
}, {
|
|
175
174
|
featureId: string;
|
|
175
|
+
quantity: number;
|
|
176
176
|
}>, "many">>;
|
|
177
177
|
productIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
178
178
|
freeTrial: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -185,35 +185,35 @@ declare const autumn: (options?: {
|
|
|
185
185
|
reward: z.ZodOptional<z.ZodString>;
|
|
186
186
|
checkoutSessionParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
187
187
|
}, "dialog" | "openInNewTab">, "strip", z.ZodTypeAny, {
|
|
188
|
-
options?: {
|
|
189
|
-
quantity: number;
|
|
190
|
-
featureId: string;
|
|
191
|
-
}[] | undefined;
|
|
192
188
|
metadata?: Record<string, string> | undefined;
|
|
193
|
-
|
|
189
|
+
checkoutSessionParams?: Record<string, any> | undefined;
|
|
194
190
|
productId?: string | undefined;
|
|
195
191
|
entityId?: string | undefined;
|
|
192
|
+
options?: {
|
|
193
|
+
featureId: string;
|
|
194
|
+
quantity: number;
|
|
195
|
+
}[] | undefined;
|
|
196
196
|
productIds?: string[] | undefined;
|
|
197
197
|
freeTrial?: boolean | undefined;
|
|
198
198
|
successUrl?: string | undefined;
|
|
199
199
|
forceCheckout?: boolean | undefined;
|
|
200
200
|
entityData?: any;
|
|
201
|
-
|
|
201
|
+
reward?: string | undefined;
|
|
202
202
|
}, {
|
|
203
|
-
options?: {
|
|
204
|
-
quantity: number;
|
|
205
|
-
featureId: string;
|
|
206
|
-
}[] | undefined;
|
|
207
203
|
metadata?: Record<string, string> | undefined;
|
|
208
|
-
|
|
204
|
+
checkoutSessionParams?: Record<string, any> | undefined;
|
|
209
205
|
productId?: string | undefined;
|
|
210
206
|
entityId?: string | undefined;
|
|
207
|
+
options?: {
|
|
208
|
+
featureId: string;
|
|
209
|
+
quantity: number;
|
|
210
|
+
}[] | undefined;
|
|
211
211
|
productIds?: string[] | undefined;
|
|
212
212
|
freeTrial?: boolean | undefined;
|
|
213
213
|
successUrl?: string | undefined;
|
|
214
214
|
forceCheckout?: boolean | undefined;
|
|
215
215
|
entityData?: any;
|
|
216
|
-
|
|
216
|
+
reward?: string | undefined;
|
|
217
217
|
}>;
|
|
218
218
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
219
219
|
session: {
|
|
@@ -246,9 +246,9 @@ declare const autumn: (options?: {
|
|
|
246
246
|
check: {
|
|
247
247
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
248
248
|
body: {
|
|
249
|
-
featureId?: string | undefined;
|
|
250
249
|
productId?: string | undefined;
|
|
251
250
|
entityId?: string | undefined;
|
|
251
|
+
featureId?: string | undefined;
|
|
252
252
|
entityData?: any;
|
|
253
253
|
requiredBalance?: number | undefined;
|
|
254
254
|
sendEvent?: boolean | undefined;
|
|
@@ -288,17 +288,17 @@ declare const autumn: (options?: {
|
|
|
288
288
|
dialog: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodUnion<[z.ZodType<JSX.Element, z.ZodTypeDef, JSX.Element>, z.ZodType<react.ReactNode, z.ZodTypeDef, react.ReactNode>]>>>;
|
|
289
289
|
entityData: z.ZodOptional<z.ZodAny>;
|
|
290
290
|
}, "dialog">, "strip", z.ZodTypeAny, {
|
|
291
|
-
featureId?: string | undefined;
|
|
292
291
|
productId?: string | undefined;
|
|
293
292
|
entityId?: string | undefined;
|
|
293
|
+
featureId?: string | undefined;
|
|
294
294
|
entityData?: any;
|
|
295
295
|
requiredBalance?: number | undefined;
|
|
296
296
|
sendEvent?: boolean | undefined;
|
|
297
297
|
withPreview?: boolean | undefined;
|
|
298
298
|
}, {
|
|
299
|
-
featureId?: string | undefined;
|
|
300
299
|
productId?: string | undefined;
|
|
301
300
|
entityId?: string | undefined;
|
|
301
|
+
featureId?: string | undefined;
|
|
302
302
|
entityData?: any;
|
|
303
303
|
requiredBalance?: number | undefined;
|
|
304
304
|
sendEvent?: boolean | undefined;
|
|
@@ -335,9 +335,9 @@ declare const autumn: (options?: {
|
|
|
335
335
|
track: {
|
|
336
336
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
337
337
|
body: {
|
|
338
|
-
value?: number | undefined;
|
|
339
|
-
featureId?: string | undefined;
|
|
340
338
|
entityId?: string | undefined;
|
|
339
|
+
featureId?: string | undefined;
|
|
340
|
+
value?: number | undefined;
|
|
341
341
|
entityData?: any;
|
|
342
342
|
eventName?: string | undefined;
|
|
343
343
|
idempotencyKey?: string | undefined;
|
|
@@ -374,16 +374,16 @@ declare const autumn: (options?: {
|
|
|
374
374
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
375
375
|
entityData: z.ZodOptional<z.ZodAny>;
|
|
376
376
|
}, "strip", z.ZodTypeAny, {
|
|
377
|
-
value?: number | undefined;
|
|
378
|
-
featureId?: string | undefined;
|
|
379
377
|
entityId?: string | undefined;
|
|
378
|
+
featureId?: string | undefined;
|
|
379
|
+
value?: number | undefined;
|
|
380
380
|
entityData?: any;
|
|
381
381
|
eventName?: string | undefined;
|
|
382
382
|
idempotencyKey?: string | undefined;
|
|
383
383
|
}, {
|
|
384
|
-
value?: number | undefined;
|
|
385
|
-
featureId?: string | undefined;
|
|
386
384
|
entityId?: string | undefined;
|
|
385
|
+
featureId?: string | undefined;
|
|
386
|
+
value?: number | undefined;
|
|
387
387
|
entityData?: any;
|
|
388
388
|
eventName?: string | undefined;
|
|
389
389
|
idempotencyKey?: string | undefined;
|
|
@@ -619,8 +619,8 @@ declare const autumn: (options?: {
|
|
|
619
619
|
allowed: {
|
|
620
620
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
621
621
|
body: {
|
|
622
|
-
featureId?: string | undefined;
|
|
623
622
|
productId?: string | undefined;
|
|
623
|
+
featureId?: string | undefined;
|
|
624
624
|
requiredBalance?: number | undefined;
|
|
625
625
|
};
|
|
626
626
|
} & {
|
|
@@ -655,12 +655,12 @@ declare const autumn: (options?: {
|
|
|
655
655
|
productId: z.ZodOptional<z.ZodString>;
|
|
656
656
|
requiredBalance: z.ZodOptional<z.ZodNumber>;
|
|
657
657
|
}, "strip", z.ZodTypeAny, {
|
|
658
|
-
featureId?: string | undefined;
|
|
659
658
|
productId?: string | undefined;
|
|
659
|
+
featureId?: string | undefined;
|
|
660
660
|
requiredBalance?: number | undefined;
|
|
661
661
|
}, {
|
|
662
|
-
featureId?: string | undefined;
|
|
663
662
|
productId?: string | undefined;
|
|
663
|
+
featureId?: string | undefined;
|
|
664
664
|
requiredBalance?: number | undefined;
|
|
665
665
|
}>;
|
|
666
666
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import * as better_auth from 'better-auth';
|
|
3
|
-
import { A as Autumn } from './referralTypes-
|
|
3
|
+
import { A as Autumn } from './referralTypes-BAYl5TR1.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import './response-CV6KGWH5.js';
|
|
6
6
|
|
|
@@ -122,20 +122,20 @@ declare const autumn: (options?: {
|
|
|
122
122
|
attach: {
|
|
123
123
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
124
124
|
body: {
|
|
125
|
-
options?: {
|
|
126
|
-
quantity: number;
|
|
127
|
-
featureId: string;
|
|
128
|
-
}[] | undefined;
|
|
129
125
|
metadata?: Record<string, string> | undefined;
|
|
130
|
-
|
|
126
|
+
checkoutSessionParams?: Record<string, any> | undefined;
|
|
131
127
|
productId?: string | undefined;
|
|
132
128
|
entityId?: string | undefined;
|
|
129
|
+
options?: {
|
|
130
|
+
featureId: string;
|
|
131
|
+
quantity: number;
|
|
132
|
+
}[] | undefined;
|
|
133
133
|
productIds?: string[] | undefined;
|
|
134
134
|
freeTrial?: boolean | undefined;
|
|
135
135
|
successUrl?: string | undefined;
|
|
136
136
|
forceCheckout?: boolean | undefined;
|
|
137
137
|
entityData?: any;
|
|
138
|
-
|
|
138
|
+
reward?: string | undefined;
|
|
139
139
|
};
|
|
140
140
|
} & {
|
|
141
141
|
method?: "POST" | undefined;
|
|
@@ -168,11 +168,11 @@ declare const autumn: (options?: {
|
|
|
168
168
|
featureId: z.ZodString;
|
|
169
169
|
quantity: z.ZodNumber;
|
|
170
170
|
}, "strip", z.ZodTypeAny, {
|
|
171
|
-
quantity: number;
|
|
172
171
|
featureId: string;
|
|
173
|
-
}, {
|
|
174
172
|
quantity: number;
|
|
173
|
+
}, {
|
|
175
174
|
featureId: string;
|
|
175
|
+
quantity: number;
|
|
176
176
|
}>, "many">>;
|
|
177
177
|
productIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
178
178
|
freeTrial: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -185,35 +185,35 @@ declare const autumn: (options?: {
|
|
|
185
185
|
reward: z.ZodOptional<z.ZodString>;
|
|
186
186
|
checkoutSessionParams: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
187
187
|
}, "dialog" | "openInNewTab">, "strip", z.ZodTypeAny, {
|
|
188
|
-
options?: {
|
|
189
|
-
quantity: number;
|
|
190
|
-
featureId: string;
|
|
191
|
-
}[] | undefined;
|
|
192
188
|
metadata?: Record<string, string> | undefined;
|
|
193
|
-
|
|
189
|
+
checkoutSessionParams?: Record<string, any> | undefined;
|
|
194
190
|
productId?: string | undefined;
|
|
195
191
|
entityId?: string | undefined;
|
|
192
|
+
options?: {
|
|
193
|
+
featureId: string;
|
|
194
|
+
quantity: number;
|
|
195
|
+
}[] | undefined;
|
|
196
196
|
productIds?: string[] | undefined;
|
|
197
197
|
freeTrial?: boolean | undefined;
|
|
198
198
|
successUrl?: string | undefined;
|
|
199
199
|
forceCheckout?: boolean | undefined;
|
|
200
200
|
entityData?: any;
|
|
201
|
-
|
|
201
|
+
reward?: string | undefined;
|
|
202
202
|
}, {
|
|
203
|
-
options?: {
|
|
204
|
-
quantity: number;
|
|
205
|
-
featureId: string;
|
|
206
|
-
}[] | undefined;
|
|
207
203
|
metadata?: Record<string, string> | undefined;
|
|
208
|
-
|
|
204
|
+
checkoutSessionParams?: Record<string, any> | undefined;
|
|
209
205
|
productId?: string | undefined;
|
|
210
206
|
entityId?: string | undefined;
|
|
207
|
+
options?: {
|
|
208
|
+
featureId: string;
|
|
209
|
+
quantity: number;
|
|
210
|
+
}[] | undefined;
|
|
211
211
|
productIds?: string[] | undefined;
|
|
212
212
|
freeTrial?: boolean | undefined;
|
|
213
213
|
successUrl?: string | undefined;
|
|
214
214
|
forceCheckout?: boolean | undefined;
|
|
215
215
|
entityData?: any;
|
|
216
|
-
|
|
216
|
+
reward?: string | undefined;
|
|
217
217
|
}>;
|
|
218
218
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
219
219
|
session: {
|
|
@@ -246,9 +246,9 @@ declare const autumn: (options?: {
|
|
|
246
246
|
check: {
|
|
247
247
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
248
248
|
body: {
|
|
249
|
-
featureId?: string | undefined;
|
|
250
249
|
productId?: string | undefined;
|
|
251
250
|
entityId?: string | undefined;
|
|
251
|
+
featureId?: string | undefined;
|
|
252
252
|
entityData?: any;
|
|
253
253
|
requiredBalance?: number | undefined;
|
|
254
254
|
sendEvent?: boolean | undefined;
|
|
@@ -288,17 +288,17 @@ declare const autumn: (options?: {
|
|
|
288
288
|
dialog: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodUnion<[z.ZodType<JSX.Element, z.ZodTypeDef, JSX.Element>, z.ZodType<react.ReactNode, z.ZodTypeDef, react.ReactNode>]>>>;
|
|
289
289
|
entityData: z.ZodOptional<z.ZodAny>;
|
|
290
290
|
}, "dialog">, "strip", z.ZodTypeAny, {
|
|
291
|
-
featureId?: string | undefined;
|
|
292
291
|
productId?: string | undefined;
|
|
293
292
|
entityId?: string | undefined;
|
|
293
|
+
featureId?: string | undefined;
|
|
294
294
|
entityData?: any;
|
|
295
295
|
requiredBalance?: number | undefined;
|
|
296
296
|
sendEvent?: boolean | undefined;
|
|
297
297
|
withPreview?: boolean | undefined;
|
|
298
298
|
}, {
|
|
299
|
-
featureId?: string | undefined;
|
|
300
299
|
productId?: string | undefined;
|
|
301
300
|
entityId?: string | undefined;
|
|
301
|
+
featureId?: string | undefined;
|
|
302
302
|
entityData?: any;
|
|
303
303
|
requiredBalance?: number | undefined;
|
|
304
304
|
sendEvent?: boolean | undefined;
|
|
@@ -335,9 +335,9 @@ declare const autumn: (options?: {
|
|
|
335
335
|
track: {
|
|
336
336
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
337
337
|
body: {
|
|
338
|
-
value?: number | undefined;
|
|
339
|
-
featureId?: string | undefined;
|
|
340
338
|
entityId?: string | undefined;
|
|
339
|
+
featureId?: string | undefined;
|
|
340
|
+
value?: number | undefined;
|
|
341
341
|
entityData?: any;
|
|
342
342
|
eventName?: string | undefined;
|
|
343
343
|
idempotencyKey?: string | undefined;
|
|
@@ -374,16 +374,16 @@ declare const autumn: (options?: {
|
|
|
374
374
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
375
375
|
entityData: z.ZodOptional<z.ZodAny>;
|
|
376
376
|
}, "strip", z.ZodTypeAny, {
|
|
377
|
-
value?: number | undefined;
|
|
378
|
-
featureId?: string | undefined;
|
|
379
377
|
entityId?: string | undefined;
|
|
378
|
+
featureId?: string | undefined;
|
|
379
|
+
value?: number | undefined;
|
|
380
380
|
entityData?: any;
|
|
381
381
|
eventName?: string | undefined;
|
|
382
382
|
idempotencyKey?: string | undefined;
|
|
383
383
|
}, {
|
|
384
|
-
value?: number | undefined;
|
|
385
|
-
featureId?: string | undefined;
|
|
386
384
|
entityId?: string | undefined;
|
|
385
|
+
featureId?: string | undefined;
|
|
386
|
+
value?: number | undefined;
|
|
387
387
|
entityData?: any;
|
|
388
388
|
eventName?: string | undefined;
|
|
389
389
|
idempotencyKey?: string | undefined;
|
|
@@ -619,8 +619,8 @@ declare const autumn: (options?: {
|
|
|
619
619
|
allowed: {
|
|
620
620
|
<AsResponse extends boolean = false, ReturnHeaders extends boolean = false>(inputCtx_0: {
|
|
621
621
|
body: {
|
|
622
|
-
featureId?: string | undefined;
|
|
623
622
|
productId?: string | undefined;
|
|
623
|
+
featureId?: string | undefined;
|
|
624
624
|
requiredBalance?: number | undefined;
|
|
625
625
|
};
|
|
626
626
|
} & {
|
|
@@ -655,12 +655,12 @@ declare const autumn: (options?: {
|
|
|
655
655
|
productId: z.ZodOptional<z.ZodString>;
|
|
656
656
|
requiredBalance: z.ZodOptional<z.ZodNumber>;
|
|
657
657
|
}, "strip", z.ZodTypeAny, {
|
|
658
|
-
featureId?: string | undefined;
|
|
659
658
|
productId?: string | undefined;
|
|
659
|
+
featureId?: string | undefined;
|
|
660
660
|
requiredBalance?: number | undefined;
|
|
661
661
|
}, {
|
|
662
|
-
featureId?: string | undefined;
|
|
663
662
|
productId?: string | undefined;
|
|
663
|
+
featureId?: string | undefined;
|
|
664
664
|
requiredBalance?: number | undefined;
|
|
665
665
|
}>;
|
|
666
666
|
use: ((inputContext: better_auth.MiddlewareInputContext<better_auth.MiddlewareOptions>) => Promise<{
|
|
@@ -230,19 +230,19 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
|
230
230
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
231
231
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
232
232
|
}, "strip", z.ZodTypeAny, {
|
|
233
|
+
metadata?: Record<string, any> | undefined;
|
|
233
234
|
id?: string | null | undefined;
|
|
234
|
-
email?: string | null | undefined;
|
|
235
235
|
name?: string | null | undefined;
|
|
236
|
+
email?: string | null | undefined;
|
|
236
237
|
fingerprint?: string | null | undefined;
|
|
237
|
-
|
|
238
|
-
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
238
|
+
expand?: ("referrals" | "invoices" | "rewards" | "trials_used" | "entities" | "payment_method")[] | undefined;
|
|
239
239
|
}, {
|
|
240
|
+
metadata?: Record<string, any> | undefined;
|
|
240
241
|
id?: string | null | undefined;
|
|
241
|
-
email?: string | null | undefined;
|
|
242
242
|
name?: string | null | undefined;
|
|
243
|
+
email?: string | null | undefined;
|
|
243
244
|
fingerprint?: string | null | undefined;
|
|
244
|
-
|
|
245
|
-
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
245
|
+
expand?: ("referrals" | "invoices" | "rewards" | "trials_used" | "entities" | "payment_method")[] | undefined;
|
|
246
246
|
}>;
|
|
247
247
|
type CreateCustomerParams = z.infer<typeof CreateCustomerParamsSchema>;
|
|
248
248
|
interface UpdateCustomerParams {
|
|
@@ -304,11 +304,11 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
304
304
|
feature_id: z.ZodString;
|
|
305
305
|
quantity: z.ZodNumber;
|
|
306
306
|
}, "strip", z.ZodTypeAny, {
|
|
307
|
-
feature_id: string;
|
|
308
307
|
quantity: number;
|
|
309
|
-
}, {
|
|
310
308
|
feature_id: string;
|
|
309
|
+
}, {
|
|
311
310
|
quantity: number;
|
|
311
|
+
feature_id: string;
|
|
312
312
|
}>, "many">>;
|
|
313
313
|
product_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
314
314
|
free_trial: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -321,38 +321,38 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
321
321
|
reward: z.ZodOptional<z.ZodString>;
|
|
322
322
|
}, "strip", z.ZodTypeAny, {
|
|
323
323
|
customer_id: string;
|
|
324
|
+
metadata?: Record<string, string> | undefined;
|
|
324
325
|
options?: {
|
|
325
|
-
feature_id: string;
|
|
326
326
|
quantity: number;
|
|
327
|
+
feature_id: string;
|
|
327
328
|
}[] | undefined;
|
|
328
|
-
|
|
329
|
-
customer_data?: any;
|
|
329
|
+
reward?: string | undefined;
|
|
330
330
|
entity_id?: string | undefined;
|
|
331
331
|
product_id?: string | undefined;
|
|
332
332
|
product_ids?: string[] | undefined;
|
|
333
333
|
free_trial?: boolean | undefined;
|
|
334
334
|
success_url?: string | undefined;
|
|
335
335
|
force_checkout?: boolean | undefined;
|
|
336
|
+
customer_data?: any;
|
|
336
337
|
entity_data?: any;
|
|
337
338
|
checkout_session_params?: Record<string, any> | undefined;
|
|
338
|
-
reward?: string | undefined;
|
|
339
339
|
}, {
|
|
340
340
|
customer_id: string;
|
|
341
|
+
metadata?: Record<string, string> | undefined;
|
|
341
342
|
options?: {
|
|
342
|
-
feature_id: string;
|
|
343
343
|
quantity: number;
|
|
344
|
+
feature_id: string;
|
|
344
345
|
}[] | undefined;
|
|
345
|
-
|
|
346
|
-
customer_data?: any;
|
|
346
|
+
reward?: string | undefined;
|
|
347
347
|
entity_id?: string | undefined;
|
|
348
348
|
product_id?: string | undefined;
|
|
349
349
|
product_ids?: string[] | undefined;
|
|
350
350
|
free_trial?: boolean | undefined;
|
|
351
351
|
success_url?: string | undefined;
|
|
352
352
|
force_checkout?: boolean | undefined;
|
|
353
|
+
customer_data?: any;
|
|
353
354
|
entity_data?: any;
|
|
354
355
|
checkout_session_params?: Record<string, any> | undefined;
|
|
355
|
-
reward?: string | undefined;
|
|
356
356
|
}>;
|
|
357
357
|
type AttachParams = z.infer<typeof AttachParamsSchema>;
|
|
358
358
|
interface CancelParams {
|
|
@@ -480,8 +480,8 @@ declare class Autumn {
|
|
|
480
480
|
redeemCode: (params: RedeemReferralCodeParams) => Promise<Result<any, AutumnError>>;
|
|
481
481
|
};
|
|
482
482
|
static attach: (params: AttachParams) => Promise<Result<{
|
|
483
|
-
code: string;
|
|
484
483
|
message: string;
|
|
484
|
+
code: string;
|
|
485
485
|
customer_id: string;
|
|
486
486
|
product_ids: string[];
|
|
487
487
|
customer_data?: any;
|
|
@@ -489,8 +489,8 @@ declare class Autumn {
|
|
|
489
489
|
}, AutumnError>>;
|
|
490
490
|
static usage: (params: UsageParams) => Promise<Result<UsageResult, AutumnError>>;
|
|
491
491
|
attach(params: AttachParams): Promise<Result<{
|
|
492
|
-
code: string;
|
|
493
492
|
message: string;
|
|
493
|
+
code: string;
|
|
494
494
|
customer_id: string;
|
|
495
495
|
product_ids: string[];
|
|
496
496
|
customer_data?: any;
|
package/dist/libraries/backend/{referralTypes-C_LRkLGP.d.mts → referralTypes-ecz_wESO.d.mts}
RENAMED
|
@@ -230,19 +230,19 @@ declare const CreateCustomerParamsSchema: z.ZodObject<{
|
|
|
230
230
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
231
231
|
expand: z.ZodOptional<z.ZodArray<z.ZodEnum<["invoices", "rewards", "trials_used", "entities", "referrals", "payment_method"]>, "many">>;
|
|
232
232
|
}, "strip", z.ZodTypeAny, {
|
|
233
|
+
metadata?: Record<string, any> | undefined;
|
|
233
234
|
id?: string | null | undefined;
|
|
234
|
-
email?: string | null | undefined;
|
|
235
235
|
name?: string | null | undefined;
|
|
236
|
+
email?: string | null | undefined;
|
|
236
237
|
fingerprint?: string | null | undefined;
|
|
237
|
-
|
|
238
|
-
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
238
|
+
expand?: ("referrals" | "invoices" | "rewards" | "trials_used" | "entities" | "payment_method")[] | undefined;
|
|
239
239
|
}, {
|
|
240
|
+
metadata?: Record<string, any> | undefined;
|
|
240
241
|
id?: string | null | undefined;
|
|
241
|
-
email?: string | null | undefined;
|
|
242
242
|
name?: string | null | undefined;
|
|
243
|
+
email?: string | null | undefined;
|
|
243
244
|
fingerprint?: string | null | undefined;
|
|
244
|
-
|
|
245
|
-
expand?: ("invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method")[] | undefined;
|
|
245
|
+
expand?: ("referrals" | "invoices" | "rewards" | "trials_used" | "entities" | "payment_method")[] | undefined;
|
|
246
246
|
}>;
|
|
247
247
|
type CreateCustomerParams = z.infer<typeof CreateCustomerParamsSchema>;
|
|
248
248
|
interface UpdateCustomerParams {
|
|
@@ -304,11 +304,11 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
304
304
|
feature_id: z.ZodString;
|
|
305
305
|
quantity: z.ZodNumber;
|
|
306
306
|
}, "strip", z.ZodTypeAny, {
|
|
307
|
-
feature_id: string;
|
|
308
307
|
quantity: number;
|
|
309
|
-
}, {
|
|
310
308
|
feature_id: string;
|
|
309
|
+
}, {
|
|
311
310
|
quantity: number;
|
|
311
|
+
feature_id: string;
|
|
312
312
|
}>, "many">>;
|
|
313
313
|
product_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
314
314
|
free_trial: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -321,38 +321,38 @@ declare const AttachParamsSchema: z.ZodObject<{
|
|
|
321
321
|
reward: z.ZodOptional<z.ZodString>;
|
|
322
322
|
}, "strip", z.ZodTypeAny, {
|
|
323
323
|
customer_id: string;
|
|
324
|
+
metadata?: Record<string, string> | undefined;
|
|
324
325
|
options?: {
|
|
325
|
-
feature_id: string;
|
|
326
326
|
quantity: number;
|
|
327
|
+
feature_id: string;
|
|
327
328
|
}[] | undefined;
|
|
328
|
-
|
|
329
|
-
customer_data?: any;
|
|
329
|
+
reward?: string | undefined;
|
|
330
330
|
entity_id?: string | undefined;
|
|
331
331
|
product_id?: string | undefined;
|
|
332
332
|
product_ids?: string[] | undefined;
|
|
333
333
|
free_trial?: boolean | undefined;
|
|
334
334
|
success_url?: string | undefined;
|
|
335
335
|
force_checkout?: boolean | undefined;
|
|
336
|
+
customer_data?: any;
|
|
336
337
|
entity_data?: any;
|
|
337
338
|
checkout_session_params?: Record<string, any> | undefined;
|
|
338
|
-
reward?: string | undefined;
|
|
339
339
|
}, {
|
|
340
340
|
customer_id: string;
|
|
341
|
+
metadata?: Record<string, string> | undefined;
|
|
341
342
|
options?: {
|
|
342
|
-
feature_id: string;
|
|
343
343
|
quantity: number;
|
|
344
|
+
feature_id: string;
|
|
344
345
|
}[] | undefined;
|
|
345
|
-
|
|
346
|
-
customer_data?: any;
|
|
346
|
+
reward?: string | undefined;
|
|
347
347
|
entity_id?: string | undefined;
|
|
348
348
|
product_id?: string | undefined;
|
|
349
349
|
product_ids?: string[] | undefined;
|
|
350
350
|
free_trial?: boolean | undefined;
|
|
351
351
|
success_url?: string | undefined;
|
|
352
352
|
force_checkout?: boolean | undefined;
|
|
353
|
+
customer_data?: any;
|
|
353
354
|
entity_data?: any;
|
|
354
355
|
checkout_session_params?: Record<string, any> | undefined;
|
|
355
|
-
reward?: string | undefined;
|
|
356
356
|
}>;
|
|
357
357
|
type AttachParams = z.infer<typeof AttachParamsSchema>;
|
|
358
358
|
interface CancelParams {
|
|
@@ -480,8 +480,8 @@ declare class Autumn {
|
|
|
480
480
|
redeemCode: (params: RedeemReferralCodeParams) => Promise<Result<any, AutumnError>>;
|
|
481
481
|
};
|
|
482
482
|
static attach: (params: AttachParams) => Promise<Result<{
|
|
483
|
-
code: string;
|
|
484
483
|
message: string;
|
|
484
|
+
code: string;
|
|
485
485
|
customer_id: string;
|
|
486
486
|
product_ids: string[];
|
|
487
487
|
customer_data?: any;
|
|
@@ -489,8 +489,8 @@ declare class Autumn {
|
|
|
489
489
|
}, AutumnError>>;
|
|
490
490
|
static usage: (params: UsageParams) => Promise<Result<UsageResult, AutumnError>>;
|
|
491
491
|
attach(params: AttachParams): Promise<Result<{
|
|
492
|
-
code: string;
|
|
493
492
|
message: string;
|
|
493
|
+
code: string;
|
|
494
494
|
customer_id: string;
|
|
495
495
|
product_ids: string[];
|
|
496
496
|
customer_data?: any;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import { A as AutumnClient } from './ReactAutumnClient-
|
|
2
|
+
import { A as AutumnClient } from './ReactAutumnClient-Z3DcfZ0x.mjs';
|
|
3
3
|
import './client/types/clientEntTypes.mjs';
|
|
4
4
|
import './client/types/clientGenTypes.mjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import './error-DHbclCVh.mjs';
|
|
7
|
-
import './response-
|
|
8
|
-
import './cusTypes-
|
|
9
|
-
import './entTypes-
|
|
7
|
+
import './response-CMrRLv9c.mjs';
|
|
8
|
+
import './cusTypes-DUC0TrK5.mjs';
|
|
9
|
+
import './entTypes-Mq0F4CAa.mjs';
|
|
10
10
|
|
|
11
11
|
interface AutumnDialogContext {
|
|
12
12
|
props: any;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import { A as AutumnClient } from './ReactAutumnClient-
|
|
2
|
+
import { A as AutumnClient } from './ReactAutumnClient-GEzKNujl.js';
|
|
3
3
|
import './client/types/clientEntTypes.js';
|
|
4
4
|
import './client/types/clientGenTypes.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import './error-DHbclCVh.js';
|
|
7
|
-
import './response-
|
|
8
|
-
import './cusTypes-
|
|
9
|
-
import './entTypes-
|
|
7
|
+
import './response-B8Tq3x66.js';
|
|
8
|
+
import './cusTypes-DUC0TrK5.js';
|
|
9
|
+
import './entTypes-Ddl0CGp9.js';
|
|
10
10
|
|
|
11
11
|
interface AutumnDialogContext {
|
|
12
12
|
props: any;
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
import {
|
|
4
4
|
AutumnContext,
|
|
5
5
|
useAutumnContext
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-V5PKOA5A.mjs";
|
|
9
|
-
import "./chunk-JNM4BLTM.mjs";
|
|
6
|
+
} from "./chunk-ITN754AD.mjs";
|
|
7
|
+
import "./chunk-QAHVMSK4.mjs";
|
|
10
8
|
import "./chunk-YUV2Y2RW.mjs";
|
|
11
9
|
import "./chunk-3EYF7OI5.mjs";
|
|
12
|
-
import "./chunk-KQT5G3HT.mjs";
|
|
13
10
|
import "./chunk-JVCOY7ZL.mjs";
|
|
14
11
|
import "./chunk-CIBQ4BJU.mjs";
|
|
15
12
|
import "./chunk-NZ5PEXT2.mjs";
|
|
16
13
|
import "./chunk-TGX6UKKS.mjs";
|
|
14
|
+
import "./chunk-V5PKOA5A.mjs";
|
|
15
|
+
import "./chunk-JNM4BLTM.mjs";
|
|
16
|
+
import "./chunk-KQT5G3HT.mjs";
|
|
17
17
|
export {
|
|
18
18
|
AutumnContext,
|
|
19
19
|
useAutumnContext
|