@autologix-engineering/shared 1.0.136 → 1.0.138
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/package.json +1 -1
- package/src/lib/data-transfer-objects/src/create.request.new.dto.d.ts +19 -13
- package/src/lib/data-transfer-objects/src/create.request.new.dto.js +60 -32
- package/src/lib/data-transfer-objects/src/create.request.new.dto.js.map +1 -1
- package/src/lib/enums/src/trip.billing.distance.new.enum.d.ts +1 -1
- package/src/lib/enums/src/trip.billing.distance.new.enum.js +1 -1
- package/src/lib/enums/src/trip.billing.distance.new.enum.js.map +1 -1
package/package.json
CHANGED
|
@@ -3,35 +3,41 @@ import { RequestUserType } from '../../enums/src/request.user.type.enum';
|
|
|
3
3
|
import { BookingType } from '../../enums/src/booking.type.enum';
|
|
4
4
|
import { ISpecialInstruction, SpecialInstructionField } from '../../models/src/special.instruction.model';
|
|
5
5
|
import { SpecialInstructionTag } from '../../enums/src/special.instruction.tag.enum';
|
|
6
|
+
import { VehicleType } from '../../enums/src/vehicle.type.enum';
|
|
6
7
|
export declare class PickupNew {
|
|
7
8
|
pickupPlaceId: string;
|
|
8
9
|
passengerIds: string[];
|
|
9
10
|
constructor(_obj?: Partial<PickupNew>);
|
|
10
11
|
}
|
|
12
|
+
declare class SpecialInstruction implements ISpecialInstruction {
|
|
13
|
+
[SpecialInstructionField.TagName]: SpecialInstructionTag;
|
|
14
|
+
[SpecialInstructionField.Description]: string;
|
|
15
|
+
constructor(_obj?: Partial<SpecialInstruction>);
|
|
16
|
+
}
|
|
11
17
|
export declare class CreateRequestDTO {
|
|
12
18
|
requestType: RequestType;
|
|
13
|
-
|
|
19
|
+
pickup: PickupNew;
|
|
20
|
+
waypoints: PickupNew[];
|
|
14
21
|
dropPlaceId: string;
|
|
15
|
-
pickupTime: Date;
|
|
16
|
-
|
|
22
|
+
pickupTime: Date[];
|
|
23
|
+
pkgNewId: string;
|
|
24
|
+
vhlGroupId: string;
|
|
25
|
+
vehicleType: VehicleType;
|
|
17
26
|
clientContextId?: string;
|
|
18
27
|
vendorContextId?: string;
|
|
28
|
+
placeId?: string;
|
|
19
29
|
primaryPassengerId: string;
|
|
20
30
|
createdById: string;
|
|
21
|
-
|
|
22
|
-
wantAC?: boolean;
|
|
23
|
-
rentalHours?: number;
|
|
24
|
-
distanceMatrixResponse: string;
|
|
31
|
+
distanceMatrixResponse?: string;
|
|
25
32
|
userType?: RequestUserType;
|
|
26
33
|
bookingType?: BookingType;
|
|
27
34
|
isEscortAvailable?: boolean;
|
|
28
35
|
specialInstructions?: SpecialInstruction[];
|
|
29
|
-
|
|
36
|
+
state?: string;
|
|
37
|
+
city?: string;
|
|
38
|
+
addItionalPoc?: string;
|
|
39
|
+
shareTripDetail?: boolean;
|
|
40
|
+
shareBillingDetail?: boolean;
|
|
30
41
|
constructor(_obj?: Partial<CreateRequestDTO>);
|
|
31
42
|
}
|
|
32
|
-
declare class SpecialInstruction implements ISpecialInstruction {
|
|
33
|
-
[SpecialInstructionField.TagName]: SpecialInstructionTag;
|
|
34
|
-
[SpecialInstructionField.Description]: string;
|
|
35
|
-
constructor(_obj?: Partial<SpecialInstruction>);
|
|
36
|
-
}
|
|
37
43
|
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
var _a, _b;
|
|
2
2
|
import { __decorate, __metadata } from "tslib";
|
|
3
3
|
import { Type } from 'class-transformer';
|
|
4
|
-
import { ArrayMinSize, IsArray, IsBoolean,
|
|
4
|
+
import { ArrayMinSize, IsArray, IsBoolean, IsEnum, IsOptional, IsString, IsUUID, ValidateIf, ValidateNested, } from 'class-validator';
|
|
5
5
|
import { RequestType } from '../../enums/src/request.type.enum';
|
|
6
6
|
import { RequestUserType } from '../../enums/src/request.user.type.enum';
|
|
7
7
|
import { BookingType } from '../../enums/src/booking.type.enum';
|
|
8
8
|
import { SpecialInstructionField, } from '../../models/src/special.instruction.model';
|
|
9
9
|
import { SpecialInstructionTag } from '../../enums/src/special.instruction.tag.enum';
|
|
10
|
+
import { VehicleType } from '../../enums/src/vehicle.type.enum';
|
|
10
11
|
export class PickupNew {
|
|
11
12
|
constructor(_obj) {
|
|
12
13
|
Object.assign(this, _obj);
|
|
@@ -22,6 +23,20 @@ __decorate([
|
|
|
22
23
|
IsString({ each: true }),
|
|
23
24
|
__metadata("design:type", Array)
|
|
24
25
|
], PickupNew.prototype, "passengerIds", void 0);
|
|
26
|
+
class SpecialInstruction {
|
|
27
|
+
constructor(_obj) {
|
|
28
|
+
Object.assign(this, _obj);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
_a = SpecialInstructionField.TagName, _b = SpecialInstructionField.Description;
|
|
32
|
+
__decorate([
|
|
33
|
+
IsEnum(SpecialInstructionTag),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], SpecialInstruction.prototype, _a, void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
IsString(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], SpecialInstruction.prototype, _b, void 0);
|
|
25
40
|
export class CreateRequestDTO {
|
|
26
41
|
constructor(_obj) {
|
|
27
42
|
Object.assign(this, _obj);
|
|
@@ -31,26 +46,41 @@ __decorate([
|
|
|
31
46
|
IsEnum(RequestType),
|
|
32
47
|
__metadata("design:type", String)
|
|
33
48
|
], CreateRequestDTO.prototype, "requestType", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
Type(() => PickupNew),
|
|
51
|
+
ValidateNested({ each: true }),
|
|
52
|
+
__metadata("design:type", PickupNew)
|
|
53
|
+
], CreateRequestDTO.prototype, "pickup", void 0);
|
|
34
54
|
__decorate([
|
|
35
55
|
IsArray(),
|
|
36
56
|
ArrayMinSize(1),
|
|
37
57
|
Type(() => PickupNew),
|
|
38
58
|
ValidateNested({ each: true }),
|
|
39
59
|
__metadata("design:type", Array)
|
|
40
|
-
], CreateRequestDTO.prototype, "
|
|
60
|
+
], CreateRequestDTO.prototype, "waypoints", void 0);
|
|
41
61
|
__decorate([
|
|
42
62
|
ValidateIf((_o) => _o.requestType !== RequestType.Rental),
|
|
43
63
|
IsUUID(),
|
|
44
64
|
__metadata("design:type", String)
|
|
45
65
|
], CreateRequestDTO.prototype, "dropPlaceId", void 0);
|
|
46
66
|
__decorate([
|
|
47
|
-
|
|
48
|
-
|
|
67
|
+
IsArray(),
|
|
68
|
+
ArrayMinSize(1),
|
|
69
|
+
IsString({ each: true }),
|
|
70
|
+
__metadata("design:type", Array)
|
|
49
71
|
], CreateRequestDTO.prototype, "pickupTime", void 0);
|
|
50
72
|
__decorate([
|
|
51
73
|
IsUUID(),
|
|
52
74
|
__metadata("design:type", String)
|
|
53
|
-
], CreateRequestDTO.prototype, "
|
|
75
|
+
], CreateRequestDTO.prototype, "pkgNewId", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
IsUUID(),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], CreateRequestDTO.prototype, "vhlGroupId", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
IsEnum(VehicleType),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], CreateRequestDTO.prototype, "vehicleType", void 0);
|
|
54
84
|
__decorate([
|
|
55
85
|
IsOptional(),
|
|
56
86
|
IsUUID(),
|
|
@@ -62,28 +92,18 @@ __decorate([
|
|
|
62
92
|
__metadata("design:type", String)
|
|
63
93
|
], CreateRequestDTO.prototype, "vendorContextId", void 0);
|
|
64
94
|
__decorate([
|
|
95
|
+
IsOptional(),
|
|
65
96
|
IsUUID(),
|
|
66
97
|
__metadata("design:type", String)
|
|
67
|
-
], CreateRequestDTO.prototype, "
|
|
98
|
+
], CreateRequestDTO.prototype, "placeId", void 0);
|
|
68
99
|
__decorate([
|
|
69
100
|
IsUUID(),
|
|
70
101
|
__metadata("design:type", String)
|
|
71
|
-
], CreateRequestDTO.prototype, "
|
|
102
|
+
], CreateRequestDTO.prototype, "primaryPassengerId", void 0);
|
|
72
103
|
__decorate([
|
|
73
|
-
|
|
74
|
-
IsString(),
|
|
104
|
+
IsUUID(),
|
|
75
105
|
__metadata("design:type", String)
|
|
76
|
-
], CreateRequestDTO.prototype, "
|
|
77
|
-
__decorate([
|
|
78
|
-
IsOptional(),
|
|
79
|
-
IsBoolean(),
|
|
80
|
-
__metadata("design:type", Boolean)
|
|
81
|
-
], CreateRequestDTO.prototype, "wantAC", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
ValidateIf((_o) => _o.requestType === RequestType.Rental),
|
|
84
|
-
IsNumber(),
|
|
85
|
-
__metadata("design:type", Number)
|
|
86
|
-
], CreateRequestDTO.prototype, "rentalHours", void 0);
|
|
106
|
+
], CreateRequestDTO.prototype, "createdById", void 0);
|
|
87
107
|
__decorate([
|
|
88
108
|
ValidateIf((_o) => _o.requestType !== RequestType.Rental),
|
|
89
109
|
IsString(),
|
|
@@ -113,22 +133,30 @@ __decorate([
|
|
|
113
133
|
__metadata("design:type", Array)
|
|
114
134
|
], CreateRequestDTO.prototype, "specialInstructions", void 0);
|
|
115
135
|
__decorate([
|
|
116
|
-
IsString(),
|
|
117
136
|
IsOptional(),
|
|
137
|
+
IsString(),
|
|
118
138
|
__metadata("design:type", String)
|
|
119
|
-
], CreateRequestDTO.prototype, "
|
|
120
|
-
class SpecialInstruction {
|
|
121
|
-
constructor(_obj) {
|
|
122
|
-
Object.assign(this, _obj);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
_a = SpecialInstructionField.TagName, _b = SpecialInstructionField.Description;
|
|
139
|
+
], CreateRequestDTO.prototype, "state", void 0);
|
|
126
140
|
__decorate([
|
|
127
|
-
|
|
141
|
+
IsOptional(),
|
|
142
|
+
IsString(),
|
|
128
143
|
__metadata("design:type", String)
|
|
129
|
-
],
|
|
144
|
+
], CreateRequestDTO.prototype, "city", void 0);
|
|
130
145
|
__decorate([
|
|
131
|
-
|
|
146
|
+
IsOptional(),
|
|
147
|
+
IsArray(),
|
|
148
|
+
ArrayMinSize(1),
|
|
149
|
+
IsString({ each: true }),
|
|
132
150
|
__metadata("design:type", String)
|
|
133
|
-
],
|
|
151
|
+
], CreateRequestDTO.prototype, "addItionalPoc", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
IsOptional(),
|
|
154
|
+
IsBoolean(),
|
|
155
|
+
__metadata("design:type", Boolean)
|
|
156
|
+
], CreateRequestDTO.prototype, "shareTripDetail", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
IsOptional(),
|
|
159
|
+
IsBoolean(),
|
|
160
|
+
__metadata("design:type", Boolean)
|
|
161
|
+
], CreateRequestDTO.prototype, "shareBillingDetail", void 0);
|
|
134
162
|
//# sourceMappingURL=create.request.new.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.request.new.dto.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/data-transfer-objects/src/create.request.new.dto.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EACN,YAAY,EACZ,OAAO,EACP,SAAS,EACT,
|
|
1
|
+
{"version":3,"file":"create.request.new.dto.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/data-transfer-objects/src/create.request.new.dto.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EACN,YAAY,EACZ,OAAO,EACP,SAAS,EACT,MAAM,EACN,UAAU,EACV,QAAQ,EACR,MAAM,EACN,UAAU,EACV,cAAc,GACd,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAEN,uBAAuB,GACvB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AACrF,OAAO,EA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export var TripBillingDistanceNewEnum;
|
|
2
2
|
(function (TripBillingDistanceNewEnum) {
|
|
3
3
|
TripBillingDistanceNewEnum["AutomatedGtoG"] = "Automated G to G Billing";
|
|
4
|
-
TripBillingDistanceNewEnum["PtoPBilling"] = "P to P Billing with
|
|
4
|
+
TripBillingDistanceNewEnum["PtoPBilling"] = "P to P Billing with Extras";
|
|
5
5
|
})(TripBillingDistanceNewEnum || (TripBillingDistanceNewEnum = {}));
|
|
6
6
|
//# sourceMappingURL=trip.billing.distance.new.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trip.billing.distance.new.enum.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/enums/src/trip.billing.distance.new.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACrC,wEAA0C,CAAA;IAC1C,
|
|
1
|
+
{"version":3,"file":"trip.billing.distance.new.enum.js","sourceRoot":"","sources":["../../../../../../../libs/shared/src/lib/enums/src/trip.billing.distance.new.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACrC,wEAA0C,CAAA;IAC1C,wEAA0C,CAAA;AAC3C,CAAC,EAHW,0BAA0B,KAA1B,0BAA0B,QAGrC"}
|