@driveflux/api-functions 0.0.6 → 0.0.7-next.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.
Files changed (53) hide show
  1. package/dist/auth/confirm.js +73 -327
  2. package/dist/auth/emails.js +43 -210
  3. package/dist/auth/formatter.js +11 -11
  4. package/dist/auth/otp.js +122 -392
  5. package/dist/auth/register.js +100 -396
  6. package/dist/auth/tokens.d.ts +3 -3
  7. package/dist/auth/tokens.js +115 -430
  8. package/dist/auth/verifications.d.ts.map +1 -1
  9. package/dist/auth/verifications.js +191 -514
  10. package/dist/auth/verifications.js.map +1 -1
  11. package/dist/constants.js +5 -4
  12. package/dist/mailjet/calls/manage-contacts-in-list.js +22 -166
  13. package/dist/mailjet/calls/manage-subscription-status.js +13 -153
  14. package/dist/mailjet/calls/request-service.d.ts +1 -1
  15. package/dist/mailjet/calls/request-service.d.ts.map +1 -1
  16. package/dist/mailjet/calls/request-service.js +18 -183
  17. package/dist/mailjet/refresh-email-preferences.js +26 -225
  18. package/dist/mailjet/set-contact.js +23 -214
  19. package/dist/mailjet/types.js +2 -1
  20. package/dist/mailjet/utils/convert-to-array.js +9 -58
  21. package/dist/mailjet/utils/extract-email-preferences.js +41 -217
  22. package/dist/mailjet/utils/lists.js +30 -249
  23. package/dist/mailjet/utils/update-email-references.js +27 -208
  24. package/dist/notion/client.js +48 -197
  25. package/dist/notion/helpful.js +29 -170
  26. package/dist/notion/schemas/block.js +49 -43
  27. package/dist/notion/schemas/common.js +17 -14
  28. package/dist/notion/schemas/database.js +125 -159
  29. package/dist/notion/schemas/emoji.js +3 -2
  30. package/dist/notion/schemas/file.js +10 -10
  31. package/dist/notion/schemas/kb.js +9 -8
  32. package/dist/notion/schemas/page.js +126 -171
  33. package/dist/notion/schemas/parent.js +9 -8
  34. package/dist/notion/schemas/user.js +21 -20
  35. package/dist/reservation/agree.js +19 -158
  36. package/dist/reservation/checks.js +23 -178
  37. package/dist/reservation/display-vehicle.d.ts +37 -37
  38. package/dist/reservation/display-vehicle.d.ts.map +1 -1
  39. package/dist/reservation/display-vehicle.js +142 -514
  40. package/dist/reservation/fetch-or-create.js +197 -482
  41. package/dist/reservation/invoice.js +198 -496
  42. package/dist/reservation/payer.js +28 -177
  43. package/dist/reservation/reserve.js +31 -191
  44. package/dist/reservation/types.js +2 -1
  45. package/dist/reservation/vehicle.js +24 -186
  46. package/dist/slack.d.ts +2 -2
  47. package/dist/slack.d.ts.map +1 -1
  48. package/dist/slack.js +67 -273
  49. package/dist/validation.js +81 -139
  50. package/dist/vehicle/vehicle-pricing/constants.js +33 -36
  51. package/dist/vehicle/vehicle-pricing/index.js +99 -257
  52. package/dist/vehicle/vehicle-pricing/types.js +2 -1
  53. package/package.json +12 -12
