@deliverart/sdk-js-printer 2.8.3 → 2.8.5

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/dist/index.cjs CHANGED
@@ -11204,24 +11204,31 @@ var printerSchema = external_exports.object({
11204
11204
  ip: external_exports.ipv4(),
11205
11205
  tls: external_exports.boolean(),
11206
11206
  protocol: import_sdk_js_global_types.printerProtocolSchema,
11207
+ receiptProfile: import_sdk_js_global_types.printerReceiptProfileSchema,
11207
11208
  createdAt: import_sdk_js_global_types.datetimeSchema,
11208
11209
  updatedAt: import_sdk_js_global_types.datetimeSchema
11209
11210
  });
11210
11211
  var writablePrinterSchema = printerSchema.pick({
11211
11212
  name: true,
11212
11213
  ip: true,
11213
- protocol: true
11214
+ protocol: true,
11215
+ receiptProfile: true,
11216
+ tls: true
11214
11217
  });
11215
11218
  var writableCreatePrinterSchema = printerSchema.pick({
11216
11219
  pointOfSale: true,
11217
11220
  name: true,
11218
11221
  ip: true,
11219
- protocol: true
11222
+ protocol: true,
11223
+ receiptProfile: true,
11224
+ tls: true
11220
11225
  });
11221
11226
  var printersQuerySchema = external_exports.object({
11222
11227
  id: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
11223
11228
  name: external_exports.string().optional(),
11229
+ tls: external_exports.boolean().optional(),
11224
11230
  protocol: external_exports.union([import_sdk_js_global_types.printerProtocolSchema, external_exports.array(import_sdk_js_global_types.printerProtocolSchema)]).optional(),
11231
+ receiptProfile: external_exports.union([import_sdk_js_global_types.printerReceiptProfileSchema, external_exports.array(import_sdk_js_global_types.printerReceiptProfileSchema)]).optional(),
11225
11232
  "order[name]": import_sdk_js_global_types.sortDirSchema.optional(),
11226
11233
  "order[createdAt]": import_sdk_js_global_types.sortDirSchema.optional(),
11227
11234
  "order[updatedAt]": import_sdk_js_global_types.sortDirSchema.optional(),
package/dist/index.d.cts CHANGED
@@ -11,6 +11,12 @@ declare const printerSchema: z.ZodObject<{
11
11
  protocol: z.ZodEnum<{
12
12
  esc_pos: "esc_pos";
13
13
  }>;
14
+ receiptProfile: z.ZodEnum<{
15
+ "80mm_42col": "80mm_42col";
16
+ "80mm_48col": "80mm_48col";
17
+ "58mm_32col": "58mm_32col";
18
+ "58mm_35col": "58mm_35col";
19
+ }>;
14
20
  createdAt: z.ZodString;
15
21
  updatedAt: z.ZodString;
16
22
  }, z.core.$strip>;
@@ -19,8 +25,15 @@ declare const writablePrinterSchema: z.ZodObject<{
19
25
  protocol: z.ZodEnum<{
20
26
  esc_pos: "esc_pos";
21
27
  }>;
28
+ receiptProfile: z.ZodEnum<{
29
+ "80mm_42col": "80mm_42col";
30
+ "80mm_48col": "80mm_48col";
31
+ "58mm_32col": "58mm_32col";
32
+ "58mm_35col": "58mm_35col";
33
+ }>;
22
34
  name: z.ZodString;
23
35
  ip: z.ZodIPv4;
36
+ tls: z.ZodBoolean;
24
37
  }, z.core.$strip>;
25
38
  type WritablePrinter = z.infer<typeof writablePrinterSchema>;
26
39
  declare const writableCreatePrinterSchema: z.ZodObject<{
@@ -28,18 +41,37 @@ declare const writableCreatePrinterSchema: z.ZodObject<{
28
41
  protocol: z.ZodEnum<{
29
42
  esc_pos: "esc_pos";
30
43
  }>;
44
+ receiptProfile: z.ZodEnum<{
45
+ "80mm_42col": "80mm_42col";
46
+ "80mm_48col": "80mm_48col";
47
+ "58mm_32col": "58mm_32col";
48
+ "58mm_35col": "58mm_35col";
49
+ }>;
31
50
  name: z.ZodString;
32
51
  ip: z.ZodIPv4;
52
+ tls: z.ZodBoolean;
33
53
  }, z.core.$strip>;
34
54
  type WritableCreatePrinter = z.infer<typeof writableCreatePrinterSchema>;
35
55
  declare const printersQuerySchema: z.ZodObject<{
36
56
  id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
37
57
  name: z.ZodOptional<z.ZodString>;
58
+ tls: z.ZodOptional<z.ZodBoolean>;
38
59
  protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
39
60
  esc_pos: "esc_pos";
40
61
  }>, z.ZodArray<z.ZodEnum<{
41
62
  esc_pos: "esc_pos";
42
63
  }>>]>>;
64
+ receiptProfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
65
+ "80mm_42col": "80mm_42col";
66
+ "80mm_48col": "80mm_48col";
67
+ "58mm_32col": "58mm_32col";
68
+ "58mm_35col": "58mm_35col";
69
+ }>, z.ZodArray<z.ZodEnum<{
70
+ "80mm_42col": "80mm_42col";
71
+ "80mm_48col": "80mm_48col";
72
+ "58mm_32col": "58mm_32col";
73
+ "58mm_35col": "58mm_35col";
74
+ }>>]>>;
43
75
  'order[name]': z.ZodOptional<z.ZodEnum<{
44
76
  asc: "asc";
45
77
  desc: "desc";
@@ -69,8 +101,15 @@ declare const createPrinterInputSchema: z.ZodObject<{
69
101
  protocol: z.ZodNonOptional<z.ZodEnum<{
70
102
  esc_pos: "esc_pos";
71
103
  }>>;
104
+ receiptProfile: z.ZodNonOptional<z.ZodEnum<{
105
+ "80mm_42col": "80mm_42col";
106
+ "80mm_48col": "80mm_48col";
107
+ "58mm_32col": "58mm_32col";
108
+ "58mm_35col": "58mm_35col";
109
+ }>>;
72
110
  name: z.ZodNonOptional<z.ZodString>;
73
111
  ip: z.ZodNonOptional<z.ZodIPv4>;
112
+ tls: z.ZodNonOptional<z.ZodBoolean>;
74
113
  }, z.core.$strip>;
75
114
  type CreatePrinterInput = z.input<typeof createPrinterInputSchema>;
76
115
  declare const createPrinterResponseSchema: z.ZodObject<{
@@ -82,6 +121,12 @@ declare const createPrinterResponseSchema: z.ZodObject<{
82
121
  protocol: z.ZodEnum<{
83
122
  esc_pos: "esc_pos";
84
123
  }>;
124
+ receiptProfile: z.ZodEnum<{
125
+ "80mm_42col": "80mm_42col";
126
+ "80mm_48col": "80mm_48col";
127
+ "58mm_32col": "58mm_32col";
128
+ "58mm_35col": "58mm_35col";
129
+ }>;
85
130
  createdAt: z.ZodString;
86
131
  updatedAt: z.ZodString;
87
132
  }, z.core.$strip>;
@@ -95,8 +140,15 @@ declare class CreatePrinter extends AbstractApiRequest<typeof createPrinterInput
95
140
  protocol: z.ZodNonOptional<z.ZodEnum<{
96
141
  esc_pos: "esc_pos";
97
142
  }>>;
143
+ receiptProfile: z.ZodNonOptional<z.ZodEnum<{
144
+ "80mm_42col": "80mm_42col";
145
+ "80mm_48col": "80mm_48col";
146
+ "58mm_32col": "58mm_32col";
147
+ "58mm_35col": "58mm_35col";
148
+ }>>;
98
149
  name: z.ZodNonOptional<z.ZodString>;
99
150
  ip: z.ZodNonOptional<z.ZodIPv4>;
151
+ tls: z.ZodNonOptional<z.ZodBoolean>;
100
152
  }, z.core.$strip>;
101
153
  readonly outputSchema: z.ZodObject<{
102
154
  id: z.ZodString;
@@ -107,6 +159,12 @@ declare class CreatePrinter extends AbstractApiRequest<typeof createPrinterInput
107
159
  protocol: z.ZodEnum<{
108
160
  esc_pos: "esc_pos";
109
161
  }>;
162
+ receiptProfile: z.ZodEnum<{
163
+ "80mm_42col": "80mm_42col";
164
+ "80mm_48col": "80mm_48col";
165
+ "58mm_32col": "58mm_32col";
166
+ "58mm_35col": "58mm_35col";
167
+ }>;
110
168
  createdAt: z.ZodString;
111
169
  updatedAt: z.ZodString;
112
170
  }, z.core.$strip>;
@@ -142,6 +200,12 @@ declare const getPrinterDetailsResponseSchema: z.ZodObject<{
142
200
  protocol: z.ZodEnum<{
143
201
  esc_pos: "esc_pos";
144
202
  }>;
203
+ receiptProfile: z.ZodEnum<{
204
+ "80mm_42col": "80mm_42col";
205
+ "80mm_48col": "80mm_48col";
206
+ "58mm_32col": "58mm_32col";
207
+ "58mm_35col": "58mm_35col";
208
+ }>;
145
209
  createdAt: z.ZodString;
146
210
  updatedAt: z.ZodString;
147
211
  }, z.core.$strip>;
@@ -160,6 +224,12 @@ declare class GetPrinterDetails extends AbstractApiRequest<typeof getPrinterDeta
160
224
  protocol: z.ZodEnum<{
161
225
  esc_pos: "esc_pos";
162
226
  }>;
227
+ receiptProfile: z.ZodEnum<{
228
+ "80mm_42col": "80mm_42col";
229
+ "80mm_48col": "80mm_48col";
230
+ "58mm_32col": "58mm_32col";
231
+ "58mm_35col": "58mm_35col";
232
+ }>;
163
233
  createdAt: z.ZodString;
164
234
  updatedAt: z.ZodString;
165
235
  }, z.core.$strip>;
