@deliverart/sdk-js-order 2.6.1 → 2.6.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/dist/index.cjs +6 -6
- package/dist/index.d.cts +212 -1296
- package/dist/index.d.ts +212 -1296
- package/dist/index.js +12 -12
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -1934,7 +1934,7 @@ declare const getBundlesQuerySchema: z.ZodObject<{
|
|
|
1934
1934
|
type GetBundlesQueryParams = z.infer<typeof getBundlesQuerySchema>;
|
|
1935
1935
|
declare const getBundlesInputSchema: z.ZodUndefined;
|
|
1936
1936
|
type GetBundlesInput = z.infer<typeof getBundlesInputSchema>;
|
|
1937
|
-
declare const getBundlesResponseSchema: z.
|
|
1937
|
+
declare const getBundlesResponseSchema: z.ZodObject<{
|
|
1938
1938
|
data: z.ZodArray<z.ZodObject<{
|
|
1939
1939
|
id: z.ZodString;
|
|
1940
1940
|
status: z.ZodEnum<{
|
|
@@ -2076,146 +2076,14 @@ declare const getBundlesResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
2076
2076
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2077
2077
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2078
2078
|
}, z.core.$strip>;
|
|
2079
|
-
}, z.core.$strip
|
|
2080
|
-
id: z.ZodString;
|
|
2081
|
-
status: z.ZodEnum<{
|
|
2082
|
-
pending: "pending";
|
|
2083
|
-
busy: "busy";
|
|
2084
|
-
broken: "broken";
|
|
2085
|
-
released: "released";
|
|
2086
|
-
}>;
|
|
2087
|
-
type: z.ZodEnum<{
|
|
2088
|
-
REGULAR: "REGULAR";
|
|
2089
|
-
FORCED: "FORCED";
|
|
2090
|
-
}>;
|
|
2091
|
-
brokenReason: z.ZodNullable<z.ZodEnum<{
|
|
2092
|
-
delivery_removed: "delivery_removed";
|
|
2093
|
-
}>>;
|
|
2094
|
-
deliverable: z.ZodBoolean;
|
|
2095
|
-
ready: z.ZodBoolean;
|
|
2096
|
-
preparationTime: z.ZodNullable<z.ZodString>;
|
|
2097
|
-
startTime: z.ZodNullable<z.ZodString>;
|
|
2098
|
-
endTime: z.ZodNullable<z.ZodString>;
|
|
2099
|
-
totalCountableItems: z.ZodCoercedNumber<unknown>;
|
|
2100
|
-
orders: z.ZodArray<z.ZodObject<{
|
|
2101
|
-
id: z.ZodString;
|
|
2102
|
-
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>>;
|
|
2103
|
-
paymentMethod: z.ZodNullable<z.ZodEnum<{
|
|
2104
|
-
stripe: "stripe";
|
|
2105
|
-
bank_transfer: "bank_transfer";
|
|
2106
|
-
cash: "cash";
|
|
2107
|
-
credit_card: "credit_card";
|
|
2108
|
-
}>>;
|
|
2109
|
-
paymentStatus: z.ZodNullable<z.ZodEnum<{
|
|
2110
|
-
pending: "pending";
|
|
2111
|
-
pending_verification: "pending_verification";
|
|
2112
|
-
paid: "paid";
|
|
2113
|
-
canceled: "canceled";
|
|
2114
|
-
refunded: "refunded";
|
|
2115
|
-
failed: "failed";
|
|
2116
|
-
}>>;
|
|
2117
|
-
type: z.ZodEnum<{
|
|
2118
|
-
delivery: "delivery";
|
|
2119
|
-
take_away: "take_away";
|
|
2120
|
-
kitchen: "kitchen";
|
|
2121
|
-
}>;
|
|
2122
|
-
source: z.ZodEnum<{
|
|
2123
|
-
application: "application";
|
|
2124
|
-
ecommerce: "ecommerce";
|
|
2125
|
-
partner: "partner";
|
|
2126
|
-
}>;
|
|
2127
|
-
partner: z.ZodNullable<z.ZodString>;
|
|
2128
|
-
partnerIdentifier: z.ZodNullable<z.ZodString>;
|
|
2129
|
-
sequenceId: z.ZodNullable<z.ZodString>;
|
|
2130
|
-
displayId: z.ZodNullable<z.ZodString>;
|
|
2131
|
-
customerInfo: z.ZodObject<{
|
|
2132
|
-
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2133
|
-
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2134
|
-
email: z.ZodNullable<z.ZodEmail>;
|
|
2135
|
-
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
2136
|
-
contactNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2137
|
-
contactAccessCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2138
|
-
}, z.core.$strict>;
|
|
2139
|
-
billingInfo: z.ZodNullable<z.ZodObject<{
|
|
2140
|
-
businessName: z.ZodString;
|
|
2141
|
-
vat: z.ZodString;
|
|
2142
|
-
taxCode: z.ZodString;
|
|
2143
|
-
billingAddress: z.ZodObject<{
|
|
2144
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2145
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2146
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2147
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2148
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2149
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2150
|
-
}, z.core.$strip>;
|
|
2151
|
-
billingData: z.ZodObject<{
|
|
2152
|
-
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2153
|
-
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
2154
|
-
}, z.core.$strip>;
|
|
2155
|
-
}, z.core.$strip>>;
|
|
2156
|
-
address: z.ZodNullable<z.ZodObject<{
|
|
2157
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2158
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2159
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2160
|
-
line1: z.ZodString;
|
|
2161
|
-
city: z.ZodString;
|
|
2162
|
-
postalCode: z.ZodString;
|
|
2163
|
-
}, z.core.$strip>>;
|
|
2164
|
-
location: z.ZodNullable<z.ZodObject<{
|
|
2165
|
-
latitude: z.ZodNumber;
|
|
2166
|
-
longitude: z.ZodNumber;
|
|
2167
|
-
}, z.core.$strip>>;
|
|
2168
|
-
status: z.ZodEnum<{
|
|
2169
|
-
pending: "pending";
|
|
2170
|
-
confirmed: "confirmed";
|
|
2171
|
-
rejected: "rejected";
|
|
2172
|
-
}>;
|
|
2173
|
-
preparationStatus: z.ZodEnum<{
|
|
2174
|
-
to_prepare: "to_prepare";
|
|
2175
|
-
in_preparation: "in_preparation";
|
|
2176
|
-
done: "done";
|
|
2177
|
-
}>;
|
|
2178
|
-
preparationTime: z.ZodNullable<z.ZodString>;
|
|
2179
|
-
preparationStartedAt: z.ZodNullable<z.ZodString>;
|
|
2180
|
-
preparationEndedAt: z.ZodNullable<z.ZodString>;
|
|
2181
|
-
requestedDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
2182
|
-
finalDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
2183
|
-
deliveryStartedAt: z.ZodNullable<z.ZodString>;
|
|
2184
|
-
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
2185
|
-
requestedCollectionTime: z.ZodNullable<z.ZodString>;
|
|
2186
|
-
finalCollectionTime: z.ZodNullable<z.ZodString>;
|
|
2187
|
-
collectedAt: z.ZodNullable<z.ZodString>;
|
|
2188
|
-
totalCountableItems: z.ZodCoercedNumber<unknown>;
|
|
2189
|
-
amount: z.ZodString;
|
|
2190
|
-
netAmount: z.ZodString;
|
|
2191
|
-
taxAmount: z.ZodString;
|
|
2192
|
-
discount: z.ZodString;
|
|
2193
|
-
feeAmount: z.ZodString;
|
|
2194
|
-
feeNetAmount: z.ZodString;
|
|
2195
|
-
feeTaxAmount: z.ZodString;
|
|
2196
|
-
totalAmount: z.ZodString;
|
|
2197
|
-
totalNetAmount: z.ZodString;
|
|
2198
|
-
totalTaxAmount: z.ZodString;
|
|
2199
|
-
notes: z.ZodNullable<z.ZodString>;
|
|
2200
|
-
deliveryNotes: z.ZodNullable<z.ZodString>;
|
|
2201
|
-
kitchenNotes: z.ZodNullable<z.ZodString>;
|
|
2202
|
-
maximumAcceptanceDate: z.ZodNullable<z.ZodString>;
|
|
2203
|
-
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
2204
|
-
isRead: z.ZodBoolean;
|
|
2205
|
-
firstReadAt: z.ZodNullable<z.ZodString>;
|
|
2206
|
-
createdAt: z.ZodString;
|
|
2207
|
-
updatedAt: z.ZodString;
|
|
2208
|
-
}, z.core.$strip>>;
|
|
2209
|
-
createdAt: z.ZodString;
|
|
2210
|
-
updatedAt: z.ZodString;
|
|
2211
|
-
}, z.core.$strip>>]>;
|
|
2079
|
+
}, z.core.$strip>;
|
|
2212
2080
|
type GetBundlesResponse = z.infer<typeof getBundlesResponseSchema>;
|
|
2213
2081
|
declare class GetBundles extends AbstractApiRequest<typeof getBundlesInputSchema, typeof getBundlesResponseSchema, GetBundlesQueryParams> {
|
|
2214
2082
|
readonly method: "GET";
|
|
2215
2083
|
readonly contentType: "application/json";
|
|
2216
2084
|
readonly accept: "application/json";
|
|
2217
2085
|
readonly inputSchema: z.ZodUndefined;
|
|
2218
|
-
readonly outputSchema: z.
|
|
2086
|
+
readonly outputSchema: z.ZodObject<{
|
|
2219
2087
|
data: z.ZodArray<z.ZodObject<{
|
|
2220
2088
|
id: z.ZodString;
|
|
2221
2089
|
status: z.ZodEnum<{
|
|
@@ -2357,218 +2225,86 @@ declare class GetBundles extends AbstractApiRequest<typeof getBundlesInputSchema
|
|
|
2357
2225
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2358
2226
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2359
2227
|
}, z.core.$strip>;
|
|
2360
|
-
}, z.core.$strip
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
}>>;
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2441
|
-
line1: z.ZodString;
|
|
2442
|
-
city: z.ZodString;
|
|
2443
|
-
postalCode: z.ZodString;
|
|
2444
|
-
}, z.core.$strip>>;
|
|
2445
|
-
location: z.ZodNullable<z.ZodObject<{
|
|
2446
|
-
latitude: z.ZodNumber;
|
|
2447
|
-
longitude: z.ZodNumber;
|
|
2448
|
-
}, z.core.$strip>>;
|
|
2449
|
-
status: z.ZodEnum<{
|
|
2450
|
-
pending: "pending";
|
|
2451
|
-
confirmed: "confirmed";
|
|
2452
|
-
rejected: "rejected";
|
|
2453
|
-
}>;
|
|
2454
|
-
preparationStatus: z.ZodEnum<{
|
|
2455
|
-
to_prepare: "to_prepare";
|
|
2456
|
-
in_preparation: "in_preparation";
|
|
2457
|
-
done: "done";
|
|
2458
|
-
}>;
|
|
2459
|
-
preparationTime: z.ZodNullable<z.ZodString>;
|
|
2460
|
-
preparationStartedAt: z.ZodNullable<z.ZodString>;
|
|
2461
|
-
preparationEndedAt: z.ZodNullable<z.ZodString>;
|
|
2462
|
-
requestedDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
2463
|
-
finalDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
2464
|
-
deliveryStartedAt: z.ZodNullable<z.ZodString>;
|
|
2465
|
-
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
2466
|
-
requestedCollectionTime: z.ZodNullable<z.ZodString>;
|
|
2467
|
-
finalCollectionTime: z.ZodNullable<z.ZodString>;
|
|
2468
|
-
collectedAt: z.ZodNullable<z.ZodString>;
|
|
2469
|
-
totalCountableItems: z.ZodCoercedNumber<unknown>;
|
|
2470
|
-
amount: z.ZodString;
|
|
2471
|
-
netAmount: z.ZodString;
|
|
2472
|
-
taxAmount: z.ZodString;
|
|
2473
|
-
discount: z.ZodString;
|
|
2474
|
-
feeAmount: z.ZodString;
|
|
2475
|
-
feeNetAmount: z.ZodString;
|
|
2476
|
-
feeTaxAmount: z.ZodString;
|
|
2477
|
-
totalAmount: z.ZodString;
|
|
2478
|
-
totalNetAmount: z.ZodString;
|
|
2479
|
-
totalTaxAmount: z.ZodString;
|
|
2480
|
-
notes: z.ZodNullable<z.ZodString>;
|
|
2481
|
-
deliveryNotes: z.ZodNullable<z.ZodString>;
|
|
2482
|
-
kitchenNotes: z.ZodNullable<z.ZodString>;
|
|
2483
|
-
maximumAcceptanceDate: z.ZodNullable<z.ZodString>;
|
|
2484
|
-
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
2485
|
-
isRead: z.ZodBoolean;
|
|
2486
|
-
firstReadAt: z.ZodNullable<z.ZodString>;
|
|
2487
|
-
createdAt: z.ZodString;
|
|
2488
|
-
updatedAt: z.ZodString;
|
|
2489
|
-
}, z.core.$strip>>;
|
|
2490
|
-
createdAt: z.ZodString;
|
|
2491
|
-
updatedAt: z.ZodString;
|
|
2492
|
-
}, z.core.$strip>>]>;
|
|
2493
|
-
readonly querySchema: z.ZodObject<{
|
|
2494
|
-
deliverable: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
2495
|
-
ready: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
2496
|
-
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2497
|
-
pending: "pending";
|
|
2498
|
-
busy: "busy";
|
|
2499
|
-
broken: "broken";
|
|
2500
|
-
released: "released";
|
|
2501
|
-
}>, z.ZodArray<z.ZodEnum<{
|
|
2502
|
-
pending: "pending";
|
|
2503
|
-
busy: "busy";
|
|
2504
|
-
broken: "broken";
|
|
2505
|
-
released: "released";
|
|
2506
|
-
}>>]>>;
|
|
2507
|
-
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2508
|
-
REGULAR: "REGULAR";
|
|
2509
|
-
FORCED: "FORCED";
|
|
2510
|
-
}>, z.ZodArray<z.ZodEnum<{
|
|
2511
|
-
REGULAR: "REGULAR";
|
|
2512
|
-
FORCED: "FORCED";
|
|
2513
|
-
}>>]>>;
|
|
2514
|
-
brokenReason: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2515
|
-
delivery_removed: "delivery_removed";
|
|
2516
|
-
}>, z.ZodArray<z.ZodEnum<{
|
|
2517
|
-
delivery_removed: "delivery_removed";
|
|
2518
|
-
}>>]>>;
|
|
2519
|
-
'totalCountableItems[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2520
|
-
'totalCountableItems[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2521
|
-
'totalCountableItems[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2522
|
-
'totalCountableItems[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2523
|
-
'totalCountableItems[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2524
|
-
'order[preparationTime]': z.ZodOptional<z.ZodEnum<{
|
|
2525
|
-
asc: "asc";
|
|
2526
|
-
desc: "desc";
|
|
2527
|
-
}>>;
|
|
2528
|
-
'order[totalCountableItems]': z.ZodOptional<z.ZodEnum<{
|
|
2529
|
-
asc: "asc";
|
|
2530
|
-
desc: "desc";
|
|
2531
|
-
}>>;
|
|
2532
|
-
'order[startTime]': z.ZodOptional<z.ZodEnum<{
|
|
2533
|
-
asc: "asc";
|
|
2534
|
-
desc: "desc";
|
|
2535
|
-
}>>;
|
|
2536
|
-
'order[endTime]': z.ZodOptional<z.ZodEnum<{
|
|
2537
|
-
asc: "asc";
|
|
2538
|
-
desc: "desc";
|
|
2539
|
-
}>>;
|
|
2540
|
-
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
2541
|
-
asc: "asc";
|
|
2542
|
-
desc: "desc";
|
|
2543
|
-
}>>;
|
|
2544
|
-
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
2545
|
-
asc: "asc";
|
|
2546
|
-
desc: "desc";
|
|
2547
|
-
}>>;
|
|
2548
|
-
'startTime[before]': z.ZodOptional<z.ZodString>;
|
|
2549
|
-
'startTime[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2550
|
-
'startTime[after]': z.ZodOptional<z.ZodString>;
|
|
2551
|
-
'startTime[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2552
|
-
'endTime[before]': z.ZodOptional<z.ZodString>;
|
|
2553
|
-
'endTime[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2554
|
-
'endTime[after]': z.ZodOptional<z.ZodString>;
|
|
2555
|
-
'endTime[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2556
|
-
'preparationTime[before]': z.ZodOptional<z.ZodString>;
|
|
2557
|
-
'preparationTime[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2558
|
-
'preparationTime[after]': z.ZodOptional<z.ZodString>;
|
|
2559
|
-
'preparationTime[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2560
|
-
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2561
|
-
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
2562
|
-
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2563
|
-
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
2564
|
-
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2565
|
-
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
2566
|
-
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2567
|
-
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
2568
|
-
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2569
|
-
}, z.core.$strip>;
|
|
2570
|
-
readonly headersSchema: undefined;
|
|
2571
|
-
readonly listItemSchema: z.ZodObject<{
|
|
2228
|
+
}, z.core.$strip>;
|
|
2229
|
+
readonly querySchema: z.ZodObject<{
|
|
2230
|
+
deliverable: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
2231
|
+
ready: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
2232
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2233
|
+
pending: "pending";
|
|
2234
|
+
busy: "busy";
|
|
2235
|
+
broken: "broken";
|
|
2236
|
+
released: "released";
|
|
2237
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
2238
|
+
pending: "pending";
|
|
2239
|
+
busy: "busy";
|
|
2240
|
+
broken: "broken";
|
|
2241
|
+
released: "released";
|
|
2242
|
+
}>>]>>;
|
|
2243
|
+
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2244
|
+
REGULAR: "REGULAR";
|
|
2245
|
+
FORCED: "FORCED";
|
|
2246
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
2247
|
+
REGULAR: "REGULAR";
|
|
2248
|
+
FORCED: "FORCED";
|
|
2249
|
+
}>>]>>;
|
|
2250
|
+
brokenReason: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2251
|
+
delivery_removed: "delivery_removed";
|
|
2252
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
2253
|
+
delivery_removed: "delivery_removed";
|
|
2254
|
+
}>>]>>;
|
|
2255
|
+
'totalCountableItems[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2256
|
+
'totalCountableItems[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2257
|
+
'totalCountableItems[gte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2258
|
+
'totalCountableItems[lt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2259
|
+
'totalCountableItems[lte]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2260
|
+
'order[preparationTime]': z.ZodOptional<z.ZodEnum<{
|
|
2261
|
+
asc: "asc";
|
|
2262
|
+
desc: "desc";
|
|
2263
|
+
}>>;
|
|
2264
|
+
'order[totalCountableItems]': z.ZodOptional<z.ZodEnum<{
|
|
2265
|
+
asc: "asc";
|
|
2266
|
+
desc: "desc";
|
|
2267
|
+
}>>;
|
|
2268
|
+
'order[startTime]': z.ZodOptional<z.ZodEnum<{
|
|
2269
|
+
asc: "asc";
|
|
2270
|
+
desc: "desc";
|
|
2271
|
+
}>>;
|
|
2272
|
+
'order[endTime]': z.ZodOptional<z.ZodEnum<{
|
|
2273
|
+
asc: "asc";
|
|
2274
|
+
desc: "desc";
|
|
2275
|
+
}>>;
|
|
2276
|
+
'order[createdAt]': z.ZodOptional<z.ZodEnum<{
|
|
2277
|
+
asc: "asc";
|
|
2278
|
+
desc: "desc";
|
|
2279
|
+
}>>;
|
|
2280
|
+
'order[updatedAt]': z.ZodOptional<z.ZodEnum<{
|
|
2281
|
+
asc: "asc";
|
|
2282
|
+
desc: "desc";
|
|
2283
|
+
}>>;
|
|
2284
|
+
'startTime[before]': z.ZodOptional<z.ZodString>;
|
|
2285
|
+
'startTime[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2286
|
+
'startTime[after]': z.ZodOptional<z.ZodString>;
|
|
2287
|
+
'startTime[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2288
|
+
'endTime[before]': z.ZodOptional<z.ZodString>;
|
|
2289
|
+
'endTime[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2290
|
+
'endTime[after]': z.ZodOptional<z.ZodString>;
|
|
2291
|
+
'endTime[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2292
|
+
'preparationTime[before]': z.ZodOptional<z.ZodString>;
|
|
2293
|
+
'preparationTime[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2294
|
+
'preparationTime[after]': z.ZodOptional<z.ZodString>;
|
|
2295
|
+
'preparationTime[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2296
|
+
page: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
2297
|
+
'createdAt[before]': z.ZodOptional<z.ZodString>;
|
|
2298
|
+
'createdAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2299
|
+
'createdAt[after]': z.ZodOptional<z.ZodString>;
|
|
2300
|
+
'createdAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2301
|
+
'updatedAt[before]': z.ZodOptional<z.ZodString>;
|
|
2302
|
+
'updatedAt[strictly_before]': z.ZodOptional<z.ZodString>;
|
|
2303
|
+
'updatedAt[after]': z.ZodOptional<z.ZodString>;
|
|
2304
|
+
'updatedAt[strictly_after]': z.ZodOptional<z.ZodString>;
|
|
2305
|
+
}, z.core.$strip>;
|
|
2306
|
+
readonly headersSchema: undefined;
|
|
2307
|
+
readonly listItemSchema: z.ZodObject<{
|
|
2572
2308
|
id: z.ZodString;
|
|
2573
2309
|
status: z.ZodEnum<{
|
|
2574
2310
|
pending: "pending";
|
|
@@ -2788,7 +2524,7 @@ declare const getBundlesFromPointOfSaleQuerySchema: z.ZodObject<{
|
|
|
2788
2524
|
type GetBundlesFromPointOfSaleQueryParams = z.infer<typeof getBundlesFromPointOfSaleQuerySchema>;
|
|
2789
2525
|
declare const getBundlesFromPointOfSaleInputSchema: z.ZodUndefined;
|
|
2790
2526
|
type GetBundlesFromPointOfSaleInput = z.infer<typeof getBundlesFromPointOfSaleInputSchema>;
|
|
2791
|
-
declare const getBundlesFromPointOfSaleResponseSchema: z.
|
|
2527
|
+
declare const getBundlesFromPointOfSaleResponseSchema: z.ZodObject<{
|
|
2792
2528
|
data: z.ZodArray<z.ZodObject<{
|
|
2793
2529
|
id: z.ZodString;
|
|
2794
2530
|
status: z.ZodEnum<{
|
|
@@ -2930,146 +2666,14 @@ declare const getBundlesFromPointOfSaleResponseSchema: z.ZodUnion<readonly [z.Zo
|
|
|
2930
2666
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2931
2667
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2932
2668
|
}, z.core.$strip>;
|
|
2933
|
-
}, z.core.$strip
|
|
2934
|
-
id: z.ZodString;
|
|
2935
|
-
status: z.ZodEnum<{
|
|
2936
|
-
pending: "pending";
|
|
2937
|
-
busy: "busy";
|
|
2938
|
-
broken: "broken";
|
|
2939
|
-
released: "released";
|
|
2940
|
-
}>;
|
|
2941
|
-
type: z.ZodEnum<{
|
|
2942
|
-
REGULAR: "REGULAR";
|
|
2943
|
-
FORCED: "FORCED";
|
|
2944
|
-
}>;
|
|
2945
|
-
brokenReason: z.ZodNullable<z.ZodEnum<{
|
|
2946
|
-
delivery_removed: "delivery_removed";
|
|
2947
|
-
}>>;
|
|
2948
|
-
deliverable: z.ZodBoolean;
|
|
2949
|
-
ready: z.ZodBoolean;
|
|
2950
|
-
preparationTime: z.ZodNullable<z.ZodString>;
|
|
2951
|
-
startTime: z.ZodNullable<z.ZodString>;
|
|
2952
|
-
endTime: z.ZodNullable<z.ZodString>;
|
|
2953
|
-
totalCountableItems: z.ZodCoercedNumber<unknown>;
|
|
2954
|
-
orders: z.ZodArray<z.ZodObject<{
|
|
2955
|
-
id: z.ZodString;
|
|
2956
|
-
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>>;
|
|
2957
|
-
paymentMethod: z.ZodNullable<z.ZodEnum<{
|
|
2958
|
-
stripe: "stripe";
|
|
2959
|
-
bank_transfer: "bank_transfer";
|
|
2960
|
-
cash: "cash";
|
|
2961
|
-
credit_card: "credit_card";
|
|
2962
|
-
}>>;
|
|
2963
|
-
paymentStatus: z.ZodNullable<z.ZodEnum<{
|
|
2964
|
-
pending: "pending";
|
|
2965
|
-
pending_verification: "pending_verification";
|
|
2966
|
-
paid: "paid";
|
|
2967
|
-
canceled: "canceled";
|
|
2968
|
-
refunded: "refunded";
|
|
2969
|
-
failed: "failed";
|
|
2970
|
-
}>>;
|
|
2971
|
-
type: z.ZodEnum<{
|
|
2972
|
-
delivery: "delivery";
|
|
2973
|
-
take_away: "take_away";
|
|
2974
|
-
kitchen: "kitchen";
|
|
2975
|
-
}>;
|
|
2976
|
-
source: z.ZodEnum<{
|
|
2977
|
-
application: "application";
|
|
2978
|
-
ecommerce: "ecommerce";
|
|
2979
|
-
partner: "partner";
|
|
2980
|
-
}>;
|
|
2981
|
-
partner: z.ZodNullable<z.ZodString>;
|
|
2982
|
-
partnerIdentifier: z.ZodNullable<z.ZodString>;
|
|
2983
|
-
sequenceId: z.ZodNullable<z.ZodString>;
|
|
2984
|
-
displayId: z.ZodNullable<z.ZodString>;
|
|
2985
|
-
customerInfo: z.ZodObject<{
|
|
2986
|
-
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2987
|
-
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2988
|
-
email: z.ZodNullable<z.ZodEmail>;
|
|
2989
|
-
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
2990
|
-
contactNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2991
|
-
contactAccessCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2992
|
-
}, z.core.$strict>;
|
|
2993
|
-
billingInfo: z.ZodNullable<z.ZodObject<{
|
|
2994
|
-
businessName: z.ZodString;
|
|
2995
|
-
vat: z.ZodString;
|
|
2996
|
-
taxCode: z.ZodString;
|
|
2997
|
-
billingAddress: z.ZodObject<{
|
|
2998
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2999
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3000
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3001
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3002
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3003
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3004
|
-
}, z.core.$strip>;
|
|
3005
|
-
billingData: z.ZodObject<{
|
|
3006
|
-
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3007
|
-
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
3008
|
-
}, z.core.$strip>;
|
|
3009
|
-
}, z.core.$strip>>;
|
|
3010
|
-
address: z.ZodNullable<z.ZodObject<{
|
|
3011
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3012
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3013
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3014
|
-
line1: z.ZodString;
|
|
3015
|
-
city: z.ZodString;
|
|
3016
|
-
postalCode: z.ZodString;
|
|
3017
|
-
}, z.core.$strip>>;
|
|
3018
|
-
location: z.ZodNullable<z.ZodObject<{
|
|
3019
|
-
latitude: z.ZodNumber;
|
|
3020
|
-
longitude: z.ZodNumber;
|
|
3021
|
-
}, z.core.$strip>>;
|
|
3022
|
-
status: z.ZodEnum<{
|
|
3023
|
-
pending: "pending";
|
|
3024
|
-
confirmed: "confirmed";
|
|
3025
|
-
rejected: "rejected";
|
|
3026
|
-
}>;
|
|
3027
|
-
preparationStatus: z.ZodEnum<{
|
|
3028
|
-
to_prepare: "to_prepare";
|
|
3029
|
-
in_preparation: "in_preparation";
|
|
3030
|
-
done: "done";
|
|
3031
|
-
}>;
|
|
3032
|
-
preparationTime: z.ZodNullable<z.ZodString>;
|
|
3033
|
-
preparationStartedAt: z.ZodNullable<z.ZodString>;
|
|
3034
|
-
preparationEndedAt: z.ZodNullable<z.ZodString>;
|
|
3035
|
-
requestedDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
3036
|
-
finalDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
3037
|
-
deliveryStartedAt: z.ZodNullable<z.ZodString>;
|
|
3038
|
-
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
3039
|
-
requestedCollectionTime: z.ZodNullable<z.ZodString>;
|
|
3040
|
-
finalCollectionTime: z.ZodNullable<z.ZodString>;
|
|
3041
|
-
collectedAt: z.ZodNullable<z.ZodString>;
|
|
3042
|
-
totalCountableItems: z.ZodCoercedNumber<unknown>;
|
|
3043
|
-
amount: z.ZodString;
|
|
3044
|
-
netAmount: z.ZodString;
|
|
3045
|
-
taxAmount: z.ZodString;
|
|
3046
|
-
discount: z.ZodString;
|
|
3047
|
-
feeAmount: z.ZodString;
|
|
3048
|
-
feeNetAmount: z.ZodString;
|
|
3049
|
-
feeTaxAmount: z.ZodString;
|
|
3050
|
-
totalAmount: z.ZodString;
|
|
3051
|
-
totalNetAmount: z.ZodString;
|
|
3052
|
-
totalTaxAmount: z.ZodString;
|
|
3053
|
-
notes: z.ZodNullable<z.ZodString>;
|
|
3054
|
-
deliveryNotes: z.ZodNullable<z.ZodString>;
|
|
3055
|
-
kitchenNotes: z.ZodNullable<z.ZodString>;
|
|
3056
|
-
maximumAcceptanceDate: z.ZodNullable<z.ZodString>;
|
|
3057
|
-
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
3058
|
-
isRead: z.ZodBoolean;
|
|
3059
|
-
firstReadAt: z.ZodNullable<z.ZodString>;
|
|
3060
|
-
createdAt: z.ZodString;
|
|
3061
|
-
updatedAt: z.ZodString;
|
|
3062
|
-
}, z.core.$strip>>;
|
|
3063
|
-
createdAt: z.ZodString;
|
|
3064
|
-
updatedAt: z.ZodString;
|
|
3065
|
-
}, z.core.$strip>>]>;
|
|
2669
|
+
}, z.core.$strip>;
|
|
3066
2670
|
type GetBundlesFromPointOfSaleResponse = z.infer<typeof getBundlesFromPointOfSaleResponseSchema>;
|
|
3067
2671
|
declare class GetBundlesFromPointOfSale extends AbstractApiRequest<typeof getBundlesFromPointOfSaleInputSchema, typeof getBundlesFromPointOfSaleResponseSchema, GetBundlesFromPointOfSaleQueryParams> {
|
|
3068
2672
|
readonly method: "GET";
|
|
3069
2673
|
readonly contentType: "application/json";
|
|
3070
2674
|
readonly accept: "application/json";
|
|
3071
2675
|
readonly inputSchema: z.ZodUndefined;
|
|
3072
|
-
readonly outputSchema: z.
|
|
2676
|
+
readonly outputSchema: z.ZodObject<{
|
|
3073
2677
|
data: z.ZodArray<z.ZodObject<{
|
|
3074
2678
|
id: z.ZodString;
|
|
3075
2679
|
status: z.ZodEnum<{
|
|
@@ -3134,216 +2738,84 @@ declare class GetBundlesFromPointOfSale extends AbstractApiRequest<typeof getBun
|
|
|
3134
2738
|
businessName: z.ZodString;
|
|
3135
2739
|
vat: z.ZodString;
|
|
3136
2740
|
taxCode: z.ZodString;
|
|
3137
|
-
billingAddress: z.ZodObject<{
|
|
3138
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3139
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3140
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3141
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3142
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3143
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3144
|
-
}, z.core.$strip>;
|
|
3145
|
-
billingData: z.ZodObject<{
|
|
3146
|
-
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
3147
|
-
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
3148
|
-
}, z.core.$strip>;
|
|
3149
|
-
}, z.core.$strip>>;
|
|
3150
|
-
address: z.ZodNullable<z.ZodObject<{
|
|
3151
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3152
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3153
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3154
|
-
line1: z.ZodString;
|
|
3155
|
-
city: z.ZodString;
|
|
3156
|
-
postalCode: z.ZodString;
|
|
3157
|
-
}, z.core.$strip>>;
|
|
3158
|
-
location: z.ZodNullable<z.ZodObject<{
|
|
3159
|
-
latitude: z.ZodNumber;
|
|
3160
|
-
longitude: z.ZodNumber;
|
|
3161
|
-
}, z.core.$strip>>;
|
|
3162
|
-
status: z.ZodEnum<{
|
|
3163
|
-
pending: "pending";
|
|
3164
|
-
confirmed: "confirmed";
|
|
3165
|
-
rejected: "rejected";
|
|
3166
|
-
}>;
|
|
3167
|
-
preparationStatus: z.ZodEnum<{
|
|
3168
|
-
to_prepare: "to_prepare";
|
|
3169
|
-
in_preparation: "in_preparation";
|
|
3170
|
-
done: "done";
|
|
3171
|
-
}>;
|
|
3172
|
-
preparationTime: z.ZodNullable<z.ZodString>;
|
|
3173
|
-
preparationStartedAt: z.ZodNullable<z.ZodString>;
|
|
3174
|
-
preparationEndedAt: z.ZodNullable<z.ZodString>;
|
|
3175
|
-
requestedDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
3176
|
-
finalDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
3177
|
-
deliveryStartedAt: z.ZodNullable<z.ZodString>;
|
|
3178
|
-
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
3179
|
-
requestedCollectionTime: z.ZodNullable<z.ZodString>;
|
|
3180
|
-
finalCollectionTime: z.ZodNullable<z.ZodString>;
|
|
3181
|
-
collectedAt: z.ZodNullable<z.ZodString>;
|
|
3182
|
-
totalCountableItems: z.ZodCoercedNumber<unknown>;
|
|
3183
|
-
amount: z.ZodString;
|
|
3184
|
-
netAmount: z.ZodString;
|
|
3185
|
-
taxAmount: z.ZodString;
|
|
3186
|
-
discount: z.ZodString;
|
|
3187
|
-
feeAmount: z.ZodString;
|
|
3188
|
-
feeNetAmount: z.ZodString;
|
|
3189
|
-
feeTaxAmount: z.ZodString;
|
|
3190
|
-
totalAmount: z.ZodString;
|
|
3191
|
-
totalNetAmount: z.ZodString;
|
|
3192
|
-
totalTaxAmount: z.ZodString;
|
|
3193
|
-
notes: z.ZodNullable<z.ZodString>;
|
|
3194
|
-
deliveryNotes: z.ZodNullable<z.ZodString>;
|
|
3195
|
-
kitchenNotes: z.ZodNullable<z.ZodString>;
|
|
3196
|
-
maximumAcceptanceDate: z.ZodNullable<z.ZodString>;
|
|
3197
|
-
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
3198
|
-
isRead: z.ZodBoolean;
|
|
3199
|
-
firstReadAt: z.ZodNullable<z.ZodString>;
|
|
3200
|
-
createdAt: z.ZodString;
|
|
3201
|
-
updatedAt: z.ZodString;
|
|
3202
|
-
}, z.core.$strip>>;
|
|
3203
|
-
createdAt: z.ZodString;
|
|
3204
|
-
updatedAt: z.ZodString;
|
|
3205
|
-
}, z.core.$strip>>;
|
|
3206
|
-
pagination: z.ZodObject<{
|
|
3207
|
-
from: z.ZodCoercedNumber<unknown>;
|
|
3208
|
-
to: z.ZodCoercedNumber<unknown>;
|
|
3209
|
-
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
3210
|
-
totalItems: z.ZodCoercedNumber<unknown>;
|
|
3211
|
-
currentPage: z.ZodCoercedNumber<unknown>;
|
|
3212
|
-
lastPage: z.ZodCoercedNumber<unknown>;
|
|
3213
|
-
}, z.core.$strip>;
|
|
3214
|
-
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
3215
|
-
id: z.ZodString;
|
|
3216
|
-
status: z.ZodEnum<{
|
|
3217
|
-
pending: "pending";
|
|
3218
|
-
busy: "busy";
|
|
3219
|
-
broken: "broken";
|
|
3220
|
-
released: "released";
|
|
3221
|
-
}>;
|
|
3222
|
-
type: z.ZodEnum<{
|
|
3223
|
-
REGULAR: "REGULAR";
|
|
3224
|
-
FORCED: "FORCED";
|
|
3225
|
-
}>;
|
|
3226
|
-
brokenReason: z.ZodNullable<z.ZodEnum<{
|
|
3227
|
-
delivery_removed: "delivery_removed";
|
|
3228
|
-
}>>;
|
|
3229
|
-
deliverable: z.ZodBoolean;
|
|
3230
|
-
ready: z.ZodBoolean;
|
|
3231
|
-
preparationTime: z.ZodNullable<z.ZodString>;
|
|
3232
|
-
startTime: z.ZodNullable<z.ZodString>;
|
|
3233
|
-
endTime: z.ZodNullable<z.ZodString>;
|
|
3234
|
-
totalCountableItems: z.ZodCoercedNumber<unknown>;
|
|
3235
|
-
orders: z.ZodArray<z.ZodObject<{
|
|
3236
|
-
id: z.ZodString;
|
|
3237
|
-
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>>;
|
|
3238
|
-
paymentMethod: z.ZodNullable<z.ZodEnum<{
|
|
3239
|
-
stripe: "stripe";
|
|
3240
|
-
bank_transfer: "bank_transfer";
|
|
3241
|
-
cash: "cash";
|
|
3242
|
-
credit_card: "credit_card";
|
|
3243
|
-
}>>;
|
|
3244
|
-
paymentStatus: z.ZodNullable<z.ZodEnum<{
|
|
3245
|
-
pending: "pending";
|
|
3246
|
-
pending_verification: "pending_verification";
|
|
3247
|
-
paid: "paid";
|
|
3248
|
-
canceled: "canceled";
|
|
3249
|
-
refunded: "refunded";
|
|
3250
|
-
failed: "failed";
|
|
3251
|
-
}>>;
|
|
3252
|
-
type: z.ZodEnum<{
|
|
3253
|
-
delivery: "delivery";
|
|
3254
|
-
take_away: "take_away";
|
|
3255
|
-
kitchen: "kitchen";
|
|
3256
|
-
}>;
|
|
3257
|
-
source: z.ZodEnum<{
|
|
3258
|
-
application: "application";
|
|
3259
|
-
ecommerce: "ecommerce";
|
|
3260
|
-
partner: "partner";
|
|
3261
|
-
}>;
|
|
3262
|
-
partner: z.ZodNullable<z.ZodString>;
|
|
3263
|
-
partnerIdentifier: z.ZodNullable<z.ZodString>;
|
|
3264
|
-
sequenceId: z.ZodNullable<z.ZodString>;
|
|
3265
|
-
displayId: z.ZodNullable<z.ZodString>;
|
|
3266
|
-
customerInfo: z.ZodObject<{
|
|
3267
|
-
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3268
|
-
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3269
|
-
email: z.ZodNullable<z.ZodEmail>;
|
|
3270
|
-
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
3271
|
-
contactNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3272
|
-
contactAccessCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3273
|
-
}, z.core.$strict>;
|
|
3274
|
-
billingInfo: z.ZodNullable<z.ZodObject<{
|
|
3275
|
-
businessName: z.ZodString;
|
|
3276
|
-
vat: z.ZodString;
|
|
3277
|
-
taxCode: z.ZodString;
|
|
3278
|
-
billingAddress: z.ZodObject<{
|
|
3279
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2741
|
+
billingAddress: z.ZodObject<{
|
|
2742
|
+
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2743
|
+
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2744
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2745
|
+
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2746
|
+
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2747
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2748
|
+
}, z.core.$strip>;
|
|
2749
|
+
billingData: z.ZodObject<{
|
|
2750
|
+
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2751
|
+
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
2752
|
+
}, z.core.$strip>;
|
|
2753
|
+
}, z.core.$strip>>;
|
|
2754
|
+
address: z.ZodNullable<z.ZodObject<{
|
|
3280
2755
|
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3281
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3282
2756
|
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3283
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3284
2757
|
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
2758
|
+
line1: z.ZodString;
|
|
2759
|
+
city: z.ZodString;
|
|
2760
|
+
postalCode: z.ZodString;
|
|
2761
|
+
}, z.core.$strip>>;
|
|
2762
|
+
location: z.ZodNullable<z.ZodObject<{
|
|
2763
|
+
latitude: z.ZodNumber;
|
|
2764
|
+
longitude: z.ZodNumber;
|
|
2765
|
+
}, z.core.$strip>>;
|
|
2766
|
+
status: z.ZodEnum<{
|
|
2767
|
+
pending: "pending";
|
|
2768
|
+
confirmed: "confirmed";
|
|
2769
|
+
rejected: "rejected";
|
|
2770
|
+
}>;
|
|
2771
|
+
preparationStatus: z.ZodEnum<{
|
|
2772
|
+
to_prepare: "to_prepare";
|
|
2773
|
+
in_preparation: "in_preparation";
|
|
2774
|
+
done: "done";
|
|
2775
|
+
}>;
|
|
2776
|
+
preparationTime: z.ZodNullable<z.ZodString>;
|
|
2777
|
+
preparationStartedAt: z.ZodNullable<z.ZodString>;
|
|
2778
|
+
preparationEndedAt: z.ZodNullable<z.ZodString>;
|
|
2779
|
+
requestedDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
2780
|
+
finalDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
2781
|
+
deliveryStartedAt: z.ZodNullable<z.ZodString>;
|
|
2782
|
+
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
2783
|
+
requestedCollectionTime: z.ZodNullable<z.ZodString>;
|
|
2784
|
+
finalCollectionTime: z.ZodNullable<z.ZodString>;
|
|
2785
|
+
collectedAt: z.ZodNullable<z.ZodString>;
|
|
2786
|
+
totalCountableItems: z.ZodCoercedNumber<unknown>;
|
|
2787
|
+
amount: z.ZodString;
|
|
2788
|
+
netAmount: z.ZodString;
|
|
2789
|
+
taxAmount: z.ZodString;
|
|
2790
|
+
discount: z.ZodString;
|
|
2791
|
+
feeAmount: z.ZodString;
|
|
2792
|
+
feeNetAmount: z.ZodString;
|
|
2793
|
+
feeTaxAmount: z.ZodString;
|
|
2794
|
+
totalAmount: z.ZodString;
|
|
2795
|
+
totalNetAmount: z.ZodString;
|
|
2796
|
+
totalTaxAmount: z.ZodString;
|
|
2797
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
2798
|
+
deliveryNotes: z.ZodNullable<z.ZodString>;
|
|
2799
|
+
kitchenNotes: z.ZodNullable<z.ZodString>;
|
|
2800
|
+
maximumAcceptanceDate: z.ZodNullable<z.ZodString>;
|
|
2801
|
+
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
2802
|
+
isRead: z.ZodBoolean;
|
|
2803
|
+
firstReadAt: z.ZodNullable<z.ZodString>;
|
|
2804
|
+
createdAt: z.ZodString;
|
|
2805
|
+
updatedAt: z.ZodString;
|
|
3302
2806
|
}, z.core.$strip>>;
|
|
3303
|
-
status: z.ZodEnum<{
|
|
3304
|
-
pending: "pending";
|
|
3305
|
-
confirmed: "confirmed";
|
|
3306
|
-
rejected: "rejected";
|
|
3307
|
-
}>;
|
|
3308
|
-
preparationStatus: z.ZodEnum<{
|
|
3309
|
-
to_prepare: "to_prepare";
|
|
3310
|
-
in_preparation: "in_preparation";
|
|
3311
|
-
done: "done";
|
|
3312
|
-
}>;
|
|
3313
|
-
preparationTime: z.ZodNullable<z.ZodString>;
|
|
3314
|
-
preparationStartedAt: z.ZodNullable<z.ZodString>;
|
|
3315
|
-
preparationEndedAt: z.ZodNullable<z.ZodString>;
|
|
3316
|
-
requestedDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
3317
|
-
finalDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
3318
|
-
deliveryStartedAt: z.ZodNullable<z.ZodString>;
|
|
3319
|
-
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
3320
|
-
requestedCollectionTime: z.ZodNullable<z.ZodString>;
|
|
3321
|
-
finalCollectionTime: z.ZodNullable<z.ZodString>;
|
|
3322
|
-
collectedAt: z.ZodNullable<z.ZodString>;
|
|
3323
|
-
totalCountableItems: z.ZodCoercedNumber<unknown>;
|
|
3324
|
-
amount: z.ZodString;
|
|
3325
|
-
netAmount: z.ZodString;
|
|
3326
|
-
taxAmount: z.ZodString;
|
|
3327
|
-
discount: z.ZodString;
|
|
3328
|
-
feeAmount: z.ZodString;
|
|
3329
|
-
feeNetAmount: z.ZodString;
|
|
3330
|
-
feeTaxAmount: z.ZodString;
|
|
3331
|
-
totalAmount: z.ZodString;
|
|
3332
|
-
totalNetAmount: z.ZodString;
|
|
3333
|
-
totalTaxAmount: z.ZodString;
|
|
3334
|
-
notes: z.ZodNullable<z.ZodString>;
|
|
3335
|
-
deliveryNotes: z.ZodNullable<z.ZodString>;
|
|
3336
|
-
kitchenNotes: z.ZodNullable<z.ZodString>;
|
|
3337
|
-
maximumAcceptanceDate: z.ZodNullable<z.ZodString>;
|
|
3338
|
-
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
3339
|
-
isRead: z.ZodBoolean;
|
|
3340
|
-
firstReadAt: z.ZodNullable<z.ZodString>;
|
|
3341
2807
|
createdAt: z.ZodString;
|
|
3342
2808
|
updatedAt: z.ZodString;
|
|
3343
2809
|
}, z.core.$strip>>;
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
2810
|
+
pagination: z.ZodObject<{
|
|
2811
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
2812
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
2813
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
2814
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
2815
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
2816
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
2817
|
+
}, z.core.$strip>;
|
|
2818
|
+
}, z.core.$strip>;
|
|
3347
2819
|
readonly querySchema: z.ZodObject<{
|
|
3348
2820
|
deliverable: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
3349
2821
|
ready: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodBoolean>>;
|
|
@@ -3942,7 +3414,7 @@ declare const getOrderMenuItemModifiersQuerySchema: z.ZodObject<{
|
|
|
3942
3414
|
type GetOrderMenuItemModifiersQueryParams = z.infer<typeof getOrderMenuItemModifiersQuerySchema>;
|
|
3943
3415
|
declare const getOrderMenuItemModifiersInputSchema: z.ZodUndefined;
|
|
3944
3416
|
type GetOrderMenuItemModifiersInput = z.infer<typeof getOrderMenuItemModifiersInputSchema>;
|
|
3945
|
-
declare const getOrderMenuItemModifiersResponseSchema: z.
|
|
3417
|
+
declare const getOrderMenuItemModifiersResponseSchema: z.ZodObject<{
|
|
3946
3418
|
data: z.ZodArray<z.ZodObject<{
|
|
3947
3419
|
id: z.ZodString;
|
|
3948
3420
|
name: z.ZodArray<z.ZodObject<{
|
|
@@ -3968,30 +3440,14 @@ declare const getOrderMenuItemModifiersResponseSchema: z.ZodUnion<readonly [z.Zo
|
|
|
3968
3440
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
3969
3441
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
3970
3442
|
}, z.core.$strip>;
|
|
3971
|
-
}, z.core.$strip
|
|
3972
|
-
id: z.ZodString;
|
|
3973
|
-
name: z.ZodArray<z.ZodObject<{
|
|
3974
|
-
locale: z.ZodString;
|
|
3975
|
-
text: z.ZodString;
|
|
3976
|
-
}, z.core.$strip>>;
|
|
3977
|
-
description: z.ZodArray<z.ZodObject<{
|
|
3978
|
-
locale: z.ZodString;
|
|
3979
|
-
text: z.ZodString;
|
|
3980
|
-
}, z.core.$strip>>;
|
|
3981
|
-
amount: z.ZodString;
|
|
3982
|
-
netAmount: z.ZodString;
|
|
3983
|
-
taxAmount: z.ZodString;
|
|
3984
|
-
createdAt: z.ZodString;
|
|
3985
|
-
updatedAt: z.ZodString;
|
|
3986
|
-
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>>>;
|
|
3987
|
-
}, z.core.$strip>>]>;
|
|
3443
|
+
}, z.core.$strip>;
|
|
3988
3444
|
type GetOrderMenuItemModifiersResponse = z.infer<typeof getOrderMenuItemModifiersResponseSchema>;
|
|
3989
3445
|
declare class GetOrderMenuItemModifiers extends AbstractApiRequest<typeof getOrderMenuItemModifiersInputSchema, typeof getOrderMenuItemModifiersResponseSchema, GetOrderMenuItemModifiersQueryParams> {
|
|
3990
3446
|
readonly method: "GET";
|
|
3991
3447
|
readonly contentType: "application/json";
|
|
3992
3448
|
readonly accept: "application/json";
|
|
3993
3449
|
readonly inputSchema: z.ZodUndefined;
|
|
3994
|
-
readonly outputSchema: z.
|
|
3450
|
+
readonly outputSchema: z.ZodObject<{
|
|
3995
3451
|
data: z.ZodArray<z.ZodObject<{
|
|
3996
3452
|
id: z.ZodString;
|
|
3997
3453
|
name: z.ZodArray<z.ZodObject<{
|
|
@@ -4017,23 +3473,7 @@ declare class GetOrderMenuItemModifiers extends AbstractApiRequest<typeof getOrd
|
|
|
4017
3473
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
4018
3474
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
4019
3475
|
}, z.core.$strip>;
|
|
4020
|
-
}, z.core.$strip
|
|
4021
|
-
id: z.ZodString;
|
|
4022
|
-
name: z.ZodArray<z.ZodObject<{
|
|
4023
|
-
locale: z.ZodString;
|
|
4024
|
-
text: z.ZodString;
|
|
4025
|
-
}, z.core.$strip>>;
|
|
4026
|
-
description: z.ZodArray<z.ZodObject<{
|
|
4027
|
-
locale: z.ZodString;
|
|
4028
|
-
text: z.ZodString;
|
|
4029
|
-
}, z.core.$strip>>;
|
|
4030
|
-
amount: z.ZodString;
|
|
4031
|
-
netAmount: z.ZodString;
|
|
4032
|
-
taxAmount: z.ZodString;
|
|
4033
|
-
createdAt: z.ZodString;
|
|
4034
|
-
updatedAt: z.ZodString;
|
|
4035
|
-
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>>>;
|
|
4036
|
-
}, z.core.$strip>>]>;
|
|
3476
|
+
}, z.core.$strip>;
|
|
4037
3477
|
readonly querySchema: z.ZodObject<{
|
|
4038
3478
|
'amount[between]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
4039
3479
|
'amount[gt]': z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -4292,7 +3732,7 @@ declare const getOrderMenuItemsQuerySchema: z.ZodObject<{
|
|
|
4292
3732
|
type GetOrderMenuItemsQueryParams = z.infer<typeof getOrderMenuItemsQuerySchema>;
|
|
4293
3733
|
declare const getOrderMenuItemsInputSchema: z.ZodUndefined;
|
|
4294
3734
|
type GetOrderMenuItemsInput = z.infer<typeof getOrderMenuItemsInputSchema>;
|
|
4295
|
-
declare const getOrderMenuItemsResponseSchema: z.
|
|
3735
|
+
declare const getOrderMenuItemsResponseSchema: z.ZodObject<{
|
|
4296
3736
|
data: z.ZodArray<z.ZodObject<{
|
|
4297
3737
|
id: z.ZodString;
|
|
4298
3738
|
type: z.ZodEnum<{
|
|
@@ -4348,60 +3788,14 @@ declare const getOrderMenuItemsResponseSchema: z.ZodUnion<readonly [z.ZodObject<
|
|
|
4348
3788
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
4349
3789
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
4350
3790
|
}, z.core.$strip>;
|
|
4351
|
-
}, z.core.$strip
|
|
4352
|
-
id: z.ZodString;
|
|
4353
|
-
type: z.ZodEnum<{
|
|
4354
|
-
ITEM: "ITEM";
|
|
4355
|
-
CHOICE: "CHOICE";
|
|
4356
|
-
BUNDLE: "BUNDLE";
|
|
4357
|
-
}>;
|
|
4358
|
-
action: z.ZodEnum<{
|
|
4359
|
-
add: "add";
|
|
4360
|
-
remove: "remove";
|
|
4361
|
-
}>;
|
|
4362
|
-
name: z.ZodArray<z.ZodObject<{
|
|
4363
|
-
locale: z.ZodString;
|
|
4364
|
-
text: z.ZodString;
|
|
4365
|
-
}, z.core.$strip>>;
|
|
4366
|
-
description: z.ZodArray<z.ZodObject<{
|
|
4367
|
-
locale: z.ZodString;
|
|
4368
|
-
text: z.ZodString;
|
|
4369
|
-
}, z.core.$strip>>;
|
|
4370
|
-
variantName: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
4371
|
-
locale: z.ZodString;
|
|
4372
|
-
text: z.ZodString;
|
|
4373
|
-
}, z.core.$strip>>>;
|
|
4374
|
-
countable: z.ZodBoolean;
|
|
4375
|
-
quantity: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
4376
|
-
notes: z.ZodNullable<z.ZodString>;
|
|
4377
|
-
unitPrice: z.ZodString;
|
|
4378
|
-
unitNetPrice: z.ZodString;
|
|
4379
|
-
unitTaxAmount: z.ZodString;
|
|
4380
|
-
unitTaxRate: z.ZodCoercedNumber<unknown>;
|
|
4381
|
-
unitDiscount: z.ZodString;
|
|
4382
|
-
finalUnitPrice: z.ZodString;
|
|
4383
|
-
finalUnitNetPrice: z.ZodString;
|
|
4384
|
-
finalUnitTaxAmount: z.ZodString;
|
|
4385
|
-
amount: z.ZodString;
|
|
4386
|
-
netAmount: z.ZodString;
|
|
4387
|
-
taxAmount: z.ZodString;
|
|
4388
|
-
discount: z.ZodString;
|
|
4389
|
-
totalAmount: z.ZodString;
|
|
4390
|
-
totalNetAmount: z.ZodString;
|
|
4391
|
-
totalTaxAmount: z.ZodString;
|
|
4392
|
-
createdAt: z.ZodString;
|
|
4393
|
-
updatedAt: z.ZodString;
|
|
4394
|
-
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>>>;
|
|
4395
|
-
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>>>;
|
|
4396
|
-
mainLevel: z.ZodBoolean;
|
|
4397
|
-
}, z.core.$strip>>]>;
|
|
3791
|
+
}, z.core.$strip>;
|
|
4398
3792
|
type GetOrderMenuItemsResponse = z.infer<typeof getOrderMenuItemsResponseSchema>;
|
|
4399
3793
|
declare class GetOrderMenuItems extends AbstractApiRequest<typeof getOrderMenuItemsInputSchema, typeof getOrderMenuItemsResponseSchema, GetOrderMenuItemsQueryParams> {
|
|
4400
3794
|
readonly method: "GET";
|
|
4401
3795
|
readonly contentType: "application/json";
|
|
4402
3796
|
readonly accept: "application/json";
|
|
4403
3797
|
readonly inputSchema: z.ZodUndefined;
|
|
4404
|
-
readonly outputSchema: z.
|
|
3798
|
+
readonly outputSchema: z.ZodObject<{
|
|
4405
3799
|
data: z.ZodArray<z.ZodObject<{
|
|
4406
3800
|
id: z.ZodString;
|
|
4407
3801
|
type: z.ZodEnum<{
|
|
@@ -4456,54 +3850,8 @@ declare class GetOrderMenuItems extends AbstractApiRequest<typeof getOrderMenuIt
|
|
|
4456
3850
|
totalItems: z.ZodCoercedNumber<unknown>;
|
|
4457
3851
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
4458
3852
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
4459
|
-
}, z.core.$strip>;
|
|
4460
|
-
}, z.core.$strip
|
|
4461
|
-
id: z.ZodString;
|
|
4462
|
-
type: z.ZodEnum<{
|
|
4463
|
-
ITEM: "ITEM";
|
|
4464
|
-
CHOICE: "CHOICE";
|
|
4465
|
-
BUNDLE: "BUNDLE";
|
|
4466
|
-
}>;
|
|
4467
|
-
action: z.ZodEnum<{
|
|
4468
|
-
add: "add";
|
|
4469
|
-
remove: "remove";
|
|
4470
|
-
}>;
|
|
4471
|
-
name: z.ZodArray<z.ZodObject<{
|
|
4472
|
-
locale: z.ZodString;
|
|
4473
|
-
text: z.ZodString;
|
|
4474
|
-
}, z.core.$strip>>;
|
|
4475
|
-
description: z.ZodArray<z.ZodObject<{
|
|
4476
|
-
locale: z.ZodString;
|
|
4477
|
-
text: z.ZodString;
|
|
4478
|
-
}, z.core.$strip>>;
|
|
4479
|
-
variantName: z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
4480
|
-
locale: z.ZodString;
|
|
4481
|
-
text: z.ZodString;
|
|
4482
|
-
}, z.core.$strip>>>;
|
|
4483
|
-
countable: z.ZodBoolean;
|
|
4484
|
-
quantity: z.ZodNullable<z.ZodCoercedNumber<unknown>>;
|
|
4485
|
-
notes: z.ZodNullable<z.ZodString>;
|
|
4486
|
-
unitPrice: z.ZodString;
|
|
4487
|
-
unitNetPrice: z.ZodString;
|
|
4488
|
-
unitTaxAmount: z.ZodString;
|
|
4489
|
-
unitTaxRate: z.ZodCoercedNumber<unknown>;
|
|
4490
|
-
unitDiscount: z.ZodString;
|
|
4491
|
-
finalUnitPrice: z.ZodString;
|
|
4492
|
-
finalUnitNetPrice: z.ZodString;
|
|
4493
|
-
finalUnitTaxAmount: z.ZodString;
|
|
4494
|
-
amount: z.ZodString;
|
|
4495
|
-
netAmount: z.ZodString;
|
|
4496
|
-
taxAmount: z.ZodString;
|
|
4497
|
-
discount: z.ZodString;
|
|
4498
|
-
totalAmount: z.ZodString;
|
|
4499
|
-
totalNetAmount: z.ZodString;
|
|
4500
|
-
totalTaxAmount: z.ZodString;
|
|
4501
|
-
createdAt: z.ZodString;
|
|
4502
|
-
updatedAt: z.ZodString;
|
|
4503
|
-
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>>>;
|
|
4504
|
-
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>>>;
|
|
4505
|
-
mainLevel: z.ZodBoolean;
|
|
4506
|
-
}, z.core.$strip>>]>;
|
|
3853
|
+
}, z.core.$strip>;
|
|
3854
|
+
}, z.core.$strip>;
|
|
4507
3855
|
readonly querySchema: z.ZodObject<{
|
|
4508
3856
|
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
4509
3857
|
delivery: "delivery";
|
|
@@ -6717,7 +6065,7 @@ declare const getOrdersQuerySchema: z.ZodObject<{
|
|
|
6717
6065
|
type GetOrdersQueryParams = z.infer<typeof getOrdersQuerySchema>;
|
|
6718
6066
|
declare const getOrdersInputSchema: z.ZodUndefined;
|
|
6719
6067
|
type GetOrdersInput = z.infer<typeof getOrdersInputSchema>;
|
|
6720
|
-
declare const getOrdersResponseSchema: z.
|
|
6068
|
+
declare const getOrdersResponseSchema: z.ZodObject<{
|
|
6721
6069
|
data: z.ZodArray<z.ZodObject<{
|
|
6722
6070
|
id: z.ZodString;
|
|
6723
6071
|
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>>;
|
|
@@ -6835,122 +6183,14 @@ declare const getOrdersResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
6835
6183
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
6836
6184
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
6837
6185
|
}, z.core.$strip>;
|
|
6838
|
-
}, z.core.$strip
|
|
6839
|
-
id: z.ZodString;
|
|
6840
|
-
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>>;
|
|
6841
|
-
paymentMethod: z.ZodNullable<z.ZodEnum<{
|
|
6842
|
-
stripe: "stripe";
|
|
6843
|
-
bank_transfer: "bank_transfer";
|
|
6844
|
-
cash: "cash";
|
|
6845
|
-
credit_card: "credit_card";
|
|
6846
|
-
}>>;
|
|
6847
|
-
paymentStatus: z.ZodNullable<z.ZodEnum<{
|
|
6848
|
-
pending: "pending";
|
|
6849
|
-
pending_verification: "pending_verification";
|
|
6850
|
-
paid: "paid";
|
|
6851
|
-
canceled: "canceled";
|
|
6852
|
-
refunded: "refunded";
|
|
6853
|
-
failed: "failed";
|
|
6854
|
-
}>>;
|
|
6855
|
-
type: z.ZodEnum<{
|
|
6856
|
-
delivery: "delivery";
|
|
6857
|
-
take_away: "take_away";
|
|
6858
|
-
kitchen: "kitchen";
|
|
6859
|
-
}>;
|
|
6860
|
-
source: z.ZodEnum<{
|
|
6861
|
-
application: "application";
|
|
6862
|
-
ecommerce: "ecommerce";
|
|
6863
|
-
partner: "partner";
|
|
6864
|
-
}>;
|
|
6865
|
-
partner: z.ZodNullable<z.ZodString>;
|
|
6866
|
-
partnerIdentifier: z.ZodNullable<z.ZodString>;
|
|
6867
|
-
sequenceId: z.ZodNullable<z.ZodString>;
|
|
6868
|
-
displayId: z.ZodNullable<z.ZodString>;
|
|
6869
|
-
customerInfo: z.ZodObject<{
|
|
6870
|
-
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6871
|
-
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6872
|
-
email: z.ZodNullable<z.ZodEmail>;
|
|
6873
|
-
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
6874
|
-
contactNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6875
|
-
contactAccessCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6876
|
-
}, z.core.$strict>;
|
|
6877
|
-
billingInfo: z.ZodNullable<z.ZodObject<{
|
|
6878
|
-
businessName: z.ZodString;
|
|
6879
|
-
vat: z.ZodString;
|
|
6880
|
-
taxCode: z.ZodString;
|
|
6881
|
-
billingAddress: z.ZodObject<{
|
|
6882
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6883
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6884
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6885
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6886
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6887
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6888
|
-
}, z.core.$strip>;
|
|
6889
|
-
billingData: z.ZodObject<{
|
|
6890
|
-
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6891
|
-
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
6892
|
-
}, z.core.$strip>;
|
|
6893
|
-
}, z.core.$strip>>;
|
|
6894
|
-
address: z.ZodNullable<z.ZodObject<{
|
|
6895
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6896
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6897
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6898
|
-
line1: z.ZodString;
|
|
6899
|
-
city: z.ZodString;
|
|
6900
|
-
postalCode: z.ZodString;
|
|
6901
|
-
}, z.core.$strip>>;
|
|
6902
|
-
location: z.ZodNullable<z.ZodObject<{
|
|
6903
|
-
latitude: z.ZodNumber;
|
|
6904
|
-
longitude: z.ZodNumber;
|
|
6905
|
-
}, z.core.$strip>>;
|
|
6906
|
-
status: z.ZodEnum<{
|
|
6907
|
-
pending: "pending";
|
|
6908
|
-
confirmed: "confirmed";
|
|
6909
|
-
rejected: "rejected";
|
|
6910
|
-
}>;
|
|
6911
|
-
preparationStatus: z.ZodEnum<{
|
|
6912
|
-
to_prepare: "to_prepare";
|
|
6913
|
-
in_preparation: "in_preparation";
|
|
6914
|
-
done: "done";
|
|
6915
|
-
}>;
|
|
6916
|
-
preparationTime: z.ZodNullable<z.ZodString>;
|
|
6917
|
-
preparationStartedAt: z.ZodNullable<z.ZodString>;
|
|
6918
|
-
preparationEndedAt: z.ZodNullable<z.ZodString>;
|
|
6919
|
-
requestedDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
6920
|
-
finalDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
6921
|
-
deliveryStartedAt: z.ZodNullable<z.ZodString>;
|
|
6922
|
-
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
6923
|
-
requestedCollectionTime: z.ZodNullable<z.ZodString>;
|
|
6924
|
-
finalCollectionTime: z.ZodNullable<z.ZodString>;
|
|
6925
|
-
collectedAt: z.ZodNullable<z.ZodString>;
|
|
6926
|
-
totalCountableItems: z.ZodCoercedNumber<unknown>;
|
|
6927
|
-
amount: z.ZodString;
|
|
6928
|
-
netAmount: z.ZodString;
|
|
6929
|
-
taxAmount: z.ZodString;
|
|
6930
|
-
discount: z.ZodString;
|
|
6931
|
-
feeAmount: z.ZodString;
|
|
6932
|
-
feeNetAmount: z.ZodString;
|
|
6933
|
-
feeTaxAmount: z.ZodString;
|
|
6934
|
-
totalAmount: z.ZodString;
|
|
6935
|
-
totalNetAmount: z.ZodString;
|
|
6936
|
-
totalTaxAmount: z.ZodString;
|
|
6937
|
-
notes: z.ZodNullable<z.ZodString>;
|
|
6938
|
-
deliveryNotes: z.ZodNullable<z.ZodString>;
|
|
6939
|
-
kitchenNotes: z.ZodNullable<z.ZodString>;
|
|
6940
|
-
maximumAcceptanceDate: z.ZodNullable<z.ZodString>;
|
|
6941
|
-
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
6942
|
-
isRead: z.ZodBoolean;
|
|
6943
|
-
firstReadAt: z.ZodNullable<z.ZodString>;
|
|
6944
|
-
createdAt: z.ZodString;
|
|
6945
|
-
updatedAt: z.ZodString;
|
|
6946
|
-
}, z.core.$strip>>]>;
|
|
6186
|
+
}, z.core.$strip>;
|
|
6947
6187
|
type GetOrdersResponse = z.infer<typeof getOrdersResponseSchema>;
|
|
6948
6188
|
declare class GetOrders extends AbstractApiRequest<typeof getOrdersInputSchema, typeof getOrdersResponseSchema, GetOrdersQueryParams> {
|
|
6949
6189
|
readonly method: "GET";
|
|
6950
6190
|
readonly contentType: "application/json";
|
|
6951
6191
|
readonly accept: "application/json";
|
|
6952
6192
|
readonly inputSchema: z.ZodUndefined;
|
|
6953
|
-
readonly outputSchema: z.
|
|
6193
|
+
readonly outputSchema: z.ZodObject<{
|
|
6954
6194
|
data: z.ZodArray<z.ZodObject<{
|
|
6955
6195
|
id: z.ZodString;
|
|
6956
6196
|
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>>;
|
|
@@ -7030,153 +6270,45 @@ declare class GetOrders extends AbstractApiRequest<typeof getOrdersInputSchema,
|
|
|
7030
6270
|
done: "done";
|
|
7031
6271
|
}>;
|
|
7032
6272
|
preparationTime: z.ZodNullable<z.ZodString>;
|
|
7033
|
-
preparationStartedAt: z.ZodNullable<z.ZodString>;
|
|
7034
|
-
preparationEndedAt: z.ZodNullable<z.ZodString>;
|
|
7035
|
-
requestedDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
7036
|
-
finalDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
7037
|
-
deliveryStartedAt: z.ZodNullable<z.ZodString>;
|
|
7038
|
-
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
7039
|
-
requestedCollectionTime: z.ZodNullable<z.ZodString>;
|
|
7040
|
-
finalCollectionTime: z.ZodNullable<z.ZodString>;
|
|
7041
|
-
collectedAt: z.ZodNullable<z.ZodString>;
|
|
7042
|
-
totalCountableItems: z.ZodCoercedNumber<unknown>;
|
|
7043
|
-
amount: z.ZodString;
|
|
7044
|
-
netAmount: z.ZodString;
|
|
7045
|
-
taxAmount: z.ZodString;
|
|
7046
|
-
discount: z.ZodString;
|
|
7047
|
-
feeAmount: z.ZodString;
|
|
7048
|
-
feeNetAmount: z.ZodString;
|
|
7049
|
-
feeTaxAmount: z.ZodString;
|
|
7050
|
-
totalAmount: z.ZodString;
|
|
7051
|
-
totalNetAmount: z.ZodString;
|
|
7052
|
-
totalTaxAmount: z.ZodString;
|
|
7053
|
-
notes: z.ZodNullable<z.ZodString>;
|
|
7054
|
-
deliveryNotes: z.ZodNullable<z.ZodString>;
|
|
7055
|
-
kitchenNotes: z.ZodNullable<z.ZodString>;
|
|
7056
|
-
maximumAcceptanceDate: z.ZodNullable<z.ZodString>;
|
|
7057
|
-
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
7058
|
-
isRead: z.ZodBoolean;
|
|
7059
|
-
firstReadAt: z.ZodNullable<z.ZodString>;
|
|
7060
|
-
createdAt: z.ZodString;
|
|
7061
|
-
updatedAt: z.ZodString;
|
|
7062
|
-
}, z.core.$strip>>;
|
|
7063
|
-
pagination: z.ZodObject<{
|
|
7064
|
-
from: z.ZodCoercedNumber<unknown>;
|
|
7065
|
-
to: z.ZodCoercedNumber<unknown>;
|
|
7066
|
-
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
7067
|
-
totalItems: z.ZodCoercedNumber<unknown>;
|
|
7068
|
-
currentPage: z.ZodCoercedNumber<unknown>;
|
|
7069
|
-
lastPage: z.ZodCoercedNumber<unknown>;
|
|
7070
|
-
}, z.core.$strip>;
|
|
7071
|
-
}, z.core.$strip
|
|
7072
|
-
id: z.ZodString;
|
|
7073
|
-
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>>;
|
|
7074
|
-
paymentMethod: z.ZodNullable<z.ZodEnum<{
|
|
7075
|
-
stripe: "stripe";
|
|
7076
|
-
bank_transfer: "bank_transfer";
|
|
7077
|
-
cash: "cash";
|
|
7078
|
-
credit_card: "credit_card";
|
|
7079
|
-
}>>;
|
|
7080
|
-
paymentStatus: z.ZodNullable<z.ZodEnum<{
|
|
7081
|
-
pending: "pending";
|
|
7082
|
-
pending_verification: "pending_verification";
|
|
7083
|
-
paid: "paid";
|
|
7084
|
-
canceled: "canceled";
|
|
7085
|
-
refunded: "refunded";
|
|
7086
|
-
failed: "failed";
|
|
7087
|
-
}>>;
|
|
7088
|
-
type: z.ZodEnum<{
|
|
7089
|
-
delivery: "delivery";
|
|
7090
|
-
take_away: "take_away";
|
|
7091
|
-
kitchen: "kitchen";
|
|
7092
|
-
}>;
|
|
7093
|
-
source: z.ZodEnum<{
|
|
7094
|
-
application: "application";
|
|
7095
|
-
ecommerce: "ecommerce";
|
|
7096
|
-
partner: "partner";
|
|
7097
|
-
}>;
|
|
7098
|
-
partner: z.ZodNullable<z.ZodString>;
|
|
7099
|
-
partnerIdentifier: z.ZodNullable<z.ZodString>;
|
|
7100
|
-
sequenceId: z.ZodNullable<z.ZodString>;
|
|
7101
|
-
displayId: z.ZodNullable<z.ZodString>;
|
|
7102
|
-
customerInfo: z.ZodObject<{
|
|
7103
|
-
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7104
|
-
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7105
|
-
email: z.ZodNullable<z.ZodEmail>;
|
|
7106
|
-
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
7107
|
-
contactNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7108
|
-
contactAccessCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7109
|
-
}, z.core.$strict>;
|
|
7110
|
-
billingInfo: z.ZodNullable<z.ZodObject<{
|
|
7111
|
-
businessName: z.ZodString;
|
|
7112
|
-
vat: z.ZodString;
|
|
7113
|
-
taxCode: z.ZodString;
|
|
7114
|
-
billingAddress: z.ZodObject<{
|
|
7115
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7116
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7117
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7118
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7119
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7120
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7121
|
-
}, z.core.$strip>;
|
|
7122
|
-
billingData: z.ZodObject<{
|
|
7123
|
-
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7124
|
-
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
7125
|
-
}, z.core.$strip>;
|
|
7126
|
-
}, z.core.$strip>>;
|
|
7127
|
-
address: z.ZodNullable<z.ZodObject<{
|
|
7128
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7129
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7130
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7131
|
-
line1: z.ZodString;
|
|
7132
|
-
city: z.ZodString;
|
|
7133
|
-
postalCode: z.ZodString;
|
|
7134
|
-
}, z.core.$strip>>;
|
|
7135
|
-
location: z.ZodNullable<z.ZodObject<{
|
|
7136
|
-
latitude: z.ZodNumber;
|
|
7137
|
-
longitude: z.ZodNumber;
|
|
7138
|
-
}, z.core.$strip>>;
|
|
7139
|
-
status: z.ZodEnum<{
|
|
7140
|
-
pending: "pending";
|
|
7141
|
-
confirmed: "confirmed";
|
|
7142
|
-
rejected: "rejected";
|
|
7143
|
-
}>;
|
|
7144
|
-
preparationStatus: z.ZodEnum<{
|
|
7145
|
-
to_prepare: "to_prepare";
|
|
7146
|
-
in_preparation: "in_preparation";
|
|
7147
|
-
done: "done";
|
|
7148
|
-
}>;
|
|
7149
|
-
preparationTime: z.ZodNullable<z.ZodString>;
|
|
7150
|
-
preparationStartedAt: z.ZodNullable<z.ZodString>;
|
|
7151
|
-
preparationEndedAt: z.ZodNullable<z.ZodString>;
|
|
7152
|
-
requestedDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
7153
|
-
finalDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
7154
|
-
deliveryStartedAt: z.ZodNullable<z.ZodString>;
|
|
7155
|
-
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
7156
|
-
requestedCollectionTime: z.ZodNullable<z.ZodString>;
|
|
7157
|
-
finalCollectionTime: z.ZodNullable<z.ZodString>;
|
|
7158
|
-
collectedAt: z.ZodNullable<z.ZodString>;
|
|
7159
|
-
totalCountableItems: z.ZodCoercedNumber<unknown>;
|
|
7160
|
-
amount: z.ZodString;
|
|
7161
|
-
netAmount: z.ZodString;
|
|
7162
|
-
taxAmount: z.ZodString;
|
|
7163
|
-
discount: z.ZodString;
|
|
7164
|
-
feeAmount: z.ZodString;
|
|
7165
|
-
feeNetAmount: z.ZodString;
|
|
7166
|
-
feeTaxAmount: z.ZodString;
|
|
7167
|
-
totalAmount: z.ZodString;
|
|
7168
|
-
totalNetAmount: z.ZodString;
|
|
7169
|
-
totalTaxAmount: z.ZodString;
|
|
7170
|
-
notes: z.ZodNullable<z.ZodString>;
|
|
7171
|
-
deliveryNotes: z.ZodNullable<z.ZodString>;
|
|
7172
|
-
kitchenNotes: z.ZodNullable<z.ZodString>;
|
|
7173
|
-
maximumAcceptanceDate: z.ZodNullable<z.ZodString>;
|
|
7174
|
-
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
7175
|
-
isRead: z.ZodBoolean;
|
|
7176
|
-
firstReadAt: z.ZodNullable<z.ZodString>;
|
|
7177
|
-
createdAt: z.ZodString;
|
|
7178
|
-
updatedAt: z.ZodString;
|
|
7179
|
-
}, z.core.$strip>>]>;
|
|
6273
|
+
preparationStartedAt: z.ZodNullable<z.ZodString>;
|
|
6274
|
+
preparationEndedAt: z.ZodNullable<z.ZodString>;
|
|
6275
|
+
requestedDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
6276
|
+
finalDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
6277
|
+
deliveryStartedAt: z.ZodNullable<z.ZodString>;
|
|
6278
|
+
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
6279
|
+
requestedCollectionTime: z.ZodNullable<z.ZodString>;
|
|
6280
|
+
finalCollectionTime: z.ZodNullable<z.ZodString>;
|
|
6281
|
+
collectedAt: z.ZodNullable<z.ZodString>;
|
|
6282
|
+
totalCountableItems: z.ZodCoercedNumber<unknown>;
|
|
6283
|
+
amount: z.ZodString;
|
|
6284
|
+
netAmount: z.ZodString;
|
|
6285
|
+
taxAmount: z.ZodString;
|
|
6286
|
+
discount: z.ZodString;
|
|
6287
|
+
feeAmount: z.ZodString;
|
|
6288
|
+
feeNetAmount: z.ZodString;
|
|
6289
|
+
feeTaxAmount: z.ZodString;
|
|
6290
|
+
totalAmount: z.ZodString;
|
|
6291
|
+
totalNetAmount: z.ZodString;
|
|
6292
|
+
totalTaxAmount: z.ZodString;
|
|
6293
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
6294
|
+
deliveryNotes: z.ZodNullable<z.ZodString>;
|
|
6295
|
+
kitchenNotes: z.ZodNullable<z.ZodString>;
|
|
6296
|
+
maximumAcceptanceDate: z.ZodNullable<z.ZodString>;
|
|
6297
|
+
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
6298
|
+
isRead: z.ZodBoolean;
|
|
6299
|
+
firstReadAt: z.ZodNullable<z.ZodString>;
|
|
6300
|
+
createdAt: z.ZodString;
|
|
6301
|
+
updatedAt: z.ZodString;
|
|
6302
|
+
}, z.core.$strip>>;
|
|
6303
|
+
pagination: z.ZodObject<{
|
|
6304
|
+
from: z.ZodCoercedNumber<unknown>;
|
|
6305
|
+
to: z.ZodCoercedNumber<unknown>;
|
|
6306
|
+
itemsPerPage: z.ZodCoercedNumber<unknown>;
|
|
6307
|
+
totalItems: z.ZodCoercedNumber<unknown>;
|
|
6308
|
+
currentPage: z.ZodCoercedNumber<unknown>;
|
|
6309
|
+
lastPage: z.ZodCoercedNumber<unknown>;
|
|
6310
|
+
}, z.core.$strip>;
|
|
6311
|
+
}, z.core.$strip>;
|
|
7180
6312
|
readonly querySchema: z.ZodObject<{
|
|
7181
6313
|
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
7182
6314
|
delivery: "delivery";
|
|
@@ -7721,7 +6853,7 @@ declare const getPointOfSaleOrdersQuerySchema: z.ZodObject<{
|
|
|
7721
6853
|
type GetPointOfSaleOrdersQueryParams = z.infer<typeof getPointOfSaleOrdersQuerySchema>;
|
|
7722
6854
|
declare const getPointOfSaleOrdersInputSchema: z.ZodUndefined;
|
|
7723
6855
|
type GetPointOfSaleOrdersInput = z.infer<typeof getPointOfSaleOrdersInputSchema>;
|
|
7724
|
-
declare const getPointOfSaleOrdersResponseSchema: z.
|
|
6856
|
+
declare const getPointOfSaleOrdersResponseSchema: z.ZodObject<{
|
|
7725
6857
|
data: z.ZodArray<z.ZodObject<{
|
|
7726
6858
|
id: z.ZodString;
|
|
7727
6859
|
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>>;
|
|
@@ -7839,122 +6971,14 @@ declare const getPointOfSaleOrdersResponseSchema: z.ZodUnion<readonly [z.ZodObje
|
|
|
7839
6971
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
7840
6972
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
7841
6973
|
}, z.core.$strip>;
|
|
7842
|
-
}, z.core.$strip
|
|
7843
|
-
id: z.ZodString;
|
|
7844
|
-
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>>;
|
|
7845
|
-
paymentMethod: z.ZodNullable<z.ZodEnum<{
|
|
7846
|
-
stripe: "stripe";
|
|
7847
|
-
bank_transfer: "bank_transfer";
|
|
7848
|
-
cash: "cash";
|
|
7849
|
-
credit_card: "credit_card";
|
|
7850
|
-
}>>;
|
|
7851
|
-
paymentStatus: z.ZodNullable<z.ZodEnum<{
|
|
7852
|
-
pending: "pending";
|
|
7853
|
-
pending_verification: "pending_verification";
|
|
7854
|
-
paid: "paid";
|
|
7855
|
-
canceled: "canceled";
|
|
7856
|
-
refunded: "refunded";
|
|
7857
|
-
failed: "failed";
|
|
7858
|
-
}>>;
|
|
7859
|
-
type: z.ZodEnum<{
|
|
7860
|
-
delivery: "delivery";
|
|
7861
|
-
take_away: "take_away";
|
|
7862
|
-
kitchen: "kitchen";
|
|
7863
|
-
}>;
|
|
7864
|
-
source: z.ZodEnum<{
|
|
7865
|
-
application: "application";
|
|
7866
|
-
ecommerce: "ecommerce";
|
|
7867
|
-
partner: "partner";
|
|
7868
|
-
}>;
|
|
7869
|
-
partner: z.ZodNullable<z.ZodString>;
|
|
7870
|
-
partnerIdentifier: z.ZodNullable<z.ZodString>;
|
|
7871
|
-
sequenceId: z.ZodNullable<z.ZodString>;
|
|
7872
|
-
displayId: z.ZodNullable<z.ZodString>;
|
|
7873
|
-
customerInfo: z.ZodObject<{
|
|
7874
|
-
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7875
|
-
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7876
|
-
email: z.ZodNullable<z.ZodEmail>;
|
|
7877
|
-
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
7878
|
-
contactNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7879
|
-
contactAccessCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7880
|
-
}, z.core.$strict>;
|
|
7881
|
-
billingInfo: z.ZodNullable<z.ZodObject<{
|
|
7882
|
-
businessName: z.ZodString;
|
|
7883
|
-
vat: z.ZodString;
|
|
7884
|
-
taxCode: z.ZodString;
|
|
7885
|
-
billingAddress: z.ZodObject<{
|
|
7886
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7887
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7888
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7889
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7890
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7891
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7892
|
-
}, z.core.$strip>;
|
|
7893
|
-
billingData: z.ZodObject<{
|
|
7894
|
-
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7895
|
-
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
7896
|
-
}, z.core.$strip>;
|
|
7897
|
-
}, z.core.$strip>>;
|
|
7898
|
-
address: z.ZodNullable<z.ZodObject<{
|
|
7899
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7900
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7901
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7902
|
-
line1: z.ZodString;
|
|
7903
|
-
city: z.ZodString;
|
|
7904
|
-
postalCode: z.ZodString;
|
|
7905
|
-
}, z.core.$strip>>;
|
|
7906
|
-
location: z.ZodNullable<z.ZodObject<{
|
|
7907
|
-
latitude: z.ZodNumber;
|
|
7908
|
-
longitude: z.ZodNumber;
|
|
7909
|
-
}, z.core.$strip>>;
|
|
7910
|
-
status: z.ZodEnum<{
|
|
7911
|
-
pending: "pending";
|
|
7912
|
-
confirmed: "confirmed";
|
|
7913
|
-
rejected: "rejected";
|
|
7914
|
-
}>;
|
|
7915
|
-
preparationStatus: z.ZodEnum<{
|
|
7916
|
-
to_prepare: "to_prepare";
|
|
7917
|
-
in_preparation: "in_preparation";
|
|
7918
|
-
done: "done";
|
|
7919
|
-
}>;
|
|
7920
|
-
preparationTime: z.ZodNullable<z.ZodString>;
|
|
7921
|
-
preparationStartedAt: z.ZodNullable<z.ZodString>;
|
|
7922
|
-
preparationEndedAt: z.ZodNullable<z.ZodString>;
|
|
7923
|
-
requestedDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
7924
|
-
finalDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
7925
|
-
deliveryStartedAt: z.ZodNullable<z.ZodString>;
|
|
7926
|
-
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
7927
|
-
requestedCollectionTime: z.ZodNullable<z.ZodString>;
|
|
7928
|
-
finalCollectionTime: z.ZodNullable<z.ZodString>;
|
|
7929
|
-
collectedAt: z.ZodNullable<z.ZodString>;
|
|
7930
|
-
totalCountableItems: z.ZodCoercedNumber<unknown>;
|
|
7931
|
-
amount: z.ZodString;
|
|
7932
|
-
netAmount: z.ZodString;
|
|
7933
|
-
taxAmount: z.ZodString;
|
|
7934
|
-
discount: z.ZodString;
|
|
7935
|
-
feeAmount: z.ZodString;
|
|
7936
|
-
feeNetAmount: z.ZodString;
|
|
7937
|
-
feeTaxAmount: z.ZodString;
|
|
7938
|
-
totalAmount: z.ZodString;
|
|
7939
|
-
totalNetAmount: z.ZodString;
|
|
7940
|
-
totalTaxAmount: z.ZodString;
|
|
7941
|
-
notes: z.ZodNullable<z.ZodString>;
|
|
7942
|
-
deliveryNotes: z.ZodNullable<z.ZodString>;
|
|
7943
|
-
kitchenNotes: z.ZodNullable<z.ZodString>;
|
|
7944
|
-
maximumAcceptanceDate: z.ZodNullable<z.ZodString>;
|
|
7945
|
-
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
7946
|
-
isRead: z.ZodBoolean;
|
|
7947
|
-
firstReadAt: z.ZodNullable<z.ZodString>;
|
|
7948
|
-
createdAt: z.ZodString;
|
|
7949
|
-
updatedAt: z.ZodString;
|
|
7950
|
-
}, z.core.$strip>>]>;
|
|
6974
|
+
}, z.core.$strip>;
|
|
7951
6975
|
type GetPointOfSaleOrdersResponse = z.infer<typeof getPointOfSaleOrdersResponseSchema>;
|
|
7952
6976
|
declare class GetPointOfSaleOrders extends AbstractApiRequest<typeof getPointOfSaleOrdersInputSchema, typeof getPointOfSaleOrdersResponseSchema, GetPointOfSaleOrdersQueryParams> {
|
|
7953
6977
|
readonly method: "GET";
|
|
7954
6978
|
readonly contentType: "application/json";
|
|
7955
6979
|
readonly accept: "application/json";
|
|
7956
6980
|
readonly inputSchema: z.ZodUndefined;
|
|
7957
|
-
readonly outputSchema: z.
|
|
6981
|
+
readonly outputSchema: z.ZodObject<{
|
|
7958
6982
|
data: z.ZodArray<z.ZodObject<{
|
|
7959
6983
|
id: z.ZodString;
|
|
7960
6984
|
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>>;
|
|
@@ -8072,115 +7096,7 @@ declare class GetPointOfSaleOrders extends AbstractApiRequest<typeof getPointOfS
|
|
|
8072
7096
|
currentPage: z.ZodCoercedNumber<unknown>;
|
|
8073
7097
|
lastPage: z.ZodCoercedNumber<unknown>;
|
|
8074
7098
|
}, z.core.$strip>;
|
|
8075
|
-
}, z.core.$strip
|
|
8076
|
-
id: z.ZodString;
|
|
8077
|
-
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>>;
|
|
8078
|
-
paymentMethod: z.ZodNullable<z.ZodEnum<{
|
|
8079
|
-
stripe: "stripe";
|
|
8080
|
-
bank_transfer: "bank_transfer";
|
|
8081
|
-
cash: "cash";
|
|
8082
|
-
credit_card: "credit_card";
|
|
8083
|
-
}>>;
|
|
8084
|
-
paymentStatus: z.ZodNullable<z.ZodEnum<{
|
|
8085
|
-
pending: "pending";
|
|
8086
|
-
pending_verification: "pending_verification";
|
|
8087
|
-
paid: "paid";
|
|
8088
|
-
canceled: "canceled";
|
|
8089
|
-
refunded: "refunded";
|
|
8090
|
-
failed: "failed";
|
|
8091
|
-
}>>;
|
|
8092
|
-
type: z.ZodEnum<{
|
|
8093
|
-
delivery: "delivery";
|
|
8094
|
-
take_away: "take_away";
|
|
8095
|
-
kitchen: "kitchen";
|
|
8096
|
-
}>;
|
|
8097
|
-
source: z.ZodEnum<{
|
|
8098
|
-
application: "application";
|
|
8099
|
-
ecommerce: "ecommerce";
|
|
8100
|
-
partner: "partner";
|
|
8101
|
-
}>;
|
|
8102
|
-
partner: z.ZodNullable<z.ZodString>;
|
|
8103
|
-
partnerIdentifier: z.ZodNullable<z.ZodString>;
|
|
8104
|
-
sequenceId: z.ZodNullable<z.ZodString>;
|
|
8105
|
-
displayId: z.ZodNullable<z.ZodString>;
|
|
8106
|
-
customerInfo: z.ZodObject<{
|
|
8107
|
-
firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8108
|
-
lastName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8109
|
-
email: z.ZodNullable<z.ZodEmail>;
|
|
8110
|
-
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
8111
|
-
contactNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8112
|
-
contactAccessCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8113
|
-
}, z.core.$strict>;
|
|
8114
|
-
billingInfo: z.ZodNullable<z.ZodObject<{
|
|
8115
|
-
businessName: z.ZodString;
|
|
8116
|
-
vat: z.ZodString;
|
|
8117
|
-
taxCode: z.ZodString;
|
|
8118
|
-
billingAddress: z.ZodObject<{
|
|
8119
|
-
line1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8120
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8121
|
-
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8122
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8123
|
-
postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8124
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8125
|
-
}, z.core.$strip>;
|
|
8126
|
-
billingData: z.ZodObject<{
|
|
8127
|
-
sdi: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8128
|
-
pec: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
8129
|
-
}, z.core.$strip>;
|
|
8130
|
-
}, z.core.$strip>>;
|
|
8131
|
-
address: z.ZodNullable<z.ZodObject<{
|
|
8132
|
-
line2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8133
|
-
region: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8134
|
-
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8135
|
-
line1: z.ZodString;
|
|
8136
|
-
city: z.ZodString;
|
|
8137
|
-
postalCode: z.ZodString;
|
|
8138
|
-
}, z.core.$strip>>;
|
|
8139
|
-
location: z.ZodNullable<z.ZodObject<{
|
|
8140
|
-
latitude: z.ZodNumber;
|
|
8141
|
-
longitude: z.ZodNumber;
|
|
8142
|
-
}, z.core.$strip>>;
|
|
8143
|
-
status: z.ZodEnum<{
|
|
8144
|
-
pending: "pending";
|
|
8145
|
-
confirmed: "confirmed";
|
|
8146
|
-
rejected: "rejected";
|
|
8147
|
-
}>;
|
|
8148
|
-
preparationStatus: z.ZodEnum<{
|
|
8149
|
-
to_prepare: "to_prepare";
|
|
8150
|
-
in_preparation: "in_preparation";
|
|
8151
|
-
done: "done";
|
|
8152
|
-
}>;
|
|
8153
|
-
preparationTime: z.ZodNullable<z.ZodString>;
|
|
8154
|
-
preparationStartedAt: z.ZodNullable<z.ZodString>;
|
|
8155
|
-
preparationEndedAt: z.ZodNullable<z.ZodString>;
|
|
8156
|
-
requestedDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
8157
|
-
finalDeliveryTime: z.ZodNullable<z.ZodString>;
|
|
8158
|
-
deliveryStartedAt: z.ZodNullable<z.ZodString>;
|
|
8159
|
-
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
8160
|
-
requestedCollectionTime: z.ZodNullable<z.ZodString>;
|
|
8161
|
-
finalCollectionTime: z.ZodNullable<z.ZodString>;
|
|
8162
|
-
collectedAt: z.ZodNullable<z.ZodString>;
|
|
8163
|
-
totalCountableItems: z.ZodCoercedNumber<unknown>;
|
|
8164
|
-
amount: z.ZodString;
|
|
8165
|
-
netAmount: z.ZodString;
|
|
8166
|
-
taxAmount: z.ZodString;
|
|
8167
|
-
discount: z.ZodString;
|
|
8168
|
-
feeAmount: z.ZodString;
|
|
8169
|
-
feeNetAmount: z.ZodString;
|
|
8170
|
-
feeTaxAmount: z.ZodString;
|
|
8171
|
-
totalAmount: z.ZodString;
|
|
8172
|
-
totalNetAmount: z.ZodString;
|
|
8173
|
-
totalTaxAmount: z.ZodString;
|
|
8174
|
-
notes: z.ZodNullable<z.ZodString>;
|
|
8175
|
-
deliveryNotes: z.ZodNullable<z.ZodString>;
|
|
8176
|
-
kitchenNotes: z.ZodNullable<z.ZodString>;
|
|
8177
|
-
maximumAcceptanceDate: z.ZodNullable<z.ZodString>;
|
|
8178
|
-
acceptedAt: z.ZodNullable<z.ZodString>;
|
|
8179
|
-
isRead: z.ZodBoolean;
|
|
8180
|
-
firstReadAt: z.ZodNullable<z.ZodString>;
|
|
8181
|
-
createdAt: z.ZodString;
|
|
8182
|
-
updatedAt: z.ZodString;
|
|
8183
|
-
}, z.core.$strip>>]>;
|
|
7099
|
+
}, z.core.$strip>;
|
|
8184
7100
|
readonly querySchema: z.ZodObject<{
|
|
8185
7101
|
type: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
8186
7102
|
delivery: "delivery";
|