@driveflux/api-functions 1.0.137 → 1.0.139
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/tokens.d.ts
CHANGED
|
@@ -13,8 +13,8 @@ export declare const createToken: (userId: string | null, type: "email" | "phone
|
|
|
13
13
|
metadata: PrismaJson.AnyMetadata | null;
|
|
14
14
|
createdAt: Date;
|
|
15
15
|
updatedAt: Date;
|
|
16
|
-
value: string | null;
|
|
17
16
|
userId: string | null;
|
|
17
|
+
value: string | null;
|
|
18
18
|
client: string | null;
|
|
19
19
|
identifier: string | null;
|
|
20
20
|
expiresAt: Date | null;
|
|
@@ -29,8 +29,8 @@ export declare const createEmailToken: (userId: string, email: string) => Promis
|
|
|
29
29
|
metadata: PrismaJson.AnyMetadata | null;
|
|
30
30
|
createdAt: Date;
|
|
31
31
|
updatedAt: Date;
|
|
32
|
-
value: string | null;
|
|
33
32
|
userId: string | null;
|
|
33
|
+
value: string | null;
|
|
34
34
|
client: string | null;
|
|
35
35
|
identifier: string | null;
|
|
36
36
|
expiresAt: Date | null;
|
|
@@ -45,8 +45,8 @@ export declare const createSMSToken: (userId: string | null, phoneNumber: string
|
|
|
45
45
|
metadata: PrismaJson.AnyMetadata | null;
|
|
46
46
|
createdAt: Date;
|
|
47
47
|
updatedAt: Date;
|
|
48
|
-
value: string | null;
|
|
49
48
|
userId: string | null;
|
|
49
|
+
value: string | null;
|
|
50
50
|
client: string | null;
|
|
51
51
|
identifier: string | null;
|
|
52
52
|
expiresAt: Date | null;
|
|
@@ -190,8 +190,8 @@ export declare const notionDatabasePropertyRollupSchema: ZodObject<{
|
|
|
190
190
|
type: z.ZodEnum<{
|
|
191
191
|
number: "number";
|
|
192
192
|
date: "date";
|
|
193
|
-
array: "array";
|
|
194
193
|
incomplete: "incomplete";
|
|
194
|
+
array: "array";
|
|
195
195
|
unsupported: "unsupported";
|
|
196
196
|
}>;
|
|
197
197
|
}, 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
|
-
file: "file";
|
|
479
478
|
external: "external";
|
|
479
|
+
file: "file";
|
|
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
|
-
file: "file";
|
|
496
495
|
external: "external";
|
|
496
|
+
file: "file";
|
|
497
497
|
}>;
|
|
498
498
|
name: z.ZodOptional<z.ZodString>;
|
|
499
499
|
file: z.ZodOptional<ZodObject<{
|
|
@@ -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
|
-
file: "file";
|
|
192
191
|
external: "external";
|
|
192
|
+
file: "file";
|
|
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
|
-
file: "file";
|
|
209
208
|
external: "external";
|
|
209
|
+
file: "file";
|
|
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
|
-
file: "file";
|
|
615
614
|
external: "external";
|
|
615
|
+
file: "file";
|
|
616
616
|
}>;
|
|
617
617
|
name: z.ZodOptional<z.ZodString>;
|
|
618
618
|
file: z.ZodOptional<z.ZodObject<{
|
|
@@ -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
|
-
file: "file";
|
|
1127
1126
|
external: "external";
|
|
1127
|
+
file: "file";
|
|
1128
1128
|
}>;
|
|
1129
1129
|
name: z.ZodOptional<z.ZodString>;
|
|
1130
1130
|
file: z.ZodOptional<z.ZodObject<{
|
|
@@ -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
|
-
file: "file";
|
|
62
61
|
external: "external";
|
|
62
|
+
file: "file";
|
|
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
|
-
array: "array";
|
|
235
234
|
incomplete: "incomplete";
|
|
235
|
+
array: "array";
|
|
236
236
|
unsupported: "unsupported";
|
|
237
237
|
}>;
|
|
238
238
|
}, 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
|
-
file: "file";
|
|
540
539
|
external: "external";
|
|
540
|
+
file: "file";
|
|
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
|
-
file: "file";
|
|
585
584
|
external: "external";
|
|
585
|
+
file: "file";
|
|
586
586
|
}>;
|
|
587
587
|
name: z.ZodOptional<z.ZodString>;
|
|
588
588
|
file: z.ZodOptional<ZodObject<{
|
|
@@ -1,7 +1,6 @@
|
|
|
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;
|
|
5
4
|
id: string;
|
|
6
5
|
createdAt: Date;
|
|
7
6
|
updatedAt: Date;
|
|
@@ -10,6 +9,7 @@ export declare const fetchDisplayVehicle: (displayVehicle: DisplayVehicle | stri
|
|
|
10
9
|
vehicleModel: string;
|
|
11
10
|
variant: string;
|
|
12
11
|
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
|
-
|
|
202
|
-
type: import("@driveflux/db").HostType | null;
|
|
201
|
+
name: string;
|
|
203
202
|
id: string;
|
|
204
203
|
metadata: PrismaJson.AnyMetadata | null;
|
|
205
|
-
name: string;
|
|
206
204
|
createdAt: Date;
|
|
207
205
|
updatedAt: Date;
|
|
206
|
+
registrationNumber: string | null;
|
|
207
|
+
type: import("@driveflux/db").HostType | null;
|
|
208
|
+
active: boolean;
|
|
208
209
|
email: string | null;
|
|
210
|
+
phoneNumber: string | null;
|
|
209
211
|
race: import("@driveflux/db").Race | null;
|
|
210
212
|
emergencyContactName: string | null;
|
|
211
213
|
emergencyPhoneNumber: string | null;
|
|
212
214
|
companyName: string | null;
|
|
213
|
-
|
|
215
|
+
faxNumber: string | null;
|
|
214
216
|
sstNumber: string | null;
|
|
215
217
|
tinNumber: string | null;
|
|
216
218
|
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,15 +275,11 @@ export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVe
|
|
|
275
275
|
};
|
|
276
276
|
} & {
|
|
277
277
|
object: import("@driveflux/db").VehicleObject;
|
|
278
|
-
type: VehicleType;
|
|
279
278
|
id: string;
|
|
279
|
+
status: import("@driveflux/db").VehicleStatus;
|
|
280
280
|
metadata: PrismaJson.AnyMetadata | null;
|
|
281
281
|
createdAt: Date;
|
|
282
282
|
updatedAt: Date;
|
|
283
|
-
hostId: string;
|
|
284
|
-
status: import("@driveflux/db").VehicleStatus;
|
|
285
|
-
temporary: boolean;
|
|
286
|
-
registrationNumber: string | null;
|
|
287
283
|
make: string;
|
|
288
284
|
vehicleModel: string;
|
|
289
285
|
variant: string;
|
|
@@ -295,6 +291,7 @@ export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVe
|
|
|
295
291
|
lastSearchIndexedAt: Date | null;
|
|
296
292
|
registrationDate: Date | null;
|
|
297
293
|
mileage: number | null;
|
|
294
|
+
registrationNumber: string | null;
|
|
298
295
|
vin: string | null;
|
|
299
296
|
engineNumber: string | null;
|
|
300
297
|
availability: import("@driveflux/db").VehicleAvailablity | null;
|
|
@@ -309,6 +306,8 @@ export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVe
|
|
|
309
306
|
delistedAt: Date | null;
|
|
310
307
|
imagesNotActual: boolean;
|
|
311
308
|
imagesNotActualMessage: string | null;
|
|
309
|
+
hostId: string;
|
|
310
|
+
type: VehicleType;
|
|
312
311
|
allowedServiceCenterIds: string[];
|
|
313
312
|
displayVehicleId: string | null;
|
|
314
313
|
isHostConfirmed: boolean | null;
|
|
@@ -321,6 +320,7 @@ export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVe
|
|
|
321
320
|
featureOnLandingPage: boolean;
|
|
322
321
|
lastMileageRecordedAt: Date | null;
|
|
323
322
|
locationAvailability: string[];
|
|
323
|
+
temporary: boolean;
|
|
324
324
|
hotDeal: boolean | null;
|
|
325
325
|
activeSubscriptionId: string | null;
|
|
326
326
|
addresses: {
|
|
@@ -704,15 +704,11 @@ 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;
|
|
708
707
|
id: string;
|
|
708
|
+
status: import("@driveflux/db").VehicleStatus;
|
|
709
709
|
metadata: PrismaJson.AnyMetadata | null;
|
|
710
710
|
createdAt: Date;
|
|
711
711
|
updatedAt: Date;
|
|
712
|
-
hostId: string;
|
|
713
|
-
status: import("@driveflux/db").VehicleStatus;
|
|
714
|
-
temporary: boolean;
|
|
715
|
-
registrationNumber: string | null;
|
|
716
712
|
make: string;
|
|
717
713
|
vehicleModel: string;
|
|
718
714
|
variant: string;
|
|
@@ -724,6 +720,7 @@ export declare const transfromVehicleDisplayToVehicle: (displayVehicle: DisplayV
|
|
|
724
720
|
lastSearchIndexedAt: Date | null;
|
|
725
721
|
registrationDate: Date | null;
|
|
726
722
|
mileage: number | null;
|
|
723
|
+
registrationNumber: string | null;
|
|
727
724
|
vin: string | null;
|
|
728
725
|
engineNumber: string | null;
|
|
729
726
|
availability: import("@driveflux/db").VehicleAvailablity | null;
|
|
@@ -738,6 +735,8 @@ export declare const transfromVehicleDisplayToVehicle: (displayVehicle: DisplayV
|
|
|
738
735
|
delistedAt: Date | null;
|
|
739
736
|
imagesNotActual: boolean;
|
|
740
737
|
imagesNotActualMessage: string | null;
|
|
738
|
+
hostId: string;
|
|
739
|
+
type: VehicleType;
|
|
741
740
|
allowedServiceCenterIds: string[];
|
|
742
741
|
displayVehicleId: string | null;
|
|
743
742
|
isHostConfirmed: boolean | null;
|
|
@@ -750,6 +749,7 @@ export declare const transfromVehicleDisplayToVehicle: (displayVehicle: DisplayV
|
|
|
750
749
|
featureOnLandingPage: boolean;
|
|
751
750
|
lastMileageRecordedAt: Date | null;
|
|
752
751
|
locationAvailability: string[];
|
|
752
|
+
temporary: boolean;
|
|
753
753
|
hotDeal: boolean | null;
|
|
754
754
|
activeSubscriptionId: string | null;
|
|
755
755
|
addresses: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@driveflux/api-functions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.139",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./notion": {
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
],
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@casl/ability": "^6.7.3",
|
|
76
|
-
"@driveflux/auth": "4.0.
|
|
76
|
+
"@driveflux/auth": "4.0.80",
|
|
77
77
|
"@driveflux/billing": "8.1.4",
|
|
78
78
|
"@driveflux/config": "3.0.9",
|
|
79
79
|
"@driveflux/coupon": "9.1.9",
|