@raideno/convex-stripe 0.1.3 → 0.1.4
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/server/schema/index.d.ts +1 -3
- package/dist/server/types.d.ts +1 -9
- package/dist/server.js +10 -1
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DataModelFromSchemaDefinition
|
|
2
|
-
import { GenericDoc } from '../types';
|
|
1
|
+
import { DataModelFromSchemaDefinition } from 'convex/server';
|
|
3
2
|
export declare const stripeTables: {
|
|
4
3
|
stripe_products: import('convex/server').TableDefinition<import('convex/values').VObject<{
|
|
5
4
|
productId: string;
|
|
@@ -6059,5 +6058,4 @@ declare const stripeSchema: import('convex/server').SchemaDefinition<{
|
|
|
6059
6058
|
}, {}, {}>;
|
|
6060
6059
|
}, true>;
|
|
6061
6060
|
export type StripeDataModel = DataModelFromSchemaDefinition<typeof stripeSchema>;
|
|
6062
|
-
export type Doc<T extends TableNamesInDataModel<StripeDataModel>> = GenericDoc<StripeDataModel, T>;
|
|
6063
6061
|
export {};
|
package/dist/server/types.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GenericId, Infer, Validator } from 'convex/values';
|
|
1
|
+
import { Infer, Validator } from 'convex/values';
|
|
3
2
|
import { Logger } from './logger';
|
|
4
3
|
import { stripeTables } from './schema';
|
|
5
4
|
export interface InternalConfiguration {
|
|
@@ -20,10 +19,3 @@ export type InferArgs<S extends ArgSchema> = {
|
|
|
20
19
|
} & {
|
|
21
20
|
[K in keyof S as S[K] extends Validator<any, "optional", any> ? K : never]?: Infer<S[K]>;
|
|
22
21
|
};
|
|
23
|
-
/**
|
|
24
|
-
* Convex document from a given table.
|
|
25
|
-
*/
|
|
26
|
-
export type GenericDoc<DataModel extends GenericDataModel, TableName extends TableNamesInDataModel<DataModel>> = DocumentByName<DataModel, TableName> & {
|
|
27
|
-
_id: GenericId<TableName>;
|
|
28
|
-
_creationTime: number;
|
|
29
|
-
};
|
package/dist/server.js
CHANGED
|
@@ -2246,7 +2246,16 @@ const normalizeConfiguration = (config) => {
|
|
|
2246
2246
|
stripe_payment_intents: true,
|
|
2247
2247
|
stripe_refunds: true,
|
|
2248
2248
|
stripe_invoices: true,
|
|
2249
|
-
stripe_reviews: true
|
|
2249
|
+
stripe_reviews: true,
|
|
2250
|
+
stripe_charges: true,
|
|
2251
|
+
stripe_credit_notes: true,
|
|
2252
|
+
stripe_disputes: true,
|
|
2253
|
+
stripe_early_fraud_warnings: true,
|
|
2254
|
+
stripe_payment_methods: true,
|
|
2255
|
+
stripe_plans: true,
|
|
2256
|
+
stripe_setup_intents: true,
|
|
2257
|
+
stripe_subscription_schedules: true,
|
|
2258
|
+
stripe_tax_ids: true
|
|
2250
2259
|
},
|
|
2251
2260
|
debug: false,
|
|
2252
2261
|
logger: new Logger(config.debug || false),
|