@raideno/convex-stripe 0.1.1 → 0.1.3
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.ts +0 -2
- package/dist/index.js +1 -0
- package/dist/server/actions/index.d.ts +4 -0
- package/dist/server/actions/pay.d.ts +579 -0
- package/dist/server/actions/portal.d.ts +26 -0
- package/dist/server/actions/setup.d.ts +19 -0
- package/dist/server/actions/subscribe.d.ts +44 -0
- package/dist/server/helpers.d.ts +28 -0
- package/dist/server/index.d.ts +967 -0
- package/dist/server/logger.d.ts +8 -0
- package/dist/server/redirects/index.d.ts +47 -0
- package/dist/server/redirects/pay.d.ts +5 -0
- package/dist/server/redirects/portal.d.ts +3 -0
- package/dist/server/redirects/subscribe.d.ts +3 -0
- package/dist/server/redirects/types.d.ts +9 -0
- package/dist/server/schema/charge.d.ts +294 -0
- package/dist/server/schema/checkout-session.d.ts +256 -0
- package/dist/server/schema/coupon.d.ts +112 -0
- package/dist/server/schema/credit-note.d.ts +228 -0
- package/dist/server/schema/customer.d.ts +366 -0
- package/dist/server/schema/dispute.d.ts +76 -0
- package/dist/server/schema/early-fraud-warning.d.ts +40 -0
- package/dist/server/schema/index.d.ts +6063 -0
- package/dist/server/schema/invoice.d.ts +314 -0
- package/dist/server/schema/payment-intent.d.ts +311 -0
- package/dist/server/schema/payment-method.d.ts +248 -0
- package/dist/server/schema/payout.d.ts +140 -0
- package/dist/server/schema/plan.d.ts +112 -0
- package/dist/server/schema/price.d.ts +148 -0
- package/dist/server/schema/product.d.ts +132 -0
- package/dist/server/schema/promotion-code.d.ts +266 -0
- package/dist/server/schema/refund.d.ts +92 -0
- package/dist/server/schema/review.d.ts +152 -0
- package/dist/server/schema/setup-intent.d.ts +156 -0
- package/dist/server/schema/subscription-schedule.d.ts +468 -0
- package/dist/server/schema/subscription.d.ts +4 -0
- package/dist/server/schema/tax-id.d.ts +120 -0
- package/dist/server/store/index.d.ts +960 -0
- package/dist/server/store/operations/delete-by-id.d.ts +3 -0
- package/dist/server/store/operations/index.d.ts +5 -0
- package/dist/server/store/operations/select-all.d.ts +3 -0
- package/dist/server/store/operations/select-by-id.d.ts +4 -0
- package/dist/server/store/operations/select-one.d.ts +3 -0
- package/dist/server/store/operations/upsert.d.ts +4 -0
- package/dist/server/store/types.d.ts +70 -0
- package/dist/server/sync/all.d.ts +5 -0
- package/dist/server/sync/charges.handler.d.ts +5 -0
- package/dist/server/sync/checkout-sessions.handler.d.ts +5 -0
- package/dist/server/sync/coupons.handler.d.ts +5 -0
- package/dist/server/sync/credit-notes.handler.d.ts +5 -0
- package/dist/server/sync/customers.handler.d.ts +5 -0
- package/dist/server/sync/disputes.handler.d.ts +5 -0
- package/dist/server/sync/early-fraud-warnings.handler.d.ts +5 -0
- package/dist/server/sync/invoices.handler.d.ts +5 -0
- package/dist/server/sync/payment-intents.handler.d.ts +5 -0
- package/dist/server/sync/payment-methods.handler.d.ts +5 -0
- package/dist/server/sync/payouts.handler.d.ts +5 -0
- package/dist/server/sync/plans.handler.d.ts +5 -0
- package/dist/server/sync/prices.handler.d.ts +5 -0
- package/dist/server/sync/products.handler.d.ts +5 -0
- package/dist/server/sync/promotion-codes.handler.d.ts +5 -0
- package/dist/server/sync/refunds.handler.d.ts +5 -0
- package/dist/server/sync/reviews.handler.d.ts +5 -0
- package/dist/server/sync/setup-intents.handler.d.ts +5 -0
- package/dist/server/sync/subscription-schedules.handler.d.ts +5 -0
- package/dist/server/sync/subscription.d.ts +12 -0
- package/dist/server/sync/subscriptions.handler.d.ts +5 -0
- package/dist/server/sync/tax-id.handler.d.ts +5 -0
- package/dist/server/types.d.ts +29 -0
- package/dist/server/webhooks/charges.handler.d.ts +2 -0
- package/dist/server/webhooks/checkout-sessions.handler.d.ts +2 -0
- package/dist/server/webhooks/coupons.handler.d.ts +2 -0
- package/dist/server/webhooks/credit-notes.handler.d.ts +2 -0
- package/dist/server/webhooks/customers.handler.d.ts +2 -0
- package/dist/server/webhooks/disputes.handler.d.ts +2 -0
- package/dist/server/webhooks/early-fraud-warnings.handler.d.ts +2 -0
- package/dist/server/webhooks/index.d.ts +2 -0
- package/dist/server/webhooks/invoices.handler.d.ts +2 -0
- package/dist/server/webhooks/payment-intents.handler.d.ts +2 -0
- package/dist/server/webhooks/payment-methods.handler.d.ts +2 -0
- package/dist/server/webhooks/payouts.handler.d.ts +2 -0
- package/dist/server/webhooks/plans.handler.d.ts +2 -0
- package/dist/server/webhooks/prices.handler.d.ts +2 -0
- package/dist/server/webhooks/products.handler.d.ts +2 -0
- package/dist/server/webhooks/promotion-codes.handler.d.ts +2 -0
- package/dist/server/webhooks/refunds.handler.d.ts +2 -0
- package/dist/server/webhooks/reviews.handler.d.ts +2 -0
- package/dist/server/webhooks/setup-intent.handler.d.ts +2 -0
- package/dist/server/webhooks/subscription-schedules.handler.d.ts +2 -0
- package/dist/server/webhooks/subscription.handler.d.ts +2 -0
- package/dist/server/webhooks/tax-id.handler.d.ts +2 -0
- package/dist/server/webhooks/types.d.ts +11 -0
- package/dist/server.d.ts +2 -3790
- package/dist/server.js +6072 -1564
- package/package.json +9 -10
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { default as Stripe } from 'stripe';
|
|
2
|
+
export declare const PayoutStripeToConvex: (payout: Stripe.Payout) => {
|
|
3
|
+
balance_transaction?: string | null | undefined;
|
|
4
|
+
currency?: string | null | undefined;
|
|
5
|
+
description?: string | null | undefined;
|
|
6
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
7
|
+
statement_descriptor?: string | null | undefined;
|
|
8
|
+
application_fee_amount?: number | null | undefined;
|
|
9
|
+
failure_balance_transaction?: string | null | undefined;
|
|
10
|
+
failure_code?: string | null | undefined;
|
|
11
|
+
failure_message?: string | null | undefined;
|
|
12
|
+
application_only?: string | null | undefined;
|
|
13
|
+
destination?: string | null | undefined;
|
|
14
|
+
original_payout?: string | null | undefined;
|
|
15
|
+
payout_method?: string | null | undefined;
|
|
16
|
+
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | undefined;
|
|
17
|
+
reversed_by?: string | null | undefined;
|
|
18
|
+
trace_id?: {
|
|
19
|
+
value?: string | null | undefined;
|
|
20
|
+
status: string;
|
|
21
|
+
} | null | undefined;
|
|
22
|
+
object: string;
|
|
23
|
+
type: "card" | "bank_account";
|
|
24
|
+
id: string;
|
|
25
|
+
amount: number;
|
|
26
|
+
status: string;
|
|
27
|
+
created: number;
|
|
28
|
+
livemode: boolean;
|
|
29
|
+
automatic: boolean;
|
|
30
|
+
arrival_date: number;
|
|
31
|
+
method: string;
|
|
32
|
+
source_type: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const PayoutSchema: {
|
|
35
|
+
id: import('convex/values').VString<string, "required">;
|
|
36
|
+
amount: import('convex/values').VFloat64<number, "required">;
|
|
37
|
+
arrival_date: import('convex/values').VFloat64<number, "required">;
|
|
38
|
+
currency: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
39
|
+
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
40
|
+
metadata: import('convex/values').VUnion<Record<string, string | number | null> | null | undefined, [import('convex/values').VRecord<Record<string, string | number | null>, import('convex/values').VString<string, "required">, import('convex/values').VUnion<string | number | null, [import('convex/values').VString<string, "required">, import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
41
|
+
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
42
|
+
status: import('convex/values').VString<string, "required">;
|
|
43
|
+
object: import('convex/values').VString<string, "required">;
|
|
44
|
+
application_only: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
45
|
+
application_fee_amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
46
|
+
automatic: import('convex/values').VBoolean<boolean, "required">;
|
|
47
|
+
balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
48
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
49
|
+
destination: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
50
|
+
failure_balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
51
|
+
failure_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VLiteral<"account_closed", "required">, import('convex/values').VLiteral<"account_frozen", "required">, import('convex/values').VLiteral<"bank_account_restricted", "required">, import('convex/values').VLiteral<"bank_ownership_changed", "required">, import('convex/values').VLiteral<"could_not_process", "required">, import('convex/values').VLiteral<"debit_not_authorized", "required">, import('convex/values').VLiteral<"declined", "required">, import('convex/values').VLiteral<"incorrect_account_holder_address", "required">, import('convex/values').VLiteral<"incorrect_account_holder_name", "required">, import('convex/values').VLiteral<"incorrect_account_holder_tax_id", "required">, import('convex/values').VLiteral<"incorrect_account_type", "required">, import('convex/values').VLiteral<"insufficient_funds", "required">, import('convex/values').VLiteral<"invalid_account_number", "required">, import('convex/values').VLiteral<"invalid_account_number_length", "required">, import('convex/values').VLiteral<"invalid_currency", "required">, import('convex/values').VLiteral<"no_account", "required">, import('convex/values').VLiteral<"unsupported_card", "required">, import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
52
|
+
failure_message: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
53
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
54
|
+
method: import('convex/values').VString<string, "required">;
|
|
55
|
+
original_payout: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
56
|
+
payout_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
57
|
+
reconciliation_status: import('convex/values').VUnion<"completed" | "in_progress" | "not_applicable" | undefined, [import('convex/values').VLiteral<"completed", "required">, import('convex/values').VLiteral<"in_progress", "required">, import('convex/values').VLiteral<"not_applicable", "required">], "optional", never>;
|
|
58
|
+
reversed_by: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
59
|
+
source_type: import('convex/values').VString<string, "required">;
|
|
60
|
+
trace_id: import('convex/values').VUnion<{
|
|
61
|
+
value?: string | null | undefined;
|
|
62
|
+
status: string;
|
|
63
|
+
} | null | undefined, [import('convex/values').VNull<null, "required">, import('convex/values').VObject<{
|
|
64
|
+
value?: string | null | undefined;
|
|
65
|
+
status: string;
|
|
66
|
+
}, {
|
|
67
|
+
status: import('convex/values').VString<string, "required">;
|
|
68
|
+
value: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
69
|
+
}, "required", "status" | "value">], "optional", "status" | "value">;
|
|
70
|
+
type: import('convex/values').VUnion<"card" | "bank_account", [import('convex/values').VLiteral<"bank_account", "required">, import('convex/values').VLiteral<"card", "required">], "required", never>;
|
|
71
|
+
};
|
|
72
|
+
export declare const PayoutObject: import('convex/values').VObject<{
|
|
73
|
+
balance_transaction?: string | null | undefined;
|
|
74
|
+
currency?: string | null | undefined;
|
|
75
|
+
description?: string | null | undefined;
|
|
76
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
77
|
+
statement_descriptor?: string | null | undefined;
|
|
78
|
+
application_fee_amount?: number | null | undefined;
|
|
79
|
+
failure_balance_transaction?: string | null | undefined;
|
|
80
|
+
failure_code?: string | null | undefined;
|
|
81
|
+
failure_message?: string | null | undefined;
|
|
82
|
+
application_only?: string | null | undefined;
|
|
83
|
+
destination?: string | null | undefined;
|
|
84
|
+
original_payout?: string | null | undefined;
|
|
85
|
+
payout_method?: string | null | undefined;
|
|
86
|
+
reconciliation_status?: "completed" | "in_progress" | "not_applicable" | undefined;
|
|
87
|
+
reversed_by?: string | null | undefined;
|
|
88
|
+
trace_id?: {
|
|
89
|
+
value?: string | null | undefined;
|
|
90
|
+
status: string;
|
|
91
|
+
} | null | undefined;
|
|
92
|
+
object: string;
|
|
93
|
+
type: "card" | "bank_account";
|
|
94
|
+
id: string;
|
|
95
|
+
amount: number;
|
|
96
|
+
status: string;
|
|
97
|
+
created: number;
|
|
98
|
+
livemode: boolean;
|
|
99
|
+
automatic: boolean;
|
|
100
|
+
arrival_date: number;
|
|
101
|
+
method: string;
|
|
102
|
+
source_type: string;
|
|
103
|
+
}, {
|
|
104
|
+
id: import('convex/values').VString<string, "required">;
|
|
105
|
+
amount: import('convex/values').VFloat64<number, "required">;
|
|
106
|
+
arrival_date: import('convex/values').VFloat64<number, "required">;
|
|
107
|
+
currency: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
108
|
+
description: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
109
|
+
metadata: import('convex/values').VUnion<Record<string, string | number | null> | null | undefined, [import('convex/values').VRecord<Record<string, string | number | null>, import('convex/values').VString<string, "required">, import('convex/values').VUnion<string | number | null, [import('convex/values').VString<string, "required">, import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
110
|
+
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
111
|
+
status: import('convex/values').VString<string, "required">;
|
|
112
|
+
object: import('convex/values').VString<string, "required">;
|
|
113
|
+
application_only: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
114
|
+
application_fee_amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
115
|
+
automatic: import('convex/values').VBoolean<boolean, "required">;
|
|
116
|
+
balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
117
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
118
|
+
destination: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
119
|
+
failure_balance_transaction: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
120
|
+
failure_code: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VLiteral<"account_closed", "required">, import('convex/values').VLiteral<"account_frozen", "required">, import('convex/values').VLiteral<"bank_account_restricted", "required">, import('convex/values').VLiteral<"bank_ownership_changed", "required">, import('convex/values').VLiteral<"could_not_process", "required">, import('convex/values').VLiteral<"debit_not_authorized", "required">, import('convex/values').VLiteral<"declined", "required">, import('convex/values').VLiteral<"incorrect_account_holder_address", "required">, import('convex/values').VLiteral<"incorrect_account_holder_name", "required">, import('convex/values').VLiteral<"incorrect_account_holder_tax_id", "required">, import('convex/values').VLiteral<"incorrect_account_type", "required">, import('convex/values').VLiteral<"insufficient_funds", "required">, import('convex/values').VLiteral<"invalid_account_number", "required">, import('convex/values').VLiteral<"invalid_account_number_length", "required">, import('convex/values').VLiteral<"invalid_currency", "required">, import('convex/values').VLiteral<"no_account", "required">, import('convex/values').VLiteral<"unsupported_card", "required">, import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
121
|
+
failure_message: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
122
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
123
|
+
method: import('convex/values').VString<string, "required">;
|
|
124
|
+
original_payout: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
125
|
+
payout_method: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
126
|
+
reconciliation_status: import('convex/values').VUnion<"completed" | "in_progress" | "not_applicable" | undefined, [import('convex/values').VLiteral<"completed", "required">, import('convex/values').VLiteral<"in_progress", "required">, import('convex/values').VLiteral<"not_applicable", "required">], "optional", never>;
|
|
127
|
+
reversed_by: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
128
|
+
source_type: import('convex/values').VString<string, "required">;
|
|
129
|
+
trace_id: import('convex/values').VUnion<{
|
|
130
|
+
value?: string | null | undefined;
|
|
131
|
+
status: string;
|
|
132
|
+
} | null | undefined, [import('convex/values').VNull<null, "required">, import('convex/values').VObject<{
|
|
133
|
+
value?: string | null | undefined;
|
|
134
|
+
status: string;
|
|
135
|
+
}, {
|
|
136
|
+
status: import('convex/values').VString<string, "required">;
|
|
137
|
+
value: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
138
|
+
}, "required", "status" | "value">], "optional", "status" | "value">;
|
|
139
|
+
type: import('convex/values').VUnion<"card" | "bank_account", [import('convex/values').VLiteral<"bank_account", "required">, import('convex/values').VLiteral<"card", "required">], "required", never>;
|
|
140
|
+
}, "required", "object" | "type" | "id" | "amount" | "balance_transaction" | "currency" | "description" | "metadata" | "statement_descriptor" | "status" | "application_fee_amount" | "created" | "failure_balance_transaction" | "failure_code" | "failure_message" | "livemode" | `metadata.${string}` | "automatic" | "arrival_date" | "application_only" | "destination" | "method" | "original_payout" | "payout_method" | "reconciliation_status" | "reversed_by" | "source_type" | "trace_id" | "trace_id.status" | "trace_id.value">;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { default as Stripe } from 'stripe';
|
|
2
|
+
export declare const PlanStripeToConvex: (plan: Stripe.Plan) => {
|
|
3
|
+
amount?: number | null | undefined;
|
|
4
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
5
|
+
nickname?: string | null | undefined;
|
|
6
|
+
product?: string | null | undefined;
|
|
7
|
+
amount_decimal?: string | null | undefined;
|
|
8
|
+
meter?: string | null | undefined;
|
|
9
|
+
tiers?: any[] | null | undefined;
|
|
10
|
+
tiers_mode?: "graduated" | "volume" | null | undefined;
|
|
11
|
+
transform_usage?: {
|
|
12
|
+
divide_by: number;
|
|
13
|
+
round: "up" | "down";
|
|
14
|
+
} | null | undefined;
|
|
15
|
+
trial_period_days?: number | null | undefined;
|
|
16
|
+
object: string;
|
|
17
|
+
id: string;
|
|
18
|
+
currency: string;
|
|
19
|
+
created: number;
|
|
20
|
+
livemode: boolean;
|
|
21
|
+
active: boolean;
|
|
22
|
+
interval: "day" | "week" | "month" | "year";
|
|
23
|
+
billing_scheme: "per_unit" | "tiered";
|
|
24
|
+
interval_count: number;
|
|
25
|
+
usage_type: string;
|
|
26
|
+
};
|
|
27
|
+
export declare const PlanSchema: {
|
|
28
|
+
id: import('convex/values').VString<string, "required">;
|
|
29
|
+
active: import('convex/values').VBoolean<boolean, "required">;
|
|
30
|
+
amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
31
|
+
currency: import('convex/values').VString<string, "required">;
|
|
32
|
+
interval: import('convex/values').VUnion<"day" | "week" | "month" | "year", [import('convex/values').VLiteral<"day", "required">, import('convex/values').VLiteral<"week", "required">, import('convex/values').VLiteral<"month", "required">, import('convex/values').VLiteral<"year", "required">], "required", never>;
|
|
33
|
+
metadata: import('convex/values').VUnion<Record<string, string | number | null> | null | undefined, [import('convex/values').VRecord<Record<string, string | number | null>, import('convex/values').VString<string, "required">, import('convex/values').VUnion<string | number | null, [import('convex/values').VString<string, "required">, import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
34
|
+
nickname: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
35
|
+
product: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
36
|
+
object: import('convex/values').VString<string, "required">;
|
|
37
|
+
amount_decimal: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
38
|
+
billing_scheme: import('convex/values').VUnion<"per_unit" | "tiered", [import('convex/values').VLiteral<"per_unit", "required">, import('convex/values').VLiteral<"tiered", "required">], "required", never>;
|
|
39
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
40
|
+
interval_count: import('convex/values').VFloat64<number, "required">;
|
|
41
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
42
|
+
meter: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
43
|
+
tiers: import('convex/values').VUnion<any[] | null | undefined, [import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
44
|
+
tiers_mode: import('convex/values').VUnion<"graduated" | "volume" | null | undefined, [import('convex/values').VLiteral<"graduated", "required">, import('convex/values').VLiteral<"volume", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
45
|
+
transform_usage: import('convex/values').VUnion<{
|
|
46
|
+
divide_by: number;
|
|
47
|
+
round: "up" | "down";
|
|
48
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
49
|
+
divide_by: number;
|
|
50
|
+
round: "up" | "down";
|
|
51
|
+
}, {
|
|
52
|
+
divide_by: import('convex/values').VFloat64<number, "required">;
|
|
53
|
+
round: import('convex/values').VUnion<"up" | "down", [import('convex/values').VLiteral<"up", "required">, import('convex/values').VLiteral<"down", "required">], "required", never>;
|
|
54
|
+
}, "required", "divide_by" | "round">, import('convex/values').VNull<null, "required">], "optional", "divide_by" | "round">;
|
|
55
|
+
trial_period_days: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
56
|
+
usage_type: import('convex/values').VString<string, "required">;
|
|
57
|
+
};
|
|
58
|
+
export declare const PlanObject: import('convex/values').VObject<{
|
|
59
|
+
amount?: number | null | undefined;
|
|
60
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
61
|
+
nickname?: string | null | undefined;
|
|
62
|
+
product?: string | null | undefined;
|
|
63
|
+
amount_decimal?: string | null | undefined;
|
|
64
|
+
meter?: string | null | undefined;
|
|
65
|
+
tiers?: any[] | null | undefined;
|
|
66
|
+
tiers_mode?: "graduated" | "volume" | null | undefined;
|
|
67
|
+
transform_usage?: {
|
|
68
|
+
divide_by: number;
|
|
69
|
+
round: "up" | "down";
|
|
70
|
+
} | null | undefined;
|
|
71
|
+
trial_period_days?: number | null | undefined;
|
|
72
|
+
object: string;
|
|
73
|
+
id: string;
|
|
74
|
+
currency: string;
|
|
75
|
+
created: number;
|
|
76
|
+
livemode: boolean;
|
|
77
|
+
active: boolean;
|
|
78
|
+
interval: "day" | "week" | "month" | "year";
|
|
79
|
+
billing_scheme: "per_unit" | "tiered";
|
|
80
|
+
interval_count: number;
|
|
81
|
+
usage_type: string;
|
|
82
|
+
}, {
|
|
83
|
+
id: import('convex/values').VString<string, "required">;
|
|
84
|
+
active: import('convex/values').VBoolean<boolean, "required">;
|
|
85
|
+
amount: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
86
|
+
currency: import('convex/values').VString<string, "required">;
|
|
87
|
+
interval: import('convex/values').VUnion<"day" | "week" | "month" | "year", [import('convex/values').VLiteral<"day", "required">, import('convex/values').VLiteral<"week", "required">, import('convex/values').VLiteral<"month", "required">, import('convex/values').VLiteral<"year", "required">], "required", never>;
|
|
88
|
+
metadata: import('convex/values').VUnion<Record<string, string | number | null> | null | undefined, [import('convex/values').VRecord<Record<string, string | number | null>, import('convex/values').VString<string, "required">, import('convex/values').VUnion<string | number | null, [import('convex/values').VString<string, "required">, import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
89
|
+
nickname: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
90
|
+
product: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
91
|
+
object: import('convex/values').VString<string, "required">;
|
|
92
|
+
amount_decimal: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
93
|
+
billing_scheme: import('convex/values').VUnion<"per_unit" | "tiered", [import('convex/values').VLiteral<"per_unit", "required">, import('convex/values').VLiteral<"tiered", "required">], "required", never>;
|
|
94
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
95
|
+
interval_count: import('convex/values').VFloat64<number, "required">;
|
|
96
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
97
|
+
meter: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
98
|
+
tiers: import('convex/values').VUnion<any[] | null | undefined, [import('convex/values').VArray<any[], import('convex/values').VAny<any, "required", string>, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
99
|
+
tiers_mode: import('convex/values').VUnion<"graduated" | "volume" | null | undefined, [import('convex/values').VLiteral<"graduated", "required">, import('convex/values').VLiteral<"volume", "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
100
|
+
transform_usage: import('convex/values').VUnion<{
|
|
101
|
+
divide_by: number;
|
|
102
|
+
round: "up" | "down";
|
|
103
|
+
} | null | undefined, [import('convex/values').VObject<{
|
|
104
|
+
divide_by: number;
|
|
105
|
+
round: "up" | "down";
|
|
106
|
+
}, {
|
|
107
|
+
divide_by: import('convex/values').VFloat64<number, "required">;
|
|
108
|
+
round: import('convex/values').VUnion<"up" | "down", [import('convex/values').VLiteral<"up", "required">, import('convex/values').VLiteral<"down", "required">], "required", never>;
|
|
109
|
+
}, "required", "divide_by" | "round">, import('convex/values').VNull<null, "required">], "optional", "divide_by" | "round">;
|
|
110
|
+
trial_period_days: import('convex/values').VUnion<number | null | undefined, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
111
|
+
usage_type: import('convex/values').VString<string, "required">;
|
|
112
|
+
}, "required", "object" | "id" | "amount" | "currency" | "metadata" | "created" | "livemode" | `metadata.${string}` | "active" | "interval" | "nickname" | "product" | "amount_decimal" | "billing_scheme" | "interval_count" | "meter" | "tiers" | "tiers_mode" | "transform_usage" | "trial_period_days" | "usage_type" | "transform_usage.divide_by" | "transform_usage.round">;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import { default as Stripe } from 'stripe';
|
|
2
|
+
export declare const PriceStripeToConvex: (price: Stripe.Price) => {
|
|
3
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
4
|
+
object: string;
|
|
5
|
+
type: "one_time" | "recurring";
|
|
6
|
+
id: string;
|
|
7
|
+
currency: string;
|
|
8
|
+
created: number;
|
|
9
|
+
livemode: boolean;
|
|
10
|
+
active: boolean;
|
|
11
|
+
nickname: string | null;
|
|
12
|
+
billing_scheme: "per_unit" | "tiered";
|
|
13
|
+
tiers_mode: "graduated" | "volume" | null;
|
|
14
|
+
recurring: {
|
|
15
|
+
interval: "day" | "week" | "month" | "year";
|
|
16
|
+
interval_count: number;
|
|
17
|
+
meter: string | null;
|
|
18
|
+
trial_period_days: number | null;
|
|
19
|
+
usage_type: "licensed" | "metered";
|
|
20
|
+
} | null;
|
|
21
|
+
productId: string;
|
|
22
|
+
unit_amount: number | null;
|
|
23
|
+
lookup_key: string | null;
|
|
24
|
+
transform_quantity: {
|
|
25
|
+
divide_by: number;
|
|
26
|
+
round: "up" | "down";
|
|
27
|
+
} | null;
|
|
28
|
+
unit_amount_decimal: string | null;
|
|
29
|
+
};
|
|
30
|
+
export declare const PriceSchema: {
|
|
31
|
+
id: import('convex/values').VString<string, "required">;
|
|
32
|
+
object: import('convex/values').VString<string, "required">;
|
|
33
|
+
active: import('convex/values').VBoolean<boolean, "required">;
|
|
34
|
+
currency: import('convex/values').VString<string, "required">;
|
|
35
|
+
metadata: import('convex/values').VUnion<Record<string, string | number | null> | null | undefined, [import('convex/values').VRecord<Record<string, string | number | null>, import('convex/values').VString<string, "required">, import('convex/values').VUnion<string | number | null, [import('convex/values').VString<string, "required">, import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
36
|
+
nickname: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
37
|
+
recurring: import('convex/values').VUnion<{
|
|
38
|
+
interval: "day" | "week" | "month" | "year";
|
|
39
|
+
interval_count: number;
|
|
40
|
+
meter: string | null;
|
|
41
|
+
trial_period_days: number | null;
|
|
42
|
+
usage_type: "licensed" | "metered";
|
|
43
|
+
} | null, [import('convex/values').VObject<{
|
|
44
|
+
interval: "day" | "week" | "month" | "year";
|
|
45
|
+
interval_count: number;
|
|
46
|
+
meter: string | null;
|
|
47
|
+
trial_period_days: number | null;
|
|
48
|
+
usage_type: "licensed" | "metered";
|
|
49
|
+
}, {
|
|
50
|
+
interval: import('convex/values').VUnion<"day" | "week" | "month" | "year", [import('convex/values').VLiteral<"day", "required">, import('convex/values').VLiteral<"week", "required">, import('convex/values').VLiteral<"month", "required">, import('convex/values').VLiteral<"year", "required">], "required", never>;
|
|
51
|
+
interval_count: import('convex/values').VFloat64<number, "required">;
|
|
52
|
+
trial_period_days: import('convex/values').VUnion<number | null, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
53
|
+
meter: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
54
|
+
usage_type: import('convex/values').VUnion<"licensed" | "metered", [import('convex/values').VLiteral<"licensed", "required">, import('convex/values').VLiteral<"metered", "required">], "required", never>;
|
|
55
|
+
}, "required", "interval" | "interval_count" | "meter" | "trial_period_days" | "usage_type">, import('convex/values').VNull<null, "required">], "required", "interval" | "interval_count" | "meter" | "trial_period_days" | "usage_type">;
|
|
56
|
+
productId: import('convex/values').VString<string, "required">;
|
|
57
|
+
type: import('convex/values').VUnion<"one_time" | "recurring", [import('convex/values').VLiteral<"one_time", "required">, import('convex/values').VLiteral<"recurring", "required">], "required", never>;
|
|
58
|
+
unit_amount: import('convex/values').VUnion<number | null, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
59
|
+
billing_scheme: import('convex/values').VUnion<"per_unit" | "tiered", [import('convex/values').VLiteral<"per_unit", "required">, import('convex/values').VLiteral<"tiered", "required">], "required", never>;
|
|
60
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
61
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
62
|
+
lookup_key: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
63
|
+
tiers_mode: import('convex/values').VUnion<"graduated" | "volume" | null, [import('convex/values').VLiteral<"graduated", "required">, import('convex/values').VLiteral<"volume", "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
64
|
+
transform_quantity: import('convex/values').VUnion<{
|
|
65
|
+
divide_by: number;
|
|
66
|
+
round: "up" | "down";
|
|
67
|
+
} | null, [import('convex/values').VObject<{
|
|
68
|
+
divide_by: number;
|
|
69
|
+
round: "up" | "down";
|
|
70
|
+
}, {
|
|
71
|
+
divide_by: import('convex/values').VFloat64<number, "required">;
|
|
72
|
+
round: import('convex/values').VUnion<"up" | "down", [import('convex/values').VLiteral<"up", "required">, import('convex/values').VLiteral<"down", "required">], "required", never>;
|
|
73
|
+
}, "required", "divide_by" | "round">, import('convex/values').VNull<null, "required">], "required", "divide_by" | "round">;
|
|
74
|
+
unit_amount_decimal: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
75
|
+
};
|
|
76
|
+
export declare const PriceObject: import('convex/values').VObject<{
|
|
77
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
78
|
+
object: string;
|
|
79
|
+
type: "one_time" | "recurring";
|
|
80
|
+
id: string;
|
|
81
|
+
currency: string;
|
|
82
|
+
created: number;
|
|
83
|
+
livemode: boolean;
|
|
84
|
+
active: boolean;
|
|
85
|
+
nickname: string | null;
|
|
86
|
+
billing_scheme: "per_unit" | "tiered";
|
|
87
|
+
tiers_mode: "graduated" | "volume" | null;
|
|
88
|
+
recurring: {
|
|
89
|
+
interval: "day" | "week" | "month" | "year";
|
|
90
|
+
interval_count: number;
|
|
91
|
+
meter: string | null;
|
|
92
|
+
trial_period_days: number | null;
|
|
93
|
+
usage_type: "licensed" | "metered";
|
|
94
|
+
} | null;
|
|
95
|
+
productId: string;
|
|
96
|
+
unit_amount: number | null;
|
|
97
|
+
lookup_key: string | null;
|
|
98
|
+
transform_quantity: {
|
|
99
|
+
divide_by: number;
|
|
100
|
+
round: "up" | "down";
|
|
101
|
+
} | null;
|
|
102
|
+
unit_amount_decimal: string | null;
|
|
103
|
+
}, {
|
|
104
|
+
id: import('convex/values').VString<string, "required">;
|
|
105
|
+
object: import('convex/values').VString<string, "required">;
|
|
106
|
+
active: import('convex/values').VBoolean<boolean, "required">;
|
|
107
|
+
currency: import('convex/values').VString<string, "required">;
|
|
108
|
+
metadata: import('convex/values').VUnion<Record<string, string | number | null> | null | undefined, [import('convex/values').VRecord<Record<string, string | number | null>, import('convex/values').VString<string, "required">, import('convex/values').VUnion<string | number | null, [import('convex/values').VString<string, "required">, import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
109
|
+
nickname: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
110
|
+
recurring: import('convex/values').VUnion<{
|
|
111
|
+
interval: "day" | "week" | "month" | "year";
|
|
112
|
+
interval_count: number;
|
|
113
|
+
meter: string | null;
|
|
114
|
+
trial_period_days: number | null;
|
|
115
|
+
usage_type: "licensed" | "metered";
|
|
116
|
+
} | null, [import('convex/values').VObject<{
|
|
117
|
+
interval: "day" | "week" | "month" | "year";
|
|
118
|
+
interval_count: number;
|
|
119
|
+
meter: string | null;
|
|
120
|
+
trial_period_days: number | null;
|
|
121
|
+
usage_type: "licensed" | "metered";
|
|
122
|
+
}, {
|
|
123
|
+
interval: import('convex/values').VUnion<"day" | "week" | "month" | "year", [import('convex/values').VLiteral<"day", "required">, import('convex/values').VLiteral<"week", "required">, import('convex/values').VLiteral<"month", "required">, import('convex/values').VLiteral<"year", "required">], "required", never>;
|
|
124
|
+
interval_count: import('convex/values').VFloat64<number, "required">;
|
|
125
|
+
trial_period_days: import('convex/values').VUnion<number | null, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
126
|
+
meter: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
127
|
+
usage_type: import('convex/values').VUnion<"licensed" | "metered", [import('convex/values').VLiteral<"licensed", "required">, import('convex/values').VLiteral<"metered", "required">], "required", never>;
|
|
128
|
+
}, "required", "interval" | "interval_count" | "meter" | "trial_period_days" | "usage_type">, import('convex/values').VNull<null, "required">], "required", "interval" | "interval_count" | "meter" | "trial_period_days" | "usage_type">;
|
|
129
|
+
productId: import('convex/values').VString<string, "required">;
|
|
130
|
+
type: import('convex/values').VUnion<"one_time" | "recurring", [import('convex/values').VLiteral<"one_time", "required">, import('convex/values').VLiteral<"recurring", "required">], "required", never>;
|
|
131
|
+
unit_amount: import('convex/values').VUnion<number | null, [import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
132
|
+
billing_scheme: import('convex/values').VUnion<"per_unit" | "tiered", [import('convex/values').VLiteral<"per_unit", "required">, import('convex/values').VLiteral<"tiered", "required">], "required", never>;
|
|
133
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
134
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
135
|
+
lookup_key: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
136
|
+
tiers_mode: import('convex/values').VUnion<"graduated" | "volume" | null, [import('convex/values').VLiteral<"graduated", "required">, import('convex/values').VLiteral<"volume", "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
137
|
+
transform_quantity: import('convex/values').VUnion<{
|
|
138
|
+
divide_by: number;
|
|
139
|
+
round: "up" | "down";
|
|
140
|
+
} | null, [import('convex/values').VObject<{
|
|
141
|
+
divide_by: number;
|
|
142
|
+
round: "up" | "down";
|
|
143
|
+
}, {
|
|
144
|
+
divide_by: import('convex/values').VFloat64<number, "required">;
|
|
145
|
+
round: import('convex/values').VUnion<"up" | "down", [import('convex/values').VLiteral<"up", "required">, import('convex/values').VLiteral<"down", "required">], "required", never>;
|
|
146
|
+
}, "required", "divide_by" | "round">, import('convex/values').VNull<null, "required">], "required", "divide_by" | "round">;
|
|
147
|
+
unit_amount_decimal: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
148
|
+
}, "required", "object" | "type" | "id" | "currency" | "metadata" | "created" | "livemode" | `metadata.${string}` | "active" | "nickname" | "billing_scheme" | "tiers_mode" | "recurring" | "productId" | "unit_amount" | "lookup_key" | "transform_quantity" | "unit_amount_decimal" | "recurring.interval" | "recurring.interval_count" | "recurring.meter" | "recurring.trial_period_days" | "recurring.usage_type" | "transform_quantity.divide_by" | "transform_quantity.round">;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { default as Stripe } from 'stripe';
|
|
2
|
+
export declare const ProductStripeToConvex: (product: Stripe.Product) => {
|
|
3
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
4
|
+
statement_descriptor?: string | null | undefined;
|
|
5
|
+
unit_label?: string | null | undefined;
|
|
6
|
+
object: string;
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
description: string | null;
|
|
10
|
+
created: number;
|
|
11
|
+
livemode: boolean;
|
|
12
|
+
url: string | null;
|
|
13
|
+
active: boolean;
|
|
14
|
+
images: string[];
|
|
15
|
+
package_dimensions: {
|
|
16
|
+
length: number;
|
|
17
|
+
height: number;
|
|
18
|
+
weight: number;
|
|
19
|
+
width: number;
|
|
20
|
+
} | null;
|
|
21
|
+
shippable: boolean | null;
|
|
22
|
+
updated: number;
|
|
23
|
+
marketing_features: {
|
|
24
|
+
name?: string | null | undefined;
|
|
25
|
+
}[];
|
|
26
|
+
default_price: string | null;
|
|
27
|
+
};
|
|
28
|
+
export declare const ProductSchema: {
|
|
29
|
+
id: import('convex/values').VString<string, "required">;
|
|
30
|
+
object: import('convex/values').VString<string, "required">;
|
|
31
|
+
active: import('convex/values').VBoolean<boolean, "required">;
|
|
32
|
+
description: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
33
|
+
metadata: import('convex/values').VUnion<Record<string, string | number | null> | null | undefined, [import('convex/values').VRecord<Record<string, string | number | null>, import('convex/values').VString<string, "required">, import('convex/values').VUnion<string | number | null, [import('convex/values').VString<string, "required">, import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
34
|
+
name: import('convex/values').VString<string, "required">;
|
|
35
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
36
|
+
images: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
|
|
37
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
38
|
+
package_dimensions: import('convex/values').VUnion<{
|
|
39
|
+
length: number;
|
|
40
|
+
height: number;
|
|
41
|
+
weight: number;
|
|
42
|
+
width: number;
|
|
43
|
+
} | null, [import('convex/values').VObject<{
|
|
44
|
+
length: number;
|
|
45
|
+
height: number;
|
|
46
|
+
weight: number;
|
|
47
|
+
width: number;
|
|
48
|
+
}, {
|
|
49
|
+
height: import('convex/values').VFloat64<number, "required">;
|
|
50
|
+
length: import('convex/values').VFloat64<number, "required">;
|
|
51
|
+
weight: import('convex/values').VFloat64<number, "required">;
|
|
52
|
+
width: import('convex/values').VFloat64<number, "required">;
|
|
53
|
+
}, "required", "length" | "height" | "weight" | "width">, import('convex/values').VNull<null, "required">], "required", "length" | "height" | "weight" | "width">;
|
|
54
|
+
shippable: import('convex/values').VUnion<boolean | null, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
55
|
+
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
56
|
+
unit_label: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
57
|
+
updated: import('convex/values').VFloat64<number, "required">;
|
|
58
|
+
url: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
59
|
+
marketing_features: import('convex/values').VArray<{
|
|
60
|
+
name?: string | null | undefined;
|
|
61
|
+
}[], import('convex/values').VObject<{
|
|
62
|
+
name?: string | null | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
65
|
+
}, "required", "name">, "required">;
|
|
66
|
+
default_price: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
67
|
+
};
|
|
68
|
+
export declare const ProductObject: import('convex/values').VObject<{
|
|
69
|
+
metadata?: Record<string, string | number | null> | null | undefined;
|
|
70
|
+
statement_descriptor?: string | null | undefined;
|
|
71
|
+
unit_label?: string | null | undefined;
|
|
72
|
+
object: string;
|
|
73
|
+
id: string;
|
|
74
|
+
name: string;
|
|
75
|
+
description: string | null;
|
|
76
|
+
created: number;
|
|
77
|
+
livemode: boolean;
|
|
78
|
+
url: string | null;
|
|
79
|
+
active: boolean;
|
|
80
|
+
images: string[];
|
|
81
|
+
package_dimensions: {
|
|
82
|
+
length: number;
|
|
83
|
+
height: number;
|
|
84
|
+
weight: number;
|
|
85
|
+
width: number;
|
|
86
|
+
} | null;
|
|
87
|
+
shippable: boolean | null;
|
|
88
|
+
updated: number;
|
|
89
|
+
marketing_features: {
|
|
90
|
+
name?: string | null | undefined;
|
|
91
|
+
}[];
|
|
92
|
+
default_price: string | null;
|
|
93
|
+
}, {
|
|
94
|
+
id: import('convex/values').VString<string, "required">;
|
|
95
|
+
object: import('convex/values').VString<string, "required">;
|
|
96
|
+
active: import('convex/values').VBoolean<boolean, "required">;
|
|
97
|
+
description: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
98
|
+
metadata: import('convex/values').VUnion<Record<string, string | number | null> | null | undefined, [import('convex/values').VRecord<Record<string, string | number | null>, import('convex/values').VString<string, "required">, import('convex/values').VUnion<string | number | null, [import('convex/values').VString<string, "required">, import('convex/values').VFloat64<number, "required">, import('convex/values').VNull<null, "required">], "required", never>, "required", string>, import('convex/values').VNull<null, "required">], "optional", string>;
|
|
99
|
+
name: import('convex/values').VString<string, "required">;
|
|
100
|
+
created: import('convex/values').VFloat64<number, "required">;
|
|
101
|
+
images: import('convex/values').VArray<string[], import('convex/values').VString<string, "required">, "required">;
|
|
102
|
+
livemode: import('convex/values').VBoolean<boolean, "required">;
|
|
103
|
+
package_dimensions: import('convex/values').VUnion<{
|
|
104
|
+
length: number;
|
|
105
|
+
height: number;
|
|
106
|
+
weight: number;
|
|
107
|
+
width: number;
|
|
108
|
+
} | null, [import('convex/values').VObject<{
|
|
109
|
+
length: number;
|
|
110
|
+
height: number;
|
|
111
|
+
weight: number;
|
|
112
|
+
width: number;
|
|
113
|
+
}, {
|
|
114
|
+
height: import('convex/values').VFloat64<number, "required">;
|
|
115
|
+
length: import('convex/values').VFloat64<number, "required">;
|
|
116
|
+
weight: import('convex/values').VFloat64<number, "required">;
|
|
117
|
+
width: import('convex/values').VFloat64<number, "required">;
|
|
118
|
+
}, "required", "length" | "height" | "weight" | "width">, import('convex/values').VNull<null, "required">], "required", "length" | "height" | "weight" | "width">;
|
|
119
|
+
shippable: import('convex/values').VUnion<boolean | null, [import('convex/values').VBoolean<boolean, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
120
|
+
statement_descriptor: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
121
|
+
unit_label: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
122
|
+
updated: import('convex/values').VFloat64<number, "required">;
|
|
123
|
+
url: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
124
|
+
marketing_features: import('convex/values').VArray<{
|
|
125
|
+
name?: string | null | undefined;
|
|
126
|
+
}[], import('convex/values').VObject<{
|
|
127
|
+
name?: string | null | undefined;
|
|
128
|
+
}, {
|
|
129
|
+
name: import('convex/values').VUnion<string | null | undefined, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "optional", never>;
|
|
130
|
+
}, "required", "name">, "required">;
|
|
131
|
+
default_price: import('convex/values').VUnion<string | null, [import('convex/values').VString<string, "required">, import('convex/values').VNull<null, "required">], "required", never>;
|
|
132
|
+
}, "required", "object" | "id" | "name" | "description" | "metadata" | "statement_descriptor" | "created" | "livemode" | `metadata.${string}` | "url" | "active" | "images" | "package_dimensions" | "shippable" | "unit_label" | "updated" | "marketing_features" | "default_price" | "package_dimensions.length" | "package_dimensions.height" | "package_dimensions.weight" | "package_dimensions.width">;
|