@driveflux/api-functions 1.0.144 → 1.0.145
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/auth/otp.d.ts +1 -1
- package/dist/auth/tokens.d.ts +9 -9
- package/dist/notion/schemas/block.d.ts +8 -8
- package/dist/notion/schemas/database.d.ts +19 -19
- package/dist/notion/schemas/kb.d.ts +44 -44
- package/dist/notion/schemas/page.d.ts +20 -20
- package/dist/reservation/display-vehicle.d.ts +20 -20
- package/dist/validation.d.ts +17 -16
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +4 -0
- package/package.json +10 -10
package/dist/auth/otp.d.ts
CHANGED
|
@@ -21,8 +21,8 @@ declare const SendVerificationSMSBody: z.ZodObject<{
|
|
|
21
21
|
}, z.core.$strip>;
|
|
22
22
|
declare const VerifyOtpBody: z.ZodObject<{
|
|
23
23
|
scope: z.ZodEnum<{
|
|
24
|
-
"verify-email": "verify-email";
|
|
25
24
|
"verify-phone": "verify-phone";
|
|
25
|
+
"verify-email": "verify-email";
|
|
26
26
|
}>;
|
|
27
27
|
email: z.ZodPipe<z.ZodOptional<z.ZodEmail>, z.ZodTransform<string | undefined, string | undefined>>;
|
|
28
28
|
phoneNumber: z.ZodOptional<z.ZodString>;
|
package/dist/auth/tokens.d.ts
CHANGED
|
@@ -9,13 +9,13 @@ type VerifyTokenOptions = {
|
|
|
9
9
|
};
|
|
10
10
|
export declare const createToken: (userId: string | null, type: "email" | "phoneNumber", value: string, providedExpiresAt?: Date) => Promise<{
|
|
11
11
|
object: import("@driveflux/db").TokenObject;
|
|
12
|
+
value: string | null;
|
|
12
13
|
id: string;
|
|
13
|
-
metadata: PrismaJson.AnyMetadata | null;
|
|
14
14
|
createdAt: Date;
|
|
15
15
|
updatedAt: Date;
|
|
16
|
-
|
|
17
|
-
value: string | null;
|
|
16
|
+
metadata: PrismaJson.AnyMetadata | null;
|
|
18
17
|
client: string | null;
|
|
18
|
+
userId: string | null;
|
|
19
19
|
identifier: string | null;
|
|
20
20
|
expiresAt: Date | null;
|
|
21
21
|
redirectUrl: string | null;
|
|
@@ -25,13 +25,13 @@ export declare const createToken: (userId: string | null, type: "email" | "phone
|
|
|
25
25
|
} | undefined>;
|
|
26
26
|
export declare const createEmailToken: (userId: string, email: string) => Promise<{
|
|
27
27
|
object: import("@driveflux/db").TokenObject;
|
|
28
|
+
value: string | null;
|
|
28
29
|
id: string;
|
|
29
|
-
metadata: PrismaJson.AnyMetadata | null;
|
|
30
30
|
createdAt: Date;
|
|
31
31
|
updatedAt: Date;
|
|
32
|
-
|
|
33
|
-
value: string | null;
|
|
32
|
+
metadata: PrismaJson.AnyMetadata | null;
|
|
34
33
|
client: string | null;
|
|
34
|
+
userId: string | null;
|
|
35
35
|
identifier: string | null;
|
|
36
36
|
expiresAt: Date | null;
|
|
37
37
|
redirectUrl: string | null;
|
|
@@ -41,13 +41,13 @@ export declare const createEmailToken: (userId: string, email: string) => Promis
|
|
|
41
41
|
} | undefined>;
|
|
42
42
|
export declare const createSMSToken: (userId: string | null, phoneNumber: string) => Promise<{
|
|
43
43
|
object: import("@driveflux/db").TokenObject;
|
|
44
|
+
value: string | null;
|
|
44
45
|
id: string;
|
|
45
|
-
metadata: PrismaJson.AnyMetadata | null;
|
|
46
46
|
createdAt: Date;
|
|
47
47
|
updatedAt: Date;
|
|
48
|
-
|
|
49
|
-
value: string | null;
|
|
48
|
+
metadata: PrismaJson.AnyMetadata | null;
|
|
50
49
|
client: string | null;
|
|
50
|
+
userId: string | null;
|
|
51
51
|
identifier: string | null;
|
|
52
52
|
expiresAt: Date | null;
|
|
53
53
|
redirectUrl: string | null;
|
|
@@ -64,22 +64,22 @@ export declare const notionRichTextSchema: z.ZodObject<{
|
|
|
64
64
|
color: z.ZodEnum<{
|
|
65
65
|
default: "default";
|
|
66
66
|
blue: "blue";
|
|
67
|
-
brown: "brown";
|
|
68
|
-
gray: "gray";
|
|
69
|
-
green: "green";
|
|
70
|
-
orange: "orange";
|
|
71
|
-
pink: "pink";
|
|
72
|
-
purple: "purple";
|
|
73
|
-
red: "red";
|
|
74
|
-
yellow: "yellow";
|
|
75
67
|
blue_background: "blue_background";
|
|
68
|
+
brown: "brown";
|
|
76
69
|
brown_background: "brown_background";
|
|
70
|
+
gray: "gray";
|
|
77
71
|
gray_background: "gray_background";
|
|
72
|
+
green: "green";
|
|
78
73
|
green_background: "green_background";
|
|
74
|
+
orange: "orange";
|
|
79
75
|
orange_background: "orange_background";
|
|
76
|
+
pink: "pink";
|
|
80
77
|
pink_background: "pink_background";
|
|
78
|
+
purple: "purple";
|
|
81
79
|
purple_background: "purple_background";
|
|
80
|
+
red: "red";
|
|
82
81
|
red_background: "red_background";
|
|
82
|
+
yellow: "yellow";
|
|
83
83
|
yellow_background: "yellow_background";
|
|
84
84
|
}>;
|
|
85
85
|
}, z.core.$strip>;
|
|
@@ -190,8 +190,8 @@ export declare const notionDatabasePropertyRollupSchema: ZodObject<{
|
|
|
190
190
|
type: z.ZodEnum<{
|
|
191
191
|
number: "number";
|
|
192
192
|
date: "date";
|
|
193
|
-
incomplete: "incomplete";
|
|
194
193
|
array: "array";
|
|
194
|
+
incomplete: "incomplete";
|
|
195
195
|
unsupported: "unsupported";
|
|
196
196
|
}>;
|
|
197
197
|
}, z.core.$strip>;
|
|
@@ -364,22 +364,22 @@ export declare const notionDatabaseSchema: <T extends ZodObject<any>>(properties
|
|
|
364
364
|
color: z.ZodEnum<{
|
|
365
365
|
default: "default";
|
|
366
366
|
blue: "blue";
|
|
367
|
-
brown: "brown";
|
|
368
|
-
gray: "gray";
|
|
369
|
-
green: "green";
|
|
370
|
-
orange: "orange";
|
|
371
|
-
pink: "pink";
|
|
372
|
-
purple: "purple";
|
|
373
|
-
red: "red";
|
|
374
|
-
yellow: "yellow";
|
|
375
367
|
blue_background: "blue_background";
|
|
368
|
+
brown: "brown";
|
|
376
369
|
brown_background: "brown_background";
|
|
370
|
+
gray: "gray";
|
|
377
371
|
gray_background: "gray_background";
|
|
372
|
+
green: "green";
|
|
378
373
|
green_background: "green_background";
|
|
374
|
+
orange: "orange";
|
|
379
375
|
orange_background: "orange_background";
|
|
376
|
+
pink: "pink";
|
|
380
377
|
pink_background: "pink_background";
|
|
378
|
+
purple: "purple";
|
|
381
379
|
purple_background: "purple_background";
|
|
380
|
+
red: "red";
|
|
382
381
|
red_background: "red_background";
|
|
382
|
+
yellow: "yellow";
|
|
383
383
|
yellow_background: "yellow_background";
|
|
384
384
|
}>;
|
|
385
385
|
}, z.core.$strip>;
|
|
@@ -451,22 +451,22 @@ export declare const notionDatabaseSchema: <T extends ZodObject<any>>(properties
|
|
|
451
451
|
color: z.ZodEnum<{
|
|
452
452
|
default: "default";
|
|
453
453
|
blue: "blue";
|
|
454
|
-
brown: "brown";
|
|
455
|
-
gray: "gray";
|
|
456
|
-
green: "green";
|
|
457
|
-
orange: "orange";
|
|
458
|
-
pink: "pink";
|
|
459
|
-
purple: "purple";
|
|
460
|
-
red: "red";
|
|
461
|
-
yellow: "yellow";
|
|
462
454
|
blue_background: "blue_background";
|
|
455
|
+
brown: "brown";
|
|
463
456
|
brown_background: "brown_background";
|
|
457
|
+
gray: "gray";
|
|
464
458
|
gray_background: "gray_background";
|
|
459
|
+
green: "green";
|
|
465
460
|
green_background: "green_background";
|
|
461
|
+
orange: "orange";
|
|
466
462
|
orange_background: "orange_background";
|
|
463
|
+
pink: "pink";
|
|
467
464
|
pink_background: "pink_background";
|
|
465
|
+
purple: "purple";
|
|
468
466
|
purple_background: "purple_background";
|
|
467
|
+
red: "red";
|
|
469
468
|
red_background: "red_background";
|
|
469
|
+
yellow: "yellow";
|
|
470
470
|
yellow_background: "yellow_background";
|
|
471
471
|
}>;
|
|
472
472
|
}, z.core.$strip>;
|
|
@@ -475,8 +475,8 @@ export declare const notionDatabaseSchema: <T extends ZodObject<any>>(properties
|
|
|
475
475
|
}, z.core.$strip>>;
|
|
476
476
|
icon: z.ZodUnion<[ZodObject<{
|
|
477
477
|
type: z.ZodEnum<{
|
|
478
|
-
external: "external";
|
|
479
478
|
file: "file";
|
|
479
|
+
external: "external";
|
|
480
480
|
}>;
|
|
481
481
|
name: z.ZodOptional<z.ZodString>;
|
|
482
482
|
file: z.ZodOptional<ZodObject<{
|
|
@@ -492,8 +492,8 @@ export declare const notionDatabaseSchema: <T extends ZodObject<any>>(properties
|
|
|
492
492
|
}, z.core.$strip>]>;
|
|
493
493
|
cover: z.ZodNullable<ZodObject<{
|
|
494
494
|
type: z.ZodEnum<{
|
|
495
|
-
external: "external";
|
|
496
495
|
file: "file";
|
|
496
|
+
external: "external";
|
|
497
497
|
}>;
|
|
498
498
|
name: z.ZodOptional<z.ZodString>;
|
|
499
499
|
file: z.ZodOptional<ZodObject<{
|
|
@@ -77,22 +77,22 @@ export declare const knowledgeBaseRetrieveDatabaseSchema: z.ZodObject<{
|
|
|
77
77
|
color: z.ZodEnum<{
|
|
78
78
|
default: "default";
|
|
79
79
|
blue: "blue";
|
|
80
|
-
brown: "brown";
|
|
81
|
-
gray: "gray";
|
|
82
|
-
green: "green";
|
|
83
|
-
orange: "orange";
|
|
84
|
-
pink: "pink";
|
|
85
|
-
purple: "purple";
|
|
86
|
-
red: "red";
|
|
87
|
-
yellow: "yellow";
|
|
88
80
|
blue_background: "blue_background";
|
|
81
|
+
brown: "brown";
|
|
89
82
|
brown_background: "brown_background";
|
|
83
|
+
gray: "gray";
|
|
90
84
|
gray_background: "gray_background";
|
|
85
|
+
green: "green";
|
|
91
86
|
green_background: "green_background";
|
|
87
|
+
orange: "orange";
|
|
92
88
|
orange_background: "orange_background";
|
|
89
|
+
pink: "pink";
|
|
93
90
|
pink_background: "pink_background";
|
|
91
|
+
purple: "purple";
|
|
94
92
|
purple_background: "purple_background";
|
|
93
|
+
red: "red";
|
|
95
94
|
red_background: "red_background";
|
|
95
|
+
yellow: "yellow";
|
|
96
96
|
yellow_background: "yellow_background";
|
|
97
97
|
}>;
|
|
98
98
|
}, z.core.$strip>;
|
|
@@ -164,22 +164,22 @@ export declare const knowledgeBaseRetrieveDatabaseSchema: z.ZodObject<{
|
|
|
164
164
|
color: z.ZodEnum<{
|
|
165
165
|
default: "default";
|
|
166
166
|
blue: "blue";
|
|
167
|
-
brown: "brown";
|
|
168
|
-
gray: "gray";
|
|
169
|
-
green: "green";
|
|
170
|
-
orange: "orange";
|
|
171
|
-
pink: "pink";
|
|
172
|
-
purple: "purple";
|
|
173
|
-
red: "red";
|
|
174
|
-
yellow: "yellow";
|
|
175
167
|
blue_background: "blue_background";
|
|
168
|
+
brown: "brown";
|
|
176
169
|
brown_background: "brown_background";
|
|
170
|
+
gray: "gray";
|
|
177
171
|
gray_background: "gray_background";
|
|
172
|
+
green: "green";
|
|
178
173
|
green_background: "green_background";
|
|
174
|
+
orange: "orange";
|
|
179
175
|
orange_background: "orange_background";
|
|
176
|
+
pink: "pink";
|
|
180
177
|
pink_background: "pink_background";
|
|
178
|
+
purple: "purple";
|
|
181
179
|
purple_background: "purple_background";
|
|
180
|
+
red: "red";
|
|
182
181
|
red_background: "red_background";
|
|
182
|
+
yellow: "yellow";
|
|
183
183
|
yellow_background: "yellow_background";
|
|
184
184
|
}>;
|
|
185
185
|
}, z.core.$strip>;
|
|
@@ -188,8 +188,8 @@ export declare const knowledgeBaseRetrieveDatabaseSchema: z.ZodObject<{
|
|
|
188
188
|
}, z.core.$strip>>;
|
|
189
189
|
icon: z.ZodUnion<[z.ZodObject<{
|
|
190
190
|
type: z.ZodEnum<{
|
|
191
|
-
external: "external";
|
|
192
191
|
file: "file";
|
|
192
|
+
external: "external";
|
|
193
193
|
}>;
|
|
194
194
|
name: z.ZodOptional<z.ZodString>;
|
|
195
195
|
file: z.ZodOptional<z.ZodObject<{
|
|
@@ -205,8 +205,8 @@ export declare const knowledgeBaseRetrieveDatabaseSchema: z.ZodObject<{
|
|
|
205
205
|
}, z.core.$strip>]>;
|
|
206
206
|
cover: z.ZodNullable<z.ZodObject<{
|
|
207
207
|
type: z.ZodEnum<{
|
|
208
|
-
external: "external";
|
|
209
208
|
file: "file";
|
|
209
|
+
external: "external";
|
|
210
210
|
}>;
|
|
211
211
|
name: z.ZodOptional<z.ZodString>;
|
|
212
212
|
file: z.ZodOptional<z.ZodObject<{
|
|
@@ -611,8 +611,8 @@ export declare const knowledgeBaseRetrievePageSchema: z.ZodObject<{
|
|
|
611
611
|
archived: z.ZodBoolean;
|
|
612
612
|
icon: z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
613
613
|
type: z.ZodEnum<{
|
|
614
|
-
external: "external";
|
|
615
614
|
file: "file";
|
|
615
|
+
external: "external";
|
|
616
616
|
}>;
|
|
617
617
|
name: z.ZodOptional<z.ZodString>;
|
|
618
618
|
file: z.ZodOptional<z.ZodObject<{
|
|
@@ -693,22 +693,22 @@ export declare const knowledgeBaseRetrievePageSchema: z.ZodObject<{
|
|
|
693
693
|
color: z.ZodEnum<{
|
|
694
694
|
default: "default";
|
|
695
695
|
blue: "blue";
|
|
696
|
-
brown: "brown";
|
|
697
|
-
gray: "gray";
|
|
698
|
-
green: "green";
|
|
699
|
-
orange: "orange";
|
|
700
|
-
pink: "pink";
|
|
701
|
-
purple: "purple";
|
|
702
|
-
red: "red";
|
|
703
|
-
yellow: "yellow";
|
|
704
696
|
blue_background: "blue_background";
|
|
697
|
+
brown: "brown";
|
|
705
698
|
brown_background: "brown_background";
|
|
699
|
+
gray: "gray";
|
|
706
700
|
gray_background: "gray_background";
|
|
701
|
+
green: "green";
|
|
707
702
|
green_background: "green_background";
|
|
703
|
+
orange: "orange";
|
|
708
704
|
orange_background: "orange_background";
|
|
705
|
+
pink: "pink";
|
|
709
706
|
pink_background: "pink_background";
|
|
707
|
+
purple: "purple";
|
|
710
708
|
purple_background: "purple_background";
|
|
709
|
+
red: "red";
|
|
711
710
|
red_background: "red_background";
|
|
711
|
+
yellow: "yellow";
|
|
712
712
|
yellow_background: "yellow_background";
|
|
713
713
|
}>;
|
|
714
714
|
}, z.core.$strip>;
|
|
@@ -785,22 +785,22 @@ export declare const knowledgeBaseRetrievePageSchema: z.ZodObject<{
|
|
|
785
785
|
color: z.ZodEnum<{
|
|
786
786
|
default: "default";
|
|
787
787
|
blue: "blue";
|
|
788
|
-
brown: "brown";
|
|
789
|
-
gray: "gray";
|
|
790
|
-
green: "green";
|
|
791
|
-
orange: "orange";
|
|
792
|
-
pink: "pink";
|
|
793
|
-
purple: "purple";
|
|
794
|
-
red: "red";
|
|
795
|
-
yellow: "yellow";
|
|
796
788
|
blue_background: "blue_background";
|
|
789
|
+
brown: "brown";
|
|
797
790
|
brown_background: "brown_background";
|
|
791
|
+
gray: "gray";
|
|
798
792
|
gray_background: "gray_background";
|
|
793
|
+
green: "green";
|
|
799
794
|
green_background: "green_background";
|
|
795
|
+
orange: "orange";
|
|
800
796
|
orange_background: "orange_background";
|
|
797
|
+
pink: "pink";
|
|
801
798
|
pink_background: "pink_background";
|
|
799
|
+
purple: "purple";
|
|
802
800
|
purple_background: "purple_background";
|
|
801
|
+
red: "red";
|
|
803
802
|
red_background: "red_background";
|
|
803
|
+
yellow: "yellow";
|
|
804
804
|
yellow_background: "yellow_background";
|
|
805
805
|
}>;
|
|
806
806
|
}, z.core.$strip>;
|
|
@@ -1123,8 +1123,8 @@ export declare const knowledgeBaseQueryDatabaseSchema: z.ZodObject<{
|
|
|
1123
1123
|
archived: z.ZodBoolean;
|
|
1124
1124
|
icon: z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
1125
1125
|
type: z.ZodEnum<{
|
|
1126
|
-
external: "external";
|
|
1127
1126
|
file: "file";
|
|
1127
|
+
external: "external";
|
|
1128
1128
|
}>;
|
|
1129
1129
|
name: z.ZodOptional<z.ZodString>;
|
|
1130
1130
|
file: z.ZodOptional<z.ZodObject<{
|
|
@@ -1205,22 +1205,22 @@ export declare const knowledgeBaseQueryDatabaseSchema: z.ZodObject<{
|
|
|
1205
1205
|
color: z.ZodEnum<{
|
|
1206
1206
|
default: "default";
|
|
1207
1207
|
blue: "blue";
|
|
1208
|
-
brown: "brown";
|
|
1209
|
-
gray: "gray";
|
|
1210
|
-
green: "green";
|
|
1211
|
-
orange: "orange";
|
|
1212
|
-
pink: "pink";
|
|
1213
|
-
purple: "purple";
|
|
1214
|
-
red: "red";
|
|
1215
|
-
yellow: "yellow";
|
|
1216
1208
|
blue_background: "blue_background";
|
|
1209
|
+
brown: "brown";
|
|
1217
1210
|
brown_background: "brown_background";
|
|
1211
|
+
gray: "gray";
|
|
1218
1212
|
gray_background: "gray_background";
|
|
1213
|
+
green: "green";
|
|
1219
1214
|
green_background: "green_background";
|
|
1215
|
+
orange: "orange";
|
|
1220
1216
|
orange_background: "orange_background";
|
|
1217
|
+
pink: "pink";
|
|
1221
1218
|
pink_background: "pink_background";
|
|
1219
|
+
purple: "purple";
|
|
1222
1220
|
purple_background: "purple_background";
|
|
1221
|
+
red: "red";
|
|
1223
1222
|
red_background: "red_background";
|
|
1223
|
+
yellow: "yellow";
|
|
1224
1224
|
yellow_background: "yellow_background";
|
|
1225
1225
|
}>;
|
|
1226
1226
|
}, z.core.$strip>;
|
|
@@ -58,8 +58,8 @@ export declare const notionPagePropertyEmailSchema: ZodObject<{
|
|
|
58
58
|
export declare const notionPagePropertyFilesSchema: ZodObject<{
|
|
59
59
|
files: z.ZodArray<ZodObject<{
|
|
60
60
|
type: z.ZodEnum<{
|
|
61
|
-
external: "external";
|
|
62
61
|
file: "file";
|
|
62
|
+
external: "external";
|
|
63
63
|
}>;
|
|
64
64
|
name: z.ZodOptional<z.ZodString>;
|
|
65
65
|
file: z.ZodOptional<ZodObject<{
|
|
@@ -231,8 +231,8 @@ export declare const notionPagePropertyRollupSchema: ZodObject<{
|
|
|
231
231
|
type: z.ZodEnum<{
|
|
232
232
|
number: "number";
|
|
233
233
|
date: "date";
|
|
234
|
-
incomplete: "incomplete";
|
|
235
234
|
array: "array";
|
|
235
|
+
incomplete: "incomplete";
|
|
236
236
|
unsupported: "unsupported";
|
|
237
237
|
}>;
|
|
238
238
|
}, z.core.$strip>;
|
|
@@ -306,22 +306,22 @@ export declare const notionPagePropertyRichTextSchema: ZodObject<{
|
|
|
306
306
|
color: z.ZodEnum<{
|
|
307
307
|
default: "default";
|
|
308
308
|
blue: "blue";
|
|
309
|
-
brown: "brown";
|
|
310
|
-
gray: "gray";
|
|
311
|
-
green: "green";
|
|
312
|
-
orange: "orange";
|
|
313
|
-
pink: "pink";
|
|
314
|
-
purple: "purple";
|
|
315
|
-
red: "red";
|
|
316
|
-
yellow: "yellow";
|
|
317
309
|
blue_background: "blue_background";
|
|
310
|
+
brown: "brown";
|
|
318
311
|
brown_background: "brown_background";
|
|
312
|
+
gray: "gray";
|
|
319
313
|
gray_background: "gray_background";
|
|
314
|
+
green: "green";
|
|
320
315
|
green_background: "green_background";
|
|
316
|
+
orange: "orange";
|
|
321
317
|
orange_background: "orange_background";
|
|
318
|
+
pink: "pink";
|
|
322
319
|
pink_background: "pink_background";
|
|
320
|
+
purple: "purple";
|
|
323
321
|
purple_background: "purple_background";
|
|
322
|
+
red: "red";
|
|
324
323
|
red_background: "red_background";
|
|
324
|
+
yellow: "yellow";
|
|
325
325
|
yellow_background: "yellow_background";
|
|
326
326
|
}>;
|
|
327
327
|
}, z.core.$strip>;
|
|
@@ -440,22 +440,22 @@ export declare const notionPagePropertyTitleSchema: ZodObject<{
|
|
|
440
440
|
color: z.ZodEnum<{
|
|
441
441
|
default: "default";
|
|
442
442
|
blue: "blue";
|
|
443
|
-
brown: "brown";
|
|
444
|
-
gray: "gray";
|
|
445
|
-
green: "green";
|
|
446
|
-
orange: "orange";
|
|
447
|
-
pink: "pink";
|
|
448
|
-
purple: "purple";
|
|
449
|
-
red: "red";
|
|
450
|
-
yellow: "yellow";
|
|
451
443
|
blue_background: "blue_background";
|
|
444
|
+
brown: "brown";
|
|
452
445
|
brown_background: "brown_background";
|
|
446
|
+
gray: "gray";
|
|
453
447
|
gray_background: "gray_background";
|
|
448
|
+
green: "green";
|
|
454
449
|
green_background: "green_background";
|
|
450
|
+
orange: "orange";
|
|
455
451
|
orange_background: "orange_background";
|
|
452
|
+
pink: "pink";
|
|
456
453
|
pink_background: "pink_background";
|
|
454
|
+
purple: "purple";
|
|
457
455
|
purple_background: "purple_background";
|
|
456
|
+
red: "red";
|
|
458
457
|
red_background: "red_background";
|
|
458
|
+
yellow: "yellow";
|
|
459
459
|
yellow_background: "yellow_background";
|
|
460
460
|
}>;
|
|
461
461
|
}, z.core.$strip>;
|
|
@@ -536,8 +536,8 @@ export declare const notionPageSchema: <T extends ZodObject<any>>(properties: T)
|
|
|
536
536
|
archived: z.ZodBoolean;
|
|
537
537
|
icon: z.ZodNullable<z.ZodUnion<[ZodObject<{
|
|
538
538
|
type: z.ZodEnum<{
|
|
539
|
-
external: "external";
|
|
540
539
|
file: "file";
|
|
540
|
+
external: "external";
|
|
541
541
|
}>;
|
|
542
542
|
name: z.ZodOptional<z.ZodString>;
|
|
543
543
|
file: z.ZodOptional<ZodObject<{
|
|
@@ -581,8 +581,8 @@ export declare const notionPagesSchema: <T extends ZodObject<any>>(properties: T
|
|
|
581
581
|
archived: z.ZodBoolean;
|
|
582
582
|
icon: z.ZodNullable<z.ZodUnion<[ZodObject<{
|
|
583
583
|
type: z.ZodEnum<{
|
|
584
|
-
external: "external";
|
|
585
584
|
file: "file";
|
|
585
|
+
external: "external";
|
|
586
586
|
}>;
|
|
587
587
|
name: z.ZodOptional<z.ZodString>;
|
|
588
588
|
file: z.ZodOptional<ZodObject<{
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type DisplayVehicle, type MileagePackage, type PlanType, type UltraTier, type Vehicle, type VehicleType } from '@driveflux/db';
|
|
2
2
|
export declare const fetchDisplayVehicle: (displayVehicle: DisplayVehicle | string) => Promise<{
|
|
3
3
|
object: import("@driveflux/db").DisplayVehicleObject;
|
|
4
|
+
type: VehicleType;
|
|
4
5
|
id: string;
|
|
5
6
|
createdAt: Date;
|
|
6
7
|
updatedAt: Date;
|
|
@@ -9,7 +10,6 @@ export declare const fetchDisplayVehicle: (displayVehicle: DisplayVehicle | stri
|
|
|
9
10
|
vehicleModel: string;
|
|
10
11
|
variant: string;
|
|
11
12
|
year: number;
|
|
12
|
-
type: VehicleType;
|
|
13
13
|
brandSlug: string;
|
|
14
14
|
brandId: string;
|
|
15
15
|
defaultHostId: string;
|
|
@@ -198,24 +198,24 @@ export declare const fetchDisplayVehicle: (displayVehicle: DisplayVehicle | stri
|
|
|
198
198
|
export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVehicle | string, selectedColor?: string) => Promise<({
|
|
199
199
|
host: {
|
|
200
200
|
object: import("@driveflux/db").HostObject;
|
|
201
|
+
type: import("@driveflux/db").HostType | null;
|
|
201
202
|
name: string;
|
|
203
|
+
email: string | null;
|
|
204
|
+
phoneNumber: string | null;
|
|
202
205
|
id: string;
|
|
203
|
-
metadata: PrismaJson.AnyMetadata | null;
|
|
204
206
|
createdAt: Date;
|
|
205
207
|
updatedAt: Date;
|
|
206
|
-
|
|
207
|
-
type: import("@driveflux/db").HostType | null;
|
|
208
|
-
active: boolean;
|
|
209
|
-
email: string | null;
|
|
210
|
-
phoneNumber: string | null;
|
|
208
|
+
metadata: PrismaJson.AnyMetadata | null;
|
|
211
209
|
race: import("@driveflux/db").Race | null;
|
|
212
210
|
emergencyContactName: string | null;
|
|
213
211
|
emergencyPhoneNumber: string | null;
|
|
214
212
|
companyName: string | null;
|
|
215
|
-
|
|
213
|
+
active: boolean;
|
|
216
214
|
sstNumber: string | null;
|
|
217
215
|
tinNumber: string | null;
|
|
218
216
|
commencementDate: Date | null;
|
|
217
|
+
registrationNumber: string | null;
|
|
218
|
+
faxNumber: string | null;
|
|
219
219
|
stripeAccountId: string | null;
|
|
220
220
|
isStripeConnected: boolean;
|
|
221
221
|
serviceCenterIds: string[];
|
|
@@ -275,11 +275,15 @@ export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVe
|
|
|
275
275
|
};
|
|
276
276
|
} & {
|
|
277
277
|
object: import("@driveflux/db").VehicleObject;
|
|
278
|
+
type: VehicleType;
|
|
278
279
|
id: string;
|
|
279
|
-
status: import("@driveflux/db").VehicleStatus;
|
|
280
|
-
metadata: PrismaJson.AnyMetadata | null;
|
|
281
280
|
createdAt: Date;
|
|
282
281
|
updatedAt: Date;
|
|
282
|
+
metadata: PrismaJson.AnyMetadata | null;
|
|
283
|
+
hostId: string;
|
|
284
|
+
status: import("@driveflux/db").VehicleStatus;
|
|
285
|
+
temporary: boolean;
|
|
286
|
+
registrationNumber: string | null;
|
|
283
287
|
make: string;
|
|
284
288
|
vehicleModel: string;
|
|
285
289
|
variant: string;
|
|
@@ -291,7 +295,6 @@ export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVe
|
|
|
291
295
|
lastSearchIndexedAt: Date | null;
|
|
292
296
|
registrationDate: Date | null;
|
|
293
297
|
mileage: number | null;
|
|
294
|
-
registrationNumber: string | null;
|
|
295
298
|
vin: string | null;
|
|
296
299
|
engineNumber: string | null;
|
|
297
300
|
availability: import("@driveflux/db").VehicleAvailablity | null;
|
|
@@ -306,8 +309,6 @@ export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVe
|
|
|
306
309
|
delistedAt: Date | null;
|
|
307
310
|
imagesNotActual: boolean;
|
|
308
311
|
imagesNotActualMessage: string | null;
|
|
309
|
-
hostId: string;
|
|
310
|
-
type: VehicleType;
|
|
311
312
|
allowedServiceCenterIds: string[];
|
|
312
313
|
displayVehicleId: string | null;
|
|
313
314
|
isHostConfirmed: boolean | null;
|
|
@@ -320,7 +321,6 @@ export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVe
|
|
|
320
321
|
featureOnLandingPage: boolean;
|
|
321
322
|
lastMileageRecordedAt: Date | null;
|
|
322
323
|
locationAvailability: string[];
|
|
323
|
-
temporary: boolean;
|
|
324
324
|
hotDeal: boolean | null;
|
|
325
325
|
activeSubscriptionId: string | null;
|
|
326
326
|
addresses: {
|
|
@@ -704,11 +704,15 @@ export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVe
|
|
|
704
704
|
}) | undefined>;
|
|
705
705
|
export declare const transfromVehicleDisplayToVehicle: (displayVehicle: DisplayVehicle | string, selectedColor: string) => Promise<({
|
|
706
706
|
object: import("@driveflux/db").VehicleObject;
|
|
707
|
+
type: VehicleType;
|
|
707
708
|
id: string;
|
|
708
|
-
status: import("@driveflux/db").VehicleStatus;
|
|
709
|
-
metadata: PrismaJson.AnyMetadata | null;
|
|
710
709
|
createdAt: Date;
|
|
711
710
|
updatedAt: Date;
|
|
711
|
+
metadata: PrismaJson.AnyMetadata | null;
|
|
712
|
+
hostId: string;
|
|
713
|
+
status: import("@driveflux/db").VehicleStatus;
|
|
714
|
+
temporary: boolean;
|
|
715
|
+
registrationNumber: string | null;
|
|
712
716
|
make: string;
|
|
713
717
|
vehicleModel: string;
|
|
714
718
|
variant: string;
|
|
@@ -720,7 +724,6 @@ export declare const transfromVehicleDisplayToVehicle: (displayVehicle: DisplayV
|
|
|
720
724
|
lastSearchIndexedAt: Date | null;
|
|
721
725
|
registrationDate: Date | null;
|
|
722
726
|
mileage: number | null;
|
|
723
|
-
registrationNumber: string | null;
|
|
724
727
|
vin: string | null;
|
|
725
728
|
engineNumber: string | null;
|
|
726
729
|
availability: import("@driveflux/db").VehicleAvailablity | null;
|
|
@@ -735,8 +738,6 @@ export declare const transfromVehicleDisplayToVehicle: (displayVehicle: DisplayV
|
|
|
735
738
|
delistedAt: Date | null;
|
|
736
739
|
imagesNotActual: boolean;
|
|
737
740
|
imagesNotActualMessage: string | null;
|
|
738
|
-
hostId: string;
|
|
739
|
-
type: VehicleType;
|
|
740
741
|
allowedServiceCenterIds: string[];
|
|
741
742
|
displayVehicleId: string | null;
|
|
742
743
|
isHostConfirmed: boolean | null;
|
|
@@ -749,7 +750,6 @@ export declare const transfromVehicleDisplayToVehicle: (displayVehicle: DisplayV
|
|
|
749
750
|
featureOnLandingPage: boolean;
|
|
750
751
|
lastMileageRecordedAt: Date | null;
|
|
751
752
|
locationAvailability: string[];
|
|
752
|
-
temporary: boolean;
|
|
753
753
|
hotDeal: boolean | null;
|
|
754
754
|
activeSubscriptionId: string | null;
|
|
755
755
|
addresses: {
|
package/dist/validation.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { type StandardResult } from '@driveflux/result';
|
|
2
|
-
import { type ZodArray, type ZodCodec, type ZodDate, type ZodEnum, type ZodError, type ZodNumber, type ZodUnion
|
|
2
|
+
import { z, type ZodArray, type ZodCodec, type ZodDate, type ZodEnum, type ZodError, type ZodNumber, type ZodUnion } from 'zod';
|
|
3
3
|
export declare const makeValidationErrorResult: (zodError: ZodError<unknown>) => StandardResult<never>;
|
|
4
|
-
export declare const getIdOrObjectValidation: <ObjectName extends string, ExtendObjectValidation extends z.ZodRawShape>(object: ObjectName, extendObjectValidation?: ExtendObjectValidation) => ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
4
|
+
export declare const getIdOrObjectValidation: <ObjectName extends string, ExtendObjectValidation extends z.ZodRawShape>(object: ObjectName, extendObjectValidation?: ExtendObjectValidation) => z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
5
5
|
object: z.ZodLiteral<ObjectName>;
|
|
6
6
|
}, z.core.$catchall<z.ZodAny>>]>;
|
|
7
7
|
export declare const nonEmptyStringValidator: z.ZodString;
|
|
8
|
-
export declare const metadataValidation: z.ZodObject<{}, z.core.$catchall<ZodUnion<readonly [z.ZodString, ZodNumber, z.ZodBoolean, ZodArray<z.ZodString>, ZodArray<ZodNumber>, ZodArray<z.ZodBoolean>, z.ZodNull, z.ZodUndefined]>>>;
|
|
8
|
+
export declare const metadataValidation: z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>, z.ZodNull, z.ZodUndefined]>>>;
|
|
9
9
|
export declare const addressValidation: z.ZodObject<{
|
|
10
10
|
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
11
11
|
coordinates: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12
|
-
lat: ZodNumber;
|
|
13
|
-
lng: ZodNumber;
|
|
12
|
+
lat: z.ZodNumber;
|
|
13
|
+
lng: z.ZodNumber;
|
|
14
14
|
}, z.core.$strip>>>;
|
|
15
15
|
street1: z.ZodString;
|
|
16
16
|
street2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -19,8 +19,8 @@ export declare const addressValidation: z.ZodObject<{
|
|
|
19
19
|
postalCode: z.ZodString;
|
|
20
20
|
country: z.ZodString;
|
|
21
21
|
}, z.core.$strip>;
|
|
22
|
-
export declare const getIsoDatetimeToDate: (dateValidation?: ZodDate) => ZodCodec<z.ZodString, ZodDate>;
|
|
23
|
-
export declare const dateValidation: ZodCodec<z.ZodString, ZodDate>;
|
|
22
|
+
export declare const getIsoDatetimeToDate: (dateValidation?: ZodDate) => z.ZodCodec<z.ZodString, z.ZodDate>;
|
|
23
|
+
export declare const dateValidation: z.ZodCodec<z.ZodString, z.ZodDate>;
|
|
24
24
|
export declare const enhancedImageValidation: z.ZodObject<{
|
|
25
25
|
default: z.ZodString;
|
|
26
26
|
blurBase64: z.ZodOptional<z.ZodString>;
|
|
@@ -30,7 +30,7 @@ export declare const enhancedImageValidation: z.ZodObject<{
|
|
|
30
30
|
large: z.ZodOptional<z.ZodString>;
|
|
31
31
|
description: z.ZodOptional<z.ZodString>;
|
|
32
32
|
}, z.core.$strip>;
|
|
33
|
-
export declare const getObjectValidation: <T extends string>(o: T) => z.ZodOptional<ZodEnum<{ [k_1 in T]: k_1; } extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never>>;
|
|
33
|
+
export declare const getObjectValidation: <T extends string>(o: T) => z.ZodOptional<z.ZodEnum<{ [k_1 in T]: k_1; } extends infer T_1 ? { [k in keyof T_1]: T_1[k]; } : never>>;
|
|
34
34
|
export declare const contactValidation: z.ZodObject<{
|
|
35
35
|
id: z.ZodString;
|
|
36
36
|
firstName: z.ZodString;
|
|
@@ -45,22 +45,23 @@ export declare const documentFileValidation: z.ZodObject<{
|
|
|
45
45
|
name: z.ZodString;
|
|
46
46
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
47
|
url: z.ZodString;
|
|
48
|
-
fileType: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<ZodEnum<{
|
|
49
|
-
image: "image";
|
|
48
|
+
fileType: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodEnum<{
|
|
50
49
|
jpg: "jpg";
|
|
51
50
|
jpeg: "jpeg";
|
|
52
51
|
png: "png";
|
|
53
52
|
pdf: "pdf";
|
|
53
|
+
image: "image";
|
|
54
54
|
}>>>;
|
|
55
55
|
mimeType: z.ZodOptional<z.ZodString>;
|
|
56
56
|
uploaded: z.ZodDefault<z.ZodBoolean>;
|
|
57
|
-
createdAt: z.ZodOptional<z.ZodNullable<ZodCodec<z.ZodString, ZodDate>>>;
|
|
58
|
-
updatedAt: z.ZodOptional<z.ZodNullable<ZodCodec<z.ZodString, ZodDate>>>;
|
|
59
|
-
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$catchall<ZodUnion<readonly [z.ZodString, ZodNumber, z.ZodBoolean, ZodArray<z.ZodString>, ZodArray<ZodNumber>, ZodArray<z.ZodBoolean>, z.ZodNull, z.ZodUndefined]>>>>>;
|
|
57
|
+
createdAt: z.ZodOptional<z.ZodNullable<z.ZodCodec<z.ZodString, z.ZodDate>>>;
|
|
58
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodCodec<z.ZodString, z.ZodDate>>>;
|
|
59
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$catchall<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodNumber>, z.ZodArray<z.ZodBoolean>, z.ZodNull, z.ZodUndefined]>>>>>;
|
|
60
60
|
}, z.core.$strip>;
|
|
61
|
-
export declare const queryBooleanValidator: ZodCodec<z.ZodString, z.ZodBoolean>;
|
|
62
|
-
export declare const getStringToNumberValidator: (numberValidation?: ZodNumber) => ZodCodec<z.ZodString, ZodNumber>;
|
|
63
|
-
export declare const queryNumberValidator: ZodCodec<z.ZodString, ZodNumber>;
|
|
61
|
+
export declare const queryBooleanValidator: z.ZodCodec<z.ZodString, z.ZodBoolean>;
|
|
62
|
+
export declare const getStringToNumberValidator: (numberValidation?: ZodNumber) => z.ZodCodec<z.ZodString, z.ZodNumber>;
|
|
63
|
+
export declare const queryNumberValidator: z.ZodCodec<z.ZodString, z.ZodNumber>;
|
|
64
|
+
export declare const queryStringArrayValidator: z.ZodUnion<[z.ZodCodec<z.ZodString, z.ZodArray<z.ZodString>>, z.ZodArray<z.ZodString>]>;
|
|
64
65
|
export declare function queryEnumArrayValidator<const T extends readonly string[]>(enumValue: T): ZodUnion<[
|
|
65
66
|
ZodCodec<z.ZodString, ZodArray<ZodEnum<z.util.ToEnum<T[number]>>>>,
|
|
66
67
|
ZodArray<ZodEnum<z.util.ToEnum<T[number]>>>
|
package/dist/validation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EACN,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,QAAQ,EAEb,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EACN,CAAC,EACD,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,OAAO,EACZ,KAAK,OAAO,EACZ,KAAK,QAAQ,EAEb,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,MAAM,KAAK,CAAA;AAEZ,eAAO,MAAM,yBAAyB,GACrC,UAAU,QAAQ,CAAC,OAAO,CAAC,KACzB,cAAc,CAAC,KAAK,CAatB,CAAA;AAED,eAAO,MAAM,uBAAuB,GACnC,UAAU,SAAS,MAAM,EACzB,sBAAsB,SAAS,CAAC,CAAC,WAAW,EAE5C,QAAQ,UAAU,EAClB,yBAAyB,sBAAsB;;gCAiB9C,CAAA;AAEF,eAAO,MAAM,uBAAuB,aAAoB,CAAA;AAExD,eAAO,MAAM,kBAAkB,yMAa7B,CAAA;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;iBAe5B,CAAA;AAEF,eAAO,MAAM,oBAAoB,GAAI,iBAAiB,OAAO,uCAe1D,CAAA;AAEH,eAAO,MAAM,cAAc,oCAAyB,CAAA;AAEpD,eAAO,MAAM,uBAAuB;;;;;;;;iBAQlC,CAAA;AAEF,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,MAAM,EAAE,GAAG,CAAC,6GACnC,CAAA;AAEvB,eAAO,MAAM,iBAAiB;QACW,CAAC,CAAC,SAAS;;;;;;;iBAWlD,CAAA;AAEF,eAAO,MAAM,sBAAsB;QACM,CAAC,CAAC,SAAS;;;;;;;;;;;;;;;;iBAalD,CAAA;AAEF,eAAO,MAAM,qBAAqB,uCAGhC,CAAA;AAEF,eAAO,MAAM,0BAA0B,GAAI,mBAAmB,SAAS,yCAIpE,CAAA;AACH,eAAO,MAAM,oBAAoB,sCAA+B,CAAA;AAEhE,eAAO,MAAM,yBAAyB,yFAKb,CAAA;AAEzB,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,CAAC,SAAS,SAAS,MAAM,EAAE,EACxE,SAAS,EAAE,CAAC,GACV,QAAQ,CACV;IACC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IAClE,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;CAC3C,CACD,CAAA;AACD,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,QAAQ,EACtE,OAAO,EAAE,CAAC,GACR,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;AAChF,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,QAAQ,EACtE,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,GACpB,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA"}
|
package/dist/validation.js
CHANGED
|
@@ -118,6 +118,10 @@ export const getStringToNumberValidator = (numberValidation)=>z.codec(z.string()
|
|
|
118
118
|
encode: (num)=>num.toString()
|
|
119
119
|
});
|
|
120
120
|
export const queryNumberValidator = getStringToNumberValidator();
|
|
121
|
+
export const queryStringArrayValidator = z.codec(z.string(), z.array(z.string()), {
|
|
122
|
+
encode: (value)=>value.join(','),
|
|
123
|
+
decode: (value)=>value.split(',')
|
|
124
|
+
}).or(z.array(z.string()));
|
|
121
125
|
export function queryEnumArrayValidator(enumOrValidation) {
|
|
122
126
|
// Handle ZodEnum case
|
|
123
127
|
if (enumOrValidation && typeof enumOrValidation === 'object' && '_zod' in enumOrValidation) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@driveflux/api-functions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.145",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./notion": {
|
|
@@ -73,23 +73,23 @@
|
|
|
73
73
|
],
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@casl/ability": "^6.7.3",
|
|
76
|
-
"@driveflux/auth": "4.0.
|
|
77
|
-
"@driveflux/billing": "8.1.
|
|
76
|
+
"@driveflux/auth": "4.0.84",
|
|
77
|
+
"@driveflux/billing": "8.1.5",
|
|
78
78
|
"@driveflux/config": "3.0.9",
|
|
79
|
-
"@driveflux/coupon": "9.1.
|
|
80
|
-
"@driveflux/db": "4.1.
|
|
81
|
-
"@driveflux/email": "7.1.
|
|
82
|
-
"@driveflux/email-templates": "1.2.
|
|
83
|
-
"@driveflux/engine": "1.1.
|
|
79
|
+
"@driveflux/coupon": "9.1.18",
|
|
80
|
+
"@driveflux/db": "4.1.17",
|
|
81
|
+
"@driveflux/email": "7.1.18",
|
|
82
|
+
"@driveflux/email-templates": "1.2.18",
|
|
83
|
+
"@driveflux/engine": "1.1.36",
|
|
84
84
|
"@driveflux/fetch": "8.0.1",
|
|
85
85
|
"@driveflux/format-money": "7.0.0",
|
|
86
86
|
"@driveflux/logger": "1.1.3",
|
|
87
87
|
"@driveflux/problem": "6.0.1",
|
|
88
88
|
"@driveflux/reporter": "7.0.2",
|
|
89
89
|
"@driveflux/result": "6.0.1",
|
|
90
|
-
"@driveflux/scheduler": "8.1.
|
|
90
|
+
"@driveflux/scheduler": "8.1.18",
|
|
91
91
|
"@driveflux/singleton": "3.0.0",
|
|
92
|
-
"@driveflux/subscription": "9.1.
|
|
92
|
+
"@driveflux/subscription": "9.1.8",
|
|
93
93
|
"@driveflux/time": "6.0.2",
|
|
94
94
|
"@driveflux/utils": "6.0.0",
|
|
95
95
|
"@notionhq/client": "^5.3.0",
|