@@ -1,183 +1,28 @@
1
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
2
- try {
3
- var info = gen[key](arg);
4
- var value = info.value;
5
- } catch (error) {
6
- reject(error);
7
- return;
8
- }
9
- if (info.done) {
10
- resolve(value);
11
- } else {
12
- Promise.resolve(value).then(_next, _throw);
13
- }
14
- }
15
- function _async_to_generator(fn) {
16
- return function() {
17
- var self = this, args = arguments;
18
- return new Promise(function(resolve, reject) {
19
- var gen = fn.apply(self, args);
20
- function _next(value) {
21
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
22
- }
23
- function _throw(err) {
24
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
25
- }
26
- _next(undefined);
27
- });
28
- };
29
- }
30
- function _ts_generator(thisArg, body) {
31
- var f, y, t, _ = {
32
- label: 0,
33
- sent: function() {
34
- if (t[0] & 1) throw t[1];
35
- return t[1];
36
- },
37
- trys: [],
38
- ops: []
39
- }, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
40
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() {
41
- return this;
42
- }), g;
43
- function verb(n) {
44
- return function(v) {
45
- return step([
46
- n,
47
- v
48
- ]);
49
- };
50
- }
51
- function step(op) {
52
- if (f) throw new TypeError("Generator is already executing.");
53
- while(g && (g = 0, op[0] && (_ = 0)), _)try {
54
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
55
- if (y = 0, t) op = [
56
- op[0] & 2,
57
- t.value
58
- ];
59
- switch(op[0]){
60
- case 0:
61
- case 1:
62
- t = op;
63
- break;
64
- case 4:
65
- _.label++;
66
- return {
67
- value: op[1],
68
- done: false
69
- };
70
- case 5:
71
- _.label++;
72
- y = op[1];
73
- op = [
74
- 0
75
- ];
76
- continue;
77
- case 7:
78
- op = _.ops.pop();
79
- _.trys.pop();
80
- continue;
81
- default:
82
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
83
- _ = 0;
84
- continue;
85
- }
86
- if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
87
- _.label = op[1];
88
- break;
89
- }
90
- if (op[0] === 6 && _.label < t[1]) {
91
- _.label = t[1];
92
- t = op;
93
- break;
94
- }
95
- if (t && _.label < t[2]) {
96
- _.label = t[2];
97
- _.ops.push(op);
98
- break;
99
- }
100
- if (t[2]) _.ops.pop();
101
- _.trys.pop();
102
- continue;
103
- }
104
- op = body.call(thisArg, _);
105
- } catch (e) {
106
- op = [
107
- 6,
108
- e
109
- ];
110
- y = 0;
111
- } finally{
112
- f = t = 0;
113
- }
114
- if (op[0] & 5) throw op[1];
115
- return {
116
- value: op[0] ? op[1] : void 0,
117
- done: true
118
- };
119
- }
120
- }
121
1
  import { ForbiddenError, subject } from '@casl/ability';
122
2
  import { buildOrDefineAbility } from '@driveflux/auth/authorization';
123
- import { makeProblem, PROBLEM_CONDITION_FAILED, PROBLEM_RESOURCE_BUSY } from '@driveflux/problem';
3
+ import { makeProblem, PROBLEM_CONDITION_FAILED, PROBLEM_RESOURCE_BUSY, } from '@driveflux/problem';
124
4
  import { Err, Ok } from '@driveflux/result';
