@deliverart/sdk-js-receipt-template 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.
@@ -0,0 +1,2754 @@
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 receiptTemplateStatuses: readonly ["active", "archived"];
6
+ declare const receiptTemplateStatusSchema: z.ZodEnum<{
7
+ active: "active";
8
+ archived: "archived";
9
+ }>;
10
+ type ReceiptTemplateStatus = z.infer<typeof receiptTemplateStatusSchema>;
11
+ declare const receiptTemplateBlockTypes: readonly ["title", "order_type", "logo", "order_identity", "order_times", "customer", "address", "items", "notes", "totals", "payment", "separator", "spacer", "custom_text"];
12
+ declare const receiptTemplateBlockTypeSchema: z.ZodEnum<{
13
+ title: "title";
14
+ order_type: "order_type";
15
+ logo: "logo";
16
+ order_identity: "order_identity";
17
+ order_times: "order_times";
18
+ customer: "customer";
19
+ address: "address";
20
+ items: "items";
21
+ notes: "notes";
22
+ totals: "totals";
23
+ payment: "payment";
24
+ separator: "separator";
25
+ spacer: "spacer";
26
+ custom_text: "custom_text";
27
+ }>;
28
+ type ReceiptTemplateBlockType = z.infer<typeof receiptTemplateBlockTypeSchema>;
29
+ declare const receiptTemplateConditionTypes: readonly ["always", "order_type", "data_present", "has_discount", "has_fee", "has_payment", "source"];
30
+ declare const receiptTemplateConditionTypeSchema: z.ZodEnum<{
31
+ order_type: "order_type";
32
+ always: "always";
33
+ data_present: "data_present";
34
+ has_discount: "has_discount";
35
+ has_fee: "has_fee";
36
+ has_payment: "has_payment";
37
+ source: "source";
38
+ }>;
39
+ declare const receiptTemplateFields: readonly ["order_sequence", "order_display_id", "order_type", "requested_time", "preparation_time", "customer_name", "customer_phone", "customer_contact_number", "customer_access_code", "address_line_1", "address_line_2", "address_city", "address_postal_code", "item_variant", "item_removals", "item_modifiers", "item_notes", "item_prices", "subtotal", "discount", "fees", "total", "taxes", "payment_status", "payment_method", "order_notes", "kitchen_notes", "delivery_notes", "partner"];
40
+ declare const receiptTemplateFieldSchema: z.ZodEnum<{
41
+ order_type: "order_type";
42
+ order_sequence: "order_sequence";
43
+ order_display_id: "order_display_id";
44
+ requested_time: "requested_time";
45
+ preparation_time: "preparation_time";
46
+ customer_name: "customer_name";
47
+ customer_phone: "customer_phone";
48
+ customer_contact_number: "customer_contact_number";
49
+ customer_access_code: "customer_access_code";
50
+ address_line_1: "address_line_1";
51
+ address_line_2: "address_line_2";
52
+ address_city: "address_city";
53
+ address_postal_code: "address_postal_code";
54
+ item_variant: "item_variant";
55
+ item_removals: "item_removals";
56
+ item_modifiers: "item_modifiers";
57
+ item_notes: "item_notes";
58
+ item_prices: "item_prices";
59
+ subtotal: "subtotal";
60
+ discount: "discount";
61
+ fees: "fees";
62
+ total: "total";
63
+ taxes: "taxes";
64
+ payment_status: "payment_status";
65
+ payment_method: "payment_method";
66
+ order_notes: "order_notes";
67
+ kitchen_notes: "kitchen_notes";
68
+ delivery_notes: "delivery_notes";
69
+ partner: "partner";
70
+ }>;
71
+ type ReceiptTemplateField = z.infer<typeof receiptTemplateFieldSchema>;
72
+ declare const receiptTemplateAlignmentSchema: z.ZodEnum<{
73
+ left: "left";
74
+ center: "center";
75
+ right: "right";
76
+ }>;
77
+ declare const receiptTemplateTextSizeSchema: z.ZodEnum<{
78
+ normal: "normal";
79
+ tall: "tall";
80
+ double: "double";
81
+ double_tall: "double_tall";
82
+ }>;
83
+ declare const receiptTemplateTextSegmentTypeSchema: z.ZodEnum<{
84
+ literal: "literal";
85
+ field: "field";
86
+ }>;
87
+ declare const receiptTemplateConditionSchema: z.ZodObject<{
88
+ type: z.ZodEnum<{
89
+ order_type: "order_type";
90
+ always: "always";
91
+ data_present: "data_present";
92
+ has_discount: "has_discount";
93
+ has_fee: "has_fee";
94
+ has_payment: "has_payment";
95
+ source: "source";
96
+ }>;
97
+ values: z.ZodArray<z.ZodString>;
98
+ }, z.core.$strip>;
99
+ declare const receiptTemplateBlockStyleSchema: z.ZodObject<{
100
+ alignment: z.ZodEnum<{
101
+ left: "left";
102
+ center: "center";
103
+ right: "right";
104
+ }>;
105
+ size: z.ZodEnum<{
106
+ normal: "normal";
107
+ tall: "tall";
108
+ double: "double";
109
+ double_tall: "double_tall";
110
+ }>;
111
+ bold: z.ZodBoolean;
112
+ underline: z.ZodBoolean;
113
+ inverse: z.ZodBoolean;
114
+ }, z.core.$strip>;
115
+ declare const receiptTemplateTextSegmentSchema: z.ZodObject<{
116
+ type: z.ZodEnum<{
117
+ literal: "literal";
118
+ field: "field";
119
+ }>;
120
+ translations: z.ZodRecord<z.ZodString, z.ZodString>;
121
+ field: z.ZodNullable<z.ZodEnum<{
122
+ order_type: "order_type";
123
+ order_sequence: "order_sequence";
124
+ order_display_id: "order_display_id";
125
+ requested_time: "requested_time";
126
+ preparation_time: "preparation_time";
127
+ customer_name: "customer_name";
128
+ customer_phone: "customer_phone";
129
+ customer_contact_number: "customer_contact_number";
130
+ customer_access_code: "customer_access_code";
131
+ address_line_1: "address_line_1";
132
+ address_line_2: "address_line_2";
133
+ address_city: "address_city";
134
+ address_postal_code: "address_postal_code";
135
+ item_variant: "item_variant";
136
+ item_removals: "item_removals";
137
+ item_modifiers: "item_modifiers";
138
+ item_notes: "item_notes";
139
+ item_prices: "item_prices";
140
+ subtotal: "subtotal";
141
+ discount: "discount";
142
+ fees: "fees";
143
+ total: "total";
144
+ taxes: "taxes";
145
+ payment_status: "payment_status";
146
+ payment_method: "payment_method";
147
+ order_notes: "order_notes";
148
+ kitchen_notes: "kitchen_notes";
149
+ delivery_notes: "delivery_notes";
150
+ partner: "partner";
151
+ }>>;
152
+ }, z.core.$strip>;
153
+ declare const receiptTemplateBlockSchema: z.ZodObject<{
154
+ id: z.ZodString;
155
+ type: z.ZodEnum<{
156
+ title: "title";
157
+ order_type: "order_type";
158
+ logo: "logo";
159
+ order_identity: "order_identity";
160
+ order_times: "order_times";
161
+ customer: "customer";
162
+ address: "address";
163
+ items: "items";
164
+ notes: "notes";
165
+ totals: "totals";
166
+ payment: "payment";
167
+ separator: "separator";
168
+ spacer: "spacer";
169
+ custom_text: "custom_text";
170
+ }>;
171
+ enabled: z.ZodBoolean;
172
+ condition: z.ZodObject<{
173
+ type: z.ZodEnum<{
174
+ order_type: "order_type";
175
+ always: "always";
176
+ data_present: "data_present";
177
+ has_discount: "has_discount";
178
+ has_fee: "has_fee";
179
+ has_payment: "has_payment";
180
+ source: "source";
181
+ }>;
182
+ values: z.ZodArray<z.ZodString>;
183
+ }, z.core.$strip>;
184
+ style: z.ZodObject<{
185
+ alignment: z.ZodEnum<{
186
+ left: "left";
187
+ center: "center";
188
+ right: "right";
189
+ }>;
190
+ size: z.ZodEnum<{
191
+ normal: "normal";
192
+ tall: "tall";
193
+ double: "double";
194
+ double_tall: "double_tall";
195
+ }>;
196
+ bold: z.ZodBoolean;
197
+ underline: z.ZodBoolean;
198
+ inverse: z.ZodBoolean;
199
+ }, z.core.$strip>;
200
+ labels: z.ZodRecord<z.ZodString, z.ZodString>;
201
+ visibleFields: z.ZodArray<z.ZodEnum<{
202
+ order_type: "order_type";
203
+ order_sequence: "order_sequence";
204
+ order_display_id: "order_display_id";
205
+ requested_time: "requested_time";
206
+ preparation_time: "preparation_time";
207
+ customer_name: "customer_name";
208
+ customer_phone: "customer_phone";
209
+ customer_contact_number: "customer_contact_number";
210
+ customer_access_code: "customer_access_code";
211
+ address_line_1: "address_line_1";
212
+ address_line_2: "address_line_2";
213
+ address_city: "address_city";
214
+ address_postal_code: "address_postal_code";
215
+ item_variant: "item_variant";
216
+ item_removals: "item_removals";
217
+ item_modifiers: "item_modifiers";
218
+ item_notes: "item_notes";
219
+ item_prices: "item_prices";
220
+ subtotal: "subtotal";
221
+ discount: "discount";
222
+ fees: "fees";
223
+ total: "total";
224
+ taxes: "taxes";
225
+ payment_status: "payment_status";
226
+ payment_method: "payment_method";
227
+ order_notes: "order_notes";
228
+ kitchen_notes: "kitchen_notes";
229
+ delivery_notes: "delivery_notes";
230
+ partner: "partner";
231
+ }>>;
232
+ spacerLines: z.ZodNullable<z.ZodNumber>;
233
+ separatorCharacter: z.ZodNullable<z.ZodString>;
234
+ segments: z.ZodArray<z.ZodObject<{
235
+ type: z.ZodEnum<{
236
+ literal: "literal";
237
+ field: "field";
238
+ }>;
239
+ translations: z.ZodRecord<z.ZodString, z.ZodString>;
240
+ field: z.ZodNullable<z.ZodEnum<{
241
+ order_type: "order_type";
242
+ order_sequence: "order_sequence";
243
+ order_display_id: "order_display_id";
244
+ requested_time: "requested_time";
245
+ preparation_time: "preparation_time";
246
+ customer_name: "customer_name";
247
+ customer_phone: "customer_phone";
248
+ customer_contact_number: "customer_contact_number";
249
+ customer_access_code: "customer_access_code";
250
+ address_line_1: "address_line_1";
251
+ address_line_2: "address_line_2";
252
+ address_city: "address_city";
253
+ address_postal_code: "address_postal_code";
254
+ item_variant: "item_variant";
255
+ item_removals: "item_removals";
256
+ item_modifiers: "item_modifiers";
257
+ item_notes: "item_notes";
258
+ item_prices: "item_prices";
259
+ subtotal: "subtotal";
260
+ discount: "discount";
261
+ fees: "fees";
262
+ total: "total";
263
+ taxes: "taxes";
264
+ payment_status: "payment_status";
265
+ payment_method: "payment_method";
266
+ order_notes: "order_notes";
267
+ kitchen_notes: "kitchen_notes";
268
+ delivery_notes: "delivery_notes";
269
+ partner: "partner";
270
+ }>>;
271
+ }, z.core.$strip>>;
272
+ }, z.core.$strip>;
273
+ declare const receiptTemplateDefinitionSchema: z.ZodObject<{
274
+ schemaVersion: z.ZodLiteral<1>;
275
+ blocks: z.ZodArray<z.ZodObject<{
276
+ id: z.ZodString;
277
+ type: z.ZodEnum<{
278
+ title: "title";
279
+ order_type: "order_type";
280
+ logo: "logo";
281
+ order_identity: "order_identity";
282
+ order_times: "order_times";
283
+ customer: "customer";
284
+ address: "address";
285
+ items: "items";
286
+ notes: "notes";
287
+ totals: "totals";
288
+ payment: "payment";
289
+ separator: "separator";
290
+ spacer: "spacer";
291
+ custom_text: "custom_text";
292
+ }>;
293
+ enabled: z.ZodBoolean;
294
+ condition: z.ZodObject<{
295
+ type: z.ZodEnum<{
296
+ order_type: "order_type";
297
+ always: "always";
298
+ data_present: "data_present";
299
+ has_discount: "has_discount";
300
+ has_fee: "has_fee";
301
+ has_payment: "has_payment";
302
+ source: "source";
303
+ }>;
304
+ values: z.ZodArray<z.ZodString>;
305
+ }, z.core.$strip>;
306
+ style: z.ZodObject<{
307
+ alignment: z.ZodEnum<{
308
+ left: "left";
309
+ center: "center";
310
+ right: "right";
311
+ }>;
312
+ size: z.ZodEnum<{
313
+ normal: "normal";
314
+ tall: "tall";
315
+ double: "double";
316
+ double_tall: "double_tall";
317
+ }>;
318
+ bold: z.ZodBoolean;
319
+ underline: z.ZodBoolean;
320
+ inverse: z.ZodBoolean;
321
+ }, z.core.$strip>;
322
+ labels: z.ZodRecord<z.ZodString, z.ZodString>;
323
+ visibleFields: z.ZodArray<z.ZodEnum<{
324
+ order_type: "order_type";
325
+ order_sequence: "order_sequence";
326
+ order_display_id: "order_display_id";
327
+ requested_time: "requested_time";
328
+ preparation_time: "preparation_time";
329
+ customer_name: "customer_name";
330
+ customer_phone: "customer_phone";
331
+ customer_contact_number: "customer_contact_number";
332
+ customer_access_code: "customer_access_code";
333
+ address_line_1: "address_line_1";
334
+ address_line_2: "address_line_2";
335
+ address_city: "address_city";
336
+ address_postal_code: "address_postal_code";
337
+ item_variant: "item_variant";
338
+ item_removals: "item_removals";
339
+ item_modifiers: "item_modifiers";
340
+ item_notes: "item_notes";
341
+ item_prices: "item_prices";
342
+ subtotal: "subtotal";
343
+ discount: "discount";
344
+ fees: "fees";
345
+ total: "total";
346
+ taxes: "taxes";
347
+ payment_status: "payment_status";
348
+ payment_method: "payment_method";
349
+ order_notes: "order_notes";
350
+ kitchen_notes: "kitchen_notes";
351
+ delivery_notes: "delivery_notes";
352
+ partner: "partner";
353
+ }>>;
354
+ spacerLines: z.ZodNullable<z.ZodNumber>;
355
+ separatorCharacter: z.ZodNullable<z.ZodString>;
356
+ segments: z.ZodArray<z.ZodObject<{
357
+ type: z.ZodEnum<{
358
+ literal: "literal";
359
+ field: "field";
360
+ }>;
361
+ translations: z.ZodRecord<z.ZodString, z.ZodString>;
362
+ field: z.ZodNullable<z.ZodEnum<{
363
+ order_type: "order_type";
364
+ order_sequence: "order_sequence";
365
+ order_display_id: "order_display_id";
366
+ requested_time: "requested_time";
367
+ preparation_time: "preparation_time";
368
+ customer_name: "customer_name";
369
+ customer_phone: "customer_phone";
370
+ customer_contact_number: "customer_contact_number";
371
+ customer_access_code: "customer_access_code";
372
+ address_line_1: "address_line_1";
373
+ address_line_2: "address_line_2";
374
+ address_city: "address_city";
375
+ address_postal_code: "address_postal_code";
376
+ item_variant: "item_variant";
377
+ item_removals: "item_removals";
378
+ item_modifiers: "item_modifiers";
379
+ item_notes: "item_notes";
380
+ item_prices: "item_prices";
381
+ subtotal: "subtotal";
382
+ discount: "discount";
383
+ fees: "fees";
384
+ total: "total";
385
+ taxes: "taxes";
386
+ payment_status: "payment_status";
387
+ payment_method: "payment_method";
388
+ order_notes: "order_notes";
389
+ kitchen_notes: "kitchen_notes";
390
+ delivery_notes: "delivery_notes";
391
+ partner: "partner";
392
+ }>>;
393
+ }, z.core.$strip>>;
394
+ }, z.core.$strip>>;
395
+ }, z.core.$strip>;
396
+ type ReceiptTemplateDefinition = z.infer<typeof receiptTemplateDefinitionSchema>;
397
+ declare const receiptTemplateSchema: z.ZodObject<{
398
+ id: z.ZodString;
399
+ pointOfSale: z.ZodOptional<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>>>;
400
+ name: z.ZodString;
401
+ schemaVersion: z.ZodLiteral<1>;
402
+ definition: z.ZodObject<{
403
+ schemaVersion: z.ZodLiteral<1>;
404
+ blocks: z.ZodArray<z.ZodObject<{
405
+ id: z.ZodString;
406
+ type: z.ZodEnum<{
407
+ title: "title";
408
+ order_type: "order_type";
409
+ logo: "logo";
410
+ order_identity: "order_identity";
411
+ order_times: "order_times";
412
+ customer: "customer";
413
+ address: "address";
414
+ items: "items";
415
+ notes: "notes";
416
+ totals: "totals";
417
+ payment: "payment";
418
+ separator: "separator";
419
+ spacer: "spacer";
420
+ custom_text: "custom_text";
421
+ }>;
422
+ enabled: z.ZodBoolean;
423
+ condition: z.ZodObject<{
424
+ type: z.ZodEnum<{
425
+ order_type: "order_type";
426
+ always: "always";
427
+ data_present: "data_present";
428
+ has_discount: "has_discount";
429
+ has_fee: "has_fee";
430
+ has_payment: "has_payment";
431
+ source: "source";
432
+ }>;
433
+ values: z.ZodArray<z.ZodString>;
434
+ }, z.core.$strip>;
435
+ style: z.ZodObject<{
436
+ alignment: z.ZodEnum<{
437
+ left: "left";
438
+ center: "center";
439
+ right: "right";
440
+ }>;
441
+ size: z.ZodEnum<{
442
+ normal: "normal";
443
+ tall: "tall";
444
+ double: "double";
445
+ double_tall: "double_tall";
446
+ }>;
447
+ bold: z.ZodBoolean;
448
+ underline: z.ZodBoolean;
449
+ inverse: z.ZodBoolean;
450
+ }, z.core.$strip>;
451
+ labels: z.ZodRecord<z.ZodString, z.ZodString>;
452
+ visibleFields: z.ZodArray<z.ZodEnum<{
453
+ order_type: "order_type";
454
+ order_sequence: "order_sequence";
455
+ order_display_id: "order_display_id";
456
+ requested_time: "requested_time";
457
+ preparation_time: "preparation_time";
458
+ customer_name: "customer_name";
459
+ customer_phone: "customer_phone";
460
+ customer_contact_number: "customer_contact_number";
461
+ customer_access_code: "customer_access_code";
462
+ address_line_1: "address_line_1";
463
+ address_line_2: "address_line_2";
464
+ address_city: "address_city";
465
+ address_postal_code: "address_postal_code";
466
+ item_variant: "item_variant";
467
+ item_removals: "item_removals";
468
+ item_modifiers: "item_modifiers";
469
+ item_notes: "item_notes";
470
+ item_prices: "item_prices";
471
+ subtotal: "subtotal";
472
+ discount: "discount";
473
+ fees: "fees";
474
+ total: "total";
475
+ taxes: "taxes";
476
+ payment_status: "payment_status";
477
+ payment_method: "payment_method";
478
+ order_notes: "order_notes";
479
+ kitchen_notes: "kitchen_notes";
480
+ delivery_notes: "delivery_notes";
481
+ partner: "partner";
482
+ }>>;
483
+ spacerLines: z.ZodNullable<z.ZodNumber>;
484
+ separatorCharacter: z.ZodNullable<z.ZodString>;
485
+ segments: z.ZodArray<z.ZodObject<{
486
+ type: z.ZodEnum<{
487
+ literal: "literal";
488
+ field: "field";
489
+ }>;
490
+ translations: z.ZodRecord<z.ZodString, z.ZodString>;
491
+ field: z.ZodNullable<z.ZodEnum<{
492
+ order_type: "order_type";
493
+ order_sequence: "order_sequence";
494
+ order_display_id: "order_display_id";
495
+ requested_time: "requested_time";
496
+ preparation_time: "preparation_time";
497
+ customer_name: "customer_name";
498
+ customer_phone: "customer_phone";
499
+ customer_contact_number: "customer_contact_number";
500
+ customer_access_code: "customer_access_code";
501
+ address_line_1: "address_line_1";
502
+ address_line_2: "address_line_2";
503
+ address_city: "address_city";
504
+ address_postal_code: "address_postal_code";
505
+ item_variant: "item_variant";
506
+ item_removals: "item_removals";
507
+ item_modifiers: "item_modifiers";
508
+ item_notes: "item_notes";
509
+ item_prices: "item_prices";
510
+ subtotal: "subtotal";
511
+ discount: "discount";
512
+ fees: "fees";
513
+ total: "total";
514
+ taxes: "taxes";
515
+ payment_status: "payment_status";
516
+ payment_method: "payment_method";
517
+ order_notes: "order_notes";
518
+ kitchen_notes: "kitchen_notes";
519
+ delivery_notes: "delivery_notes";
520
+ partner: "partner";
521
+ }>>;
522
+ }, z.core.$strip>>;
523
+ }, z.core.$strip>>;
524
+ }, z.core.$strip>;
525
+ status: z.ZodEnum<{
526
+ active: "active";
527
+ archived: "archived";
528
+ }>;
529
+ archivedAt: z.ZodNullable<z.ZodString>;
530
+ revision: z.ZodNumber;
531
+ createdAt: z.ZodString;
532
+ updatedAt: z.ZodString;
533
+ usageCount: z.ZodNumber;
534
+ }, z.core.$strip>;
535
+ type ReceiptTemplate = z.infer<typeof receiptTemplateSchema>;
536
+ declare const writableReceiptTemplateSchema: z.ZodObject<{
537
+ definition: z.ZodObject<{
538
+ schemaVersion: z.ZodLiteral<1>;
539
+ blocks: z.ZodArray<z.ZodObject<{
540
+ id: z.ZodString;
541
+ type: z.ZodEnum<{
542
+ title: "title";
543
+ order_type: "order_type";
544
+ logo: "logo";
545
+ order_identity: "order_identity";
546
+ order_times: "order_times";
547
+ customer: "customer";
548
+ address: "address";
549
+ items: "items";
550
+ notes: "notes";
551
+ totals: "totals";
552
+ payment: "payment";
553
+ separator: "separator";
554
+ spacer: "spacer";
555
+ custom_text: "custom_text";
556
+ }>;
557
+ enabled: z.ZodBoolean;
558
+ condition: z.ZodObject<{
559
+ type: z.ZodEnum<{
560
+ order_type: "order_type";
561
+ always: "always";
562
+ data_present: "data_present";
563
+ has_discount: "has_discount";
564
+ has_fee: "has_fee";
565
+ has_payment: "has_payment";
566
+ source: "source";
567
+ }>;
568
+ values: z.ZodArray<z.ZodString>;
569
+ }, z.core.$strip>;
570
+ style: z.ZodObject<{
571
+ alignment: z.ZodEnum<{
572
+ left: "left";
573
+ center: "center";
574
+ right: "right";
575
+ }>;
576
+ size: z.ZodEnum<{
577
+ normal: "normal";
578
+ tall: "tall";
579
+ double: "double";
580
+ double_tall: "double_tall";
581
+ }>;
582
+ bold: z.ZodBoolean;
583
+ underline: z.ZodBoolean;
584
+ inverse: z.ZodBoolean;
585
+ }, z.core.$strip>;
586
+ labels: z.ZodRecord<z.ZodString, z.ZodString>;
587
+ visibleFields: z.ZodArray<z.ZodEnum<{
588
+ order_type: "order_type";
589
+ order_sequence: "order_sequence";
590
+ order_display_id: "order_display_id";
591
+ requested_time: "requested_time";
592
+ preparation_time: "preparation_time";
593
+ customer_name: "customer_name";
594
+ customer_phone: "customer_phone";
595
+ customer_contact_number: "customer_contact_number";
596
+ customer_access_code: "customer_access_code";
597
+ address_line_1: "address_line_1";
598
+ address_line_2: "address_line_2";
599
+ address_city: "address_city";
600
+ address_postal_code: "address_postal_code";
601
+ item_variant: "item_variant";
602
+ item_removals: "item_removals";
603
+ item_modifiers: "item_modifiers";
604
+ item_notes: "item_notes";
605
+ item_prices: "item_prices";
606
+ subtotal: "subtotal";
607
+ discount: "discount";
608
+ fees: "fees";
609
+ total: "total";
610
+ taxes: "taxes";
611
+ payment_status: "payment_status";
612
+ payment_method: "payment_method";
613
+ order_notes: "order_notes";
614
+ kitchen_notes: "kitchen_notes";
615
+ delivery_notes: "delivery_notes";
616
+ partner: "partner";
617
+ }>>;
618
+ spacerLines: z.ZodNullable<z.ZodNumber>;
619
+ separatorCharacter: z.ZodNullable<z.ZodString>;
620
+ segments: z.ZodArray<z.ZodObject<{
621
+ type: z.ZodEnum<{
622
+ literal: "literal";
623
+ field: "field";
624
+ }>;
625
+ translations: z.ZodRecord<z.ZodString, z.ZodString>;
626
+ field: z.ZodNullable<z.ZodEnum<{
627
+ order_type: "order_type";
628
+ order_sequence: "order_sequence";
629
+ order_display_id: "order_display_id";
630
+ requested_time: "requested_time";
631
+ preparation_time: "preparation_time";
632
+ customer_name: "customer_name";
633
+ customer_phone: "customer_phone";
634
+ customer_contact_number: "customer_contact_number";
635
+ customer_access_code: "customer_access_code";
636
+ address_line_1: "address_line_1";
637
+ address_line_2: "address_line_2";
638
+ address_city: "address_city";
639
+ address_postal_code: "address_postal_code";
640
+ item_variant: "item_variant";
641
+ item_removals: "item_removals";
642
+ item_modifiers: "item_modifiers";
643
+ item_notes: "item_notes";
644
+ item_prices: "item_prices";
645
+ subtotal: "subtotal";
646
+ discount: "discount";
647
+ fees: "fees";
648
+ total: "total";
649
+ taxes: "taxes";
650
+ payment_status: "payment_status";
651
+ payment_method: "payment_method";
652
+ order_notes: "order_notes";
653
+ kitchen_notes: "kitchen_notes";
654
+ delivery_notes: "delivery_notes";
655
+ partner: "partner";
656
+ }>>;
657
+ }, z.core.$strip>>;
658
+ }, z.core.$strip>>;
659
+ }, z.core.$strip>;
660
+ status: z.ZodEnum<{
661
+ active: "active";
662
+ archived: "archived";
663
+ }>;
664
+ name: z.ZodString;
665
+ }, z.core.$strip>;
666
+ declare const writableCreateReceiptTemplateSchema: z.ZodObject<{
667
+ definition: z.ZodObject<{
668
+ schemaVersion: z.ZodLiteral<1>;
669
+ blocks: z.ZodArray<z.ZodObject<{
670
+ id: z.ZodString;
671
+ type: z.ZodEnum<{
672
+ title: "title";
673
+ order_type: "order_type";
674
+ logo: "logo";
675
+ order_identity: "order_identity";
676
+ order_times: "order_times";
677
+ customer: "customer";
678
+ address: "address";
679
+ items: "items";
680
+ notes: "notes";
681
+ totals: "totals";
682
+ payment: "payment";
683
+ separator: "separator";
684
+ spacer: "spacer";
685
+ custom_text: "custom_text";
686
+ }>;
687
+ enabled: z.ZodBoolean;
688
+ condition: z.ZodObject<{
689
+ type: z.ZodEnum<{
690
+ order_type: "order_type";
691
+ always: "always";
692
+ data_present: "data_present";
693
+ has_discount: "has_discount";
694
+ has_fee: "has_fee";
695
+ has_payment: "has_payment";
696
+ source: "source";
697
+ }>;
698
+ values: z.ZodArray<z.ZodString>;
699
+ }, z.core.$strip>;
700
+ style: z.ZodObject<{
701
+ alignment: z.ZodEnum<{
702
+ left: "left";
703
+ center: "center";
704
+ right: "right";
705
+ }>;
706
+ size: z.ZodEnum<{
707
+ normal: "normal";
708
+ tall: "tall";
709
+ double: "double";
710
+ double_tall: "double_tall";
711
+ }>;
712
+ bold: z.ZodBoolean;
713
+ underline: z.ZodBoolean;
714
+ inverse: z.ZodBoolean;
715
+ }, z.core.$strip>;
716
+ labels: z.ZodRecord<z.ZodString, z.ZodString>;
717
+ visibleFields: z.ZodArray<z.ZodEnum<{
718
+ order_type: "order_type";
719
+ order_sequence: "order_sequence";
720
+ order_display_id: "order_display_id";
721
+ requested_time: "requested_time";
722
+ preparation_time: "preparation_time";
723
+ customer_name: "customer_name";
724
+ customer_phone: "customer_phone";
725
+ customer_contact_number: "customer_contact_number";
726
+ customer_access_code: "customer_access_code";
727
+ address_line_1: "address_line_1";
728
+ address_line_2: "address_line_2";
729
+ address_city: "address_city";
730
+ address_postal_code: "address_postal_code";
731
+ item_variant: "item_variant";
732
+ item_removals: "item_removals";
733
+ item_modifiers: "item_modifiers";
734
+ item_notes: "item_notes";
735
+ item_prices: "item_prices";
736
+ subtotal: "subtotal";
737
+ discount: "discount";
738
+ fees: "fees";
739
+ total: "total";
740
+ taxes: "taxes";
741
+ payment_status: "payment_status";
742
+ payment_method: "payment_method";
743
+ order_notes: "order_notes";
744
+ kitchen_notes: "kitchen_notes";
745
+ delivery_notes: "delivery_notes";
746
+ partner: "partner";
747
+ }>>;
748
+ spacerLines: z.ZodNullable<z.ZodNumber>;
749
+ separatorCharacter: z.ZodNullable<z.ZodString>;
750
+ segments: z.ZodArray<z.ZodObject<{
751
+ type: z.ZodEnum<{
752
+ literal: "literal";
753
+ field: "field";
754
+ }>;
755
+ translations: z.ZodRecord<z.ZodString, z.ZodString>;
756
+ field: z.ZodNullable<z.ZodEnum<{
757
+ order_type: "order_type";
758
+ order_sequence: "order_sequence";
759
+ order_display_id: "order_display_id";
760
+ requested_time: "requested_time";
761
+ preparation_time: "preparation_time";
762
+ customer_name: "customer_name";
763
+ customer_phone: "customer_phone";
764
+ customer_contact_number: "customer_contact_number";
765
+ customer_access_code: "customer_access_code";
766
+ address_line_1: "address_line_1";
767
+ address_line_2: "address_line_2";
768
+ address_city: "address_city";
769
+ address_postal_code: "address_postal_code";
770
+ item_variant: "item_variant";
771
+ item_removals: "item_removals";
772
+ item_modifiers: "item_modifiers";
773
+ item_notes: "item_notes";
774
+ item_prices: "item_prices";
775
+ subtotal: "subtotal";
776
+ discount: "discount";
777
+ fees: "fees";
778
+ total: "total";
779
+ taxes: "taxes";
780
+ payment_status: "payment_status";
781
+ payment_method: "payment_method";
782
+ order_notes: "order_notes";
783
+ kitchen_notes: "kitchen_notes";
784
+ delivery_notes: "delivery_notes";
785
+ partner: "partner";
786
+ }>>;
787
+ }, z.core.$strip>>;
788
+ }, z.core.$strip>>;
789
+ }, z.core.$strip>;
790
+ status: z.ZodEnum<{
791
+ active: "active";
792
+ archived: "archived";
793
+ }>;
794
+ name: z.ZodString;
795
+ 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>>;
796
+ }, z.core.$strip>;
797
+ declare const receiptTemplatesQuerySchema: z.ZodObject<{
798
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
799
+ name: z.ZodOptional<z.ZodString>;
800
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
801
+ active: "active";
802
+ archived: "archived";
803
+ }>, z.ZodArray<z.ZodEnum<{
804
+ active: "active";
805
+ archived: "archived";
806
+ }>>]>>;
807
+ 'order[name]': z.ZodOptional<z.ZodEnum<{
808
+ asc: "asc";
809
+ desc: "desc";
810
+ }>>;
811
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<{
812
+ asc: "asc";
813
+ desc: "desc";
814
+ }>>;
815
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
816
+ asc: "asc";
817
+ desc: "desc";
818
+ }>>;
819
+ page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
820
+ 'createdAt[before]': z.ZodOptional<z.ZodString>;
821
+ 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
822
+ 'createdAt[after]': z.ZodOptional<z.ZodString>;
823
+ 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
824
+ 'updatedAt[before]': z.ZodOptional<z.ZodString>;
825
+ 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
826
+ 'updatedAt[after]': z.ZodOptional<z.ZodString>;
827
+ 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
828
+ }, z.core.$strip>;
829
+ type ReceiptTemplatesQueryParams = z.infer<typeof receiptTemplatesQuerySchema>;
830
+
831
+ declare const createReceiptTemplateInputSchema: z.ZodObject<{
832
+ definition: z.ZodObject<{
833
+ schemaVersion: z.ZodLiteral<1>;
834
+ blocks: z.ZodArray<z.ZodObject<{
835
+ id: z.ZodString;
836
+ type: z.ZodEnum<{
837
+ title: "title";
838
+ order_type: "order_type";
839
+ logo: "logo";
840
+ order_identity: "order_identity";
841
+ order_times: "order_times";
842
+ customer: "customer";
843
+ address: "address";
844
+ items: "items";
845
+ notes: "notes";
846
+ totals: "totals";
847
+ payment: "payment";
848
+ separator: "separator";
849
+ spacer: "spacer";
850
+ custom_text: "custom_text";
851
+ }>;
852
+ enabled: z.ZodBoolean;
853
+ condition: z.ZodObject<{
854
+ type: z.ZodEnum<{
855
+ order_type: "order_type";
856
+ always: "always";
857
+ data_present: "data_present";
858
+ has_discount: "has_discount";
859
+ has_fee: "has_fee";
860
+ has_payment: "has_payment";
861
+ source: "source";
862
+ }>;
863
+ values: z.ZodArray<z.ZodString>;
864
+ }, z.core.$strip>;
865
+ style: z.ZodObject<{
866
+ alignment: z.ZodEnum<{
867
+ left: "left";
868
+ center: "center";
869
+ right: "right";
870
+ }>;
871
+ size: z.ZodEnum<{
872
+ normal: "normal";
873
+ tall: "tall";
874
+ double: "double";
875
+ double_tall: "double_tall";
876
+ }>;
877
+ bold: z.ZodBoolean;
878
+ underline: z.ZodBoolean;
879
+ inverse: z.ZodBoolean;
880
+ }, z.core.$strip>;
881
+ labels: z.ZodRecord<z.ZodString, z.ZodString>;
882
+ visibleFields: z.ZodArray<z.ZodEnum<{
883
+ order_type: "order_type";
884
+ order_sequence: "order_sequence";
885
+ order_display_id: "order_display_id";
886
+ requested_time: "requested_time";
887
+ preparation_time: "preparation_time";
888
+ customer_name: "customer_name";
889
+ customer_phone: "customer_phone";
890
+ customer_contact_number: "customer_contact_number";
891
+ customer_access_code: "customer_access_code";
892
+ address_line_1: "address_line_1";
893
+ address_line_2: "address_line_2";
894
+ address_city: "address_city";
895
+ address_postal_code: "address_postal_code";
896
+ item_variant: "item_variant";
897
+ item_removals: "item_removals";
898
+ item_modifiers: "item_modifiers";
899
+ item_notes: "item_notes";
900
+ item_prices: "item_prices";
901
+ subtotal: "subtotal";
902
+ discount: "discount";
903
+ fees: "fees";
904
+ total: "total";
905
+ taxes: "taxes";
906
+ payment_status: "payment_status";
907
+ payment_method: "payment_method";
908
+ order_notes: "order_notes";
909
+ kitchen_notes: "kitchen_notes";
910
+ delivery_notes: "delivery_notes";
911
+ partner: "partner";
912
+ }>>;
913
+ spacerLines: z.ZodNullable<z.ZodNumber>;
914
+ separatorCharacter: z.ZodNullable<z.ZodString>;
915
+ segments: z.ZodArray<z.ZodObject<{
916
+ type: z.ZodEnum<{
917
+ literal: "literal";
918
+ field: "field";
919
+ }>;
920
+ translations: z.ZodRecord<z.ZodString, z.ZodString>;
921
+ field: z.ZodNullable<z.ZodEnum<{
922
+ order_type: "order_type";
923
+ order_sequence: "order_sequence";
924
+ order_display_id: "order_display_id";
925
+ requested_time: "requested_time";
926
+ preparation_time: "preparation_time";
927
+ customer_name: "customer_name";
928
+ customer_phone: "customer_phone";
929
+ customer_contact_number: "customer_contact_number";
930
+ customer_access_code: "customer_access_code";
931
+ address_line_1: "address_line_1";
932
+ address_line_2: "address_line_2";
933
+ address_city: "address_city";
934
+ address_postal_code: "address_postal_code";
935
+ item_variant: "item_variant";
936
+ item_removals: "item_removals";
937
+ item_modifiers: "item_modifiers";
938
+ item_notes: "item_notes";
939
+ item_prices: "item_prices";
940
+ subtotal: "subtotal";
941
+ discount: "discount";
942
+ fees: "fees";
943
+ total: "total";
944
+ taxes: "taxes";
945
+ payment_status: "payment_status";
946
+ payment_method: "payment_method";
947
+ order_notes: "order_notes";
948
+ kitchen_notes: "kitchen_notes";
949
+ delivery_notes: "delivery_notes";
950
+ partner: "partner";
951
+ }>>;
952
+ }, z.core.$strip>>;
953
+ }, z.core.$strip>>;
954
+ }, z.core.$strip>;
955
+ status: z.ZodEnum<{
956
+ active: "active";
957
+ archived: "archived";
958
+ }>;
959
+ name: z.ZodString;
960
+ 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>>;
961
+ }, z.core.$strip>;
962
+ type CreateReceiptTemplateInput = z.input<typeof createReceiptTemplateInputSchema>;
963
+ declare const createReceiptTemplateResponseSchema: z.ZodObject<{
964
+ id: z.ZodString;
965
+ pointOfSale: z.ZodOptional<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>>>;
966
+ name: z.ZodString;
967
+ schemaVersion: z.ZodLiteral<1>;
968
+ definition: z.ZodObject<{
969
+ schemaVersion: z.ZodLiteral<1>;
970
+ blocks: z.ZodArray<z.ZodObject<{
971
+ id: z.ZodString;
972
+ type: z.ZodEnum<{
973
+ title: "title";
974
+ order_type: "order_type";
975
+ logo: "logo";
976
+ order_identity: "order_identity";
977
+ order_times: "order_times";
978
+ customer: "customer";
979
+ address: "address";
980
+ items: "items";
981
+ notes: "notes";
982
+ totals: "totals";
983
+ payment: "payment";
984
+ separator: "separator";
985
+ spacer: "spacer";
986
+ custom_text: "custom_text";
987
+ }>;
988
+ enabled: z.ZodBoolean;
989
+ condition: z.ZodObject<{
990
+ type: z.ZodEnum<{
991
+ order_type: "order_type";
992
+ always: "always";
993
+ data_present: "data_present";
994
+ has_discount: "has_discount";
995
+ has_fee: "has_fee";
996
+ has_payment: "has_payment";
997
+ source: "source";
998
+ }>;
999
+ values: z.ZodArray<z.ZodString>;
1000
+ }, z.core.$strip>;
1001
+ style: z.ZodObject<{
1002
+ alignment: z.ZodEnum<{
1003
+ left: "left";
1004
+ center: "center";
1005
+ right: "right";
1006
+ }>;
1007
+ size: z.ZodEnum<{
1008
+ normal: "normal";
1009
+ tall: "tall";
1010
+ double: "double";
1011
+ double_tall: "double_tall";
1012
+ }>;
1013
+ bold: z.ZodBoolean;
1014
+ underline: z.ZodBoolean;
1015
+ inverse: z.ZodBoolean;
1016
+ }, z.core.$strip>;
1017
+ labels: z.ZodRecord<z.ZodString, z.ZodString>;
1018
+ visibleFields: z.ZodArray<z.ZodEnum<{
1019
+ order_type: "order_type";
1020
+ order_sequence: "order_sequence";
1021
+ order_display_id: "order_display_id";
1022
+ requested_time: "requested_time";
1023
+ preparation_time: "preparation_time";
1024
+ customer_name: "customer_name";
1025
+ customer_phone: "customer_phone";
1026
+ customer_contact_number: "customer_contact_number";
1027
+ customer_access_code: "customer_access_code";
1028
+ address_line_1: "address_line_1";
1029
+ address_line_2: "address_line_2";
1030
+ address_city: "address_city";
1031
+ address_postal_code: "address_postal_code";
1032
+ item_variant: "item_variant";
1033
+ item_removals: "item_removals";
1034
+ item_modifiers: "item_modifiers";
1035
+ item_notes: "item_notes";
1036
+ item_prices: "item_prices";
1037
+ subtotal: "subtotal";
1038
+ discount: "discount";
1039
+ fees: "fees";
1040
+ total: "total";
1041
+ taxes: "taxes";
1042
+ payment_status: "payment_status";
1043
+ payment_method: "payment_method";
1044
+ order_notes: "order_notes";
1045
+ kitchen_notes: "kitchen_notes";
1046
+ delivery_notes: "delivery_notes";
1047
+ partner: "partner";
1048
+ }>>;
1049
+ spacerLines: z.ZodNullable<z.ZodNumber>;
1050
+ separatorCharacter: z.ZodNullable<z.ZodString>;
1051
+ segments: z.ZodArray<z.ZodObject<{
1052
+ type: z.ZodEnum<{
1053
+ literal: "literal";
1054
+ field: "field";
1055
+ }>;
1056
+ translations: z.ZodRecord<z.ZodString, z.ZodString>;
1057
+ field: z.ZodNullable<z.ZodEnum<{
1058
+ order_type: "order_type";
1059
+ order_sequence: "order_sequence";
1060
+ order_display_id: "order_display_id";
1061
+ requested_time: "requested_time";
1062
+ preparation_time: "preparation_time";
1063
+ customer_name: "customer_name";
1064
+ customer_phone: "customer_phone";
1065
+ customer_contact_number: "customer_contact_number";
1066
+ customer_access_code: "customer_access_code";
1067
+ address_line_1: "address_line_1";
1068
+ address_line_2: "address_line_2";
1069
+ address_city: "address_city";
1070
+ address_postal_code: "address_postal_code";
1071
+ item_variant: "item_variant";
1072
+ item_removals: "item_removals";
1073
+ item_modifiers: "item_modifiers";
1074
+ item_notes: "item_notes";
1075
+ item_prices: "item_prices";
1076
+ subtotal: "subtotal";
1077
+ discount: "discount";
1078
+ fees: "fees";
1079
+ total: "total";
1080
+ taxes: "taxes";
1081
+ payment_status: "payment_status";
1082
+ payment_method: "payment_method";
1083
+ order_notes: "order_notes";
1084
+ kitchen_notes: "kitchen_notes";
1085
+ delivery_notes: "delivery_notes";
1086
+ partner: "partner";
1087
+ }>>;
1088
+ }, z.core.$strip>>;
1089
+ }, z.core.$strip>>;
1090
+ }, z.core.$strip>;
1091
+ status: z.ZodEnum<{
1092
+ active: "active";
1093
+ archived: "archived";
1094
+ }>;
1095
+ archivedAt: z.ZodNullable<z.ZodString>;
1096
+ revision: z.ZodNumber;
1097
+ createdAt: z.ZodString;
1098
+ updatedAt: z.ZodString;
1099
+ usageCount: z.ZodNumber;
1100
+ }, z.core.$strip>;
1101
+ type CreateReceiptTemplateResponse = z.infer<typeof createReceiptTemplateResponseSchema>;
1102
+ declare class CreateReceiptTemplate extends AbstractApiRequest<typeof createReceiptTemplateInputSchema, typeof createReceiptTemplateResponseSchema> {
1103
+ readonly method: "POST";
1104
+ readonly contentType: "application/json";
1105
+ readonly accept: "application/json";
1106
+ readonly inputSchema: z.ZodObject<{
1107
+ definition: z.ZodObject<{
1108
+ schemaVersion: z.ZodLiteral<1>;
1109
+ blocks: z.ZodArray<z.ZodObject<{
1110
+ id: z.ZodString;
1111
+ type: z.ZodEnum<{
1112
+ title: "title";
1113
+ order_type: "order_type";
1114
+ logo: "logo";
1115
+ order_identity: "order_identity";
1116
+ order_times: "order_times";
1117
+ customer: "customer";
1118
+ address: "address";
1119
+ items: "items";
1120
+ notes: "notes";
1121
+ totals: "totals";
1122
+ payment: "payment";
1123
+ separator: "separator";
1124
+ spacer: "spacer";
1125
+ custom_text: "custom_text";
1126
+ }>;
1127
+ enabled: z.ZodBoolean;
1128
+ condition: z.ZodObject<{
1129
+ type: z.ZodEnum<{
1130
+ order_type: "order_type";
1131
+ always: "always";
1132
+ data_present: "data_present";
1133
+ has_discount: "has_discount";
1134
+ has_fee: "has_fee";
1135
+ has_payment: "has_payment";
1136
+ source: "source";
1137
+ }>;
1138
+ values: z.ZodArray<z.ZodString>;
1139
+ }, z.core.$strip>;
1140
+ style: z.ZodObject<{
1141
+ alignment: z.ZodEnum<{
1142
+ left: "left";
1143
+ center: "center";
1144
+ right: "right";
1145
+ }>;
1146
+ size: z.ZodEnum<{
1147
+ normal: "normal";
1148
+ tall: "tall";
1149
+ double: "double";
1150
+ double_tall: "double_tall";
1151
+ }>;
1152
+ bold: z.ZodBoolean;
1153
+ underline: z.ZodBoolean;
1154
+ inverse: z.ZodBoolean;
1155
+ }, z.core.$strip>;
1156
+ labels: z.ZodRecord<z.ZodString, z.ZodString>;
1157
+ visibleFields: z.ZodArray<z.ZodEnum<{
1158
+ order_type: "order_type";
1159
+ order_sequence: "order_sequence";
1160
+ order_display_id: "order_display_id";
1161
+ requested_time: "requested_time";
1162
+ preparation_time: "preparation_time";
1163
+ customer_name: "customer_name";
1164
+ customer_phone: "customer_phone";
1165
+ customer_contact_number: "customer_contact_number";
1166
+ customer_access_code: "customer_access_code";
1167
+ address_line_1: "address_line_1";
1168
+ address_line_2: "address_line_2";
1169
+ address_city: "address_city";
1170
+ address_postal_code: "address_postal_code";
1171
+ item_variant: "item_variant";
1172
+ item_removals: "item_removals";
1173
+ item_modifiers: "item_modifiers";
1174
+ item_notes: "item_notes";
1175
+ item_prices: "item_prices";
1176
+ subtotal: "subtotal";
1177
+ discount: "discount";
1178
+ fees: "fees";
1179
+ total: "total";
1180
+ taxes: "taxes";
1181
+ payment_status: "payment_status";
1182
+ payment_method: "payment_method";
1183
+ order_notes: "order_notes";
1184
+ kitchen_notes: "kitchen_notes";
1185
+ delivery_notes: "delivery_notes";
1186
+ partner: "partner";
1187
+ }>>;
1188
+ spacerLines: z.ZodNullable<z.ZodNumber>;
1189
+ separatorCharacter: z.ZodNullable<z.ZodString>;
1190
+ segments: z.ZodArray<z.ZodObject<{
1191
+ type: z.ZodEnum<{
1192
+ literal: "literal";
1193
+ field: "field";
1194
+ }>;
1195
+ translations: z.ZodRecord<z.ZodString, z.ZodString>;
1196
+ field: z.ZodNullable<z.ZodEnum<{
1197
+ order_type: "order_type";
1198
+ order_sequence: "order_sequence";
1199
+ order_display_id: "order_display_id";
1200
+ requested_time: "requested_time";
1201
+ preparation_time: "preparation_time";
1202
+ customer_name: "customer_name";
1203
+ customer_phone: "customer_phone";
1204
+ customer_contact_number: "customer_contact_number";
1205
+ customer_access_code: "customer_access_code";
1206
+ address_line_1: "address_line_1";
1207
+ address_line_2: "address_line_2";
1208
+ address_city: "address_city";
1209
+ address_postal_code: "address_postal_code";
1210
+ item_variant: "item_variant";
1211
+ item_removals: "item_removals";
1212
+ item_modifiers: "item_modifiers";
1213
+ item_notes: "item_notes";
1214
+ item_prices: "item_prices";
1215
+ subtotal: "subtotal";
1216
+ discount: "discount";
1217
+ fees: "fees";
1218
+ total: "total";
1219
+ taxes: "taxes";
1220
+ payment_status: "payment_status";
1221
+ payment_method: "payment_method";
1222
+ order_notes: "order_notes";
1223
+ kitchen_notes: "kitchen_notes";
1224
+ delivery_notes: "delivery_notes";
1225
+ partner: "partner";
1226
+ }>>;
1227
+ }, z.core.$strip>>;
1228
+ }, z.core.$strip>>;
1229
+ }, z.core.$strip>;
1230
+ status: z.ZodEnum<{
1231
+ active: "active";
1232
+ archived: "archived";
1233
+ }>;
1234
+ name: z.ZodString;
1235
+ 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>>;
1236
+ }, z.core.$strip>;
1237
+ readonly outputSchema: z.ZodObject<{
1238
+ id: z.ZodString;
1239
+ pointOfSale: z.ZodOptional<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>>>;
1240
+ name: z.ZodString;
1241
+ schemaVersion: z.ZodLiteral<1>;
1242
+ definition: z.ZodObject<{
1243
+ schemaVersion: z.ZodLiteral<1>;
1244
+ blocks: z.ZodArray<z.ZodObject<{
1245
+ id: z.ZodString;
1246
+ type: z.ZodEnum<{
1247
+ title: "title";
1248
+ order_type: "order_type";
1249
+ logo: "logo";
1250
+ order_identity: "order_identity";
1251
+ order_times: "order_times";
1252
+ customer: "customer";
1253
+ address: "address";
1254
+ items: "items";
1255
+ notes: "notes";
1256
+ totals: "totals";
1257
+ payment: "payment";
1258
+ separator: "separator";
1259
+ spacer: "spacer";
1260
+ custom_text: "custom_text";
1261
+ }>;
1262
+ enabled: z.ZodBoolean;
1263
+ condition: z.ZodObject<{
1264
+ type: z.ZodEnum<{
1265
+ order_type: "order_type";
1266
+ always: "always";
1267
+ data_present: "data_present";
1268
+ has_discount: "has_discount";
1269
+ has_fee: "has_fee";
1270
+ has_payment: "has_payment";
1271
+ source: "source";
1272
+ }>;
1273
+ values: z.ZodArray<z.ZodString>;
1274
+ }, z.core.$strip>;
1275
+ style: z.ZodObject<{
1276
+ alignment: z.ZodEnum<{
1277
+ left: "left";
1278
+ center: "center";
1279
+ right: "right";
1280
+ }>;
1281
+ size: z.ZodEnum<{
1282
+ normal: "normal";
1283
+ tall: "tall";
1284
+ double: "double";
1285
+ double_tall: "double_tall";
1286
+ }>;
1287
+ bold: z.ZodBoolean;
1288
+ underline: z.ZodBoolean;
1289
+ inverse: z.ZodBoolean;
1290
+ }, z.core.$strip>;
1291
+ labels: z.ZodRecord<z.ZodString, z.ZodString>;
1292
+ visibleFields: z.ZodArray<z.ZodEnum<{
1293
+ order_type: "order_type";
1294
+ order_sequence: "order_sequence";
1295
+ order_display_id: "order_display_id";
1296
+ requested_time: "requested_time";
1297
+ preparation_time: "preparation_time";
1298
+ customer_name: "customer_name";
1299
+ customer_phone: "customer_phone";
1300
+ customer_contact_number: "customer_contact_number";
1301
+ customer_access_code: "customer_access_code";
1302
+ address_line_1: "address_line_1";
1303
+ address_line_2: "address_line_2";
1304
+ address_city: "address_city";
1305
+ address_postal_code: "address_postal_code";
1306
+ item_variant: "item_variant";
1307
+ item_removals: "item_removals";
1308
+ item_modifiers: "item_modifiers";
1309
+ item_notes: "item_notes";
1310
+ item_prices: "item_prices";
1311
+ subtotal: "subtotal";
1312
+ discount: "discount";
1313
+ fees: "fees";
1314
+ total: "total";
1315
+ taxes: "taxes";
1316
+ payment_status: "payment_status";
1317
+ payment_method: "payment_method";
1318
+ order_notes: "order_notes";
1319
+ kitchen_notes: "kitchen_notes";
1320
+ delivery_notes: "delivery_notes";
1321
+ partner: "partner";
1322
+ }>>;
1323
+ spacerLines: z.ZodNullable<z.ZodNumber>;
1324
+ separatorCharacter: z.ZodNullable<z.ZodString>;
1325
+ segments: z.ZodArray<z.ZodObject<{
1326
+ type: z.ZodEnum<{
1327
+ literal: "literal";
1328
+ field: "field";
1329
+ }>;
1330
+ translations: z.ZodRecord<z.ZodString, z.ZodString>;
1331
+ field: z.ZodNullable<z.ZodEnum<{
1332
+ order_type: "order_type";
1333
+ order_sequence: "order_sequence";
1334
+ order_display_id: "order_display_id";
1335
+ requested_time: "requested_time";
1336
+ preparation_time: "preparation_time";
1337
+ customer_name: "customer_name";
1338
+ customer_phone: "customer_phone";
1339
+ customer_contact_number: "customer_contact_number";
1340
+ customer_access_code: "customer_access_code";
1341
+ address_line_1: "address_line_1";
1342
+ address_line_2: "address_line_2";
1343
+ address_city: "address_city";
1344
+ address_postal_code: "address_postal_code";
1345
+ item_variant: "item_variant";
1346
+ item_removals: "item_removals";
1347
+ item_modifiers: "item_modifiers";
1348
+ item_notes: "item_notes";
1349
+ item_prices: "item_prices";
1350
+ subtotal: "subtotal";
1351
+ discount: "discount";
1352
+ fees: "fees";
1353
+ total: "total";
1354
+ taxes: "taxes";
1355
+ payment_status: "payment_status";
1356
+ payment_method: "payment_method";
1357
+ order_notes: "order_notes";
1358
+ kitchen_notes: "kitchen_notes";
1359
+ delivery_notes: "delivery_notes";
1360
+ partner: "partner";
1361
+ }>>;
1362
+ }, z.core.$strip>>;
1363
+ }, z.core.$strip>>;
1364
+ }, z.core.$strip>;
1365
+ status: z.ZodEnum<{
1366
+ active: "active";
1367
+ archived: "archived";
1368
+ }>;
1369
+ archivedAt: z.ZodNullable<z.ZodString>;
1370
+ revision: z.ZodNumber;
1371
+ createdAt: z.ZodString;
1372
+ updatedAt: z.ZodString;
1373
+ usageCount: z.ZodNumber;
1374
+ }, z.core.$strip>;
1375
+ readonly querySchema: undefined;
1376
+ readonly headersSchema: undefined;
1377
+ constructor(input: CreateReceiptTemplateInput);
1378
+ getPath(): string;
1379
+ }
1380
+
1381
+ declare const inputSchema$2: z.ZodUndefined;
1382
+ declare class GetReceiptTemplateDetails extends AbstractApiRequest<typeof inputSchema$2, typeof receiptTemplateSchema> {
1383
+ private readonly receiptTemplateId;
1384
+ readonly method: "GET";
1385
+ readonly contentType: "application/json";
1386
+ readonly accept: "application/json";
1387
+ readonly inputSchema: z.ZodUndefined;
1388
+ readonly outputSchema: z.ZodObject<{
1389
+ id: z.ZodString;
1390
+ pointOfSale: z.ZodOptional<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>>>;
1391
+ name: z.ZodString;
1392
+ schemaVersion: z.ZodLiteral<1>;
1393
+ definition: z.ZodObject<{
1394
+ schemaVersion: z.ZodLiteral<1>;
1395
+ blocks: z.ZodArray<z.ZodObject<{
1396
+ id: z.ZodString;
1397
+ type: z.ZodEnum<{
1398
+ title: "title";
1399
+ order_type: "order_type";
1400
+ logo: "logo";
1401
+ order_identity: "order_identity";
1402
+ order_times: "order_times";
1403
+ customer: "customer";
1404
+ address: "address";
1405
+ items: "items";
1406
+ notes: "notes";
1407
+ totals: "totals";
1408
+ payment: "payment";
1409
+ separator: "separator";
1410
+ spacer: "spacer";
1411
+ custom_text: "custom_text";
1412
+ }>;
1413
+ enabled: z.ZodBoolean;
1414
+ condition: z.ZodObject<{
1415
+ type: z.ZodEnum<{
1416
+ order_type: "order_type";
1417
+ always: "always";
1418
+ data_present: "data_present";
1419
+ has_discount: "has_discount";
1420
+ has_fee: "has_fee";
1421
+ has_payment: "has_payment";
1422
+ source: "source";
1423
+ }>;
1424
+ values: z.ZodArray<z.ZodString>;
1425
+ }, z.core.$strip>;
1426
+ style: z.ZodObject<{
1427
+ alignment: z.ZodEnum<{
1428
+ left: "left";
1429
+ center: "center";
1430
+ right: "right";
1431
+ }>;
1432
+ size: z.ZodEnum<{
1433
+ normal: "normal";
1434
+ tall: "tall";
1435
+ double: "double";
1436
+ double_tall: "double_tall";
1437
+ }>;
1438
+ bold: z.ZodBoolean;
1439
+ underline: z.ZodBoolean;
1440
+ inverse: z.ZodBoolean;
1441
+ }, z.core.$strip>;
1442
+ labels: z.ZodRecord<z.ZodString, z.ZodString>;
1443
+ visibleFields: z.ZodArray<z.ZodEnum<{
1444
+ order_type: "order_type";
1445
+ order_sequence: "order_sequence";
1446
+ order_display_id: "order_display_id";
1447
+ requested_time: "requested_time";
1448
+ preparation_time: "preparation_time";
1449
+ customer_name: "customer_name";
1450
+ customer_phone: "customer_phone";
1451
+ customer_contact_number: "customer_contact_number";
1452
+ customer_access_code: "customer_access_code";
1453
+ address_line_1: "address_line_1";
1454
+ address_line_2: "address_line_2";
1455
+ address_city: "address_city";
1456
+ address_postal_code: "address_postal_code";
1457
+ item_variant: "item_variant";
1458
+ item_removals: "item_removals";
1459
+ item_modifiers: "item_modifiers";
1460
+ item_notes: "item_notes";
1461
+ item_prices: "item_prices";
1462
+ subtotal: "subtotal";
1463
+ discount: "discount";
1464
+ fees: "fees";
1465
+ total: "total";
1466
+ taxes: "taxes";
1467
+ payment_status: "payment_status";
1468
+ payment_method: "payment_method";
1469
+ order_notes: "order_notes";
1470
+ kitchen_notes: "kitchen_notes";
1471
+ delivery_notes: "delivery_notes";
1472
+ partner: "partner";
1473
+ }>>;
1474
+ spacerLines: z.ZodNullable<z.ZodNumber>;
1475
+ separatorCharacter: z.ZodNullable<z.ZodString>;
1476
+ segments: z.ZodArray<z.ZodObject<{
1477
+ type: z.ZodEnum<{
1478
+ literal: "literal";
1479
+ field: "field";
1480
+ }>;
1481
+ translations: z.ZodRecord<z.ZodString, z.ZodString>;
1482
+ field: z.ZodNullable<z.ZodEnum<{
1483
+ order_type: "order_type";
1484
+ order_sequence: "order_sequence";
1485
+ order_display_id: "order_display_id";
1486
+ requested_time: "requested_time";
1487
+ preparation_time: "preparation_time";
1488
+ customer_name: "customer_name";
1489
+ customer_phone: "customer_phone";
1490
+ customer_contact_number: "customer_contact_number";
1491
+ customer_access_code: "customer_access_code";
1492
+ address_line_1: "address_line_1";
1493
+ address_line_2: "address_line_2";
1494
+ address_city: "address_city";
1495
+ address_postal_code: "address_postal_code";
1496
+ item_variant: "item_variant";
1497
+ item_removals: "item_removals";
1498
+ item_modifiers: "item_modifiers";
1499
+ item_notes: "item_notes";
1500
+ item_prices: "item_prices";
1501
+ subtotal: "subtotal";
1502
+ discount: "discount";
1503
+ fees: "fees";
1504
+ total: "total";
1505
+ taxes: "taxes";
1506
+ payment_status: "payment_status";
1507
+ payment_method: "payment_method";
1508
+ order_notes: "order_notes";
1509
+ kitchen_notes: "kitchen_notes";
1510
+ delivery_notes: "delivery_notes";
1511
+ partner: "partner";
1512
+ }>>;
1513
+ }, z.core.$strip>>;
1514
+ }, z.core.$strip>>;
1515
+ }, z.core.$strip>;
1516
+ status: z.ZodEnum<{
1517
+ active: "active";
1518
+ archived: "archived";
1519
+ }>;
1520
+ archivedAt: z.ZodNullable<z.ZodString>;
1521
+ revision: z.ZodNumber;
1522
+ createdAt: z.ZodString;
1523
+ updatedAt: z.ZodString;
1524
+ usageCount: z.ZodNumber;
1525
+ }, z.core.$strip>;
1526
+ readonly querySchema: undefined;
1527
+ readonly headersSchema: undefined;
1528
+ constructor(receiptTemplateId: string);
1529
+ getPath(): string;
1530
+ }
1531
+
1532
+ declare const inputSchema$1: z.ZodUndefined;
1533
+ declare const getReceiptTemplatesResponseSchema: z.ZodObject<{
1534
+ data: z.ZodArray<z.ZodObject<{
1535
+ id: z.ZodString;
1536
+ pointOfSale: z.ZodOptional<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>>>;
1537
+ name: z.ZodString;
1538
+ schemaVersion: z.ZodLiteral<1>;
1539
+ definition: z.ZodObject<{
1540
+ schemaVersion: z.ZodLiteral<1>;
1541
+ blocks: z.ZodArray<z.ZodObject<{
1542
+ id: z.ZodString;
1543
+ type: z.ZodEnum<{
1544
+ title: "title";
1545
+ order_type: "order_type";
1546
+ logo: "logo";
1547
+ order_identity: "order_identity";
1548
+ order_times: "order_times";
1549
+ customer: "customer";
1550
+ address: "address";
1551
+ items: "items";
1552
+ notes: "notes";
1553
+ totals: "totals";
1554
+ payment: "payment";
1555
+ separator: "separator";
1556
+ spacer: "spacer";
1557
+ custom_text: "custom_text";
1558
+ }>;
1559
+ enabled: z.ZodBoolean;
1560
+ condition: z.ZodObject<{
1561
+ type: z.ZodEnum<{
1562
+ order_type: "order_type";
1563
+ always: "always";
1564
+ data_present: "data_present";
1565
+ has_discount: "has_discount";
1566
+ has_fee: "has_fee";
1567
+ has_payment: "has_payment";
1568
+ source: "source";
1569
+ }>;
1570
+ values: z.ZodArray<z.ZodString>;
1571
+ }, z.core.$strip>;
1572
+ style: z.ZodObject<{
1573
+ alignment: z.ZodEnum<{
1574
+ left: "left";
1575
+ center: "center";
1576
+ right: "right";
1577
+ }>;
1578
+ size: z.ZodEnum<{
1579
+ normal: "normal";
1580
+ tall: "tall";
1581
+ double: "double";
1582
+ double_tall: "double_tall";
1583
+ }>;
1584
+ bold: z.ZodBoolean;
1585
+ underline: z.ZodBoolean;
1586
+ inverse: z.ZodBoolean;
1587
+ }, z.core.$strip>;
1588
+ labels: z.ZodRecord<z.ZodString, z.ZodString>;
1589
+ visibleFields: z.ZodArray<z.ZodEnum<{
1590
+ order_type: "order_type";
1591
+ order_sequence: "order_sequence";
1592
+ order_display_id: "order_display_id";
1593
+ requested_time: "requested_time";
1594
+ preparation_time: "preparation_time";
1595
+ customer_name: "customer_name";
1596
+ customer_phone: "customer_phone";
1597
+ customer_contact_number: "customer_contact_number";
1598
+ customer_access_code: "customer_access_code";
1599
+ address_line_1: "address_line_1";
1600
+ address_line_2: "address_line_2";
1601
+ address_city: "address_city";
1602
+ address_postal_code: "address_postal_code";
1603
+ item_variant: "item_variant";
1604
+ item_removals: "item_removals";
1605
+ item_modifiers: "item_modifiers";
1606
+ item_notes: "item_notes";
1607
+ item_prices: "item_prices";
1608
+ subtotal: "subtotal";
1609
+ discount: "discount";
1610
+ fees: "fees";
1611
+ total: "total";
1612
+ taxes: "taxes";
1613
+ payment_status: "payment_status";
1614
+ payment_method: "payment_method";
1615
+ order_notes: "order_notes";
1616
+ kitchen_notes: "kitchen_notes";
1617
+ delivery_notes: "delivery_notes";
1618
+ partner: "partner";
1619
+ }>>;
1620
+ spacerLines: z.ZodNullable<z.ZodNumber>;
1621
+ separatorCharacter: z.ZodNullable<z.ZodString>;
1622
+ segments: z.ZodArray<z.ZodObject<{
1623
+ type: z.ZodEnum<{
1624
+ literal: "literal";
1625
+ field: "field";
1626
+ }>;
1627
+ translations: z.ZodRecord<z.ZodString, z.ZodString>;
1628
+ field: z.ZodNullable<z.ZodEnum<{
1629
+ order_type: "order_type";
1630
+ order_sequence: "order_sequence";
1631
+ order_display_id: "order_display_id";
1632
+ requested_time: "requested_time";
1633
+ preparation_time: "preparation_time";
1634
+ customer_name: "customer_name";
1635
+ customer_phone: "customer_phone";
1636
+ customer_contact_number: "customer_contact_number";
1637
+ customer_access_code: "customer_access_code";
1638
+ address_line_1: "address_line_1";
1639
+ address_line_2: "address_line_2";
1640
+ address_city: "address_city";
1641
+ address_postal_code: "address_postal_code";
1642
+ item_variant: "item_variant";
1643
+ item_removals: "item_removals";
1644
+ item_modifiers: "item_modifiers";
1645
+ item_notes: "item_notes";
1646
+ item_prices: "item_prices";
1647
+ subtotal: "subtotal";
1648
+ discount: "discount";
1649
+ fees: "fees";
1650
+ total: "total";
1651
+ taxes: "taxes";
1652
+ payment_status: "payment_status";
1653
+ payment_method: "payment_method";
1654
+ order_notes: "order_notes";
1655
+ kitchen_notes: "kitchen_notes";
1656
+ delivery_notes: "delivery_notes";
1657
+ partner: "partner";
1658
+ }>>;
1659
+ }, z.core.$strip>>;
1660
+ }, z.core.$strip>>;
1661
+ }, z.core.$strip>;
1662
+ status: z.ZodEnum<{
1663
+ active: "active";
1664
+ archived: "archived";
1665
+ }>;
1666
+ archivedAt: z.ZodNullable<z.ZodString>;
1667
+ revision: z.ZodNumber;
1668
+ createdAt: z.ZodString;
1669
+ updatedAt: z.ZodString;
1670
+ usageCount: z.ZodNumber;
1671
+ }, z.core.$strip>>;
1672
+ pagination: z.ZodObject<{
1673
+ from: z.ZodCoercedNumber<unknown>;
1674
+ to: z.ZodCoercedNumber<unknown>;
1675
+ itemsPerPage: z.ZodCoercedNumber<unknown>;
1676
+ totalItems: z.ZodCoercedNumber<unknown>;
1677
+ currentPage: z.ZodCoercedNumber<unknown>;
1678
+ lastPage: z.ZodCoercedNumber<unknown>;
1679
+ }, z.core.$strip>;
1680
+ }, z.core.$strip>;
1681
+ declare class GetReceiptTemplates extends AbstractApiRequest<typeof inputSchema$1, typeof getReceiptTemplatesResponseSchema, z.infer<typeof receiptTemplatesQuerySchema>> {
1682
+ readonly method: "GET";
1683
+ readonly contentType: "application/json";
1684
+ readonly accept: "application/json";
1685
+ readonly inputSchema: z.ZodUndefined;
1686
+ readonly outputSchema: z.ZodObject<{
1687
+ data: z.ZodArray<z.ZodObject<{
1688
+ id: z.ZodString;
1689
+ pointOfSale: z.ZodOptional<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>>>;
1690
+ name: z.ZodString;
1691
+ schemaVersion: z.ZodLiteral<1>;
1692
+ definition: z.ZodObject<{
1693
+ schemaVersion: z.ZodLiteral<1>;
1694
+ blocks: z.ZodArray<z.ZodObject<{
1695
+ id: z.ZodString;
1696
+ type: z.ZodEnum<{
1697
+ title: "title";
1698
+ order_type: "order_type";
1699
+ logo: "logo";
1700
+ order_identity: "order_identity";
1701
+ order_times: "order_times";
1702
+ customer: "customer";
1703
+ address: "address";
1704
+ items: "items";
1705
+ notes: "notes";
1706
+ totals: "totals";
1707
+ payment: "payment";
1708
+ separator: "separator";
1709
+ spacer: "spacer";
1710
+ custom_text: "custom_text";
1711
+ }>;
1712
+ enabled: z.ZodBoolean;
1713
+ condition: z.ZodObject<{
1714
+ type: z.ZodEnum<{
1715
+ order_type: "order_type";
1716
+ always: "always";
1717
+ data_present: "data_present";
1718
+ has_discount: "has_discount";
1719
+ has_fee: "has_fee";
1720
+ has_payment: "has_payment";
1721
+ source: "source";
1722
+ }>;
1723
+ values: z.ZodArray<z.ZodString>;
1724
+ }, z.core.$strip>;
1725
+ style: z.ZodObject<{
1726
+ alignment: z.ZodEnum<{
1727
+ left: "left";
1728
+ center: "center";
1729
+ right: "right";
1730
+ }>;
1731
+ size: z.ZodEnum<{
1732
+ normal: "normal";
1733
+ tall: "tall";
1734
+ double: "double";
1735
+ double_tall: "double_tall";
1736
+ }>;
1737
+ bold: z.ZodBoolean;
1738
+ underline: z.ZodBoolean;
1739
+ inverse: z.ZodBoolean;
1740
+ }, z.core.$strip>;
1741
+ labels: z.ZodRecord<z.ZodString, z.ZodString>;
1742
+ visibleFields: z.ZodArray<z.ZodEnum<{
1743
+ order_type: "order_type";
1744
+ order_sequence: "order_sequence";
1745
+ order_display_id: "order_display_id";
1746
+ requested_time: "requested_time";
1747
+ preparation_time: "preparation_time";
1748
+ customer_name: "customer_name";
1749
+ customer_phone: "customer_phone";
1750
+ customer_contact_number: "customer_contact_number";
1751
+ customer_access_code: "customer_access_code";
1752
+ address_line_1: "address_line_1";
1753
+ address_line_2: "address_line_2";
1754
+ address_city: "address_city";
1755
+ address_postal_code: "address_postal_code";
1756
+ item_variant: "item_variant";
1757
+ item_removals: "item_removals";
1758
+ item_modifiers: "item_modifiers";
1759
+ item_notes: "item_notes";
1760
+ item_prices: "item_prices";
1761
+ subtotal: "subtotal";
1762
+ discount: "discount";
1763
+ fees: "fees";
1764
+ total: "total";
1765
+ taxes: "taxes";
1766
+ payment_status: "payment_status";
1767
+ payment_method: "payment_method";
1768
+ order_notes: "order_notes";
1769
+ kitchen_notes: "kitchen_notes";
1770
+ delivery_notes: "delivery_notes";
1771
+ partner: "partner";
1772
+ }>>;
1773
+ spacerLines: z.ZodNullable<z.ZodNumber>;
1774
+ separatorCharacter: z.ZodNullable<z.ZodString>;
1775
+ segments: z.ZodArray<z.ZodObject<{
1776
+ type: z.ZodEnum<{
1777
+ literal: "literal";
1778
+ field: "field";
1779
+ }>;
1780
+ translations: z.ZodRecord<z.ZodString, z.ZodString>;
1781
+ field: z.ZodNullable<z.ZodEnum<{
1782
+ order_type: "order_type";
1783
+ order_sequence: "order_sequence";
1784
+ order_display_id: "order_display_id";
1785
+ requested_time: "requested_time";
1786
+ preparation_time: "preparation_time";
1787
+ customer_name: "customer_name";
1788
+ customer_phone: "customer_phone";
1789
+ customer_contact_number: "customer_contact_number";
1790
+ customer_access_code: "customer_access_code";
1791
+ address_line_1: "address_line_1";
1792
+ address_line_2: "address_line_2";
1793
+ address_city: "address_city";
1794
+ address_postal_code: "address_postal_code";
1795
+ item_variant: "item_variant";
1796
+ item_removals: "item_removals";
1797
+ item_modifiers: "item_modifiers";
1798
+ item_notes: "item_notes";
1799
+ item_prices: "item_prices";
1800
+ subtotal: "subtotal";
1801
+ discount: "discount";
1802
+ fees: "fees";
1803
+ total: "total";
1804
+ taxes: "taxes";
1805
+ payment_status: "payment_status";
1806
+ payment_method: "payment_method";
1807
+ order_notes: "order_notes";
1808
+ kitchen_notes: "kitchen_notes";
1809
+ delivery_notes: "delivery_notes";
1810
+ partner: "partner";
1811
+ }>>;
1812
+ }, z.core.$strip>>;
1813
+ }, z.core.$strip>>;
1814
+ }, z.core.$strip>;
1815
+ status: z.ZodEnum<{
1816
+ active: "active";
1817
+ archived: "archived";
1818
+ }>;
1819
+ archivedAt: z.ZodNullable<z.ZodString>;
1820
+ revision: z.ZodNumber;
1821
+ createdAt: z.ZodString;
1822
+ updatedAt: z.ZodString;
1823
+ usageCount: z.ZodNumber;
1824
+ }, z.core.$strip>>;
1825
+ pagination: z.ZodObject<{
1826
+ from: z.ZodCoercedNumber<unknown>;
1827
+ to: z.ZodCoercedNumber<unknown>;
1828
+ itemsPerPage: z.ZodCoercedNumber<unknown>;
1829
+ totalItems: z.ZodCoercedNumber<unknown>;
1830
+ currentPage: z.ZodCoercedNumber<unknown>;
1831
+ lastPage: z.ZodCoercedNumber<unknown>;
1832
+ }, z.core.$strip>;
1833
+ }, z.core.$strip>;
1834
+ readonly querySchema: z.ZodObject<{
1835
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
1836
+ name: z.ZodOptional<z.ZodString>;
1837
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1838
+ active: "active";
1839
+ archived: "archived";
1840
+ }>, z.ZodArray<z.ZodEnum<{
1841
+ active: "active";
1842
+ archived: "archived";
1843
+ }>>]>>;
1844
+ 'order[name]': z.ZodOptional<z.ZodEnum<{
1845
+ asc: "asc";
1846
+ desc: "desc";
1847
+ }>>;
1848
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<{
1849
+ asc: "asc";
1850
+ desc: "desc";
1851
+ }>>;
1852
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
1853
+ asc: "asc";
1854
+ desc: "desc";
1855
+ }>>;
1856
+ page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
1857
+ 'createdAt[before]': z.ZodOptional<z.ZodString>;
1858
+ 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
1859
+ 'createdAt[after]': z.ZodOptional<z.ZodString>;
1860
+ 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
1861
+ 'updatedAt[before]': z.ZodOptional<z.ZodString>;
1862
+ 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
1863
+ 'updatedAt[after]': z.ZodOptional<z.ZodString>;
1864
+ 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
1865
+ }, z.core.$strip>;
1866
+ readonly headersSchema: undefined;
1867
+ readonly listItemSchema: z.ZodObject<{
1868
+ id: z.ZodString;
1869
+ pointOfSale: z.ZodOptional<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>>>;
1870
+ name: z.ZodString;
1871
+ schemaVersion: z.ZodLiteral<1>;
1872
+ definition: z.ZodObject<{
1873
+ schemaVersion: z.ZodLiteral<1>;
1874
+ blocks: z.ZodArray<z.ZodObject<{
1875
+ id: z.ZodString;
1876
+ type: z.ZodEnum<{
1877
+ title: "title";
1878
+ order_type: "order_type";
1879
+ logo: "logo";
1880
+ order_identity: "order_identity";
1881
+ order_times: "order_times";
1882
+ customer: "customer";
1883
+ address: "address";
1884
+ items: "items";
1885
+ notes: "notes";
1886
+ totals: "totals";
1887
+ payment: "payment";
1888
+ separator: "separator";
1889
+ spacer: "spacer";
1890
+ custom_text: "custom_text";
1891
+ }>;
1892
+ enabled: z.ZodBoolean;
1893
+ condition: z.ZodObject<{
1894
+ type: z.ZodEnum<{
1895
+ order_type: "order_type";
1896
+ always: "always";
1897
+ data_present: "data_present";
1898
+ has_discount: "has_discount";
1899
+ has_fee: "has_fee";
1900
+ has_payment: "has_payment";
1901
+ source: "source";
1902
+ }>;
1903
+ values: z.ZodArray<z.ZodString>;
1904
+ }, z.core.$strip>;
1905
+ style: z.ZodObject<{
1906
+ alignment: z.ZodEnum<{
1907
+ left: "left";
1908
+ center: "center";
1909
+ right: "right";
1910
+ }>;
1911
+ size: z.ZodEnum<{
1912
+ normal: "normal";
1913
+ tall: "tall";
1914
+ double: "double";
1915
+ double_tall: "double_tall";
1916
+ }>;
1917
+ bold: z.ZodBoolean;
1918
+ underline: z.ZodBoolean;
1919
+ inverse: z.ZodBoolean;
1920
+ }, z.core.$strip>;
1921
+ labels: z.ZodRecord<z.ZodString, z.ZodString>;
1922
+ visibleFields: z.ZodArray<z.ZodEnum<{
1923
+ order_type: "order_type";
1924
+ order_sequence: "order_sequence";
1925
+ order_display_id: "order_display_id";
1926
+ requested_time: "requested_time";
1927
+ preparation_time: "preparation_time";
1928
+ customer_name: "customer_name";
1929
+ customer_phone: "customer_phone";
1930
+ customer_contact_number: "customer_contact_number";
1931
+ customer_access_code: "customer_access_code";
1932
+ address_line_1: "address_line_1";
1933
+ address_line_2: "address_line_2";
1934
+ address_city: "address_city";
1935
+ address_postal_code: "address_postal_code";
1936
+ item_variant: "item_variant";
1937
+ item_removals: "item_removals";
1938
+ item_modifiers: "item_modifiers";
1939
+ item_notes: "item_notes";
1940
+ item_prices: "item_prices";
1941
+ subtotal: "subtotal";
1942
+ discount: "discount";
1943
+ fees: "fees";
1944
+ total: "total";
1945
+ taxes: "taxes";
1946
+ payment_status: "payment_status";
1947
+ payment_method: "payment_method";
1948
+ order_notes: "order_notes";
1949
+ kitchen_notes: "kitchen_notes";
1950
+ delivery_notes: "delivery_notes";
1951
+ partner: "partner";
1952
+ }>>;
1953
+ spacerLines: z.ZodNullable<z.ZodNumber>;
1954
+ separatorCharacter: z.ZodNullable<z.ZodString>;
1955
+ segments: z.ZodArray<z.ZodObject<{
1956
+ type: z.ZodEnum<{
1957
+ literal: "literal";
1958
+ field: "field";
1959
+ }>;
1960
+ translations: z.ZodRecord<z.ZodString, z.ZodString>;
1961
+ field: z.ZodNullable<z.ZodEnum<{
1962
+ order_type: "order_type";
1963
+ order_sequence: "order_sequence";
1964
+ order_display_id: "order_display_id";
1965
+ requested_time: "requested_time";
1966
+ preparation_time: "preparation_time";
1967
+ customer_name: "customer_name";
1968
+ customer_phone: "customer_phone";
1969
+ customer_contact_number: "customer_contact_number";
1970
+ customer_access_code: "customer_access_code";
1971
+ address_line_1: "address_line_1";
1972
+ address_line_2: "address_line_2";
1973
+ address_city: "address_city";
1974
+ address_postal_code: "address_postal_code";
1975
+ item_variant: "item_variant";
1976
+ item_removals: "item_removals";
1977
+ item_modifiers: "item_modifiers";
1978
+ item_notes: "item_notes";
1979
+ item_prices: "item_prices";
1980
+ subtotal: "subtotal";
1981
+ discount: "discount";
1982
+ fees: "fees";
1983
+ total: "total";
1984
+ taxes: "taxes";
1985
+ payment_status: "payment_status";
1986
+ payment_method: "payment_method";
1987
+ order_notes: "order_notes";
1988
+ kitchen_notes: "kitchen_notes";
1989
+ delivery_notes: "delivery_notes";
1990
+ partner: "partner";
1991
+ }>>;
1992
+ }, z.core.$strip>>;
1993
+ }, z.core.$strip>>;
1994
+ }, z.core.$strip>;
1995
+ status: z.ZodEnum<{
1996
+ active: "active";
1997
+ archived: "archived";
1998
+ }>;
1999
+ archivedAt: z.ZodNullable<z.ZodString>;
2000
+ revision: z.ZodNumber;
2001
+ createdAt: z.ZodString;
2002
+ updatedAt: z.ZodString;
2003
+ usageCount: z.ZodNumber;
2004
+ }, z.core.$strip>;
2005
+ readonly paginationDefaultEnabled = true;
2006
+ constructor(options?: {
2007
+ query?: z.infer<typeof receiptTemplatesQuerySchema>;
2008
+ });
2009
+ getPath(): string;
2010
+ }
2011
+
2012
+ declare const inputSchema: z.ZodUndefined;
2013
+ declare const outputSchema: z.ZodArray<z.ZodObject<{
2014
+ id: z.ZodString;
2015
+ pointOfSale: z.ZodOptional<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>>>;
2016
+ name: z.ZodString;
2017
+ schemaVersion: z.ZodLiteral<1>;
2018
+ definition: z.ZodObject<{
2019
+ schemaVersion: z.ZodLiteral<1>;
2020
+ blocks: z.ZodArray<z.ZodObject<{
2021
+ id: z.ZodString;
2022
+ type: z.ZodEnum<{
2023
+ title: "title";
2024
+ order_type: "order_type";
2025
+ logo: "logo";
2026
+ order_identity: "order_identity";
2027
+ order_times: "order_times";
2028
+ customer: "customer";
2029
+ address: "address";
2030
+ items: "items";
2031
+ notes: "notes";
2032
+ totals: "totals";
2033
+ payment: "payment";
2034
+ separator: "separator";
2035
+ spacer: "spacer";
2036
+ custom_text: "custom_text";
2037
+ }>;
2038
+ enabled: z.ZodBoolean;
2039
+ condition: z.ZodObject<{
2040
+ type: z.ZodEnum<{
2041
+ order_type: "order_type";
2042
+ always: "always";
2043
+ data_present: "data_present";
2044
+ has_discount: "has_discount";
2045
+ has_fee: "has_fee";
2046
+ has_payment: "has_payment";
2047
+ source: "source";
2048
+ }>;
2049
+ values: z.ZodArray<z.ZodString>;
2050
+ }, z.core.$strip>;
2051
+ style: z.ZodObject<{
2052
+ alignment: z.ZodEnum<{
2053
+ left: "left";
2054
+ center: "center";
2055
+ right: "right";
2056
+ }>;
2057
+ size: z.ZodEnum<{
2058
+ normal: "normal";
2059
+ tall: "tall";
2060
+ double: "double";
2061
+ double_tall: "double_tall";
2062
+ }>;
2063
+ bold: z.ZodBoolean;
2064
+ underline: z.ZodBoolean;
2065
+ inverse: z.ZodBoolean;
2066
+ }, z.core.$strip>;
2067
+ labels: z.ZodRecord<z.ZodString, z.ZodString>;
2068
+ visibleFields: z.ZodArray<z.ZodEnum<{
2069
+ order_type: "order_type";
2070
+ order_sequence: "order_sequence";
2071
+ order_display_id: "order_display_id";
2072
+ requested_time: "requested_time";
2073
+ preparation_time: "preparation_time";
2074
+ customer_name: "customer_name";
2075
+ customer_phone: "customer_phone";
2076
+ customer_contact_number: "customer_contact_number";
2077
+ customer_access_code: "customer_access_code";
2078
+ address_line_1: "address_line_1";
2079
+ address_line_2: "address_line_2";
2080
+ address_city: "address_city";
2081
+ address_postal_code: "address_postal_code";
2082
+ item_variant: "item_variant";
2083
+ item_removals: "item_removals";
2084
+ item_modifiers: "item_modifiers";
2085
+ item_notes: "item_notes";
2086
+ item_prices: "item_prices";
2087
+ subtotal: "subtotal";
2088
+ discount: "discount";
2089
+ fees: "fees";
2090
+ total: "total";
2091
+ taxes: "taxes";
2092
+ payment_status: "payment_status";
2093
+ payment_method: "payment_method";
2094
+ order_notes: "order_notes";
2095
+ kitchen_notes: "kitchen_notes";
2096
+ delivery_notes: "delivery_notes";
2097
+ partner: "partner";
2098
+ }>>;
2099
+ spacerLines: z.ZodNullable<z.ZodNumber>;
2100
+ separatorCharacter: z.ZodNullable<z.ZodString>;
2101
+ segments: z.ZodArray<z.ZodObject<{
2102
+ type: z.ZodEnum<{
2103
+ literal: "literal";
2104
+ field: "field";
2105
+ }>;
2106
+ translations: z.ZodRecord<z.ZodString, z.ZodString>;
2107
+ field: z.ZodNullable<z.ZodEnum<{
2108
+ order_type: "order_type";
2109
+ order_sequence: "order_sequence";
2110
+ order_display_id: "order_display_id";
2111
+ requested_time: "requested_time";
2112
+ preparation_time: "preparation_time";
2113
+ customer_name: "customer_name";
2114
+ customer_phone: "customer_phone";
2115
+ customer_contact_number: "customer_contact_number";
2116
+ customer_access_code: "customer_access_code";
2117
+ address_line_1: "address_line_1";
2118
+ address_line_2: "address_line_2";
2119
+ address_city: "address_city";
2120
+ address_postal_code: "address_postal_code";
2121
+ item_variant: "item_variant";
2122
+ item_removals: "item_removals";
2123
+ item_modifiers: "item_modifiers";
2124
+ item_notes: "item_notes";
2125
+ item_prices: "item_prices";
2126
+ subtotal: "subtotal";
2127
+ discount: "discount";
2128
+ fees: "fees";
2129
+ total: "total";
2130
+ taxes: "taxes";
2131
+ payment_status: "payment_status";
2132
+ payment_method: "payment_method";
2133
+ order_notes: "order_notes";
2134
+ kitchen_notes: "kitchen_notes";
2135
+ delivery_notes: "delivery_notes";
2136
+ partner: "partner";
2137
+ }>>;
2138
+ }, z.core.$strip>>;
2139
+ }, z.core.$strip>>;
2140
+ }, z.core.$strip>;
2141
+ status: z.ZodEnum<{
2142
+ active: "active";
2143
+ archived: "archived";
2144
+ }>;
2145
+ archivedAt: z.ZodNullable<z.ZodString>;
2146
+ revision: z.ZodNumber;
2147
+ createdAt: z.ZodString;
2148
+ updatedAt: z.ZodString;
2149
+ usageCount: z.ZodNumber;
2150
+ }, z.core.$strip>>;
2151
+ declare class GetReceiptTemplatesFromPointOfSale extends AbstractApiRequest<typeof inputSchema, typeof outputSchema, z.infer<typeof receiptTemplatesQuerySchema>> {
2152
+ private readonly pointOfSaleId;
2153
+ readonly method: "GET";
2154
+ readonly contentType: "application/json";
2155
+ readonly accept: "application/json";
2156
+ readonly inputSchema: z.ZodUndefined;
2157
+ readonly outputSchema: z.ZodArray<z.ZodObject<{
2158
+ id: z.ZodString;
2159
+ pointOfSale: z.ZodOptional<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>>>;
2160
+ name: z.ZodString;
2161
+ schemaVersion: z.ZodLiteral<1>;
2162
+ definition: z.ZodObject<{
2163
+ schemaVersion: z.ZodLiteral<1>;
2164
+ blocks: z.ZodArray<z.ZodObject<{
2165
+ id: z.ZodString;
2166
+ type: z.ZodEnum<{
2167
+ title: "title";
2168
+ order_type: "order_type";
2169
+ logo: "logo";
2170
+ order_identity: "order_identity";
2171
+ order_times: "order_times";
2172
+ customer: "customer";
2173
+ address: "address";
2174
+ items: "items";
2175
+ notes: "notes";
2176
+ totals: "totals";
2177
+ payment: "payment";
2178
+ separator: "separator";
2179
+ spacer: "spacer";
2180
+ custom_text: "custom_text";
2181
+ }>;
2182
+ enabled: z.ZodBoolean;
2183
+ condition: z.ZodObject<{
2184
+ type: z.ZodEnum<{
2185
+ order_type: "order_type";
2186
+ always: "always";
2187
+ data_present: "data_present";
2188
+ has_discount: "has_discount";
2189
+ has_fee: "has_fee";
2190
+ has_payment: "has_payment";
2191
+ source: "source";
2192
+ }>;
2193
+ values: z.ZodArray<z.ZodString>;
2194
+ }, z.core.$strip>;
2195
+ style: z.ZodObject<{
2196
+ alignment: z.ZodEnum<{
2197
+ left: "left";
2198
+ center: "center";
2199
+ right: "right";
2200
+ }>;
2201
+ size: z.ZodEnum<{
2202
+ normal: "normal";
2203
+ tall: "tall";
2204
+ double: "double";
2205
+ double_tall: "double_tall";
2206
+ }>;
2207
+ bold: z.ZodBoolean;
2208
+ underline: z.ZodBoolean;
2209
+ inverse: z.ZodBoolean;
2210
+ }, z.core.$strip>;
2211
+ labels: z.ZodRecord<z.ZodString, z.ZodString>;
2212
+ visibleFields: z.ZodArray<z.ZodEnum<{
2213
+ order_type: "order_type";
2214
+ order_sequence: "order_sequence";
2215
+ order_display_id: "order_display_id";
2216
+ requested_time: "requested_time";
2217
+ preparation_time: "preparation_time";
2218
+ customer_name: "customer_name";
2219
+ customer_phone: "customer_phone";
2220
+ customer_contact_number: "customer_contact_number";
2221
+ customer_access_code: "customer_access_code";
2222
+ address_line_1: "address_line_1";
2223
+ address_line_2: "address_line_2";
2224
+ address_city: "address_city";
2225
+ address_postal_code: "address_postal_code";
2226
+ item_variant: "item_variant";
2227
+ item_removals: "item_removals";
2228
+ item_modifiers: "item_modifiers";
2229
+ item_notes: "item_notes";
2230
+ item_prices: "item_prices";
2231
+ subtotal: "subtotal";
2232
+ discount: "discount";
2233
+ fees: "fees";
2234
+ total: "total";
2235
+ taxes: "taxes";
2236
+ payment_status: "payment_status";
2237
+ payment_method: "payment_method";
2238
+ order_notes: "order_notes";
2239
+ kitchen_notes: "kitchen_notes";
2240
+ delivery_notes: "delivery_notes";
2241
+ partner: "partner";
2242
+ }>>;
2243
+ spacerLines: z.ZodNullable<z.ZodNumber>;
2244
+ separatorCharacter: z.ZodNullable<z.ZodString>;
2245
+ segments: z.ZodArray<z.ZodObject<{
2246
+ type: z.ZodEnum<{
2247
+ literal: "literal";
2248
+ field: "field";
2249
+ }>;
2250
+ translations: z.ZodRecord<z.ZodString, z.ZodString>;
2251
+ field: z.ZodNullable<z.ZodEnum<{
2252
+ order_type: "order_type";
2253
+ order_sequence: "order_sequence";
2254
+ order_display_id: "order_display_id";
2255
+ requested_time: "requested_time";
2256
+ preparation_time: "preparation_time";
2257
+ customer_name: "customer_name";
2258
+ customer_phone: "customer_phone";
2259
+ customer_contact_number: "customer_contact_number";
2260
+ customer_access_code: "customer_access_code";
2261
+ address_line_1: "address_line_1";
2262
+ address_line_2: "address_line_2";
2263
+ address_city: "address_city";
2264
+ address_postal_code: "address_postal_code";
2265
+ item_variant: "item_variant";
2266
+ item_removals: "item_removals";
2267
+ item_modifiers: "item_modifiers";
2268
+ item_notes: "item_notes";
2269
+ item_prices: "item_prices";
2270
+ subtotal: "subtotal";
2271
+ discount: "discount";
2272
+ fees: "fees";
2273
+ total: "total";
2274
+ taxes: "taxes";
2275
+ payment_status: "payment_status";
2276
+ payment_method: "payment_method";
2277
+ order_notes: "order_notes";
2278
+ kitchen_notes: "kitchen_notes";
2279
+ delivery_notes: "delivery_notes";
2280
+ partner: "partner";
2281
+ }>>;
2282
+ }, z.core.$strip>>;
2283
+ }, z.core.$strip>>;
2284
+ }, z.core.$strip>;
2285
+ status: z.ZodEnum<{
2286
+ active: "active";
2287
+ archived: "archived";
2288
+ }>;
2289
+ archivedAt: z.ZodNullable<z.ZodString>;
2290
+ revision: z.ZodNumber;
2291
+ createdAt: z.ZodString;
2292
+ updatedAt: z.ZodString;
2293
+ usageCount: z.ZodNumber;
2294
+ }, z.core.$strip>>;
2295
+ readonly querySchema: z.ZodObject<{
2296
+ id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
2297
+ name: z.ZodOptional<z.ZodString>;
2298
+ status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
2299
+ active: "active";
2300
+ archived: "archived";
2301
+ }>, z.ZodArray<z.ZodEnum<{
2302
+ active: "active";
2303
+ archived: "archived";
2304
+ }>>]>>;
2305
+ 'order[name]': z.ZodOptional<z.ZodEnum<{
2306
+ asc: "asc";
2307
+ desc: "desc";
2308
+ }>>;
2309
+ 'order[createdAt]': z.ZodOptional<z.ZodEnum<{
2310
+ asc: "asc";
2311
+ desc: "desc";
2312
+ }>>;
2313
+ 'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
2314
+ asc: "asc";
2315
+ desc: "desc";
2316
+ }>>;
2317
+ page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
2318
+ 'createdAt[before]': z.ZodOptional<z.ZodString>;
2319
+ 'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
2320
+ 'createdAt[after]': z.ZodOptional<z.ZodString>;
2321
+ 'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
2322
+ 'updatedAt[before]': z.ZodOptional<z.ZodString>;
2323
+ 'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
2324
+ 'updatedAt[after]': z.ZodOptional<z.ZodString>;
2325
+ 'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
2326
+ }, z.core.$strip>;
2327
+ readonly headersSchema: undefined;
2328
+ constructor(pointOfSaleId: string, options?: {
2329
+ query?: z.infer<typeof receiptTemplatesQuerySchema>;
2330
+ });
2331
+ getPath(): string;
2332
+ }
2333
+
2334
+ declare const updateReceiptTemplateInputSchema: z.ZodObject<{
2335
+ definition: z.ZodOptional<z.ZodObject<{
2336
+ schemaVersion: z.ZodLiteral<1>;
2337
+ blocks: z.ZodArray<z.ZodObject<{
2338
+ id: z.ZodString;
2339
+ type: z.ZodEnum<{
2340
+ title: "title";
2341
+ order_type: "order_type";
2342
+ logo: "logo";
2343
+ order_identity: "order_identity";
2344
+ order_times: "order_times";
2345
+ customer: "customer";
2346
+ address: "address";
2347
+ items: "items";
2348
+ notes: "notes";
2349
+ totals: "totals";
2350
+ payment: "payment";
2351
+ separator: "separator";
2352
+ spacer: "spacer";
2353
+ custom_text: "custom_text";
2354
+ }>;
2355
+ enabled: z.ZodBoolean;
2356
+ condition: z.ZodObject<{
2357
+ type: z.ZodEnum<{
2358
+ order_type: "order_type";
2359
+ always: "always";
2360
+ data_present: "data_present";
2361
+ has_discount: "has_discount";
2362
+ has_fee: "has_fee";
2363
+ has_payment: "has_payment";
2364
+ source: "source";
2365
+ }>;
2366
+ values: z.ZodArray<z.ZodString>;
2367
+ }, z.core.$strip>;
2368
+ style: z.ZodObject<{
2369
+ alignment: z.ZodEnum<{
2370
+ left: "left";
2371
+ center: "center";
2372
+ right: "right";
2373
+ }>;
2374
+ size: z.ZodEnum<{
2375
+ normal: "normal";
2376
+ tall: "tall";
2377
+ double: "double";
2378
+ double_tall: "double_tall";
2379
+ }>;
2380
+ bold: z.ZodBoolean;
2381
+ underline: z.ZodBoolean;
2382
+ inverse: z.ZodBoolean;
2383
+ }, z.core.$strip>;
2384
+ labels: z.ZodRecord<z.ZodString, z.ZodString>;
2385
+ visibleFields: z.ZodArray<z.ZodEnum<{
2386
+ order_type: "order_type";
2387
+ order_sequence: "order_sequence";
2388
+ order_display_id: "order_display_id";
2389
+ requested_time: "requested_time";
2390
+ preparation_time: "preparation_time";
2391
+ customer_name: "customer_name";
2392
+ customer_phone: "customer_phone";
2393
+ customer_contact_number: "customer_contact_number";
2394
+ customer_access_code: "customer_access_code";
2395
+ address_line_1: "address_line_1";
2396
+ address_line_2: "address_line_2";
2397
+ address_city: "address_city";
2398
+ address_postal_code: "address_postal_code";
2399
+ item_variant: "item_variant";
2400
+ item_removals: "item_removals";
2401
+ item_modifiers: "item_modifiers";
2402
+ item_notes: "item_notes";
2403
+ item_prices: "item_prices";
2404
+ subtotal: "subtotal";
2405
+ discount: "discount";
2406
+ fees: "fees";
2407
+ total: "total";
2408
+ taxes: "taxes";
2409
+ payment_status: "payment_status";
2410
+ payment_method: "payment_method";
2411
+ order_notes: "order_notes";
2412
+ kitchen_notes: "kitchen_notes";
2413
+ delivery_notes: "delivery_notes";
2414
+ partner: "partner";
2415
+ }>>;
2416
+ spacerLines: z.ZodNullable<z.ZodNumber>;
2417
+ separatorCharacter: z.ZodNullable<z.ZodString>;
2418
+ segments: z.ZodArray<z.ZodObject<{
2419
+ type: z.ZodEnum<{
2420
+ literal: "literal";
2421
+ field: "field";
2422
+ }>;
2423
+ translations: z.ZodRecord<z.ZodString, z.ZodString>;
2424
+ field: z.ZodNullable<z.ZodEnum<{
2425
+ order_type: "order_type";
2426
+ order_sequence: "order_sequence";
2427
+ order_display_id: "order_display_id";
2428
+ requested_time: "requested_time";
2429
+ preparation_time: "preparation_time";
2430
+ customer_name: "customer_name";
2431
+ customer_phone: "customer_phone";
2432
+ customer_contact_number: "customer_contact_number";
2433
+ customer_access_code: "customer_access_code";
2434
+ address_line_1: "address_line_1";
2435
+ address_line_2: "address_line_2";
2436
+ address_city: "address_city";
2437
+ address_postal_code: "address_postal_code";
2438
+ item_variant: "item_variant";
2439
+ item_removals: "item_removals";
2440
+ item_modifiers: "item_modifiers";
2441
+ item_notes: "item_notes";
2442
+ item_prices: "item_prices";
2443
+ subtotal: "subtotal";
2444
+ discount: "discount";
2445
+ fees: "fees";
2446
+ total: "total";
2447
+ taxes: "taxes";
2448
+ payment_status: "payment_status";
2449
+ payment_method: "payment_method";
2450
+ order_notes: "order_notes";
2451
+ kitchen_notes: "kitchen_notes";
2452
+ delivery_notes: "delivery_notes";
2453
+ partner: "partner";
2454
+ }>>;
2455
+ }, z.core.$strip>>;
2456
+ }, z.core.$strip>>;
2457
+ }, z.core.$strip>>;
2458
+ status: z.ZodOptional<z.ZodEnum<{
2459
+ active: "active";
2460
+ archived: "archived";
2461
+ }>>;
2462
+ name: z.ZodOptional<z.ZodString>;
2463
+ }, z.core.$strip>;
2464
+ type UpdateReceiptTemplateInput = z.input<typeof updateReceiptTemplateInputSchema>;
2465
+ declare const updateReceiptTemplateHeadersSchema: z.ZodObject<{
2466
+ 'If-Match': z.ZodString;
2467
+ }, z.core.$strip>;
2468
+ declare class UpdateReceiptTemplate extends AbstractApiRequest<typeof updateReceiptTemplateInputSchema, typeof receiptTemplateSchema, unknown, z.infer<typeof updateReceiptTemplateHeadersSchema>> {
2469
+ private readonly receiptTemplateId;
2470
+ readonly method: "PATCH";
2471
+ readonly contentType: "application/merge-patch+json";
2472
+ readonly accept: "application/json";
2473
+ readonly inputSchema: z.ZodObject<{
2474
+ definition: z.ZodOptional<z.ZodObject<{
2475
+ schemaVersion: z.ZodLiteral<1>;
2476
+ blocks: z.ZodArray<z.ZodObject<{
2477
+ id: z.ZodString;
2478
+ type: z.ZodEnum<{
2479
+ title: "title";
2480
+ order_type: "order_type";
2481
+ logo: "logo";
2482
+ order_identity: "order_identity";
2483
+ order_times: "order_times";
2484
+ customer: "customer";
2485
+ address: "address";
2486
+ items: "items";
2487
+ notes: "notes";
2488
+ totals: "totals";
2489
+ payment: "payment";
2490
+ separator: "separator";
2491
+ spacer: "spacer";
2492
+ custom_text: "custom_text";
2493
+ }>;
2494
+ enabled: z.ZodBoolean;
2495
+ condition: z.ZodObject<{
2496
+ type: z.ZodEnum<{
2497
+ order_type: "order_type";
2498
+ always: "always";
2499
+ data_present: "data_present";
2500
+ has_discount: "has_discount";
2501
+ has_fee: "has_fee";
2502
+ has_payment: "has_payment";
2503
+ source: "source";
2504
+ }>;
2505
+ values: z.ZodArray<z.ZodString>;
2506
+ }, z.core.$strip>;
2507
+ style: z.ZodObject<{
2508
+ alignment: z.ZodEnum<{
2509
+ left: "left";
2510
+ center: "center";
2511
+ right: "right";
2512
+ }>;
2513
+ size: z.ZodEnum<{
2514
+ normal: "normal";
2515
+ tall: "tall";
2516
+ double: "double";
2517
+ double_tall: "double_tall";
2518
+ }>;
2519
+ bold: z.ZodBoolean;
2520
+ underline: z.ZodBoolean;
2521
+ inverse: z.ZodBoolean;
2522
+ }, z.core.$strip>;
2523
+ labels: z.ZodRecord<z.ZodString, z.ZodString>;
2524
+ visibleFields: z.ZodArray<z.ZodEnum<{
2525
+ order_type: "order_type";
2526
+ order_sequence: "order_sequence";
2527
+ order_display_id: "order_display_id";
2528
+ requested_time: "requested_time";
2529
+ preparation_time: "preparation_time";
2530
+ customer_name: "customer_name";
2531
+ customer_phone: "customer_phone";
2532
+ customer_contact_number: "customer_contact_number";
2533
+ customer_access_code: "customer_access_code";
2534
+ address_line_1: "address_line_1";
2535
+ address_line_2: "address_line_2";
2536
+ address_city: "address_city";
2537
+ address_postal_code: "address_postal_code";
2538
+ item_variant: "item_variant";
2539
+ item_removals: "item_removals";
2540
+ item_modifiers: "item_modifiers";
2541
+ item_notes: "item_notes";
2542
+ item_prices: "item_prices";
2543
+ subtotal: "subtotal";
2544
+ discount: "discount";
2545
+ fees: "fees";
2546
+ total: "total";
2547
+ taxes: "taxes";
2548
+ payment_status: "payment_status";
2549
+ payment_method: "payment_method";
2550
+ order_notes: "order_notes";
2551
+ kitchen_notes: "kitchen_notes";
2552
+ delivery_notes: "delivery_notes";
2553
+ partner: "partner";
2554
+ }>>;
2555
+ spacerLines: z.ZodNullable<z.ZodNumber>;
2556
+ separatorCharacter: z.ZodNullable<z.ZodString>;
2557
+ segments: z.ZodArray<z.ZodObject<{
2558
+ type: z.ZodEnum<{
2559
+ literal: "literal";
2560
+ field: "field";
2561
+ }>;
2562
+ translations: z.ZodRecord<z.ZodString, z.ZodString>;
2563
+ field: z.ZodNullable<z.ZodEnum<{
2564
+ order_type: "order_type";
2565
+ order_sequence: "order_sequence";
2566
+ order_display_id: "order_display_id";
2567
+ requested_time: "requested_time";
2568
+ preparation_time: "preparation_time";
2569
+ customer_name: "customer_name";
2570
+ customer_phone: "customer_phone";
2571
+ customer_contact_number: "customer_contact_number";
2572
+ customer_access_code: "customer_access_code";
2573
+ address_line_1: "address_line_1";
2574
+ address_line_2: "address_line_2";
2575
+ address_city: "address_city";
2576
+ address_postal_code: "address_postal_code";
2577
+ item_variant: "item_variant";
2578
+ item_removals: "item_removals";
2579
+ item_modifiers: "item_modifiers";
2580
+ item_notes: "item_notes";
2581
+ item_prices: "item_prices";
2582
+ subtotal: "subtotal";
2583
+ discount: "discount";
2584
+ fees: "fees";
2585
+ total: "total";
2586
+ taxes: "taxes";
2587
+ payment_status: "payment_status";
2588
+ payment_method: "payment_method";
2589
+ order_notes: "order_notes";
2590
+ kitchen_notes: "kitchen_notes";
2591
+ delivery_notes: "delivery_notes";
2592
+ partner: "partner";
2593
+ }>>;
2594
+ }, z.core.$strip>>;
2595
+ }, z.core.$strip>>;
2596
+ }, z.core.$strip>>;
2597
+ status: z.ZodOptional<z.ZodEnum<{
2598
+ active: "active";
2599
+ archived: "archived";
2600
+ }>>;
2601
+ name: z.ZodOptional<z.ZodString>;
2602
+ }, z.core.$strip>;
2603
+ readonly outputSchema: z.ZodObject<{
2604
+ id: z.ZodString;
2605
+ pointOfSale: z.ZodOptional<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>>>;
2606
+ name: z.ZodString;
2607
+ schemaVersion: z.ZodLiteral<1>;
2608
+ definition: z.ZodObject<{
2609
+ schemaVersion: z.ZodLiteral<1>;
2610
+ blocks: z.ZodArray<z.ZodObject<{
2611
+ id: z.ZodString;
2612
+ type: z.ZodEnum<{
2613
+ title: "title";
2614
+ order_type: "order_type";
2615
+ logo: "logo";
2616
+ order_identity: "order_identity";
2617
+ order_times: "order_times";
2618
+ customer: "customer";
2619
+ address: "address";
2620
+ items: "items";
2621
+ notes: "notes";
2622
+ totals: "totals";
2623
+ payment: "payment";
2624
+ separator: "separator";
2625
+ spacer: "spacer";
2626
+ custom_text: "custom_text";
2627
+ }>;
2628
+ enabled: z.ZodBoolean;
2629
+ condition: z.ZodObject<{
2630
+ type: z.ZodEnum<{
2631
+ order_type: "order_type";
2632
+ always: "always";
2633
+ data_present: "data_present";
2634
+ has_discount: "has_discount";
2635
+ has_fee: "has_fee";
2636
+ has_payment: "has_payment";
2637
+ source: "source";
2638
+ }>;
2639
+ values: z.ZodArray<z.ZodString>;
2640
+ }, z.core.$strip>;
2641
+ style: z.ZodObject<{
2642
+ alignment: z.ZodEnum<{
2643
+ left: "left";
2644
+ center: "center";
2645
+ right: "right";
2646
+ }>;
2647
+ size: z.ZodEnum<{
2648
+ normal: "normal";
2649
+ tall: "tall";
2650
+ double: "double";
2651
+ double_tall: "double_tall";
2652
+ }>;
2653
+ bold: z.ZodBoolean;
2654
+ underline: z.ZodBoolean;
2655
+ inverse: z.ZodBoolean;
2656
+ }, z.core.$strip>;
2657
+ labels: z.ZodRecord<z.ZodString, z.ZodString>;
2658
+ visibleFields: z.ZodArray<z.ZodEnum<{
2659
+ order_type: "order_type";
2660
+ order_sequence: "order_sequence";
2661
+ order_display_id: "order_display_id";
2662
+ requested_time: "requested_time";
2663
+ preparation_time: "preparation_time";
2664
+ customer_name: "customer_name";
2665
+ customer_phone: "customer_phone";
2666
+ customer_contact_number: "customer_contact_number";
2667
+ customer_access_code: "customer_access_code";
2668
+ address_line_1: "address_line_1";
2669
+ address_line_2: "address_line_2";
2670
+ address_city: "address_city";
2671
+ address_postal_code: "address_postal_code";
2672
+ item_variant: "item_variant";
2673
+ item_removals: "item_removals";
2674
+ item_modifiers: "item_modifiers";
2675
+ item_notes: "item_notes";
2676
+ item_prices: "item_prices";
2677
+ subtotal: "subtotal";
2678
+ discount: "discount";
2679
+ fees: "fees";
2680
+ total: "total";
2681
+ taxes: "taxes";
2682
+ payment_status: "payment_status";
2683
+ payment_method: "payment_method";
2684
+ order_notes: "order_notes";
2685
+ kitchen_notes: "kitchen_notes";
2686
+ delivery_notes: "delivery_notes";
2687
+ partner: "partner";
2688
+ }>>;
2689
+ spacerLines: z.ZodNullable<z.ZodNumber>;
2690
+ separatorCharacter: z.ZodNullable<z.ZodString>;
2691
+ segments: z.ZodArray<z.ZodObject<{
2692
+ type: z.ZodEnum<{
2693
+ literal: "literal";
2694
+ field: "field";
2695
+ }>;
2696
+ translations: z.ZodRecord<z.ZodString, z.ZodString>;
2697
+ field: z.ZodNullable<z.ZodEnum<{
2698
+ order_type: "order_type";
2699
+ order_sequence: "order_sequence";
2700
+ order_display_id: "order_display_id";
2701
+ requested_time: "requested_time";
2702
+ preparation_time: "preparation_time";
2703
+ customer_name: "customer_name";
2704
+ customer_phone: "customer_phone";
2705
+ customer_contact_number: "customer_contact_number";
2706
+ customer_access_code: "customer_access_code";
2707
+ address_line_1: "address_line_1";
2708
+ address_line_2: "address_line_2";
2709
+ address_city: "address_city";
2710
+ address_postal_code: "address_postal_code";
2711
+ item_variant: "item_variant";
2712
+ item_removals: "item_removals";
2713
+ item_modifiers: "item_modifiers";
2714
+ item_notes: "item_notes";
2715
+ item_prices: "item_prices";
2716
+ subtotal: "subtotal";
2717
+ discount: "discount";
2718
+ fees: "fees";
2719
+ total: "total";
2720
+ taxes: "taxes";
2721
+ payment_status: "payment_status";
2722
+ payment_method: "payment_method";
2723
+ order_notes: "order_notes";
2724
+ kitchen_notes: "kitchen_notes";
2725
+ delivery_notes: "delivery_notes";
2726
+ partner: "partner";
2727
+ }>>;
2728
+ }, z.core.$strip>>;
2729
+ }, z.core.$strip>>;
2730
+ }, z.core.$strip>;
2731
+ status: z.ZodEnum<{
2732
+ active: "active";
2733
+ archived: "archived";
2734
+ }>;
2735
+ archivedAt: z.ZodNullable<z.ZodString>;
2736
+ revision: z.ZodNumber;
2737
+ createdAt: z.ZodString;
2738
+ updatedAt: z.ZodString;
2739
+ usageCount: z.ZodNumber;
2740
+ }, z.core.$strip>;
2741
+ readonly querySchema: undefined;
2742
+ readonly headersSchema: z.ZodObject<{
2743
+ 'If-Match': z.ZodString;
2744
+ }, z.core.$strip>;
2745
+ constructor(receiptTemplateId: string, revision: number, input: UpdateReceiptTemplateInput);
2746
+ getPath(): string;
2747
+ }
2748
+
2749
+ declare const receiptTemplateIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/receipt_templates/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/receipt_templates/:id">, unknown>>;
2750
+ type ReceiptTemplateIri = z.infer<typeof receiptTemplateIriSchema>;
2751
+ declare const receiptTemplateNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/receipt_templates/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/receipt_templates/:id"> | null, unknown>>;
2752
+ type ReceiptTemplateNullableIri = z.infer<typeof receiptTemplateNullableIriSchema>;
2753
+
2754
+ export { CreateReceiptTemplate, type CreateReceiptTemplateInput, type CreateReceiptTemplateResponse, GetReceiptTemplateDetails, GetReceiptTemplates, GetReceiptTemplatesFromPointOfSale, type ReceiptTemplate, type ReceiptTemplateBlockType, type ReceiptTemplateDefinition, type ReceiptTemplateField, type ReceiptTemplateIri, type ReceiptTemplateNullableIri, type ReceiptTemplateStatus, type ReceiptTemplatesQueryParams, UpdateReceiptTemplate, type UpdateReceiptTemplateInput, createReceiptTemplateInputSchema, createReceiptTemplateResponseSchema, getReceiptTemplatesResponseSchema, receiptTemplateAlignmentSchema, receiptTemplateBlockSchema, receiptTemplateBlockStyleSchema, receiptTemplateBlockTypeSchema, receiptTemplateBlockTypes, receiptTemplateConditionSchema, receiptTemplateConditionTypeSchema, receiptTemplateConditionTypes, receiptTemplateDefinitionSchema, receiptTemplateFieldSchema, receiptTemplateFields, receiptTemplateIriSchema, receiptTemplateNullableIriSchema, receiptTemplateSchema, receiptTemplateStatusSchema, receiptTemplateStatuses, receiptTemplateTextSegmentSchema, receiptTemplateTextSegmentTypeSchema, receiptTemplateTextSizeSchema, receiptTemplatesQuerySchema, updateReceiptTemplateHeadersSchema, updateReceiptTemplateInputSchema, writableCreateReceiptTemplateSchema, writableReceiptTemplateSchema };