@marcoappio/marco-config 2.0.563 → 2.0.564
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/schemas/index.d.ts +4 -4
- package/dist/schemas/models/user.d.ts +2 -2
- package/dist/schemas/models/user.js +1 -1
- package/dist/schemas/stripe.d.ts +2 -2
- package/dist/schemas/stripe.d.ts.map +1 -1
- package/dist/schemas/stripe.js +2 -2
- package/dist/sdk/endpoints/private/models/user/getUser.d.ts +2 -2
- package/package.json +1 -1
package/dist/schemas/index.d.ts
CHANGED
|
@@ -142,7 +142,7 @@ export declare const marcoSchemas: {
|
|
|
142
142
|
readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
143
143
|
readonly userId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
144
144
|
}, undefined>;
|
|
145
|
-
stripeUserDataSchema: import("valibot").
|
|
145
|
+
stripeUserDataSchema: import("valibot").ObjectSchema<{
|
|
146
146
|
readonly customer: import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
147
147
|
readonly deleted: import("valibot").OptionalSchema<import("valibot").NeverSchema<undefined>, undefined>;
|
|
148
148
|
readonly email: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
@@ -181,7 +181,7 @@ export declare const marcoSchemas: {
|
|
|
181
181
|
readonly trialStart: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
182
182
|
}, undefined>, undefined>;
|
|
183
183
|
readonly subscriptionTier: import("valibot").NullableSchema<import("valibot").PicklistSchema<readonly ["tier1"], undefined>, undefined>;
|
|
184
|
-
}, undefined
|
|
184
|
+
}, undefined>;
|
|
185
185
|
threadFullSchema: import("valibot").ObjectSchema<{
|
|
186
186
|
readonly messages: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
187
187
|
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
@@ -313,7 +313,7 @@ export declare const marcoSchemas: {
|
|
|
313
313
|
readonly token: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
314
314
|
readonly userId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
315
315
|
}, undefined>, undefined>;
|
|
316
|
-
readonly stripe: import("valibot").
|
|
316
|
+
readonly stripe: import("valibot").ObjectSchema<{
|
|
317
317
|
readonly customer: import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
318
318
|
readonly deleted: import("valibot").OptionalSchema<import("valibot").NeverSchema<undefined>, undefined>;
|
|
319
319
|
readonly email: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
@@ -352,7 +352,7 @@ export declare const marcoSchemas: {
|
|
|
352
352
|
readonly trialStart: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
353
353
|
}, undefined>, undefined>;
|
|
354
354
|
readonly subscriptionTier: import("valibot").NullableSchema<import("valibot").PicklistSchema<readonly ["tier1"], undefined>, undefined>;
|
|
355
|
-
}, undefined
|
|
355
|
+
}, undefined>;
|
|
356
356
|
readonly trialEndsAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
357
357
|
readonly undoSendEnabled: import("valibot").BooleanSchema<undefined>;
|
|
358
358
|
readonly views: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
@@ -21,7 +21,7 @@ export declare const userSchema: v.ObjectSchema<{
|
|
|
21
21
|
readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
22
22
|
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
23
23
|
}, undefined>, undefined>;
|
|
24
|
-
readonly stripe: v.
|
|
24
|
+
readonly stripe: v.ObjectSchema<{
|
|
25
25
|
readonly customer: v.UnionSchema<[v.ObjectSchema<{
|
|
26
26
|
readonly deleted: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
27
27
|
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -60,7 +60,7 @@ export declare const userSchema: v.ObjectSchema<{
|
|
|
60
60
|
readonly trialStart: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
61
61
|
}, undefined>, undefined>;
|
|
62
62
|
readonly subscriptionTier: v.NullableSchema<v.PicklistSchema<readonly ["tier1"], undefined>, undefined>;
|
|
63
|
-
}, undefined
|
|
63
|
+
}, undefined>;
|
|
64
64
|
readonly trialEndsAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
65
65
|
readonly undoSendEnabled: v.BooleanSchema<undefined>;
|
|
66
66
|
readonly views: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -20,7 +20,7 @@ export const userSchema = v.object({
|
|
|
20
20
|
name: string.nullable(),
|
|
21
21
|
profilePicture: string.nullable(),
|
|
22
22
|
pushNotificationTokens: v.array(userPushNotificationTokenSchema),
|
|
23
|
-
stripe:
|
|
23
|
+
stripe: stripeUserDataSchema,
|
|
24
24
|
trialEndsAt: number.nullable(),
|
|
25
25
|
undoSendEnabled: v.boolean(),
|
|
26
26
|
views: v.array(userViewSchema),
|
package/dist/schemas/stripe.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
-
export declare const stripeUserDataSchema: v.
|
|
2
|
+
export declare const stripeUserDataSchema: v.ObjectSchema<{
|
|
3
3
|
readonly customer: v.UnionSchema<[v.ObjectSchema<{
|
|
4
4
|
readonly deleted: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
5
5
|
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -38,6 +38,6 @@ export declare const stripeUserDataSchema: v.NullableSchema<v.ObjectSchema<{
|
|
|
38
38
|
readonly trialStart: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
39
39
|
}, undefined>, undefined>;
|
|
40
40
|
readonly subscriptionTier: v.NullableSchema<v.PicklistSchema<readonly ["tier1"], undefined>, undefined>;
|
|
41
|
-
}, undefined
|
|
41
|
+
}, undefined>;
|
|
42
42
|
export type StripeUserData = v.InferOutput<typeof stripeUserDataSchema>;
|
|
43
43
|
//# sourceMappingURL=stripe.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stripe.d.ts","sourceRoot":"","sources":["../../src/schemas/stripe.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAwE5B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"stripe.d.ts","sourceRoot":"","sources":["../../src/schemas/stripe.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAwE5B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAK/B,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
|
package/dist/schemas/stripe.js
CHANGED
|
@@ -40,9 +40,9 @@ const stripeSubscriptionSchema = v.object({
|
|
|
40
40
|
trialEnd: v.nullable(v.number()),
|
|
41
41
|
trialStart: v.nullable(v.number()),
|
|
42
42
|
});
|
|
43
|
-
export const stripeUserDataSchema = v.
|
|
43
|
+
export const stripeUserDataSchema = v.object({
|
|
44
44
|
customer: v.union([stripeCustomerSchema, stripeDeletedCustomerSchema]),
|
|
45
45
|
product: v.nullable(stripeProductSchema),
|
|
46
46
|
subscription: v.nullable(stripeSubscriptionSchema),
|
|
47
47
|
subscriptionTier: v.nullable(v.picklist(SUBSCRIPTION_TIERS)),
|
|
48
|
-
})
|
|
48
|
+
});
|
|
@@ -20,7 +20,7 @@ export declare const getUser: import("../../../../..").EndpointConfig<"/v1/pv/mo
|
|
|
20
20
|
readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
21
21
|
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
22
22
|
}, undefined>, undefined>;
|
|
23
|
-
readonly stripe: v.
|
|
23
|
+
readonly stripe: v.ObjectSchema<{
|
|
24
24
|
readonly customer: v.UnionSchema<[v.ObjectSchema<{
|
|
25
25
|
readonly deleted: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
26
26
|
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -59,7 +59,7 @@ export declare const getUser: import("../../../../..").EndpointConfig<"/v1/pv/mo
|
|
|
59
59
|
readonly trialStart: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
60
60
|
}, undefined>, undefined>;
|
|
61
61
|
readonly subscriptionTier: v.NullableSchema<v.PicklistSchema<readonly ["tier1"], undefined>, undefined>;
|
|
62
|
-
}, undefined
|
|
62
|
+
}, undefined>;
|
|
63
63
|
readonly trialEndsAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
64
64
|
readonly undoSendEnabled: v.BooleanSchema<undefined>;
|
|
65
65
|
readonly views: v.ArraySchema<v.ObjectSchema<{
|