washday-sdk 1.6.84 → 1.6.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -8,6 +8,19 @@ import {
|
|
|
8
8
|
|
|
9
9
|
const folioPreset: TicketVisualPreset = "large";
|
|
10
10
|
const spacingPreset: TicketVisualPreset = "medium";
|
|
11
|
+
type AssertNever<T extends never> = T;
|
|
12
|
+
type ForbiddenOutsourcedTicketKeys =
|
|
13
|
+
| "showEmisionDate"
|
|
14
|
+
| "showEmisionTime"
|
|
15
|
+
| "customerNameFontSize"
|
|
16
|
+
| "printQuantity"
|
|
17
|
+
| "orderFolioFontSizePx"
|
|
18
|
+
| "ticketLineMarginBlockPx"
|
|
19
|
+
| "showOutsourcedExternalOrderId"
|
|
20
|
+
| "showPartnerNotes";
|
|
21
|
+
type _OutsourcedTicketDoesNotExposeForbiddenKeys = AssertNever<
|
|
22
|
+
Extract<keyof IOutsourcedOrderTicketStructure, ForbiddenOutsourcedTicketKeys>
|
|
23
|
+
>;
|
|
11
24
|
|
|
12
25
|
const ticketStructure: ITicketStructure = {
|
|
13
26
|
showTotalPieces: false,
|
|
@@ -68,17 +81,15 @@ const ticketForLaundryStructure: ITicketForLaundryStructure = {
|
|
|
68
81
|
|
|
69
82
|
const outsourcedOrderTicketStructure: IOutsourcedOrderTicketStructure = {
|
|
70
83
|
showTotalPieces: false,
|
|
71
|
-
showEmisionDate: true,
|
|
72
|
-
showEmisionTime: true,
|
|
73
84
|
showLegend: true,
|
|
74
85
|
showStorePhone: true,
|
|
75
86
|
ticketLegendText: "Sin información de precios",
|
|
76
87
|
printLogoOnTicket: false,
|
|
77
88
|
showStoreName: true,
|
|
78
89
|
showOrderNotes: false,
|
|
79
|
-
customerNameFontSize: "medium",
|
|
80
90
|
orderFolioFontSizePreset: "large",
|
|
81
91
|
ticketLineSpacingPreset: "medium",
|
|
92
|
+
groupProductsBySection: false,
|
|
82
93
|
showPartnerPhone: true,
|
|
83
94
|
};
|
|
84
95
|
|
|
@@ -114,6 +125,8 @@ for (const field of [
|
|
|
114
125
|
"showCustomerName",
|
|
115
126
|
"showCustomerPhone",
|
|
116
127
|
"showCreatedByName",
|
|
128
|
+
"showEmisionDate",
|
|
129
|
+
"showEmisionTime",
|
|
117
130
|
"showDeliveryDate",
|
|
118
131
|
"showDeliveryTime",
|
|
119
132
|
"showPickupInfo",
|
|
@@ -121,6 +134,12 @@ for (const field of [
|
|
|
121
134
|
"showIssuerTaxInfo",
|
|
122
135
|
"tax_id",
|
|
123
136
|
"tax_id_label",
|
|
137
|
+
"customerNameFontSize",
|
|
138
|
+
"printQuantity",
|
|
139
|
+
"orderFolioFontSizePx",
|
|
140
|
+
"ticketLineMarginBlockPx",
|
|
141
|
+
"showOutsourcedExternalOrderId",
|
|
142
|
+
"showPartnerNotes",
|
|
124
143
|
]) {
|
|
125
144
|
if (field in outsourcedOrderTicketStructure) {
|
|
126
145
|
throw new Error(`Outsourced order ticket structure must not expose ${field}`);
|
package/src/interfaces/Store.ts
CHANGED
|
@@ -335,15 +335,13 @@ export interface ILabelTicketStructure extends ITicketStructure {}
|
|
|
335
335
|
|
|
336
336
|
export interface IOutsourcedOrderTicketStructure {
|
|
337
337
|
showTotalPieces: Boolean,
|
|
338
|
-
showEmisionDate: Boolean,
|
|
339
|
-
showEmisionTime: Boolean,
|
|
340
338
|
showLegend: Boolean,
|
|
341
339
|
showStorePhone: Boolean,
|
|
342
340
|
ticketLegendText: String,
|
|
343
341
|
printLogoOnTicket: Boolean,
|
|
344
342
|
showStoreName: Boolean,
|
|
345
343
|
showOrderNotes: Boolean,
|
|
346
|
-
|
|
344
|
+
groupProductsBySection?: Boolean,
|
|
347
345
|
orderFolioFontSizePreset?: TicketVisualPreset,
|
|
348
346
|
ticketLineSpacingPreset?: TicketVisualPreset,
|
|
349
347
|
showPartnerPhone?: Boolean,
|
|
@@ -351,8 +349,6 @@ export interface IOutsourcedOrderTicketStructure {
|
|
|
351
349
|
showOutsourcedStatus?: Boolean,
|
|
352
350
|
showOutsourcedSentDate?: Boolean,
|
|
353
351
|
showOutsourcedReceivedDate?: Boolean,
|
|
354
|
-
showOutsourcedExternalOrderId?: Boolean,
|
|
355
|
-
showPartnerNotes?: Boolean,
|
|
356
352
|
}
|
|
357
353
|
|
|
358
354
|
export interface ITicketForLaundryStructure {
|