@deliverart/sdk-js-order 2.5.34 → 2.6.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 +18 -36
- package/dist/index.d.cts +576 -29
- package/dist/index.d.ts +576 -29
- package/dist/index.js +22 -58
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as _deliverart_sdk_js_global_types from '@deliverart/sdk-js-global-types';
|
|
2
|
-
import { Paginated } from '@deliverart/sdk-js-global-types';
|
|
3
2
|
export { BundleBundleBrokenReason, BundleStatus, BundleType, OrderMenuItemAction, OrderPreparationStatus, OrderSource, OrderStatus, OrderType, bundleBundleBrokenReasonSchema, bundleBundleBrokenReasons, bundleStatusSchema, bundleStatuses, bundleTypeSchema, bundleTypes, orderMenuItemActionSchema, orderMenuItemActions, orderPreparationStatusSchema, orderPreparationStatuses, orderSourceSchema, orderSources, orderStatusSchema, orderStatuses, orderTypeSchema, orderTypes } from '@deliverart/sdk-js-global-types';
|
|
4
3
|
import { MenuItemIri, MenuItemPriceOverrideNullableIri, MenuItemModifierIri } from '@deliverart/sdk-js-menu';
|
|
5
4
|
import { SalesModeNullableIri } from '@deliverart/sdk-js-sales-mode';
|
|
@@ -2080,9 +2079,9 @@ declare const getBundlesResponseSchema: z.ZodObject<{
|
|
|
2080
2079
|
}, z.core.$strip>;
|
|
2081
2080
|
type GetBundlesResponse = z.infer<typeof getBundlesResponseSchema>;
|
|
2082
2081
|
declare class GetBundles extends AbstractApiRequest<typeof getBundlesInputSchema, typeof getBundlesResponseSchema, GetBundlesQueryParams> {
|
|
2083
|
-
readonly method
|
|
2084
|
-
readonly contentType
|
|
2085
|
-
readonly accept
|
|
2082
|
+
readonly method: "GET";
|
|
2083
|
+
readonly contentType: "application/json";
|
|
2084
|
+
readonly accept: "application/json";
|
|
2086
2085
|
readonly inputSchema: z.ZodUndefined;
|
|
2087
2086
|
readonly outputSchema: z.ZodObject<{
|
|
2088
2087
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -2305,11 +2304,144 @@ declare class GetBundles extends AbstractApiRequest<typeof getBundlesInputSchema
|
|
|
2305
2304
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2306
2305
|
}, z.core.$strip>;
|
|
2307
2306
|
readonly headersSchema: undefined;
|
|
2307
|
+
readonly listItemSchema: z.ZodObject<{
|
|
2308
|
+
id: z.ZodString;
|
|
2309
|
+
status: z.ZodEnum<{
|
|
2310
|
+
pending: "pending";
|
|
2311
|
+
busy: "busy";
|
|
2312
|
+
broken: "broken";
|
|
2313
|
+
released: "released";
|
|
2314
|
+
}>;
|
|
2315
|
+
type: z.ZodEnum<{
|
|
2316
|
+
REGULAR: "REGULAR";
|
|
2317
|
+
FORCED: "FORCED";
|
|
2318
|
+
}>;
|
|
2319
|
+
brokenReason: z.ZodNullable<z.ZodEnum<{
|
|
2320
|
+
delivery_removed: "delivery_removed";
|
|
2321
|
+
}>>;
|
|
2322
|
+
deliverable: z.ZodBoolean;
|
|
2323
|
+
ready: z.ZodBoolean;
|
|
2324
|
+
preparationTime: z.ZodNullable<z.ZodString>;
|
|
2325
|
+
startTime: z.ZodNullable<z.ZodString>;
|
|
2326
|
+
endTime: z.ZodNullable<z.ZodString>;
|
|
2327
|
+
totalCountableItems: z.ZodCoercedNumber<unknown>;
|
|
2328
|
+
orders: z.ZodArray<z.ZodObject<{
|
|
2329
|
+
id: z.ZodString;
|
|
2330
|
+
payment: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payments/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payments/:id"> | null, unknown>>;
|
|
2331
|
+
paymentMethod: z.ZodNullable<z.ZodEnum<{
|
|
2332
|
+
stripe: "stripe";
|
|
2333
|
+
bank_transfer: "bank_transfer";
|
|
2334
|
+
cash: "cash";
|
|
2335
|
+
credit_card: "credit_card";
|
|
2336
|
+
}>>;
|
|
2337
|
+
paymentStatus: z.ZodNullable<z.ZodEnum<{
|
|
2338
|
+
pending: "pending";
|
|
2339
|
+
pending_verification: "pending_verification";
|
|
2340
|
+
paid: "paid";
|
|
2341
|
+
canceled: "canceled";
|
|
2342
|
+
refunded: "refunded";
|
|
2343
|
+
failed: "failed";
|
|
2344
|
+
}>>;
|
|
2345
|
+
type: z.ZodEnum<{
|
|
2346
|
+
delivery: "delivery";
|
|
2347
|
+
take_away: "take_away";
|
|
2348
|
+
kitchen: "kitchen";
|
|
2349
|
+
}>;
|
|
2350
|
+
source: z.ZodEnum<{
|
|
2351
|
+
application: "application";
|
|
2352
|
+
ecommerce: "ecommerce";
|
|
2353
|
+
partner: "partner";
|
|
2354
|
+
}>;
|
|
2355
|
+
partner: z.ZodNullable<z.ZodString>;
|
|
2356
|
+
partnerIdentifier: z.ZodNullable<z.ZodString>;
|
|
2357
|
+
sequenceId: z.ZodNullable<z.ZodString>;
|
|
2358
|
+
displayId: z.ZodNullable<z.ZodString>;
|
|
2359
|
+
customerInfo: z.ZodObject<{
|
|
2360
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2361
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2362
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
2363
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
2364
|
+
contactNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2365
|
+
contactAccessCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2366
|
+
}, z.core.$strict>;
|
|
2367
|
+
billingInfo: z.ZodNullable<z.ZodObject<{
|
|
2368
|
+
businessName: z.ZodString;
|
|
2369
|
+
vat: z.ZodString;
|
|
2370
|
+
taxCode: z.ZodString;
|
|
2371
|
+
billingAddress: z.ZodObject<{
|
|
2372
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2373
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2374
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2375
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2376
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2377
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2378
|
+
}, z.core.$strip>;
|
|
2379
|
+
billingData: z.ZodObject<{
|
|
2380
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2381
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
2382
|
+
}, z.core.$strip>;
|
|
2383
|
+
}, z.core.$strip>>;
|
|
2384
|
+
address: z.ZodNullable<z.ZodObject<{
|
|
2385
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2386
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2387
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2388
|
+
line1: z.ZodString;
|
|
2389
|
+
city: z.ZodString;
|
|
2390
|
+
postalCode: z.ZodString;
|
|
2391
|
+
}, z.core.$strip>>;
|
|
2392
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
2393
|
+
latitude: z.ZodNumber;
|
|
2394
|
+
longitude: z.ZodNumber;
|
|
2395
|
+
}, z.core.$strip>>;
|
|
2396
|
+
status: z.ZodEnum<{
|
|
2397
|
+
pending: "pending";
|
|
2398
|
+
confirmed: "confirmed";
|
|
2399
|
+
rejected: "rejected";
|
|
2400
|
+
}>;
|
|
2401
|
+
preparationStatus: z.ZodEnum<{
|
|
2402
|
+
to_prepare: "to_prepare";
|
|
2403
|
+
in_preparation: "in_preparation";
|
|
2404
|
+
done: "done";
|
|
2405
|
+
}>;
|
|
2406
|
+
preparationTime: z.ZodNullable<z.ZodString>;
|
|
2407
|
+
preparationStartedAt: z.ZodNullable<z.ZodString>;
|
|
2408
|
+
preparationEndedAt: z.ZodNullable<z.ZodString>;
|
|
2409
|
+
requestedDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
2410
|
+
finalDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
2411
|
+
deliveryStartedAt: z.ZodNullable<z.ZodString>;
|
|
2412
|
+
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
2413
|
+
requestedCollectionTime: z.ZodNullable<z.ZodString>;
|
|
2414
|
+
finalCollectionTime: z.ZodNullable<z.ZodString>;
|
|
2415
|
+
collectedAt: z.ZodNullable<z.ZodString>;
|
|
2416
|
+
totalCountableItems: z.ZodCoercedNumber<unknown>;
|
|
2417
|
+
amount: z.ZodString;
|
|
2418
|
+
netAmount: z.ZodString;
|
|
2419
|
+
taxAmount: z.ZodString;
|
|
2420
|
+
discount: z.ZodString;
|
|
2421
|
+
feeAmount: z.ZodString;
|
|
2422
|
+
feeNetAmount: z.ZodString;
|
|
2423
|
+
feeTaxAmount: z.ZodString;
|
|
2424
|
+
totalAmount: z.ZodString;
|
|
2425
|
+
totalNetAmount: z.ZodString;
|
|
2426
|
+
totalTaxAmount: z.ZodString;
|
|
2427
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
2428
|
+
deliveryNotes: z.ZodNullable<z.ZodString>;
|
|
2429
|
+
kitchenNotes: z.ZodNullable<z.ZodString>;
|
|
2430
|
+
maximumAcceptanceDate: z.ZodNullable<z.ZodString>;
|
|
2431
|
+
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
2432
|
+
isRead: z.ZodBoolean;
|
|
2433
|
+
firstReadAt: z.ZodNullable<z.ZodString>;
|
|
2434
|
+
createdAt: z.ZodString;
|
|
2435
|
+
updatedAt: z.ZodString;
|
|
2436
|
+
}, z.core.$strip>>;
|
|
2437
|
+
createdAt: z.ZodString;
|
|
2438
|
+
updatedAt: z.ZodString;
|
|
2439
|
+
}, z.core.$strip>;
|
|
2440
|
+
readonly paginationDefaultEnabled = true;
|
|
2308
2441
|
constructor(options?: {
|
|
2309
2442
|
query?: BundlesQueryParams;
|
|
2310
2443
|
});
|
|
2311
2444
|
getPath(): string;
|
|
2312
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<Bundle>;
|
|
2313
2445
|
}
|
|
2314
2446
|
|
|
2315
2447
|
declare const getBundlesFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
@@ -2537,9 +2669,9 @@ declare const getBundlesFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
|
2537
2669
|
}, z.core.$strip>;
|
|
2538
2670
|
type GetBundlesFromPointOfSaleResponse = z.infer<typeof getBundlesFromPointOfSaleResponseSchema>;
|
|
2539
2671
|
declare class GetBundlesFromPointOfSale extends AbstractApiRequest<typeof getBundlesFromPointOfSaleInputSchema, typeof getBundlesFromPointOfSaleResponseSchema, GetBundlesFromPointOfSaleQueryParams> {
|
|
2540
|
-
readonly method
|
|
2541
|
-
readonly contentType
|
|
2542
|
-
readonly accept
|
|
2672
|
+
readonly method: "GET";
|
|
2673
|
+
readonly contentType: "application/json";
|
|
2674
|
+
readonly accept: "application/json";
|
|
2543
2675
|
readonly inputSchema: z.ZodUndefined;
|
|
2544
2676
|
readonly outputSchema: z.ZodObject<{
|
|
2545
2677
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -2762,12 +2894,145 @@ declare class GetBundlesFromPointOfSale extends AbstractApiRequest<typeof getBun
|
|
|
2762
2894
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2763
2895
|
}, z.core.$strip>;
|
|
2764
2896
|
readonly headersSchema: undefined;
|
|
2897
|
+
readonly listItemSchema: z.ZodObject<{
|
|
2898
|
+
id: z.ZodString;
|
|
2899
|
+
status: z.ZodEnum<{
|
|
2900
|
+
pending: "pending";
|
|
2901
|
+
busy: "busy";
|
|
2902
|
+
broken: "broken";
|
|
2903
|
+
released: "released";
|
|
2904
|
+
}>;
|
|
2905
|
+
type: z.ZodEnum<{
|
|
2906
|
+
REGULAR: "REGULAR";
|
|
2907
|
+
FORCED: "FORCED";
|
|
2908
|
+
}>;
|
|
2909
|
+
brokenReason: z.ZodNullable<z.ZodEnum<{
|
|
2910
|
+
delivery_removed: "delivery_removed";
|
|
2911
|
+
}>>;
|
|
2912
|
+
deliverable: z.ZodBoolean;
|
|
2913
|
+
ready: z.ZodBoolean;
|
|
2914
|
+
preparationTime: z.ZodNullable<z.ZodString>;
|
|
2915
|
+
startTime: z.ZodNullable<z.ZodString>;
|
|
2916
|
+
endTime: z.ZodNullable<z.ZodString>;
|
|
2917
|
+
totalCountableItems: z.ZodCoercedNumber<unknown>;
|
|
2918
|
+
orders: z.ZodArray<z.ZodObject<{
|
|
2919
|
+
id: z.ZodString;
|
|
2920
|
+
payment: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payments/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payments/:id"> | null, unknown>>;
|
|
2921
|
+
paymentMethod: z.ZodNullable<z.ZodEnum<{
|
|
2922
|
+
stripe: "stripe";
|
|
2923
|
+
bank_transfer: "bank_transfer";
|
|
2924
|
+
cash: "cash";
|
|
2925
|
+
credit_card: "credit_card";
|
|
2926
|
+
}>>;
|
|
2927
|
+
paymentStatus: z.ZodNullable<z.ZodEnum<{
|
|
2928
|
+
pending: "pending";
|
|
2929
|
+
pending_verification: "pending_verification";
|
|
2930
|
+
paid: "paid";
|
|
2931
|
+
canceled: "canceled";
|
|
2932
|
+
refunded: "refunded";
|
|
2933
|
+
failed: "failed";
|
|
2934
|
+
}>>;
|
|
2935
|
+
type: z.ZodEnum<{
|
|
2936
|
+
delivery: "delivery";
|
|
2937
|
+
take_away: "take_away";
|
|
2938
|
+
kitchen: "kitchen";
|
|
2939
|
+
}>;
|
|
2940
|
+
source: z.ZodEnum<{
|
|
2941
|
+
application: "application";
|
|
2942
|
+
ecommerce: "ecommerce";
|
|
2943
|
+
partner: "partner";
|
|
2944
|
+
}>;
|
|
2945
|
+
partner: z.ZodNullable<z.ZodString>;
|
|
2946
|
+
partnerIdentifier: z.ZodNullable<z.ZodString>;
|
|
2947
|
+
sequenceId: z.ZodNullable<z.ZodString>;
|
|
2948
|
+
displayId: z.ZodNullable<z.ZodString>;
|
|
2949
|
+
customerInfo: z.ZodObject<{
|
|
2950
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2951
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2952
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
2953
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
2954
|
+
contactNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2955
|
+
contactAccessCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2956
|
+
}, z.core.$strict>;
|
|
2957
|
+
billingInfo: z.ZodNullable<z.ZodObject<{
|
|
2958
|
+
businessName: z.ZodString;
|
|
2959
|
+
vat: z.ZodString;
|
|
2960
|
+
taxCode: z.ZodString;
|
|
2961
|
+
billingAddress: z.ZodObject<{
|
|
2962
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2963
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2964
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2965
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2966
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2967
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2968
|
+
}, z.core.$strip>;
|
|
2969
|
+
billingData: z.ZodObject<{
|
|
2970
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2971
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
2972
|
+
}, z.core.$strip>;
|
|
2973
|
+
}, z.core.$strip>>;
|
|
2974
|
+
address: z.ZodNullable<z.ZodObject<{
|
|
2975
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2976
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2977
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2978
|
+
line1: z.ZodString;
|
|
2979
|
+
city: z.ZodString;
|
|
2980
|
+
postalCode: z.ZodString;
|
|
2981
|
+
}, z.core.$strip>>;
|
|
2982
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
2983
|
+
latitude: z.ZodNumber;
|
|
2984
|
+
longitude: z.ZodNumber;
|
|
2985
|
+
}, z.core.$strip>>;
|
|
2986
|
+
status: z.ZodEnum<{
|
|
2987
|
+
pending: "pending";
|
|
2988
|
+
confirmed: "confirmed";
|
|
2989
|
+
rejected: "rejected";
|
|
2990
|
+
}>;
|
|
2991
|
+
preparationStatus: z.ZodEnum<{
|
|
2992
|
+
to_prepare: "to_prepare";
|
|
2993
|
+
in_preparation: "in_preparation";
|
|
2994
|
+
done: "done";
|
|
2995
|
+
}>;
|
|
2996
|
+
preparationTime: z.ZodNullable<z.ZodString>;
|
|
2997
|
+
preparationStartedAt: z.ZodNullable<z.ZodString>;
|
|
2998
|
+
preparationEndedAt: z.ZodNullable<z.ZodString>;
|
|
2999
|
+
requestedDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
3000
|
+
finalDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
3001
|
+
deliveryStartedAt: z.ZodNullable<z.ZodString>;
|
|
3002
|
+
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
3003
|
+
requestedCollectionTime: z.ZodNullable<z.ZodString>;
|
|
3004
|
+
finalCollectionTime: z.ZodNullable<z.ZodString>;
|
|
3005
|
+
collectedAt: z.ZodNullable<z.ZodString>;
|
|
3006
|
+
totalCountableItems: z.ZodCoercedNumber<unknown>;
|
|
3007
|
+
amount: z.ZodString;
|
|
3008
|
+
netAmount: z.ZodString;
|
|
3009
|
+
taxAmount: z.ZodString;
|
|
3010
|
+
discount: z.ZodString;
|
|
3011
|
+
feeAmount: z.ZodString;
|
|
3012
|
+
feeNetAmount: z.ZodString;
|
|
3013
|
+
feeTaxAmount: z.ZodString;
|
|
3014
|
+
totalAmount: z.ZodString;
|
|
3015
|
+
totalNetAmount: z.ZodString;
|
|
3016
|
+
totalTaxAmount: z.ZodString;
|
|
3017
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
3018
|
+
deliveryNotes: z.ZodNullable<z.ZodString>;
|
|
3019
|
+
kitchenNotes: z.ZodNullable<z.ZodString>;
|
|
3020
|
+
maximumAcceptanceDate: z.ZodNullable<z.ZodString>;
|
|
3021
|
+
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
3022
|
+
isRead: z.ZodBoolean;
|
|
3023
|
+
firstReadAt: z.ZodNullable<z.ZodString>;
|
|
3024
|
+
createdAt: z.ZodString;
|
|
3025
|
+
updatedAt: z.ZodString;
|
|
3026
|
+
}, z.core.$strip>>;
|
|
3027
|
+
createdAt: z.ZodString;
|
|
3028
|
+
updatedAt: z.ZodString;
|
|
3029
|
+
}, z.core.$strip>;
|
|
3030
|
+
readonly paginationDefaultEnabled = true;
|
|
2765
3031
|
private readonly pointOfSaleId;
|
|
2766
3032
|
constructor(pointOfSaleId: string, options?: {
|
|
2767
3033
|
query?: BundlesQueryParams;
|
|
2768
3034
|
});
|
|
2769
3035
|
getPath(): string;
|
|
2770
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<Bundle>;
|
|
2771
3036
|
}
|
|
2772
3037
|
|
|
2773
3038
|
declare const updateBundleInputSchema: z.ZodObject<{
|
|
@@ -3177,10 +3442,10 @@ declare const getOrderMenuItemModifiersResponseSchema: z.ZodObject<{
|
|
|
3177
3442
|
}, z.core.$strip>;
|
|
3178
3443
|
}, z.core.$strip>;
|
|
3179
3444
|
type GetOrderMenuItemModifiersResponse = z.infer<typeof getOrderMenuItemModifiersResponseSchema>;
|
|
3180
|
-
declare class
|
|
3181
|
-
readonly method
|
|
3182
|
-
readonly contentType
|
|
3183
|
-
readonly accept
|
|
3445
|
+
declare class GetOrderMenuItemModifiers extends AbstractApiRequest<typeof getOrderMenuItemModifiersInputSchema, typeof getOrderMenuItemModifiersResponseSchema, GetOrderMenuItemModifiersQueryParams> {
|
|
3446
|
+
readonly method: "GET";
|
|
3447
|
+
readonly contentType: "application/json";
|
|
3448
|
+
readonly accept: "application/json";
|
|
3184
3449
|
readonly inputSchema: z.ZodUndefined;
|
|
3185
3450
|
readonly outputSchema: z.ZodObject<{
|
|
3186
3451
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -3244,11 +3509,28 @@ declare class GetOrderMenuItemModifierMenuItemModifiers extends AbstractApiReque
|
|
|
3244
3509
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
3245
3510
|
}, z.core.$strip>;
|
|
3246
3511
|
readonly headersSchema: undefined;
|
|
3512
|
+
readonly listItemSchema: z.ZodObject<{
|
|
3513
|
+
id: z.ZodString;
|
|
3514
|
+
name: z.ZodArray<z.ZodObject<{
|
|
3515
|
+
locale: z.ZodString;
|
|
3516
|
+
text: z.ZodString;
|
|
3517
|
+
}, z.core.$strip>>;
|
|
3518
|
+
description: z.ZodArray<z.ZodObject<{
|
|
3519
|
+
locale: z.ZodString;
|
|
3520
|
+
text: z.ZodString;
|
|
3521
|
+
}, z.core.$strip>>;
|
|
3522
|
+
amount: z.ZodString;
|
|
3523
|
+
netAmount: z.ZodString;
|
|
3524
|
+
taxAmount: z.ZodString;
|
|
3525
|
+
createdAt: z.ZodString;
|
|
3526
|
+
updatedAt: z.ZodString;
|
|
3527
|
+
items: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/:id">, unknown>>>;
|
|
3528
|
+
}, z.core.$strip>;
|
|
3529
|
+
readonly paginationDefaultEnabled = true;
|
|
3247
3530
|
constructor(options?: {
|
|
3248
3531
|
query?: OrderMenuItemModifiersQueryParams;
|
|
3249
3532
|
});
|
|
3250
3533
|
getPath(): string;
|
|
3251
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<OrderMenuItemModifier>;
|
|
3252
3534
|
}
|
|
3253
3535
|
|
|
3254
3536
|
declare const getOrderMenuItemDetailsInputSchema: z.ZodUndefined;
|
|
@@ -3508,10 +3790,10 @@ declare const getOrderMenuItemsResponseSchema: z.ZodObject<{
|
|
|
3508
3790
|
}, z.core.$strip>;
|
|
3509
3791
|
}, z.core.$strip>;
|
|
3510
3792
|
type GetOrderMenuItemsResponse = z.infer<typeof getOrderMenuItemsResponseSchema>;
|
|
3511
|
-
declare class
|
|
3512
|
-
readonly method
|
|
3513
|
-
readonly contentType
|
|
3514
|
-
readonly accept
|
|
3793
|
+
declare class GetOrderMenuItems extends AbstractApiRequest<typeof getOrderMenuItemsInputSchema, typeof getOrderMenuItemsResponseSchema, GetOrderMenuItemsQueryParams> {
|
|
3794
|
+
readonly method: "GET";
|
|
3795
|
+
readonly contentType: "application/json";
|
|
3796
|
+
readonly accept: "application/json";
|
|
3515
3797
|
readonly inputSchema: z.ZodUndefined;
|
|
3516
3798
|
readonly outputSchema: z.ZodObject<{
|
|
3517
3799
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -3645,12 +3927,59 @@ declare class GetOrderMenuItemMenuItems extends AbstractApiRequest<typeof getOrd
|
|
|
3645
3927
|
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
3646
3928
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
3647
3929
|
}, z.core.$strip>;
|
|
3648
|
-
readonly headersSchema: undefined;
|
|
3930
|
+
readonly headersSchema: undefined;
|
|
3931
|
+
readonly listItemSchema: z.ZodObject<{
|
|
3932
|
+
id: z.ZodString;
|
|
3933
|
+
type: z.ZodEnum<{
|
|
3934
|
+
ITEM: "ITEM";
|
|
3935
|
+
CHOICE: "CHOICE";
|
|
3936
|
+
BUNDLE: "BUNDLE";
|
|
3937
|
+
}>;
|
|
3938
|
+
action: z.ZodEnum<{
|
|
3939
|
+
add: "add";
|
|
3940
|
+
remove: "remove";
|
|
3941
|
+
}>;
|
|
3942
|
+
name: z.ZodArray<z.ZodObject<{
|
|
3943
|
+
locale: z.ZodString;
|
|
3944
|
+
text: z.ZodString;
|
|
3945
|
+
}, z.core.$strip>>;
|
|
3946
|
+
description: z.ZodArray<z.ZodObject<{
|
|
3947
|
+
locale: z.ZodString;
|
|
3948
|
+
text: z.ZodString;
|
|
3949
|
+
}, z.core.$strip>>;
|
|
3950
|
+
variantName: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
3951
|
+
locale: z.ZodString;
|
|
3952
|
+
text: z.ZodString;
|
|
3953
|
+
}, z.core.$strip>>>;
|
|
3954
|
+
countable: z.ZodBoolean;
|
|
3955
|
+
quantity: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
3956
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
3957
|
+
unitPrice: z.ZodString;
|
|
3958
|
+
unitNetPrice: z.ZodString;
|
|
3959
|
+
unitTaxAmount: z.ZodString;
|
|
3960
|
+
unitTaxRate: z.ZodCoercedNumber<unknown>;
|
|
3961
|
+
unitDiscount: z.ZodString;
|
|
3962
|
+
finalUnitPrice: z.ZodString;
|
|
3963
|
+
finalUnitNetPrice: z.ZodString;
|
|
3964
|
+
finalUnitTaxAmount: z.ZodString;
|
|
3965
|
+
amount: z.ZodString;
|
|
3966
|
+
netAmount: z.ZodString;
|
|
3967
|
+
taxAmount: z.ZodString;
|
|
3968
|
+
discount: z.ZodString;
|
|
3969
|
+
totalAmount: z.ZodString;
|
|
3970
|
+
totalNetAmount: z.ZodString;
|
|
3971
|
+
totalTaxAmount: z.ZodString;
|
|
3972
|
+
createdAt: z.ZodString;
|
|
3973
|
+
updatedAt: z.ZodString;
|
|
3974
|
+
removals: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/:id">, unknown>>>;
|
|
3975
|
+
modifiers: z.ZodArray<z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/modifiers/:id">, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/orders/menu_items/modifiers/:id">, unknown>>>;
|
|
3976
|
+
mainLevel: z.ZodBoolean;
|
|
3977
|
+
}, z.core.$strip>;
|
|
3978
|
+
readonly paginationDefaultEnabled = true;
|
|
3649
3979
|
constructor(options?: {
|
|
3650
3980
|
query?: OrderMenuItemsQueryParams;
|
|
3651
3981
|
});
|
|
3652
3982
|
getPath(): string;
|
|
3653
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<OrderMenuItem>;
|
|
3654
3983
|
}
|
|
3655
3984
|
|
|
3656
3985
|
declare const advanceOrderPreparationStatusInputSchema: z.ZodUndefined;
|
|
@@ -5857,9 +6186,9 @@ declare const getOrdersResponseSchema: z.ZodObject<{
|
|
|
5857
6186
|
}, z.core.$strip>;
|
|
5858
6187
|
type GetOrdersResponse = z.infer<typeof getOrdersResponseSchema>;
|
|
5859
6188
|
declare class GetOrders extends AbstractApiRequest<typeof getOrdersInputSchema, typeof getOrdersResponseSchema, GetOrdersQueryParams> {
|
|
5860
|
-
readonly method
|
|
5861
|
-
readonly contentType
|
|
5862
|
-
readonly accept
|
|
6189
|
+
readonly method: "GET";
|
|
6190
|
+
readonly contentType: "application/json";
|
|
6191
|
+
readonly accept: "application/json";
|
|
5863
6192
|
readonly inputSchema: z.ZodUndefined;
|
|
5864
6193
|
readonly outputSchema: z.ZodObject<{
|
|
5865
6194
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -6193,11 +6522,120 @@ declare class GetOrders extends AbstractApiRequest<typeof getOrdersInputSchema,
|
|
|
6193
6522
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
6194
6523
|
}, z.core.$strip>;
|
|
6195
6524
|
readonly headersSchema: undefined;
|
|
6525
|
+
readonly listItemSchema: z.ZodObject<{
|
|
6526
|
+
id: z.ZodString;
|
|
6527
|
+
payment: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payments/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payments/:id"> | null, unknown>>;
|
|
6528
|
+
paymentMethod: z.ZodNullable<z.ZodEnum<{
|
|
6529
|
+
stripe: "stripe";
|
|
6530
|
+
bank_transfer: "bank_transfer";
|
|
6531
|
+
cash: "cash";
|
|
6532
|
+
credit_card: "credit_card";
|
|
6533
|
+
}>>;
|
|
6534
|
+
paymentStatus: z.ZodNullable<z.ZodEnum<{
|
|
6535
|
+
pending: "pending";
|
|
6536
|
+
pending_verification: "pending_verification";
|
|
6537
|
+
paid: "paid";
|
|
6538
|
+
canceled: "canceled";
|
|
6539
|
+
refunded: "refunded";
|
|
6540
|
+
failed: "failed";
|
|
6541
|
+
}>>;
|
|
6542
|
+
type: z.ZodEnum<{
|
|
6543
|
+
delivery: "delivery";
|
|
6544
|
+
take_away: "take_away";
|
|
6545
|
+
kitchen: "kitchen";
|
|
6546
|
+
}>;
|
|
6547
|
+
source: z.ZodEnum<{
|
|
6548
|
+
application: "application";
|
|
6549
|
+
ecommerce: "ecommerce";
|
|
6550
|
+
partner: "partner";
|
|
6551
|
+
}>;
|
|
6552
|
+
partner: z.ZodNullable<z.ZodString>;
|
|
6553
|
+
partnerIdentifier: z.ZodNullable<z.ZodString>;
|
|
6554
|
+
sequenceId: z.ZodNullable<z.ZodString>;
|
|
6555
|
+
displayId: z.ZodNullable<z.ZodString>;
|
|
6556
|
+
customerInfo: z.ZodObject<{
|
|
6557
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6558
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6559
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
6560
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
6561
|
+
contactNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6562
|
+
contactAccessCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6563
|
+
}, z.core.$strict>;
|
|
6564
|
+
billingInfo: z.ZodNullable<z.ZodObject<{
|
|
6565
|
+
businessName: z.ZodString;
|
|
6566
|
+
vat: z.ZodString;
|
|
6567
|
+
taxCode: z.ZodString;
|
|
6568
|
+
billingAddress: z.ZodObject<{
|
|
6569
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6570
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6571
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6572
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6573
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6574
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6575
|
+
}, z.core.$strip>;
|
|
6576
|
+
billingData: z.ZodObject<{
|
|
6577
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6578
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
6579
|
+
}, z.core.$strip>;
|
|
6580
|
+
}, z.core.$strip>>;
|
|
6581
|
+
address: z.ZodNullable<z.ZodObject<{
|
|
6582
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6583
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6584
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6585
|
+
line1: z.ZodString;
|
|
6586
|
+
city: z.ZodString;
|
|
6587
|
+
postalCode: z.ZodString;
|
|
6588
|
+
}, z.core.$strip>>;
|
|
6589
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
6590
|
+
latitude: z.ZodNumber;
|
|
6591
|
+
longitude: z.ZodNumber;
|
|
6592
|
+
}, z.core.$strip>>;
|
|
6593
|
+
status: z.ZodEnum<{
|
|
6594
|
+
pending: "pending";
|
|
6595
|
+
confirmed: "confirmed";
|
|
6596
|
+
rejected: "rejected";
|
|
6597
|
+
}>;
|
|
6598
|
+
preparationStatus: z.ZodEnum<{
|
|
6599
|
+
to_prepare: "to_prepare";
|
|
6600
|
+
in_preparation: "in_preparation";
|
|
6601
|
+
done: "done";
|
|
6602
|
+
}>;
|
|
6603
|
+
preparationTime: z.ZodNullable<z.ZodString>;
|
|
6604
|
+
preparationStartedAt: z.ZodNullable<z.ZodString>;
|
|
6605
|
+
preparationEndedAt: z.ZodNullable<z.ZodString>;
|
|
6606
|
+
requestedDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
6607
|
+
finalDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
6608
|
+
deliveryStartedAt: z.ZodNullable<z.ZodString>;
|
|
6609
|
+
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
6610
|
+
requestedCollectionTime: z.ZodNullable<z.ZodString>;
|
|
6611
|
+
finalCollectionTime: z.ZodNullable<z.ZodString>;
|
|
6612
|
+
collectedAt: z.ZodNullable<z.ZodString>;
|
|
6613
|
+
totalCountableItems: z.ZodCoercedNumber<unknown>;
|
|
6614
|
+
amount: z.ZodString;
|
|
6615
|
+
netAmount: z.ZodString;
|
|
6616
|
+
taxAmount: z.ZodString;
|
|
6617
|
+
discount: z.ZodString;
|
|
6618
|
+
feeAmount: z.ZodString;
|
|
6619
|
+
feeNetAmount: z.ZodString;
|
|
6620
|
+
feeTaxAmount: z.ZodString;
|
|
6621
|
+
totalAmount: z.ZodString;
|
|
6622
|
+
totalNetAmount: z.ZodString;
|
|
6623
|
+
totalTaxAmount: z.ZodString;
|
|
6624
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
6625
|
+
deliveryNotes: z.ZodNullable<z.ZodString>;
|
|
6626
|
+
kitchenNotes: z.ZodNullable<z.ZodString>;
|
|
6627
|
+
maximumAcceptanceDate: z.ZodNullable<z.ZodString>;
|
|
6628
|
+
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
6629
|
+
isRead: z.ZodBoolean;
|
|
6630
|
+
firstReadAt: z.ZodNullable<z.ZodString>;
|
|
6631
|
+
createdAt: z.ZodString;
|
|
6632
|
+
updatedAt: z.ZodString;
|
|
6633
|
+
}, z.core.$strip>;
|
|
6634
|
+
readonly paginationDefaultEnabled = true;
|
|
6196
6635
|
constructor(options?: {
|
|
6197
6636
|
query?: OrdersQueryParams;
|
|
6198
6637
|
});
|
|
6199
6638
|
getPath(): string;
|
|
6200
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<Order>;
|
|
6201
6639
|
}
|
|
6202
6640
|
|
|
6203
6641
|
declare const getPointOfSaleOrdersQuerySchema: z.ZodObject<{
|
|
@@ -6536,9 +6974,9 @@ declare const getPointOfSaleOrdersResponseSchema: z.ZodObject<{
|
|
|
6536
6974
|
}, z.core.$strip>;
|
|
6537
6975
|
type GetPointOfSaleOrdersResponse = z.infer<typeof getPointOfSaleOrdersResponseSchema>;
|
|
6538
6976
|
declare class GetPointOfSaleOrders extends AbstractApiRequest<typeof getPointOfSaleOrdersInputSchema, typeof getPointOfSaleOrdersResponseSchema, GetPointOfSaleOrdersQueryParams> {
|
|
6539
|
-
readonly method
|
|
6540
|
-
readonly contentType
|
|
6541
|
-
readonly accept
|
|
6977
|
+
readonly method: "GET";
|
|
6978
|
+
readonly contentType: "application/json";
|
|
6979
|
+
readonly accept: "application/json";
|
|
6542
6980
|
readonly inputSchema: z.ZodUndefined;
|
|
6543
6981
|
readonly outputSchema: z.ZodObject<{
|
|
6544
6982
|
data: z.ZodArray<z.ZodObject<{
|
|
@@ -6872,12 +7310,121 @@ declare class GetPointOfSaleOrders extends AbstractApiRequest<typeof getPointOfS
|
|
|
6872
7310
|
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
6873
7311
|
}, z.core.$strip>;
|
|
6874
7312
|
readonly headersSchema: undefined;
|
|
7313
|
+
readonly listItemSchema: z.ZodObject<{
|
|
7314
|
+
id: z.ZodString;
|
|
7315
|
+
payment: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/payments/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/payments/:id"> | null, unknown>>;
|
|
7316
|
+
paymentMethod: z.ZodNullable<z.ZodEnum<{
|
|
7317
|
+
stripe: "stripe";
|
|
7318
|
+
bank_transfer: "bank_transfer";
|
|
7319
|
+
cash: "cash";
|
|
7320
|
+
credit_card: "credit_card";
|
|
7321
|
+
}>>;
|
|
7322
|
+
paymentStatus: z.ZodNullable<z.ZodEnum<{
|
|
7323
|
+
pending: "pending";
|
|
7324
|
+
pending_verification: "pending_verification";
|
|
7325
|
+
paid: "paid";
|
|
7326
|
+
canceled: "canceled";
|
|
7327
|
+
refunded: "refunded";
|
|
7328
|
+
failed: "failed";
|
|
7329
|
+
}>>;
|
|
7330
|
+
type: z.ZodEnum<{
|
|
7331
|
+
delivery: "delivery";
|
|
7332
|
+
take_away: "take_away";
|
|
7333
|
+
kitchen: "kitchen";
|
|
7334
|
+
}>;
|
|
7335
|
+
source: z.ZodEnum<{
|
|
7336
|
+
application: "application";
|
|
7337
|
+
ecommerce: "ecommerce";
|
|
7338
|
+
partner: "partner";
|
|
7339
|
+
}>;
|
|
7340
|
+
partner: z.ZodNullable<z.ZodString>;
|
|
7341
|
+
partnerIdentifier: z.ZodNullable<z.ZodString>;
|
|
7342
|
+
sequenceId: z.ZodNullable<z.ZodString>;
|
|
7343
|
+
displayId: z.ZodNullable<z.ZodString>;
|
|
7344
|
+
customerInfo: z.ZodObject<{
|
|
7345
|
+
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7346
|
+
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7347
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
7348
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
7349
|
+
contactNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7350
|
+
contactAccessCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7351
|
+
}, z.core.$strict>;
|
|
7352
|
+
billingInfo: z.ZodNullable<z.ZodObject<{
|
|
7353
|
+
businessName: z.ZodString;
|
|
7354
|
+
vat: z.ZodString;
|
|
7355
|
+
taxCode: z.ZodString;
|
|
7356
|
+
billingAddress: z.ZodObject<{
|
|
7357
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7358
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7359
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7360
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7361
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7362
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7363
|
+
}, z.core.$strip>;
|
|
7364
|
+
billingData: z.ZodObject<{
|
|
7365
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7366
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
7367
|
+
}, z.core.$strip>;
|
|
7368
|
+
}, z.core.$strip>>;
|
|
7369
|
+
address: z.ZodNullable<z.ZodObject<{
|
|
7370
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7371
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7372
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7373
|
+
line1: z.ZodString;
|
|
7374
|
+
city: z.ZodString;
|
|
7375
|
+
postalCode: z.ZodString;
|
|
7376
|
+
}, z.core.$strip>>;
|
|
7377
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
7378
|
+
latitude: z.ZodNumber;
|
|
7379
|
+
longitude: z.ZodNumber;
|
|
7380
|
+
}, z.core.$strip>>;
|
|
7381
|
+
status: z.ZodEnum<{
|
|
7382
|
+
pending: "pending";
|
|
7383
|
+
confirmed: "confirmed";
|
|
7384
|
+
rejected: "rejected";
|
|
7385
|
+
}>;
|
|
7386
|
+
preparationStatus: z.ZodEnum<{
|
|
7387
|
+
to_prepare: "to_prepare";
|
|
7388
|
+
in_preparation: "in_preparation";
|
|
7389
|
+
done: "done";
|
|
7390
|
+
}>;
|
|
7391
|
+
preparationTime: z.ZodNullable<z.ZodString>;
|
|
7392
|
+
preparationStartedAt: z.ZodNullable<z.ZodString>;
|
|
7393
|
+
preparationEndedAt: z.ZodNullable<z.ZodString>;
|
|
7394
|
+
requestedDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
7395
|
+
finalDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
7396
|
+
deliveryStartedAt: z.ZodNullable<z.ZodString>;
|
|
7397
|
+
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
7398
|
+
requestedCollectionTime: z.ZodNullable<z.ZodString>;
|
|
7399
|
+
finalCollectionTime: z.ZodNullable<z.ZodString>;
|
|
7400
|
+
collectedAt: z.ZodNullable<z.ZodString>;
|
|
7401
|
+
totalCountableItems: z.ZodCoercedNumber<unknown>;
|
|
7402
|
+
amount: z.ZodString;
|
|
7403
|
+
netAmount: z.ZodString;
|
|
7404
|
+
taxAmount: z.ZodString;
|
|
7405
|
+
discount: z.ZodString;
|
|
7406
|
+
feeAmount: z.ZodString;
|
|
7407
|
+
feeNetAmount: z.ZodString;
|
|
7408
|
+
feeTaxAmount: z.ZodString;
|
|
7409
|
+
totalAmount: z.ZodString;
|
|
7410
|
+
totalNetAmount: z.ZodString;
|
|
7411
|
+
totalTaxAmount: z.ZodString;
|
|
7412
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
7413
|
+
deliveryNotes: z.ZodNullable<z.ZodString>;
|
|
7414
|
+
kitchenNotes: z.ZodNullable<z.ZodString>;
|
|
7415
|
+
maximumAcceptanceDate: z.ZodNullable<z.ZodString>;
|
|
7416
|
+
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
7417
|
+
isRead: z.ZodBoolean;
|
|
7418
|
+
firstReadAt: z.ZodNullable<z.ZodString>;
|
|
7419
|
+
createdAt: z.ZodString;
|
|
7420
|
+
updatedAt: z.ZodString;
|
|
7421
|
+
}, z.core.$strip>;
|
|
7422
|
+
readonly paginationDefaultEnabled = true;
|
|
6875
7423
|
private readonly pointOfSaleId;
|
|
6876
7424
|
constructor(pointOfSaleId: string, options?: {
|
|
6877
7425
|
query?: OrdersQueryParams;
|
|
6878
7426
|
});
|
|
6879
7427
|
getPath(): string;
|
|
6880
|
-
parseResponse(data: unknown, rawResponse: Response): Paginated<Order>;
|
|
6881
7428
|
}
|
|
6882
7429
|
|
|
6883
7430
|
declare const markOrderAsCollectedInputSchema: z.ZodUndefined;
|
|
@@ -8686,4 +9233,4 @@ type BundleIri = z.infer<typeof bundleIriSchema>;
|
|
|
8686
9233
|
declare const bundleNullableIriSchema: z.ZodType<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id"> | null, unknown, z.core.$ZodTypeInternals<_deliverart_sdk_js_global_types.IriObject<"/bundles/:id"> | null, unknown>>;
|
|
8687
9234
|
type BundleNullableIri = z.infer<typeof bundleNullableIriSchema>;
|
|
8688
9235
|
|
|
8689
|
-
export { AdvanceOrderPreparationStatus, type AdvanceOrderPreparationStatusInput, type AdvanceOrderPreparationStatusResponse, type Bundle, type BundleDetails, type BundleIri, type BundleNullableIri, type BundlesQueryParams, CalculateOrderFees, type CalculateOrderFeesInput, type CalculateOrderFeesResponse, ConfirmOrder, type ConfirmOrderInput, type ConfirmOrderResponse, CreateBundle, type CreateBundleInput, type CreateBundleResponse, CreateOrder, type CreateOrderInput, type CreateOrderResponse, DeleteBundle, DeleteOrder, type FeeSimulation, GetBundleDetails, type GetBundleDetailsInput, type GetBundleDetailsResponse, GetBundles, GetBundlesFromPointOfSale, type GetBundlesFromPointOfSaleInput, type GetBundlesFromPointOfSaleQueryParams, type GetBundlesFromPointOfSaleResponse, type GetBundlesInput, type GetBundlesQueryParams, type GetBundlesResponse, GetOrderDetails, type GetOrderDetailsInput, type GetOrderDetailsResponse, GetOrderMenuItemDetails, type GetOrderMenuItemDetailsInput, type GetOrderMenuItemDetailsResponse,
|
|
9236
|
+
export { AdvanceOrderPreparationStatus, type AdvanceOrderPreparationStatusInput, type AdvanceOrderPreparationStatusResponse, type Bundle, type BundleDetails, type BundleIri, type BundleNullableIri, type BundlesQueryParams, CalculateOrderFees, type CalculateOrderFeesInput, type CalculateOrderFeesResponse, ConfirmOrder, type ConfirmOrderInput, type ConfirmOrderResponse, CreateBundle, type CreateBundleInput, type CreateBundleResponse, CreateOrder, type CreateOrderInput, type CreateOrderResponse, DeleteBundle, DeleteOrder, type FeeSimulation, GetBundleDetails, type GetBundleDetailsInput, type GetBundleDetailsResponse, GetBundles, GetBundlesFromPointOfSale, type GetBundlesFromPointOfSaleInput, type GetBundlesFromPointOfSaleQueryParams, type GetBundlesFromPointOfSaleResponse, type GetBundlesInput, type GetBundlesQueryParams, type GetBundlesResponse, GetOrderDetails, type GetOrderDetailsInput, type GetOrderDetailsResponse, GetOrderMenuItemDetails, type GetOrderMenuItemDetailsInput, type GetOrderMenuItemDetailsResponse, type GetOrderMenuItemModifierDetailsInput, type GetOrderMenuItemModifierDetailsResponse, GetOrderMenuItemModifierModifierDetails, GetOrderMenuItemModifiers, type GetOrderMenuItemModifiersInput, type GetOrderMenuItemModifiersQueryParams, type GetOrderMenuItemModifiersResponse, GetOrderMenuItems, type GetOrderMenuItemsInput, type GetOrderMenuItemsQueryParams, type GetOrderMenuItemsResponse, GetOrders, type GetOrdersInput, type GetOrdersQueryParams, type GetOrdersResponse, GetPointOfSaleOrders, type GetPointOfSaleOrdersInput, type GetPointOfSaleOrdersQueryParams, type GetPointOfSaleOrdersResponse, MarkOrderAsCollected, type MarkOrderAsCollectedInput, type MarkOrderAsCollectedResponse, MarkOrderAsRead, type MarkOrderAsReadInput, type MarkOrderAsReadResponse, type Order, type OrderAddressType, type OrderBillingInfo, type OrderCustomerInfo, type OrderDetails, type OrderFeeDto, type OrderIri, type OrderMenuItem, type OrderMenuItemDetails, type OrderMenuItemIri, type OrderMenuItemModifier, type OrderMenuItemModifierDetails, type OrderMenuItemModifierIri, type OrderMenuItemModifierNullableIri, type OrderMenuItemModifiersQueryParams, type OrderMenuItemNullableIri, type OrderMenuItemsQueryParams, type OrderNullableIri, type OrdersQueryParams, PayOrder, type PayOrderInput, type PayOrderResponse, RejectOrder, type RejectOrderInput, type RejectOrderResponse, UpdateBundle, type UpdateBundleInput, type UpdateBundleResponse, UpdateOrder, type UpdateOrderInput, type UpdateOrderResponse, type WritableOrderMenuItem, type WritableOrderMenuItemModifier, advanceOrderPreparationStatusInputSchema, advanceOrderPreparationStatusResponseSchema, bundleDetailsSchema, bundleIriSchema, bundleNullableIriSchema, bundleSchema, bundlesQuerySchema, calculateOrderFeesInputSchema, calculateOrderFeesResponseSchema, confirmOrderInputSchema, confirmOrderResponseSchema, createBundleInputSchema, createBundleResponseSchema, createOrderInputSchema, createOrderResponseSchema, deleteBundleInputSchema, deleteBundleResponseSchema, deleteOrderInputSchema, deleteOrderResponseSchema, feeSimulationSchema, getBundleDetailsInputSchema, getBundleDetailsResponseSchema, getBundlesFromPointOfSaleInputSchema, getBundlesFromPointOfSaleQuerySchema, getBundlesFromPointOfSaleResponseSchema, getBundlesInputSchema, getBundlesQuerySchema, getBundlesResponseSchema, getOrderDetailsInputSchema, getOrderDetailsResponseSchema, getOrderMenuItemDetailsInputSchema, getOrderMenuItemDetailsResponseSchema, getOrderMenuItemModifierDetailsInputSchema, getOrderMenuItemModifierDetailsResponseSchema, getOrderMenuItemModifiersInputSchema, getOrderMenuItemModifiersQuerySchema, getOrderMenuItemModifiersResponseSchema, getOrderMenuItemsInputSchema, getOrderMenuItemsQuerySchema, getOrderMenuItemsResponseSchema, getOrdersInputSchema, getOrdersQuerySchema, getOrdersResponseSchema, getPointOfSaleOrdersInputSchema, getPointOfSaleOrdersQuerySchema, getPointOfSaleOrdersResponseSchema, localeItemSchema, markOrderAsCollectedInputSchema, markOrderAsCollectedResponseSchema, markOrderAsReadInputSchema, markOrderAsReadResponseSchema, orderAddressSchema, orderBillingInfoSchema, orderCustomerInfoSchema, orderDetailsSchema, orderFeeDtoSchema, orderIriSchema, orderMenuItemDetailsSchema, orderMenuItemIriSchema, orderMenuItemModifierDetailsSchema, orderMenuItemModifierIriSchema, orderMenuItemModifierNullableIriSchema, orderMenuItemModifierSchema, orderMenuItemModifiersQuerySchema, orderMenuItemNullableIriSchema, orderMenuItemSchema, orderMenuItemsQuerySchema, orderNullableIriSchema, orderSchema, ordersQuerySchema, payOrderInputSchema, payOrderResponseSchema, rejectOrderInputSchema, rejectOrderResponseSchema, updateBundleInputSchema, updateBundleResponseSchema, updateOrderInputSchema, updateOrderResponseSchema, writableBundleSchema, writableOrderMenuItemModifierSchema, writableOrderMenuItemSchema, writableOrderSchema };
|