@marcoappio/marco-config 5.0.1 → 6.0.1
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 +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/marcoPublicConfig.d.ts +0 -12
- package/dist/marcoPublicConfig.d.ts.map +1 -1
- package/dist/marcoPublicConfig.js +0 -33
- package/dist/schemas/index.d.ts +0 -83
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +0 -2
- package/dist/schemas/models/user.d.ts +0 -41
- package/dist/schemas/models/user.d.ts.map +1 -1
- package/dist/schemas/models/user.js +0 -3
- package/dist/sdk/endpoints/index.d.ts +0 -53
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/index.d.ts +0 -53
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/models/user/getUser.d.ts +0 -41
- package/dist/sdk/endpoints/private/models/user/getUser.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/user/index.d.ts +0 -53
- package/dist/sdk/endpoints/private/user/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/user/index.js +0 -4
- package/dist/sdk/index.d.ts +0 -59
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/validation/errors.d.ts +0 -12
- package/dist/sdk/validation/errors.d.ts.map +1 -1
- package/dist/sdk/validation/errors.js +0 -5
- package/dist/sdk/validation/index.d.ts +0 -6
- package/dist/sdk/validation/index.d.ts.map +1 -1
- package/dist/types/SDKError.d.ts +1 -1
- package/dist/types/SDKError.d.ts.map +1 -1
- package/dist/types/index.d.ts +0 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +0 -2
- package/package.json +2 -2
- package/dist/schemas/mutators/mutatorSchemas.test.d.ts +0 -2
- package/dist/schemas/mutators/mutatorSchemas.test.d.ts.map +0 -1
- package/dist/schemas/mutators/mutatorSchemas.test.js +0 -39
- package/dist/schemas/stripe.d.ts +0 -43
- package/dist/schemas/stripe.d.ts.map +0 -1
- package/dist/schemas/stripe.js +0 -48
- package/dist/sdk/endpoints/private/user/createBillingPortalSession.d.ts +0 -30
- package/dist/sdk/endpoints/private/user/createBillingPortalSession.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/user/createBillingPortalSession.js +0 -19
- package/dist/sdk/endpoints/private/user/createCheckoutSession.d.ts +0 -27
- package/dist/sdk/endpoints/private/user/createCheckoutSession.d.ts.map +0 -1
- package/dist/sdk/endpoints/private/user/createCheckoutSession.js +0 -20
- package/dist/types/StripeSubscriptionStatus.d.ts +0 -3
- package/dist/types/StripeSubscriptionStatus.d.ts.map +0 -1
- package/dist/types/StripeSubscriptionStatus.js +0 -10
- package/dist/types/SubscriptionTier.d.ts +0 -3
- package/dist/types/SubscriptionTier.d.ts.map +0 -1
- package/dist/types/SubscriptionTier.js +0 -1
- package/dist/utils/threads/parseLabelIdList/parseLabelIdList.test.d.ts +0 -2
- package/dist/utils/threads/parseLabelIdList/parseLabelIdList.test.d.ts.map +0 -1
- package/dist/utils/threads/parseLabelIdList/parseLabelIdList.test.js +0 -18
- package/dist/utils/threads/processSearchTerm/processSearchTerm.test.d.ts +0 -2
- package/dist/utils/threads/processSearchTerm/processSearchTerm.test.d.ts.map +0 -1
- package/dist/utils/threads/processSearchTerm/processSearchTerm.test.js +0 -38
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { marcoConstants } from './constants';
|
|
2
|
-
export { MARCO_ENV, MarcoEnvironment, marcoPublicConfig } from './marcoPublicConfig';
|
|
2
|
+
export { MARCO_ENV, type MarcoEnvironment, marcoPublicConfig } from './marcoPublicConfig';
|
|
3
3
|
export { type Account, type AccountAlias, type AccountId, type AccountLabel, type AliasId, type AttachmentId, type Contact, type ContactId, type Draft, type DraftAttachment, type DraftBody, type DraftId, type LabelId, type MessageId, marcoSchemas, type PushNotificationTokenId, type RecipientId, type Thread, type ThreadId, type ThreadMessage, type ThreadMessageAttachment, type ThreadMessageRecipient, type User, type UserId, type UserPushNotificationToken, type UserView, type ViewId, } from './schemas';
|
|
4
4
|
export { marcoSDK } from './sdk';
|
|
5
5
|
export * from './types';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACzF,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,SAAS,EACd,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,WAAW,EAChB,KAAK,MAAM,EACX,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,IAAI,EACT,KAAK,MAAM,EACX,KAAK,yBAAyB,EAC9B,KAAK,QAAQ,EACb,KAAK,MAAM,GACZ,MAAM,WAAW,CAAA;AAClB,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { SubscriptionTier } from './types';
|
|
2
1
|
export type MarcoEnvironment = 'production' | 'staging' | 'development';
|
|
3
2
|
export declare const MARCO_ENV: MarcoEnvironment;
|
|
4
3
|
type MarcoPublicConfig = {
|
|
@@ -28,17 +27,6 @@ type MarcoPublicConfig = {
|
|
|
28
27
|
tenantId: string;
|
|
29
28
|
};
|
|
30
29
|
};
|
|
31
|
-
stripe: {
|
|
32
|
-
products: {
|
|
33
|
-
[key in SubscriptionTier]: {
|
|
34
|
-
id: string;
|
|
35
|
-
priceIds: {
|
|
36
|
-
monthly: string;
|
|
37
|
-
yearly: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
30
|
workOS: {
|
|
43
31
|
clientId: string;
|
|
44
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marcoPublicConfig.d.ts","sourceRoot":"","sources":["../src/marcoPublicConfig.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"marcoPublicConfig.d.ts","sourceRoot":"","sources":["../src/marcoPublicConfig.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,SAAS,GAAG,aAAa,CAAA;AAEvE,eAAO,MAAM,SAAS,kBAGP,CAAA;AAEf,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE;QACL,GAAG,EAAE;YACH,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;QACD,GAAG,EAAE;YACH,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;QACD,GAAG,EAAE;YACH,OAAO,EAAE,MAAM,CAAA;YACf,UAAU,EAAE,MAAM,CAAA;SACnB,CAAA;QACD,EAAE,EAAE;YACF,KAAK,EAAE,MAAM,CAAA;YACb,IAAI,EAAE,MAAM,CAAA;YACZ,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;KACF,CAAA;IACD,KAAK,EAAE;QACL,MAAM,EAAE;YACN,QAAQ,EAAE,MAAM,CAAA;SACjB,CAAA;QACD,OAAO,EAAE;YACP,QAAQ,EAAE,MAAM,CAAA;YAChB,QAAQ,EAAE,MAAM,CAAA;SACjB,CAAA;KACF,CAAA;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;CACF,CAAA;AAkGD,eAAO,MAAM,iBAAiB,SAAS,gBAAgB,sBAAmC,CAAA"}
|
|
@@ -29,17 +29,6 @@ const configMap = {
|
|
|
29
29
|
tenantId: '33fe2afe-644d-4fe2-a264-c4f2c34fa2cf',
|
|
30
30
|
},
|
|
31
31
|
},
|
|
32
|
-
stripe: {
|
|
33
|
-
products: {
|
|
34
|
-
tier1: {
|
|
35
|
-
id: 'prod_TJW6TuhbdtnvMq',
|
|
36
|
-
priceIds: {
|
|
37
|
-
monthly: 'price_1TKIAR1m1XCLGhl4l7B0ysTX',
|
|
38
|
-
yearly: 'price_1TKIAf1m1XCLGhl4EbLTu1OM',
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
32
|
workOS: {
|
|
44
33
|
clientId: 'client_01J51ET6KV4GBGMGHY0PJ9VGP2',
|
|
45
34
|
},
|
|
@@ -71,17 +60,6 @@ const configMap = {
|
|
|
71
60
|
tenantId: '33fe2afe-644d-4fe2-a264-c4f2c34fa2cf',
|
|
72
61
|
},
|
|
73
62
|
},
|
|
74
|
-
stripe: {
|
|
75
|
-
products: {
|
|
76
|
-
tier1: {
|
|
77
|
-
id: 'prod_TJW8qBSheqSNKz',
|
|
78
|
-
priceIds: {
|
|
79
|
-
monthly: 'price_1TKI80P4o4KWHCwtPukaZPzv',
|
|
80
|
-
yearly: 'price_1TKI8KP4o4KWHCwtUoEtvVho',
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
63
|
workOS: {
|
|
86
64
|
clientId: 'client_01J51ET6RT5WCS3NNQYBB7FAE7',
|
|
87
65
|
},
|
|
@@ -113,17 +91,6 @@ const configMap = {
|
|
|
113
91
|
tenantId: '33fe2afe-644d-4fe2-a264-c4f2c34fa2cf',
|
|
114
92
|
},
|
|
115
93
|
},
|
|
116
|
-
stripe: {
|
|
117
|
-
products: {
|
|
118
|
-
tier1: {
|
|
119
|
-
id: 'prod_TJW6TuhbdtnvMq',
|
|
120
|
-
priceIds: {
|
|
121
|
-
monthly: 'price_1TKIAR1m1XCLGhl4l7B0ysTX',
|
|
122
|
-
yearly: 'price_1TKIAf1m1XCLGhl4EbLTu1OM',
|
|
123
|
-
},
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
94
|
workOS: {
|
|
128
95
|
clientId: 'client_01J51ET6KV4GBGMGHY0PJ9VGP2',
|
|
129
96
|
},
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { type StripeUserData } from './stripe';
|
|
2
|
-
export type { StripeUserData };
|
|
3
1
|
export type { AccountId, AliasId, AttachmentId, ContactId, DraftId, LabelId, MessageId, PushNotificationTokenId, RecipientId, ThreadId, UserId, ViewId, } from './id';
|
|
4
2
|
export type { Account, AccountAlias, AccountLabel, Contact, Draft, DraftAttachment, DraftBody, Thread, ThreadMessage, ThreadMessageAttachment, ThreadMessageRecipient, User, UserPushNotificationToken, UserView, } from './models';
|
|
5
3
|
export { mutatorSchemas } from './mutators';
|
|
@@ -193,46 +191,6 @@ export declare const marcoSchemas: {
|
|
|
193
191
|
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>;
|
|
194
192
|
readonly userId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "UserId">]>, undefined>;
|
|
195
193
|
}, undefined>;
|
|
196
|
-
stripeUserDataSchema: import("valibot").ObjectSchema<{
|
|
197
|
-
readonly customer: import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
198
|
-
readonly deleted: import("valibot").OptionalSchema<import("valibot").NeverSchema<undefined>, undefined>;
|
|
199
|
-
readonly email: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
200
|
-
readonly id: import("valibot").StringSchema<undefined>;
|
|
201
|
-
readonly name: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
202
|
-
readonly object: import("valibot").LiteralSchema<"customer", undefined>;
|
|
203
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
204
|
-
readonly deleted: import("valibot").LiteralSchema<true, undefined>;
|
|
205
|
-
readonly id: import("valibot").StringSchema<undefined>;
|
|
206
|
-
readonly object: import("valibot").LiteralSchema<"customer", undefined>;
|
|
207
|
-
}, undefined>], undefined>;
|
|
208
|
-
readonly product: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
209
|
-
readonly description: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
210
|
-
readonly id: import("valibot").StringSchema<undefined>;
|
|
211
|
-
readonly name: import("valibot").StringSchema<undefined>;
|
|
212
|
-
readonly object: import("valibot").LiteralSchema<"product", undefined>;
|
|
213
|
-
}, undefined>, undefined>;
|
|
214
|
-
readonly subscription: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
215
|
-
readonly cancelAtPeriodEnd: import("valibot").BooleanSchema<undefined>;
|
|
216
|
-
readonly discounts: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
217
|
-
readonly coupon: import("valibot").ObjectSchema<{
|
|
218
|
-
readonly amountOff: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
219
|
-
readonly id: import("valibot").StringSchema<undefined>;
|
|
220
|
-
readonly name: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
221
|
-
readonly percentOff: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
222
|
-
}, undefined>;
|
|
223
|
-
readonly end: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
224
|
-
readonly id: import("valibot").StringSchema<undefined>;
|
|
225
|
-
readonly start: import("valibot").NumberSchema<undefined>;
|
|
226
|
-
}, undefined>, undefined>;
|
|
227
|
-
readonly id: import("valibot").StringSchema<undefined>;
|
|
228
|
-
readonly object: import("valibot").LiteralSchema<"subscription", undefined>;
|
|
229
|
-
readonly startDate: import("valibot").NumberSchema<undefined>;
|
|
230
|
-
readonly status: import("valibot").PicklistSchema<readonly ["active", "canceled", "incomplete", "incomplete_expired", "past_due", "paused", "trialing", "unpaid"], undefined>;
|
|
231
|
-
readonly trialEnd: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
232
|
-
readonly trialStart: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
233
|
-
}, undefined>, undefined>;
|
|
234
|
-
readonly subscriptionTier: import("valibot").NullableSchema<import("valibot").PicklistSchema<readonly ["tier1"], undefined>, undefined>;
|
|
235
|
-
}, undefined>;
|
|
236
194
|
threadFullSchema: import("valibot").ObjectSchema<{
|
|
237
195
|
readonly messages: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
238
196
|
readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>;
|
|
@@ -368,47 +326,6 @@ export declare const marcoSchemas: {
|
|
|
368
326
|
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>;
|
|
369
327
|
readonly userId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "UserId">]>, undefined>;
|
|
370
328
|
}, undefined>, undefined>;
|
|
371
|
-
readonly stripe: import("valibot").ObjectSchema<{
|
|
372
|
-
readonly customer: import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
373
|
-
readonly deleted: import("valibot").OptionalSchema<import("valibot").NeverSchema<undefined>, undefined>;
|
|
374
|
-
readonly email: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
375
|
-
readonly id: import("valibot").StringSchema<undefined>;
|
|
376
|
-
readonly name: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
377
|
-
readonly object: import("valibot").LiteralSchema<"customer", undefined>;
|
|
378
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
379
|
-
readonly deleted: import("valibot").LiteralSchema<true, undefined>;
|
|
380
|
-
readonly id: import("valibot").StringSchema<undefined>;
|
|
381
|
-
readonly object: import("valibot").LiteralSchema<"customer", undefined>;
|
|
382
|
-
}, undefined>], undefined>;
|
|
383
|
-
readonly product: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
384
|
-
readonly description: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
385
|
-
readonly id: import("valibot").StringSchema<undefined>;
|
|
386
|
-
readonly name: import("valibot").StringSchema<undefined>;
|
|
387
|
-
readonly object: import("valibot").LiteralSchema<"product", undefined>;
|
|
388
|
-
}, undefined>, undefined>;
|
|
389
|
-
readonly subscription: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
390
|
-
readonly cancelAtPeriodEnd: import("valibot").BooleanSchema<undefined>;
|
|
391
|
-
readonly discounts: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
392
|
-
readonly coupon: import("valibot").ObjectSchema<{
|
|
393
|
-
readonly amountOff: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
394
|
-
readonly id: import("valibot").StringSchema<undefined>;
|
|
395
|
-
readonly name: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
396
|
-
readonly percentOff: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
397
|
-
}, undefined>;
|
|
398
|
-
readonly end: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
399
|
-
readonly id: import("valibot").StringSchema<undefined>;
|
|
400
|
-
readonly start: import("valibot").NumberSchema<undefined>;
|
|
401
|
-
}, undefined>, undefined>;
|
|
402
|
-
readonly id: import("valibot").StringSchema<undefined>;
|
|
403
|
-
readonly object: import("valibot").LiteralSchema<"subscription", undefined>;
|
|
404
|
-
readonly startDate: import("valibot").NumberSchema<undefined>;
|
|
405
|
-
readonly status: import("valibot").PicklistSchema<readonly ["active", "canceled", "incomplete", "incomplete_expired", "past_due", "paused", "trialing", "unpaid"], undefined>;
|
|
406
|
-
readonly trialEnd: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
407
|
-
readonly trialStart: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
408
|
-
}, undefined>, undefined>;
|
|
409
|
-
readonly subscriptionTier: import("valibot").NullableSchema<import("valibot").PicklistSchema<readonly ["tier1"], undefined>, undefined>;
|
|
410
|
-
}, undefined>;
|
|
411
|
-
readonly trialEndsAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
412
329
|
readonly undoSendEnabled: import("valibot").BooleanSchema<undefined>;
|
|
413
330
|
readonly views: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
414
331
|
readonly aliasEmails: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AA+BA,YAAY,EACV,SAAS,EACT,OAAO,EACP,YAAY,EACZ,SAAS,EACT,OAAO,EACP,OAAO,EACP,SAAS,EACT,uBAAuB,EACvB,WAAW,EACX,QAAQ,EACR,MAAM,EACN,MAAM,GACP,MAAM,MAAM,CAAA;AACb,YAAY,EACV,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,KAAK,EACL,eAAe,EACf,SAAS,EACT,MAAM,EACN,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,IAAI,EACJ,yBAAyB,EACzB,QAAQ,GACT,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BxB,CAAA"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -10,7 +10,6 @@ import { number } from './number';
|
|
|
10
10
|
import { oauth } from './oauth';
|
|
11
11
|
import { pushNotifications } from './pushNotifications';
|
|
12
12
|
import { string } from './string';
|
|
13
|
-
import { stripeUserDataSchema } from './stripe';
|
|
14
13
|
import { websocket } from './websocket';
|
|
15
14
|
export { mutatorSchemas } from './mutators';
|
|
16
15
|
export const marcoSchemas = {
|
|
@@ -28,7 +27,6 @@ export const marcoSchemas = {
|
|
|
28
27
|
draftAttachmentSchema,
|
|
29
28
|
draftBodySchema,
|
|
30
29
|
draftSchema,
|
|
31
|
-
stripeUserDataSchema,
|
|
32
30
|
threadFullSchema,
|
|
33
31
|
threadListSchema,
|
|
34
32
|
threadMessageAttachmentSchema,
|
|
@@ -22,47 +22,6 @@ export declare const userSchema: v.ObjectSchema<{
|
|
|
22
22
|
readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
23
23
|
readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
|
|
24
24
|
}, undefined>, undefined>;
|
|
25
|
-
readonly stripe: v.ObjectSchema<{
|
|
26
|
-
readonly customer: v.UnionSchema<[v.ObjectSchema<{
|
|
27
|
-
readonly deleted: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
28
|
-
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
29
|
-
readonly id: v.StringSchema<undefined>;
|
|
30
|
-
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
31
|
-
readonly object: v.LiteralSchema<"customer", undefined>;
|
|
32
|
-
}, undefined>, v.ObjectSchema<{
|
|
33
|
-
readonly deleted: v.LiteralSchema<true, undefined>;
|
|
34
|
-
readonly id: v.StringSchema<undefined>;
|
|
35
|
-
readonly object: v.LiteralSchema<"customer", undefined>;
|
|
36
|
-
}, undefined>], undefined>;
|
|
37
|
-
readonly product: v.NullableSchema<v.ObjectSchema<{
|
|
38
|
-
readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
39
|
-
readonly id: v.StringSchema<undefined>;
|
|
40
|
-
readonly name: v.StringSchema<undefined>;
|
|
41
|
-
readonly object: v.LiteralSchema<"product", undefined>;
|
|
42
|
-
}, undefined>, undefined>;
|
|
43
|
-
readonly subscription: v.NullableSchema<v.ObjectSchema<{
|
|
44
|
-
readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;
|
|
45
|
-
readonly discounts: v.ArraySchema<v.ObjectSchema<{
|
|
46
|
-
readonly coupon: v.ObjectSchema<{
|
|
47
|
-
readonly amountOff: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
48
|
-
readonly id: v.StringSchema<undefined>;
|
|
49
|
-
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
50
|
-
readonly percentOff: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
51
|
-
}, undefined>;
|
|
52
|
-
readonly end: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
53
|
-
readonly id: v.StringSchema<undefined>;
|
|
54
|
-
readonly start: v.NumberSchema<undefined>;
|
|
55
|
-
}, undefined>, undefined>;
|
|
56
|
-
readonly id: v.StringSchema<undefined>;
|
|
57
|
-
readonly object: v.LiteralSchema<"subscription", undefined>;
|
|
58
|
-
readonly startDate: v.NumberSchema<undefined>;
|
|
59
|
-
readonly status: v.PicklistSchema<readonly ["active", "canceled", "incomplete", "incomplete_expired", "past_due", "paused", "trialing", "unpaid"], undefined>;
|
|
60
|
-
readonly trialEnd: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
61
|
-
readonly trialStart: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
62
|
-
}, undefined>, undefined>;
|
|
63
|
-
readonly subscriptionTier: v.NullableSchema<v.PicklistSchema<readonly ["tier1"], undefined>, undefined>;
|
|
64
|
-
}, undefined>;
|
|
65
|
-
readonly trialEndsAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
66
25
|
readonly undoSendEnabled: v.BooleanSchema<undefined>;
|
|
67
26
|
readonly views: v.ArraySchema<v.ObjectSchema<{
|
|
68
27
|
readonly aliasEmails: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAO5B,eAAO,MAAM,cAAc;;;;;aAKzB,CAAA;AAEF,eAAO,MAAM,+BAA+B;;;;;aAK1C,CAAA;AAEF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;aAQrB,CAAA;AAEF,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,UAAU,CAAC,CAAA;AACnD,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,cAAc,CAAC,CAAA;AAC3D,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,+BAA+B,CAAC,CAAA"}
|
|
@@ -2,7 +2,6 @@ import * as v from 'valibot';
|
|
|
2
2
|
import { id } from '../../schemas/id';
|
|
3
3
|
import { number } from '../../schemas/number';
|
|
4
4
|
import { string } from '../../schemas/string';
|
|
5
|
-
import { stripeUserDataSchema } from '../../schemas/stripe';
|
|
6
5
|
import { USER_SETTINGS_CUSTOM_VIEW_ICONS } from '../../types';
|
|
7
6
|
export const userViewSchema = v.object({
|
|
8
7
|
aliasEmails: v.array(string.required()),
|
|
@@ -22,8 +21,6 @@ export const userSchema = v.object({
|
|
|
22
21
|
name: string.nullable(),
|
|
23
22
|
profilePicture: string.nullable(),
|
|
24
23
|
pushNotificationTokens: v.array(userPushNotificationTokenSchema),
|
|
25
|
-
stripe: stripeUserDataSchema,
|
|
26
|
-
trialEndsAt: number.nullable(),
|
|
27
24
|
undoSendEnabled: v.boolean(),
|
|
28
25
|
views: v.array(userViewSchema),
|
|
29
26
|
});
|
|
@@ -67,59 +67,6 @@ export declare const endpoints: {
|
|
|
67
67
|
user: typeof import("./private/mutations/user");
|
|
68
68
|
};
|
|
69
69
|
user: {
|
|
70
|
-
createBillingPortalSession: EndpointConfig<"/v1/pv/user/create-billing-portal-session", import("valibot").ObjectSchema<{
|
|
71
|
-
readonly returnUrl: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
|
|
72
|
-
}, undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
73
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
74
|
-
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
75
|
-
}, undefined>;
|
|
76
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
77
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
78
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
79
|
-
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
80
|
-
readonly issues: import("valibot").ObjectSchema<{
|
|
81
|
-
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
82
|
-
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
83
|
-
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
84
|
-
}, undefined>;
|
|
85
|
-
}, undefined>;
|
|
86
|
-
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
87
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
88
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
89
|
-
readonly code: import("valibot").LiteralSchema<"SUBSCRIPTION_NOT_FOUND", undefined>;
|
|
90
|
-
}, undefined>;
|
|
91
|
-
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
92
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
93
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
94
|
-
readonly url: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
|
|
95
|
-
}, undefined>;
|
|
96
|
-
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
97
|
-
}, undefined>], undefined>>;
|
|
98
|
-
createCheckoutSession: EndpointConfig<"/v1/pv/user/create-checkout-session", import("valibot").ObjectSchema<{
|
|
99
|
-
readonly cancelUrl: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>]>;
|
|
100
|
-
readonly priceId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>]>;
|
|
101
|
-
readonly successUrl: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>]>;
|
|
102
|
-
}, undefined>, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
103
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
104
|
-
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
105
|
-
}, undefined>;
|
|
106
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
107
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
108
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
109
|
-
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
110
|
-
readonly issues: import("valibot").ObjectSchema<{
|
|
111
|
-
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
112
|
-
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
113
|
-
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
114
|
-
}, undefined>;
|
|
115
|
-
}, undefined>;
|
|
116
|
-
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
117
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
118
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
119
|
-
readonly url: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
|
|
120
|
-
}, undefined>;
|
|
121
|
-
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
122
|
-
}, undefined>], undefined>>;
|
|
123
70
|
deleteUser: EndpointConfig<"/v1/pv/user", GenericSchema | undefined, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
124
71
|
readonly data: import("valibot").ObjectSchema<{
|
|
125
72
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAWtE,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAWtE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
|
|
@@ -64,59 +64,6 @@ export declare const privateGroup: {
|
|
|
64
64
|
user: typeof import("./mutations/user");
|
|
65
65
|
};
|
|
66
66
|
user: {
|
|
67
|
-
createBillingPortalSession: import("../../..").EndpointConfig<"/v1/pv/user/create-billing-portal-session", import("valibot").ObjectSchema<{
|
|
68
|
-
readonly returnUrl: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
|
|
69
|
-
}, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
70
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
71
|
-
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
72
|
-
}, undefined>;
|
|
73
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
74
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
75
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
76
|
-
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
77
|
-
readonly issues: import("valibot").ObjectSchema<{
|
|
78
|
-
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
79
|
-
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
80
|
-
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
81
|
-
}, undefined>;
|
|
82
|
-
}, undefined>;
|
|
83
|
-
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
84
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
85
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
86
|
-
readonly code: import("valibot").LiteralSchema<"SUBSCRIPTION_NOT_FOUND", undefined>;
|
|
87
|
-
}, undefined>;
|
|
88
|
-
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
89
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
90
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
91
|
-
readonly url: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
|
|
92
|
-
}, undefined>;
|
|
93
|
-
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
94
|
-
}, undefined>], undefined>>;
|
|
95
|
-
createCheckoutSession: import("../../..").EndpointConfig<"/v1/pv/user/create-checkout-session", import("valibot").ObjectSchema<{
|
|
96
|
-
readonly cancelUrl: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>]>;
|
|
97
|
-
readonly priceId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>]>;
|
|
98
|
-
readonly successUrl: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>]>;
|
|
99
|
-
}, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
100
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
101
|
-
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
102
|
-
}, undefined>;
|
|
103
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
104
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
105
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
106
|
-
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
107
|
-
readonly issues: import("valibot").ObjectSchema<{
|
|
108
|
-
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
109
|
-
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
110
|
-
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
111
|
-
}, undefined>;
|
|
112
|
-
}, undefined>;
|
|
113
|
-
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
114
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
115
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
116
|
-
readonly url: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
|
|
117
|
-
}, undefined>;
|
|
118
|
-
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
119
|
-
}, undefined>], undefined>>;
|
|
120
67
|
deleteUser: import("../../..").EndpointConfig<"/v1/pv/user", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
121
68
|
readonly data: import("valibot").ObjectSchema<{
|
|
122
69
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMxB,CAAA"}
|
|
@@ -21,47 +21,6 @@ export declare const getUser: import("../../../../..").EndpointConfig<"/v1/pv/mo
|
|
|
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>, v.BrandAction<string, "UserId">]>, undefined>;
|
|
23
23
|
}, undefined>, undefined>;
|
|
24
|
-
readonly stripe: v.ObjectSchema<{
|
|
25
|
-
readonly customer: v.UnionSchema<[v.ObjectSchema<{
|
|
26
|
-
readonly deleted: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
27
|
-
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
28
|
-
readonly id: v.StringSchema<undefined>;
|
|
29
|
-
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
30
|
-
readonly object: v.LiteralSchema<"customer", undefined>;
|
|
31
|
-
}, undefined>, v.ObjectSchema<{
|
|
32
|
-
readonly deleted: v.LiteralSchema<true, undefined>;
|
|
33
|
-
readonly id: v.StringSchema<undefined>;
|
|
34
|
-
readonly object: v.LiteralSchema<"customer", undefined>;
|
|
35
|
-
}, undefined>], undefined>;
|
|
36
|
-
readonly product: v.NullableSchema<v.ObjectSchema<{
|
|
37
|
-
readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
38
|
-
readonly id: v.StringSchema<undefined>;
|
|
39
|
-
readonly name: v.StringSchema<undefined>;
|
|
40
|
-
readonly object: v.LiteralSchema<"product", undefined>;
|
|
41
|
-
}, undefined>, undefined>;
|
|
42
|
-
readonly subscription: v.NullableSchema<v.ObjectSchema<{
|
|
43
|
-
readonly cancelAtPeriodEnd: v.BooleanSchema<undefined>;
|
|
44
|
-
readonly discounts: v.ArraySchema<v.ObjectSchema<{
|
|
45
|
-
readonly coupon: v.ObjectSchema<{
|
|
46
|
-
readonly amountOff: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
47
|
-
readonly id: v.StringSchema<undefined>;
|
|
48
|
-
readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
49
|
-
readonly percentOff: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
50
|
-
}, undefined>;
|
|
51
|
-
readonly end: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
52
|
-
readonly id: v.StringSchema<undefined>;
|
|
53
|
-
readonly start: v.NumberSchema<undefined>;
|
|
54
|
-
}, undefined>, undefined>;
|
|
55
|
-
readonly id: v.StringSchema<undefined>;
|
|
56
|
-
readonly object: v.LiteralSchema<"subscription", undefined>;
|
|
57
|
-
readonly startDate: v.NumberSchema<undefined>;
|
|
58
|
-
readonly status: v.PicklistSchema<readonly ["active", "canceled", "incomplete", "incomplete_expired", "past_due", "paused", "trialing", "unpaid"], undefined>;
|
|
59
|
-
readonly trialEnd: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
60
|
-
readonly trialStart: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
61
|
-
}, undefined>, undefined>;
|
|
62
|
-
readonly subscriptionTier: v.NullableSchema<v.PicklistSchema<readonly ["tier1"], undefined>, undefined>;
|
|
63
|
-
}, undefined>;
|
|
64
|
-
readonly trialEndsAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
65
24
|
readonly undoSendEnabled: v.BooleanSchema<undefined>;
|
|
66
25
|
readonly views: v.ArraySchema<v.ObjectSchema<{
|
|
67
26
|
readonly aliasEmails: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUser.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/user/getUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"getUser.d.ts","sourceRoot":"","sources":["../../../../../../src/sdk/endpoints/private/models/user/getUser.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAWlB,CAAA"}
|
|
@@ -1,57 +1,4 @@
|
|
|
1
1
|
export declare const user: {
|
|
2
|
-
createBillingPortalSession: import("../../../..").EndpointConfig<"/v1/pv/user/create-billing-portal-session", import("valibot").ObjectSchema<{
|
|
3
|
-
readonly returnUrl: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
|
|
4
|
-
}, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
5
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
6
|
-
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
7
|
-
}, undefined>;
|
|
8
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
9
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
10
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
11
|
-
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
12
|
-
readonly issues: import("valibot").ObjectSchema<{
|
|
13
|
-
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
14
|
-
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
15
|
-
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
16
|
-
}, undefined>;
|
|
17
|
-
}, undefined>;
|
|
18
|
-
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
19
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
20
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
21
|
-
readonly code: import("valibot").LiteralSchema<"SUBSCRIPTION_NOT_FOUND", undefined>;
|
|
22
|
-
}, undefined>;
|
|
23
|
-
readonly status: import("valibot").LiteralSchema<404, undefined>;
|
|
24
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
25
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
26
|
-
readonly url: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
|
|
27
|
-
}, undefined>;
|
|
28
|
-
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
29
|
-
}, undefined>], undefined>>;
|
|
30
|
-
createCheckoutSession: import("../../../..").EndpointConfig<"/v1/pv/user/create-checkout-session", import("valibot").ObjectSchema<{
|
|
31
|
-
readonly cancelUrl: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>]>;
|
|
32
|
-
readonly priceId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>]>;
|
|
33
|
-
readonly successUrl: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>]>;
|
|
34
|
-
}, undefined>, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
35
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
36
|
-
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
37
|
-
}, undefined>;
|
|
38
|
-
readonly status: import("valibot").LiteralSchema<401, undefined>;
|
|
39
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
40
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
41
|
-
readonly code: import("valibot").LiteralSchema<"VALIDATION_FAILED", undefined>;
|
|
42
|
-
readonly issues: import("valibot").ObjectSchema<{
|
|
43
|
-
readonly nested: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>, undefined>, undefined>;
|
|
44
|
-
readonly other: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
45
|
-
readonly root: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
46
|
-
}, undefined>;
|
|
47
|
-
}, undefined>;
|
|
48
|
-
readonly status: import("valibot").LiteralSchema<400, undefined>;
|
|
49
|
-
}, undefined>, import("valibot").ObjectSchema<{
|
|
50
|
-
readonly data: import("valibot").ObjectSchema<{
|
|
51
|
-
readonly url: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").UrlAction<string, undefined>]>;
|
|
52
|
-
}, undefined>;
|
|
53
|
-
readonly status: import("valibot").LiteralSchema<200, undefined>;
|
|
54
|
-
}, undefined>], undefined>>;
|
|
55
2
|
deleteUser: import("../../../..").EndpointConfig<"/v1/pv/user", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
|
|
56
3
|
readonly data: import("valibot").ObjectSchema<{
|
|
57
4
|
readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/user/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/user/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGhB,CAAA"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import { createBillingPortalSession } from './createBillingPortalSession';
|
|
2
|
-
import { createCheckoutSession } from './createCheckoutSession';
|
|
3
1
|
import { deleteUser } from './deleteUser';
|
|
4
2
|
import { uploadProfilePicture } from './uploadProfilePicture';
|
|
5
3
|
export const user = {
|
|
6
|
-
createBillingPortalSession,
|
|
7
|
-
createCheckoutSession,
|
|
8
4
|
deleteUser,
|
|
9
5
|
uploadProfilePicture,
|
|
10
6
|
};
|