@deliverart/sdk-js-order 2.48.1 → 3.0.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +46 -0
- package/dist/index.cjs +90 -25
- package/dist/index.d.cts +6158 -1778
- package/dist/index.d.ts +6158 -1778
- package/dist/index.js +73 -8
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -71,6 +71,12 @@ type OrderPlanningMode = 'PLANNED' | 'FORCED'
|
|
|
71
71
|
- `kitchen` does not accept delivery or collection scheduling fields
|
|
72
72
|
- all writable order inputs also accept `forceScheduling?: boolean` for internal operator-only retries that bypass slot/capacity validation
|
|
73
73
|
|
|
74
|
+
Ingredient removals remain catalog menu-item IRIs in public order drafts. Both
|
|
75
|
+
`CreateOrder` and `CalculateOrderFees` convert those selections into fresh owned
|
|
76
|
+
removal objects at the request boundary, including selections inside nested
|
|
77
|
+
modifiers. They preserve the original draft. Existing order-row IRIs cannot be
|
|
78
|
+
used to create items, modifiers, choices or removals in another order.
|
|
79
|
+
|
|
74
80
|
`UpdateOrderInput` keeps common editable fields and enforces mutually exclusive delivery / collection scheduling fields.
|
|
75
81
|
|
|
76
82
|
Order list and detail responses allow `address.city` and `address.postalCode` to be
|
|
@@ -1114,3 +1120,43 @@ provider numbering series can repeat. Tilby already exposes its numeric `sale_id
|
|
|
1114
1120
|
### Exact order selection
|
|
1115
1121
|
|
|
1116
1122
|
`GetPointOfSaleOrders` accepts `query.id` as one identifier or a non-empty array. Use this POS-scoped filter to load complete order cards for an authoritative dashboard cohort without broadening its membership. The client serializes arrays as `id[]`; empty arrays are rejected.
|
|
1123
|
+
|
|
1124
|
+
### Recorded operational pricing
|
|
1125
|
+
|
|
1126
|
+
Order collection and detail responses may expose read-only `recordedPricing` and
|
|
1127
|
+
`recordedCurrency`. Older responses may omit both fields. When recorded pricing
|
|
1128
|
+
is true, amounts retain source evidence and generic order PATCH is rejected with
|
|
1129
|
+
`order_recorded_pricing_locked`; use the permitted targeted operational actions.
|
|
1130
|
+
These fields are never writable inputs. Physical item `unitTaxRate` preserves
|
|
1131
|
+
`null` as unavailable, separately from an explicit zero rate. Export diagnostic
|
|
1132
|
+
`order_export_recorded_pricing_unsupported` requires compatible fiscal handling;
|
|
1133
|
+
a fresh retry cannot repair it. Read-only uncertain-outcome reconciliation remains
|
|
1134
|
+
available.
|
|
1135
|
+
|
|
1136
|
+
`OrderMenuItem.recordedVariations` optionally preserves flat imported choices.
|
|
1137
|
+
Each readonly entry carries `action` (`add`/`sub`), source `labels`,
|
|
1138
|
+
`labelEvidence` and nullable signed `ruleSorting`. Old API responses may omit
|
|
1139
|
+
this field. Labels retain their original locale and full text; unavailable labels
|
|
1140
|
+
remain explicit. These entries do not define modifier groups or catalog links,
|
|
1141
|
+
and their charges are already included in the physical item's amounts. They
|
|
1142
|
+
must never be submitted as additional writable modifiers or zero-priced items.
|
|
1143
|
+
|
|
1144
|
+
`OrderFeeDto.taxRate` is nullable: an unavailable source VAT rate remains `null`
|
|
1145
|
+
and is distinct from an explicit `0`. Signed amount/net/tax strings are retained
|
|
1146
|
+
without reclassification or recalculation. Ordinary known rates remain numeric.
|
|
1147
|
+
|
|
1148
|
+
`migrationQuarantined` is a required, read-only boolean on order list, detail and nested bundle reads. It is derived by the API from immutable migration receipts; `recordedPricing`, source, status and payment fields do not establish or clear quarantine. Missing or malformed flags fail response validation instead of defaulting to false. Create/PATCH schemas do not send this field. Clients must disable operational mutations and printing while it is true; no quarantine release operation is currently exposed.
|
|
1149
|
+
|
|
1150
|
+
|
|
1151
|
+
Roll out the API read contract before publishing or adopting this required-field
|
|
1152
|
+
SDK in clients. Older APIs that omit `migrationQuarantined` are intentionally
|
|
1153
|
+
incompatible with the new response schema. Coordinate Hub and other order SDK
|
|
1154
|
+
consumers with that API-first rollout; local builds do not publish a package or
|
|
1155
|
+
enable migration traffic.
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
## Strict TypeScript fixture and amendment-reference checks
|
|
1159
|
+
|
|
1160
|
+
The package TypeScript configuration resolves the checked-in JSON API fixtures during strict checks. No fixture is excluded, widened to `any`, or replaced by an ambient JSON-module declaration. Existing address-read matrices select each concrete schema before constructing their table, preserving every nullable-read and strict-write assertion.
|
|
1161
|
+
|
|
1162
|
+
Amendment references retain the string-or-IRI-object input and canonical string output. The normalized, strictly refined intermediate is annotated with `unknown` output solely to match the shared IRI parser's declared unknown-input boundary. The runtime pipeline still performs the original relative/path checks, then the common IRI/UUID parser, then returns its canonical wire string. No assertion cast, unchecked parse or bypass is used. RFC and historical UUID-shaped references remain accepted under the common contract; malformed, foreign and non-relative references remain rejected.
|
package/dist/index.cjs
CHANGED
|
@@ -207,8 +207,8 @@ __export(index_exports, {
|
|
|
207
207
|
getOrderSettlementTasksInputSchema: () => getOrderSettlementTasksInputSchema,
|
|
208
208
|
getOrderSettlementTasksQuerySchema: () => getOrderSettlementTasksQuerySchema,
|
|
209
209
|
getOrderSettlementTasksResponseSchema: () => getOrderSettlementTasksResponseSchema,
|
|
210
|
-
getOrderSubPartnerPresentation: () =>
|
|
211
|
-
getOrderSubPartners: () =>
|
|
210
|
+
getOrderSubPartnerPresentation: () => import_sdk_js_global_types32.getOrderSubPartnerPresentation,
|
|
211
|
+
getOrderSubPartners: () => import_sdk_js_global_types32.getOrderSubPartners,
|
|
212
212
|
getOrdersInputSchema: () => getOrdersInputSchema,
|
|
213
213
|
getOrdersQuerySchema: () => getOrdersQuerySchema,
|
|
214
214
|
getOrdersResponseSchema: () => getOrdersResponseSchema,
|
|
@@ -219,7 +219,7 @@ __export(index_exports, {
|
|
|
219
219
|
getPointOfSaleOrdersQuerySchema: () => getPointOfSaleOrdersQuerySchema,
|
|
220
220
|
getPointOfSaleOrdersResponseSchema: () => getPointOfSaleOrdersResponseSchema,
|
|
221
221
|
initialPaymentAllocationSchema: () => initialPaymentAllocationSchema,
|
|
222
|
-
isOrderSubPartnerAllowed: () =>
|
|
222
|
+
isOrderSubPartnerAllowed: () => import_sdk_js_global_types32.isOrderSubPartnerAllowed,
|
|
223
223
|
kitchenOrderDetailsSchema: () => kitchenOrderDetailsSchema,
|
|
224
224
|
kitchenOrderSchema: () => kitchenOrderSchema,
|
|
225
225
|
localeItemSchema: () => localeItemSchema,
|
|
@@ -227,7 +227,7 @@ __export(index_exports, {
|
|
|
227
227
|
markOrderAsCollectedResponseSchema: () => markOrderAsCollectedResponseSchema,
|
|
228
228
|
markOrderAsReadInputSchema: () => markOrderAsReadInputSchema,
|
|
229
229
|
markOrderAsReadResponseSchema: () => markOrderAsReadResponseSchema,
|
|
230
|
-
matchesOrderProvenance: () =>
|
|
230
|
+
matchesOrderProvenance: () => import_sdk_js_global_types32.matchesOrderProvenance,
|
|
231
231
|
orderAddressSchema: () => orderAddressSchema,
|
|
232
232
|
orderAmendmentActionAvailabilitySchema: () => orderAmendmentActionAvailabilitySchema,
|
|
233
233
|
orderAmendmentActionSchema: () => orderAmendmentActionSchema,
|
|
@@ -320,10 +320,10 @@ __export(index_exports, {
|
|
|
320
320
|
orderSources: () => import_sdk_js_global_types4.orderSources,
|
|
321
321
|
orderStatusSchema: () => import_sdk_js_global_types4.orderStatusSchema,
|
|
322
322
|
orderStatuses: () => import_sdk_js_global_types4.orderStatuses,
|
|
323
|
-
orderSubPartnerLabels: () =>
|
|
324
|
-
orderSubPartnerSchema: () =>
|
|
325
|
-
orderSubPartners: () =>
|
|
326
|
-
orderSubPartnersByPartner: () =>
|
|
323
|
+
orderSubPartnerLabels: () => import_sdk_js_global_types32.orderSubPartnerLabels,
|
|
324
|
+
orderSubPartnerSchema: () => import_sdk_js_global_types32.orderSubPartnerSchema,
|
|
325
|
+
orderSubPartners: () => import_sdk_js_global_types32.orderSubPartners,
|
|
326
|
+
orderSubPartnersByPartner: () => import_sdk_js_global_types32.orderSubPartnersByPartner,
|
|
327
327
|
orderTypeSchema: () => import_sdk_js_global_types4.orderTypeSchema,
|
|
328
328
|
orderTypes: () => import_sdk_js_global_types4.orderTypes,
|
|
329
329
|
ordersQuerySchema: () => ordersQuerySchema,
|
|
@@ -337,6 +337,7 @@ __export(index_exports, {
|
|
|
337
337
|
recordOrderOfflineSettlementResponseSchema: () => recordOrderOfflineSettlementResponseSchema,
|
|
338
338
|
recordOrderReceiptInputSchema: () => recordOrderReceiptInputSchema,
|
|
339
339
|
recordOrderReceiptResponseSchema: () => recordOrderReceiptResponseSchema,
|
|
340
|
+
recordedOrderVariationSchema: () => recordedOrderVariationSchema,
|
|
340
341
|
regularBundleDetailsSchema: () => regularBundleDetailsSchema,
|
|
341
342
|
regularBundleSchema: () => regularBundleSchema,
|
|
342
343
|
rejectOrderHeadersSchema: () => rejectOrderHeadersSchema,
|
|
@@ -384,10 +385,13 @@ var import_zod2 = require("zod");
|
|
|
384
385
|
// src/amendment-references.ts
|
|
385
386
|
var import_sdk_js_global_types = require("@deliverart/sdk-js-global-types");
|
|
386
387
|
var import_zod = require("zod");
|
|
387
|
-
var amendmentResourceIri = (pattern) =>
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
388
|
+
var amendmentResourceIri = (pattern) => {
|
|
389
|
+
const normalizedReference = import_zod.z.union([import_zod.z.string(), import_zod.z.object({ iri: import_zod.z.string() })]).transform((value) => typeof value === "string" ? value : value.iri).refine(
|
|
390
|
+
(value) => value.startsWith("/") && !value.startsWith("//") && !/[?#]/.test(value) && (0, import_sdk_js_global_types.matchesIriPattern)(value, pattern),
|
|
391
|
+
"A matching relative resource IRI is required."
|
|
392
|
+
);
|
|
393
|
+
return normalizedReference.pipe((0, import_sdk_js_global_types.iriSchema)(pattern)).transform((value) => value.iri);
|
|
394
|
+
};
|
|
391
395
|
function checkAmendmentReferenceAliases(value, context, fields) {
|
|
392
396
|
for (const field of fields) {
|
|
393
397
|
if (value[field] != null && value[`${field}Id`] != null)
|
|
@@ -804,7 +808,7 @@ var orderFeeDtoSchema = import_zod8.z.object({
|
|
|
804
808
|
amount: import_zod8.z.string(),
|
|
805
809
|
netAmount: import_zod8.z.string(),
|
|
806
810
|
taxAmount: import_zod8.z.string(),
|
|
807
|
-
taxRate: import_zod8.z.coerce.number()
|
|
811
|
+
taxRate: import_zod8.z.coerce.number().nullable()
|
|
808
812
|
});
|
|
809
813
|
var feeSimulationSchema = import_zod8.z.object({
|
|
810
814
|
fees: import_zod8.z.array(orderFeeDtoSchema).min(0),
|
|
@@ -831,6 +835,21 @@ var localeItemSchema = import_zod8.z.object({
|
|
|
831
835
|
locale: import_zod8.z.string().regex(/^[a-z]{2}(_[A-Z]{2})?$/),
|
|
832
836
|
text: import_zod8.z.string()
|
|
833
837
|
});
|
|
838
|
+
var recordedVariationLabelText = (limit) => import_zod8.z.string().refine((value) => Array.from(value).every((character) => {
|
|
839
|
+
const code = character.codePointAt(0);
|
|
840
|
+
return code >= 32 && code !== 127 || [9, 10, 13].includes(code);
|
|
841
|
+
}), "Source label contains control characters").refine((value) => !/\p{Cs}/u.test(value), "Source label contains invalid Unicode").refine((value) => Array.from(value).length <= limit, "Source label exceeds its character limit");
|
|
842
|
+
var recordedOrderVariationSchema = import_zod8.z.object({
|
|
843
|
+
action: import_zod8.z.enum(["add", "sub"]),
|
|
844
|
+
labels: import_zod8.z.array(
|
|
845
|
+
import_zod8.z.object({
|
|
846
|
+
locale: recordedVariationLabelText(30).refine((value) => value.length > 0),
|
|
847
|
+
text: recordedVariationLabelText(500)
|
|
848
|
+
}).strict()
|
|
849
|
+
).max(30),
|
|
850
|
+
labelEvidence: import_zod8.z.enum(["current_catalog_reference", "unavailable"]),
|
|
851
|
+
ruleSorting: import_zod8.z.number().int().min(-2147483648).max(2147483647).nullable()
|
|
852
|
+
}).strict();
|
|
834
853
|
var orderMenuItemSchema = import_zod8.z.object({
|
|
835
854
|
id: import_zod8.z.string(),
|
|
836
855
|
type: import_sdk_js_menu.menuItemTypeSchema,
|
|
@@ -838,13 +857,14 @@ var orderMenuItemSchema = import_zod8.z.object({
|
|
|
838
857
|
name: import_zod8.z.array(localeItemSchema).min(1),
|
|
839
858
|
description: import_zod8.z.array(localeItemSchema).min(0),
|
|
840
859
|
variantName: import_zod8.z.array(localeItemSchema).min(1).nullable(),
|
|
860
|
+
recordedVariations: import_zod8.z.array(recordedOrderVariationSchema).max(5e3).optional(),
|
|
841
861
|
countable: import_zod8.z.boolean(),
|
|
842
862
|
quantity: import_zod8.z.coerce.number().nonnegative().nullable(),
|
|
843
863
|
notes: import_zod8.z.string().nullable(),
|
|
844
864
|
unitPrice: import_zod8.z.string(),
|
|
845
865
|
unitNetPrice: import_zod8.z.string(),
|
|
846
866
|
unitTaxAmount: import_zod8.z.string(),
|
|
847
|
-
unitTaxRate: import_zod8.z.coerce.number(),
|
|
867
|
+
unitTaxRate: import_zod8.z.coerce.number().nullable(),
|
|
848
868
|
unitDiscount: import_zod8.z.string(),
|
|
849
869
|
finalUnitPrice: import_zod8.z.string(),
|
|
850
870
|
finalUnitNetPrice: import_zod8.z.string(),
|
|
@@ -958,6 +978,11 @@ var orderPaymentSummarySchema = import_zod8.z.object({
|
|
|
958
978
|
});
|
|
959
979
|
var orderBaseSchema = import_zod8.z.object({
|
|
960
980
|
id: import_zod8.z.string(),
|
|
981
|
+
// Required server-derived mutation/printing lock; never infer a missing capability as false.
|
|
982
|
+
migrationQuarantined: import_zod8.z.boolean(),
|
|
983
|
+
// Read-only recorded pricing facts; older API responses may omit both fields.
|
|
984
|
+
recordedPricing: import_zod8.z.boolean().optional(),
|
|
985
|
+
recordedCurrency: import_zod8.z.string().regex(/^[A-Z]{3}$/).nullable().optional(),
|
|
961
986
|
payment: import_sdk_js_payment.paymentNullableIriSchema,
|
|
962
987
|
paymentSummary: orderPaymentSummarySchema,
|
|
963
988
|
paymentMethod: import_sdk_js_payment.paymentMethodSchema.nullable(),
|
|
@@ -965,6 +990,7 @@ var orderBaseSchema = import_zod8.z.object({
|
|
|
965
990
|
source: import_sdk_js_global_types4.orderSourceSchema,
|
|
966
991
|
partner: import_sdk_js_global_types5.orderPartnerSchema.nullable(),
|
|
967
992
|
subPartner: import_sdk_js_global_types5.orderSubPartnerSchema.nullable().optional(),
|
|
993
|
+
deliveryManagedBy: import_sdk_js_global_types5.orderDeliveryManagerSchema.nullable().optional(),
|
|
968
994
|
originIntegration: import_sdk_js_integration_types.integrationDetailsNullableIriSchema,
|
|
969
995
|
partnerIdentifier: import_zod8.z.string().nullable(),
|
|
970
996
|
partnerLocationIdentifier: import_zod8.z.string().nullable().optional(),
|
|
@@ -1212,6 +1238,7 @@ var writableOrderBaseSchema = import_zod8.z.object({
|
|
|
1212
1238
|
source: import_sdk_js_global_types4.orderSourceSchema,
|
|
1213
1239
|
partner: import_sdk_js_global_types5.orderPartnerSchema.nullable().optional(),
|
|
1214
1240
|
subPartner: import_sdk_js_global_types5.orderSubPartnerSchema.nullable().optional(),
|
|
1241
|
+
deliveryManagedBy: import_sdk_js_global_types5.orderDeliveryManagerSchema.nullable().optional(),
|
|
1215
1242
|
partnerLocationIdentifier: import_zod8.z.string().nullable().optional(),
|
|
1216
1243
|
partnerIdentifier: import_zod8.z.string().nullable().optional(),
|
|
1217
1244
|
displayId: import_zod8.z.string().nullable().optional(),
|
|
@@ -1290,6 +1317,13 @@ var writableOrderSchema = import_zod8.z.discriminatedUnion("type", [
|
|
|
1290
1317
|
message: "The sub-partner is not supported by this order source and partner."
|
|
1291
1318
|
});
|
|
1292
1319
|
}
|
|
1320
|
+
if (order.deliveryManagedBy != null && (order.source !== "partner" || order.partner !== "elephant" || order.type !== "delivery")) {
|
|
1321
|
+
context.addIssue({
|
|
1322
|
+
code: "custom",
|
|
1323
|
+
path: ["deliveryManagedBy"],
|
|
1324
|
+
message: "Delivery responsibility can only be supplied on Elephant delivery orders."
|
|
1325
|
+
});
|
|
1326
|
+
}
|
|
1293
1327
|
});
|
|
1294
1328
|
var writableUpdateOrderCommonSchema = import_zod8.z.object({
|
|
1295
1329
|
customer: import_sdk_js_customer.customerNullableIriSchema.optional(),
|
|
@@ -3705,6 +3739,36 @@ var AdvanceOrderPreparationStatus = class extends import_sdk_js_core53.AbstractA
|
|
|
3705
3739
|
|
|
3706
3740
|
// src/requests/orders/CalculateOrderFees.ts
|
|
3707
3741
|
var import_sdk_js_core54 = require("@deliverart/sdk-js-core");
|
|
3742
|
+
|
|
3743
|
+
// src/requests/orders/fresh-owned-order-input.ts
|
|
3744
|
+
var import_sdk_js_global_types27 = require("@deliverart/sdk-js-global-types");
|
|
3745
|
+
function freshOwnedItem(item) {
|
|
3746
|
+
return {
|
|
3747
|
+
...item,
|
|
3748
|
+
removals: item.removals.map((menuItem) => ({ menuItem })),
|
|
3749
|
+
modifiers: item.modifiers.map((modifier) => ({
|
|
3750
|
+
...modifier,
|
|
3751
|
+
items: modifier.items.map(freshOwnedItem)
|
|
3752
|
+
}))
|
|
3753
|
+
};
|
|
3754
|
+
}
|
|
3755
|
+
var freshOwnedOrderInputSchema = writableOrderSchema.superRefine((order, context) => {
|
|
3756
|
+
const visit = (item, path) => {
|
|
3757
|
+
item.removals.forEach((reference, index) => {
|
|
3758
|
+
if (!(0, import_sdk_js_global_types27.matchesIriPattern)(reference.iri, "/menu_items/:id") || reference.iri !== `/menu_items/${reference.params.id}`) {
|
|
3759
|
+
context.addIssue({
|
|
3760
|
+
code: "custom",
|
|
3761
|
+
message: "Order removal selections must reference catalog menu items.",
|
|
3762
|
+
path: [...path, "removals", index]
|
|
3763
|
+
});
|
|
3764
|
+
}
|
|
3765
|
+
});
|
|
3766
|
+
item.modifiers.forEach((modifier, groupIndex) => modifier.items.forEach((child, childIndex) => visit(child, [...path, "modifiers", groupIndex, "items", childIndex])));
|
|
3767
|
+
};
|
|
3768
|
+
order.items.forEach((item, index) => visit(item, ["items", index]));
|
|
3769
|
+
}).transform((order) => ({ ...order, items: order.items.map(freshOwnedItem) }));
|
|
3770
|
+
|
|
3771
|
+
// src/requests/orders/CalculateOrderFees.ts
|
|
3708
3772
|
var calculateOrderFeesInputSchema = writableOrderSchema;
|
|
3709
3773
|
var calculateOrderFeesResponseSchema = feeSimulationSchema;
|
|
3710
3774
|
var CalculateOrderFees = class extends import_sdk_js_core54.AbstractApiRequest {
|
|
@@ -3713,7 +3777,7 @@ var CalculateOrderFees = class extends import_sdk_js_core54.AbstractApiRequest {
|
|
|
3713
3777
|
this.method = "POST";
|
|
3714
3778
|
this.contentType = "application/json";
|
|
3715
3779
|
this.accept = "application/json";
|
|
3716
|
-
this.inputSchema =
|
|
3780
|
+
this.inputSchema = freshOwnedOrderInputSchema;
|
|
3717
3781
|
this.outputSchema = calculateOrderFeesResponseSchema;
|
|
3718
3782
|
this.querySchema = void 0;
|
|
3719
3783
|
this.headersSchema = void 0;
|
|
@@ -3756,7 +3820,7 @@ var CreateOrder = class extends import_sdk_js_core56.AbstractApiRequest {
|
|
|
3756
3820
|
this.method = "POST";
|
|
3757
3821
|
this.contentType = "application/json";
|
|
3758
3822
|
this.accept = "application/json";
|
|
3759
|
-
this.inputSchema =
|
|
3823
|
+
this.inputSchema = freshOwnedOrderInputSchema;
|
|
3760
3824
|
this.outputSchema = createOrderResponseSchema;
|
|
3761
3825
|
this.querySchema = void 0;
|
|
3762
3826
|
this.headersSchema = void 0;
|
|
@@ -3768,10 +3832,10 @@ var CreateOrder = class extends import_sdk_js_core56.AbstractApiRequest {
|
|
|
3768
3832
|
|
|
3769
3833
|
// src/requests/orders/DeleteOrder.ts
|
|
3770
3834
|
var import_sdk_js_core57 = require("@deliverart/sdk-js-core");
|
|
3771
|
-
var
|
|
3835
|
+
var import_sdk_js_global_types28 = require("@deliverart/sdk-js-global-types");
|
|
3772
3836
|
var import_zod60 = require("zod");
|
|
3773
3837
|
var deleteOrderInputSchema = import_zod60.z.undefined();
|
|
3774
|
-
var deleteOrderResponseSchema =
|
|
3838
|
+
var deleteOrderResponseSchema = import_sdk_js_global_types28.emptyResponseSchema;
|
|
3775
3839
|
var DeleteOrder = class extends import_sdk_js_core57.AbstractApiRequest {
|
|
3776
3840
|
constructor(orderId) {
|
|
3777
3841
|
super(void 0);
|
|
@@ -3813,13 +3877,13 @@ var GenerateOrderBundle = class extends import_sdk_js_core58.AbstractApiRequest
|
|
|
3813
3877
|
|
|
3814
3878
|
// src/requests/orders/GetCustomerOrders.ts
|
|
3815
3879
|
var import_sdk_js_core59 = require("@deliverart/sdk-js-core");
|
|
3816
|
-
var
|
|
3880
|
+
var import_sdk_js_global_types29 = require("@deliverart/sdk-js-global-types");
|
|
3817
3881
|
var import_zod62 = require("zod");
|
|
3818
3882
|
var getCustomerOrdersQuerySchema = ordersQuerySchema.extend({
|
|
3819
3883
|
view: import_zod62.z.literal("buyer").optional()
|
|
3820
3884
|
});
|
|
3821
3885
|
var getCustomerOrdersInputSchema = import_zod62.z.undefined();
|
|
3822
|
-
var getCustomerOrdersResponseSchema = (0,
|
|
3886
|
+
var getCustomerOrdersResponseSchema = (0, import_sdk_js_global_types29.createPaginatedSchema)(orderSchema);
|
|
3823
3887
|
var GetCustomerOrders = class extends import_sdk_js_core59.AbstractApiRequest {
|
|
3824
3888
|
constructor(customerId, options) {
|
|
3825
3889
|
super(void 0, options);
|
|
@@ -3886,11 +3950,11 @@ var GetOrderRescheduleOptions = class extends import_sdk_js_core61.AbstractApiRe
|
|
|
3886
3950
|
|
|
3887
3951
|
// src/requests/orders/GetOrders.ts
|
|
3888
3952
|
var import_sdk_js_core62 = require("@deliverart/sdk-js-core");
|
|
3889
|
-
var
|
|
3953
|
+
var import_sdk_js_global_types30 = require("@deliverart/sdk-js-global-types");
|
|
3890
3954
|
var import_zod65 = require("zod");
|
|
3891
3955
|
var getOrdersQuerySchema = ordersQuerySchema;
|
|
3892
3956
|
var getOrdersInputSchema = import_zod65.z.undefined();
|
|
3893
|
-
var getOrdersResponseSchema = (0,
|
|
3957
|
+
var getOrdersResponseSchema = (0, import_sdk_js_global_types30.createPaginatedSchema)(orderSchema);
|
|
3894
3958
|
var GetOrders = class extends import_sdk_js_core62.AbstractApiRequest {
|
|
3895
3959
|
constructor(options) {
|
|
3896
3960
|
super(void 0, options);
|
|
@@ -3911,11 +3975,11 @@ var GetOrders = class extends import_sdk_js_core62.AbstractApiRequest {
|
|
|
3911
3975
|
|
|
3912
3976
|
// src/requests/orders/GetPointOfSaleOrders.ts
|
|
3913
3977
|
var import_sdk_js_core63 = require("@deliverart/sdk-js-core");
|
|
3914
|
-
var
|
|
3978
|
+
var import_sdk_js_global_types31 = require("@deliverart/sdk-js-global-types");
|
|
3915
3979
|
var import_zod66 = require("zod");
|
|
3916
3980
|
var getPointOfSaleOrdersQuerySchema = ordersQuerySchema;
|
|
3917
3981
|
var getPointOfSaleOrdersInputSchema = import_zod66.z.undefined();
|
|
3918
|
-
var getPointOfSaleOrdersResponseSchema = (0,
|
|
3982
|
+
var getPointOfSaleOrdersResponseSchema = (0, import_sdk_js_global_types31.createPaginatedSchema)(orderSchema);
|
|
3919
3983
|
var GetPointOfSaleOrders = class extends import_sdk_js_core63.AbstractApiRequest {
|
|
3920
3984
|
constructor(pointOfSaleId, options) {
|
|
3921
3985
|
super(void 0, options);
|
|
@@ -4051,7 +4115,7 @@ var UpdateOrder = class extends import_sdk_js_core68.AbstractApiRequest {
|
|
|
4051
4115
|
};
|
|
4052
4116
|
|
|
4053
4117
|
// src/index.ts
|
|
4054
|
-
var
|
|
4118
|
+
var import_sdk_js_global_types32 = require("@deliverart/sdk-js-global-types");
|
|
4055
4119
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4056
4120
|
0 && (module.exports = {
|
|
4057
4121
|
AcknowledgeKitchenAmendments,
|
|
@@ -4371,6 +4435,7 @@ var import_sdk_js_global_types31 = require("@deliverart/sdk-js-global-types");
|
|
|
4371
4435
|
recordOrderOfflineSettlementResponseSchema,
|
|
4372
4436
|
recordOrderReceiptInputSchema,
|
|
4373
4437
|
recordOrderReceiptResponseSchema,
|
|
4438
|
+
recordedOrderVariationSchema,
|
|
4374
4439
|
regularBundleDetailsSchema,
|
|
4375
4440
|
regularBundleSchema,
|
|
4376
4441
|
rejectOrderHeadersSchema,
|