@@ -173,11 +243,23 @@ declare class GetPrinterDetails extends AbstractApiRequest<typeof getPrinterDeta
173
243
  declare const getPrintersQuerySchema: z.ZodObject<{
174
244
  id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
175
245
  name: z.ZodOptional<z.ZodString>;
246
+ tls: z.ZodOptional<z.ZodBoolean>;
176
247
  protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
177
248
  esc_pos: "esc_pos";
178
249
  }>, z.ZodArray<z.ZodEnum<{
179
250
  esc_pos: "esc_pos";
180
251
  }>>]>>;
252
+ receiptProfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
253
+ "80mm_42col": "80mm_42col";
254
+ "80mm_48col": "80mm_48col";
255
+ "58mm_32col": "58mm_32col";
256
+ "58mm_35col": "58mm_35col";
257
+ }>, z.ZodArray<z.ZodEnum<{
258
+ "80mm_42col": "80mm_42col";
259
+ "80mm_48col": "80mm_48col";
260
+ "58mm_32col": "58mm_32col";
261
+ "58mm_35col": "58mm_35col";
262
+ }>>]>>;
181
263
  'order[name]': z.ZodOptional<z.ZodEnum<{
182
264
  asc: "asc";
183
265
  desc: "desc";
@@ -213,6 +295,12 @@ declare const getPrintersResponseSchema: z.ZodObject<{
213
295
  protocol: z.ZodEnum<{
214
296
  esc_pos: "esc_pos";
215
297
  }>;
298
+ receiptProfile: z.ZodEnum<{
299
+ "80mm_42col": "80mm_42col";
300
+ "80mm_48col": "80mm_48col";
301
+ "58mm_32col": "58mm_32col";
302
+ "58mm_35col": "58mm_35col";
303
+ }>;
216
304
  createdAt: z.ZodString;
217
305
  updatedAt: z.ZodString;
218
306
  }, z.core.$strip>>;
@@ -241,6 +329,12 @@ declare class GetPrinters extends AbstractApiRequest<typeof getPrintersInputSche
241
329
  protocol: z.ZodEnum<{
242
330
  esc_pos: "esc_pos";
243
331
  }>;
332
+ receiptProfile: z.ZodEnum<{
333
+ "80mm_42col": "80mm_42col";
334
+ "80mm_48col": "80mm_48col";
335
+ "58mm_32col": "58mm_32col";
336
+ "58mm_35col": "58mm_35col";
337
+ }>;
244
338
  createdAt: z.ZodString;
245
339
  updatedAt: z.ZodString;
246
340
  }, z.core.$strip>>;
