@autologix-engineering/shared 1.0.136 → 1.0.137
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
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
22
|
pickupTime: Date;
|
|
16
|
-
|
|
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, IsDateString, IsEnum,
|
|
4
|
+
import { ArrayMinSize, IsArray, IsBoolean, IsDateString, 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,13 +46,18 @@ __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(),
|
|
@@ -50,7 +70,15 @@ __decorate([
|
|
|
50
70
|
__decorate([
|
|
51
71
|
IsUUID(),
|
|
52
72
|
__metadata("design:type", String)
|
|
53
|
-
], CreateRequestDTO.prototype, "
|
|
73
|
+
], CreateRequestDTO.prototype, "pkgNewId", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
IsUUID(),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], CreateRequestDTO.prototype, "vhlGroupId", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
IsEnum(VehicleType),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], CreateRequestDTO.prototype, "vehicleType", void 0);
|
|
54
82
|
__decorate([
|
|
55
83
|
IsOptional(),
|
|
56
84
|
IsUUID(),
|
|
@@ -62,28 +90,18 @@ __decorate([
|
|
|
62
90
|
__metadata("design:type", String)
|
|
63
91
|
], CreateRequestDTO.prototype, "vendorContextId", void 0);
|
|
64
92
|
__decorate([
|
|
93
|
+
IsOptional(),
|
|
65
94
|
IsUUID(),
|
|
66
95
|
__metadata("design:type", String)
|
|
67
|
-
], CreateRequestDTO.prototype, "
|
|
96
|
+
], CreateRequestDTO.prototype, "placeId", void 0);
|
|
68
97
|
__decorate([
|
|
69
98
|
IsUUID(),
|
|
70
99
|
__metadata("design:type", String)
|
|
71
|
-
], CreateRequestDTO.prototype, "
|
|
100
|
+
], CreateRequestDTO.prototype, "primaryPassengerId", void 0);
|
|
72
101
|
__decorate([
|
|
73
|
-
|
|
74
|
-
IsString(),
|
|
102
|
+
IsUUID(),
|
|
75
103
|
__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);
|
|
104
|
+
], CreateRequestDTO.prototype, "createdById", void 0);
|
|
87
105
|
__decorate([
|
|
88
106
|
ValidateIf((_o) => _o.requestType !== RequestType.Rental),
|
|
89
107
|
IsString(),
|
|
@@ -113,22 +131,28 @@ __decorate([
|
|
|
113
131
|
__metadata("design:type", Array)
|
|
114
132
|
], CreateRequestDTO.prototype, "specialInstructions", void 0);
|
|
115
133
|
__decorate([
|
|
116
|
-
IsString(),
|
|
117
134
|
IsOptional(),
|
|
135
|
+
IsString(),
|
|
118
136
|
__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;
|
|
137
|
+
], CreateRequestDTO.prototype, "state", void 0);
|
|
126
138
|
__decorate([
|
|
127
|
-
|
|
139
|
+
IsOptional(),
|
|
140
|
+
IsString(),
|
|
128
141
|
__metadata("design:type", String)
|
|
129
|
-
],
|
|
142
|
+
], CreateRequestDTO.prototype, "city", void 0);
|
|
130
143
|
__decorate([
|
|
144
|
+
IsOptional(),
|
|
131
145
|
IsString(),
|
|
132
146
|
__metadata("design:type", String)
|
|
133
|
-
],
|
|
147
|
+
], CreateRequestDTO.prototype, "addItionalPoc", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
IsOptional(),
|
|
150
|
+
IsBoolean(),
|
|
151
|
+
__metadata("design:type", Boolean)
|
|
152
|
+
], CreateRequestDTO.prototype, "shareTripDetail", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
IsOptional(),
|
|
155
|
+
IsBoolean(),
|
|
156
|
+
__metadata("design:type", Boolean)
|
|
157
|
+
], CreateRequestDTO.prototype, "shareBillingDetail", void 0);
|
|
134
158
|
//# 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,YAAY,EACZ,MAAM,EACN,
|
|
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,YAAY,EACZ,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,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAEhE,MAAM,OAAO,SAAS;IASrB,YAAY,IAAyB;QACpC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC3B,CAAC;CACD;AAVA;IADC,MAAM,EAAE;;gDACa;AAKtB;IAHC,OAAO,EAAE;IACT,YAAY,CAAC,CAAC,CAAC;IACf,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;+CACF;AAOxB,MAAM,kBAAkB;IAOvB,YAAY,IAAkC;QAC7C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC3B,CAAC;CACD;KARC,uBAAuB,CAAC,OAAO,OAG/B,uBAAuB,CAAC,WAAW;AAHpC;IADC,MAAM,CAAC,qBAAqB,CAAC;;4CAC2B;AAGzD;IAD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