@deliverart/sdk-js-printer 2.8.6 → 2.8.7
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 +24 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +4 -0
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -11203,6 +11203,7 @@ var printerSchema = external_exports.object({
|
|
|
11203
11203
|
name: external_exports.string(),
|
|
11204
11204
|
ip: external_exports.ipv4(),
|
|
11205
11205
|
tls: external_exports.boolean(),
|
|
11206
|
+
deviceId: external_exports.string(),
|
|
11206
11207
|
protocol: import_sdk_js_global_types.printerProtocolSchema,
|
|
11207
11208
|
receiptProfile: import_sdk_js_global_types.printerReceiptProfileSchema,
|
|
11208
11209
|
createdAt: import_sdk_js_global_types.datetimeSchema,
|
|
@@ -11211,6 +11212,7 @@ var printerSchema = external_exports.object({
|
|
|
11211
11212
|
var writablePrinterSchema = printerSchema.pick({
|
|
11212
11213
|
name: true,
|
|
11213
11214
|
ip: true,
|
|
11215
|
+
deviceId: true,
|
|
11214
11216
|
protocol: true,
|
|
11215
11217
|
receiptProfile: true,
|
|
11216
11218
|
tls: true
|
|
@@ -11219,6 +11221,7 @@ var writableCreatePrinterSchema = printerSchema.pick({
|
|
|
11219
11221
|
pointOfSale: true,
|
|
11220
11222
|
name: true,
|
|
11221
11223
|
ip: true,
|
|
11224
|
+
deviceId: true,
|
|
11222
11225
|
protocol: true,
|
|
11223
11226
|
receiptProfile: true,
|
|
11224
11227
|
tls: true
|
|
@@ -11227,6 +11230,7 @@ var printersQuerySchema = external_exports.object({
|
|
|
11227
11230
|
id: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
11228
11231
|
name: external_exports.string().optional(),
|
|
11229
11232
|
tls: external_exports.boolean().optional(),
|
|
11233
|
+
deviceId: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
11230
11234
|
protocol: external_exports.union([import_sdk_js_global_types.printerProtocolSchema, external_exports.array(import_sdk_js_global_types.printerProtocolSchema)]).optional(),
|
|
11231
11235
|
receiptProfile: external_exports.union([import_sdk_js_global_types.printerReceiptProfileSchema, external_exports.array(import_sdk_js_global_types.printerReceiptProfileSchema)]).optional(),
|
|
11232
11236
|
"order[name]": import_sdk_js_global_types.sortDirSchema.optional(),
|
package/dist/index.d.cts
CHANGED
|
@@ -8,6 +8,7 @@ declare const printerSchema: z.ZodObject<{
|
|
|
8
8
|
name: z.ZodString;
|
|
9
9
|
ip: z.ZodIPv4;
|
|
10
10
|
tls: z.ZodBoolean;
|
|
11
|
+
deviceId: z.ZodString;
|
|
11
12
|
protocol: z.ZodEnum<{
|
|
12
13
|
esc_pos: "esc_pos";
|
|
13
14
|
}>;
|
|
@@ -34,6 +35,7 @@ declare const writablePrinterSchema: z.ZodObject<{
|
|
|
34
35
|
name: z.ZodString;
|
|
35
36
|
ip: z.ZodIPv4;
|
|
36
37
|
tls: z.ZodBoolean;
|
|
38
|
+
deviceId: z.ZodString;
|
|
37
39
|
}, z.core.$strip>;
|
|
38
40
|
type WritablePrinter = z.infer<typeof writablePrinterSchema>;
|
|
39
41
|
declare const writableCreatePrinterSchema: z.ZodObject<{
|
|
@@ -50,12 +52,14 @@ declare const writableCreatePrinterSchema: z.ZodObject<{
|
|
|
50
52
|
name: z.ZodString;
|
|
51
53
|
ip: z.ZodIPv4;
|
|
52
54
|
tls: z.ZodBoolean;
|
|
55
|
+
deviceId: z.ZodString;
|
|
53
56
|
}, z.core.$strip>;
|
|
54
57
|
type WritableCreatePrinter = z.infer<typeof writableCreatePrinterSchema>;
|
|
55
58
|
declare const printersQuerySchema: z.ZodObject<{
|
|
56
59
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
57
60
|
name: z.ZodOptional<z.ZodString>;
|
|
58
61
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
59
63
|
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
60
64
|
esc_pos: "esc_pos";
|
|
61
65
|
}>, z.ZodArray<z.ZodEnum<{
|
|
@@ -110,6 +114,7 @@ declare const createPrinterInputSchema: z.ZodObject<{
|
|
|
110
114
|
name: z.ZodNonOptional<z.ZodString>;
|
|
111
115
|
ip: z.ZodNonOptional<z.ZodIPv4>;
|
|
112
116
|
tls: z.ZodNonOptional<z.ZodBoolean>;
|
|
117
|
+
deviceId: z.ZodNonOptional<z.ZodString>;
|
|
113
118
|
}, z.core.$strip>;
|
|
114
119
|
type CreatePrinterInput = z.input<typeof createPrinterInputSchema>;
|
|
115
120
|
declare const createPrinterResponseSchema: z.ZodObject<{
|
|
@@ -118,6 +123,7 @@ declare const createPrinterResponseSchema: z.ZodObject<{
|
|
|
118
123
|
name: z.ZodString;
|
|
119
124
|
ip: z.ZodIPv4;
|
|
120
125
|
tls: z.ZodBoolean;
|
|
126
|
+
deviceId: z.ZodString;
|
|
121
127
|
protocol: z.ZodEnum<{
|
|
122
128
|
esc_pos: "esc_pos";
|
|
123
129
|
}>;
|
|
@@ -149,6 +155,7 @@ declare class CreatePrinter extends AbstractApiRequest<typeof createPrinterInput
|
|
|
149
155
|
name: z.ZodNonOptional<z.ZodString>;
|
|
150
156
|
ip: z.ZodNonOptional<z.ZodIPv4>;
|
|
151
157
|
tls: z.ZodNonOptional<z.ZodBoolean>;
|
|
158
|
+
deviceId: z.ZodNonOptional<z.ZodString>;
|
|
152
159
|
}, z.core.$strip>;
|
|
153
160
|
readonly outputSchema: z.ZodObject<{
|
|
154
161
|
id: z.ZodString;
|
|
@@ -156,6 +163,7 @@ declare class CreatePrinter extends AbstractApiRequest<typeof createPrinterInput
|
|
|
156
163
|
name: z.ZodString;
|
|
157
164
|
ip: z.ZodIPv4;
|
|
158
165
|
tls: z.ZodBoolean;
|
|
166
|
+
deviceId: z.ZodString;
|
|
159
167
|
protocol: z.ZodEnum<{
|
|
160
168
|
esc_pos: "esc_pos";
|
|
161
169
|
}>;
|
|
@@ -197,6 +205,7 @@ declare const getPrinterDetailsResponseSchema: z.ZodObject<{
|
|
|
197
205
|
name: z.ZodString;
|
|
198
206
|
ip: z.ZodIPv4;
|
|
199
207
|
tls: z.ZodBoolean;
|
|
208
|
+
deviceId: z.ZodString;
|
|
200
209
|
protocol: z.ZodEnum<{
|
|
201
210
|
esc_pos: "esc_pos";
|
|
202
211
|
}>;
|
|
@@ -221,6 +230,7 @@ declare class GetPrinterDetails extends AbstractApiRequest<typeof getPrinterDeta
|
|
|
221
230
|
name: z.ZodString;
|
|
222
231
|
ip: z.ZodIPv4;
|
|
223
232
|
tls: z.ZodBoolean;
|
|
233
|
+
deviceId: z.ZodString;
|
|
224
234
|
protocol: z.ZodEnum<{
|
|
225
235
|
esc_pos: "esc_pos";
|
|
226
236
|
}>;
|
|
@@ -244,6 +254,7 @@ declare const getPrintersQuerySchema: z.ZodObject<{
|
|
|
244
254
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
245
255
|
name: z.ZodOptional<z.ZodString>;
|
|
246
256
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
257
|
+
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
247
258
|
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
248
259
|
esc_pos: "esc_pos";
|
|
249
260
|
}>, z.ZodArray<z.ZodEnum<{
|
|
@@ -292,6 +303,7 @@ declare const getPrintersResponseSchema: z.ZodObject<{
|
|
|
292
303
|
name: z.ZodString;
|
|
293
304
|
ip: z.ZodIPv4;
|
|
294
305
|
tls: z.ZodBoolean;
|
|
306
|
+
deviceId: z.ZodString;
|
|
295
307
|
protocol: z.ZodEnum<{
|
|
296
308
|
esc_pos: "esc_pos";
|
|
297
309
|
}>;
|
|
@@ -326,6 +338,7 @@ declare class GetPrinters extends AbstractApiRequest<typeof getPrintersInputSche
|
|
|
326
338
|
name: z.ZodString;
|
|
327
339
|
ip: z.ZodIPv4;
|
|
328
340
|
tls: z.ZodBoolean;
|
|
341
|
+
deviceId: z.ZodString;
|
|
329
342
|
protocol: z.ZodEnum<{
|
|
330
343
|
esc_pos: "esc_pos";
|
|
331
344
|
}>;
|
|
@@ -351,6 +364,7 @@ declare class GetPrinters extends AbstractApiRequest<typeof getPrintersInputSche
|
|
|
351
364
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
352
365
|
name: z.ZodOptional<z.ZodString>;
|
|
353
366
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
367
|
+
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
354
368
|
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
355
369
|
esc_pos: "esc_pos";
|
|
356
370
|
}>, z.ZodArray<z.ZodEnum<{
|
|
@@ -396,6 +410,7 @@ declare class GetPrinters extends AbstractApiRequest<typeof getPrintersInputSche
|
|
|
396
410
|
name: z.ZodString;
|
|
397
411
|
ip: z.ZodIPv4;
|
|
398
412
|
tls: z.ZodBoolean;
|
|
413
|
+
deviceId: z.ZodString;
|
|
399
414
|
protocol: z.ZodEnum<{
|
|
400
415
|
esc_pos: "esc_pos";
|
|
401
416
|
}>;
|
|
@@ -419,6 +434,7 @@ declare const getPrintersFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
|
419
434
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
420
435
|
name: z.ZodOptional<z.ZodString>;
|
|
421
436
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
437
|
+
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
422
438
|
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
423
439
|
esc_pos: "esc_pos";
|
|
424
440
|
}>, z.ZodArray<z.ZodEnum<{
|
|
@@ -466,6 +482,7 @@ declare const getPrintersFromPointOfSaleResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
466
482
|
name: z.ZodString;
|
|
467
483
|
ip: z.ZodIPv4;
|
|
468
484
|
tls: z.ZodBoolean;
|
|
485
|
+
deviceId: z.ZodString;
|
|
469
486
|
protocol: z.ZodEnum<{
|
|
470
487
|
esc_pos: "esc_pos";
|
|
471
488
|
}>;
|
|
@@ -490,6 +507,7 @@ declare class GetPrintersFromPointOfSale extends AbstractApiRequest<typeof getPr
|
|
|
490
507
|
name: z.ZodString;
|
|
491
508
|
ip: z.ZodIPv4;
|
|
492
509
|
tls: z.ZodBoolean;
|
|
510
|
+
deviceId: z.ZodString;
|
|
493
511
|
protocol: z.ZodEnum<{
|
|
494
512
|
esc_pos: "esc_pos";
|
|
495
513
|
}>;
|
|
@@ -506,6 +524,7 @@ declare class GetPrintersFromPointOfSale extends AbstractApiRequest<typeof getPr
|
|
|
506
524
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
507
525
|
name: z.ZodOptional<z.ZodString>;
|
|
508
526
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
527
|
+
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
509
528
|
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
510
529
|
esc_pos: "esc_pos";
|
|
511
530
|
}>, z.ZodArray<z.ZodEnum<{
|
|
@@ -551,6 +570,7 @@ declare class GetPrintersFromPointOfSale extends AbstractApiRequest<typeof getPr
|
|
|
551
570
|
name: z.ZodString;
|
|
552
571
|
ip: z.ZodIPv4;
|
|
553
572
|
tls: z.ZodBoolean;
|
|
573
|
+
deviceId: z.ZodString;
|
|
554
574
|
protocol: z.ZodEnum<{
|
|
555
575
|
esc_pos: "esc_pos";
|
|
556
576
|
}>;
|
|
@@ -584,6 +604,7 @@ declare const updatePrinterInputSchema: z.ZodObject<{
|
|
|
584
604
|
name: z.ZodOptional<z.ZodString>;
|
|
585
605
|
ip: z.ZodOptional<z.ZodIPv4>;
|
|
586
606
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
607
|
+
deviceId: z.ZodOptional<z.ZodString>;
|
|
587
608
|
}, z.core.$strip>;
|
|
588
609
|
type UpdatePrinterInput = z.input<typeof updatePrinterInputSchema>;
|
|
589
610
|
declare const updatePrinterResponseSchema: z.ZodObject<{
|
|
@@ -592,6 +613,7 @@ declare const updatePrinterResponseSchema: z.ZodObject<{
|
|
|
592
613
|
name: z.ZodString;
|
|
593
614
|
ip: z.ZodIPv4;
|
|
594
615
|
tls: z.ZodBoolean;
|
|
616
|
+
deviceId: z.ZodString;
|
|
595
617
|
protocol: z.ZodEnum<{
|
|
596
618
|
esc_pos: "esc_pos";
|
|
597
619
|
}>;
|
|
@@ -622,6 +644,7 @@ declare class UpdatePrinter extends AbstractApiRequest<typeof updatePrinterInput
|
|
|
622
644
|
name: z.ZodOptional<z.ZodString>;
|
|
623
645
|
ip: z.ZodOptional<z.ZodIPv4>;
|
|
624
646
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
647
|
+
deviceId: z.ZodOptional<z.ZodString>;
|
|
625
648
|
}, z.core.$strip>;
|
|
626
649
|
readonly outputSchema: z.ZodObject<{
|
|
627
650
|
id: z.ZodString;
|
|
@@ -629,6 +652,7 @@ declare class UpdatePrinter extends AbstractApiRequest<typeof updatePrinterInput
|
|
|
629
652
|
name: z.ZodString;
|
|
630
653
|
ip: z.ZodIPv4;
|
|
631
654
|
tls: z.ZodBoolean;
|
|
655
|
+
deviceId: z.ZodString;
|
|
632
656
|
protocol: z.ZodEnum<{
|
|
633
657
|
esc_pos: "esc_pos";
|
|
634
658
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ declare const printerSchema: z.ZodObject<{
|
|
|
8
8
|
name: z.ZodString;
|
|
9
9
|
ip: z.ZodIPv4;
|
|
10
10
|
tls: z.ZodBoolean;
|
|
11
|
+
deviceId: z.ZodString;
|
|
11
12
|
protocol: z.ZodEnum<{
|
|
12
13
|
esc_pos: "esc_pos";
|
|
13
14
|
}>;
|
|
@@ -34,6 +35,7 @@ declare const writablePrinterSchema: z.ZodObject<{
|
|
|
34
35
|
name: z.ZodString;
|
|
35
36
|
ip: z.ZodIPv4;
|
|
36
37
|
tls: z.ZodBoolean;
|
|
38
|
+
deviceId: z.ZodString;
|
|
37
39
|
}, z.core.$strip>;
|
|
38
40
|
type WritablePrinter = z.infer<typeof writablePrinterSchema>;
|
|
39
41
|
declare const writableCreatePrinterSchema: z.ZodObject<{
|
|
@@ -50,12 +52,14 @@ declare const writableCreatePrinterSchema: z.ZodObject<{
|
|
|
50
52
|
name: z.ZodString;
|
|
51
53
|
ip: z.ZodIPv4;
|
|
52
54
|
tls: z.ZodBoolean;
|
|
55
|
+
deviceId: z.ZodString;
|
|
53
56
|
}, z.core.$strip>;
|
|
54
57
|
type WritableCreatePrinter = z.infer<typeof writableCreatePrinterSchema>;
|
|
55
58
|
declare const printersQuerySchema: z.ZodObject<{
|
|
56
59
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
57
60
|
name: z.ZodOptional<z.ZodString>;
|
|
58
61
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
59
63
|
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
60
64
|
esc_pos: "esc_pos";
|
|
61
65
|
}>, z.ZodArray<z.ZodEnum<{
|
|
@@ -110,6 +114,7 @@ declare const createPrinterInputSchema: z.ZodObject<{
|
|
|
110
114
|
name: z.ZodNonOptional<z.ZodString>;
|
|
111
115
|
ip: z.ZodNonOptional<z.ZodIPv4>;
|
|
112
116
|
tls: z.ZodNonOptional<z.ZodBoolean>;
|
|
117
|
+
deviceId: z.ZodNonOptional<z.ZodString>;
|
|
113
118
|
}, z.core.$strip>;
|
|
114
119
|
type CreatePrinterInput = z.input<typeof createPrinterInputSchema>;
|
|
115
120
|
declare const createPrinterResponseSchema: z.ZodObject<{
|
|
@@ -118,6 +123,7 @@ declare const createPrinterResponseSchema: z.ZodObject<{
|
|
|
118
123
|
name: z.ZodString;
|
|
119
124
|
ip: z.ZodIPv4;
|
|
120
125
|
tls: z.ZodBoolean;
|
|
126
|
+
deviceId: z.ZodString;
|
|
121
127
|
protocol: z.ZodEnum<{
|
|
122
128
|
esc_pos: "esc_pos";
|
|
123
129
|
}>;
|
|
@@ -149,6 +155,7 @@ declare class CreatePrinter extends AbstractApiRequest<typeof createPrinterInput
|
|
|
149
155
|
name: z.ZodNonOptional<z.ZodString>;
|
|
150
156
|
ip: z.ZodNonOptional<z.ZodIPv4>;
|
|
151
157
|
tls: z.ZodNonOptional<z.ZodBoolean>;
|
|
158
|
+
deviceId: z.ZodNonOptional<z.ZodString>;
|
|
152
159
|
}, z.core.$strip>;
|
|
153
160
|
readonly outputSchema: z.ZodObject<{
|
|
154
161
|
id: z.ZodString;
|
|
@@ -156,6 +163,7 @@ declare class CreatePrinter extends AbstractApiRequest<typeof createPrinterInput
|
|
|
156
163
|
name: z.ZodString;
|
|
157
164
|
ip: z.ZodIPv4;
|
|
158
165
|
tls: z.ZodBoolean;
|
|
166
|
+
deviceId: z.ZodString;
|
|
159
167
|
protocol: z.ZodEnum<{
|
|
160
168
|
esc_pos: "esc_pos";
|
|
161
169
|
}>;
|
|
@@ -197,6 +205,7 @@ declare const getPrinterDetailsResponseSchema: z.ZodObject<{
|
|
|
197
205
|
name: z.ZodString;
|
|
198
206
|
ip: z.ZodIPv4;
|
|
199
207
|
tls: z.ZodBoolean;
|
|
208
|
+
deviceId: z.ZodString;
|
|
200
209
|
protocol: z.ZodEnum<{
|
|
201
210
|
esc_pos: "esc_pos";
|
|
202
211
|
}>;
|
|
@@ -221,6 +230,7 @@ declare class GetPrinterDetails extends AbstractApiRequest<typeof getPrinterDeta
|
|
|
221
230
|
name: z.ZodString;
|
|
222
231
|
ip: z.ZodIPv4;
|
|
223
232
|
tls: z.ZodBoolean;
|
|
233
|
+
deviceId: z.ZodString;
|
|
224
234
|
protocol: z.ZodEnum<{
|
|
225
235
|
esc_pos: "esc_pos";
|
|
226
236
|
}>;
|
|
@@ -244,6 +254,7 @@ declare const getPrintersQuerySchema: z.ZodObject<{
|
|
|
244
254
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
245
255
|
name: z.ZodOptional<z.ZodString>;
|
|
246
256
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
257
|
+
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
247
258
|
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
248
259
|
esc_pos: "esc_pos";
|
|
249
260
|
}>, z.ZodArray<z.ZodEnum<{
|
|
@@ -292,6 +303,7 @@ declare const getPrintersResponseSchema: z.ZodObject<{
|
|
|
292
303
|
name: z.ZodString;
|
|
293
304
|
ip: z.ZodIPv4;
|
|
294
305
|
tls: z.ZodBoolean;
|
|
306
|
+
deviceId: z.ZodString;
|
|
295
307
|
protocol: z.ZodEnum<{
|
|
296
308
|
esc_pos: "esc_pos";
|
|
297
309
|
}>;
|
|
@@ -326,6 +338,7 @@ declare class GetPrinters extends AbstractApiRequest<typeof getPrintersInputSche
|
|
|
326
338
|
name: z.ZodString;
|
|
327
339
|
ip: z.ZodIPv4;
|
|
328
340
|
tls: z.ZodBoolean;
|
|
341
|
+
deviceId: z.ZodString;
|
|
329
342
|
protocol: z.ZodEnum<{
|
|
330
343
|
esc_pos: "esc_pos";
|
|
331
344
|
}>;
|
|
@@ -351,6 +364,7 @@ declare class GetPrinters extends AbstractApiRequest<typeof getPrintersInputSche
|
|
|
351
364
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
352
365
|
name: z.ZodOptional<z.ZodString>;
|
|
353
366
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
367
|
+
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
354
368
|
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
355
369
|
esc_pos: "esc_pos";
|
|
356
370
|
}>, z.ZodArray<z.ZodEnum<{
|
|
@@ -396,6 +410,7 @@ declare class GetPrinters extends AbstractApiRequest<typeof getPrintersInputSche
|
|
|
396
410
|
name: z.ZodString;
|
|
397
411
|
ip: z.ZodIPv4;
|
|
398
412
|
tls: z.ZodBoolean;
|
|
413
|
+
deviceId: z.ZodString;
|
|
399
414
|
protocol: z.ZodEnum<{
|
|
400
415
|
esc_pos: "esc_pos";
|
|
401
416
|
}>;
|
|
@@ -419,6 +434,7 @@ declare const getPrintersFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
|
419
434
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
420
435
|
name: z.ZodOptional<z.ZodString>;
|
|
421
436
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
437
|
+
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
422
438
|
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
423
439
|
esc_pos: "esc_pos";
|
|
424
440
|
}>, z.ZodArray<z.ZodEnum<{
|
|
@@ -466,6 +482,7 @@ declare const getPrintersFromPointOfSaleResponseSchema: z.ZodArray<z.ZodObject<{
|
|
|
466
482
|
name: z.ZodString;
|
|
467
483
|
ip: z.ZodIPv4;
|
|
468
484
|
tls: z.ZodBoolean;
|
|
485
|
+
deviceId: z.ZodString;
|
|
469
486
|
protocol: z.ZodEnum<{
|
|
470
487
|
esc_pos: "esc_pos";
|
|
471
488
|
}>;
|
|
@@ -490,6 +507,7 @@ declare class GetPrintersFromPointOfSale extends AbstractApiRequest<typeof getPr
|
|
|
490
507
|
name: z.ZodString;
|
|
491
508
|
ip: z.ZodIPv4;
|
|
492
509
|
tls: z.ZodBoolean;
|
|
510
|
+
deviceId: z.ZodString;
|
|
493
511
|
protocol: z.ZodEnum<{
|
|
494
512
|
esc_pos: "esc_pos";
|
|
495
513
|
}>;
|
|
@@ -506,6 +524,7 @@ declare class GetPrintersFromPointOfSale extends AbstractApiRequest<typeof getPr
|
|
|
506
524
|
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
507
525
|
name: z.ZodOptional<z.ZodString>;
|
|
508
526
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
527
|
+
deviceId: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
509
528
|
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
510
529
|
esc_pos: "esc_pos";
|
|
511
530
|
}>, z.ZodArray<z.ZodEnum<{
|
|
@@ -551,6 +570,7 @@ declare class GetPrintersFromPointOfSale extends AbstractApiRequest<typeof getPr
|
|
|
551
570
|
name: z.ZodString;
|
|
552
571
|
ip: z.ZodIPv4;
|
|
553
572
|
tls: z.ZodBoolean;
|
|
573
|
+
deviceId: z.ZodString;
|
|
554
574
|
protocol: z.ZodEnum<{
|
|
555
575
|
esc_pos: "esc_pos";
|
|
556
576
|
}>;
|
|
@@ -584,6 +604,7 @@ declare const updatePrinterInputSchema: z.ZodObject<{
|
|
|
584
604
|
name: z.ZodOptional<z.ZodString>;
|
|
585
605
|
ip: z.ZodOptional<z.ZodIPv4>;
|
|
586
606
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
607
|
+
deviceId: z.ZodOptional<z.ZodString>;
|
|
587
608
|
}, z.core.$strip>;
|
|
588
609
|
type UpdatePrinterInput = z.input<typeof updatePrinterInputSchema>;
|
|
589
610
|
declare const updatePrinterResponseSchema: z.ZodObject<{
|
|
@@ -592,6 +613,7 @@ declare const updatePrinterResponseSchema: z.ZodObject<{
|
|
|
592
613
|
name: z.ZodString;
|
|
593
614
|
ip: z.ZodIPv4;
|
|
594
615
|
tls: z.ZodBoolean;
|
|
616
|
+
deviceId: z.ZodString;
|
|
595
617
|
protocol: z.ZodEnum<{
|
|
596
618
|
esc_pos: "esc_pos";
|
|
597
619
|
}>;
|
|
@@ -622,6 +644,7 @@ declare class UpdatePrinter extends AbstractApiRequest<typeof updatePrinterInput
|
|
|
622
644
|
name: z.ZodOptional<z.ZodString>;
|
|
623
645
|
ip: z.ZodOptional<z.ZodIPv4>;
|
|
624
646
|
tls: z.ZodOptional<z.ZodBoolean>;
|
|
647
|
+
deviceId: z.ZodOptional<z.ZodString>;
|
|
625
648
|
}, z.core.$strip>;
|
|
626
649
|
readonly outputSchema: z.ZodObject<{
|
|
627
650
|
id: z.ZodString;
|
|
@@ -629,6 +652,7 @@ declare class UpdatePrinter extends AbstractApiRequest<typeof updatePrinterInput
|
|
|
629
652
|
name: z.ZodString;
|
|
630
653
|
ip: z.ZodIPv4;
|
|
631
654
|
tls: z.ZodBoolean;
|
|
655
|
+
deviceId: z.ZodString;
|
|
632
656
|
protocol: z.ZodEnum<{
|
|
633
657
|
esc_pos: "esc_pos";
|
|
634
658
|
}>;
|
package/dist/index.js
CHANGED
|
@@ -11164,6 +11164,7 @@ var printerSchema = external_exports.object({
|
|
|
11164
11164
|
name: external_exports.string(),
|
|
11165
11165
|
ip: external_exports.ipv4(),
|
|
11166
11166
|
tls: external_exports.boolean(),
|
|
11167
|
+
deviceId: external_exports.string(),
|
|
11167
11168
|
protocol: printerProtocolSchema,
|
|
11168
11169
|
receiptProfile: printerReceiptProfileSchema,
|
|
11169
11170
|
createdAt: datetimeSchema,
|
|
@@ -11172,6 +11173,7 @@ var printerSchema = external_exports.object({
|
|
|
11172
11173
|
var writablePrinterSchema = printerSchema.pick({
|
|
11173
11174
|
name: true,
|
|
11174
11175
|
ip: true,
|
|
11176
|
+
deviceId: true,
|
|
11175
11177
|
protocol: true,
|
|
11176
11178
|
receiptProfile: true,
|
|
11177
11179
|
tls: true
|
|
@@ -11180,6 +11182,7 @@ var writableCreatePrinterSchema = printerSchema.pick({
|
|
|
11180
11182
|
pointOfSale: true,
|
|
11181
11183
|
name: true,
|
|
11182
11184
|
ip: true,
|
|
11185
|
+
deviceId: true,
|
|
11183
11186
|
protocol: true,
|
|
11184
11187
|
receiptProfile: true,
|
|
11185
11188
|
tls: true
|
|
@@ -11188,6 +11191,7 @@ var printersQuerySchema = external_exports.object({
|
|
|
11188
11191
|
id: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
11189
11192
|
name: external_exports.string().optional(),
|
|
11190
11193
|
tls: external_exports.boolean().optional(),
|
|
11194
|
+
deviceId: external_exports.union([external_exports.string(), external_exports.array(external_exports.string())]).optional(),
|
|
11191
11195
|
protocol: external_exports.union([printerProtocolSchema, external_exports.array(printerProtocolSchema)]).optional(),
|
|
11192
11196
|
receiptProfile: external_exports.union([printerReceiptProfileSchema, external_exports.array(printerReceiptProfileSchema)]).optional(),
|
|
11193
11197
|
"order[name]": 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.
|
|
4
|
+
"version": "2.8.7",
|
|
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-
|
|
22
|
-
"@deliverart/sdk-js-
|
|
23
|
-
"@deliverart/sdk-js-
|
|
21
|
+
"@deliverart/sdk-js-global-types": "2.8.7",
|
|
22
|
+
"@deliverart/sdk-js-point-of-sale": "2.8.7",
|
|
23
|
+
"@deliverart/sdk-js-core": "2.8.7"
|
|
24
24
|
},
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|