@@ -256,11 +350,23 @@ declare class GetPrinters extends AbstractApiRequest<typeof getPrintersInputSche
256
350
  readonly querySchema: z.ZodObject<{
257
351
  id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
258
352
  name: z.ZodOptional<z.ZodString>;
353
+ tls: z.ZodOptional<z.ZodBoolean>;
259
354
  protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
260
355
  esc_pos: "esc_pos";
261
356
  }>, z.ZodArray<z.ZodEnum<{
262
357
  esc_pos: "esc_pos";
263
358
  }>>]>>;
359
+ receiptProfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
360
+ "80mm_42col": "80mm_42col";
361
+ "80mm_48col": "80mm_48col";
362
+ "58mm_32col": "58mm_32col";
363
+ "58mm_35col": "58mm_35col";
364
+ }>, z.ZodArray<z.ZodEnum<{
365
+ "80mm_42col": "80mm_42col";
366
+ "80mm_48col": "80mm_48col";
367
+ "58mm_32col": "58mm_32col";
368
+ "58mm_35col": "58mm_35col";
369
+ }>>]>>;
264
370
  'order[name]': z.ZodOptional<z.ZodEnum<{
265
371
  asc: "asc";
266
372
  desc: "desc";
@@ -293,6 +399,12 @@ declare class GetPrinters extends AbstractApiRequest<typeof getPrintersInputSche
293
399
  protocol: z.ZodEnum<{
294
400
  esc_pos: "esc_pos";
295
401
  }>;
402
+ receiptProfile: z.ZodEnum<{
403
+ "80mm_42col": "80mm_42col";
404
+ "80mm_48col": "80mm_48col";
405
+ "58mm_32col": "58mm_32col";
406
+ "58mm_35col": "58mm_35col";
407
+ }>;
296
408
  createdAt: z.ZodString;
297
409
  updatedAt: z.ZodString;
298
410
  }, z.core.$strip>;
@@ -306,11 +418,23 @@ declare class GetPrinters extends AbstractApiRequest<typeof getPrintersInputSche
306
418
  declare const getPrintersFromPointOfSaleQuerySchema: z.ZodObject<{
307
419
  id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
308
420
  name: z.ZodOptional<z.ZodString>;
421
+ tls: z.ZodOptional<z.ZodBoolean>;
309
422
  protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
310
423
  esc_pos: "esc_pos";
311
424
  }>, z.ZodArray<z.ZodEnum<{
312
425
  esc_pos: "esc_pos";
313
426
  }>>]>>;
427
+ receiptProfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
428
+ "80mm_42col": "80mm_42col";
429
+ "80mm_48col": "80mm_48col";
430
+ "58mm_32col": "58mm_32col";
431
+ "58mm_35col": "58mm_35col";
432
+ }>, z.ZodArray<z.ZodEnum<{
433
+ "80mm_42col": "80mm_42col";
434
+ "80mm_48col": "80mm_48col";
435
+ "58mm_32col": "58mm_32col";
436
+ "58mm_35col": "58mm_35col";
437
+ }>>]>>;
314
438
  'order[name]': z.ZodOptional<z.ZodEnum<{
315
439
  asc: "asc";
316
440
  desc: "desc";
@@ -345,6 +469,12 @@ declare const getPrintersFromPointOfSaleResponseSchema: z.ZodArray<z.ZodObject<{
345
469
  protocol: z.ZodEnum<{
346
470
  esc_pos: "esc_pos";
347
471
  }>;
472
+ receiptProfile: z.ZodEnum<{
473
+ "80mm_42col": "80mm_42col";
474
+ "80mm_48col": "80mm_48col";
475
+ "58mm_32col": "58mm_32col";
476
+ "58mm_35col": "58mm_35col";
477
+ }>;
348
478
  createdAt: z.ZodString;
349
479
  updatedAt: z.ZodString;
350
480
  }, z.core.$strip>>;
@@ -363,17 +493,35 @@ declare class GetPrintersFromPointOfSale extends AbstractApiRequest<typeof getPr
363
493
  protocol: z.ZodEnum<{
364
494
  esc_pos: "esc_pos";
365
495
  }>;
496
+ receiptProfile: z.ZodEnum<{
497
+ "80mm_42col": "80mm_42col";
498
+ "80mm_48col": "80mm_48col";
499
+ "58mm_32col": "58mm_32col";
500
+ "58mm_35col": "58mm_35col";
501
+ }>;
366
502
  createdAt: z.ZodString;
367
503
  updatedAt: z.ZodString;
368
504
  }, z.core.$strip>>;