125
- export var checkIfUserCanReserve = function(param) {
126
- var requestUser = param.requestUser, subscribingUser = param.subscribingUser;
127
- return _async_to_generator(function() {
128
- var requestUserAbility;
129
- return _ts_generator(this, function(_state) {
130
- switch(_state.label){
131
- case 0:
132
- return [
133
- 4,
134
- buildOrDefineAbility(requestUser)
135
- ];
136
- case 1:
137
- requestUserAbility = _state.sent();
138
- // Check if user can reserve
139
- ForbiddenError.from(requestUserAbility).throwUnlessCan('reserveVehicle', subject('User', subscribingUser));
140
- return [
141
- 2,
142
- requestUserAbility
143
- ];
144
- }
145
- });
146
- })();
5
+ export const checkIfUserCanReserve = async ({ requestUser, subscribingUser, }) => {
6
+ // Check if the user can reserve
7
+ const requestUserAbility = await buildOrDefineAbility(requestUser);
8
+ // Check if user can reserve
9
+ ForbiddenError.from(requestUserAbility).throwUnlessCan('reserveVehicle', subject('User', subscribingUser));
10
+ return requestUserAbility;
147
11
  };
148
- export var checkIfVehicleIsAvailableForReservation = function(vehicle, plan, allowDelisted) {
149
- return _async_to_generator(function() {
150
- var _vehicle_details;
151
- return _ts_generator(this, function(_state) {
152
- if (!vehicle.pricing) {
153
- return [
154
- 2,
155
- new Err(makeProblem(PROBLEM_RESOURCE_BUSY, 'This vehicle is not available for reservation'))
156
- ];
157
- }
158
- // Check if the vehicle has no previous reservations
159
- if (vehicle.status !== 'listed' && !allowDelisted) {
160
- return [
161
- 2,
162
- new Err(makeProblem(PROBLEM_RESOURCE_BUSY, 'This vehicle is not available for reservation'))
163
- ];
164
- }
165
- if (((_vehicle_details = vehicle.details) === null || _vehicle_details === void 0 ? void 0 : _vehicle_details.condition) === 'new' && plan === 'plan1') {
166
- return [
167
- 2,
168
- new Err(makeProblem(PROBLEM_CONDITION_FAILED, 'This vehicle is not available for monthl-to-month subscription'))
169
- ];
170
- }
171
- if (!vehicle.host) {
172
- return [
173
- 2,
174
- new Err(makeProblem(PROBLEM_CONDITION_FAILED, 'This vehicle is not associated to a host'))
175
- ];
176
- }
177
- return [
178
- 2,
179
- new Ok(vehicle)
180
- ];
181
- });
182
- })();
12
+ export const checkIfVehicleIsAvailableForReservation = async (vehicle, plan, allowDelisted) => {
13
+ if (!vehicle.pricing) {
14
+ return new Err(makeProblem(PROBLEM_RESOURCE_BUSY, 'This vehicle is not available for reservation'));
15
+ }
16
+ // Check if the vehicle has no previous reservations
17
+ if (vehicle.status !== 'listed' && !allowDelisted) {
18
+ return new Err(makeProblem(PROBLEM_RESOURCE_BUSY, 'This vehicle is not available for reservation'));
19
+ }
20
+ if (vehicle.details?.condition === 'new' && plan === 'plan1') {
21
+ return new Err(makeProblem(PROBLEM_CONDITION_FAILED, 'This vehicle is not available for monthl-to-month subscription'));
22
+ }
23
+ if (!vehicle.host) {
24
+ return new Err(makeProblem(PROBLEM_CONDITION_FAILED, 'This vehicle is not associated to a host'));
25
+ }
26
+ return new Ok(vehicle);
183
27
  };
28
+ //# sourceMappingURL=checks.js.map
@@ -1,7 +1,7 @@
1
- import { type DisplayVehicle, type Vehicle } from '@driveflux/db';
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
- object: import("@driveflux/db/enums").DisplayVehicleObject;
4
- type: import("@driveflux/db/enums").VehicleType;
3
+ object: import("@driveflux/db").DisplayVehicleObject;
4
+ type: VehicleType;
5
5
  id: string;
6
6
  createdAt: Date;
7
7
  updatedAt: Date;
@@ -30,7 +30,7 @@ export declare const fetchDisplayVehicle: (displayVehicle: DisplayVehicle | stri
30
30
  engineCapacityText: string | null;
31
31
  batteryCapacity: number | null;
32
32
  chargingFrom30To80: number | null;
33
- condition: import("@driveflux/db/enums").VehicleCondition | null;
33
+ condition: import("@driveflux/db").VehicleCondition | null;
34
34
  numberOfSeats: number | null;
35
35
  doors: number | null;
36
36
  } & {
@@ -170,11 +170,11 @@ export declare const fetchDisplayVehicle: (displayVehicle: DisplayVehicle | stri
170
170
  appliedCoupon: {
171
171
  applicationName: string;
172
172
  code: string;
173
- discountType: import("@driveflux/db/enums").DiscountType;
173
+ discountType: import("@driveflux/db").DiscountType;
174
174
  discountValue: number;
175
175
  maxCycles: number | null;
176
176
  texts: PrismaJson.StringMetadata | null;
177
- plans: import("@driveflux/db/enums").PlanType[];
177
+ plans: PlanType[];
178
178
  redeemBefore: Date | null;
179
179
  } | null;
180
180
  faqsList: {
@@ -190,16 +190,16 @@ export declare const fetchDisplayVehicle: (displayVehicle: DisplayVehicle | stri
190
190
  } | null>;
191
191
  export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVehicle | string, selectedColor?: string) => Promise<({
192
192
  host: {
193
- object: import("@driveflux/db/enums").HostObject;
193
+ object: import("@driveflux/db").HostObject;
194
194
  phoneNumber: string | null;
195
- type: import("@driveflux/db/enums").HostType | null;
195
+ type: import("@driveflux/db").HostType | null;
196
196
  id: string;
197
197
  metadata: PrismaJson.AnyMetadata | null;
198
198
  name: string;
199
199
  createdAt: Date;
200
200
  updatedAt: Date;
201
201
  email: string | null;
202
- race: import("@driveflux/db/enums").Race | null;
202
+ race: import("@driveflux/db").Race | null;
203
203
  emergencyContactName: string | null;
204
204
  emergencyPhoneNumber: string | null;
205
205
  active: boolean;
@@ -239,7 +239,7 @@ export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVe
239
239
  access_token: string | null;
240
240
  scope: string | null;
241
241
  livemode: boolean | null;
242
- token_type: import("@driveflux/db/enums").StripeBearerValue;
242
+ token_type: import("@driveflux/db").StripeBearerValue;
243
243
  refresh_token: string | null;
244
244
  stripe_user_id: string | null;
245
245
  stripe_publishable_key: string | null;
@@ -261,13 +261,13 @@ export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVe
261
261
  } | null;
262
262
  };
263
263
  } & {
264
- object: import("@driveflux/db/enums").VehicleObject;
265
- type: import("@driveflux/db/enums").VehicleType;
264
+ object: import("@driveflux/db").VehicleObject;
265
+ type: VehicleType;
266
266
  id: string;
267
267
  metadata: PrismaJson.AnyMetadata | null;
268
268
  createdAt: Date;
269
269
  updatedAt: Date;
270
- status: import("@driveflux/db/enums").VehicleStatus;
270
+ status: import("@driveflux/db").VehicleStatus;
271
271
  temporary: boolean;
272
272
  registrationNumber: string | null;
273
273
  hostId: string;
@@ -282,7 +282,7 @@ export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVe
282
282
  mileage: number | null;
283
283
  vin: string | null;
284
284
  engineNumber: string | null;
285
- availability: import("@driveflux/db/enums").VehicleAvailablity | null;
285
+ availability: import("@driveflux/db").VehicleAvailablity | null;
286
286
  sumInsuredAmount: number | null;
287
287
  basePrice: number;
288
288
  basePricePlan1: number;
@@ -300,7 +300,7 @@ export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVe
300
300
  niceName: string;
301
301
  niceNameShort: string;
302
302
  region: string | null;
303
- flagType: import("@driveflux/db/enums").VehicleFlag | null;
303
+ flagType: import("@driveflux/db").VehicleFlag | null;
304
304
  hasImages: boolean;
305
305
  mileageTrackingOff: boolean;
306
306
  featureOnLandingPage: boolean;
@@ -379,9 +379,9 @@ export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVe
379
379
  tmv: number | null;
380
380
  bought: boolean | null;
381
381
  gfvNotApplicable: boolean;
382
- ultraTier: import("@driveflux/db/enums").UltraTier;
383
- availablePlans: import("@driveflux/db/enums").PlanType[];
384
- availableMileagePackages: import("@driveflux/db/enums").MileagePackage[];
382
+ ultraTier: UltraTier;
383
+ availablePlans: PlanType[];
384
+ availableMileagePackages: MileagePackage[];
385
385
  recommendedDeposit: number | null;
386
386
  } & {
387
387
  gfv: {
@@ -649,7 +649,7 @@ export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVe
649
649
  large: string | null;
650
650
  description: string | null;
651
651
  inspection: boolean | null;
652
- inspectionType: import("@driveflux/db/enums").InspectionType | null;
652
+ inspectionType: import("@driveflux/db").InspectionType | null;
653
653
  notActualPhoto: boolean | null;
654
654
  }[];
655
655
  details: {
@@ -664,7 +664,7 @@ export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVe
664
664
  fuelConsumptionLitersPer100Km: number | null;
665
665
  color: string | null;
666
666
  features: string[];
667
- condition: import("@driveflux/db/enums").VehicleCondition | null;
667
+ condition: import("@driveflux/db").VehicleCondition | null;
668
668
  } | null;
669
669
  inspection: {
670
670
  exterior: number | null;
@@ -679,22 +679,22 @@ export declare const createVehicleFromDisplayVehicle: (displayVehicle: DisplayVe
679
679
  appliedCoupon: {
680
680
  applicationName: string;
681
681
  code: string;
682
- discountType: import("@driveflux/db/enums").DiscountType;
682
+ discountType: import("@driveflux/db").DiscountType;
683
683
  discountValue: number;
684
684
  maxCycles: number | null;
685
685
  texts: PrismaJson.StringMetadata | null;
686
- plans: import("@driveflux/db/enums").PlanType[];
686
+ plans: PlanType[];
687
687
  redeemBefore: Date | null;
688
688
  } | null;
689
689
  }) | undefined>;
690
690
  export declare const transfromVehicleDisplayToVehicle: (displayVehicle: DisplayVehicle | string, selectedColor: string) => Promise<({
691
- object: import("@driveflux/db/enums").VehicleObject;
692
- type: import("@driveflux/db/enums").VehicleType;
691
+ object: import("@driveflux/db").VehicleObject;
692
+ type: VehicleType;
693
693
  id: string;
694
694
  metadata: PrismaJson.AnyMetadata | null;
695
695
  createdAt: Date;
696
696
  updatedAt: Date;
697
- status: import("@driveflux/db/enums").VehicleStatus;
697
+ status: import("@driveflux/db").VehicleStatus;
698
698
  temporary: boolean;
699
699
  registrationNumber: string | null;
700
700
  hostId: string;
@@ -709,7 +709,7 @@ export declare const transfromVehicleDisplayToVehicle: (displayVehicle: DisplayV
709
709
  mileage: number | null;
710
710
  vin: string | null;
711
711
  engineNumber: string | null;
712
- availability: import("@driveflux/db/enums").VehicleAvailablity | null;
712
+ availability: import("@driveflux/db").VehicleAvailablity | null;
713
713
  sumInsuredAmount: number | null;
714
714
  basePrice: number;
715
715
  basePricePlan1: number;
@@ -727,7 +727,7 @@ export declare const transfromVehicleDisplayToVehicle: (displayVehicle: DisplayV
727
727
  niceName: string;
728
728
  niceNameShort: string;
729
729
  region: string | null;
730
- flagType: import("@driveflux/db/enums").VehicleFlag | null;
730
+ flagType: import("@driveflux/db").VehicleFlag | null;
731
731
  hasImages: boolean;
732
732
  mileageTrackingOff: boolean;
733
733
  featureOnLandingPage: boolean;
@@ -806,9 +806,9 @@ export declare const transfromVehicleDisplayToVehicle: (displayVehicle: DisplayV
806
806
  tmv: number | null;
807
807
  bought: boolean | null;
808
808
  gfvNotApplicable: boolean;
809
- ultraTier: import("@driveflux/db/enums").UltraTier;
810
- availablePlans: import("@driveflux/db/enums").PlanType[];
811
- availableMileagePackages: import("@driveflux/db/enums").MileagePackage[];
809
+ ultraTier: UltraTier;
810
+ availablePlans: PlanType[];
811
+ availableMileagePackages: MileagePackage[];
812
812
  recommendedDeposit: number | null;
813
813
  } & {
814
814
  gfv: {
@@ -1076,7 +1076,7 @@ export declare const transfromVehicleDisplayToVehicle: (displayVehicle: DisplayV
1076
1076
  large: string | null;
1077
1077
  description: string | null;
1078
1078
  inspection: boolean | null;
1079
- inspectionType: import("@driveflux/db/enums").InspectionType | null;
1079
+ inspectionType: import("@driveflux/db").InspectionType | null;
1080
1080
  notActualPhoto: boolean | null;
1081
1081
  }[];
1082
1082
  details: {
@@ -1091,7 +1091,7 @@ export declare const transfromVehicleDisplayToVehicle: (displayVehicle: DisplayV
1091
1091
  fuelConsumptionLitersPer100Km: number | null;
1092
1092
  color: string | null;
1093
1093
  features: string[];
1094
- condition: import("@driveflux/db/enums").VehicleCondition | null;
1094
+ condition: import("@driveflux/db").VehicleCondition | null;
1095
1095
  } | null;
1096
1096
  inspection: {
1097
1097
  exterior: number | null;
@@ -1106,11 +1106,11 @@ export declare const transfromVehicleDisplayToVehicle: (displayVehicle: DisplayV
1106
1106
  appliedCoupon: {
1107
1107
  applicationName: string;
1108
1108
  code: string;
1109
- discountType: import("@driveflux/db/enums").DiscountType;
1109
+ discountType: import("@driveflux/db").DiscountType;
1110
1110
  discountValue: number;
1111
1111
  maxCycles: number | null;
1112
1112
  texts: PrismaJson.StringMetadata | null;
1113
- plans: import("@driveflux/db/enums").PlanType[];
1113
+ plans: PlanType[];
1114
1114
  redeemBefore: Date | null;
1115
1115
  } | null;
1116
1116
  } & {
@@ -1134,17 +1134,17 @@ export declare const transformBasicVehicleData: (dv: DisplayVehicle) => {
1134
1134
  readonly vehicleModel: string;
1135
1135
  readonly variant: string;
1136
1136
  readonly year: number;
1137
- readonly type: import("@driveflux/db/enums").VehicleType;
1137
+ readonly type: VehicleType;
1138
1138
  readonly niceName: `${string} ${string} ${string} ${number}`;
1139
1139
  readonly niceNameShort: `${string} ${string}`;
1140
1140
  readonly appliedCoupon: {
1141
1141
  applicationName: string;
1142
1142
  code: string;
1143
- discountType: import("@driveflux/db/enums").DiscountType;
1143
+ discountType: import("@driveflux/db").DiscountType;
1144
1144
  discountValue: number;
1145
1145
  maxCycles: number | null;
1146
1146
  texts: PrismaJson.StringMetadata | null;
1147
- plans: import("@driveflux/db/enums").PlanType[];
1147
+ plans: PlanType[];
1148
1148
  redeemBefore: Date | null;
1149
1149
  } | null;
1150
1150
  };
@@ -1 +1 @@
1
- {"version":3,"file":"display-vehicle.d.ts","sourceRoot":"","sources":["../../src/reservation/display-vehicle.ts"],"names":[],"mappings":"AACA,OAAO,EACN,KAAK,cAAc,EAOnB,KAAK,OAAO,EAIZ,MAAM,eAAe,CAAA;AAYtB,eAAO,MAAM,mBAAmB,GAC/B,gBAAgB,cAAc,GAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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