@driveflux/api-functions 1.0.39 → 1.0.41

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.
@@ -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>;
@@ -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>;
@@ -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;
@@ -9,6 +8,7 @@ export declare const fetchDisplayVehicle: (displayVehicle: DisplayVehicle | stri
9
8
  vehicleModel: string;
10
9
  variant: string;
11
10
  year: number;
11
+ type: VehicleType;
12
12
  brandSlug: string;
13
13
  brandId: string;
14
14
  defaultHostId: string;
@@ -191,20 +191,20 @@ export declare const fetchDisplayVehicle: (displayVehicle: DisplayVehicle | stri
191
191
  export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVehicle | string, selectedColor?: string) => Promise<({
192
192
  host: {
193
193
  object: import("@driveflux/db").HostObject;
194
- phoneNumber: string | null;
195
- type: import("@driveflux/db").HostType | null;
194
+ name: string;
196
195
  id: string;
197
196
  metadata: PrismaJson.AnyMetadata | null;
198
- name: string;
199
197
  createdAt: Date;
200
198
  updatedAt: Date;
199
+ registrationNumber: string | null;
200
+ type: import("@driveflux/db").HostType | null;
201
+ active: boolean;
201
202
  email: string | null;
203
+ phoneNumber: string | null;
202
204
  race: import("@driveflux/db").Race | null;
203
205
  emergencyContactName: string | null;
204
206
  emergencyPhoneNumber: string | null;
205
- active: boolean;
206
207
  commencementDate: Date | null;
207
- registrationNumber: string | null;
208
208
  stripeAccountId: string | null;
209
209
  isStripeConnected: boolean;
210
210
  serviceCenterIds: string[];
@@ -262,15 +262,11 @@ export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVe
262
262
  };
263
263
  } & {
264
264
  object: import("@driveflux/db").VehicleObject;
265
- type: VehicleType;
266
265
  id: string;
266
+ status: import("@driveflux/db").VehicleStatus;
267
267
  metadata: PrismaJson.AnyMetadata | null;
268
268
  createdAt: Date;
269
269
  updatedAt: Date;
270
- status: import("@driveflux/db").VehicleStatus;
271
- temporary: boolean;
272
- registrationNumber: string | null;
273
- hostId: string;
274
270
  make: string;
275
271
  vehicleModel: string;
276
272
  variant: string;
@@ -280,6 +276,7 @@ export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVe
280
276
  compositeSearchScore: number;
281
277
  registrationDate: Date | null;
282
278
  mileage: number | null;
279
+ registrationNumber: string | null;
283
280
  vin: string | null;
284
281
  engineNumber: string | null;
285
282
  availability: import("@driveflux/db").VehicleAvailablity | null;
@@ -294,6 +291,8 @@ export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVe
294
291
  delistedAt: Date | null;
295
292
  imagesNotActual: boolean;
296
293
  imagesNotActualMessage: string | null;
294
+ hostId: string;
295
+ type: VehicleType;
297
296
  allowedServiceCenterIds: string[];
298
297
  displayVehicleId: string | null;
299
298
  isHostConfirmed: boolean | null;
@@ -306,6 +305,7 @@ export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVe
306
305
  featureOnLandingPage: boolean;
307
306
  lastMileageRecordedAt: Date | null;
308
307
  locationAvailability: string[];
308
+ temporary: boolean;
309
309
  hotDeal: boolean | null;
310
310
  activeSubscriptionId: string | null;
311
311
  addresses: {
@@ -689,15 +689,11 @@ export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVe
689
689
  }) | undefined>;
690
690
  export declare const transfromVehicleDisplayToVehicle: (displayVehicle: DisplayVehicle | string, selectedColor: string) => Promise<({
691
691
  object: import("@driveflux/db").VehicleObject;
692
- type: VehicleType;
693
692
  id: string;
693
+ status: import("@driveflux/db").VehicleStatus;
694
694
  metadata: PrismaJson.AnyMetadata | null;
695
695
  createdAt: Date;
696
696
  updatedAt: Date;
697
- status: import("@driveflux/db").VehicleStatus;
698
- temporary: boolean;
699
- registrationNumber: string | null;
700
- hostId: string;
701
697
  make: string;
702
698
  vehicleModel: string;
703
699
  variant: string;
@@ -707,6 +703,7 @@ export declare const transfromVehicleDisplayToVehicle: (displayVehicle: DisplayV
707
703
  compositeSearchScore: number;
708
704
  registrationDate: Date | null;
709
705
  mileage: number | null;
706
+ registrationNumber: string | null;
710
707
  vin: string | null;
711
708
  engineNumber: string | null;
712
709
  availability: import("@driveflux/db").VehicleAvailablity | null;
@@ -721,6 +718,8 @@ export declare const transfromVehicleDisplayToVehicle: (displayVehicle: DisplayV
721
718
  delistedAt: Date | null;
722
719
  imagesNotActual: boolean;
723
720
  imagesNotActualMessage: string | null;
721
+ hostId: string;
722
+ type: VehicleType;
724
723
  allowedServiceCenterIds: string[];
725
724
  displayVehicleId: string | null;
726
725
  isHostConfirmed: boolean | null;
@@ -733,6 +732,7 @@ export declare const transfromVehicleDisplayToVehicle: (displayVehicle: DisplayV
733
732
  featureOnLandingPage: boolean;
734
733
  lastMileageRecordedAt: Date | null;
735
734
  locationAvailability: string[];
735
+ temporary: boolean;
736
736
  hotDeal: boolean | null;
737
737
  activeSubscriptionId: string | null;
738
738
  addresses: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@driveflux/api-functions",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./notion": {
@@ -73,20 +73,20 @@
73
73
  ],
74
74
  "dependencies": {
75
75
  "@casl/ability": "^6.7.3",
76
- "@driveflux/auth": "4.0.30",
77
- "@driveflux/billing": "8.0.0",
76
+ "@driveflux/auth": "4.0.32",
77
+ "@driveflux/billing": "8.0.2",
78
78
  "@driveflux/config": "3.0.3",
79
- "@driveflux/coupon": "9.0.0",
80
- "@driveflux/db": "4.0.0",
81
- "@driveflux/email": "7.0.0",
82
- "@driveflux/email-templates": "1.0.0",
83
- "@driveflux/engine": "1.0.1",
79
+ "@driveflux/coupon": "9.0.2",
80
+ "@driveflux/db": "4.0.2",
81
+ "@driveflux/email": "7.0.2",
82
+ "@driveflux/email-templates": "1.0.2",
83
+ "@driveflux/engine": "1.0.3",
84
84
  "@driveflux/fetch": "8.0.0",
85
85
  "@driveflux/format-money": "7.0.0",
86
86
  "@driveflux/problem": "6.0.0",
87
87
  "@driveflux/reporter": "7.0.1",
88
88
  "@driveflux/result": "6.0.0",
89
- "@driveflux/scheduler": "8.0.0",
89
+ "@driveflux/scheduler": "8.0.2",
90
90
  "@driveflux/singleton": "3.0.0",
91
91
  "@driveflux/subscription": "9.0.0",
92
92
  "@driveflux/logger": "1.0.0",