369
505
  readonly querySchema: z.ZodObject<{
370
506
  id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
371
507
  name: z.ZodOptional<z.ZodString>;
508
+ tls: z.ZodOptional<z.ZodBoolean>;
372
509
  protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
373
510
  esc_pos: "esc_pos";
374
511
  }>, z.ZodArray<z.ZodEnum<{
375
512
  esc_pos: "esc_pos";
376
513
  }>>]>>;
514
+ receiptProfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
515
+ "80mm_42col": "80mm_42col";
516
+ "80mm_48col": "80mm_48col";
517
+ "58mm_32col": "58mm_32col";
518
+ "58mm_35col": "58mm_35col";
519
+ }>, z.ZodArray<z.ZodEnum<{
520
+ "80mm_42col": "80mm_42col";
521
+ "80mm_48col": "80mm_48col";
522
+ "58mm_32col": "58mm_32col";
523
+ "58mm_35col": "58mm_35col";
524
+ }>>]>>;
377
525
  'order[name]': z.ZodOptional<z.ZodEnum<{
378
526
  asc: "asc";
379
527
  desc: "desc";
@@ -406,6 +554,12 @@ declare class GetPrintersFromPointOfSale extends AbstractApiRequest<typeof getPr
406
554
  protocol: z.ZodEnum<{
407
555
  esc_pos: "esc_pos";
408
556
  }>;
557
+ receiptProfile: z.ZodEnum<{
558
+ "80mm_42col": "80mm_42col";
559
+ "80mm_48col": "80mm_48col";
560
+ "58mm_32col": "58mm_32col";
561
+ "58mm_35col": "58mm_35col";
562
+ }>;
409
563
  createdAt: z.ZodString;
410
564
  updatedAt: z.ZodString;
411
565
  }, z.core.$strip>;
@@ -421,8 +575,15 @@ declare const updatePrinterInputSchema: z.ZodObject<{
421
575
  protocol: z.ZodOptional<z.ZodEnum<{
422
576
  esc_pos: "esc_pos";
423
577
  }>>;
578
+ receiptProfile: z.ZodOptional<z.ZodEnum<{
579
+ "80mm_42col": "80mm_42col";
580
+ "80mm_48col": "80mm_48col";
581
+ "58mm_32col": "58mm_32col";
582
+ "58mm_35col": "58mm_35col";
583
+ }>>;
424
584
  name: z.ZodOptional<z.ZodString>;
425
585
  ip: z.ZodOptional<z.ZodIPv4>;
586
+ tls: z.ZodOptional<z.ZodBoolean>;
426
587
  }, z.core.$strip>;
427
588
  type UpdatePrinterInput = z.input<typeof updatePrinterInputSchema>;
428
589
  declare const updatePrinterResponseSchema: z.ZodObject<{
@@ -434,6 +595,12 @@ declare const updatePrinterResponseSchema: z.ZodObject<{
434
595
  protocol: z.ZodEnum<{
435
596
  esc_pos: "esc_pos";
436
597
  }>;
598
+ receiptProfile: z.ZodEnum<{
599
+ "80mm_42col": "80mm_42col";
600
+ "80mm_48col": "80mm_48col";
601
+ "58mm_32col": "58mm_32col";
602
+ "58mm_35col": "58mm_35col";
603
+ }>;
437
604
  createdAt: z.ZodString;
438
605
  updatedAt: z.ZodString;
439
606
  }, z.core.$strip>;
@@ -446,8 +613,15 @@ declare class UpdatePrinter extends AbstractApiRequest<typeof updatePrinterInput
446
613
  protocol: z.ZodOptional<z.ZodEnum<{
447
614
  esc_pos: "esc_pos";
448
615
  }>>;
616
+ receiptProfile: z.ZodOptional<z.ZodEnum<{
617
+ "80mm_42col": "80mm_42col";
618
+ "80mm_48col": "80mm_48col";
619
+ "58mm_32col": "58mm_32col";
620
+ "58mm_35col": "58mm_35col";
621
+ }>>;
449
622
  name: z.ZodOptional<z.ZodString>;
450
623
  ip: z.ZodOptional<z.ZodIPv4>;
624
+ tls: z.ZodOptional<z.ZodBoolean>;
451
625
  }, z.core.$strip>;
452
626
  readonly outputSchema: z.ZodObject<{
453
627
  id: z.ZodString;
@@ -458,6 +632,12 @@ declare class UpdatePrinter extends AbstractApiRequest<typeof updatePrinterInput
458
632
  protocol: z.ZodEnum<{
459
633
  esc_pos: "esc_pos";
460
634
  }>;
635
+ receiptProfile: z.ZodEnum<{
636
+ "80mm_42col": "80mm_42col";
637
+ "80mm_48col": "80mm_48col";
638
+ "58mm_32col": "58mm_32col";
639
+ "58mm_35col": "58mm_35col";
640
+ }>;
461
641
  createdAt: z.ZodString;
462
642
  updatedAt: z.ZodString;
463
643
  }, z.core.$strip>;
