@deliverart/sdk-js-order 2.10.8 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +195 -102
- package/dist/index.d.cts +24983 -7234
- package/dist/index.d.ts +24983 -7234
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +179 -101
- package/dist/models.d.ts +5509 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/models.js +573 -0
- package/dist/requests/bundles/CreateBundle.d.ts +1342 -0
- package/dist/requests/bundles/CreateBundle.d.ts.map +1 -0
- package/dist/requests/bundles/CreateBundle.js +19 -0
- package/dist/requests/bundles/DeleteBundle.d.ts +17 -0
- package/dist/requests/bundles/DeleteBundle.d.ts.map +1 -0
- package/dist/requests/bundles/DeleteBundle.js +21 -0
- package/dist/requests/bundles/GetBundleDetails.d.ts +1336 -0
- package/dist/requests/bundles/GetBundleDetails.d.ts.map +1 -0
- package/dist/requests/bundles/GetBundleDetails.js +21 -0
- package/dist/requests/bundles/GetBundles.d.ts +2167 -0
- package/dist/requests/bundles/GetBundles.d.ts.map +1 -0
- package/dist/requests/bundles/GetBundles.js +24 -0
- package/dist/requests/bundles/GetBundlesFromPointOfSale.d.ts +2168 -0
- package/dist/requests/bundles/GetBundlesFromPointOfSale.d.ts.map +1 -0
- package/dist/requests/bundles/GetBundlesFromPointOfSale.js +25 -0
- package/dist/requests/bundles/UpdateBundle.d.ts +1342 -0
- package/dist/requests/bundles/UpdateBundle.d.ts.map +1 -0
- package/dist/requests/bundles/UpdateBundle.js +24 -0
- package/dist/requests/bundles/index.d.ts +7 -0
- package/dist/requests/bundles/index.d.ts.map +1 -0
- package/dist/requests/bundles/index.js +6 -0
- package/dist/requests/index.d.ts +5 -0
- package/dist/requests/index.d.ts.map +1 -0
- package/dist/requests/index.js +4 -0
- package/dist/requests/order-menu-item-modifiers/GetOrderMenuItemModifierDetails.d.ts +57 -0
- package/dist/requests/order-menu-item-modifiers/GetOrderMenuItemModifierDetails.d.ts.map +1 -0
- package/dist/requests/order-menu-item-modifiers/GetOrderMenuItemModifierDetails.js +22 -0
- package/dist/requests/order-menu-item-modifiers/GetOrderMenuItemModifiers.d.ts +159 -0
- package/dist/requests/order-menu-item-modifiers/GetOrderMenuItemModifiers.d.ts.map +1 -0
- package/dist/requests/order-menu-item-modifiers/GetOrderMenuItemModifiers.js +24 -0
- package/dist/requests/order-menu-item-modifiers/index.d.ts +3 -0
- package/dist/requests/order-menu-item-modifiers/index.d.ts.map +1 -0
- package/dist/requests/order-menu-item-modifiers/index.js +2 -0
- package/dist/requests/order-menu-items/GetOrderMenuItemDetails.d.ts +124 -0
- package/dist/requests/order-menu-items/GetOrderMenuItemDetails.d.ts.map +1 -0
- package/dist/requests/order-menu-items/GetOrderMenuItemDetails.js +21 -0
- package/dist/requests/order-menu-items/GetOrderMenuItems.d.ts +331 -0
- package/dist/requests/order-menu-items/GetOrderMenuItems.d.ts.map +1 -0
- package/dist/requests/order-menu-items/GetOrderMenuItems.js +24 -0
- package/dist/requests/order-menu-items/index.d.ts +3 -0
- package/dist/requests/order-menu-items/index.d.ts.map +1 -0
- package/dist/requests/order-menu-items/index.js +2 -0
- package/dist/requests/orders/AdvanceOrderPreparationStatus.d.ts +1083 -0
- package/dist/requests/orders/AdvanceOrderPreparationStatus.d.ts.map +1 -0
- package/dist/requests/orders/AdvanceOrderPreparationStatus.js +21 -0
- package/dist/requests/orders/CalculateOrderFees.d.ts +432 -0
- package/dist/requests/orders/CalculateOrderFees.d.ts.map +1 -0
- package/dist/requests/orders/CalculateOrderFees.js +19 -0
- package/dist/requests/orders/ConfirmOrder.d.ts +1083 -0
- package/dist/requests/orders/ConfirmOrder.d.ts.map +1 -0
- package/dist/requests/orders/ConfirmOrder.js +21 -0
- package/dist/requests/orders/CreateOrder.d.ts +1474 -0
- package/dist/requests/orders/CreateOrder.d.ts.map +1 -0
- package/dist/requests/orders/CreateOrder.js +19 -0
- package/dist/requests/orders/DeleteOrder.d.ts +17 -0
- package/dist/requests/orders/DeleteOrder.d.ts.map +1 -0
- package/dist/requests/orders/DeleteOrder.js +21 -0
- package/dist/requests/orders/GetOrderDetails.d.ts +1083 -0
- package/dist/requests/orders/GetOrderDetails.d.ts.map +1 -0
- package/dist/requests/orders/GetOrderDetails.js +21 -0
- package/dist/requests/orders/GetOrders.d.ts +1408 -0
- package/dist/requests/orders/GetOrders.d.ts.map +1 -0
- package/dist/requests/orders/GetOrders.js +24 -0
- package/dist/requests/orders/GetPointOfSaleOrders.d.ts +1409 -0
- package/dist/requests/orders/GetPointOfSaleOrders.d.ts.map +1 -0
- package/dist/requests/orders/GetPointOfSaleOrders.js +25 -0
- package/dist/requests/orders/MarkOrderAsCollected.d.ts +1083 -0
- package/dist/requests/orders/MarkOrderAsCollected.d.ts.map +1 -0
- package/dist/requests/orders/MarkOrderAsCollected.js +21 -0
- package/dist/requests/orders/MarkOrderAsRead.d.ts +1083 -0
- package/dist/requests/orders/MarkOrderAsRead.d.ts.map +1 -0
- package/dist/requests/orders/MarkOrderAsRead.js +21 -0
- package/dist/requests/orders/PayOrder.d.ts +148 -0
- package/dist/requests/orders/PayOrder.d.ts.map +1 -0
- package/dist/requests/orders/PayOrder.js +23 -0
- package/dist/requests/orders/RejectOrder.d.ts +1083 -0
- package/dist/requests/orders/RejectOrder.d.ts.map +1 -0
- package/dist/requests/orders/RejectOrder.js +21 -0
- package/dist/requests/orders/UpdateOrder.d.ts +1351 -0
- package/dist/requests/orders/UpdateOrder.d.ts.map +1 -0
- package/dist/requests/orders/UpdateOrder.js +20 -0
- package/dist/requests/orders/index.d.ts +14 -0
- package/dist/requests/orders/index.d.ts.map +1 -0
- package/dist/requests/orders/index.js +13 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types.d.ts +19 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +10 -0
- package/package.json +9 -9
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { OrderMenuItemsQueryParams } from '../../models';
|
|
4
|
+
export declare const getOrderMenuItemsQuerySchema: z.ZodObject<{
|
|
5
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
6
|
+
ITEM: "ITEM";
|
|
7
|
+
CHOICE: "CHOICE";
|
|
8
|
+
BUNDLE: "BUNDLE";
|
|
9
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
10
|
+
ITEM: "ITEM";
|
|
11
|
+
CHOICE: "CHOICE";
|
|
12
|
+
BUNDLE: "BUNDLE";
|
|
13
|
+
}>>]>>;
|
|
14
|
+
action: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
15
|
+
add: "add";
|
|
16
|
+
remove: "remove";
|
|
17
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
18
|
+
add: "add";
|
|
19
|
+
remove: "remove";
|
|
20
|
+
}>>]>>;
|
|
21
|
+
'customerInfo.firstName': z.ZodOptional<z.ZodString>;
|
|
22
|
+
'customerInfo.lastName': z.ZodOptional<z.ZodString>;
|
|
23
|
+
'customerInfo.email': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
24
|
+
'customerInfo.phoneNumber': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
25
|
+
'quantity[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
26
|
+
'quantity[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
27
|
+
'quantity[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
28
|
+
'quantity[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
29
|
+
'quantity[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
30
|
+
'unitPrice[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
31
|
+
'unitPrice[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
32
|
+
'unitPrice[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
33
|
+
'unitPrice[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
34
|
+
'unitPrice[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
35
|
+
'amount[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
36
|
+
'amount[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
37
|
+
'amount[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
38
|
+
'amount[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
39
|
+
'amount[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
40
|
+
'totalAmount[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
41
|
+
'totalAmount[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
42
|
+
'totalAmount[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
43
|
+
'totalAmount[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
44
|
+
'totalAmount[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
45
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
46
|
+
asc: "asc";
|
|
47
|
+
desc: "desc";
|
|
48
|
+
}>>;
|
|
49
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
50
|
+
asc: "asc";
|
|
51
|
+
desc: "desc";
|
|
52
|
+
}>>;
|
|
53
|
+
'order[quantity]': z.ZodOptional<z.ZodEnum<{
|
|
54
|
+
asc: "asc";
|
|
55
|
+
desc: "desc";
|
|
56
|
+
}>>;
|
|
57
|
+
'order[unitPrice]': z.ZodOptional<z.ZodEnum<{
|
|
58
|
+
asc: "asc";
|
|
59
|
+
desc: "desc";
|
|
60
|
+
}>>;
|
|
61
|
+
'order[amount]': z.ZodOptional<z.ZodEnum<{
|
|
62
|
+
asc: "asc";
|
|
63
|
+
desc: "desc";
|
|
64
|
+
}>>;
|
|
65
|
+
'order[totalAmount]': z.ZodOptional<z.ZodEnum<{
|
|
66
|
+
asc: "asc";
|
|
67
|
+
desc: "desc";
|
|
68
|
+
}>>;
|
|
69
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
70
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
71
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
72
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
73
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
74
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
75
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
76
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
77
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export type GetOrderMenuItemsQueryParams = z.infer<typeof getOrderMenuItemsQuerySchema>;
|
|
80
|
+
export declare const getOrderMenuItemsInputSchema: z.ZodUndefined;
|
|
81
|
+
export type GetOrderMenuItemsInput = z.infer<typeof getOrderMenuItemsInputSchema>;
|
|
82
|
+
export declare const getOrderMenuItemsResponseSchema: z.ZodObject<{
|
|
83
|
+
data: z.ZodArray<z.ZodObject<{
|
|
84
|
+
id: z.ZodString;
|
|
85
|
+
type: z.ZodEnum<{
|
|
86
|
+
ITEM: "ITEM";
|
|
87
|
+
CHOICE: "CHOICE";
|
|
88
|
+
BUNDLE: "BUNDLE";
|
|
89
|
+
}>;
|
|
90
|
+
action: z.ZodEnum<{
|
|
91
|
+
add: "add";
|
|
92
|
+
remove: "remove";
|
|
93
|
+
}>;
|
|
94
|
+
name: z.ZodArray<z.ZodObject<{
|
|
95
|
+
locale: z.ZodString;
|
|
96
|
+
text: z.ZodString;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
description: z.ZodArray<z.ZodObject<{
|
|
99
|
+
locale: z.ZodString;
|
|
100
|
+
text: z.ZodString;
|
|
101
|
+
}, z.core.$strip>>;
|
|
102
|
+
variantName: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
103
|
+
locale: z.ZodString;
|
|
104
|
+
text: z.ZodString;
|
|
105
|
+
}, z.core.$strip>>>;
|
|
106
|
+
countable: z.ZodBoolean;
|
|
107
|
+
quantity: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
108
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
109
|
+
unitPrice: z.ZodString;
|
|
110
|
+
unitNetPrice: z.ZodString;
|
|
111
|
+
unitTaxAmount: z.ZodString;
|
|
112
|
+
unitTaxRate: z.ZodCoercedNumber<unknown>;
|
|
113
|
+
unitDiscount: z.ZodString;
|
|
114
|
+
finalUnitPrice: z.ZodString;
|
|
115
|
+
finalUnitNetPrice: z.ZodString;
|
|
116
|
+
finalUnitTaxAmount: z.ZodString;
|
|
117
|
+
amount: z.ZodString;
|
|
118
|
+
netAmount: z.ZodString;
|
|
119
|
+
taxAmount: z.ZodString;
|
|
120
|
+
discount: z.ZodString;
|
|
121
|
+
totalAmount: z.ZodString;
|
|
122
|
+
totalNetAmount: z.ZodString;
|
|
123
|
+
totalTaxAmount: z.ZodString;
|
|
124
|
+
createdAt: z.ZodString;
|
|
125
|
+
updatedAt: z.ZodString;
|
|
126
|
+
removals: z.ZodArray<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/orders/menu_items/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/orders/menu_items/:id">, unknown>>>;
|
|
127
|
+
modifiers: z.ZodArray<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/orders/menu_items/modifiers/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/orders/menu_items/modifiers/:id">, unknown>>>;
|
|
128
|
+
mainLevel: z.ZodBoolean;
|
|
129
|
+
}, z.core.$strip>>;
|
|
130
|
+
pagination: z.ZodObject<{
|
|
131
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
132
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
133
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
134
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
135
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
136
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
137
|
+
}, z.core.$strip>;
|
|
138
|
+
}, z.core.$strip>;
|
|
139
|
+
export type GetOrderMenuItemsResponse = z.infer<typeof getOrderMenuItemsResponseSchema>;
|
|
140
|
+
export declare class GetOrderMenuItems extends AbstractApiRequest<typeof getOrderMenuItemsInputSchema, typeof getOrderMenuItemsResponseSchema, GetOrderMenuItemsQueryParams> {
|
|
141
|
+
readonly method: "GET";
|
|
142
|
+
readonly contentType: "application/json";
|
|
143
|
+
readonly accept: "application/json";
|
|
144
|
+
readonly inputSchema: z.ZodUndefined;
|
|
145
|
+
readonly outputSchema: z.ZodObject<{
|
|
146
|
+
data: z.ZodArray<z.ZodObject<{
|
|
147
|
+
id: z.ZodString;
|
|
148
|
+
type: z.ZodEnum<{
|
|
149
|
+
ITEM: "ITEM";
|
|
150
|
+
CHOICE: "CHOICE";
|
|
151
|
+
BUNDLE: "BUNDLE";
|
|
152
|
+
}>;
|
|
153
|
+
action: z.ZodEnum<{
|
|
154
|
+
add: "add";
|
|
155
|
+
remove: "remove";
|
|
156
|
+
}>;
|
|
157
|
+
name: z.ZodArray<z.ZodObject<{
|
|
158
|
+
locale: z.ZodString;
|
|
159
|
+
text: z.ZodString;
|
|
160
|
+
}, z.core.$strip>>;
|
|
161
|
+
description: z.ZodArray<z.ZodObject<{
|
|
162
|
+
locale: z.ZodString;
|
|
163
|
+
text: z.ZodString;
|
|
164
|
+
}, z.core.$strip>>;
|
|
165
|
+
variantName: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
166
|
+
locale: z.ZodString;
|
|
167
|
+
text: z.ZodString;
|
|
168
|
+
}, z.core.$strip>>>;
|
|
169
|
+
countable: z.ZodBoolean;
|
|
170
|
+
quantity: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
171
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
172
|
+
unitPrice: z.ZodString;
|
|
173
|
+
unitNetPrice: z.ZodString;
|
|
174
|
+
unitTaxAmount: z.ZodString;
|
|
175
|
+
unitTaxRate: z.ZodCoercedNumber<unknown>;
|
|
176
|
+
unitDiscount: z.ZodString;
|
|
177
|
+
finalUnitPrice: z.ZodString;
|
|
178
|
+
finalUnitNetPrice: z.ZodString;
|
|
179
|
+
finalUnitTaxAmount: z.ZodString;
|
|
180
|
+
amount: z.ZodString;
|
|
181
|
+
netAmount: z.ZodString;
|
|
182
|
+
taxAmount: z.ZodString;
|
|
183
|
+
discount: z.ZodString;
|
|
184
|
+
totalAmount: z.ZodString;
|
|
185
|
+
totalNetAmount: z.ZodString;
|
|
186
|
+
totalTaxAmount: z.ZodString;
|
|
187
|
+
createdAt: z.ZodString;
|
|
188
|
+
updatedAt: z.ZodString;
|
|
189
|
+
removals: z.ZodArray<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/orders/menu_items/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/orders/menu_items/:id">, unknown>>>;
|
|
190
|
+
modifiers: z.ZodArray<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/orders/menu_items/modifiers/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/orders/menu_items/modifiers/:id">, unknown>>>;
|
|
191
|
+
mainLevel: z.ZodBoolean;
|
|
192
|
+
}, z.core.$strip>>;
|
|
193
|
+
pagination: z.ZodObject<{
|
|
194
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
195
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
196
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
197
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
198
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
199
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
}, z.core.$strip>;
|
|
202
|
+
readonly querySchema: z.ZodObject<{
|
|
203
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
204
|
+
ITEM: "ITEM";
|
|
205
|
+
CHOICE: "CHOICE";
|
|
206
|
+
BUNDLE: "BUNDLE";
|
|
207
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
208
|
+
ITEM: "ITEM";
|
|
209
|
+
CHOICE: "CHOICE";
|
|
210
|
+
BUNDLE: "BUNDLE";
|
|
211
|
+
}>>]>>;
|
|
212
|
+
action: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
213
|
+
add: "add";
|
|
214
|
+
remove: "remove";
|
|
215
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
216
|
+
add: "add";
|
|
217
|
+
remove: "remove";
|
|
218
|
+
}>>]>>;
|
|
219
|
+
'customerInfo.firstName': z.ZodOptional<z.ZodString>;
|
|
220
|
+
'customerInfo.lastName': z.ZodOptional<z.ZodString>;
|
|
221
|
+
'customerInfo.email': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
222
|
+
'customerInfo.phoneNumber': z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
223
|
+
'quantity[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
224
|
+
'quantity[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
225
|
+
'quantity[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
226
|
+
'quantity[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
227
|
+
'quantity[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
228
|
+
'unitPrice[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
229
|
+
'unitPrice[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
230
|
+
'unitPrice[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
231
|
+
'unitPrice[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
232
|
+
'unitPrice[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
233
|
+
'amount[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
234
|
+
'amount[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
235
|
+
'amount[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
236
|
+
'amount[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
237
|
+
'amount[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
238
|
+
'totalAmount[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
239
|
+
'totalAmount[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
240
|
+
'totalAmount[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
241
|
+
'totalAmount[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
242
|
+
'totalAmount[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
243
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
244
|
+
asc: "asc";
|
|
245
|
+
desc: "desc";
|
|
246
|
+
}>>;
|
|
247
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
248
|
+
asc: "asc";
|
|
249
|
+
desc: "desc";
|
|
250
|
+
}>>;
|
|
251
|
+
'order[quantity]': z.ZodOptional<z.ZodEnum<{
|
|
252
|
+
asc: "asc";
|
|
253
|
+
desc: "desc";
|
|
254
|
+
}>>;
|
|
255
|
+
'order[unitPrice]': z.ZodOptional<z.ZodEnum<{
|
|
256
|
+
asc: "asc";
|
|
257
|
+
desc: "desc";
|
|
258
|
+
}>>;
|
|
259
|
+
'order[amount]': z.ZodOptional<z.ZodEnum<{
|
|
260
|
+
asc: "asc";
|
|
261
|
+
desc: "desc";
|
|
262
|
+
}>>;
|
|
263
|
+
'order[totalAmount]': z.ZodOptional<z.ZodEnum<{
|
|
264
|
+
asc: "asc";
|
|
265
|
+
desc: "desc";
|
|
266
|
+
}>>;
|
|
267
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
268
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
269
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
270
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
271
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
272
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
273
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
274
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
275
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
276
|
+
}, z.core.$strip>;
|
|
277
|
+
readonly headersSchema: undefined;
|
|
278
|
+
readonly listItemSchema: z.ZodObject<{
|
|
279
|
+
id: z.ZodString;
|
|
280
|
+
type: z.ZodEnum<{
|
|
281
|
+
ITEM: "ITEM";
|
|
282
|
+
CHOICE: "CHOICE";
|
|
283
|
+
BUNDLE: "BUNDLE";
|
|
284
|
+
}>;
|
|
285
|
+
action: z.ZodEnum<{
|
|
286
|
+
add: "add";
|
|
287
|
+
remove: "remove";
|
|
288
|
+
}>;
|
|
289
|
+
name: z.ZodArray<z.ZodObject<{
|
|
290
|
+
locale: z.ZodString;
|
|
291
|
+
text: z.ZodString;
|
|
292
|
+
}, z.core.$strip>>;
|
|
293
|
+
description: z.ZodArray<z.ZodObject<{
|
|
294
|
+
locale: z.ZodString;
|
|
295
|
+
text: z.ZodString;
|
|
296
|
+
}, z.core.$strip>>;
|
|
297
|
+
variantName: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
298
|
+
locale: z.ZodString;
|
|
299
|
+
text: z.ZodString;
|
|
300
|
+
}, z.core.$strip>>>;
|
|
301
|
+
countable: z.ZodBoolean;
|
|
302
|
+
quantity: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
303
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
304
|
+
unitPrice: z.ZodString;
|
|
305
|
+
unitNetPrice: z.ZodString;
|
|
306
|
+
unitTaxAmount: z.ZodString;
|
|
307
|
+
unitTaxRate: z.ZodCoercedNumber<unknown>;
|
|
308
|
+
unitDiscount: z.ZodString;
|
|
309
|
+
finalUnitPrice: z.ZodString;
|
|
310
|
+
finalUnitNetPrice: z.ZodString;
|
|
311
|
+
finalUnitTaxAmount: z.ZodString;
|
|
312
|
+
amount: z.ZodString;
|
|
313
|
+
netAmount: z.ZodString;
|
|
314
|
+
taxAmount: z.ZodString;
|
|
315
|
+
discount: z.ZodString;
|
|
316
|
+
totalAmount: z.ZodString;
|
|
317
|
+
totalNetAmount: z.ZodString;
|
|
318
|
+
totalTaxAmount: z.ZodString;
|
|
319
|
+
createdAt: z.ZodString;
|
|
320
|
+
updatedAt: z.ZodString;
|
|
321
|
+
removals: z.ZodArray<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/orders/menu_items/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/orders/menu_items/:id">, unknown>>>;
|
|
322
|
+
modifiers: z.ZodArray<z.ZodType<import("@deliverart/sdk-js-global-types").IriObject<"/orders/menu_items/modifiers/:id">, unknown, z.core.$ZodTypeInternals<import("@deliverart/sdk-js-global-types").IriObject<"/orders/menu_items/modifiers/:id">, unknown>>>;
|
|
323
|
+
mainLevel: z.ZodBoolean;
|
|
324
|
+
}, z.core.$strip>;
|
|
325
|
+
readonly paginationDefaultEnabled = true;
|
|
326
|
+
constructor(options?: {
|
|
327
|
+
query?: OrderMenuItemsQueryParams;
|
|
328
|
+
});
|
|
329
|
+
getPath(): string;
|
|
330
|
+
}
|
|
331
|
+
//# sourceMappingURL=GetOrderMenuItems.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetOrderMenuItems.d.ts","sourceRoot":"","sources":["../../../src/requests/order-menu-items/GetOrderMenuItems.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAE5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAEL,yBAAyB,EAE1B,MAAM,cAAc,CAAA;AAErB,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA4B,CAAA;AACrE,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AAEvF,eAAO,MAAM,4BAA4B,gBAAgB,CAAA;AACzD,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AAEjF,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA6C,CAAA;AACzF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAA;AAEvF,qBAAa,iBAAkB,SAAQ,kBAAkB,CACvD,OAAO,4BAA4B,EACnC,OAAO,+BAA+B,EACtC,4BAA4B,CAC7B;IACC,QAAQ,CAAC,MAAM,EAAG,KAAK,CAAS;IAChC,QAAQ,CAAC,WAAW,EAAG,kBAAkB,CAAS;IAClD,QAAQ,CAAC,MAAM,EAAG,kBAAkB,CAAS;IAE7C,QAAQ,CAAC,WAAW,iBAA+B;IACnD,QAAQ,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAAkC;IACvD,QAAQ,CAAC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAA+B;IACnD,QAAQ,CAAC,aAAa,YAAY;IAElC,QAAQ,CAAC,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAAsB;IAC7C,QAAQ,CAAC,wBAAwB,QAAO;gBAE5B,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,yBAAyB,CAAA;KAAE;IAI3D,OAAO,IAAI,MAAM;CAGlB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AbstractApiRequest } from '@deliverart/sdk-js-core';
|
|
2
|
+
import { createPaginatedSchema } from '@deliverart/sdk-js-global-types';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { orderMenuItemSchema, orderMenuItemsQuerySchema, } from '../../models';
|
|
5
|
+
export const getOrderMenuItemsQuerySchema = orderMenuItemsQuerySchema;
|
|
6
|
+
export const getOrderMenuItemsInputSchema = z.undefined();
|
|
7
|
+
export const getOrderMenuItemsResponseSchema = createPaginatedSchema(orderMenuItemSchema);
|
|
8
|
+
export class GetOrderMenuItems extends AbstractApiRequest {
|
|
9
|
+
constructor(options) {
|
|
10
|
+
super(undefined, options);
|
|
11
|
+
this.method = 'GET';
|
|
12
|
+
this.contentType = 'application/json';
|
|
13
|
+
this.accept = 'application/json';
|
|
14
|
+
this.inputSchema = getOrderMenuItemsInputSchema;
|
|
15
|
+
this.outputSchema = getOrderMenuItemsResponseSchema;
|
|
16
|
+
this.querySchema = getOrderMenuItemsQuerySchema;
|
|
17
|
+
this.headersSchema = undefined;
|
|
18
|
+
this.listItemSchema = orderMenuItemSchema;
|
|
19
|
+
this.paginationDefaultEnabled = true;
|
|
20
|
+
}
|
|
21
|
+
getPath() {
|
|
22
|
+
return '/orders/menu_items';
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/requests/order-menu-items/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,qBAAqB,CAAA"}
|