@deliverart/sdk-js-printer 2.24.1 → 2.25.0
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 +4 -0
- package/dist/index.d.cts +140 -0
- package/dist/index.d.ts +140 -0
- package/dist/index.js +5 -0
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -13830,6 +13830,7 @@ var printerSchema = external_exports.object({
|
|
|
13830
13830
|
tls: external_exports.boolean(),
|
|
13831
13831
|
deviceId: external_exports.string(),
|
|
13832
13832
|
protocol: import_sdk_js_global_types.printerProtocolSchema,
|
|
13833
|
+
driver: import_sdk_js_global_types.printerDriverSchema,
|
|
13833
13834
|
receiptProfile: import_sdk_js_global_types.printerReceiptProfileSchema,
|
|
13834
13835
|
createdAt: import_sdk_js_global_types.datetimeSchema,
|
|
13835
13836
|
updatedAt: import_sdk_js_global_types.datetimeSchema
|
|
@@ -13839,6 +13840,7 @@ var writablePrinterSchema = printerSchema.pick({
|
|
|
13839
13840
|
ip: true,
|
|
13840
13841
|
deviceId: true,
|
|
13841
13842
|
protocol: true,
|
|
13843
|
+
driver: true,
|
|
13842
13844
|
receiptProfile: true,
|
|
13843
13845
|
tls: true
|
|
13844
13846
|
});
|
|
@@ -13848,6 +13850,7 @@ var writableCreatePrinterSchema = printerSchema.pick({
|
|
|
13848
13850
|
ip: true,
|
|
13849
13851
|
deviceId: true,
|
|
13850
13852
|
protocol: true,
|
|
13853
|
+
driver: true,
|
|
13851
13854
|
receiptProfile: true,
|
|
13852
13855
|
tls: true
|
|
13853
13856
|
});
|
|
@@ -13857,6 +13860,7 @@ var printersQuerySchema = external_exports.object({
|
|
|
13857
13860
|
tls: external_exports.boolean().optional(),
|
|
13858
13861
|
deviceId: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
13859
13862
|
protocol: external_exports.union([import_sdk_js_global_types.printerProtocolSchema, external_exports.array(import_sdk_js_global_types.printerProtocolSchema)]).optional(),
|
|
13863
|
+
driver: external_exports.union([import_sdk_js_global_types.printerDriverSchema, external_exports.array(import_sdk_js_global_types.printerDriverSchema)]).optional(),
|
|
13860
13864
|
receiptProfile: external_exports.union([import_sdk_js_global_types.printerReceiptProfileSchema, external_exports.array(import_sdk_js_global_types.printerReceiptProfileSchema)]).optional(),
|
|
13861
13865
|
"order[name]": import_sdk_js_global_types.sortDirSchema.optional(),
|
|
13862
13866
|
"order[createdAt]": import_sdk_js_global_types.sortDirSchema.optional(),
|
package/dist/index.d.cts
CHANGED
|
@@ -10,8 +10,13 @@ declare const printerSchema: z.ZodObject<{
|
|
|
10
10
|
tls: z.ZodBoolean;
|
|
11
11
|
deviceId: z.ZodString;
|
|
12
12
|
protocol: z.ZodEnum<{
|
|
13
|
+
epson_epos: "epson_epos";
|
|
13
14
|
esc_pos: "esc_pos";
|
|
14
15
|
}>;
|
|
16
|
+
driver: z.ZodEnum<{
|
|
17
|
+
epson_sdk: "epson_sdk";
|
|
18
|
+
epos_print_xml: "epos_print_xml";
|
|
19
|
+
}>;
|
|
15
20
|
receiptProfile: z.ZodEnum<{
|
|
16
21
|
"80mm_42col": "80mm_42col";
|
|
17
22
|
"80mm_48col": "80mm_48col";
|
|
@@ -24,8 +29,13 @@ declare const printerSchema: z.ZodObject<{
|
|
|
24
29
|
type Printer = z.infer<typeof printerSchema>;
|
|
25
30
|
declare const writablePrinterSchema: z.ZodObject<{
|
|
26
31
|
protocol: z.ZodEnum<{
|
|
32
|
+
epson_epos: "epson_epos";
|
|
27
33
|
esc_pos: "esc_pos";
|
|
28
34
|
}>;
|
|
35
|
+
driver: z.ZodEnum<{
|
|
36
|
+
epson_sdk: "epson_sdk";
|
|
37
|
+
epos_print_xml: "epos_print_xml";
|
|
38
|
+
}>;
|
|
29
39
|
receiptProfile: z.ZodEnum<{
|
|
30
40
|
"80mm_42col": "80mm_42col";
|
|
31
41
|
"80mm_48col": "80mm_48col";
|
|
@@ -41,8 +51,13 @@ type WritablePrinter = z.infer<typeof writablePrinterSchema>;
|
|
|
41
51
|
declare const writableCreatePrinterSchema: z.ZodObject<{
|
|
42
52
|
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
43
53
|
protocol: z.ZodEnum<{
|
|
54
|
+
epson_epos: "epson_epos";
|
|
44
55
|
esc_pos: "esc_pos";
|
|
45
56
|
}>;
|
|
57
|
+
driver: z.ZodEnum<{
|
|
58
|
+
epson_sdk: "epson_sdk";
|
|
59
|
+
epos_print_xml: "epos_print_xml";
|
|
60
|
+
}>;
|
|
46
61
|
receiptProfile: z.ZodEnum<{
|
|
47
62
|
"80mm_42col": "80mm_42col";
|
|
48
63
|
"80mm_48col": "80mm_48col";
|
|
@@ -61,10 +76,19 @@ declare const printersQuerySchema: z.ZodObject<{
|
|
|
61
76
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
62
77
|
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
63
78
|
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
79
|
+
epson_epos: "epson_epos";
|
|
64
80
|
esc_pos: "esc_pos";
|
|
65
81
|
}>, z.ZodArray<z.ZodEnum<{
|
|
82
|
+
epson_epos: "epson_epos";
|
|
66
83
|
esc_pos: "esc_pos";
|
|
67
84
|
}>>]>>;
|
|
85
|
+
driver: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
86
|
+
epson_sdk: "epson_sdk";
|
|
87
|
+
epos_print_xml: "epos_print_xml";
|
|
88
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
89
|
+
epson_sdk: "epson_sdk";
|
|
90
|
+
epos_print_xml: "epos_print_xml";
|
|
91
|
+
}>>]>>;
|
|
68
92
|
receiptProfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
69
93
|
"80mm_42col": "80mm_42col";
|
|
70
94
|
"80mm_48col": "80mm_48col";
|
|
@@ -103,8 +127,13 @@ type PrintersQueryParams = z.infer<typeof printersQuerySchema>;
|
|
|
103
127
|
declare const createPrinterInputSchema: z.ZodObject<{
|
|
104
128
|
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
105
129
|
protocol: z.ZodNonOptional<z.ZodEnum<{
|
|
130
|
+
epson_epos: "epson_epos";
|
|
106
131
|
esc_pos: "esc_pos";
|
|
107
132
|
}>>;
|
|
133
|
+
driver: z.ZodNonOptional<z.ZodEnum<{
|
|
134
|
+
epson_sdk: "epson_sdk";
|
|
135
|
+
epos_print_xml: "epos_print_xml";
|
|
136
|
+
}>>;
|
|
108
137
|
receiptProfile: z.ZodNonOptional<z.ZodEnum<{
|
|
109
138
|
"80mm_42col": "80mm_42col";
|
|
110
139
|
"80mm_48col": "80mm_48col";
|
|
@@ -125,8 +154,13 @@ declare const createPrinterResponseSchema: z.ZodObject<{
|
|
|
125
154
|
tls: z.ZodBoolean;
|
|
126
155
|
deviceId: z.ZodString;
|
|
127
156
|
protocol: z.ZodEnum<{
|
|
157
|
+
epson_epos: "epson_epos";
|
|
128
158
|
esc_pos: "esc_pos";
|
|
129
159
|
}>;
|
|
160
|
+
driver: z.ZodEnum<{
|
|
161
|
+
epson_sdk: "epson_sdk";
|
|
162
|
+
epos_print_xml: "epos_print_xml";
|
|
163
|
+
}>;
|
|
130
164
|
receiptProfile: z.ZodEnum<{
|
|
131
165
|
"80mm_42col": "80mm_42col";
|
|
132
166
|
"80mm_48col": "80mm_48col";
|
|
@@ -144,8 +178,13 @@ declare class CreatePrinter extends AbstractApiRequest<typeof createPrinterInput
|
|
|
144
178
|
readonly inputSchema: z.ZodObject<{
|
|
145
179
|
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
146
180
|
protocol: z.ZodNonOptional<z.ZodEnum<{
|
|
181
|
+
epson_epos: "epson_epos";
|
|
147
182
|
esc_pos: "esc_pos";
|
|
148
183
|
}>>;
|
|
184
|
+
driver: z.ZodNonOptional<z.ZodEnum<{
|
|
185
|
+
epson_sdk: "epson_sdk";
|
|
186
|
+
epos_print_xml: "epos_print_xml";
|
|
187
|
+
}>>;
|
|
149
188
|
receiptProfile: z.ZodNonOptional<z.ZodEnum<{
|
|
150
189
|
"80mm_42col": "80mm_42col";
|
|
151
190
|
"80mm_48col": "80mm_48col";
|
|
@@ -165,8 +204,13 @@ declare class CreatePrinter extends AbstractApiRequest<typeof createPrinterInput
|
|
|
165
204
|
tls: z.ZodBoolean;
|
|
166
205
|
deviceId: z.ZodString;
|
|
167
206
|
protocol: z.ZodEnum<{
|
|
207
|
+
epson_epos: "epson_epos";
|
|
168
208
|
esc_pos: "esc_pos";
|
|
169
209
|
}>;
|
|
210
|
+
driver: z.ZodEnum<{
|
|
211
|
+
epson_sdk: "epson_sdk";
|
|
212
|
+
epos_print_xml: "epos_print_xml";
|
|
213
|
+
}>;
|
|
170
214
|
receiptProfile: z.ZodEnum<{
|
|
171
215
|
"80mm_42col": "80mm_42col";
|
|
172
216
|
"80mm_48col": "80mm_48col";
|
|
@@ -207,8 +251,13 @@ declare const getPrinterDetailsResponseSchema: z.ZodObject<{
|
|
|
207
251
|
tls: z.ZodBoolean;
|
|
208
252
|
deviceId: z.ZodString;
|
|
209
253
|
protocol: z.ZodEnum<{
|
|
254
|
+
epson_epos: "epson_epos";
|
|
210
255
|
esc_pos: "esc_pos";
|
|
211
256
|
}>;
|
|
257
|
+
driver: z.ZodEnum<{
|
|
258
|
+
epson_sdk: "epson_sdk";
|
|
259
|
+
epos_print_xml: "epos_print_xml";
|
|
260
|
+
}>;
|
|
212
261
|
receiptProfile: z.ZodEnum<{
|
|
213
262
|
"80mm_42col": "80mm_42col";
|
|
214
263
|
"80mm_48col": "80mm_48col";
|
|
@@ -232,8 +281,13 @@ declare class GetPrinterDetails extends AbstractApiRequest<typeof getPrinterDeta
|
|
|
232
281
|
tls: z.ZodBoolean;
|
|
233
282
|
deviceId: z.ZodString;
|
|
234
283
|
protocol: z.ZodEnum<{
|
|
284
|
+
epson_epos: "epson_epos";
|
|
235
285
|
esc_pos: "esc_pos";
|
|
236
286
|
}>;
|
|
287
|
+
driver: z.ZodEnum<{
|
|
288
|
+
epson_sdk: "epson_sdk";
|
|
289
|
+
epos_print_xml: "epos_print_xml";
|
|
290
|
+
}>;
|
|
237
291
|
receiptProfile: z.ZodEnum<{
|
|
238
292
|
"80mm_42col": "80mm_42col";
|
|
239
293
|
"80mm_48col": "80mm_48col";
|
|
@@ -256,10 +310,19 @@ declare const getPrintersQuerySchema: z.ZodObject<{
|
|
|
256
310
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
257
311
|
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
258
312
|
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
313
|
+
epson_epos: "epson_epos";
|
|
259
314
|
esc_pos: "esc_pos";
|
|
260
315
|
}>, z.ZodArray<z.ZodEnum<{
|
|
316
|
+
epson_epos: "epson_epos";
|
|
261
317
|
esc_pos: "esc_pos";
|
|
262
318
|
}>>]>>;
|
|
319
|
+
driver: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
320
|
+
epson_sdk: "epson_sdk";
|
|
321
|
+
epos_print_xml: "epos_print_xml";
|
|
322
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
323
|
+
epson_sdk: "epson_sdk";
|
|
324
|
+
epos_print_xml: "epos_print_xml";
|
|
325
|
+
}>>]>>;
|
|
263
326
|
receiptProfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
264
327
|
"80mm_42col": "80mm_42col";
|
|
265
328
|
"80mm_48col": "80mm_48col";
|
|
@@ -305,8 +368,13 @@ declare const getPrintersResponseSchema: z.ZodObject<{
|
|
|
305
368
|
tls: z.ZodBoolean;
|
|
306
369
|
deviceId: z.ZodString;
|
|
307
370
|
protocol: z.ZodEnum<{
|
|
371
|
+
epson_epos: "epson_epos";
|
|
308
372
|
esc_pos: "esc_pos";
|
|
309
373
|
}>;
|
|
374
|
+
driver: z.ZodEnum<{
|
|
375
|
+
epson_sdk: "epson_sdk";
|
|
376
|
+
epos_print_xml: "epos_print_xml";
|
|
377
|
+
}>;
|
|
310
378
|
receiptProfile: z.ZodEnum<{
|
|
311
379
|
"80mm_42col": "80mm_42col";
|
|
312
380
|
"80mm_48col": "80mm_48col";
|
|
@@ -340,8 +408,13 @@ declare class GetPrinters extends AbstractApiRequest<typeof getPrintersInputSche
|
|
|
340
408
|
tls: z.ZodBoolean;
|
|
341
409
|
deviceId: z.ZodString;
|
|
342
410
|
protocol: z.ZodEnum<{
|
|
411
|
+
epson_epos: "epson_epos";
|
|
343
412
|
esc_pos: "esc_pos";
|
|
344
413
|
}>;
|
|
414
|
+
driver: z.ZodEnum<{
|
|
415
|
+
epson_sdk: "epson_sdk";
|
|
416
|
+
epos_print_xml: "epos_print_xml";
|
|
417
|
+
}>;
|
|
345
418
|
receiptProfile: z.ZodEnum<{
|
|
346
419
|
"80mm_42col": "80mm_42col";
|
|
347
420
|
"80mm_48col": "80mm_48col";
|
|
@@ -366,10 +439,19 @@ declare class GetPrinters extends AbstractApiRequest<typeof getPrintersInputSche
|
|
|
366
439
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
367
440
|
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
368
441
|
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
442
|
+
epson_epos: "epson_epos";
|
|
369
443
|
esc_pos: "esc_pos";
|
|
370
444
|
}>, z.ZodArray<z.ZodEnum<{
|
|
445
|
+
epson_epos: "epson_epos";
|
|
371
446
|
esc_pos: "esc_pos";
|
|
372
447
|
}>>]>>;
|
|
448
|
+
driver: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
449
|
+
epson_sdk: "epson_sdk";
|
|
450
|
+
epos_print_xml: "epos_print_xml";
|
|
451
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
452
|
+
epson_sdk: "epson_sdk";
|
|
453
|
+
epos_print_xml: "epos_print_xml";
|
|
454
|
+
}>>]>>;
|
|
373
455
|
receiptProfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
374
456
|
"80mm_42col": "80mm_42col";
|
|
375
457
|
"80mm_48col": "80mm_48col";
|
|
@@ -412,8 +494,13 @@ declare class GetPrinters extends AbstractApiRequest<typeof getPrintersInputSche
|
|
|
412
494
|
tls: z.ZodBoolean;
|
|
413
495
|
deviceId: z.ZodString;
|
|
414
496
|
protocol: z.ZodEnum<{
|
|
497
|
+
epson_epos: "epson_epos";
|
|
415
498
|
esc_pos: "esc_pos";
|
|
416
499
|
}>;
|
|
500
|
+
driver: z.ZodEnum<{
|
|
501
|
+
epson_sdk: "epson_sdk";
|
|
502
|
+
epos_print_xml: "epos_print_xml";
|
|
503
|
+
}>;
|
|
417
504
|
receiptProfile: z.ZodEnum<{
|
|
418
505
|
"80mm_42col": "80mm_42col";
|
|
419
506
|
"80mm_48col": "80mm_48col";
|
|
@@ -436,10 +523,19 @@ declare const getPrintersFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
|
436
523
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
437
524
|
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
438
525
|
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
526
|
+
epson_epos: "epson_epos";
|
|
439
527
|
esc_pos: "esc_pos";
|
|
440
528
|
}>, z.ZodArray<z.ZodEnum<{
|
|
529
|
+
epson_epos: "epson_epos";
|
|
441
530
|
esc_pos: "esc_pos";
|
|
442
531
|
}>>]>>;
|
|
532
|
+
driver: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
533
|
+
epson_sdk: "epson_sdk";
|
|
534
|
+
epos_print_xml: "epos_print_xml";
|
|
535
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
536
|
+
epson_sdk: "epson_sdk";
|
|
537
|
+
epos_print_xml: "epos_print_xml";
|
|
538
|
+
}>>]>>;
|
|
443
539
|
receiptProfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
444
540
|
"80mm_42col": "80mm_42col";
|
|
445
541
|
"80mm_48col": "80mm_48col";
|
|
@@ -484,8 +580,13 @@ declare const getPrintersFromPointOfSaleResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
484
580
|
tls: z.ZodBoolean;
|
|
485
581
|
deviceId: z.ZodString;
|
|
486
582
|
protocol: z.ZodEnum<{
|
|
583
|
+
epson_epos: "epson_epos";
|
|
487
584
|
esc_pos: "esc_pos";
|
|
488
585
|
}>;
|
|
586
|
+
driver: z.ZodEnum<{
|
|
587
|
+
epson_sdk: "epson_sdk";
|
|
588
|
+
epos_print_xml: "epos_print_xml";
|
|
589
|
+
}>;
|
|
489
590
|
receiptProfile: z.ZodEnum<{
|
|
490
591
|
"80mm_42col": "80mm_42col";
|
|
491
592
|
"80mm_48col": "80mm_48col";
|
|
@@ -509,8 +610,13 @@ declare class GetPrintersFromPointOfSale extends AbstractApiRequest<typeof getPr
|
|
|
509
610
|
tls: z.ZodBoolean;
|
|
510
611
|
deviceId: z.ZodString;
|
|
511
612
|
protocol: z.ZodEnum<{
|
|
613
|
+
epson_epos: "epson_epos";
|
|
512
614
|
esc_pos: "esc_pos";
|
|
513
615
|
}>;
|
|
616
|
+
driver: z.ZodEnum<{
|
|
617
|
+
epson_sdk: "epson_sdk";
|
|
618
|
+
epos_print_xml: "epos_print_xml";
|
|
619
|
+
}>;
|
|
514
620
|
receiptProfile: z.ZodEnum<{
|
|
515
621
|
"80mm_42col": "80mm_42col";
|
|
516
622
|
"80mm_48col": "80mm_48col";
|
|
@@ -526,10 +632,19 @@ declare class GetPrintersFromPointOfSale extends AbstractApiRequest<typeof getPr
|
|
|
526
632
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
527
633
|
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
528
634
|
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
635
|
+
epson_epos: "epson_epos";
|
|
529
636
|
esc_pos: "esc_pos";
|
|
530
637
|
}>, z.ZodArray<z.ZodEnum<{
|
|
638
|
+
epson_epos: "epson_epos";
|
|
531
639
|
esc_pos: "esc_pos";
|
|
532
640
|
}>>]>>;
|
|
641
|
+
driver: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
642
|
+
epson_sdk: "epson_sdk";
|
|
643
|
+
epos_print_xml: "epos_print_xml";
|
|
644
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
645
|
+
epson_sdk: "epson_sdk";
|
|
646
|
+
epos_print_xml: "epos_print_xml";
|
|
647
|
+
}>>]>>;
|
|
533
648
|
receiptProfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
534
649
|
"80mm_42col": "80mm_42col";
|
|
535
650
|
"80mm_48col": "80mm_48col";
|
|
@@ -572,8 +687,13 @@ declare class GetPrintersFromPointOfSale extends AbstractApiRequest<typeof getPr
|
|
|
572
687
|
tls: z.ZodBoolean;
|
|
573
688
|
deviceId: z.ZodString;
|
|
574
689
|
protocol: z.ZodEnum<{
|
|
690
|
+
epson_epos: "epson_epos";
|
|
575
691
|
esc_pos: "esc_pos";
|
|
576
692
|
}>;
|
|
693
|
+
driver: z.ZodEnum<{
|
|
694
|
+
epson_sdk: "epson_sdk";
|
|
695
|
+
epos_print_xml: "epos_print_xml";
|
|
696
|
+
}>;
|
|
577
697
|
receiptProfile: z.ZodEnum<{
|
|
578
698
|
"80mm_42col": "80mm_42col";
|
|
579
699
|
"80mm_48col": "80mm_48col";
|
|
@@ -593,8 +713,13 @@ declare class GetPrintersFromPointOfSale extends AbstractApiRequest<typeof getPr
|
|
|
593
713
|
|
|
594
714
|
declare const updatePrinterInputSchema: z.ZodObject<{
|
|
595
715
|
protocol: z.ZodOptional<z.ZodEnum<{
|
|
716
|
+
epson_epos: "epson_epos";
|
|
596
717
|
esc_pos: "esc_pos";
|
|
597
718
|
}>>;
|
|
719
|
+
driver: z.ZodOptional<z.ZodEnum<{
|
|
720
|
+
epson_sdk: "epson_sdk";
|
|
721
|
+
epos_print_xml: "epos_print_xml";
|
|
722
|
+
}>>;
|
|
598
723
|
receiptProfile: z.ZodOptional<z.ZodEnum<{
|
|
599
724
|
"80mm_42col": "80mm_42col";
|
|
600
725
|
"80mm_48col": "80mm_48col";
|
|
@@ -615,8 +740,13 @@ declare const updatePrinterResponseSchema: z.ZodObject<{
|
|
|
615
740
|
tls: z.ZodBoolean;
|
|
616
741
|
deviceId: z.ZodString;
|
|
617
742
|
protocol: z.ZodEnum<{
|
|
743
|
+
epson_epos: "epson_epos";
|
|
618
744
|
esc_pos: "esc_pos";
|
|
619
745
|
}>;
|
|
746
|
+
driver: z.ZodEnum<{
|
|
747
|
+
epson_sdk: "epson_sdk";
|
|
748
|
+
epos_print_xml: "epos_print_xml";
|
|
749
|
+
}>;
|
|
620
750
|
receiptProfile: z.ZodEnum<{
|
|
621
751
|
"80mm_42col": "80mm_42col";
|
|
622
752
|
"80mm_48col": "80mm_48col";
|
|
@@ -633,8 +763,13 @@ declare class UpdatePrinter extends AbstractApiRequest<typeof updatePrinterInput
|
|
|
633
763
|
readonly accept = "application/json";
|
|
634
764
|
readonly inputSchema: z.ZodObject<{
|
|
635
765
|
protocol: z.ZodOptional<z.ZodEnum<{
|
|
766
|
+
epson_epos: "epson_epos";
|
|
636
767
|
esc_pos: "esc_pos";
|
|
637
768
|
}>>;
|
|
769
|
+
driver: z.ZodOptional<z.ZodEnum<{
|
|
770
|
+
epson_sdk: "epson_sdk";
|
|
771
|
+
epos_print_xml: "epos_print_xml";
|
|
772
|
+
}>>;
|
|
638
773
|
receiptProfile: z.ZodOptional<z.ZodEnum<{
|
|
639
774
|
"80mm_42col": "80mm_42col";
|
|
640
775
|
"80mm_48col": "80mm_48col";
|
|
@@ -654,8 +789,13 @@ declare class UpdatePrinter extends AbstractApiRequest<typeof updatePrinterInput
|
|
|
654
789
|
tls: z.ZodBoolean;
|
|
655
790
|
deviceId: z.ZodString;
|
|
656
791
|
protocol: z.ZodEnum<{
|
|
792
|
+
epson_epos: "epson_epos";
|
|
657
793
|
esc_pos: "esc_pos";
|
|
658
794
|
}>;
|
|
795
|
+
driver: z.ZodEnum<{
|
|
796
|
+
epson_sdk: "epson_sdk";
|
|
797
|
+
epos_print_xml: "epos_print_xml";
|
|
798
|
+
}>;
|
|
659
799
|
receiptProfile: z.ZodEnum<{
|
|
660
800
|
"80mm_42col": "80mm_42col";
|
|
661
801
|
"80mm_48col": "80mm_48col";
|
package/dist/index.d.ts
CHANGED
|
@@ -10,8 +10,13 @@ declare const printerSchema: z.ZodObject<{
|
|
|
10
10
|
tls: z.ZodBoolean;
|
|
11
11
|
deviceId: z.ZodString;
|
|
12
12
|
protocol: z.ZodEnum<{
|
|
13
|
+
epson_epos: "epson_epos";
|
|
13
14
|
esc_pos: "esc_pos";
|
|
14
15
|
}>;
|
|
16
|
+
driver: z.ZodEnum<{
|
|
17
|
+
epson_sdk: "epson_sdk";
|
|
18
|
+
epos_print_xml: "epos_print_xml";
|
|
19
|
+
}>;
|
|
15
20
|
receiptProfile: z.ZodEnum<{
|
|
16
21
|
"80mm_42col": "80mm_42col";
|
|
17
22
|
"80mm_48col": "80mm_48col";
|
|
@@ -24,8 +29,13 @@ declare const printerSchema: z.ZodObject<{
|
|
|
24
29
|
type Printer = z.infer<typeof printerSchema>;
|
|
25
30
|
declare const writablePrinterSchema: z.ZodObject<{
|
|
26
31
|
protocol: z.ZodEnum<{
|
|
32
|
+
epson_epos: "epson_epos";
|
|
27
33
|
esc_pos: "esc_pos";
|
|
28
34
|
}>;
|
|
35
|
+
driver: z.ZodEnum<{
|
|
36
|
+
epson_sdk: "epson_sdk";
|
|
37
|
+
epos_print_xml: "epos_print_xml";
|
|
38
|
+
}>;
|
|
29
39
|
receiptProfile: z.ZodEnum<{
|
|
30
40
|
"80mm_42col": "80mm_42col";
|
|
31
41
|
"80mm_48col": "80mm_48col";
|
|
@@ -41,8 +51,13 @@ type WritablePrinter = z.infer<typeof writablePrinterSchema>;
|
|
|
41
51
|
declare const writableCreatePrinterSchema: z.ZodObject<{
|
|
42
52
|
pointOfSale: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>;
|
|
43
53
|
protocol: z.ZodEnum<{
|
|
54
|
+
epson_epos: "epson_epos";
|
|
44
55
|
esc_pos: "esc_pos";
|
|
45
56
|
}>;
|
|
57
|
+
driver: z.ZodEnum<{
|
|
58
|
+
epson_sdk: "epson_sdk";
|
|
59
|
+
epos_print_xml: "epos_print_xml";
|
|
60
|
+
}>;
|
|
46
61
|
receiptProfile: z.ZodEnum<{
|
|
47
62
|
"80mm_42col": "80mm_42col";
|
|
48
63
|
"80mm_48col": "80mm_48col";
|
|
@@ -61,10 +76,19 @@ declare const printersQuerySchema: z.ZodObject<{
|
|
|
61
76
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
62
77
|
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
63
78
|
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
79
|
+
epson_epos: "epson_epos";
|
|
64
80
|
esc_pos: "esc_pos";
|
|
65
81
|
}>, z.ZodArray<z.ZodEnum<{
|
|
82
|
+
epson_epos: "epson_epos";
|
|
66
83
|
esc_pos: "esc_pos";
|
|
67
84
|
}>>]>>;
|
|
85
|
+
driver: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
86
|
+
epson_sdk: "epson_sdk";
|
|
87
|
+
epos_print_xml: "epos_print_xml";
|
|
88
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
89
|
+
epson_sdk: "epson_sdk";
|
|
90
|
+
epos_print_xml: "epos_print_xml";
|
|
91
|
+
}>>]>>;
|
|
68
92
|
receiptProfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
69
93
|
"80mm_42col": "80mm_42col";
|
|
70
94
|
"80mm_48col": "80mm_48col";
|
|
@@ -103,8 +127,13 @@ type PrintersQueryParams = z.infer<typeof printersQuerySchema>;
|
|
|
103
127
|
declare const createPrinterInputSchema: z.ZodObject<{
|
|
104
128
|
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
105
129
|
protocol: z.ZodNonOptional<z.ZodEnum<{
|
|
130
|
+
epson_epos: "epson_epos";
|
|
106
131
|
esc_pos: "esc_pos";
|
|
107
132
|
}>>;
|
|
133
|
+
driver: z.ZodNonOptional<z.ZodEnum<{
|
|
134
|
+
epson_sdk: "epson_sdk";
|
|
135
|
+
epos_print_xml: "epos_print_xml";
|
|
136
|
+
}>>;
|
|
108
137
|
receiptProfile: z.ZodNonOptional<z.ZodEnum<{
|
|
109
138
|
"80mm_42col": "80mm_42col";
|
|
110
139
|
"80mm_48col": "80mm_48col";
|
|
@@ -125,8 +154,13 @@ declare const createPrinterResponseSchema: z.ZodObject<{
|
|
|
125
154
|
tls: z.ZodBoolean;
|
|
126
155
|
deviceId: z.ZodString;
|
|
127
156
|
protocol: z.ZodEnum<{
|
|
157
|
+
epson_epos: "epson_epos";
|
|
128
158
|
esc_pos: "esc_pos";
|
|
129
159
|
}>;
|
|
160
|
+
driver: z.ZodEnum<{
|
|
161
|
+
epson_sdk: "epson_sdk";
|
|
162
|
+
epos_print_xml: "epos_print_xml";
|
|
163
|
+
}>;
|
|
130
164
|
receiptProfile: z.ZodEnum<{
|
|
131
165
|
"80mm_42col": "80mm_42col";
|
|
132
166
|
"80mm_48col": "80mm_48col";
|
|
@@ -144,8 +178,13 @@ declare class CreatePrinter extends AbstractApiRequest<typeof createPrinterInput
|
|
|
144
178
|
readonly inputSchema: z.ZodObject<{
|
|
145
179
|
pointOfSale: z.ZodNonOptional<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/point_of_sales/:id">, unknown>>>;
|
|
146
180
|
protocol: z.ZodNonOptional<z.ZodEnum<{
|
|
181
|
+
epson_epos: "epson_epos";
|
|
147
182
|
esc_pos: "esc_pos";
|
|
148
183
|
}>>;
|
|
184
|
+
driver: z.ZodNonOptional<z.ZodEnum<{
|
|
185
|
+
epson_sdk: "epson_sdk";
|
|
186
|
+
epos_print_xml: "epos_print_xml";
|
|
187
|
+
}>>;
|
|
149
188
|
receiptProfile: z.ZodNonOptional<z.ZodEnum<{
|
|
150
189
|
"80mm_42col": "80mm_42col";
|
|
151
190
|
"80mm_48col": "80mm_48col";
|
|
@@ -165,8 +204,13 @@ declare class CreatePrinter extends AbstractApiRequest<typeof createPrinterInput
|
|
|
165
204
|
tls: z.ZodBoolean;
|
|
166
205
|
deviceId: z.ZodString;
|
|
167
206
|
protocol: z.ZodEnum<{
|
|
207
|
+
epson_epos: "epson_epos";
|
|
168
208
|
esc_pos: "esc_pos";
|
|
169
209
|
}>;
|
|
210
|
+
driver: z.ZodEnum<{
|
|
211
|
+
epson_sdk: "epson_sdk";
|
|
212
|
+
epos_print_xml: "epos_print_xml";
|
|
213
|
+
}>;
|
|
170
214
|
receiptProfile: z.ZodEnum<{
|
|
171
215
|
"80mm_42col": "80mm_42col";
|
|
172
216
|
"80mm_48col": "80mm_48col";
|
|
@@ -207,8 +251,13 @@ declare const getPrinterDetailsResponseSchema: z.ZodObject<{
|
|
|
207
251
|
tls: z.ZodBoolean;
|
|
208
252
|
deviceId: z.ZodString;
|
|
209
253
|
protocol: z.ZodEnum<{
|
|
254
|
+
epson_epos: "epson_epos";
|
|
210
255
|
esc_pos: "esc_pos";
|
|
211
256
|
}>;
|
|
257
|
+
driver: z.ZodEnum<{
|
|
258
|
+
epson_sdk: "epson_sdk";
|
|
259
|
+
epos_print_xml: "epos_print_xml";
|
|
260
|
+
}>;
|
|
212
261
|
receiptProfile: z.ZodEnum<{
|
|
213
262
|
"80mm_42col": "80mm_42col";
|
|
214
263
|
"80mm_48col": "80mm_48col";
|
|
@@ -232,8 +281,13 @@ declare class GetPrinterDetails extends AbstractApiRequest<typeof getPrinterDeta
|
|
|
232
281
|
tls: z.ZodBoolean;
|
|
233
282
|
deviceId: z.ZodString;
|
|
234
283
|
protocol: z.ZodEnum<{
|
|
284
|
+
epson_epos: "epson_epos";
|
|
235
285
|
esc_pos: "esc_pos";
|
|
236
286
|
}>;
|
|
287
|
+
driver: z.ZodEnum<{
|
|
288
|
+
epson_sdk: "epson_sdk";
|
|
289
|
+
epos_print_xml: "epos_print_xml";
|
|
290
|
+
}>;
|
|
237
291
|
receiptProfile: z.ZodEnum<{
|
|
238
292
|
"80mm_42col": "80mm_42col";
|
|
239
293
|
"80mm_48col": "80mm_48col";
|
|
@@ -256,10 +310,19 @@ declare const getPrintersQuerySchema: z.ZodObject<{
|
|
|
256
310
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
257
311
|
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
258
312
|
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
313
|
+
epson_epos: "epson_epos";
|
|
259
314
|
esc_pos: "esc_pos";
|
|
260
315
|
}>, z.ZodArray<z.ZodEnum<{
|
|
316
|
+
epson_epos: "epson_epos";
|
|
261
317
|
esc_pos: "esc_pos";
|
|
262
318
|
}>>]>>;
|
|
319
|
+
driver: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
320
|
+
epson_sdk: "epson_sdk";
|
|
321
|
+
epos_print_xml: "epos_print_xml";
|
|
322
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
323
|
+
epson_sdk: "epson_sdk";
|
|
324
|
+
epos_print_xml: "epos_print_xml";
|
|
325
|
+
}>>]>>;
|
|
263
326
|
receiptProfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
264
327
|
"80mm_42col": "80mm_42col";
|
|
265
328
|
"80mm_48col": "80mm_48col";
|
|
@@ -305,8 +368,13 @@ declare const getPrintersResponseSchema: z.ZodObject<{
|
|
|
305
368
|
tls: z.ZodBoolean;
|
|
306
369
|
deviceId: z.ZodString;
|
|
307
370
|
protocol: z.ZodEnum<{
|
|
371
|
+
epson_epos: "epson_epos";
|
|
308
372
|
esc_pos: "esc_pos";
|
|
309
373
|
}>;
|
|
374
|
+
driver: z.ZodEnum<{
|
|
375
|
+
epson_sdk: "epson_sdk";
|
|
376
|
+
epos_print_xml: "epos_print_xml";
|
|
377
|
+
}>;
|
|
310
378
|
receiptProfile: z.ZodEnum<{
|
|
311
379
|
"80mm_42col": "80mm_42col";
|
|
312
380
|
"80mm_48col": "80mm_48col";
|
|
@@ -340,8 +408,13 @@ declare class GetPrinters extends AbstractApiRequest<typeof getPrintersInputSche
|
|
|
340
408
|
tls: z.ZodBoolean;
|
|
341
409
|
deviceId: z.ZodString;
|
|
342
410
|
protocol: z.ZodEnum<{
|
|
411
|
+
epson_epos: "epson_epos";
|
|
343
412
|
esc_pos: "esc_pos";
|
|
344
413
|
}>;
|
|
414
|
+
driver: z.ZodEnum<{
|
|
415
|
+
epson_sdk: "epson_sdk";
|
|
416
|
+
epos_print_xml: "epos_print_xml";
|
|
417
|
+
}>;
|
|
345
418
|
receiptProfile: z.ZodEnum<{
|
|
346
419
|
"80mm_42col": "80mm_42col";
|
|
347
420
|
"80mm_48col": "80mm_48col";
|
|
@@ -366,10 +439,19 @@ declare class GetPrinters extends AbstractApiRequest<typeof getPrintersInputSche
|
|
|
366
439
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
367
440
|
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
368
441
|
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
442
|
+
epson_epos: "epson_epos";
|
|
369
443
|
esc_pos: "esc_pos";
|
|
370
444
|
}>, z.ZodArray<z.ZodEnum<{
|
|
445
|
+
epson_epos: "epson_epos";
|
|
371
446
|
esc_pos: "esc_pos";
|
|
372
447
|
}>>]>>;
|
|
448
|
+
driver: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
449
|
+
epson_sdk: "epson_sdk";
|
|
450
|
+
epos_print_xml: "epos_print_xml";
|
|
451
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
452
|
+
epson_sdk: "epson_sdk";
|
|
453
|
+
epos_print_xml: "epos_print_xml";
|
|
454
|
+
}>>]>>;
|
|
373
455
|
receiptProfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
374
456
|
"80mm_42col": "80mm_42col";
|
|
375
457
|
"80mm_48col": "80mm_48col";
|
|
@@ -412,8 +494,13 @@ declare class GetPrinters extends AbstractApiRequest<typeof getPrintersInputSche
|
|
|
412
494
|
tls: z.ZodBoolean;
|
|
413
495
|
deviceId: z.ZodString;
|
|
414
496
|
protocol: z.ZodEnum<{
|
|
497
|
+
epson_epos: "epson_epos";
|
|
415
498
|
esc_pos: "esc_pos";
|
|
416
499
|
}>;
|
|
500
|
+
driver: z.ZodEnum<{
|
|
501
|
+
epson_sdk: "epson_sdk";
|
|
502
|
+
epos_print_xml: "epos_print_xml";
|
|
503
|
+
}>;
|
|
417
504
|
receiptProfile: z.ZodEnum<{
|
|
418
505
|
"80mm_42col": "80mm_42col";
|
|
419
506
|
"80mm_48col": "80mm_48col";
|
|
@@ -436,10 +523,19 @@ declare const getPrintersFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
|
436
523
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
437
524
|
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
438
525
|
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
526
|
+
epson_epos: "epson_epos";
|
|
439
527
|
esc_pos: "esc_pos";
|
|
440
528
|
}>, z.ZodArray<z.ZodEnum<{
|
|
529
|
+
epson_epos: "epson_epos";
|
|
441
530
|
esc_pos: "esc_pos";
|
|
442
531
|
}>>]>>;
|
|
532
|
+
driver: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
533
|
+
epson_sdk: "epson_sdk";
|
|
534
|
+
epos_print_xml: "epos_print_xml";
|
|
535
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
536
|
+
epson_sdk: "epson_sdk";
|
|
537
|
+
epos_print_xml: "epos_print_xml";
|
|
538
|
+
}>>]>>;
|
|
443
539
|
receiptProfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
444
540
|
"80mm_42col": "80mm_42col";
|
|
445
541
|
"80mm_48col": "80mm_48col";
|
|
@@ -484,8 +580,13 @@ declare const getPrintersFromPointOfSaleResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
484
580
|
tls: z.ZodBoolean;
|
|
485
581
|
deviceId: z.ZodString;
|
|
486
582
|
protocol: z.ZodEnum<{
|
|
583
|
+
epson_epos: "epson_epos";
|
|
487
584
|
esc_pos: "esc_pos";
|
|
488
585
|
}>;
|
|
586
|
+
driver: z.ZodEnum<{
|
|
587
|
+
epson_sdk: "epson_sdk";
|
|
588
|
+
epos_print_xml: "epos_print_xml";
|
|
589
|
+
}>;
|
|
489
590
|
receiptProfile: z.ZodEnum<{
|
|
490
591
|
"80mm_42col": "80mm_42col";
|
|
491
592
|
"80mm_48col": "80mm_48col";
|
|
@@ -509,8 +610,13 @@ declare class GetPrintersFromPointOfSale extends AbstractApiRequest<typeof getPr
|
|
|
509
610
|
tls: z.ZodBoolean;
|
|
510
611
|
deviceId: z.ZodString;
|
|
511
612
|
protocol: z.ZodEnum<{
|
|
613
|
+
epson_epos: "epson_epos";
|
|
512
614
|
esc_pos: "esc_pos";
|
|
513
615
|
}>;
|
|
616
|
+
driver: z.ZodEnum<{
|
|
617
|
+
epson_sdk: "epson_sdk";
|
|
618
|
+
epos_print_xml: "epos_print_xml";
|
|
619
|
+
}>;
|
|
514
620
|
receiptProfile: z.ZodEnum<{
|
|
515
621
|
"80mm_42col": "80mm_42col";
|
|
516
622
|
"80mm_48col": "80mm_48col";
|
|
@@ -526,10 +632,19 @@ declare class GetPrintersFromPointOfSale extends AbstractApiRequest<typeof getPr
|
|
|
526
632
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
527
633
|
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
528
634
|
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
635
|
+
epson_epos: "epson_epos";
|
|
529
636
|
esc_pos: "esc_pos";
|
|
530
637
|
}>, z.ZodArray<z.ZodEnum<{
|
|
638
|
+
epson_epos: "epson_epos";
|
|
531
639
|
esc_pos: "esc_pos";
|
|
532
640
|
}>>]>>;
|
|
641
|
+
driver: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
642
|
+
epson_sdk: "epson_sdk";
|
|
643
|
+
epos_print_xml: "epos_print_xml";
|
|
644
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
645
|
+
epson_sdk: "epson_sdk";
|
|
646
|
+
epos_print_xml: "epos_print_xml";
|
|
647
|
+
}>>]>>;
|
|
533
648
|
receiptProfile: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
534
649
|
"80mm_42col": "80mm_42col";
|
|
535
650
|
"80mm_48col": "80mm_48col";
|
|
@@ -572,8 +687,13 @@ declare class GetPrintersFromPointOfSale extends AbstractApiRequest<typeof getPr
|
|
|
572
687
|
tls: z.ZodBoolean;
|
|
573
688
|
deviceId: z.ZodString;
|
|
574
689
|
protocol: z.ZodEnum<{
|
|
690
|
+
epson_epos: "epson_epos";
|
|
575
691
|
esc_pos: "esc_pos";
|
|
576
692
|
}>;
|
|
693
|
+
driver: z.ZodEnum<{
|
|
694
|
+
epson_sdk: "epson_sdk";
|
|
695
|
+
epos_print_xml: "epos_print_xml";
|
|
696
|
+
}>;
|
|
577
697
|
receiptProfile: z.ZodEnum<{
|
|
578
698
|
"80mm_42col": "80mm_42col";
|
|
579
699
|
"80mm_48col": "80mm_48col";
|
|
@@ -593,8 +713,13 @@ declare class GetPrintersFromPointOfSale extends AbstractApiRequest<typeof getPr
|
|
|
593
713
|
|
|
594
714
|
declare const updatePrinterInputSchema: z.ZodObject<{
|
|
595
715
|
protocol: z.ZodOptional<z.ZodEnum<{
|
|
716
|
+
epson_epos: "epson_epos";
|
|
596
717
|
esc_pos: "esc_pos";
|
|
597
718
|
}>>;
|
|
719
|
+
driver: z.ZodOptional<z.ZodEnum<{
|
|
720
|
+
epson_sdk: "epson_sdk";
|
|
721
|
+
epos_print_xml: "epos_print_xml";
|
|
722
|
+
}>>;
|
|
598
723
|
receiptProfile: z.ZodOptional<z.ZodEnum<{
|
|
599
724
|
"80mm_42col": "80mm_42col";
|
|
600
725
|
"80mm_48col": "80mm_48col";
|
|
@@ -615,8 +740,13 @@ declare const updatePrinterResponseSchema: z.ZodObject<{
|
|
|
615
740
|
tls: z.ZodBoolean;
|
|
616
741
|
deviceId: z.ZodString;
|
|
617
742
|
protocol: z.ZodEnum<{
|
|
743
|
+
epson_epos: "epson_epos";
|
|
618
744
|
esc_pos: "esc_pos";
|
|
619
745
|
}>;
|
|
746
|
+
driver: z.ZodEnum<{
|
|
747
|
+
epson_sdk: "epson_sdk";
|
|
748
|
+
epos_print_xml: "epos_print_xml";
|
|
749
|
+
}>;
|
|
620
750
|
receiptProfile: z.ZodEnum<{
|
|
621
751
|
"80mm_42col": "80mm_42col";
|
|
622
752
|
"80mm_48col": "80mm_48col";
|
|
@@ -633,8 +763,13 @@ declare class UpdatePrinter extends AbstractApiRequest<typeof updatePrinterInput
|
|
|
633
763
|
readonly accept = "application/json";
|
|
634
764
|
readonly inputSchema: z.ZodObject<{
|
|
635
765
|
protocol: z.ZodOptional<z.ZodEnum<{
|
|
766
|
+
epson_epos: "epson_epos";
|
|
636
767
|
esc_pos: "esc_pos";
|
|
637
768
|
}>>;
|
|
769
|
+
driver: z.ZodOptional<z.ZodEnum<{
|
|
770
|
+
epson_sdk: "epson_sdk";
|
|
771
|
+
epos_print_xml: "epos_print_xml";
|
|
772
|
+
}>>;
|
|
638
773
|
receiptProfile: z.ZodOptional<z.ZodEnum<{
|
|
639
774
|
"80mm_42col": "80mm_42col";
|
|
640
775
|
"80mm_48col": "80mm_48col";
|
|
@@ -654,8 +789,13 @@ declare class UpdatePrinter extends AbstractApiRequest<typeof updatePrinterInput
|
|
|
654
789
|
tls: z.ZodBoolean;
|
|
655
790
|
deviceId: z.ZodString;
|
|
656
791
|
protocol: z.ZodEnum<{
|
|
792
|
+
epson_epos: "epson_epos";
|
|
657
793
|
esc_pos: "esc_pos";
|
|
658
794
|
}>;
|
|
795
|
+
driver: z.ZodEnum<{
|
|
796
|
+
epson_sdk: "epson_sdk";
|
|
797
|
+
epos_print_xml: "epos_print_xml";
|
|
798
|
+
}>;
|
|
659
799
|
receiptProfile: z.ZodEnum<{
|
|
660
800
|
"80mm_42col": "80mm_42col";
|
|
661
801
|
"80mm_48col": "80mm_48col";
|
package/dist/index.js
CHANGED
|
@@ -7,6 +7,7 @@ var __export = (target, all) => {
|
|
|
7
7
|
// src/models.ts
|
|
8
8
|
import {
|
|
9
9
|
datetimeSchema,
|
|
10
|
+
printerDriverSchema,
|
|
10
11
|
printerProtocolSchema,
|
|
11
12
|
printerReceiptProfileSchema,
|
|
12
13
|
sortDirSchema,
|
|
@@ -13791,6 +13792,7 @@ var printerSchema = external_exports.object({
|
|
|
13791
13792
|
tls: external_exports.boolean(),
|
|
13792
13793
|
deviceId: external_exports.string(),
|
|
13793
13794
|
protocol: printerProtocolSchema,
|
|
13795
|
+
driver: printerDriverSchema,
|
|
13794
13796
|
receiptProfile: printerReceiptProfileSchema,
|
|
13795
13797
|
createdAt: datetimeSchema,
|
|
13796
13798
|
updatedAt: datetimeSchema
|
|
@@ -13800,6 +13802,7 @@ var writablePrinterSchema = printerSchema.pick({
|
|
|
13800
13802
|
ip: true,
|
|
13801
13803
|
deviceId: true,
|
|
13802
13804
|
protocol: true,
|
|
13805
|
+
driver: true,
|
|
13803
13806
|
receiptProfile: true,
|
|
13804
13807
|
tls: true
|
|
13805
13808
|
});
|
|
@@ -13809,6 +13812,7 @@ var writableCreatePrinterSchema = printerSchema.pick({
|
|
|
13809
13812
|
ip: true,
|
|
13810
13813
|
deviceId: true,
|
|
13811
13814
|
protocol: true,
|
|
13815
|
+
driver: true,
|
|
13812
13816
|
receiptProfile: true,
|
|
13813
13817
|
tls: true
|
|
13814
13818
|
});
|
|
@@ -13818,6 +13822,7 @@ var printersQuerySchema = external_exports.object({
|
|
|
13818
13822
|
tls: external_exports.boolean().optional(),
|
|
13819
13823
|
deviceId: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
13820
13824
|
protocol: external_exports.union([printerProtocolSchema, external_exports.array(printerProtocolSchema)]).optional(),
|
|
13825
|
+
driver: external_exports.union([printerDriverSchema, external_exports.array(printerDriverSchema)]).optional(),
|
|
13821
13826
|
receiptProfile: external_exports.union([printerReceiptProfileSchema, external_exports.array(printerReceiptProfileSchema)]).optional(),
|
|
13822
13827
|
"order[name]": sortDirSchema.optional(),
|
|
13823
13828
|
"order[createdAt]": 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.
|
|
4
|
+
"version": "2.25.0",
|
|
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.
|
|
22
|
-
"@deliverart/sdk-js-
|
|
23
|
-
"@deliverart/sdk-js-
|
|
21
|
+
"@deliverart/sdk-js-core": "2.25.0",
|
|
22
|
+
"@deliverart/sdk-js-global-types": "2.25.0",
|
|
23
|
+
"@deliverart/sdk-js-point-of-sale": "2.25.0"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|