package/dist/index.d.ts CHANGED
@@ -11,6 +11,12 @@ declare const printerSchema: z.ZodObject<{
11
11
  protocol: z.ZodEnum<{
12
12
  esc_pos: "esc_pos";
13
13
  }>;
14
+ receiptProfile: z.ZodEnum<{
15
+ "80mm_42col": "80mm_42col";
16
+ "80mm_48col": "80mm_48col";
17
+ "58mm_32col": "58mm_32col";
18
+ "58mm_35col": "58mm_35col";
19
+ }>;
14
20
  createdAt: z.ZodString;
15
21
  updatedAt: z.ZodString;
16
22
  }, z.core.$strip>;
@@ -19,8 +25,15 @@ declare const writablePrinterSchema: z.ZodObject<{
19
25
  protocol: z.ZodEnum<{
20
26
  esc_pos: "esc_pos";
21
27
  }>;
28
+ receiptProfile: z.ZodEnum<{
29
+ "80mm_42col": "80mm_42col";
30
+ "80mm_48col": "80mm_48col";
31
+ "58mm_32col": "58mm_32col";
32
+ "58mm_35col": "58mm_35col";
33
+ }>;
22
34
  name: z.ZodString;
23
35
  ip: z.ZodIPv4;
36
+ tls: z.ZodBoolean;
24
37
  }, z.core.$strip>;
25
38
  type WritablePrinter = z.infer<typeof writablePrinterSchema>;
26
39
  declare const writableCreatePrinterSchema: z.ZodObject<{
@@ -28,18 +41,37 @@ declare const writableCreatePrinterSchema: z.ZodObject<{
28
41
  protocol: z.ZodEnum<{
29
42
  esc_pos: "esc_pos";
30
43
  }>;
44
+ receiptProfile: z.ZodEnum<{
45
+ "80mm_42col": "80mm_42col";
46
+ "80mm_48col": "80mm_48col";
47
+ "58mm_32col": "58mm_32col";
48
+ "58mm_35col": "58mm_35col";
49
+ }>;
31
50
  name: z.ZodString;
32
51
  ip: z.ZodIPv4;
52
+ tls: z.ZodBoolean;
33
53
  }, z.core.$strip>;
34
54
  type WritableCreatePrinter = z.infer<typeof writableCreatePrinterSchema>;
35
55
  declare const printersQuerySchema: z.ZodObject<{
36
56
  id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
37
57
  name: z.ZodOptional<z.ZodString>;
58
+ tls: z.ZodOptional<z.ZodBoolean>;
38
59
  protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
39
60
  esc_pos: "esc_pos";
40
61
  }>, z.ZodArray<z.ZodEnum<{
41
62
  esc_pos: "esc_pos";
42
63
  }>>]>>;
64
+ receiptProfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
65
+ "80mm_42col": "80mm_42col";
66
+ "80mm_48col": "80mm_48col";
67
+ "58mm_32col": "58mm_32col";
68
+ "58mm_35col": "58mm_35col";
69
+ }>, z.ZodArray<z.ZodEnum<{
70
+ "80mm_42col": "80mm_42col";
71
+ "80mm_48col": "80mm_48col";
72
+ "58mm_32col": "58mm_32col";
73
+ "58mm_35col": "58mm_35col";
74
+ }>>]>>;
43
75
  'order[name]': z.ZodOptional<z.ZodEnum<{
44
76
  asc: "asc";
45
77
  desc: "desc";
@@ -69,8 +101,15 @@ declare const createPrinterInputSchema: z.ZodObject<{
69
101
  protocol: z.ZodNonOptional<z.ZodEnum<{
70
102
  esc_pos: "esc_pos";
71
103
  }>>;
104
+ receiptProfile: z.ZodNonOptional<z.ZodEnum<{
105
+ "80mm_42col": "80mm_42col";
106
+ "80mm_48col": "80mm_48col";
107
+ "58mm_32col": "58mm_32col";
108
+ "58mm_35col": "58mm_35col";
109
+ }>>;
72
110
  name: z.ZodNonOptional<z.ZodString>;
73
111
  ip: z.ZodNonOptional<z.ZodIPv4>;
112
+ tls: z.ZodNonOptional<z.ZodBoolean>;
74
113
  }, z.core.$strip>;
75
114
  type CreatePrinterInput = z.input<typeof createPrinterInputSchema>;
76
115
  declare const createPrinterResponseSchema: z.ZodObject<{
@@ -82,6 +121,12 @@ declare const createPrinterResponseSchema: z.ZodObject<{
82
121
  protocol: z.ZodEnum<{
83
122
  esc_pos: "esc_pos";
84
123
  }>;
124
+ receiptProfile: z.ZodEnum<{
125
+ "80mm_42col": "80mm_42col";
126
+ "80mm_48col": "80mm_48col";
127
+ "58mm_32col": "58mm_32col";
128
+ "58mm_35col": "58mm_35col";
129
+ }>;
85
130
  createdAt: z.ZodString;
86
131
  updatedAt: z.ZodString;
87
132
  }, z.core.$strip>;
@@ -95,8 +140,15 @@ declare class CreatePrinter extends AbstractApiRequest<typeof createPrinterInput
95
140
  protocol: z.ZodNonOptional<z.ZodEnum<{
96
141
  esc_pos: "esc_pos";
97
142
  }>>;
143
+ receiptProfile: z.ZodNonOptional<z.ZodEnum<{
144
+ "80mm_42col": "80mm_42col";
145
+ "80mm_48col": "80mm_48col";
146
+ "58mm_32col": "58mm_32col";
147
+ "58mm_35col": "58mm_35col";
148
+ }>>;
98
149
  name: z.ZodNonOptional<z.ZodString>;
99
150
  ip: z.ZodNonOptional<z.ZodIPv4>;
151
+ tls: z.ZodNonOptional<z.ZodBoolean>;
100
152
  }, z.core.$strip>;
101
153
  readonly outputSchema: z.ZodObject<{
102
154
  id: z.ZodString;
@@ -107,6 +159,12 @@ declare class CreatePrinter extends AbstractApiRequest<typeof createPrinterInput
107
159
  protocol: z.ZodEnum<{
108
160
  esc_pos: "esc_pos";
109
161
  }>;
162
+ receiptProfile: z.ZodEnum<{
163
+ "80mm_42col": "80mm_42col";
164
+ "80mm_48col": "80mm_48col";
165
+ "58mm_32col": "58mm_32col";
166
+ "58mm_35col": "58mm_35col";
167
+ }>;
110
168
  createdAt: z.ZodString;
111
169
  updatedAt: z.ZodString;
112
170
  }, z.core.$strip>;
@@ -142,6 +200,12 @@ declare const getPrinterDetailsResponseSchema: z.ZodObject<{
142
200
  protocol: z.ZodEnum<{
143
201
  esc_pos: "esc_pos";
144
202
  }>;
203
+ receiptProfile: z.ZodEnum<{
204
+ "80mm_42col": "80mm_42col";
205
+ "80mm_48col": "80mm_48col";
206
+ "58mm_32col": "58mm_32col";
207
+ "58mm_35col": "58mm_35col";
208
+ }>;
145
209
  createdAt: z.ZodString;
146
210
  updatedAt: z.ZodString;
147
211
  }, z.core.$strip>;
@@ -160,6 +224,12 @@ declare class GetPrinterDetails extends AbstractApiRequest<typeof getPrinterDeta
160
224
  protocol: z.ZodEnum<{
161
225
  esc_pos: "esc_pos";
162
226
  }>;
227
+ receiptProfile: z.ZodEnum<{
228
+ "80mm_42col": "80mm_42col";
229
+ "80mm_48col": "80mm_48col";
230
+ "58mm_32col": "58mm_32col";
231
+ "58mm_35col": "58mm_35col";
232
+ }>;
163
233
  createdAt: z.ZodString;
164
234
  updatedAt: z.ZodString;
165
235
  }, z.core.$strip>;
