aivilife-contracts 6.0.0 → 6.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/auth/index.d.mts +2 -2
- package/dist/auth/index.d.ts +2 -2
- package/dist/auth/index.js +172 -1
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/index.mjs +172 -1
- package/dist/auth/index.mjs.map +1 -1
- package/dist/box/index.d.mts +6 -6
- package/dist/box/index.d.ts +6 -6
- package/dist/{index-DC3vBOFB.d.mts → index-Bps4o0Og.d.mts} +1 -1
- package/dist/{index-mteQAHWO.d.ts → index-C0sjQqe7.d.ts} +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +298 -101
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +273 -102
- package/dist/index.mjs.map +1 -1
- package/dist/marketing/index.d.mts +487 -3
- package/dist/marketing/index.d.ts +487 -3
- package/dist/marketing/index.js +197 -0
- package/dist/marketing/index.js.map +1 -1
- package/dist/marketing/index.mjs +172 -1
- package/dist/marketing/index.mjs.map +1 -1
- package/dist/marketing.enums-pDwGbGCG.d.mts +58 -0
- package/dist/marketing.enums-pDwGbGCG.d.ts +58 -0
- package/dist/order/index.d.mts +2 -2
- package/dist/order/index.d.ts +2 -2
- package/package.json +1 -1
- package/dist/marketing.enums-CNJ2Ayc_.d.mts +0 -26
- package/dist/marketing.enums-CNJ2Ayc_.d.ts +0 -26
package/dist/index.mjs
CHANGED
|
@@ -207,10 +207,46 @@ var MarketingRankRewardType = /* @__PURE__ */ ((MarketingRankRewardType2) => {
|
|
|
207
207
|
MarketingRankRewardType2["PV_AND_GIFT"] = "PV_AND_GIFT";
|
|
208
208
|
return MarketingRankRewardType2;
|
|
209
209
|
})(MarketingRankRewardType || {});
|
|
210
|
+
var MarketingStructureKind = /* @__PURE__ */ ((MarketingStructureKind2) => {
|
|
211
|
+
MarketingStructureKind2["REFERRAL"] = "REFERRAL";
|
|
212
|
+
MarketingStructureKind2["BINARY"] = "BINARY";
|
|
213
|
+
return MarketingStructureKind2;
|
|
214
|
+
})(MarketingStructureKind || {});
|
|
215
|
+
var MarketingPartnerStage = /* @__PURE__ */ ((MarketingPartnerStage2) => {
|
|
216
|
+
MarketingPartnerStage2["REGISTERED"] = "REGISTERED";
|
|
217
|
+
MarketingPartnerStage2["INITIAL_PAYMENT_AWAITING_RECEIPT"] = "INITIAL_PAYMENT_AWAITING_RECEIPT";
|
|
218
|
+
MarketingPartnerStage2["INITIAL_PAYMENT_UNDER_REVIEW"] = "INITIAL_PAYMENT_UNDER_REVIEW";
|
|
219
|
+
MarketingPartnerStage2["INITIAL_PAYMENT_REJECTED"] = "INITIAL_PAYMENT_REJECTED";
|
|
220
|
+
MarketingPartnerStage2["ACTIVE"] = "ACTIVE";
|
|
221
|
+
MarketingPartnerStage2["UPGRADE_PAYMENT_AWAITING_RECEIPT"] = "UPGRADE_PAYMENT_AWAITING_RECEIPT";
|
|
222
|
+
MarketingPartnerStage2["UPGRADE_PAYMENT_UNDER_REVIEW"] = "UPGRADE_PAYMENT_UNDER_REVIEW";
|
|
223
|
+
MarketingPartnerStage2["UPGRADE_PAYMENT_REJECTED"] = "UPGRADE_PAYMENT_REJECTED";
|
|
224
|
+
return MarketingPartnerStage2;
|
|
225
|
+
})(MarketingPartnerStage || {});
|
|
226
|
+
var MarketingBonusType = /* @__PURE__ */ ((MarketingBonusType2) => {
|
|
227
|
+
MarketingBonusType2["REFERRAL"] = "REFERRAL";
|
|
228
|
+
MarketingBonusType2["BINARY"] = "BINARY";
|
|
229
|
+
MarketingBonusType2["MATCHING"] = "MATCHING";
|
|
230
|
+
MarketingBonusType2["EXTRA"] = "EXTRA";
|
|
231
|
+
MarketingBonusType2["STRUCTURAL"] = "STRUCTURAL";
|
|
232
|
+
MarketingBonusType2["STATUS"] = "STATUS";
|
|
233
|
+
return MarketingBonusType2;
|
|
234
|
+
})(MarketingBonusType || {});
|
|
235
|
+
var MarketingBonusPeriod = /* @__PURE__ */ ((MarketingBonusPeriod2) => {
|
|
236
|
+
MarketingBonusPeriod2["LAST_7_DAYS"] = "LAST_7_DAYS";
|
|
237
|
+
MarketingBonusPeriod2["LAST_30_DAYS"] = "LAST_30_DAYS";
|
|
238
|
+
MarketingBonusPeriod2["LAST_90_DAYS"] = "LAST_90_DAYS";
|
|
239
|
+
MarketingBonusPeriod2["ALL_TIME"] = "ALL_TIME";
|
|
240
|
+
return MarketingBonusPeriod2;
|
|
241
|
+
})(MarketingBonusPeriod || {});
|
|
210
242
|
var BinaryBranchSchema = z.enum(BinaryBranch);
|
|
211
243
|
var MarketingMemberStatusSchema = z.enum(MarketingMemberStatus);
|
|
212
244
|
var MarketingVolumeKindSchema = z.enum(MarketingVolumeKind);
|
|
213
245
|
var MarketingRankRewardTypeSchema = z.enum(MarketingRankRewardType);
|
|
246
|
+
var MarketingStructureKindSchema = z.enum(MarketingStructureKind);
|
|
247
|
+
var MarketingPartnerStageSchema = z.enum(MarketingPartnerStage);
|
|
248
|
+
var MarketingBonusTypeSchema = z.enum(MarketingBonusType);
|
|
249
|
+
var MarketingBonusPeriodSchema = z.enum(MarketingBonusPeriod);
|
|
214
250
|
var MarketingPublicIdentifierSchema = z.string().trim().min(3).max(255);
|
|
215
251
|
var MarketingInvitationTokenSchema = z.string().trim().regex(/^[A-Za-z0-9_-]{43}$/);
|
|
216
252
|
var ManualMarketingPlacementSchema = z.object({
|
|
@@ -354,6 +390,141 @@ var MarketingRankListResponseSchema = z.object({
|
|
|
354
390
|
pageCount: z.number().int().nonnegative()
|
|
355
391
|
})
|
|
356
392
|
});
|
|
393
|
+
var PvSchema2 = z.string().regex(/^\d{1,16}\.\d{2}$/);
|
|
394
|
+
var PublicIdSchema2 = z.uuid();
|
|
395
|
+
var MarketingStructureQuerySchema = z.object({
|
|
396
|
+
rootUuid: z.string().trim().min(1).max(255).optional(),
|
|
397
|
+
depth: z.coerce.number().int().min(1).max(10).default(3)
|
|
398
|
+
});
|
|
399
|
+
var MarketingStructureSearchQuerySchema = z.object({
|
|
400
|
+
query: z.string().trim().min(2).max(255),
|
|
401
|
+
kind: MarketingStructureKindSchema,
|
|
402
|
+
limit: z.coerce.number().int().min(1).max(25).default(10)
|
|
403
|
+
});
|
|
404
|
+
var MarketingStructureMemberParamSchema = z.object({
|
|
405
|
+
uuid: z.string().trim().min(1).max(255)
|
|
406
|
+
});
|
|
407
|
+
var MarketingStructureMemberQuerySchema = z.object({
|
|
408
|
+
kind: MarketingStructureKindSchema
|
|
409
|
+
});
|
|
410
|
+
var MarketingStructureRankSchema = z.object({
|
|
411
|
+
publicId: PublicIdSchema2,
|
|
412
|
+
code: z.string().trim().min(1).max(64),
|
|
413
|
+
name: z.string().trim().min(1).max(160),
|
|
414
|
+
maxBinaryPayoutPv: PvSchema2.nullable()
|
|
415
|
+
});
|
|
416
|
+
var MarketingStructureBoxSchema = z.object({
|
|
417
|
+
publicId: PublicIdSchema2,
|
|
418
|
+
code: z.string().trim().min(1).max(64),
|
|
419
|
+
name: z.string().trim().min(1).max(160),
|
|
420
|
+
pvBudget: PvSchema2
|
|
421
|
+
});
|
|
422
|
+
var MarketingStructureBinaryVolumesSchema = z.object({
|
|
423
|
+
payableLeftPv: PvSchema2,
|
|
424
|
+
payableRightPv: PvSchema2,
|
|
425
|
+
cumulativeLeftPv: PvSchema2,
|
|
426
|
+
cumulativeRightPv: PvSchema2
|
|
427
|
+
});
|
|
428
|
+
var MarketingStructureMemberSchema = z.object({
|
|
429
|
+
uuid: z.string().trim().min(1).max(255),
|
|
430
|
+
login: z.string().trim().min(1).max(255),
|
|
431
|
+
firstName: z.string().trim().max(255),
|
|
432
|
+
lastName: z.string().trim().max(255),
|
|
433
|
+
marketingStatus: MarketingMemberStatusSchema,
|
|
434
|
+
stage: MarketingPartnerStageSchema,
|
|
435
|
+
parentUuid: z.string().trim().min(1).max(255).nullable(),
|
|
436
|
+
directSponsorUuid: z.string().trim().min(1).max(255).nullable(),
|
|
437
|
+
preferredBranch: BinaryBranchSchema.nullable(),
|
|
438
|
+
binaryBranch: BinaryBranchSchema.nullable(),
|
|
439
|
+
isBinaryPlaced: z.boolean(),
|
|
440
|
+
depth: z.number().int().nonnegative(),
|
|
441
|
+
hasChildren: z.boolean(),
|
|
442
|
+
rank: MarketingStructureRankSchema,
|
|
443
|
+
activeBox: MarketingStructureBoxSchema.nullable(),
|
|
444
|
+
pendingBox: MarketingStructureBoxSchema.nullable(),
|
|
445
|
+
hasAvatar: z.boolean(),
|
|
446
|
+
binaryVolumes: MarketingStructureBinaryVolumesSchema.nullable(),
|
|
447
|
+
joinedAt: z.iso.datetime(),
|
|
448
|
+
activatedAt: z.iso.datetime().nullable()
|
|
449
|
+
});
|
|
450
|
+
var MarketingStructureSummarySchema = z.object({
|
|
451
|
+
directPartners: z.number().int().nonnegative(),
|
|
452
|
+
visiblePartners: z.number().int().nonnegative(),
|
|
453
|
+
activePartners: z.number().int().nonnegative(),
|
|
454
|
+
awaitingPayment: z.number().int().nonnegative(),
|
|
455
|
+
registeredOnly: z.number().int().nonnegative()
|
|
456
|
+
});
|
|
457
|
+
var ReferralStructureResponseSchema = z.object({
|
|
458
|
+
kind: z.literal("REFERRAL"),
|
|
459
|
+
root: MarketingStructureMemberSchema,
|
|
460
|
+
nodes: z.array(MarketingStructureMemberSchema),
|
|
461
|
+
summary: MarketingStructureSummarySchema,
|
|
462
|
+
requestedDepth: z.number().int().min(1).max(10),
|
|
463
|
+
generatedAt: z.iso.datetime()
|
|
464
|
+
});
|
|
465
|
+
var BinaryStructureMetricsSchema = z.object({
|
|
466
|
+
payableLeftPv: PvSchema2,
|
|
467
|
+
payableRightPv: PvSchema2,
|
|
468
|
+
cumulativeLeftPv: PvSchema2,
|
|
469
|
+
cumulativeRightPv: PvSchema2,
|
|
470
|
+
weakBranch: BinaryBranchSchema.nullable(),
|
|
471
|
+
weakBranchPv: PvSchema2,
|
|
472
|
+
binaryPercent: z.number().int().min(0).max(100),
|
|
473
|
+
payoutLimitPv: PvSchema2.nullable(),
|
|
474
|
+
estimatedPayoutPv: PvSchema2,
|
|
475
|
+
leftPartners: z.number().int().nonnegative(),
|
|
476
|
+
rightPartners: z.number().int().nonnegative(),
|
|
477
|
+
currentCycleNumber: z.number().int().positive().nullable(),
|
|
478
|
+
currentCycleClosesAt: z.iso.datetime().nullable()
|
|
479
|
+
});
|
|
480
|
+
var BinaryStructureResponseSchema = z.object({
|
|
481
|
+
kind: z.literal("BINARY"),
|
|
482
|
+
root: MarketingStructureMemberSchema,
|
|
483
|
+
nodes: z.array(MarketingStructureMemberSchema),
|
|
484
|
+
pendingPlacements: z.array(MarketingStructureMemberSchema),
|
|
485
|
+
summary: MarketingStructureSummarySchema,
|
|
486
|
+
metrics: BinaryStructureMetricsSchema,
|
|
487
|
+
requestedDepth: z.number().int().min(1).max(10),
|
|
488
|
+
generatedAt: z.iso.datetime()
|
|
489
|
+
});
|
|
490
|
+
var MarketingStructureSearchResponseSchema = z.object({
|
|
491
|
+
items: z.array(MarketingStructureMemberSchema)
|
|
492
|
+
});
|
|
493
|
+
var MarketingStructureMemberDetailSchema = MarketingStructureMemberSchema.extend({
|
|
494
|
+
email: z.email(),
|
|
495
|
+
phoneNumber: z.string().trim().max(20),
|
|
496
|
+
countryCode: z.string().trim().length(2),
|
|
497
|
+
country: z.string().trim().max(255),
|
|
498
|
+
city: z.string().trim().max(255),
|
|
499
|
+
whatsappLink: z.string().trim().max(255).nullable(),
|
|
500
|
+
instagramLink: z.string().trim().max(255).nullable(),
|
|
501
|
+
telegramLink: z.string().trim().max(255).nullable()
|
|
502
|
+
});
|
|
503
|
+
var MarketingStructureEventSchema = z.object({
|
|
504
|
+
type: z.literal("STRUCTURE_CHANGED"),
|
|
505
|
+
revision: z.string().uuid(),
|
|
506
|
+
occurredAt: z.iso.datetime()
|
|
507
|
+
});
|
|
508
|
+
var PvSchema3 = z.string().regex(/^\d{1,16}\.\d{2}$/);
|
|
509
|
+
var MarketingBonusSummaryQuerySchema = z.object({
|
|
510
|
+
period: MarketingBonusPeriodSchema.default("LAST_30_DAYS" /* LAST_30_DAYS */)
|
|
511
|
+
});
|
|
512
|
+
var MarketingBonusSummaryItemSchema = z.object({
|
|
513
|
+
type: MarketingBonusTypeSchema,
|
|
514
|
+
amountPv: PvSchema3,
|
|
515
|
+
transactionCount: z.number().int().nonnegative(),
|
|
516
|
+
shareBasisPoints: z.number().int().min(0).max(1e4),
|
|
517
|
+
lastCreditedAt: z.iso.datetime().nullable()
|
|
518
|
+
});
|
|
519
|
+
var MarketingBonusSummaryResponseSchema = z.object({
|
|
520
|
+
period: MarketingBonusPeriodSchema,
|
|
521
|
+
from: z.iso.datetime().nullable(),
|
|
522
|
+
to: z.iso.datetime(),
|
|
523
|
+
totalPv: PvSchema3,
|
|
524
|
+
transactionCount: z.number().int().nonnegative(),
|
|
525
|
+
items: z.array(MarketingBonusSummaryItemSchema),
|
|
526
|
+
generatedAt: z.iso.datetime()
|
|
527
|
+
});
|
|
357
528
|
|
|
358
529
|
// src/auth/sign-up.contract.ts
|
|
359
530
|
var RegistrationEmailSchema = z.email("\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u043E\u0440\u0440\u0435\u043A\u0442\u043D\u044B\u0439 email").trim().toLowerCase();
|
|
@@ -624,9 +795,9 @@ var ProductMediaRole = {
|
|
|
624
795
|
};
|
|
625
796
|
var CodeSchema2 = z.string().trim().toUpperCase().regex(/^[A-Z0-9][A-Z0-9_-]{1,63}$/);
|
|
626
797
|
var SlugSchema = z.string().trim().toLowerCase().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/).max(160);
|
|
627
|
-
var
|
|
798
|
+
var PublicIdSchema3 = z.uuid();
|
|
628
799
|
var MoneySchema = z.string().trim().regex(/^\d{1,16}(?:\.\d{1,2})?$/).refine((value) => Number(value) > 0, "\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0443\u043B\u044F");
|
|
629
|
-
var
|
|
800
|
+
var PvSchema4 = z.string().trim().regex(/^\d{1,16}(?:\.\d{1,2})?$/).refine((value) => Number(value) > 0, "PV \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0443\u043B\u044F");
|
|
630
801
|
var PositiveDecimalSchema = z.string().trim().regex(/^\d{1,9}(?:\.\d{1,3})?$/).refine((value) => Number(value) > 0, "\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0443\u043B\u044F");
|
|
631
802
|
var ProductCategoryTranslationInputSchema = z.object({
|
|
632
803
|
locale: AppLocaleSchema,
|
|
@@ -668,7 +839,7 @@ var ProductVariantFieldsSchema = z.object({
|
|
|
668
839
|
unit: z.enum(ProductUnit),
|
|
669
840
|
netWeightGrams: PositiveDecimalSchema.nullable().optional(),
|
|
670
841
|
priceUsd: MoneySchema,
|
|
671
|
-
pv:
|
|
842
|
+
pv: PvSchema4,
|
|
672
843
|
shippingWeightGrams: PositiveDecimalSchema.nullable().optional(),
|
|
673
844
|
lengthMm: PositiveDecimalSchema.nullable().optional(),
|
|
674
845
|
widthMm: PositiveDecimalSchema.nullable().optional(),
|
|
@@ -692,8 +863,8 @@ var CreateProductRequestSchema = z.object({
|
|
|
692
863
|
isBoxEligible: z.boolean().default(false),
|
|
693
864
|
sortOrder: z.number().int().min(0).max(1e6).default(0),
|
|
694
865
|
translations: UniqueLocalesSchema(ProductTranslationInputSchema),
|
|
695
|
-
categoryPublicIds: z.array(
|
|
696
|
-
primaryCategoryPublicId:
|
|
866
|
+
categoryPublicIds: z.array(PublicIdSchema3).min(1).max(100),
|
|
867
|
+
primaryCategoryPublicId: PublicIdSchema3,
|
|
697
868
|
variants: z.array(ProductVariantInputSchema).min(1).max(100).refine(
|
|
698
869
|
(items) => items.filter((item) => item.isDefault).length === 1,
|
|
699
870
|
"\u0414\u043E\u043B\u0436\u043D\u0430 \u0431\u044B\u0442\u044C \u0440\u043E\u0432\u043D\u043E \u043E\u0434\u043D\u0430 \u043E\u0441\u043D\u043E\u0432\u043D\u0430\u044F \u0432\u0430\u0440\u0438\u0430\u0446\u0438\u044F"
|
|
@@ -714,8 +885,8 @@ var UpdateProductRequestSchema = z.object({
|
|
|
714
885
|
isBoxEligible: z.boolean(),
|
|
715
886
|
sortOrder: z.number().int().min(0).max(1e6),
|
|
716
887
|
translations: UniqueLocalesSchema(ProductTranslationInputSchema),
|
|
717
|
-
categoryPublicIds: z.array(
|
|
718
|
-
primaryCategoryPublicId:
|
|
888
|
+
categoryPublicIds: z.array(PublicIdSchema3).min(1).max(100),
|
|
889
|
+
primaryCategoryPublicId: PublicIdSchema3,
|
|
719
890
|
version: z.number().int().positive()
|
|
720
891
|
}).partial().required({ version: true }).refine(
|
|
721
892
|
(value) => !value.primaryCategoryPublicId || !value.categoryPublicIds || value.categoryPublicIds.includes(value.primaryCategoryPublicId),
|
|
@@ -729,16 +900,16 @@ var UpdateProductVariantRequestSchema = ProductVariantFieldsSchema.partial().ext
|
|
|
729
900
|
version: z.number().int().positive()
|
|
730
901
|
});
|
|
731
902
|
var ProductPublicIdParamSchema = z.object({
|
|
732
|
-
publicId:
|
|
903
|
+
publicId: PublicIdSchema3
|
|
733
904
|
});
|
|
734
905
|
var ProductSlugParamSchema = z.object({ slug: SlugSchema });
|
|
735
906
|
var ProductVariantPublicIdParamSchema = z.object({
|
|
736
|
-
publicId:
|
|
737
|
-
variantPublicId:
|
|
907
|
+
publicId: PublicIdSchema3,
|
|
908
|
+
variantPublicId: PublicIdSchema3
|
|
738
909
|
});
|
|
739
910
|
var ProductMediaPublicIdParamSchema = z.object({
|
|
740
|
-
publicId:
|
|
741
|
-
mediaPublicId:
|
|
911
|
+
publicId: PublicIdSchema3,
|
|
912
|
+
mediaPublicId: PublicIdSchema3
|
|
742
913
|
});
|
|
743
914
|
var QueryBooleanSchema = z.union([
|
|
744
915
|
z.boolean(),
|
|
@@ -771,7 +942,7 @@ var UpdateProductMediaRequestSchema = z.object({
|
|
|
771
942
|
sortOrder: z.number().int().min(0).max(1e6).optional()
|
|
772
943
|
});
|
|
773
944
|
var ProductCategorySchema = z.object({
|
|
774
|
-
publicId:
|
|
945
|
+
publicId: PublicIdSchema3,
|
|
775
946
|
code: CodeSchema2,
|
|
776
947
|
slug: SlugSchema,
|
|
777
948
|
status: z.enum(ProductStatus),
|
|
@@ -782,13 +953,13 @@ var ProductCategorySchema = z.object({
|
|
|
782
953
|
updatedAt: z.string().datetime()
|
|
783
954
|
});
|
|
784
955
|
var ProductVariantSchema = ProductVariantInputSchema.extend({
|
|
785
|
-
publicId:
|
|
956
|
+
publicId: PublicIdSchema3,
|
|
786
957
|
version: z.number().int().positive(),
|
|
787
958
|
createdAt: z.string().datetime(),
|
|
788
959
|
updatedAt: z.string().datetime()
|
|
789
960
|
});
|
|
790
961
|
var ProductMediaSchema = z.object({
|
|
791
|
-
publicId:
|
|
962
|
+
publicId: PublicIdSchema3,
|
|
792
963
|
type: z.enum(ProductMediaType),
|
|
793
964
|
role: z.enum(ProductMediaRole),
|
|
794
965
|
externalUrl: z.string().nullable(),
|
|
@@ -801,7 +972,7 @@ var ProductMediaSchema = z.object({
|
|
|
801
972
|
updatedAt: z.string().datetime()
|
|
802
973
|
});
|
|
803
974
|
var ProductSchema = z.object({
|
|
804
|
-
publicId:
|
|
975
|
+
publicId: PublicIdSchema3,
|
|
805
976
|
code: CodeSchema2,
|
|
806
977
|
slug: SlugSchema,
|
|
807
978
|
status: z.enum(ProductStatus),
|
|
@@ -815,14 +986,14 @@ var ProductSchema = z.object({
|
|
|
815
986
|
version: z.number().int().positive(),
|
|
816
987
|
translations: z.array(ProductTranslationInputSchema),
|
|
817
988
|
categories: z.array(ProductCategorySchema),
|
|
818
|
-
primaryCategoryPublicId:
|
|
989
|
+
primaryCategoryPublicId: PublicIdSchema3,
|
|
819
990
|
variants: z.array(ProductVariantSchema),
|
|
820
991
|
media: z.array(ProductMediaSchema),
|
|
821
992
|
createdAt: z.string().datetime(),
|
|
822
993
|
updatedAt: z.string().datetime()
|
|
823
994
|
});
|
|
824
995
|
var LocalizedProductCategorySchema = z.object({
|
|
825
|
-
publicId:
|
|
996
|
+
publicId: PublicIdSchema3,
|
|
826
997
|
code: CodeSchema2,
|
|
827
998
|
slug: SlugSchema,
|
|
828
999
|
name: z.string(),
|
|
@@ -854,11 +1025,11 @@ var CartItemAvailability = /* @__PURE__ */ ((CartItemAvailability2) => {
|
|
|
854
1025
|
CartItemAvailability2["VARIANT_UNAVAILABLE"] = "VARIANT_UNAVAILABLE";
|
|
855
1026
|
return CartItemAvailability2;
|
|
856
1027
|
})(CartItemAvailability || {});
|
|
857
|
-
var
|
|
1028
|
+
var PublicIdSchema4 = z.uuid();
|
|
858
1029
|
var QuantitySchema = z.number().int().min(1).max(999);
|
|
859
1030
|
var DecimalSchema = z.string().regex(/^\d{1,16}(?:\.\d{1,2})?$/);
|
|
860
1031
|
var AddCartItemRequestSchema = z.object({
|
|
861
|
-
variantPublicId:
|
|
1032
|
+
variantPublicId: PublicIdSchema4,
|
|
862
1033
|
quantity: QuantitySchema.default(1)
|
|
863
1034
|
});
|
|
864
1035
|
var UpdateCartItemRequestSchema = z.object({
|
|
@@ -866,21 +1037,21 @@ var UpdateCartItemRequestSchema = z.object({
|
|
|
866
1037
|
version: z.number().int().positive()
|
|
867
1038
|
});
|
|
868
1039
|
var CartItemPublicIdParamSchema = z.object({
|
|
869
|
-
itemPublicId:
|
|
1040
|
+
itemPublicId: PublicIdSchema4
|
|
870
1041
|
});
|
|
871
1042
|
var CartItemSchema = z.object({
|
|
872
|
-
publicId:
|
|
1043
|
+
publicId: PublicIdSchema4,
|
|
873
1044
|
quantity: QuantitySchema,
|
|
874
1045
|
version: z.number().int().positive(),
|
|
875
1046
|
availability: z.enum(CartItemAvailability),
|
|
876
1047
|
product: z.object({
|
|
877
|
-
publicId:
|
|
1048
|
+
publicId: PublicIdSchema4,
|
|
878
1049
|
slug: z.string(),
|
|
879
1050
|
name: z.string(),
|
|
880
1051
|
coverContentUrl: z.string().nullable()
|
|
881
1052
|
}),
|
|
882
1053
|
variant: z.object({
|
|
883
|
-
publicId:
|
|
1054
|
+
publicId: PublicIdSchema4,
|
|
884
1055
|
sku: z.string(),
|
|
885
1056
|
quantity: z.string(),
|
|
886
1057
|
unit: z.enum(ProductUnit),
|
|
@@ -893,7 +1064,7 @@ var CartItemSchema = z.object({
|
|
|
893
1064
|
updatedAt: z.string().datetime()
|
|
894
1065
|
});
|
|
895
1066
|
var CartSchema = z.object({
|
|
896
|
-
publicId:
|
|
1067
|
+
publicId: PublicIdSchema4.nullable(),
|
|
897
1068
|
items: z.array(CartItemSchema),
|
|
898
1069
|
totalQuantity: z.number().int().nonnegative(),
|
|
899
1070
|
subtotalUsd: DecimalSchema,
|
|
@@ -1034,7 +1205,7 @@ var WarehouseWeekday = {
|
|
|
1034
1205
|
};
|
|
1035
1206
|
|
|
1036
1207
|
// src/warehouse/warehouse.schemas.ts
|
|
1037
|
-
var
|
|
1208
|
+
var PublicIdSchema5 = z.uuid();
|
|
1038
1209
|
var CodeSchema3 = z.string().trim().toUpperCase().regex(/^[A-Z0-9][A-Z0-9_-]{1,63}$/);
|
|
1039
1210
|
var DateSchema = z.iso.date();
|
|
1040
1211
|
var DateTimeSchema = z.iso.datetime();
|
|
@@ -1089,11 +1260,11 @@ var CreateWarehouseRequestSchema = WarehouseFieldsSchema.extend({
|
|
|
1089
1260
|
});
|
|
1090
1261
|
var UpdateWarehouseRequestSchema = WarehouseFieldsSchema.partial().extend({ version: z.number().int().positive() }).required({ version: true });
|
|
1091
1262
|
var WarehousePublicIdParamSchema = z.object({
|
|
1092
|
-
publicId:
|
|
1263
|
+
publicId: PublicIdSchema5
|
|
1093
1264
|
});
|
|
1094
1265
|
var WarehouseAssignmentParamSchema = z.object({
|
|
1095
|
-
publicId:
|
|
1096
|
-
assignmentPublicId:
|
|
1266
|
+
publicId: PublicIdSchema5,
|
|
1267
|
+
assignmentPublicId: PublicIdSchema5
|
|
1097
1268
|
});
|
|
1098
1269
|
var WarehouseListQuerySchema = BaseListQuerySchema.extend({
|
|
1099
1270
|
status: z.enum(WarehouseStatus).optional(),
|
|
@@ -1110,7 +1281,7 @@ var AssignWarehouseUserRequestSchema = z.object({
|
|
|
1110
1281
|
type: z.enum(WarehouseAssignmentType)
|
|
1111
1282
|
});
|
|
1112
1283
|
var WarehouseRequestLineInputSchema = z.object({
|
|
1113
|
-
variantPublicId:
|
|
1284
|
+
variantPublicId: PublicIdSchema5,
|
|
1114
1285
|
quantity: z.number().int().positive().max(1e9),
|
|
1115
1286
|
expiresAt: DateSchema.nullable().optional(),
|
|
1116
1287
|
batchNumber: NullableTrimmedSchema(120),
|
|
@@ -1118,8 +1289,8 @@ var WarehouseRequestLineInputSchema = z.object({
|
|
|
1118
1289
|
});
|
|
1119
1290
|
var CreateWarehouseOperationRequestSchema = z.object({
|
|
1120
1291
|
type: z.enum(WarehouseRequestType),
|
|
1121
|
-
sourceWarehousePublicId:
|
|
1122
|
-
destinationWarehousePublicId:
|
|
1292
|
+
sourceWarehousePublicId: PublicIdSchema5.nullable().optional(),
|
|
1293
|
+
destinationWarehousePublicId: PublicIdSchema5.nullable().optional(),
|
|
1123
1294
|
writeOffReason: z.enum(WarehouseWriteOffReason).nullable().optional(),
|
|
1124
1295
|
comment: z.string().trim().max(2e3).nullable().optional(),
|
|
1125
1296
|
lines: z.array(WarehouseRequestLineInputSchema).min(1).max(500)
|
|
@@ -1178,16 +1349,16 @@ var CreateWarehouseOperationRequestSchema = z.object({
|
|
|
1178
1349
|
}
|
|
1179
1350
|
});
|
|
1180
1351
|
var WarehouseOperationPublicIdParamSchema = z.object({
|
|
1181
|
-
publicId:
|
|
1352
|
+
publicId: PublicIdSchema5
|
|
1182
1353
|
});
|
|
1183
1354
|
var WarehouseOperationAttachmentParamSchema = z.object({
|
|
1184
|
-
publicId:
|
|
1185
|
-
attachmentPublicId:
|
|
1355
|
+
publicId: PublicIdSchema5,
|
|
1356
|
+
attachmentPublicId: PublicIdSchema5
|
|
1186
1357
|
});
|
|
1187
1358
|
var WarehouseOperationListQuerySchema = BaseListQuerySchema.extend({
|
|
1188
1359
|
type: z.enum(WarehouseRequestType).optional(),
|
|
1189
1360
|
status: z.enum(WarehouseRequestStatus).optional(),
|
|
1190
|
-
warehousePublicId:
|
|
1361
|
+
warehousePublicId: PublicIdSchema5.optional(),
|
|
1191
1362
|
createdByUserId: z.coerce.number().int().positive().optional()
|
|
1192
1363
|
});
|
|
1193
1364
|
var WarehouseOperationCommentSchema = z.object({
|
|
@@ -1204,8 +1375,8 @@ var ReportWarehouseDiscrepancyRequestSchema = z.object({
|
|
|
1204
1375
|
comment: z.string().trim().min(1).max(2e3)
|
|
1205
1376
|
});
|
|
1206
1377
|
var WarehouseStockListQuerySchema = BaseListQuerySchema.extend({
|
|
1207
|
-
warehousePublicId:
|
|
1208
|
-
variantPublicId:
|
|
1378
|
+
warehousePublicId: PublicIdSchema5.optional(),
|
|
1379
|
+
variantPublicId: PublicIdSchema5.optional(),
|
|
1209
1380
|
expired: z.union([
|
|
1210
1381
|
z.boolean(),
|
|
1211
1382
|
z.enum(["true", "false"]).transform((v) => v === "true")
|
|
@@ -1213,7 +1384,7 @@ var WarehouseStockListQuerySchema = BaseListQuerySchema.extend({
|
|
|
1213
1384
|
expiresBefore: DateSchema.optional()
|
|
1214
1385
|
});
|
|
1215
1386
|
var AdminWarehouseAnalyticsQuerySchema = z.object({
|
|
1216
|
-
warehousePublicId:
|
|
1387
|
+
warehousePublicId: PublicIdSchema5.optional(),
|
|
1217
1388
|
dateFrom: DateFromSchema,
|
|
1218
1389
|
dateTo: DateToSchema
|
|
1219
1390
|
});
|
|
@@ -1261,7 +1432,7 @@ var AdminWarehouseAnalyticsSchema = z.object({
|
|
|
1261
1432
|
}),
|
|
1262
1433
|
warehouses: z.array(
|
|
1263
1434
|
z.object({
|
|
1264
|
-
publicId:
|
|
1435
|
+
publicId: PublicIdSchema5,
|
|
1265
1436
|
code: z.string(),
|
|
1266
1437
|
name: z.string(),
|
|
1267
1438
|
status: z.enum(WarehouseStatus),
|
|
@@ -1278,11 +1449,11 @@ var AdminWarehouseAnalyticsSchema = z.object({
|
|
|
1278
1449
|
})
|
|
1279
1450
|
})
|
|
1280
1451
|
),
|
|
1281
|
-
selectedWarehousePublicId:
|
|
1452
|
+
selectedWarehousePublicId: PublicIdSchema5.nullable(),
|
|
1282
1453
|
products: z.array(
|
|
1283
1454
|
z.object({
|
|
1284
|
-
productPublicId:
|
|
1285
|
-
variantPublicId:
|
|
1455
|
+
productPublicId: PublicIdSchema5,
|
|
1456
|
+
variantPublicId: PublicIdSchema5,
|
|
1286
1457
|
productCode: z.string(),
|
|
1287
1458
|
sku: z.string(),
|
|
1288
1459
|
onHand: z.number().int().nonnegative(),
|
|
@@ -1299,7 +1470,7 @@ var AdminWarehouseAnalyticsSchema = z.object({
|
|
|
1299
1470
|
)
|
|
1300
1471
|
});
|
|
1301
1472
|
var WarehouseSchema = z.object({
|
|
1302
|
-
publicId:
|
|
1473
|
+
publicId: PublicIdSchema5,
|
|
1303
1474
|
code: CodeSchema3,
|
|
1304
1475
|
name: z.string(),
|
|
1305
1476
|
status: z.enum(WarehouseStatus),
|
|
@@ -1326,16 +1497,16 @@ var WarehouseUserLookupSchema = z.object({
|
|
|
1326
1497
|
role: z.string()
|
|
1327
1498
|
});
|
|
1328
1499
|
var WarehouseAssignmentSchema = z.object({
|
|
1329
|
-
publicId:
|
|
1330
|
-
warehousePublicId:
|
|
1500
|
+
publicId: PublicIdSchema5,
|
|
1501
|
+
warehousePublicId: PublicIdSchema5,
|
|
1331
1502
|
type: z.enum(WarehouseAssignmentType),
|
|
1332
1503
|
user: WarehouseUserLookupSchema,
|
|
1333
1504
|
assignedByLogin: z.string(),
|
|
1334
1505
|
assignedAt: DateTimeSchema
|
|
1335
1506
|
});
|
|
1336
1507
|
var WarehouseOperationLineSchema = z.object({
|
|
1337
|
-
publicId:
|
|
1338
|
-
variantPublicId:
|
|
1508
|
+
publicId: PublicIdSchema5,
|
|
1509
|
+
variantPublicId: PublicIdSchema5,
|
|
1339
1510
|
sku: z.string(),
|
|
1340
1511
|
quantity: z.number().int().positive(),
|
|
1341
1512
|
expiresAt: DateSchema.nullable(),
|
|
@@ -1343,7 +1514,7 @@ var WarehouseOperationLineSchema = z.object({
|
|
|
1343
1514
|
comment: z.string().nullable()
|
|
1344
1515
|
});
|
|
1345
1516
|
var WarehouseOperationEventSchema = z.object({
|
|
1346
|
-
publicId:
|
|
1517
|
+
publicId: PublicIdSchema5,
|
|
1347
1518
|
fromStatus: z.enum(WarehouseRequestStatus).nullable(),
|
|
1348
1519
|
toStatus: z.enum(WarehouseRequestStatus),
|
|
1349
1520
|
actorUserId: z.number().int().positive(),
|
|
@@ -1352,7 +1523,7 @@ var WarehouseOperationEventSchema = z.object({
|
|
|
1352
1523
|
createdAt: DateTimeSchema
|
|
1353
1524
|
});
|
|
1354
1525
|
var WarehouseOperationAttachmentSchema = z.object({
|
|
1355
|
-
publicId:
|
|
1526
|
+
publicId: PublicIdSchema5,
|
|
1356
1527
|
mimeType: z.string(),
|
|
1357
1528
|
sizeBytes: z.number().int().positive(),
|
|
1358
1529
|
originalName: z.string().nullable(),
|
|
@@ -1361,7 +1532,7 @@ var WarehouseOperationAttachmentSchema = z.object({
|
|
|
1361
1532
|
createdAt: DateTimeSchema
|
|
1362
1533
|
});
|
|
1363
1534
|
var WarehouseOperationSchema = z.object({
|
|
1364
|
-
publicId:
|
|
1535
|
+
publicId: PublicIdSchema5,
|
|
1365
1536
|
type: z.enum(WarehouseRequestType),
|
|
1366
1537
|
status: z.enum(WarehouseRequestStatus),
|
|
1367
1538
|
sourceWarehouse: WarehouseSchema.nullable(),
|
|
@@ -1385,11 +1556,11 @@ var WarehouseOperationSchema = z.object({
|
|
|
1385
1556
|
updatedAt: DateTimeSchema
|
|
1386
1557
|
});
|
|
1387
1558
|
var WarehouseStockSchema = z.object({
|
|
1388
|
-
publicId:
|
|
1559
|
+
publicId: PublicIdSchema5,
|
|
1389
1560
|
warehouse: WarehouseSchema,
|
|
1390
|
-
variantPublicId:
|
|
1561
|
+
variantPublicId: PublicIdSchema5,
|
|
1391
1562
|
sku: z.string(),
|
|
1392
|
-
productPublicId:
|
|
1563
|
+
productPublicId: PublicIdSchema5,
|
|
1393
1564
|
productCode: z.string(),
|
|
1394
1565
|
batchNumber: z.string().nullable(),
|
|
1395
1566
|
expiresAt: DateSchema,
|
|
@@ -1401,11 +1572,11 @@ var WarehouseStockSchema = z.object({
|
|
|
1401
1572
|
updatedAt: DateTimeSchema
|
|
1402
1573
|
});
|
|
1403
1574
|
var WarehouseMovementSchema = z.object({
|
|
1404
|
-
publicId:
|
|
1405
|
-
warehousePublicId:
|
|
1406
|
-
operationPublicId:
|
|
1407
|
-
variantPublicId:
|
|
1408
|
-
inventoryBatchPublicId:
|
|
1575
|
+
publicId: PublicIdSchema5,
|
|
1576
|
+
warehousePublicId: PublicIdSchema5,
|
|
1577
|
+
operationPublicId: PublicIdSchema5,
|
|
1578
|
+
variantPublicId: PublicIdSchema5,
|
|
1579
|
+
inventoryBatchPublicId: PublicIdSchema5.nullable(),
|
|
1409
1580
|
type: z.enum(WarehouseMovementType),
|
|
1410
1581
|
quantityDelta: z.number().int(),
|
|
1411
1582
|
balanceAfter: z.number().int().nonnegative(),
|
|
@@ -1415,7 +1586,7 @@ var WarehouseMovementSchema = z.object({
|
|
|
1415
1586
|
});
|
|
1416
1587
|
|
|
1417
1588
|
// src/order/order.schemas.ts
|
|
1418
|
-
var
|
|
1589
|
+
var PublicIdSchema6 = z.uuid();
|
|
1419
1590
|
var DateTimeSchema2 = z.iso.datetime();
|
|
1420
1591
|
var MoneySchema3 = z.string().regex(/^\d{1,16}\.\d{2}$/);
|
|
1421
1592
|
var DecimalSchema2 = z.string().regex(/^\d{1,16}(?:\.\d{1,3})?$/);
|
|
@@ -1440,13 +1611,13 @@ var CheckoutSnapshotSchema = z.object({
|
|
|
1440
1611
|
reserveDurationHours: z.literal(24)
|
|
1441
1612
|
});
|
|
1442
1613
|
var CheckoutWarehouseAvailabilitySchema = z.object({
|
|
1443
|
-
variantPublicId:
|
|
1614
|
+
variantPublicId: PublicIdSchema6,
|
|
1444
1615
|
requestedQuantity: z.number().int().positive(),
|
|
1445
1616
|
availableQuantity: z.number().int().nonnegative(),
|
|
1446
1617
|
availability: z.enum(OrderStockAvailability)
|
|
1447
1618
|
});
|
|
1448
1619
|
var CheckoutWarehouseSchema = z.object({
|
|
1449
|
-
publicId:
|
|
1620
|
+
publicId: PublicIdSchema6,
|
|
1450
1621
|
code: z.string(),
|
|
1451
1622
|
name: z.string(),
|
|
1452
1623
|
countryCode: z.string().length(2),
|
|
@@ -1462,11 +1633,11 @@ var CheckoutWarehouseSchema = z.object({
|
|
|
1462
1633
|
});
|
|
1463
1634
|
var CheckoutWarehouseListSchema = z.array(CheckoutWarehouseSchema);
|
|
1464
1635
|
var CreateOrderRequestSchema = z.object({
|
|
1465
|
-
warehousePublicId:
|
|
1636
|
+
warehousePublicId: PublicIdSchema6,
|
|
1466
1637
|
deliveryMethod: z.literal("PICKUP" /* PICKUP */),
|
|
1467
1638
|
paymentMethod: z.enum(OrderPaymentMethod),
|
|
1468
1639
|
walletAmountUsd: MoneySchema3.optional(),
|
|
1469
|
-
idempotencyKey:
|
|
1640
|
+
idempotencyKey: PublicIdSchema6
|
|
1470
1641
|
}).superRefine((value, context) => {
|
|
1471
1642
|
if (value.paymentMethod === "CASH" /* CASH */ && value.walletAmountUsd) {
|
|
1472
1643
|
context.addIssue({
|
|
@@ -1483,7 +1654,7 @@ var CreateOrderRequestSchema = z.object({
|
|
|
1483
1654
|
});
|
|
1484
1655
|
}
|
|
1485
1656
|
});
|
|
1486
|
-
var OrderPublicIdParamSchema = z.object({ publicId:
|
|
1657
|
+
var OrderPublicIdParamSchema = z.object({ publicId: PublicIdSchema6 });
|
|
1487
1658
|
var MarkOrderReadyRequestSchema = z.object({
|
|
1488
1659
|
version: z.number().int().positive()
|
|
1489
1660
|
});
|
|
@@ -1491,11 +1662,11 @@ var CompleteOrderPickupRequestSchema = z.object({
|
|
|
1491
1662
|
code: z.string().regex(/^\d{6}$/)
|
|
1492
1663
|
});
|
|
1493
1664
|
var OrderReceiptParamSchema = z.object({
|
|
1494
|
-
publicId:
|
|
1495
|
-
receiptPublicId:
|
|
1665
|
+
publicId: PublicIdSchema6,
|
|
1666
|
+
receiptPublicId: PublicIdSchema6
|
|
1496
1667
|
});
|
|
1497
1668
|
var OrderWarehouseSchema = z.object({
|
|
1498
|
-
publicId:
|
|
1669
|
+
publicId: PublicIdSchema6,
|
|
1499
1670
|
code: z.string(),
|
|
1500
1671
|
name: z.string(),
|
|
1501
1672
|
countryCode: z.string().length(2),
|
|
@@ -1508,9 +1679,9 @@ var OrderWarehouseSchema = z.object({
|
|
|
1508
1679
|
schedule: WarehouseWeeklyScheduleSchema
|
|
1509
1680
|
});
|
|
1510
1681
|
var OrderItemSchema = z.object({
|
|
1511
|
-
publicId:
|
|
1512
|
-
productPublicId:
|
|
1513
|
-
variantPublicId:
|
|
1682
|
+
publicId: PublicIdSchema6,
|
|
1683
|
+
productPublicId: PublicIdSchema6,
|
|
1684
|
+
variantPublicId: PublicIdSchema6,
|
|
1514
1685
|
productName: z.string(),
|
|
1515
1686
|
sku: z.string(),
|
|
1516
1687
|
variantQuantity: DecimalSchema2,
|
|
@@ -1523,7 +1694,7 @@ var OrderItemSchema = z.object({
|
|
|
1523
1694
|
coverContentUrl: z.string().nullable()
|
|
1524
1695
|
});
|
|
1525
1696
|
var OrderReceiptSchema = z.object({
|
|
1526
|
-
publicId:
|
|
1697
|
+
publicId: PublicIdSchema6,
|
|
1527
1698
|
status: z.enum(OrderReceiptStatus),
|
|
1528
1699
|
originalName: z.string().nullable(),
|
|
1529
1700
|
mimeType: z.string(),
|
|
@@ -1535,14 +1706,14 @@ var OrderReceiptSchema = z.object({
|
|
|
1535
1706
|
contentUrl: z.string()
|
|
1536
1707
|
});
|
|
1537
1708
|
var OrderEventSchema = z.object({
|
|
1538
|
-
publicId:
|
|
1709
|
+
publicId: PublicIdSchema6,
|
|
1539
1710
|
type: z.enum(OrderEventType),
|
|
1540
1711
|
actorLogin: z.string().nullable(),
|
|
1541
1712
|
comment: z.string().nullable(),
|
|
1542
1713
|
createdAt: DateTimeSchema2
|
|
1543
1714
|
});
|
|
1544
1715
|
var OrderSchema = z.object({
|
|
1545
|
-
publicId:
|
|
1716
|
+
publicId: PublicIdSchema6,
|
|
1546
1717
|
version: z.number().int().positive(),
|
|
1547
1718
|
number: OrderNumberSchema,
|
|
1548
1719
|
type: z.enum(OrderType),
|
|
@@ -1557,7 +1728,7 @@ var OrderSchema = z.object({
|
|
|
1557
1728
|
subtotalUsd: MoneySchema3,
|
|
1558
1729
|
totalPv: MoneySchema3,
|
|
1559
1730
|
box: z.object({
|
|
1560
|
-
publicId:
|
|
1731
|
+
publicId: PublicIdSchema6,
|
|
1561
1732
|
code: z.string(),
|
|
1562
1733
|
name: z.string(),
|
|
1563
1734
|
version: z.number().int().positive(),
|
|
@@ -1596,7 +1767,7 @@ var OrderListItemSchema = OrderSchema.omit({
|
|
|
1596
1767
|
var OrderListQuerySchema = BaseListQuerySchema.extend({
|
|
1597
1768
|
status: z.enum(OrderStatus).optional(),
|
|
1598
1769
|
paymentStatus: z.enum(OrderPaymentStatus).optional(),
|
|
1599
|
-
warehousePublicId:
|
|
1770
|
+
warehousePublicId: PublicIdSchema6.optional()
|
|
1600
1771
|
});
|
|
1601
1772
|
var OrderListResponseSchema = z.object({
|
|
1602
1773
|
items: z.array(OrderListItemSchema),
|
|
@@ -1608,12 +1779,12 @@ var OrderListResponseSchema = z.object({
|
|
|
1608
1779
|
})
|
|
1609
1780
|
});
|
|
1610
1781
|
var AdminWarehouseOrderSummaryQuerySchema = z.object({
|
|
1611
|
-
warehousePublicId:
|
|
1782
|
+
warehousePublicId: PublicIdSchema6,
|
|
1612
1783
|
dateFrom: DateFromSchema,
|
|
1613
1784
|
dateTo: DateToSchema
|
|
1614
1785
|
});
|
|
1615
1786
|
var AdminWarehouseOrderSummarySchema = z.object({
|
|
1616
|
-
warehousePublicId:
|
|
1787
|
+
warehousePublicId: PublicIdSchema6,
|
|
1617
1788
|
period: z.object({
|
|
1618
1789
|
dateFrom: DateTimeSchema2.nullable(),
|
|
1619
1790
|
dateTo: DateTimeSchema2.nullable()
|
|
@@ -1639,15 +1810,15 @@ var AdminWarehouseOrderSummarySchema = z.object({
|
|
|
1639
1810
|
})
|
|
1640
1811
|
});
|
|
1641
1812
|
var WarehouseOrderReservationListQuerySchema = BaseListQuerySchema.extend({
|
|
1642
|
-
warehousePublicId:
|
|
1813
|
+
warehousePublicId: PublicIdSchema6,
|
|
1643
1814
|
reservationStatus: z.enum(OrderReservationStatus).optional()
|
|
1644
1815
|
});
|
|
1645
1816
|
var WarehousePickupOrderListQuerySchema = BaseListQuerySchema.extend({
|
|
1646
|
-
warehousePublicId:
|
|
1817
|
+
warehousePublicId: PublicIdSchema6,
|
|
1647
1818
|
status: z.enum(["PROCESSING" /* PROCESSING */, "READY_FOR_PICKUP" /* READY_FOR_PICKUP */]).optional()
|
|
1648
1819
|
});
|
|
1649
1820
|
var WarehouseOrderReservationSchema = z.object({
|
|
1650
|
-
publicId:
|
|
1821
|
+
publicId: PublicIdSchema6,
|
|
1651
1822
|
status: z.enum(OrderReservationStatus),
|
|
1652
1823
|
quantity: z.number().int().positive(),
|
|
1653
1824
|
createdAt: DateTimeSchema2,
|
|
@@ -1656,21 +1827,21 @@ var WarehouseOrderReservationSchema = z.object({
|
|
|
1656
1827
|
reserveExpiresAt: DateTimeSchema2.nullable(),
|
|
1657
1828
|
releaseReason: z.string().nullable(),
|
|
1658
1829
|
order: z.object({
|
|
1659
|
-
publicId:
|
|
1830
|
+
publicId: PublicIdSchema6,
|
|
1660
1831
|
number: OrderNumberSchema,
|
|
1661
1832
|
status: z.enum(OrderStatus),
|
|
1662
1833
|
paymentStatus: z.enum(OrderPaymentStatus)
|
|
1663
1834
|
}),
|
|
1664
1835
|
item: z.object({
|
|
1665
|
-
publicId:
|
|
1666
|
-
productPublicId:
|
|
1667
|
-
variantPublicId:
|
|
1836
|
+
publicId: PublicIdSchema6,
|
|
1837
|
+
productPublicId: PublicIdSchema6,
|
|
1838
|
+
variantPublicId: PublicIdSchema6,
|
|
1668
1839
|
productName: z.string(),
|
|
1669
1840
|
sku: z.string(),
|
|
1670
1841
|
coverContentUrl: z.string().nullable()
|
|
1671
1842
|
}),
|
|
1672
1843
|
batch: z.object({
|
|
1673
|
-
publicId:
|
|
1844
|
+
publicId: PublicIdSchema6,
|
|
1674
1845
|
batchNumber: z.string().nullable(),
|
|
1675
1846
|
expiresAt: z.iso.date()
|
|
1676
1847
|
})
|
|
@@ -1710,8 +1881,8 @@ var ReviewOrderReceiptRequestSchema = z.object({
|
|
|
1710
1881
|
}
|
|
1711
1882
|
});
|
|
1712
1883
|
var OrderNotificationSchema = z.object({
|
|
1713
|
-
publicId:
|
|
1714
|
-
orderPublicId:
|
|
1884
|
+
publicId: PublicIdSchema6,
|
|
1885
|
+
orderPublicId: PublicIdSchema6,
|
|
1715
1886
|
orderNumber: OrderNumberSchema,
|
|
1716
1887
|
type: z.enum(OrderNotificationType),
|
|
1717
1888
|
pickupCode: z.string().regex(/^\d{6}$/).nullable(),
|
|
@@ -1740,10 +1911,10 @@ var BoxPurchaseKind = /* @__PURE__ */ ((BoxPurchaseKind2) => {
|
|
|
1740
1911
|
BoxPurchaseKind2["UPGRADE"] = "UPGRADE";
|
|
1741
1912
|
return BoxPurchaseKind2;
|
|
1742
1913
|
})(BoxPurchaseKind || {});
|
|
1743
|
-
var
|
|
1914
|
+
var PublicIdSchema7 = z.uuid();
|
|
1744
1915
|
var CodeSchema4 = z.string().trim().toUpperCase().regex(/^[A-Z0-9][A-Z0-9_-]{1,63}$/);
|
|
1745
1916
|
var MoneySchema4 = z.string().trim().regex(/^\d{1,16}(?:\.\d{1,2})?$/).refine((value) => Number(value) > 0, "\u0417\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0443\u043B\u044F");
|
|
1746
|
-
var
|
|
1917
|
+
var PvSchema5 = z.string().trim().regex(/^\d{1,16}(?:\.\d{1,2})?$/).refine((value) => Number(value) > 0, "PV \u0434\u043E\u043B\u0436\u0435\u043D \u0431\u044B\u0442\u044C \u0431\u043E\u043B\u044C\u0448\u0435 \u043D\u0443\u043B\u044F");
|
|
1747
1918
|
var PercentSchema2 = z.number().int().min(0).max(100);
|
|
1748
1919
|
var BoxTranslationInputSchema = z.object({
|
|
1749
1920
|
locale: AppLocaleSchema,
|
|
@@ -1765,7 +1936,7 @@ var UniqueStructureLevelsSchema = z.array(BoxStructureLevelInputSchema).max(1e3)
|
|
|
1765
1936
|
var BoxFieldsSchema = z.object({
|
|
1766
1937
|
code: CodeSchema4,
|
|
1767
1938
|
priceUsd: MoneySchema4,
|
|
1768
|
-
pvBudget:
|
|
1939
|
+
pvBudget: PvSchema5,
|
|
1769
1940
|
referralPercent: PercentSchema2,
|
|
1770
1941
|
binaryPercent: PercentSchema2,
|
|
1771
1942
|
extraBonusPercent: PercentSchema2,
|
|
@@ -1785,15 +1956,15 @@ var CreateBoxRequestSchema = BoxFieldsSchema.extend({
|
|
|
1785
1956
|
var UpdateBoxRequestSchema = BoxFieldsSchema.partial().extend({
|
|
1786
1957
|
version: z.number().int().positive()
|
|
1787
1958
|
});
|
|
1788
|
-
var BoxPublicIdParamSchema = z.object({ publicId:
|
|
1959
|
+
var BoxPublicIdParamSchema = z.object({ publicId: PublicIdSchema7 });
|
|
1789
1960
|
var BoxListQuerySchema = BaseListQuerySchema.extend({
|
|
1790
1961
|
status: z.enum(BoxStatus).optional()
|
|
1791
1962
|
});
|
|
1792
1963
|
var BoxStructureLevelSchema = BoxStructureLevelInputSchema.extend({
|
|
1793
|
-
publicId:
|
|
1964
|
+
publicId: PublicIdSchema7
|
|
1794
1965
|
});
|
|
1795
1966
|
var BoxSchema = z.object({
|
|
1796
|
-
publicId:
|
|
1967
|
+
publicId: PublicIdSchema7,
|
|
1797
1968
|
code: CodeSchema4,
|
|
1798
1969
|
status: z.enum(BoxStatus),
|
|
1799
1970
|
priceUsd: z.string().regex(/^\d{1,16}\.\d{2}$/),
|
|
@@ -1831,7 +2002,7 @@ var LocalizedBoxListResponseSchema = z.object({
|
|
|
1831
2002
|
meta: BoxListResponseSchema.shape.meta
|
|
1832
2003
|
});
|
|
1833
2004
|
var BoxSelectionLineSchema = z.object({
|
|
1834
|
-
variantPublicId:
|
|
2005
|
+
variantPublicId: PublicIdSchema7,
|
|
1835
2006
|
quantity: z.number().int().positive().max(1e5)
|
|
1836
2007
|
});
|
|
1837
2008
|
var BoxSelectionSchema = z.object({
|
|
@@ -1854,12 +2025,12 @@ var BoxCheckoutSnapshotSchema = z.object({
|
|
|
1854
2025
|
});
|
|
1855
2026
|
var BoxCheckoutWarehouseListSchema = z.array(CheckoutWarehouseSchema);
|
|
1856
2027
|
var CreateBoxOrderRequestSchema = BoxSelectionSchema.extend({
|
|
1857
|
-
boxPublicId:
|
|
1858
|
-
warehousePublicId:
|
|
2028
|
+
boxPublicId: PublicIdSchema7,
|
|
2029
|
+
warehousePublicId: PublicIdSchema7,
|
|
1859
2030
|
deliveryMethod: z.literal("PICKUP" /* PICKUP */),
|
|
1860
2031
|
paymentMethod: z.enum(OrderPaymentMethod),
|
|
1861
2032
|
walletAmountUsd: z.string().regex(/^\d{1,16}\.\d{2}$/).optional(),
|
|
1862
|
-
idempotencyKey:
|
|
2033
|
+
idempotencyKey: PublicIdSchema7
|
|
1863
2034
|
}).superRefine((value, context) => {
|
|
1864
2035
|
if (value.paymentMethod === "CASH" /* CASH */ && value.walletAmountUsd) {
|
|
1865
2036
|
context.addIssue({
|
|
@@ -1877,9 +2048,9 @@ var CreateBoxOrderRequestSchema = BoxSelectionSchema.extend({
|
|
|
1877
2048
|
}
|
|
1878
2049
|
});
|
|
1879
2050
|
var BoxPurchaseSchema = z.object({
|
|
1880
|
-
publicId:
|
|
1881
|
-
boxPublicId:
|
|
1882
|
-
orderPublicId:
|
|
2051
|
+
publicId: PublicIdSchema7,
|
|
2052
|
+
boxPublicId: PublicIdSchema7,
|
|
2053
|
+
orderPublicId: PublicIdSchema7,
|
|
1883
2054
|
boxCode: CodeSchema4,
|
|
1884
2055
|
boxName: z.string(),
|
|
1885
2056
|
kind: z.enum(BoxPurchaseKind),
|
|
@@ -1892,6 +2063,6 @@ var BoxPurchaseSchema = z.object({
|
|
|
1892
2063
|
createdAt: z.iso.datetime()
|
|
1893
2064
|
});
|
|
1894
2065
|
|
|
1895
|
-
export { AddCartItemRequestSchema, AdminWarehouseAnalyticsQuerySchema, AdminWarehouseAnalyticsSchema, AdminWarehouseOrderSummaryQuerySchema, AdminWarehouseOrderSummarySchema, AppLocale, AppLocaleSchema, AssignWarehouseUserRequestSchema, AuthUserSchema, BaseListQuerySchema, BinaryBranch, BinaryBranchSchema, BoxCheckoutSnapshotSchema, BoxCheckoutWarehouseListSchema, BoxCheckoutWarehouseRequestSchema, BoxListQuerySchema, BoxListResponseSchema, BoxPublicIdParamSchema, BoxPurchaseKind, BoxPurchaseSchema, BoxPurchaseStatus, BoxSchema, BoxSelectionLineSchema, BoxSelectionSchema, BoxStatus, BoxStructureLevelInputSchema, BoxStructureLevelSchema, BoxTranslationInputSchema, CartItemAvailability, CartItemPublicIdParamSchema, CartItemSchema, CartSchema, ChangePasswordRequestSchema, CheckoutLocationSchema, CheckoutSnapshotSchema, CheckoutWarehouseAvailabilitySchema, CheckoutWarehouseListSchema, CheckoutWarehouseQuerySchema, CheckoutWarehouseSchema, CitiesResponseSchema, CityResponseSchema, CompleteOrderPickupRequestSchema, ConfirmEmailChangeSchema, ConfirmEmailSchema, CountriesResponseSchema, CountryResponseSchema, CreateBoxOrderRequestSchema, CreateBoxRequestSchema, CreateCurrencyRequestSchema, CreateExternalProductVideoRequestSchema, CreateMarketingInvitationRequestSchema, CreateMarketingInvitationResponseSchema, CreateMarketingRankRequestSchema, CreateOrderRequestSchema, CreateProductCategoryRequestSchema, CreateProductRequestSchema, CreateProductVariantRequestSchema, CreateUserRequestSchema, CreateWalletTransactionRequestSchema, CreateWarehouseOperationRequestSchema, CreateWarehouseRequestSchema, CurrencyCodeParamSchema, CurrencyCodeSchema, CurrencyListResponseSchema, CurrencySchema, DateFromSchema, DateToSchema, DbIdSchema, ExchangeRateListResponseSchema, ExchangeRateSchema, ExchangeRateSourceSchema, ExecuteWarehouseOperationRequestSchema, FileIdParamSchema, ForgotPasswordSchema, GetCitiesQuerySchema, GetUserWalletByTypeParamsSchema, GetUserWalletTransactionsParamsSchema, GetUserWalletsParamsSchema, INT4_MAX, InvitationMarketingPlacementSchema, LimitSchema, LocalizedBoxListResponseSchema, LocalizedBoxSchema, LocalizedProductCategorySchema, LocalizedProductSchema, ManualMarketingPlacementSchema, MarkOrderReadyRequestSchema, MarketingInvitationTokenSchema, MarketingMatchingLevelInputSchema, MarketingMatchingLevelSchema, MarketingMemberStatus, MarketingMemberStatusSchema, MarketingPlacementIdentitySchema, MarketingPlacementPreviewSchema, MarketingPublicIdentifierSchema, MarketingRankListQuerySchema, MarketingRankListResponseSchema, MarketingRankPublicIdParamSchema, MarketingRankRewardType, MarketingRankRewardTypeSchema, MarketingRankSchema, MarketingRankTranslationInputSchema, MarketingVolumeKind, MarketingVolumeKindSchema, MoneyAmountSchema, MoneyAmountStringSchema, MoneyViewSchema, OrderDeliveryMethod, OrderEventSchema, OrderEventType, OrderItemSchema, OrderListItemSchema, OrderListQuerySchema, OrderListResponseSchema, OrderNotificationListSchema, OrderNotificationSchema, OrderNotificationType, OrderPaymentMethod, OrderPaymentStatus, OrderPublicIdParamSchema, OrderReceiptDecision, OrderReceiptParamSchema, OrderReceiptSchema, OrderReceiptStatus, OrderReservationStatus, OrderSchema, OrderStatus, OrderStockAvailability, OrderType, OrderWarehouseSchema, PageSchema, PaginationQuerySchema, ProductCategorySchema, ProductCategoryTranslationInputSchema, ProductListQuerySchema, ProductMediaPublicIdParamSchema, ProductMediaRole, ProductMediaSchema, ProductMediaType, ProductPublicIdParamSchema, ProductSchema, ProductSlugParamSchema, ProductStatus, ProductTranslationInputSchema, ProductUnit, ProductVariantInputSchema, ProductVariantPublicIdParamSchema, ProductVariantSchema, RatePerBaseSchema, RefreshResponseSchema, RegistrationAvailabilityRequestSchema, RegistrationAvailabilityResponseSchema, RegistrationEmailSchema, RegistrationLoginSchema, RegistrationPasswordSchema, RegistrationPhoneNumberSchema, RejectWarehouseOperationRequestSchema, ReportWarehouseDiscrepancyRequestSchema, RequestEmailChangeSchema, RequestEmailVerificationSchema, ResetPasswordSchema, ReviewOrderReceiptRequestSchema, SearchSchema, SignInRequestSchema, SignInResponseSchema, SignUpRequestSchema, SortOrderSchema, SupportedLocales, UpdateBoxRequestSchema, UpdateCartItemRequestSchema, UpdateCurrencyRequestSchema, UpdateExchangeRateRequestSchema, UpdateMarketingRankRequestSchema, UpdateProductCategoryRequestSchema, UpdateProductMediaRequestSchema, UpdateProductRequestSchema, UpdateProductVariantRequestSchema, UpdateUserRequestSchema, UpdateWarehouseRequestSchema, UploadProductImageRequestSchema, UploadProductVideoRequestSchema, UserFileListSchema, UserFileSchema, UserFileType, UserListResponseSchema, UserRole, UserSchema, WalletCurrency, WalletCurrencySchema, WalletListResponseSchema, WalletOperationKeySchema, WalletSchema, WalletStatus, WalletStatusSchema, WalletTransactionDetailsListResponseSchema, WalletTransactionDetailsSchema, WalletTransactionDirection, WalletTransactionDirectionSchema, WalletTransactionListResponseSchema, WalletTransactionReason, WalletTransactionReasonSchema, WalletTransactionSchema, WalletTransactionSourceUserSchema, WalletTransactionStatus, WalletTransactionStatusSchema, WalletTransactionsListQuerySchema, WalletType, WalletTypeSchema, WarehouseAssignmentParamSchema, WarehouseAssignmentSchema, WarehouseAssignmentType, WarehouseDayScheduleSchema, WarehouseListQuerySchema, WarehouseMovementSchema, WarehouseMovementType, WarehouseOperationAttachmentParamSchema, WarehouseOperationAttachmentSchema, WarehouseOperationCommentSchema, WarehouseOperationEventSchema, WarehouseOperationLineSchema, WarehouseOperationListQuerySchema, WarehouseOperationPublicIdParamSchema, WarehouseOperationSchema, WarehouseOrderReservationListQuerySchema, WarehouseOrderReservationListResponseSchema, WarehouseOrderReservationSchema, WarehousePickupOrderListQuerySchema, WarehousePublicIdParamSchema, WarehouseRequestLineInputSchema, WarehouseRequestStatus, WarehouseRequestType, WarehouseSchema, WarehouseStatus, WarehouseStockListQuerySchema, WarehouseStockSchema, WarehouseUserLookupSchema, WarehouseUserSearchQuerySchema, WarehouseWeekday, WarehouseWeeklyScheduleSchema, WarehouseWriteOffReason };
|
|
2066
|
+
export { AddCartItemRequestSchema, AdminWarehouseAnalyticsQuerySchema, AdminWarehouseAnalyticsSchema, AdminWarehouseOrderSummaryQuerySchema, AdminWarehouseOrderSummarySchema, AppLocale, AppLocaleSchema, AssignWarehouseUserRequestSchema, AuthUserSchema, BaseListQuerySchema, BinaryBranch, BinaryBranchSchema, BinaryStructureMetricsSchema, BinaryStructureResponseSchema, BoxCheckoutSnapshotSchema, BoxCheckoutWarehouseListSchema, BoxCheckoutWarehouseRequestSchema, BoxListQuerySchema, BoxListResponseSchema, BoxPublicIdParamSchema, BoxPurchaseKind, BoxPurchaseSchema, BoxPurchaseStatus, BoxSchema, BoxSelectionLineSchema, BoxSelectionSchema, BoxStatus, BoxStructureLevelInputSchema, BoxStructureLevelSchema, BoxTranslationInputSchema, CartItemAvailability, CartItemPublicIdParamSchema, CartItemSchema, CartSchema, ChangePasswordRequestSchema, CheckoutLocationSchema, CheckoutSnapshotSchema, CheckoutWarehouseAvailabilitySchema, CheckoutWarehouseListSchema, CheckoutWarehouseQuerySchema, CheckoutWarehouseSchema, CitiesResponseSchema, CityResponseSchema, CompleteOrderPickupRequestSchema, ConfirmEmailChangeSchema, ConfirmEmailSchema, CountriesResponseSchema, CountryResponseSchema, CreateBoxOrderRequestSchema, CreateBoxRequestSchema, CreateCurrencyRequestSchema, CreateExternalProductVideoRequestSchema, CreateMarketingInvitationRequestSchema, CreateMarketingInvitationResponseSchema, CreateMarketingRankRequestSchema, CreateOrderRequestSchema, CreateProductCategoryRequestSchema, CreateProductRequestSchema, CreateProductVariantRequestSchema, CreateUserRequestSchema, CreateWalletTransactionRequestSchema, CreateWarehouseOperationRequestSchema, CreateWarehouseRequestSchema, CurrencyCodeParamSchema, CurrencyCodeSchema, CurrencyListResponseSchema, CurrencySchema, DateFromSchema, DateToSchema, DbIdSchema, ExchangeRateListResponseSchema, ExchangeRateSchema, ExchangeRateSourceSchema, ExecuteWarehouseOperationRequestSchema, FileIdParamSchema, ForgotPasswordSchema, GetCitiesQuerySchema, GetUserWalletByTypeParamsSchema, GetUserWalletTransactionsParamsSchema, GetUserWalletsParamsSchema, INT4_MAX, InvitationMarketingPlacementSchema, LimitSchema, LocalizedBoxListResponseSchema, LocalizedBoxSchema, LocalizedProductCategorySchema, LocalizedProductSchema, ManualMarketingPlacementSchema, MarkOrderReadyRequestSchema, MarketingBonusPeriod, MarketingBonusPeriodSchema, MarketingBonusSummaryItemSchema, MarketingBonusSummaryQuerySchema, MarketingBonusSummaryResponseSchema, MarketingBonusType, MarketingBonusTypeSchema, MarketingInvitationTokenSchema, MarketingMatchingLevelInputSchema, MarketingMatchingLevelSchema, MarketingMemberStatus, MarketingMemberStatusSchema, MarketingPartnerStage, MarketingPartnerStageSchema, MarketingPlacementIdentitySchema, MarketingPlacementPreviewSchema, MarketingPublicIdentifierSchema, MarketingRankListQuerySchema, MarketingRankListResponseSchema, MarketingRankPublicIdParamSchema, MarketingRankRewardType, MarketingRankRewardTypeSchema, MarketingRankSchema, MarketingRankTranslationInputSchema, MarketingStructureBinaryVolumesSchema, MarketingStructureBoxSchema, MarketingStructureEventSchema, MarketingStructureKind, MarketingStructureKindSchema, MarketingStructureMemberDetailSchema, MarketingStructureMemberParamSchema, MarketingStructureMemberQuerySchema, MarketingStructureMemberSchema, MarketingStructureQuerySchema, MarketingStructureRankSchema, MarketingStructureSearchQuerySchema, MarketingStructureSearchResponseSchema, MarketingStructureSummarySchema, MarketingVolumeKind, MarketingVolumeKindSchema, MoneyAmountSchema, MoneyAmountStringSchema, MoneyViewSchema, OrderDeliveryMethod, OrderEventSchema, OrderEventType, OrderItemSchema, OrderListItemSchema, OrderListQuerySchema, OrderListResponseSchema, OrderNotificationListSchema, OrderNotificationSchema, OrderNotificationType, OrderPaymentMethod, OrderPaymentStatus, OrderPublicIdParamSchema, OrderReceiptDecision, OrderReceiptParamSchema, OrderReceiptSchema, OrderReceiptStatus, OrderReservationStatus, OrderSchema, OrderStatus, OrderStockAvailability, OrderType, OrderWarehouseSchema, PageSchema, PaginationQuerySchema, ProductCategorySchema, ProductCategoryTranslationInputSchema, ProductListQuerySchema, ProductMediaPublicIdParamSchema, ProductMediaRole, ProductMediaSchema, ProductMediaType, ProductPublicIdParamSchema, ProductSchema, ProductSlugParamSchema, ProductStatus, ProductTranslationInputSchema, ProductUnit, ProductVariantInputSchema, ProductVariantPublicIdParamSchema, ProductVariantSchema, RatePerBaseSchema, ReferralStructureResponseSchema, RefreshResponseSchema, RegistrationAvailabilityRequestSchema, RegistrationAvailabilityResponseSchema, RegistrationEmailSchema, RegistrationLoginSchema, RegistrationPasswordSchema, RegistrationPhoneNumberSchema, RejectWarehouseOperationRequestSchema, ReportWarehouseDiscrepancyRequestSchema, RequestEmailChangeSchema, RequestEmailVerificationSchema, ResetPasswordSchema, ReviewOrderReceiptRequestSchema, SearchSchema, SignInRequestSchema, SignInResponseSchema, SignUpRequestSchema, SortOrderSchema, SupportedLocales, UpdateBoxRequestSchema, UpdateCartItemRequestSchema, UpdateCurrencyRequestSchema, UpdateExchangeRateRequestSchema, UpdateMarketingRankRequestSchema, UpdateProductCategoryRequestSchema, UpdateProductMediaRequestSchema, UpdateProductRequestSchema, UpdateProductVariantRequestSchema, UpdateUserRequestSchema, UpdateWarehouseRequestSchema, UploadProductImageRequestSchema, UploadProductVideoRequestSchema, UserFileListSchema, UserFileSchema, UserFileType, UserListResponseSchema, UserRole, UserSchema, WalletCurrency, WalletCurrencySchema, WalletListResponseSchema, WalletOperationKeySchema, WalletSchema, WalletStatus, WalletStatusSchema, WalletTransactionDetailsListResponseSchema, WalletTransactionDetailsSchema, WalletTransactionDirection, WalletTransactionDirectionSchema, WalletTransactionListResponseSchema, WalletTransactionReason, WalletTransactionReasonSchema, WalletTransactionSchema, WalletTransactionSourceUserSchema, WalletTransactionStatus, WalletTransactionStatusSchema, WalletTransactionsListQuerySchema, WalletType, WalletTypeSchema, WarehouseAssignmentParamSchema, WarehouseAssignmentSchema, WarehouseAssignmentType, WarehouseDayScheduleSchema, WarehouseListQuerySchema, WarehouseMovementSchema, WarehouseMovementType, WarehouseOperationAttachmentParamSchema, WarehouseOperationAttachmentSchema, WarehouseOperationCommentSchema, WarehouseOperationEventSchema, WarehouseOperationLineSchema, WarehouseOperationListQuerySchema, WarehouseOperationPublicIdParamSchema, WarehouseOperationSchema, WarehouseOrderReservationListQuerySchema, WarehouseOrderReservationListResponseSchema, WarehouseOrderReservationSchema, WarehousePickupOrderListQuerySchema, WarehousePublicIdParamSchema, WarehouseRequestLineInputSchema, WarehouseRequestStatus, WarehouseRequestType, WarehouseSchema, WarehouseStatus, WarehouseStockListQuerySchema, WarehouseStockSchema, WarehouseUserLookupSchema, WarehouseUserSearchQuerySchema, WarehouseWeekday, WarehouseWeeklyScheduleSchema, WarehouseWriteOffReason };
|
|
1896
2067
|
//# sourceMappingURL=index.mjs.map
|
|
1897
2068
|
//# sourceMappingURL=index.mjs.map
|