controlresell 2.7.1 → 2.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -5
- package/src/com/controlresell/models/filters/SavedFilters.js +2 -2
- package/src/com/controlresell/models/filters/SavedFilters.js.map +1 -1
- package/src/com/controlresell/models/filters/SavedFilters.ts +2 -2
- package/src/com/controlresell/models/filters/SavedFiltersPayload.js +2 -2
- package/src/com/controlresell/models/filters/SavedFiltersPayload.js.map +1 -1
- package/src/com/controlresell/models/filters/SavedFiltersPayload.ts +2 -2
- package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.d.ts +3 -0
- package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.d.ts.map +1 -1
- package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.js +2 -0
- package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.js.map +1 -1
- package/src/com/controlresell/models/platforms/orders/CreateOrderPayload.ts +2 -0
- package/src/com/controlresell/models/platforms/orders/Order.d.ts +130 -0
- package/src/com/controlresell/models/platforms/orders/Order.d.ts.map +1 -1
- package/src/com/controlresell/models/platforms/orders/Order.js +5 -1
- package/src/com/controlresell/models/platforms/orders/Order.js.map +1 -1
- package/src/com/controlresell/models/platforms/orders/Order.ts +5 -1
- package/src/com/controlresell/models/platforms/orders/OrderFiltersContext.d.ts +19 -0
- package/src/com/controlresell/models/platforms/orders/OrderFiltersContext.d.ts.map +1 -0
- package/src/com/controlresell/models/platforms/orders/OrderFiltersContext.js +14 -0
- package/src/com/controlresell/models/platforms/orders/OrderFiltersContext.js.map +1 -0
- package/src/com/controlresell/models/platforms/orders/OrderFiltersContext.ts +12 -0
- package/src/com/controlresell/models/platforms/orders/OrderType.d.ts +4 -0
- package/src/com/controlresell/models/platforms/orders/OrderType.d.ts.map +1 -0
- package/src/com/controlresell/models/platforms/orders/OrderType.js +8 -0
- package/src/com/controlresell/models/platforms/orders/OrderType.js.map +1 -0
- package/src/com/controlresell/models/platforms/orders/OrderType.ts +6 -0
- package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts +2320 -0
- package/src/com/controlresell/models/platforms/orders/UserOrders.d.ts.map +1 -0
- package/src/com/controlresell/models/platforms/orders/UserOrders.js +13 -0
- package/src/com/controlresell/models/platforms/orders/UserOrders.js.map +1 -0
- package/src/com/controlresell/models/platforms/orders/UserOrders.ts +11 -0
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts +174 -0
- package/src/com/controlresell/models/platforms/orders/items/OrderWithItems.d.ts.map +1 -1
- package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInOrderPayload.d.ts +22 -0
- package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInOrderPayload.d.ts.map +1 -0
- package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInOrderPayload.js +12 -0
- package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInOrderPayload.js.map +1 -0
- package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInOrderPayload.ts +10 -0
- package/src/com/controlresell/models/platforms/pickups/{PickupPointInConversation.d.ts → PickupPointInOrder.d.ts} +15 -6
- package/src/com/controlresell/models/platforms/pickups/PickupPointInOrder.d.ts.map +1 -0
- package/src/com/controlresell/models/platforms/pickups/PickupPointInOrder.js +15 -0
- package/src/com/controlresell/models/platforms/pickups/PickupPointInOrder.js.map +1 -0
- package/src/com/controlresell/models/platforms/pickups/PickupPointInOrder.ts +13 -0
- package/src/com/controlresell/models/users/ws/UserWsPayload.d.ts +24 -24
- package/src/index.d.ts +5 -3
- package/src/index.d.ts.map +1 -1
- package/src/index.js +12 -8
- package/src/index.js.map +1 -1
- package/src/index.ts +5 -3
- package/src/com/controlresell/models/platforms/PlatformFiltersContext.d.ts +0 -16
- package/src/com/controlresell/models/platforms/PlatformFiltersContext.d.ts.map +0 -1
- package/src/com/controlresell/models/platforms/PlatformFiltersContext.js +0 -11
- package/src/com/controlresell/models/platforms/PlatformFiltersContext.js.map +0 -1
- package/src/com/controlresell/models/platforms/PlatformFiltersContext.ts +0 -9
- package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInConversationPayload.d.ts +0 -13
- package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInConversationPayload.d.ts.map +0 -1
- package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInConversationPayload.js +0 -9
- package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInConversationPayload.js.map +0 -1
- package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInConversationPayload.ts +0 -7
- package/src/com/controlresell/models/platforms/pickups/PickupPointInConversation.d.ts.map +0 -1
- package/src/com/controlresell/models/platforms/pickups/PickupPointInConversation.js +0 -12
- package/src/com/controlresell/models/platforms/pickups/PickupPointInConversation.js.map +0 -1
- package/src/com/controlresell/models/platforms/pickups/PickupPointInConversation.ts +0 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserOrders.d.ts","sourceRoot":"","sources":["UserOrders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const OrderWithItems_1 = require("./items/OrderWithItems");
|
|
6
|
+
exports.UserOrdersSchema = zod_1.z.object({
|
|
7
|
+
count: zod_1.z.number(),
|
|
8
|
+
allOrdersCount: zod_1.z.number(),
|
|
9
|
+
rows: zod_1.z.array(OrderWithItems_1.OrderWithItemsSchema),
|
|
10
|
+
currentPage: zod_1.z.number(),
|
|
11
|
+
totalPages: zod_1.z.number()
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=UserOrders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserOrders.js","sourceRoot":"","sources":["UserOrders.ts"],"names":[],"mappings":";;;AAAA,6BAAqB;AACrB,2DAA2D;AAE9C,QAAA,gBAAgB,GAAG,OAAC,CAAC,MAAM,CAAC;IACrC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;IAC1B,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,qCAAoB,CAAC;IACnC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {OrderWithItemsSchema} from "./items/OrderWithItems"
|
|
3
|
+
|
|
4
|
+
export const UserOrdersSchema = z.object({
|
|
5
|
+
count: z.number(),
|
|
6
|
+
allOrdersCount: z.number(),
|
|
7
|
+
rows: z.array(OrderWithItemsSchema),
|
|
8
|
+
currentPage: z.number(),
|
|
9
|
+
totalPages: z.number()
|
|
10
|
+
})
|
|
11
|
+
export type UserOrders = z.infer<typeof UserOrdersSchema>
|
|
@@ -8,6 +8,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
8
8
|
conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
transactionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
10
|
price: z.ZodNumber;
|
|
11
|
+
type: z.ZodEnum<["PURCHASE", "SALE"]>;
|
|
11
12
|
date: z.ZodDate;
|
|
12
13
|
items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
13
14
|
itemOnPlatformId: z.ZodString;
|
|
@@ -268,7 +269,93 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
268
269
|
createdAt: Date;
|
|
269
270
|
} | null | undefined;
|
|
270
271
|
}>, "many">>>;
|
|
272
|
+
pickupPoints: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
273
|
+
pickupPointId: z.ZodString;
|
|
274
|
+
orderId: z.ZodString;
|
|
275
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
276
|
+
isQrcode: z.ZodBoolean;
|
|
277
|
+
trackingLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
278
|
+
availableUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
279
|
+
pickupPoint: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
280
|
+
id: z.ZodString;
|
|
281
|
+
accountId: z.ZodString;
|
|
282
|
+
platformPickupPointId: z.ZodString;
|
|
283
|
+
name: z.ZodString;
|
|
284
|
+
addressLine1: z.ZodString;
|
|
285
|
+
addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
286
|
+
postalCode: z.ZodString;
|
|
287
|
+
city: z.ZodString;
|
|
288
|
+
countryCode: z.ZodString;
|
|
289
|
+
latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
290
|
+
longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
291
|
+
}, "strip", z.ZodTypeAny, {
|
|
292
|
+
id: string;
|
|
293
|
+
name: string;
|
|
294
|
+
accountId: string;
|
|
295
|
+
postalCode: string;
|
|
296
|
+
city: string;
|
|
297
|
+
countryCode: string;
|
|
298
|
+
addressLine1: string;
|
|
299
|
+
platformPickupPointId: string;
|
|
300
|
+
addressLine2?: string | null | undefined;
|
|
301
|
+
latitude?: number | null | undefined;
|
|
302
|
+
longitude?: number | null | undefined;
|
|
303
|
+
}, {
|
|
304
|
+
id: string;
|
|
305
|
+
name: string;
|
|
306
|
+
accountId: string;
|
|
307
|
+
postalCode: string;
|
|
308
|
+
city: string;
|
|
309
|
+
countryCode: string;
|
|
310
|
+
addressLine1: string;
|
|
311
|
+
platformPickupPointId: string;
|
|
312
|
+
addressLine2?: string | null | undefined;
|
|
313
|
+
latitude?: number | null | undefined;
|
|
314
|
+
longitude?: number | null | undefined;
|
|
315
|
+
}>>>;
|
|
316
|
+
}, "strip", z.ZodTypeAny, {
|
|
317
|
+
orderId: string;
|
|
318
|
+
pickupPointId: string;
|
|
319
|
+
isQrcode: boolean;
|
|
320
|
+
code?: string | null | undefined;
|
|
321
|
+
trackingLink?: string | null | undefined;
|
|
322
|
+
availableUntil?: Date | null | undefined;
|
|
323
|
+
pickupPoint?: {
|
|
324
|
+
id: string;
|
|
325
|
+
name: string;
|
|
326
|
+
accountId: string;
|
|
327
|
+
postalCode: string;
|
|
328
|
+
city: string;
|
|
329
|
+
countryCode: string;
|
|
330
|
+
addressLine1: string;
|
|
331
|
+
platformPickupPointId: string;
|
|
332
|
+
addressLine2?: string | null | undefined;
|
|
333
|
+
latitude?: number | null | undefined;
|
|
334
|
+
longitude?: number | null | undefined;
|
|
335
|
+
} | null | undefined;
|
|
336
|
+
}, {
|
|
337
|
+
orderId: string;
|
|
338
|
+
pickupPointId: string;
|
|
339
|
+
isQrcode: boolean;
|
|
340
|
+
code?: string | null | undefined;
|
|
341
|
+
trackingLink?: string | null | undefined;
|
|
342
|
+
availableUntil?: Date | null | undefined;
|
|
343
|
+
pickupPoint?: {
|
|
344
|
+
id: string;
|
|
345
|
+
name: string;
|
|
346
|
+
accountId: string;
|
|
347
|
+
postalCode: string;
|
|
348
|
+
city: string;
|
|
349
|
+
countryCode: string;
|
|
350
|
+
addressLine1: string;
|
|
351
|
+
platformPickupPointId: string;
|
|
352
|
+
addressLine2?: string | null | undefined;
|
|
353
|
+
latitude?: number | null | undefined;
|
|
354
|
+
longitude?: number | null | undefined;
|
|
355
|
+
} | null | undefined;
|
|
356
|
+
}>, "many">>>;
|
|
271
357
|
}, "strip", z.ZodTypeAny, {
|
|
358
|
+
type: "PURCHASE" | "SALE";
|
|
272
359
|
status: "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
|
|
273
360
|
id: string;
|
|
274
361
|
date: Date;
|
|
@@ -330,7 +417,29 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
330
417
|
createdAt: Date;
|
|
331
418
|
} | null | undefined;
|
|
332
419
|
}[] | null | undefined;
|
|
420
|
+
pickupPoints?: {
|
|
421
|
+
orderId: string;
|
|
422
|
+
pickupPointId: string;
|
|
423
|
+
isQrcode: boolean;
|
|
424
|
+
code?: string | null | undefined;
|
|
425
|
+
trackingLink?: string | null | undefined;
|
|
426
|
+
availableUntil?: Date | null | undefined;
|
|
427
|
+
pickupPoint?: {
|
|
428
|
+
id: string;
|
|
429
|
+
name: string;
|
|
430
|
+
accountId: string;
|
|
431
|
+
postalCode: string;
|
|
432
|
+
city: string;
|
|
433
|
+
countryCode: string;
|
|
434
|
+
addressLine1: string;
|
|
435
|
+
platformPickupPointId: string;
|
|
436
|
+
addressLine2?: string | null | undefined;
|
|
437
|
+
latitude?: number | null | undefined;
|
|
438
|
+
longitude?: number | null | undefined;
|
|
439
|
+
} | null | undefined;
|
|
440
|
+
}[] | null | undefined;
|
|
333
441
|
}, {
|
|
442
|
+
type: "PURCHASE" | "SALE";
|
|
334
443
|
status: "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
|
|
335
444
|
id: string;
|
|
336
445
|
date: Date;
|
|
@@ -392,6 +501,27 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
392
501
|
createdAt: Date;
|
|
393
502
|
} | null | undefined;
|
|
394
503
|
}[] | null | undefined;
|
|
504
|
+
pickupPoints?: {
|
|
505
|
+
orderId: string;
|
|
506
|
+
pickupPointId: string;
|
|
507
|
+
isQrcode: boolean;
|
|
508
|
+
code?: string | null | undefined;
|
|
509
|
+
trackingLink?: string | null | undefined;
|
|
510
|
+
availableUntil?: Date | null | undefined;
|
|
511
|
+
pickupPoint?: {
|
|
512
|
+
id: string;
|
|
513
|
+
name: string;
|
|
514
|
+
accountId: string;
|
|
515
|
+
postalCode: string;
|
|
516
|
+
city: string;
|
|
517
|
+
countryCode: string;
|
|
518
|
+
addressLine1: string;
|
|
519
|
+
platformPickupPointId: string;
|
|
520
|
+
addressLine2?: string | null | undefined;
|
|
521
|
+
latitude?: number | null | undefined;
|
|
522
|
+
longitude?: number | null | undefined;
|
|
523
|
+
} | null | undefined;
|
|
524
|
+
}[] | null | undefined;
|
|
395
525
|
}>;
|
|
396
526
|
items: z.ZodArray<z.ZodObject<{
|
|
397
527
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
@@ -1375,6 +1505,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1375
1505
|
}[] | null | undefined;
|
|
1376
1506
|
}[];
|
|
1377
1507
|
order: {
|
|
1508
|
+
type: "PURCHASE" | "SALE";
|
|
1378
1509
|
status: "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
|
|
1379
1510
|
id: string;
|
|
1380
1511
|
date: Date;
|
|
@@ -1436,6 +1567,27 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1436
1567
|
createdAt: Date;
|
|
1437
1568
|
} | null | undefined;
|
|
1438
1569
|
}[] | null | undefined;
|
|
1570
|
+
pickupPoints?: {
|
|
1571
|
+
orderId: string;
|
|
1572
|
+
pickupPointId: string;
|
|
1573
|
+
isQrcode: boolean;
|
|
1574
|
+
code?: string | null | undefined;
|
|
1575
|
+
trackingLink?: string | null | undefined;
|
|
1576
|
+
availableUntil?: Date | null | undefined;
|
|
1577
|
+
pickupPoint?: {
|
|
1578
|
+
id: string;
|
|
1579
|
+
name: string;
|
|
1580
|
+
accountId: string;
|
|
1581
|
+
postalCode: string;
|
|
1582
|
+
city: string;
|
|
1583
|
+
countryCode: string;
|
|
1584
|
+
addressLine1: string;
|
|
1585
|
+
platformPickupPointId: string;
|
|
1586
|
+
addressLine2?: string | null | undefined;
|
|
1587
|
+
latitude?: number | null | undefined;
|
|
1588
|
+
longitude?: number | null | undefined;
|
|
1589
|
+
} | null | undefined;
|
|
1590
|
+
}[] | null | undefined;
|
|
1439
1591
|
};
|
|
1440
1592
|
}, {
|
|
1441
1593
|
items: {
|
|
@@ -1589,6 +1741,7 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1589
1741
|
}[] | null | undefined;
|
|
1590
1742
|
}[];
|
|
1591
1743
|
order: {
|
|
1744
|
+
type: "PURCHASE" | "SALE";
|
|
1592
1745
|
status: "PAYMENT_VALIDATED" | "ORDER_CANCELED" | "SHIPPING_LABEL_SENT_TO_SELLER" | "ORDER_SHIPPED" | "DELIVERED_TO_POST_OFFICE_OR_PICKUP_POINT" | "ORDER_RECEIVED" | "ORDER_FINALIZED" | "RETURN_INITIATED" | "REFUND_DONE" | "ORDER_CANCELED_ITEM_UNAVAILABLE" | "ORDER_CANCELED_BY_VINTED" | "ORDER_DISPUTE_STARTED" | "ORDER_CANCELED_DUE_TO_LATE_SHIPPING" | "SHIPPING_LABEL_ORDERED" | "UNKNOWN";
|
|
1593
1746
|
id: string;
|
|
1594
1747
|
date: Date;
|
|
@@ -1650,6 +1803,27 @@ export declare const OrderWithItemsSchema: z.ZodObject<{
|
|
|
1650
1803
|
createdAt: Date;
|
|
1651
1804
|
} | null | undefined;
|
|
1652
1805
|
}[] | null | undefined;
|
|
1806
|
+
pickupPoints?: {
|
|
1807
|
+
orderId: string;
|
|
1808
|
+
pickupPointId: string;
|
|
1809
|
+
isQrcode: boolean;
|
|
1810
|
+
code?: string | null | undefined;
|
|
1811
|
+
trackingLink?: string | null | undefined;
|
|
1812
|
+
availableUntil?: Date | null | undefined;
|
|
1813
|
+
pickupPoint?: {
|
|
1814
|
+
id: string;
|
|
1815
|
+
name: string;
|
|
1816
|
+
accountId: string;
|
|
1817
|
+
postalCode: string;
|
|
1818
|
+
city: string;
|
|
1819
|
+
countryCode: string;
|
|
1820
|
+
addressLine1: string;
|
|
1821
|
+
platformPickupPointId: string;
|
|
1822
|
+
addressLine2?: string | null | undefined;
|
|
1823
|
+
latitude?: number | null | undefined;
|
|
1824
|
+
longitude?: number | null | undefined;
|
|
1825
|
+
} | null | undefined;
|
|
1826
|
+
}[] | null | undefined;
|
|
1653
1827
|
};
|
|
1654
1828
|
}>;
|
|
1655
1829
|
export type OrderWithItems = z.infer<typeof OrderWithItemsSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrderWithItems.d.ts","sourceRoot":"","sources":["OrderWithItems.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAIrB,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"OrderWithItems.d.ts","sourceRoot":"","sources":["OrderWithItems.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAIrB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG/B,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CreatePickupPointInOrderPayloadSchema: z.ZodObject<{
|
|
3
|
+
pickupPointId: z.ZodString;
|
|
4
|
+
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
isQrcode: z.ZodBoolean;
|
|
6
|
+
trackingLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
availableUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
pickupPointId: string;
|
|
10
|
+
isQrcode: boolean;
|
|
11
|
+
code?: string | null | undefined;
|
|
12
|
+
trackingLink?: string | null | undefined;
|
|
13
|
+
availableUntil?: Date | null | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
pickupPointId: string;
|
|
16
|
+
isQrcode: boolean;
|
|
17
|
+
code?: string | null | undefined;
|
|
18
|
+
trackingLink?: string | null | undefined;
|
|
19
|
+
availableUntil?: Date | null | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
export type CreatePickupPointInOrderPayload = z.infer<typeof CreatePickupPointInOrderPayloadSchema>;
|
|
22
|
+
//# sourceMappingURL=CreatePickupPointInOrderPayload.d.ts.map
|
package/src/com/controlresell/models/platforms/pickups/CreatePickupPointInOrderPayload.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreatePickupPointInOrderPayload.d.ts","sourceRoot":"","sources":["CreatePickupPointInOrderPayload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAErB,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;EAMhD,CAAA;AACF,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreatePickupPointInOrderPayloadSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.CreatePickupPointInOrderPayloadSchema = zod_1.z.object({
|
|
6
|
+
pickupPointId: zod_1.z.string().uuid(),
|
|
7
|
+
code: zod_1.z.string().nullish(),
|
|
8
|
+
isQrcode: zod_1.z.boolean(),
|
|
9
|
+
trackingLink: zod_1.z.string().nullish(),
|
|
10
|
+
availableUntil: zod_1.z.coerce.date().nullish()
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=CreatePickupPointInOrderPayload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreatePickupPointInOrderPayload.js","sourceRoot":"","sources":["CreatePickupPointInOrderPayload.ts"],"names":[],"mappings":";;;AAAA,6BAAqB;AAER,QAAA,qCAAqC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1D,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC1B,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;IACrB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAClC,cAAc,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE;CAC5C,CAAC,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
|
|
3
|
+
export const CreatePickupPointInOrderPayloadSchema = z.object({
|
|
4
|
+
pickupPointId: z.string().uuid(),
|
|
5
|
+
code: z.string().nullish(),
|
|
6
|
+
isQrcode: z.boolean(),
|
|
7
|
+
trackingLink: z.string().nullish(),
|
|
8
|
+
availableUntil: z.coerce.date().nullish()
|
|
9
|
+
})
|
|
10
|
+
export type CreatePickupPointInOrderPayload = z.infer<typeof CreatePickupPointInOrderPayloadSchema>
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const PickupPointInOrderSchema: z.ZodObject<{
|
|
3
3
|
pickupPointId: z.ZodString;
|
|
4
|
-
|
|
4
|
+
orderId: z.ZodString;
|
|
5
5
|
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
|
+
isQrcode: z.ZodBoolean;
|
|
7
|
+
trackingLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
availableUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
6
9
|
pickupPoint: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7
10
|
id: z.ZodString;
|
|
8
11
|
accountId: z.ZodString;
|
|
@@ -41,9 +44,12 @@ export declare const PickupPointInConversationSchema: z.ZodObject<{
|
|
|
41
44
|
longitude?: number | null | undefined;
|
|
42
45
|
}>>>;
|
|
43
46
|
}, "strip", z.ZodTypeAny, {
|
|
44
|
-
|
|
47
|
+
orderId: string;
|
|
45
48
|
pickupPointId: string;
|
|
49
|
+
isQrcode: boolean;
|
|
46
50
|
code?: string | null | undefined;
|
|
51
|
+
trackingLink?: string | null | undefined;
|
|
52
|
+
availableUntil?: Date | null | undefined;
|
|
47
53
|
pickupPoint?: {
|
|
48
54
|
id: string;
|
|
49
55
|
name: string;
|
|
@@ -58,9 +64,12 @@ export declare const PickupPointInConversationSchema: z.ZodObject<{
|
|
|
58
64
|
longitude?: number | null | undefined;
|
|
59
65
|
} | null | undefined;
|
|
60
66
|
}, {
|
|
61
|
-
|
|
67
|
+
orderId: string;
|
|
62
68
|
pickupPointId: string;
|
|
69
|
+
isQrcode: boolean;
|
|
63
70
|
code?: string | null | undefined;
|
|
71
|
+
trackingLink?: string | null | undefined;
|
|
72
|
+
availableUntil?: Date | null | undefined;
|
|
64
73
|
pickupPoint?: {
|
|
65
74
|
id: string;
|
|
66
75
|
name: string;
|
|
@@ -75,5 +84,5 @@ export declare const PickupPointInConversationSchema: z.ZodObject<{
|
|
|
75
84
|
longitude?: number | null | undefined;
|
|
76
85
|
} | null | undefined;
|
|
77
86
|
}>;
|
|
78
|
-
export type
|
|
79
|
-
//# sourceMappingURL=
|
|
87
|
+
export type PickupPointInOrder = z.infer<typeof PickupPointInOrderSchema>;
|
|
88
|
+
//# sourceMappingURL=PickupPointInOrder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PickupPointInOrder.d.ts","sourceRoot":"","sources":["PickupPointInOrder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAA;AAGrB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQnC,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PickupPointInOrderSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const PickupPoint_1 = require("./PickupPoint");
|
|
6
|
+
exports.PickupPointInOrderSchema = zod_1.z.object({
|
|
7
|
+
pickupPointId: zod_1.z.string().uuid(),
|
|
8
|
+
orderId: zod_1.z.string().uuid(),
|
|
9
|
+
code: zod_1.z.string().nullish(),
|
|
10
|
+
isQrcode: zod_1.z.boolean(),
|
|
11
|
+
trackingLink: zod_1.z.string().nullish(),
|
|
12
|
+
availableUntil: zod_1.z.coerce.date().nullish(),
|
|
13
|
+
pickupPoint: PickupPoint_1.PickupPointSchema.nullish()
|
|
14
|
+
});
|
|
15
|
+
//# sourceMappingURL=PickupPointInOrder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PickupPointInOrder.js","sourceRoot":"","sources":["PickupPointInOrder.ts"],"names":[],"mappings":";;;AAAA,6BAAqB;AACrB,+CAA+C;AAElC,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,aAAa,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC1B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAC1B,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;IACrB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IAClC,cAAc,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE;IACzC,WAAW,EAAE,+BAAiB,CAAC,OAAO,EAAE;CAC3C,CAAC,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {z} from "zod"
|
|
2
|
+
import {PickupPointSchema} from "./PickupPoint"
|
|
3
|
+
|
|
4
|
+
export const PickupPointInOrderSchema = z.object({
|
|
5
|
+
pickupPointId: z.string().uuid(),
|
|
6
|
+
orderId: z.string().uuid(),
|
|
7
|
+
code: z.string().nullish(),
|
|
8
|
+
isQrcode: z.boolean(),
|
|
9
|
+
trackingLink: z.string().nullish(),
|
|
10
|
+
availableUntil: z.coerce.date().nullish(),
|
|
11
|
+
pickupPoint: PickupPointSchema.nullish()
|
|
12
|
+
})
|
|
13
|
+
export type PickupPointInOrder = z.infer<typeof PickupPointInOrderSchema>
|