@@ -173,11 +243,23 @@ declare class GetPrinterDetails extends AbstractApiRequest<typeof getPrinterDeta
173
243
  declare const getPrintersQuerySchema: z.ZodObject<{
174
244
  id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
175
245
  name: z.ZodOptional<z.ZodString>;
246
+ tls: z.ZodOptional<z.ZodBoolean>;
176
247
  protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
177
248
  esc_pos: "esc_pos";
178
249
  }>, z.ZodArray<z.ZodEnum<{
179
250
  esc_pos: "esc_pos";
180
251
  }>>]>>;
252
+ receiptProfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
253
+ "80mm_42col": "80mm_42col";
254
+ "80mm_48col": "80mm_48col";
255
+ "58mm_32col": "58mm_32col";
256
+ "58mm_35col": "58mm_35col";
257
+ }>, z.ZodArray<z.ZodEnum<{
258
+ "80mm_42col": "80mm_42col";
259
+ "80mm_48col": "80mm_48col";
260
+ "58mm_32col": "58mm_32col";
261
+ "58mm_35col": "58mm_35col";
262
+ }>>]>>;
181
263
  'order[name]': z.ZodOptional<z.ZodEnum<{
182
264
  asc: "asc";
183
265
  desc: "desc";
@@ -213,6 +295,12 @@ declare const getPrintersResponseSchema: z.ZodObject<{
213
295
  protocol: z.ZodEnum<{
214
296
  esc_pos: "esc_pos";
215
297
  }>;
298
+ receiptProfile: z.ZodEnum<{
299
+ "80mm_42col": "80mm_42col";
300
+ "80mm_48col": "80mm_48col";
301
+ "58mm_32col": "58mm_32col";
302
+ "58mm_35col": "58mm_35col";
303
+ }>;
216
304
  createdAt: z.ZodString;
217
305
  updatedAt: z.ZodString;
218
306
  }, z.core.$strip>>;
@@ -241,6 +329,12 @@ declare class GetPrinters extends AbstractApiRequest<typeof getPrintersInputSche
241
329
  protocol: z.ZodEnum<{
242
330
  esc_pos: "esc_pos";
243
331
  }>;
332
+ receiptProfile: z.ZodEnum<{
333
+ "80mm_42col": "80mm_42col";
334
+ "80mm_48col": "80mm_48col";
335
+ "58mm_32col": "58mm_32col";
336
+ "58mm_35col": "58mm_35col";
337
+ }>;
244
338
  createdAt: z.ZodString;
245
339
  updatedAt: z.ZodString;
246
340
  }, z.core.$strip>>;
@@ -256,11 +350,23 @@ declare class GetPrinters extends AbstractApiRequest<typeof getPrintersInputSche
256
350
  readonly querySchema: z.ZodObject<{
257
351
  id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
258
352
  name: z.ZodOptional<z.ZodString>;
353
+ tls: z.ZodOptional<z.ZodBoolean>;
259
354
  protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
260
355
  esc_pos: "esc_pos";
261
356
  }>, z.ZodArray<z.ZodEnum<{
262
357
  esc_pos: "esc_pos";
263
358
  }>>]>>;
