@driveflux/api-functions 1.0.112 → 1.0.114
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/register.d.ts +1 -1
- package/dist/auth/tokens.d.ts +12 -12
- package/dist/reservation/display-vehicle.d.ts +5 -5
- package/package.json +12 -12
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-phone": "verify-phone";
|
|
25
24
|
"verify-email": "verify-email";
|
|
25
|
+
"verify-phone": "verify-phone";
|
|
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/register.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ export declare const RegistrationValidation: z.ZodObject<{
|
|
|
11
11
|
lastName: z.ZodString;
|
|
12
12
|
phoneNumber: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
13
13
|
authMethod: z.ZodEnum<{
|
|
14
|
-
mobile: "mobile";
|
|
15
14
|
email: "email";
|
|
15
|
+
mobile: "mobile";
|
|
16
16
|
facebook: "facebook";
|
|
17
17
|
google: "google";
|
|
18
18
|
apple: "apple";
|
package/dist/auth/tokens.d.ts
CHANGED
|
@@ -10,50 +10,50 @@ type VerifyTokenOptions = {
|
|
|
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
12
|
id: string;
|
|
13
|
+
metadata: PrismaJson.AnyMetadata | null;
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
updatedAt: Date;
|
|
13
16
|
value: string | null;
|
|
14
|
-
client: string | null;
|
|
15
17
|
userId: string | null;
|
|
18
|
+
client: string | null;
|
|
16
19
|
identifier: string | null;
|
|
17
20
|
expiresAt: Date | null;
|
|
18
21
|
redirectUrl: string | null;
|
|
19
22
|
scope: string | null;
|
|
20
23
|
invalid: boolean;
|
|
21
24
|
lastUsed: Date | null;
|
|
22
|
-
createdAt: Date;
|
|
23
|
-
updatedAt: Date;
|
|
24
|
-
metadata: PrismaJson.AnyMetadata | null;
|
|
25
25
|
} | undefined>;
|
|
26
26
|
export declare const createEmailToken: (userId: string, email: string) => Promise<{
|
|
27
27
|
object: import("@driveflux/db").TokenObject;
|
|
28
28
|
id: string;
|
|
29
|
+
metadata: PrismaJson.AnyMetadata | null;
|
|
30
|
+
createdAt: Date;
|
|
31
|
+
updatedAt: Date;
|
|
29
32
|
value: string | null;
|
|
30
|
-
client: string | null;
|
|
31
33
|
userId: string | null;
|
|
34
|
+
client: string | null;
|
|
32
35
|
identifier: string | null;
|
|
33
36
|
expiresAt: Date | null;
|
|
34
37
|
redirectUrl: string | null;
|
|
35
38
|
scope: string | null;
|
|
36
39
|
invalid: boolean;
|
|
37
40
|
lastUsed: Date | null;
|
|
38
|
-
createdAt: Date;
|
|
39
|
-
updatedAt: Date;
|
|
40
|
-
metadata: PrismaJson.AnyMetadata | null;
|
|
41
41
|
} | undefined>;
|
|
42
42
|
export declare const createSMSToken: (userId: string | null, phoneNumber: string) => Promise<{
|
|
43
43
|
object: import("@driveflux/db").TokenObject;
|
|
44
44
|
id: string;
|
|
45
|
+
metadata: PrismaJson.AnyMetadata | null;
|
|
46
|
+
createdAt: Date;
|
|
47
|
+
updatedAt: Date;
|
|
45
48
|
value: string | null;
|
|
46
|
-
client: string | null;
|
|
47
49
|
userId: string | null;
|
|
50
|
+
client: string | null;
|
|
48
51
|
identifier: string | null;
|
|
49
52
|
expiresAt: Date | null;
|
|
50
53
|
redirectUrl: string | null;
|
|
51
54
|
scope: string | null;
|
|
52
55
|
invalid: boolean;
|
|
53
56
|
lastUsed: Date | null;
|
|
54
|
-
createdAt: Date;
|
|
55
|
-
updatedAt: Date;
|
|
56
|
-
metadata: PrismaJson.AnyMetadata | null;
|
|
57
57
|
} | undefined>;
|
|
58
58
|
export declare const verifyToken: (tokenIdOrValue: string | TokenWithMaybeUser, verifications?: Verifications, option?: VerifyTokenOptions) => PromisedResult<TokenWithMaybeUser>;
|
|
59
59
|
export declare const clearToken: (tokenId: string) => Promise<void>;
|
|
@@ -199,13 +199,13 @@ export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVe
|
|
|
199
199
|
host: {
|
|
200
200
|
object: import("@driveflux/db").HostObject;
|
|
201
201
|
phoneNumber: string | null;
|
|
202
|
-
email: string | null;
|
|
203
202
|
type: import("@driveflux/db").HostType | null;
|
|
204
|
-
name: string;
|
|
205
203
|
id: string;
|
|
204
|
+
metadata: PrismaJson.AnyMetadata | null;
|
|
205
|
+
name: string;
|
|
206
206
|
createdAt: Date;
|
|
207
207
|
updatedAt: Date;
|
|
208
|
-
|
|
208
|
+
email: string | null;
|
|
209
209
|
race: import("@driveflux/db").Race | null;
|
|
210
210
|
emergencyContactName: string | null;
|
|
211
211
|
emergencyPhoneNumber: string | null;
|
|
@@ -277,9 +277,9 @@ export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVe
|
|
|
277
277
|
object: import("@driveflux/db").VehicleObject;
|
|
278
278
|
type: VehicleType;
|
|
279
279
|
id: string;
|
|
280
|
+
metadata: PrismaJson.AnyMetadata | null;
|
|
280
281
|
createdAt: Date;
|
|
281
282
|
updatedAt: Date;
|
|
282
|
-
metadata: PrismaJson.AnyMetadata | null;
|
|
283
283
|
hostId: string;
|
|
284
284
|
status: import("@driveflux/db").VehicleStatus;
|
|
285
285
|
temporary: boolean;
|
|
@@ -704,9 +704,9 @@ export declare const transfromVehicleDisplayToVehicle: (displayVehicle: DisplayV
|
|
|
704
704
|
object: import("@driveflux/db").VehicleObject;
|
|
705
705
|
type: VehicleType;
|
|
706
706
|
id: string;
|
|
707
|
+
metadata: PrismaJson.AnyMetadata | null;
|
|
707
708
|
createdAt: Date;
|
|
708
709
|
updatedAt: Date;
|
|
709
|
-
metadata: PrismaJson.AnyMetadata | null;
|
|
710
710
|
hostId: string;
|
|
711
711
|
status: import("@driveflux/db").VehicleStatus;
|
|
712
712
|
temporary: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@driveflux/api-functions",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.114",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./notion": {
|
|
@@ -73,21 +73,21 @@
|
|
|
73
73
|
],
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@casl/ability": "^6.7.3",
|
|
76
|
-
"@driveflux/auth": "4.0.
|
|
76
|
+
"@driveflux/auth": "4.0.61",
|
|
77
77
|
"@driveflux/billing": "8.0.12",
|
|
78
78
|
"@driveflux/config": "3.0.8",
|
|
79
|
-
"@driveflux/coupon": "9.0.
|
|
80
|
-
"@driveflux/db": "4.0.
|
|
81
|
-
"@driveflux/email": "7.0.
|
|
82
|
-
"@driveflux/email-templates": "1.1.
|
|
83
|
-
"@driveflux/engine": "1.0.
|
|
84
|
-
"@driveflux/fetch": "8.0.
|
|
79
|
+
"@driveflux/coupon": "9.0.40",
|
|
80
|
+
"@driveflux/db": "4.0.35",
|
|
81
|
+
"@driveflux/email": "7.0.36",
|
|
82
|
+
"@driveflux/email-templates": "1.1.8",
|
|
83
|
+
"@driveflux/engine": "1.0.101",
|
|
84
|
+
"@driveflux/fetch": "8.0.1",
|
|
85
85
|
"@driveflux/format-money": "7.0.0",
|
|
86
86
|
"@driveflux/logger": "1.0.1",
|
|
87
|
-
"@driveflux/problem": "6.0.
|
|
88
|
-
"@driveflux/reporter": "7.0.
|
|
89
|
-
"@driveflux/result": "6.0.
|
|
90
|
-
"@driveflux/scheduler": "8.0.
|
|
87
|
+
"@driveflux/problem": "6.0.1",
|
|
88
|
+
"@driveflux/reporter": "7.0.2",
|
|
89
|
+
"@driveflux/result": "6.0.1",
|
|
90
|
+
"@driveflux/scheduler": "8.0.40",
|
|
91
91
|
"@driveflux/singleton": "3.0.0",
|
|
92
92
|
"@driveflux/subscription": "9.0.18",
|
|
93
93
|
"@driveflux/time": "6.0.2",
|