@deliverart/sdk-js-printer 2.7.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/README.md +1 -0
- package/dist/index.cjs +11394 -0
- package/dist/index.d.cts +463 -0
- package/dist/index.d.ts +463 -0
- package/dist/index.js +11353 -0
- package/package.json +32 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,463 @@
|
|
|
1
|
+
import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-types';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
4
|
+
|
|
5
|
+
declare const printerSchema: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
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>>;
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
ip: z.ZodIPv4;
|
|
10
|
+
protocol: z.ZodEnum<{
|
|
11
|
+
esc_pos: "esc_pos";
|
|
12
|
+
}>;
|
|
13
|
+
createdAt: z.ZodString;
|
|
14
|
+
updatedAt: z.ZodString;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
type Printer = z.infer<typeof printerSchema>;
|
|
17
|
+
declare const writablePrinterSchema: z.ZodObject<{
|
|
18
|
+
protocol: z.ZodEnum<{
|
|
19
|
+
esc_pos: "esc_pos";
|
|
20
|
+
}>;
|
|
21
|
+
name: z.ZodString;
|
|
22
|
+
ip: z.ZodIPv4;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
type WritablePrinter = z.infer<typeof writablePrinterSchema>;
|
|
25
|
+
declare const writableCreatePrinterSchema: z.ZodObject<{
|
|
26
|
+
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>>;
|
|
27
|
+
protocol: z.ZodEnum<{
|
|
28
|
+
esc_pos: "esc_pos";
|
|
29
|
+
}>;
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
ip: z.ZodIPv4;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
type WritableCreatePrinter = z.infer<typeof writableCreatePrinterSchema>;
|
|
34
|
+
declare const printersQuerySchema: z.ZodObject<{
|
|
35
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
36
|
+
name: z.ZodOptional<z.ZodString>;
|
|
37
|
+
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
38
|
+
esc_pos: "esc_pos";
|
|
39
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
40
|
+
esc_pos: "esc_pos";
|
|
41
|
+
}>>]>>;
|
|
42
|
+
'order[name]': z.ZodOptional<z.ZodEnum<{
|
|
43
|
+
asc: "asc";
|
|
44
|
+
desc: "desc";
|
|
45
|
+
}>>;
|
|
46
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
47
|
+
asc: "asc";
|
|
48
|
+
desc: "desc";
|
|
49
|
+
}>>;
|
|
50
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
51
|
+
asc: "asc";
|
|
52
|
+
desc: "desc";
|
|
53
|
+
}>>;
|
|
54
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
55
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
56
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
57
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
58
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
59
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
60
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
61
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
62
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
type PrintersQueryParams = z.infer<typeof printersQuerySchema>;
|
|
65
|
+
|
|
66
|
+
declare const createPrinterInputSchema: z.ZodObject<{
|
|
67
|
+
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>>>;
|
|
68
|
+
protocol: z.ZodNonOptional<z.ZodEnum<{
|
|
69
|
+
esc_pos: "esc_pos";
|
|
70
|
+
}>>;
|
|
71
|
+
name: z.ZodNonOptional<z.ZodString>;
|
|
72
|
+
ip: z.ZodNonOptional<z.ZodIPv4>;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
type CreatePrinterInput = z.input<typeof createPrinterInputSchema>;
|
|
75
|
+
declare const createPrinterResponseSchema: z.ZodObject<{
|
|
76
|
+
id: z.ZodString;
|
|
77
|
+
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>>;
|
|
78
|
+
name: z.ZodString;
|
|
79
|
+
ip: z.ZodIPv4;
|
|
80
|
+
protocol: z.ZodEnum<{
|
|
81
|
+
esc_pos: "esc_pos";
|
|
82
|
+
}>;
|
|
83
|
+
createdAt: z.ZodString;
|
|
84
|
+
updatedAt: z.ZodString;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
type CreatePrinterResponse = z.infer<typeof createPrinterResponseSchema>;
|
|
87
|
+
declare class CreatePrinter extends AbstractApiRequest<typeof createPrinterInputSchema, typeof createPrinterResponseSchema> {
|
|
88
|
+
readonly method = "POST";
|
|
89
|
+
readonly contentType = "application/json";
|
|
90
|
+
readonly accept = "application/json";
|
|
91
|
+
readonly inputSchema: z.ZodObject<{
|
|
92
|
+
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>>>;
|
|
93
|
+
protocol: z.ZodNonOptional<z.ZodEnum<{
|
|
94
|
+
esc_pos: "esc_pos";
|
|
95
|
+
}>>;
|
|
96
|
+
name: z.ZodNonOptional<z.ZodString>;
|
|
97
|
+
ip: z.ZodNonOptional<z.ZodIPv4>;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
readonly outputSchema: z.ZodObject<{
|
|
100
|
+
id: z.ZodString;
|
|
101
|
+
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>>;
|
|
102
|
+
name: z.ZodString;
|
|
103
|
+
ip: z.ZodIPv4;
|
|
104
|
+
protocol: z.ZodEnum<{
|
|
105
|
+
esc_pos: "esc_pos";
|
|
106
|
+
}>;
|
|
107
|
+
createdAt: z.ZodString;
|
|
108
|
+
updatedAt: z.ZodString;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
readonly querySchema: undefined;
|
|
111
|
+
readonly headersSchema: undefined;
|
|
112
|
+
constructor(input: CreatePrinterInput);
|
|
113
|
+
getPath(): string;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
declare const deletePrinterInputSchema: z.ZodUndefined;
|
|
117
|
+
declare const deletePrinterResponseSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
118
|
+
declare class DeletePrinter extends AbstractApiRequest<typeof deletePrinterInputSchema, typeof deletePrinterResponseSchema> {
|
|
119
|
+
readonly method = "DELETE";
|
|
120
|
+
readonly contentType = "application/json";
|
|
121
|
+
readonly accept = "application/json";
|
|
122
|
+
readonly inputSchema: z.ZodUndefined;
|
|
123
|
+
readonly outputSchema: z.ZodUnion<readonly [z.ZodVoid, z.ZodUndefined, z.ZodNull]>;
|
|
124
|
+
readonly querySchema: undefined;
|
|
125
|
+
readonly headersSchema: undefined;
|
|
126
|
+
private readonly printerId;
|
|
127
|
+
constructor(printerId: string);
|
|
128
|
+
getPath(): string;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
declare const getPrinterDetailsInputSchema: z.ZodUndefined;
|
|
132
|
+
type GetPrinterDetailsInput = z.input<typeof getPrinterDetailsInputSchema>;
|
|
133
|
+
declare const getPrinterDetailsResponseSchema: z.ZodObject<{
|
|
134
|
+
id: z.ZodString;
|
|
135
|
+
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>>;
|
|
136
|
+
name: z.ZodString;
|
|
137
|
+
ip: z.ZodIPv4;
|
|
138
|
+
protocol: z.ZodEnum<{
|
|
139
|
+
esc_pos: "esc_pos";
|
|
140
|
+
}>;
|
|
141
|
+
createdAt: z.ZodString;
|
|
142
|
+
updatedAt: z.ZodString;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
type GetPrinterDetailsResponse = z.infer<typeof getPrinterDetailsResponseSchema>;
|
|
145
|
+
declare class GetPrinterDetails extends AbstractApiRequest<typeof getPrinterDetailsInputSchema, typeof getPrinterDetailsResponseSchema> {
|
|
146
|
+
readonly method = "GET";
|
|
147
|
+
readonly contentType = "application/json";
|
|
148
|
+
readonly accept = "application/json";
|
|
149
|
+
readonly inputSchema: z.ZodUndefined;
|
|
150
|
+
readonly outputSchema: z.ZodObject<{
|
|
151
|
+
id: z.ZodString;
|
|
152
|
+
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>>;
|
|
153
|
+
name: z.ZodString;
|
|
154
|
+
ip: z.ZodIPv4;
|
|
155
|
+
protocol: z.ZodEnum<{
|
|
156
|
+
esc_pos: "esc_pos";
|
|
157
|
+
}>;
|
|
158
|
+
createdAt: z.ZodString;
|
|
159
|
+
updatedAt: z.ZodString;
|
|
160
|
+
}, z.core.$strip>;
|
|
161
|
+
readonly querySchema: undefined;
|
|
162
|
+
readonly headersSchema: undefined;
|
|
163
|
+
private readonly printerId;
|
|
164
|
+
constructor(printerId: string);
|
|
165
|
+
getPath(): string;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
declare const getPrintersQuerySchema: z.ZodObject<{
|
|
169
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
170
|
+
name: z.ZodOptional<z.ZodString>;
|
|
171
|
+
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
172
|
+
esc_pos: "esc_pos";
|
|
173
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
174
|
+
esc_pos: "esc_pos";
|
|
175
|
+
}>>]>>;
|
|
176
|
+
'order[name]': z.ZodOptional<z.ZodEnum<{
|
|
177
|
+
asc: "asc";
|
|
178
|
+
desc: "desc";
|
|
179
|
+
}>>;
|
|
180
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
181
|
+
asc: "asc";
|
|
182
|
+
desc: "desc";
|
|
183
|
+
}>>;
|
|
184
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
185
|
+
asc: "asc";
|
|
186
|
+
desc: "desc";
|
|
187
|
+
}>>;
|
|
188
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
189
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
190
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
191
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
192
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
193
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
194
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
195
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
196
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
197
|
+
}, z.core.$strip>;
|
|
198
|
+
type GetPrintersQueryParams = z.infer<typeof getPrintersQuerySchema>;
|
|
199
|
+
declare const getPrintersInputSchema: z.ZodUndefined;
|
|
200
|
+
type GetPrintersInput = z.infer<typeof getPrintersInputSchema>;
|
|
201
|
+
declare const getPrintersResponseSchema: z.ZodObject<{
|
|
202
|
+
data: z.ZodArray<z.ZodObject<{
|
|
203
|
+
id: z.ZodString;
|
|
204
|
+
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>>;
|
|
205
|
+
name: z.ZodString;
|
|
206
|
+
ip: z.ZodIPv4;
|
|
207
|
+
protocol: z.ZodEnum<{
|
|
208
|
+
esc_pos: "esc_pos";
|
|
209
|
+
}>;
|
|
210
|
+
createdAt: z.ZodString;
|
|
211
|
+
updatedAt: z.ZodString;
|
|
212
|
+
}, z.core.$strip>>;
|
|
213
|
+
pagination: z.ZodObject<{
|
|
214
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
215
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
216
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
217
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
218
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
219
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
220
|
+
}, z.core.$strip>;
|
|
221
|
+
}, z.core.$strip>;
|
|
222
|
+
type GetPrintersResponse = z.infer<typeof getPrintersResponseSchema>;
|
|
223
|
+
declare class GetPrinters extends AbstractApiRequest<typeof getPrintersInputSchema, typeof getPrintersResponseSchema, GetPrintersQueryParams> {
|
|
224
|
+
readonly method: "GET";
|
|
225
|
+
readonly contentType: "application/json";
|
|
226
|
+
readonly accept: "application/json";
|
|
227
|
+
readonly inputSchema: z.ZodUndefined;
|
|
228
|
+
readonly outputSchema: z.ZodObject<{
|
|
229
|
+
data: z.ZodArray<z.ZodObject<{
|
|
230
|
+
id: z.ZodString;
|
|
231
|
+
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>>;
|
|
232
|
+
name: z.ZodString;
|
|
233
|
+
ip: z.ZodIPv4;
|
|
234
|
+
protocol: z.ZodEnum<{
|
|
235
|
+
esc_pos: "esc_pos";
|
|
236
|
+
}>;
|
|
237
|
+
createdAt: z.ZodString;
|
|
238
|
+
updatedAt: z.ZodString;
|
|
239
|
+
}, z.core.$strip>>;
|
|
240
|
+
pagination: z.ZodObject<{
|
|
241
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
242
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
243
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
244
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
245
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
246
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
247
|
+
}, z.core.$strip>;
|
|
248
|
+
}, z.core.$strip>;
|
|
249
|
+
readonly querySchema: z.ZodObject<{
|
|
250
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
251
|
+
name: z.ZodOptional<z.ZodString>;
|
|
252
|
+
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
253
|
+
esc_pos: "esc_pos";
|
|
254
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
255
|
+
esc_pos: "esc_pos";
|
|
256
|
+
}>>]>>;
|
|
257
|
+
'order[name]': z.ZodOptional<z.ZodEnum<{
|
|
258
|
+
asc: "asc";
|
|
259
|
+
desc: "desc";
|
|
260
|
+
}>>;
|
|
261
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
262
|
+
asc: "asc";
|
|
263
|
+
desc: "desc";
|
|
264
|
+
}>>;
|
|
265
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
266
|
+
asc: "asc";
|
|
267
|
+
desc: "desc";
|
|
268
|
+
}>>;
|
|
269
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
270
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
271
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
272
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
273
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
274
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
275
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
276
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
277
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
278
|
+
}, z.core.$strip>;
|
|
279
|
+
readonly headersSchema: undefined;
|
|
280
|
+
readonly listItemSchema: z.ZodObject<{
|
|
281
|
+
id: z.ZodString;
|
|
282
|
+
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>>;
|
|
283
|
+
name: z.ZodString;
|
|
284
|
+
ip: z.ZodIPv4;
|
|
285
|
+
protocol: z.ZodEnum<{
|
|
286
|
+
esc_pos: "esc_pos";
|
|
287
|
+
}>;
|
|
288
|
+
createdAt: z.ZodString;
|
|
289
|
+
updatedAt: z.ZodString;
|
|
290
|
+
}, z.core.$strip>;
|
|
291
|
+
readonly paginationDefaultEnabled = true;
|
|
292
|
+
constructor(options?: {
|
|
293
|
+
query?: GetPrintersQueryParams;
|
|
294
|
+
});
|
|
295
|
+
getPath(): string;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
declare const getPrintersFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
299
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
300
|
+
name: z.ZodOptional<z.ZodString>;
|
|
301
|
+
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
302
|
+
esc_pos: "esc_pos";
|
|
303
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
304
|
+
esc_pos: "esc_pos";
|
|
305
|
+
}>>]>>;
|
|
306
|
+
'order[name]': z.ZodOptional<z.ZodEnum<{
|
|
307
|
+
asc: "asc";
|
|
308
|
+
desc: "desc";
|
|
309
|
+
}>>;
|
|
310
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
311
|
+
asc: "asc";
|
|
312
|
+
desc: "desc";
|
|
313
|
+
}>>;
|
|
314
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
315
|
+
asc: "asc";
|
|
316
|
+
desc: "desc";
|
|
317
|
+
}>>;
|
|
318
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
319
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
320
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
321
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
322
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
323
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
324
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
325
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
326
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
327
|
+
}, z.core.$strip>;
|
|
328
|
+
type GetPrintersFromPointOfSaleQueryParams = z.infer<typeof getPrintersFromPointOfSaleQuerySchema>;
|
|
329
|
+
declare const getPrintersFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
330
|
+
type GetPrintersFromPointOfSaleInput = z.input<typeof getPrintersFromPointOfSaleInputSchema>;
|
|
331
|
+
declare const getPrintersFromPointOfSaleResponseSchema: z.ZodArray<z.ZodObject<{
|
|
332
|
+
id: z.ZodString;
|
|
333
|
+
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>>;
|
|
334
|
+
name: z.ZodString;
|
|
335
|
+
ip: z.ZodIPv4;
|
|
336
|
+
protocol: z.ZodEnum<{
|
|
337
|
+
esc_pos: "esc_pos";
|
|
338
|
+
}>;
|
|
339
|
+
createdAt: z.ZodString;
|
|
340
|
+
updatedAt: z.ZodString;
|
|
341
|
+
}, z.core.$strip>>;
|
|
342
|
+
type GetPrintersFromPointOfSaleResponse = z.infer<typeof getPrintersFromPointOfSaleResponseSchema>;
|
|
343
|
+
declare class GetPrintersFromPointOfSale extends AbstractApiRequest<typeof getPrintersFromPointOfSaleInputSchema, typeof getPrintersFromPointOfSaleResponseSchema, GetPrintersFromPointOfSaleQueryParams> {
|
|
344
|
+
readonly method: "GET";
|
|
345
|
+
readonly contentType: "application/json";
|
|
346
|
+
readonly accept: "application/json";
|
|
347
|
+
readonly inputSchema: z.ZodUndefined;
|
|
348
|
+
readonly outputSchema: z.ZodArray<z.ZodObject<{
|
|
349
|
+
id: z.ZodString;
|
|
350
|
+
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>>;
|
|
351
|
+
name: z.ZodString;
|
|
352
|
+
ip: z.ZodIPv4;
|
|
353
|
+
protocol: z.ZodEnum<{
|
|
354
|
+
esc_pos: "esc_pos";
|
|
355
|
+
}>;
|
|
356
|
+
createdAt: z.ZodString;
|
|
357
|
+
updatedAt: z.ZodString;
|
|
358
|
+
}, z.core.$strip>>;
|
|
359
|
+
readonly querySchema: z.ZodObject<{
|
|
360
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
361
|
+
name: z.ZodOptional<z.ZodString>;
|
|
362
|
+
protocol: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
363
|
+
esc_pos: "esc_pos";
|
|
364
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
365
|
+
esc_pos: "esc_pos";
|
|
366
|
+
}>>]>>;
|
|
367
|
+
'order[name]': z.ZodOptional<z.ZodEnum<{
|
|
368
|
+
asc: "asc";
|
|
369
|
+
desc: "desc";
|
|
370
|
+
}>>;
|
|
371
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
372
|
+
asc: "asc";
|
|
373
|
+
desc: "desc";
|
|
374
|
+
}>>;
|
|
375
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
376
|
+
asc: "asc";
|
|
377
|
+
desc: "desc";
|
|
378
|
+
}>>;
|
|
379
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
380
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
381
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
382
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
383
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
384
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
385
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
386
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
387
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
388
|
+
}, z.core.$strip>;
|
|
389
|
+
readonly headersSchema: undefined;
|
|
390
|
+
readonly listItemSchema: z.ZodObject<{
|
|
391
|
+
id: z.ZodString;
|
|
392
|
+
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>>;
|
|
393
|
+
name: z.ZodString;
|
|
394
|
+
ip: z.ZodIPv4;
|
|
395
|
+
protocol: z.ZodEnum<{
|
|
396
|
+
esc_pos: "esc_pos";
|
|
397
|
+
}>;
|
|
398
|
+
createdAt: z.ZodString;
|
|
399
|
+
updatedAt: z.ZodString;
|
|
400
|
+
}, z.core.$strip>;
|
|
401
|
+
readonly paginationDefaultEnabled = false;
|
|
402
|
+
private readonly pointOfSaleId;
|
|
403
|
+
constructor(pointOfSaleId: string, options?: {
|
|
404
|
+
query?: GetPrintersFromPointOfSaleQueryParams;
|
|
405
|
+
});
|
|
406
|
+
getPath(): string;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
declare const updatePrinterInputSchema: z.ZodObject<{
|
|
410
|
+
protocol: z.ZodOptional<z.ZodEnum<{
|
|
411
|
+
esc_pos: "esc_pos";
|
|
412
|
+
}>>;
|
|
413
|
+
name: z.ZodOptional<z.ZodString>;
|
|
414
|
+
ip: z.ZodOptional<z.ZodIPv4>;
|
|
415
|
+
}, z.core.$strip>;
|
|
416
|
+
type UpdatePrinterInput = z.input<typeof updatePrinterInputSchema>;
|
|
417
|
+
declare const updatePrinterResponseSchema: z.ZodObject<{
|
|
418
|
+
id: z.ZodString;
|
|
419
|
+
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>>;
|
|
420
|
+
name: z.ZodString;
|
|
421
|
+
ip: z.ZodIPv4;
|
|
422
|
+
protocol: z.ZodEnum<{
|
|
423
|
+
esc_pos: "esc_pos";
|
|
424
|
+
}>;
|
|
425
|
+
createdAt: z.ZodString;
|
|
426
|
+
updatedAt: z.ZodString;
|
|
427
|
+
}, z.core.$strip>;
|
|
428
|
+
type UpdatePrinterResponse = z.infer<typeof updatePrinterResponseSchema>;
|
|
429
|
+
declare class UpdatePrinter extends AbstractApiRequest<typeof updatePrinterInputSchema, typeof updatePrinterResponseSchema> {
|
|
430
|
+
readonly method = "PATCH";
|
|
431
|
+
readonly contentType = "application/merge-patch+json";
|
|
432
|
+
readonly accept = "application/json";
|
|
433
|
+
readonly inputSchema: z.ZodObject<{
|
|
434
|
+
protocol: z.ZodOptional<z.ZodEnum<{
|
|
435
|
+
esc_pos: "esc_pos";
|
|
436
|
+
}>>;
|
|
437
|
+
name: z.ZodOptional<z.ZodString>;
|
|
438
|
+
ip: z.ZodOptional<z.ZodIPv4>;
|
|
439
|
+
}, z.core.$strip>;
|
|
440
|
+
readonly outputSchema: z.ZodObject<{
|
|
441
|
+
id: z.ZodString;
|
|
442
|
+
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>>;
|
|
443
|
+
name: z.ZodString;
|
|
444
|
+
ip: z.ZodIPv4;
|
|
445
|
+
protocol: z.ZodEnum<{
|
|
446
|
+
esc_pos: "esc_pos";
|
|
447
|
+
}>;
|
|
448
|
+
createdAt: z.ZodString;
|
|
449
|
+
updatedAt: z.ZodString;
|
|
450
|
+
}, z.core.$strip>;
|
|
451
|
+
readonly querySchema: undefined;
|
|
452
|
+
readonly headersSchema: undefined;
|
|
453
|
+
private readonly printerId;
|
|
454
|
+
constructor(printerId: string, input: UpdatePrinterInput);
|
|
455
|
+
getPath(): string;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
declare const printerIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/printers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/printers/:id">, unknown>>;
|
|
459
|
+
type PrinterIri = z.infer<typeof printerIriSchema>;
|
|
460
|
+
declare const printerNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/printers/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/printers/:id"> | null, unknown>>;
|
|
461
|
+
type PrinterNullableIri = z.infer<typeof printerNullableIriSchema>;
|
|
462
|
+
|
|
463
|
+
export { CreatePrinter, type CreatePrinterInput, type CreatePrinterResponse, DeletePrinter, GetPrinterDetails, type GetPrinterDetailsInput, type GetPrinterDetailsResponse, GetPrinters, GetPrintersFromPointOfSale, type GetPrintersFromPointOfSaleInput, type GetPrintersFromPointOfSaleQueryParams, type GetPrintersFromPointOfSaleResponse, type GetPrintersInput, type GetPrintersQueryParams, type GetPrintersResponse, type Printer, type PrinterIri, type PrinterNullableIri, type PrintersQueryParams, UpdatePrinter, type UpdatePrinterInput, type UpdatePrinterResponse, type WritableCreatePrinter, type WritablePrinter, createPrinterInputSchema, createPrinterResponseSchema, deletePrinterInputSchema, deletePrinterResponseSchema, getPrinterDetailsInputSchema, getPrinterDetailsResponseSchema, getPrintersFromPointOfSaleInputSchema, getPrintersFromPointOfSaleQuerySchema, getPrintersFromPointOfSaleResponseSchema, getPrintersInputSchema, getPrintersQuerySchema, getPrintersResponseSchema, printerIriSchema, printerNullableIriSchema, printerSchema, printersQuerySchema, updatePrinterInputSchema, updatePrinterResponseSchema, writableCreatePrinterSchema, writablePrinterSchema };
|