359
+ receiptProfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
360
+ "80mm_42col": "80mm_42col";
361
+ "80mm_48col": "80mm_48col";
362
+ "58mm_32col": "58mm_32col";
363
+ "58mm_35col": "58mm_35col";
364
+ }>, z.ZodArray<z.ZodEnum<{
365
+ "80mm_42col": "80mm_42col";
366
+ "80mm_48col": "80mm_48col";
367
+ "58mm_32col": "58mm_32col";
368
+ "58mm_35col": "58mm_35col";
369
+ }>>]>>;
264
370
  'order[name]': z.ZodOptional<z.ZodEnum<{
265
371
  asc: "asc";
266
372
  desc: "desc";
@@ -293,6 +399,12 @@ declare class GetPrinters extends AbstractApiRequest<typeof getPrintersInputSche
293
399
  protocol: z.ZodEnum<{
294
400
  esc_pos: "esc_pos";
295
401
  }>;
402
+ receiptProfile: z.ZodEnum<{
403
+ "80mm_42col": "80mm_42col";
404
+ "80mm_48col": "80mm_48col";
405
+ "58mm_32col": "58mm_32col";
406
+ "58mm_35col": "58mm_35col";
407
+ }>;
296
408
  createdAt: z.ZodString;
297
409
  updatedAt: z.ZodString;
298
410
  }, z.core.$strip>;
@@ -306,11 +418,23 @@ declare class GetPrinters extends AbstractApiRequest<typeof getPrintersInputSche
306
418
  declare const getPrintersFromPointOfSaleQuerySchema: z.ZodObject<{
307
419
  id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
308
420
  name: z.ZodOptional<z.ZodString>;
421
+ tls: z.ZodOptional<z.ZodBoolean>;
309
422
  protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
310
423
  esc_pos: "esc_pos";
311
424
  }>, z.ZodArray<z.ZodEnum<{
312
425
  esc_pos: "esc_pos";
313
426
  }>>]>>;
427
+ receiptProfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
428
+ "80mm_42col": "80mm_42col";
429
+ "80mm_48col": "80mm_48col";
430
+ "58mm_32col": "58mm_32col";
431
+ "58mm_35col": "58mm_35col";
432
+ }>, z.ZodArray<z.ZodEnum<{
433
+ "80mm_42col": "80mm_42col";
434
+ "80mm_48col": "80mm_48col";
435
+ "58mm_32col": "58mm_32col";
436
+ "58mm_35col": "58mm_35col";
437
+ }>>]>>;
314
438
  'order[name]': z.ZodOptional<z.ZodEnum<{
315
439
  asc: "asc";
316
440
  desc: "desc";
@@ -345,6 +469,12 @@ declare const getPrintersFromPointOfSaleResponseSchema: z.ZodArray<z.ZodObject<{
345
469
  protocol: z.ZodEnum<{
346
470
  esc_pos: "esc_pos";
347
471
  }>;
472
+ receiptProfile: z.ZodEnum<{
473
+ "80mm_42col": "80mm_42col";
474
+ "80mm_48col": "80mm_48col";
475
+ "58mm_32col": "58mm_32col";
476
+ "58mm_35col": "58mm_35col";
477
+ }>;
348
478
  createdAt: z.ZodString;
349
479
  updatedAt: z.ZodString;
350
480
  }, z.core.$strip>>;
@@ -363,17 +493,35 @@ declare class GetPrintersFromPointOfSale extends AbstractApiRequest<typeof getPr
363
493
  protocol: z.ZodEnum<{
364
494
  esc_pos: "esc_pos";
365
495
  }>;
496
+ receiptProfile: z.ZodEnum<{
497
+ "80mm_42col": "80mm_42col";
498
+ "80mm_48col": "80mm_48col";
499
+ "58mm_32col": "58mm_32col";
500
+ "58mm_35col": "58mm_35col";
501
+ }>;
366
502
  createdAt: z.ZodString;
367
503
  updatedAt: z.ZodString;
368
504
  }, z.core.$strip>>;
369
505
  readonly querySchema: z.ZodObject<{
370
506
  id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
371
507
  name: z.ZodOptional<z.ZodString>;
508
+ tls: z.ZodOptional<z.ZodBoolean>;
372
509
  protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
373
510
  esc_pos: "esc_pos";
374
511
  }>, z.ZodArray<z.ZodEnum<{
375
512
  esc_pos: "esc_pos";
376
513
  }>>]>>;
514
+ receiptProfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
515
+ "80mm_42col": "80mm_42col";
516
+ "80mm_48col": "80mm_48col";
517
+ "58mm_32col": "58mm_32col";
518
+ "58mm_35col": "58mm_35col";
519
+ }>, z.ZodArray<z.ZodEnum<{
520
+ "80mm_42col": "80mm_42col";
521
+ "80mm_48col": "80mm_48col";
522
+ "58mm_32col": "58mm_32col";
523
+ "58mm_35col": "58mm_35col";
524
+ }>>]>>;
377
525
  'order[name]': z.ZodOptional<z.ZodEnum<{
378
526
  asc: "asc";
379
527
  desc: "desc";
@@ -406,6 +554,12 @@ declare class GetPrintersFromPointOfSale extends AbstractApiRequest<typeof getPr
406
554
  protocol: z.ZodEnum<{
407
555
  esc_pos: "esc_pos";
408
556
  }>;
557
+ receiptProfile: z.ZodEnum<{
558
+ "80mm_42col": "80mm_42col";
559
+ "80mm_48col": "80mm_48col";
560
+ "58mm_32col": "58mm_32col";
561
+ "58mm_35col": "58mm_35col";
562
+ }>;
409
563
  createdAt: z.ZodString;
410
564
  updatedAt: z.ZodString;
411
565
  }, z.core.$strip>;
