@alba-cars/common-modules 1.7.1 → 1.7.2

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.
@@ -3,7 +3,7 @@ export declare class CreateTicketDto {
3
3
  userId: string;
4
4
  requestType: TicketRequestType;
5
5
  message: string;
6
- assignedSalesAgentId: string;
6
+ assignedSalesAgentId?: string;
7
7
  agentName: string;
8
8
  agentPhoneNumber: string;
9
9
  }
@@ -20,9 +20,9 @@ export declare class TicketDto {
20
20
  userId: string;
21
21
  requestType: TicketRequestType;
22
22
  message: string;
23
- assignedSalesAgentId: string;
24
- agentName: string;
25
- agentPhoneNumber: string;
23
+ assignedSalesAgentId?: string;
24
+ agentName?: string;
25
+ agentPhoneNumber?: string;
26
26
  status: TicketStatusType;
27
27
  createdAt: Date;
28
28
  updatedAt: Date;
@@ -40,9 +40,9 @@ export declare class TicketGetDTO {
40
40
  userId: string;
41
41
  requestType: TicketRequestType;
42
42
  message: string;
43
- assignedSalesAgentId: string;
43
+ assignedSalesAgentId?: string;
44
44
  agentName: string;
45
- agentPhoneNumber: string;
45
+ agentPhoneNumber?: string;
46
46
  status: TicketStatusType;
47
47
  constructor();
48
48
  }
@@ -29,6 +29,7 @@ __decorate([
29
29
  ], CreateTicketDto.prototype, "message", void 0);
30
30
  __decorate([
31
31
  (0, class_validator_1.IsUUID)(),
32
+ (0, class_validator_1.IsOptional)(),
32
33
  __metadata("design:type", String)
33
34
  ], CreateTicketDto.prototype, "assignedSalesAgentId", void 0);
34
35
  __decorate([
@@ -93,14 +94,17 @@ __decorate([
93
94
  ], TicketDto.prototype, "message", void 0);
94
95
  __decorate([
95
96
  (0, class_validator_1.IsUUID)(),
97
+ (0, class_validator_1.IsOptional)(),
96
98
  __metadata("design:type", String)
97
99
  ], TicketDto.prototype, "assignedSalesAgentId", void 0);
98
100
  __decorate([
99
101
  (0, class_validator_1.IsString)(),
102
+ (0, class_validator_1.IsOptional)(),
100
103
  __metadata("design:type", String)
101
104
  ], TicketDto.prototype, "agentName", void 0);
102
105
  __decorate([
103
106
  (0, class_validator_1.IsString)(),
107
+ (0, class_validator_1.IsOptional)(),
104
108
  __metadata("design:type", String)
105
109
  ], TicketDto.prototype, "agentPhoneNumber", void 0);
106
110
  __decorate([
@@ -132,7 +136,7 @@ class TicketGetDTO {
132
136
  this.userId = '';
133
137
  this.requestType = enums_1.TicketRequestType.CAR_VIEWING;
134
138
  this.message = '';
135
- this.assignedSalesAgentId = '';
139
+ this.assignedSalesAgentId;
136
140
  this.agentName = '';
137
141
  this.agentPhoneNumber = '';
138
142
  this.status = enums_1.TicketStatusType.OPEN;
@@ -191,6 +195,7 @@ __decorate([
191
195
  ], TicketGetDTO.prototype, "message", void 0);
192
196
  __decorate([
193
197
  (0, class_validator_1.IsUUID)(),
198
+ (0, class_validator_1.IsOptional)(),
194
199
  __metadata("design:type", String)
195
200
  ], TicketGetDTO.prototype, "assignedSalesAgentId", void 0);
196
201
  __decorate([
@@ -199,6 +204,7 @@ __decorate([
199
204
  ], TicketGetDTO.prototype, "agentName", void 0);
200
205
  __decorate([
201
206
  (0, class_validator_1.IsString)(),
207
+ (0, class_validator_1.IsOptional)(),
202
208
  __metadata("design:type", String)
203
209
  ], TicketGetDTO.prototype, "agentPhoneNumber", void 0);
204
210
  __decorate([
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.7.1",
6
+ "version": "1.7.2",
7
7
  "description": "A package containing DTOs, validation classes and common modules and interfaces for Alba Cars",
8
8
  "main": "dist/index.js",
9
9
  "types": "dist/index.d.ts",