@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autologix-engineering/shared",
3
- "version": "1.0.136",
3
+ "version": "1.0.138",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0"
6
6
  },
@@ -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
- pickups: PickupNew[];
19
+ pickup: PickupNew;
20
+ waypoints: PickupNew[];
14
21
  dropPlaceId: string;
15
- pickupTime: Date;
16
- pkgDtlNewId: string;
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
- remarks?: string;
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
- extBookingId?: string;
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, IsNumber, IsOptional, IsString, IsUUID, ValidateIf, ValidateNested, } from 'class-validator';
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, "pickups", void 0);
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
- IsDateString(),
48
- __metadata("design:type", Date)
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, "pkgDtlNewId", void 0);
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, "primaryPassengerId", void 0);
98
+ ], CreateRequestDTO.prototype, "placeId", void 0);
68
99
  __decorate([
69
100
  IsUUID(),
70
101
  __metadata("design:type", String)
71
- ], CreateRequestDTO.prototype, "createdById", void 0);
102
+ ], CreateRequestDTO.prototype, "primaryPassengerId", void 0);
72
103
  __decorate([
73
- IsOptional(),
74
- IsString(),
104
+ IsUUID(),
75
105
  __metadata("design:type", String)
76
- ], CreateRequestDTO.prototype, "remarks", void 0);
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, "extBookingId", void 0);
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
- IsEnum(SpecialInstructionTag),
141
+ IsOptional(),
142
+ IsString(),
128
143
  __metadata("design:type", String)
129
- ], SpecialInstruction.prototype, _a, void 0);
144
+ ], CreateRequestDTO.prototype, "city", void 0);
130
145
  __decorate([
131
- IsString(),
146
+ IsOptional(),
147
+ IsArray(),
148
+ ArrayMinSize(1),
149
+ IsString({ each: true }),
132
150
  __metadata("design:type", String)
133
- ], SpecialInstruction.prototype, _b, void 0);
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,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,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;AAErF,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,OAAO,g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IALC,UAAU,EAAE;IACZ,OAAO,EAAE;IACT,YAAY,CAAC,CAAC,CAAC;IACf,IAAI,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC;IAC9B,cAAc,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;6DACY;AAI3C;IAFC,QAAQ,EAAE;IACV,UAAU,EAAE;;sDACS;AAOvB,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;IADC,QAAQ,EAAE;;4CACmC"}
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,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,E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AAM,EAAE;;yDACgB;AAIzB;IAFC,UAAU,EAAE;IACZ,MAAM,EAAE;;yDACgB;AAIzB;IAFC,UAAU,EAAE;IACZ,MAAM,EAAE;;iDACQ;AAGjB;IADC,MAAM,EAAE;;4DACkB;AAG3B;IADC,MAAM,EAAE;;qDACW;AAIpB;IAFC,UAAU,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,WAAW,KAAK,WAAW,CAAC,MAAM,CAAC;IACzD,QAAQ,EAAE;;gEACqB;AAIhC;IAFC,UAAU,EAAE;IACZ,MAAM,CAAC,eAAe,CAAC;;kDACG;AAI3B;IAFC,UAAU,EAAE;IACZ,MAAM,CAAC,WAAW,CAAC;;qDACM;AAI1B;IAFC,UAAU,EAAE;IACZ,SAAS,EAAE;;2DACgB;AAO5B;IALC,UAAU,EAAE;IACZ,OAAO,EAAE;IACT,YAAY,CAAC,CAAC,CAAC;IACf,IAAI,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC;IAC9B,cAAc,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;6DACY;AAI3C;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;+CACI;AAIf;IAFC,UAAU,EAAE;IACZ,QAAQ,EAAE;;8CACG;AAMd;IAJC,UAAU,EAAE;IACZ,OAAO,EAAE;IACT,YAAY,CAAC,CAAC,CAAC;IACf,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;uDACF;AAIvB;IAFC,UAAU,EAAE;IACZ,SAAS,EAAE;;yDACc;AAI1B;IAFC,UAAU,EAAE;IACZ,SAAS,EAAE;;4DACiB"}
@@ -1,4 +1,4 @@
1
1
  export declare enum TripBillingDistanceNewEnum {
2
2
  AutomatedGtoG = "Automated G to G Billing",
3
- PtoPBilling = "P to P Billing with Extra KMs"
3
+ PtoPBilling = "P to P Billing with Extras"
4
4
  }
@@ -1,6 +1,6 @@
1
1
  export var TripBillingDistanceNewEnum;
2
2
  (function (TripBillingDistanceNewEnum) {
3
3
  TripBillingDistanceNewEnum["AutomatedGtoG"] = "Automated G to G Billing";
4
- TripBillingDistanceNewEnum["PtoPBilling"] = "P to P Billing with Extra KMs";
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,2EAA6C,CAAA;AAC9C,CAAC,EAHW,0BAA0B,KAA1B,0BAA0B,QAGrC"}
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"}