@@ -421,8 +575,15 @@ declare const updatePrinterInputSchema: z.ZodObject<{
421
575
  protocol: z.ZodOptional<z.ZodEnum<{
422
576
  esc_pos: "esc_pos";
423
577
  }>>;
578
+ receiptProfile: z.ZodOptional<z.ZodEnum<{
579
+ "80mm_42col": "80mm_42col";
580
+ "80mm_48col": "80mm_48col";
581
+ "58mm_32col": "58mm_32col";
582
+ "58mm_35col": "58mm_35col";
583
+ }>>;
424
584
  name: z.ZodOptional<z.ZodString>;
425
585
  ip: z.ZodOptional<z.ZodIPv4>;
586
+ tls: z.ZodOptional<z.ZodBoolean>;
426
587
  }, z.core.$strip>;
427
588
  type UpdatePrinterInput = z.input<typeof updatePrinterInputSchema>;
428
589
  declare const updatePrinterResponseSchema: z.ZodObject<{
@@ -434,6 +595,12 @@ declare const updatePrinterResponseSchema: z.ZodObject<{
434
595
  protocol: z.ZodEnum<{
435
596
  esc_pos: "esc_pos";
436
597
  }>;
598
+ receiptProfile: z.ZodEnum<{
599
+ "80mm_42col": "80mm_42col";
600
+ "80mm_48col": "80mm_48col";
601
+ "58mm_32col": "58mm_32col";
602
+ "58mm_35col": "58mm_35col";
603
+ }>;
437
604
  createdAt: z.ZodString;
438
605
  updatedAt: z.ZodString;
439
606
  }, z.core.$strip>;
@@ -446,8 +613,15 @@ declare class UpdatePrinter extends AbstractApiRequest<typeof updatePrinterInput
446
613
  protocol: z.ZodOptional<z.ZodEnum<{
447
614
  esc_pos: "esc_pos";
448
615
  }>>;
616
+ receiptProfile: z.ZodOptional<z.ZodEnum<{
617
+ "80mm_42col": "80mm_42col";
618
+ "80mm_48col": "80mm_48col";
619
+ "58mm_32col": "58mm_32col";
620
+ "58mm_35col": "58mm_35col";
621
+ }>>;
449
622
  name: z.ZodOptional<z.ZodString>;
450
623
  ip: z.ZodOptional<z.ZodIPv4>;
624
+ tls: z.ZodOptional<z.ZodBoolean>;
451
625
  }, z.core.$strip>;
452
626
  readonly outputSchema: z.ZodObject<{
453
627
  id: z.ZodString;
@@ -458,6 +632,12 @@ declare class UpdatePrinter extends AbstractApiRequest<typeof updatePrinterInput
458
632
  protocol: z.ZodEnum<{
459
633
  esc_pos: "esc_pos";
460
634
  }>;
635
+ receiptProfile: z.ZodEnum<{
636
+ "80mm_42col": "80mm_42col";
637
+ "80mm_48col": "80mm_48col";
638
+ "58mm_32col": "58mm_32col";
639
+ "58mm_35col": "58mm_35col";
640
+ }>;
461
641
  createdAt: z.ZodString;
462
642
  updatedAt: z.ZodString;
463
643
  }, z.core.$strip>;
package/dist/index.js CHANGED
@@ -8,6 +8,7 @@ var __export = (target, all) => {
8
8
  import {
9
9
  datetimeSchema,
10
10
  printerProtocolSchema,
11
+ printerReceiptProfileSchema,
11
12
  sortDirSchema,
12
13
  timestampsFilterSchema
13
14
  } from "@deliverart/sdk-js-global-types";
@@ -11164,24 +11165,31 @@ var printerSchema = external_exports.object({
11164
11165
  ip: external_exports.ipv4(),
11165
11166
  tls: external_exports.boolean(),
11166
11167
  protocol: printerProtocolSchema,
11168
+ receiptProfile: printerReceiptProfileSchema,
11167
11169
  createdAt: datetimeSchema,
11168
11170
  updatedAt: datetimeSchema
11169
11171
  });
11170
11172
  var writablePrinterSchema = printerSchema.pick({
11171
11173
  name: true,
11172
11174
  ip: true,
11173
- protocol: true
11175
+ protocol: true,
11176
+ receiptProfile: true,
11177
+ tls: true
11174
11178
  });
11175
11179
  var writableCreatePrinterSchema = printerSchema.pick({
11176
11180
  pointOfSale: true,
11177
11181
  name: true,
11178
11182
  ip: true,
11179
- protocol: true
11183
+ protocol: true,
11184
+ receiptProfile: true,
11185
+ tls: true
11180
11186
  });
11181
11187
  var printersQuerySchema = external_exports.object({
11182
11188
  id: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
11183
11189
  name: external_exports.string().optional(),
11190
+ tls: external_exports.boolean().optional(),
11184
11191
  protocol: external_exports.union([printerProtocolSchema, external_exports.array(printerProtocolSchema)]).optional(),
11192
+ receiptProfile: external_exports.union([printerReceiptProfileSchema, external_exports.array(printerReceiptProfileSchema)]).optional(),
11185
11193
  "order[name]": sortDirSchema.optional(),
11186
11194
  "order[createdAt]": sortDirSchema.optional(),
11187
11195
  "order[updatedAt]": sortDirSchema.optional(),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deliverart/sdk-js-printer",
3
3
  "description": "Deliverart JavaScript SDK for Printer Management",
4
- "version": "2.8.3",
4
+ "version": "2.8.5",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -18,9 +18,9 @@
18
18
  "dist"
19
19
  ],
20
20
  "dependencies": {
21
- "@deliverart/sdk-js-core": "2.8.3",
22
- "@deliverart/sdk-js-global-types": "2.8.3",
23
- "@deliverart/sdk-js-point-of-sale": "2.8.3"
21
+ "@deliverart/sdk-js-core": "2.8.5",
22
+ "@deliverart/sdk-js-global-types": "2.8.5",
23
+ "@deliverart/sdk-js-point-of-sale": "2.8.5"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"