@kohost/api-client 4.16.0 → 4.17.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.
@@ -8,7 +8,7 @@ declare const ticketSchema: {
8
8
  readonly title: "Ticket";
9
9
  readonly description: "A ticket is a request from a user.";
10
10
  readonly type: "object";
11
- readonly required: readonly ["id", "conversation", "requester", "status", "tags", "createdAt", "updatedAt"];
11
+ readonly required: readonly ["id", "conversation", "requester", "openedBy", "assignedTo", "status", "priority", "tags", "createdAt", "updatedAt"];
12
12
  readonly additionalProperties: false;
13
13
  readonly properties: {
14
14
  readonly id: {
@@ -34,7 +34,7 @@ declare const ticketSchema: {
34
34
  readonly items: {
35
35
  readonly type: "object";
36
36
  readonly additionalProperties: false;
37
- readonly required: readonly ["id", "discriminator", "timestamp", "body"];
37
+ readonly required: readonly ["id", "discriminator", "timestamp", "body", "author"];
38
38
  readonly properties: {
39
39
  readonly id: {
40
40
  readonly type: "string";
@@ -46,60 +46,25 @@ declare const ticketSchema: {
46
46
  readonly default: "message";
47
47
  readonly description: "The discriminator of the message.";
48
48
  };
49
- readonly authorId: {
50
- readonly type: "string";
51
- readonly description: "The ID of the author of the message.";
52
- };
53
- readonly authorName: {
54
- readonly type: "string";
55
- readonly description: "The name of the author of the message.";
56
- };
57
- readonly authorDiscriminator: {
58
- readonly type: "string";
59
- readonly enum: readonly ["user", "vendor", "system"];
60
- readonly description: "The discriminator of the author of the message.";
61
- };
62
- /**
63
- * @deprecated - use authorId instead.
64
- */
65
- readonly userId: {
66
- readonly type: "string";
67
- readonly description: "@deprecated - use authorId instead. The ID of the user who sent the message.";
68
- };
69
- /**
70
- * @deprecated - use authorName instead.
71
- */
72
- readonly userName: {
73
- readonly type: "string";
74
- readonly description: "@deprecated - use authorName instead. The name of the user who sent the message.";
75
- };
76
- /**
77
- * @deprecated - use authorId instead.
78
- */
79
- readonly vendorId: {
80
- readonly type: "string";
81
- readonly description: "@deprecated - use authorId instead. The ID of the vendor who sent the message.";
82
- };
83
- /**
84
- * @deprecated - use authorName instead.
85
- */
86
- readonly vendorName: {
87
- readonly type: "string";
88
- readonly description: "@deprecated - use authorName instead. The name of the vendor who sent the message.";
89
- };
90
- /**
91
- * @deprecated - use authorId instead.
92
- */
93
- readonly systemId: {
94
- readonly type: "string";
95
- readonly description: "@deprecated - use authorId instead. The ID of the system who sent the message.";
96
- };
97
- /**
98
- * @deprecated - use authorName instead.
99
- */
100
- readonly systemName: {
101
- readonly type: "string";
102
- readonly description: "@deprecated - use authorName instead. The name of the system who sent the message.";
49
+ readonly author: {
50
+ readonly type: "object";
51
+ readonly additionalProperties: false;
52
+ readonly required: readonly ["id", "discriminator", "name"];
53
+ readonly properties: {
54
+ readonly id: {
55
+ readonly type: "string";
56
+ readonly description: "The ID of the author of the message.";
57
+ };
58
+ readonly discriminator: {
59
+ readonly type: "string";
60
+ readonly enum: readonly ["user", "vendor", "system"];
61
+ readonly description: "The discriminator of the author of the message.";
62
+ };
63
+ readonly name: {
64
+ readonly type: "string";
65
+ readonly description: "The name of the author of the message.";
66
+ };
67
+ };
103
68
  };
104
69
  readonly timestamp: {
105
70
  readonly $ref: "definitions.json#/definitions/date";
@@ -177,6 +142,8 @@ declare const ticketSchema: {
177
142
  };
178
143
  readonly openedBy: {
179
144
  readonly type: "object";
145
+ readonly additionalProperties: false;
146
+ readonly required: readonly ["id", "discriminator", "name"];
180
147
  readonly properties: {
181
148
  readonly id: {
182
149
  readonly type: "string";
@@ -188,38 +155,12 @@ declare const ticketSchema: {
188
155
  readonly name: {
189
156
  readonly type: "string";
190
157
  };
191
- /**
192
- * @deprecated - use id instead.
193
- */
194
- readonly userId: {
195
- readonly type: "string";
196
- readonly description: "@deprecated - use id instead. The ID of the user who opened the ticket.";
197
- };
198
- /**
199
- * @deprecated - use name instead.
200
- */
201
- readonly userName: {
202
- readonly type: "string";
203
- readonly description: "@deprecated - use name instead. The name of the user who opened the ticket.";
204
- };
205
- /**
206
- * @deprecated - use id instead.
207
- */
208
- readonly systemId: {
209
- readonly type: "string";
210
- readonly description: "@deprecated - use id instead. The ID of the system who opened the ticket.";
211
- };
212
- /**
213
- * @deprecated - use name instead.
214
- */
215
- readonly systemName: {
216
- readonly type: "string";
217
- readonly description: "@deprecated - use name instead. The name of the system who opened the ticket.";
218
- };
219
158
  };
220
159
  };
221
160
  readonly requester: {
222
161
  readonly type: "object";
162
+ readonly additionalProperties: false;
163
+ readonly required: readonly ["id", "discriminator", "name"];
223
164
  readonly properties: {
224
165
  readonly id: {
225
166
  readonly type: "string";
@@ -244,98 +185,13 @@ declare const ticketSchema: {
244
185
  }];
245
186
  readonly description: "The photo of the requester.";
246
187
  };
247
- /**
248
- * @deprecated - use id instead.
249
- */
250
- readonly systemId: {
251
- readonly type: "string";
252
- readonly description: "@deprecated - use id instead. The ID of the system who requested the ticket.";
253
- };
254
- /**
255
- * @deprecated - use name instead.
256
- */
257
- readonly systemName: {
258
- readonly type: "string";
259
- readonly description: "@deprecated - use name instead. The name of the system who requested the ticket.";
260
- };
261
- /**
262
- * @deprecated - use photo instead.
263
- */
264
- readonly systemPhoto: {
265
- readonly anyOf: readonly [{
266
- readonly $ref: "mediaFile.json";
267
- }, {
268
- readonly type: "null";
269
- }, {
270
- readonly type: "string";
271
- }];
272
- readonly description: "@deprecated - use photo instead. The photo of the system who requested the ticket.";
273
- };
274
- /**
275
- * @deprecated - use id instead.
276
- */
277
- readonly userId: {
278
- readonly type: "string";
279
- readonly description: "@deprecated - use id instead. The ID of the user who requested the ticket.";
280
- };
281
- /**
282
- * @deprecated - use name instead.
283
- */
284
- readonly userName: {
285
- readonly type: "string";
286
- readonly description: "@deprecated - use name instead. The name of the user who requested the ticket.";
287
- };
288
- /**
289
- * @deprecated - use photo instead.
290
- */
291
- readonly userPhoto: {
292
- readonly anyOf: readonly [{
293
- readonly $ref: "mediaFile.json";
294
- }, {
295
- readonly type: "null";
296
- }, {
297
- readonly type: "string";
298
- }];
299
- readonly description: "@deprecated - use photo instead. The photo of the user who requested the ticket.";
300
- };
301
- /**
302
- * @deprecated - use id instead.
303
- */
304
- readonly deviceId: {
305
- readonly type: "string";
306
- };
307
- /**
308
- * @deprecated - This will be removed in a future version.
309
- */
310
- readonly roomId: {
311
- readonly type: "string";
312
- readonly description: "@deprecated - This will be removed in a future version. The ID of the room who requested the ticket.";
313
- };
314
- /**
315
- * @deprecated - This will be removed in a future version.
316
- */
317
- readonly reservationId: {
318
- readonly type: "string";
319
- readonly description: "@deprecated - This will be removed in a future version. The ID of the reservation who requested the ticket.";
320
- };
321
- /**
322
- * @deprecated - This will be removed in a future version.
323
- */
324
- readonly spaceId: {
325
- readonly type: "string";
326
- readonly description: "@deprecated - This will be removed in a future version. The ID of the space who requested the ticket.";
327
- };
328
- /**
329
- * @deprecated - This will be removed in a future version.
330
- */
331
- readonly spaceName: {
332
- readonly type: "string";
333
- readonly description: "@deprecated - This will be removed in a future version. The name of the space who requested the ticket.";
334
- };
335
188
  };
336
189
  };
337
190
  readonly assignedTo: {
338
- readonly type: "object";
191
+ readonly type: readonly ["object", "null"];
192
+ readonly default: null;
193
+ readonly additionalProperties: false;
194
+ readonly required: readonly ["id", "discriminator", "name"];
339
195
  readonly properties: {
340
196
  readonly id: {
341
197
  readonly type: "string";
@@ -360,59 +216,6 @@ declare const ticketSchema: {
360
216
  }];
361
217
  readonly description: "The photo of the assigned to.";
362
218
  };
363
- /**
364
- * @deprecated - use id instead.
365
- */
366
- readonly userId: {
367
- readonly type: "string";
368
- readonly description: "@deprecated - use id instead. The ID of the user who assigned the ticket.";
369
- };
370
- /**
371
- * @deprecated - use name instead.
372
- */
373
- readonly userName: {
374
- readonly type: "string";
375
- readonly description: "@deprecated - use name instead. The name of the user who assigned the ticket.";
376
- };
377
- /**
378
- * @deprecated - use photo instead.
379
- */
380
- readonly userPhoto: {
381
- readonly anyOf: readonly [{
382
- readonly $ref: "mediaFile.json";
383
- }, {
384
- readonly type: "null";
385
- }, {
386
- readonly type: "string";
387
- }];
388
- };
389
- /**
390
- * @deprecated - use id instead.
391
- */
392
- readonly vendorId: {
393
- readonly type: "string";
394
- readonly description: "@deprecated - use id instead. The ID of the vendor who assigned the ticket.";
395
- };
396
- /**
397
- * @deprecated - use name instead.
398
- */
399
- readonly vendorName: {
400
- readonly type: "string";
401
- readonly description: "@deprecated - use name instead. The name of the vendor who assigned the ticket.";
402
- };
403
- /**
404
- * @deprecated - use photo instead.
405
- */
406
- readonly vendorPhoto: {
407
- readonly anyOf: readonly [{
408
- readonly $ref: "mediaFile.json";
409
- }, {
410
- readonly type: "null";
411
- }, {
412
- readonly type: "string";
413
- }];
414
- readonly description: "@deprecated - use photo instead. The photo of the vendor who assigned the ticket.";
415
- };
416
219
  };
417
220
  };
418
221
  readonly notify: {
@@ -467,7 +270,7 @@ declare const ticketSchema: {
467
270
  };
468
271
  readonly discriminator: {
469
272
  readonly type: "string";
470
- readonly enum: readonly ["space", "room", "property", "customText"];
273
+ readonly enum: readonly ["space", "property", "customText"];
471
274
  };
472
275
  readonly name: {
473
276
  readonly type: "string";
@@ -481,7 +284,7 @@ declare const ticketSchema: {
481
284
  };
482
285
  readonly priority: {
483
286
  readonly type: "string";
484
- readonly enum: readonly ["low", "normal", "high"];
287
+ readonly enum: readonly ["low", "normal", "high", "critical"];
485
288
  readonly default: "normal";
486
289
  };
487
290
  readonly tags: {
@@ -499,13 +302,6 @@ declare const ticketSchema: {
499
302
  readonly ratingComment: {
500
303
  readonly type: "string";
501
304
  };
502
- /**
503
- * @deprecated - This will be removed in a future version.
504
- */
505
- readonly tipAmount: {
506
- readonly type: "string";
507
- readonly description: "@deprecated - This will be removed in a future version. The amount of the tip.";
508
- };
509
305
  readonly autoCloseAt: {
510
306
  readonly $ref: "definitions.json#/definitions/date";
511
307
  };
@@ -635,6 +635,9 @@ declare const validateTicket: ajv.ValidateFunction<{
635
635
  status: any;
636
636
  conversation: any;
637
637
  requester: any;
638
+ openedBy: any;
639
+ assignedTo: any;
640
+ priority: any;
638
641
  } & {
639
642
  id: any;
640
643
  } & {
@@ -649,6 +652,12 @@ declare const validateTicket: ajv.ValidateFunction<{
649
652
  conversation: any;
650
653
  } & {
651
654
  requester: any;
655
+ } & {
656
+ openedBy: any;
657
+ } & {
658
+ assignedTo: any;
659
+ } & {
660
+ priority: any;
652
661
  }>;
653
662
  declare const validateTimeSheet: ajv.ValidateFunction<{
654
663
  id: any;
@@ -15,20 +15,19 @@ class Ticket extends Entity {
15
15
  if (data.issueId !== void 0) this.issueId = data.issueId;
16
16
  this.conversation = data.conversation;
17
17
  if (data.subject !== void 0) this.subject = data.subject;
18
- if (data.openedBy !== void 0) this.openedBy = data.openedBy;
18
+ this.openedBy = data.openedBy;
19
19
  this.requester = data.requester;
20
- if (data.assignedTo !== void 0) this.assignedTo = data.assignedTo;
20
+ this.assignedTo = data.assignedTo;
21
21
  if (data.notify !== void 0) this.notify = data.notify;
22
22
  if (data.collaborators !== void 0)
23
23
  this.collaborators = data.collaborators;
24
24
  if (data.location !== void 0) this.location = data.location;
25
25
  this.status = data.status;
26
- if (data.priority !== void 0) this.priority = data.priority;
26
+ this.priority = data.priority;
27
27
  this.tags = data.tags;
28
28
  if (data.rating !== void 0) this.rating = data.rating;
29
29
  if (data.ratingComment !== void 0)
30
30
  this.ratingComment = data.ratingComment;
31
- if (data.tipAmount !== void 0) this.tipAmount = data.tipAmount;
32
31
  if (data.autoCloseAt !== void 0) this.autoCloseAt = data.autoCloseAt;
33
32
  if (data.scheduleDate !== void 0) this.scheduleDate = data.scheduleDate;
34
33
  this.createdAt = data.createdAt;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../.generated/models/ticket.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateTicket as validate } from \"../validate.js\";\nimport { ticketSchema, type TicketSchema } from \"../schemas/ticket.js\";\n\n/**\n * Data type for Ticket constructor - exported for backwards compatibility\n */\nexport type TicketData = TicketSchema;\n\n/**\n * A ticket is a request from a user.\n */\nexport interface Ticket extends TicketSchema {}\nexport class Ticket extends Entity {\n declare schema: typeof ticketSchema;\n declare validator: typeof validate;\n\n constructor(data: TicketSchema) {\n super(data);\n this.id = data.id;\n if (data.type !== undefined) this.type = data.type;\n if (data.number !== undefined) this.number = data.number;\n if (data.issueId !== undefined) this.issueId = data.issueId;\n this.conversation = data.conversation;\n if (data.subject !== undefined) this.subject = data.subject;\n if (data.openedBy !== undefined) this.openedBy = data.openedBy;\n this.requester = data.requester;\n if (data.assignedTo !== undefined) this.assignedTo = data.assignedTo;\n if (data.notify !== undefined) this.notify = data.notify;\n if (data.collaborators !== undefined)\n this.collaborators = data.collaborators;\n if (data.location !== undefined) this.location = data.location;\n this.status = data.status;\n if (data.priority !== undefined) this.priority = data.priority;\n this.tags = data.tags;\n if (data.rating !== undefined) this.rating = data.rating;\n if (data.ratingComment !== undefined)\n this.ratingComment = data.ratingComment;\n if (data.tipAmount !== undefined) this.tipAmount = data.tipAmount;\n if (data.autoCloseAt !== undefined) this.autoCloseAt = data.autoCloseAt;\n if (data.scheduleDate !== undefined) this.scheduleDate = data.scheduleDate;\n this.createdAt = data.createdAt;\n this.updatedAt = data.updatedAt;\n if (data.solvedAt !== undefined) this.solvedAt = data.solvedAt;\n if (data.closedAt !== undefined) this.closedAt = data.closedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n }\n}\n\nObject.defineProperty(Ticket.prototype, \"schema\", {\n value: ticketSchema,\n});\n\nObject.defineProperty(Ticket.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;AAEA,SAAS,cAAc;AACvB,SAAS,kBAAkB,gBAAgB;AAC3C,SAAS,oBAAuC;AAWzC,MAAM,eAAe,OAAO;AAAA,EAfnC,OAemC;AAAA;AAAA;AAAA,EAIjC,YAAY,MAAoB;AAC9B,UAAM,IAAI;AACV,SAAK,KAAK,KAAK;AACf,QAAI,KAAK,SAAS,OAAW,MAAK,OAAO,KAAK;AAC9C,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,SAAK,eAAe,KAAK;AACzB,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,SAAK,YAAY,KAAK;AACtB,QAAI,KAAK,eAAe,OAAW,MAAK,aAAa,KAAK;AAC1D,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,kBAAkB;AACzB,WAAK,gBAAgB,KAAK;AAC5B,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,SAAK,SAAS,KAAK;AACnB,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,SAAK,OAAO,KAAK;AACjB,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,kBAAkB;AACzB,WAAK,gBAAgB,KAAK;AAC5B,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AACxD,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAC5D,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,SAAK,YAAY,KAAK;AACtB,SAAK,YAAY,KAAK;AACtB,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AAAA,EAC1D;AACF;AAEA,OAAO,eAAe,OAAO,WAAW,UAAU;AAAA,EAChD,OAAO;AACT,CAAC;AAED,OAAO,eAAe,OAAO,WAAW,aAAa;AAAA,EACnD,KAAK,kCAAY;AACf,WAAO;AAAA,EACT,GAFK;AAGP,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../../.generated/models/ticket.ts"],"sourcesContent":["/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity.js\";\nimport { validateTicket as validate } from \"../validate.js\";\nimport { ticketSchema, type TicketSchema } from \"../schemas/ticket.js\";\n\n/**\n * Data type for Ticket constructor - exported for backwards compatibility\n */\nexport type TicketData = TicketSchema;\n\n/**\n * A ticket is a request from a user.\n */\nexport interface Ticket extends TicketSchema {}\nexport class Ticket extends Entity {\n declare schema: typeof ticketSchema;\n declare validator: typeof validate;\n\n constructor(data: TicketSchema) {\n super(data);\n this.id = data.id;\n if (data.type !== undefined) this.type = data.type;\n if (data.number !== undefined) this.number = data.number;\n if (data.issueId !== undefined) this.issueId = data.issueId;\n this.conversation = data.conversation;\n if (data.subject !== undefined) this.subject = data.subject;\n this.openedBy = data.openedBy;\n this.requester = data.requester;\n this.assignedTo = data.assignedTo;\n if (data.notify !== undefined) this.notify = data.notify;\n if (data.collaborators !== undefined)\n this.collaborators = data.collaborators;\n if (data.location !== undefined) this.location = data.location;\n this.status = data.status;\n this.priority = data.priority;\n this.tags = data.tags;\n if (data.rating !== undefined) this.rating = data.rating;\n if (data.ratingComment !== undefined)\n this.ratingComment = data.ratingComment;\n if (data.autoCloseAt !== undefined) this.autoCloseAt = data.autoCloseAt;\n if (data.scheduleDate !== undefined) this.scheduleDate = data.scheduleDate;\n this.createdAt = data.createdAt;\n this.updatedAt = data.updatedAt;\n if (data.solvedAt !== undefined) this.solvedAt = data.solvedAt;\n if (data.closedAt !== undefined) this.closedAt = data.closedAt;\n if (data.deletedAt !== undefined) this.deletedAt = data.deletedAt;\n }\n}\n\nObject.defineProperty(Ticket.prototype, \"schema\", {\n value: ticketSchema,\n});\n\nObject.defineProperty(Ticket.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;AAEA,SAAS,cAAc;AACvB,SAAS,kBAAkB,gBAAgB;AAC3C,SAAS,oBAAuC;AAWzC,MAAM,eAAe,OAAO;AAAA,EAfnC,OAemC;AAAA;AAAA;AAAA,EAIjC,YAAY,MAAoB;AAC9B,UAAM,IAAI;AACV,SAAK,KAAK,KAAK;AACf,QAAI,KAAK,SAAS,OAAW,MAAK,OAAO,KAAK;AAC9C,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,SAAK,eAAe,KAAK;AACzB,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,SAAK,WAAW,KAAK;AACrB,SAAK,YAAY,KAAK;AACtB,SAAK,aAAa,KAAK;AACvB,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,kBAAkB;AACzB,WAAK,gBAAgB,KAAK;AAC5B,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,SAAK,SAAS,KAAK;AACnB,SAAK,WAAW,KAAK;AACrB,SAAK,OAAO,KAAK;AACjB,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,kBAAkB;AACzB,WAAK,gBAAgB,KAAK;AAC5B,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAC5D,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,SAAK,YAAY,KAAK;AACtB,SAAK,YAAY,KAAK;AACtB,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AAAA,EAC1D;AACF;AAEA,OAAO,eAAe,OAAO,WAAW,UAAU;AAAA,EAChD,OAAO;AACT,CAAC;AAED,OAAO,eAAe,OAAO,WAAW,aAAa;AAAA,EACnD,KAAK,kCAAY;AACf,WAAO;AAAA,EACT,GAFK;AAGP,CAAC;","names":[]}
@@ -45,12 +45,18 @@ declare const emailMessageSchema: {
45
45
  };
46
46
  readonly headers: {
47
47
  readonly type: "object";
48
+ readonly additionalProperties: {
49
+ readonly type: "string";
50
+ };
51
+ readonly description: "Additional headers for the email message, key/value pairs";
48
52
  };
49
53
  readonly replyTo: {
50
54
  readonly type: readonly ["string", "array"];
51
55
  };
52
56
  readonly appData: {
53
57
  readonly type: "object";
58
+ readonly additionalProperties: true;
59
+ readonly description: "Additional data for the email message, used for custom data";
54
60
  };
55
61
  readonly createdAt: {
56
62
  readonly $ref: "definitions.json#/definitions/date";
@@ -56,13 +56,17 @@ const emailMessageSchema = {
56
56
  type: "string"
57
57
  },
58
58
  headers: {
59
- type: "object"
59
+ type: "object",
60
+ additionalProperties: { type: "string" },
61
+ description: "Additional headers for the email message, key/value pairs"
60
62
  },
61
63
  replyTo: {
62
64
  type: ["string", "array"]
63
65
  },
64
66
  appData: {
65
- type: "object"
67
+ type: "object",
68
+ additionalProperties: true,
69
+ description: "Additional data for the email message, used for custom data"
66
70
  },
67
71
  createdAt: {
68
72
  $ref: "definitions.json#/definitions/date"
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../.generated/schemas/emailMessage.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const emailMessageSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"emailMessage.json\",\n title: \"Email Message\",\n type: \"object\",\n required: [\"id\", \"type\", \"to\", \"from\", \"status\", \"subject\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n type: {\n type: \"string\",\n default: \"emailMessage\",\n enum: [\"emailMessage\"],\n },\n to: {\n type: \"string\",\n },\n from: {\n type: \"string\",\n description: \"Must be in the format of 'Sender <email@example.com>\",\n },\n subject: {\n type: \"string\",\n },\n status: {\n type: \"string\",\n enum: [\n \"queued\",\n \"sending\",\n \"sent\",\n \"deferred\",\n \"delivered\",\n \"undelivered\",\n \"bounced\",\n \"blocked\",\n \"receiving\",\n \"received\",\n \"opened\",\n \"clicked\",\n \"unsubscribed\",\n \"spamReport\",\n ],\n },\n statusMessage: {\n type: \"string\",\n },\n html: {\n type: \"string\",\n },\n text: {\n type: \"string\",\n },\n driver: {\n type: \"string\",\n },\n headers: {\n type: \"object\",\n },\n replyTo: {\n type: [\"string\", \"array\"],\n },\n appData: {\n type: \"object\",\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n },\n} as const;\n\nexport type EmailMessageSchema = FromSchema<\n typeof emailMessageSchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAGO,MAAM,qBAAqB;AAAA,EAChC,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,MAAM;AAAA,EACN,UAAU,CAAC,MAAM,QAAQ,MAAM,QAAQ,UAAU,SAAS;AAAA,EAC1D,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA,MACT,MAAM,CAAC,cAAc;AAAA,IACvB;AAAA,IACA,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,IACR;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,MAAM;AAAA,QACJ;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,IACA,eAAe;AAAA,MACb,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,IACR;AAAA,IACA,SAAS;AAAA,MACP,MAAM,CAAC,UAAU,OAAO;AAAA,IAC1B;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,EACF;AACF;","names":[]}
1
+ {"version":3,"sources":["../../../.generated/schemas/emailMessage.ts"],"sourcesContent":["import defs, { ISODateString } from \"./definitions\";\nimport type { FromSchema } from \"json-schema-to-ts\";\n\nexport const emailMessageSchema = {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"emailMessage.json\",\n title: \"Email Message\",\n type: \"object\",\n required: [\"id\", \"type\", \"to\", \"from\", \"status\", \"subject\"],\n additionalProperties: false,\n properties: {\n id: {\n $ref: \"definitions.json#/definitions/id\",\n },\n type: {\n type: \"string\",\n default: \"emailMessage\",\n enum: [\"emailMessage\"],\n },\n to: {\n type: \"string\",\n },\n from: {\n type: \"string\",\n description: \"Must be in the format of 'Sender <email@example.com>\",\n },\n subject: {\n type: \"string\",\n },\n status: {\n type: \"string\",\n enum: [\n \"queued\",\n \"sending\",\n \"sent\",\n \"deferred\",\n \"delivered\",\n \"undelivered\",\n \"bounced\",\n \"blocked\",\n \"receiving\",\n \"received\",\n \"opened\",\n \"clicked\",\n \"unsubscribed\",\n \"spamReport\",\n ],\n },\n statusMessage: {\n type: \"string\",\n },\n html: {\n type: \"string\",\n },\n text: {\n type: \"string\",\n },\n driver: {\n type: \"string\",\n },\n headers: {\n type: \"object\",\n additionalProperties: { type: \"string\" },\n description: \"Additional headers for the email message, key/value pairs\",\n },\n replyTo: {\n type: [\"string\", \"array\"],\n },\n appData: {\n type: \"object\",\n additionalProperties: true,\n description:\n \"Additional data for the email message, used for custom data\",\n },\n createdAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n updatedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n deletedAt: {\n $ref: \"definitions.json#/definitions/date\",\n },\n systemId: {\n $ref: \"definitions.json#/definitions/systemId\",\n },\n },\n} as const;\n\nexport type EmailMessageSchema = FromSchema<\n typeof emailMessageSchema,\n {\n references: [typeof defs];\n deserialize: [\n {\n pattern: {\n format: \"date-time\";\n };\n output: Date | ISODateString;\n },\n ];\n }\n>;\n"],"mappings":"AAGO,MAAM,qBAAqB;AAAA,EAChC,SAAS;AAAA,EACT,KAAK;AAAA,EACL,OAAO;AAAA,EACP,MAAM;AAAA,EACN,UAAU,CAAC,MAAM,QAAQ,MAAM,QAAQ,UAAU,SAAS;AAAA,EAC1D,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,SAAS;AAAA,MACT,MAAM,CAAC,cAAc;AAAA,IACvB;AAAA,IACA,IAAI;AAAA,MACF,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,aAAa;AAAA,IACf;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,IACR;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,MACN,MAAM;AAAA,QACJ;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,IACA,eAAe;AAAA,MACb,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,IACA,QAAQ;AAAA,MACN,MAAM;AAAA,IACR;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,sBAAsB,EAAE,MAAM,SAAS;AAAA,MACvC,aAAa;AAAA,IACf;AAAA,IACA,SAAS;AAAA,MACP,MAAM,CAAC,UAAU,OAAO;AAAA,IAC1B;AAAA,IACA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,sBAAsB;AAAA,MACtB,aACE;AAAA,IACJ;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,WAAW;AAAA,MACT,MAAM;AAAA,IACR;AAAA,IACA,UAAU;AAAA,MACR,MAAM;AAAA,IACR;AAAA,EACF;AACF;","names":[]}