@lifeaz/lors-helper 1.0.18 → 1.0.20
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 +1 -1
- package/dist/main.d.ts +22 -90
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +11 -46
- package/package.json +3 -3
- package/src/main.ts +14 -59
package/README.md
CHANGED
package/dist/main.d.ts
CHANGED
|
@@ -31,18 +31,14 @@ export type PaymentProvider = '_Mollie_' | '_Alma_';
|
|
|
31
31
|
export declare const PaymentProviderSchema: z.ZodUnion<readonly [z.ZodLiteral<"_Mollie_">, z.ZodLiteral<"_Alma_">]>;
|
|
32
32
|
export type DeliveryMethod = '_Standard_' | '_Express_';
|
|
33
33
|
export declare const DeliveryMethodSchema: z.ZodUnion<readonly [z.ZodLiteral<"_Standard_">, z.ZodLiteral<"_Express_">]>;
|
|
34
|
-
export type DiscountValueType = '_Percentage_' | '_Fixed_Amount_' | '_Fixed_Total_';
|
|
35
|
-
export declare const DiscountValueTypeSchema: z.ZodUnion<readonly [z.ZodLiteral<"_Percentage_">, z.ZodLiteral<"_Fixed_Amount_">, z.ZodLiteral<"_Fixed_Total_">]>;
|
|
34
|
+
export type DiscountValueType = '_Percentage_' | '_Fixed_Amount_' | '_Fixed_Total_' | '_Item_';
|
|
35
|
+
export declare const DiscountValueTypeSchema: z.ZodUnion<readonly [z.ZodLiteral<"_Percentage_">, z.ZodLiteral<"_Fixed_Amount_">, z.ZodLiteral<"_Fixed_Total_">, z.ZodLiteral<"_Item_">]>;
|
|
36
36
|
export type DiscountTargetScope = '_Whole_Cart_' | '_Specific_Items_' | '_Item_Category_' | '_Delivery_';
|
|
37
37
|
export declare const DiscountTargetScopeSchema: z.ZodUnion<readonly [z.ZodLiteral<"_Whole_Cart_">, z.ZodLiteral<"_Specific_Items_">, z.ZodLiteral<"_Item_Category_">, z.ZodLiteral<"_Delivery_">]>;
|
|
38
38
|
export type DiscountOperator = '_Item_In_Cart_' | '_Item_Not_In_Cart_' | '_Item_Qty_Min_' | '_Item_Qty_Max_' | '_Item_Qty_Between_' | '_Cart_Total_Min_' | '_Cart_Total_Max_' | '_Cart_Total_Between_' | '_Profile_In_' | '_Country_In_' | '_Payment_Frequency_Eq_';
|
|
39
39
|
export declare const DiscountOperatorSchema: z.ZodUnion<readonly [z.ZodLiteral<"_Item_In_Cart_">, z.ZodLiteral<"_Item_Not_In_Cart_">, z.ZodLiteral<"_Item_Qty_Min_">, z.ZodLiteral<"_Item_Qty_Max_">, z.ZodLiteral<"_Item_Qty_Between_">, z.ZodLiteral<"_Cart_Total_Min_">, z.ZodLiteral<"_Cart_Total_Max_">, z.ZodLiteral<"_Cart_Total_Between_">, z.ZodLiteral<"_Profile_In_">, z.ZodLiteral<"_Country_In_">, z.ZodLiteral<"_Payment_Frequency_Eq_">]>;
|
|
40
40
|
export type DiscountNodeKind = '_And_' | '_Or_' | '_Leaf_';
|
|
41
41
|
export declare const DiscountNodeKindSchema: z.ZodUnion<readonly [z.ZodLiteral<"_And_">, z.ZodLiteral<"_Or_">, z.ZodLiteral<"_Leaf_">]>;
|
|
42
|
-
export type Surface = '_All_' | '_Checkout_' | '_Storefront_';
|
|
43
|
-
export declare const SurfaceSchema: z.ZodUnion<readonly [z.ZodLiteral<"_All_">, z.ZodLiteral<"_Checkout_">, z.ZodLiteral<"_Storefront_">]>;
|
|
44
|
-
export type OperationAssetType = '_Banner_Header_' | '_Banner_Mini_' | '_Banner_Sub_Header_' | '_Hero_' | '_Popup_Welcome_' | '_Popup_Operation_' | '_Popup_Technical_' | '_Strikethrough_Price_' | '_Discount_Section_' | '_Tag_' | '_Text_Banner_' | '_Page_Background_';
|
|
45
|
-
export declare const OperationAssetTypeSchema: z.ZodUnion<readonly [z.ZodLiteral<"_Banner_Header_">, z.ZodLiteral<"_Banner_Mini_">, z.ZodLiteral<"_Banner_Sub_Header_">, z.ZodLiteral<"_Hero_">, z.ZodLiteral<"_Popup_Welcome_">, z.ZodLiteral<"_Popup_Operation_">, z.ZodLiteral<"_Popup_Technical_">, z.ZodLiteral<"_Strikethrough_Price_">, z.ZodLiteral<"_Discount_Section_">, z.ZodLiteral<"_Tag_">, z.ZodLiteral<"_Text_Banner_">, z.ZodLiteral<"_Page_Background_">]>;
|
|
46
42
|
export type AddressType = '_Delivery_' | '_Billing_';
|
|
47
43
|
export declare const AddressTypeSchema: z.ZodUnion<readonly [z.ZodLiteral<"_Delivery_">, z.ZodLiteral<"_Billing_">]>;
|
|
48
44
|
export type AddressConfidence = '_Verified_' | '_Partial_';
|
|
@@ -234,6 +230,7 @@ export declare const CartItemSchema: z.ZodObject<{
|
|
|
234
230
|
isMainOffer: z.ZodBoolean;
|
|
235
231
|
visible: z.ZodBoolean;
|
|
236
232
|
maxPerCart: z.ZodNullable<z.ZodNumber>;
|
|
233
|
+
isGift: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
237
234
|
}, z.core.$strip>;
|
|
238
235
|
export type CartItem = z.infer<typeof CartItemSchema>;
|
|
239
236
|
export declare const PricingContextSchema: z.ZodObject<{
|
|
@@ -270,6 +267,7 @@ export declare const PricingLineSchema: z.ZodObject<{
|
|
|
270
267
|
vatRate: z.ZodNumber;
|
|
271
268
|
countryIso: z.ZodString;
|
|
272
269
|
matchKind: z.ZodNullable<z.ZodString>;
|
|
270
|
+
isGift: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
273
271
|
}, z.core.$strip>;
|
|
274
272
|
export type PricingLine = z.infer<typeof PricingLineSchema>;
|
|
275
273
|
export declare const PricingRecurrenceTotalSchema: z.ZodObject<{
|
|
@@ -326,7 +324,7 @@ export declare const AppliedDiscountSchema: z.ZodObject<{
|
|
|
326
324
|
code: z.ZodString;
|
|
327
325
|
label: z.ZodNullable<z.ZodString>;
|
|
328
326
|
targetScope: z.ZodUnion<readonly [z.ZodLiteral<"_Whole_Cart_">, z.ZodLiteral<"_Specific_Items_">, z.ZodLiteral<"_Item_Category_">, z.ZodLiteral<"_Delivery_">]>;
|
|
329
|
-
valueType: z.ZodUnion<readonly [z.ZodLiteral<"_Percentage_">, z.ZodLiteral<"_Fixed_Amount_">, z.ZodLiteral<"_Fixed_Total_">]>;
|
|
327
|
+
valueType: z.ZodUnion<readonly [z.ZodLiteral<"_Percentage_">, z.ZodLiteral<"_Fixed_Amount_">, z.ZodLiteral<"_Fixed_Total_">, z.ZodLiteral<"_Item_">]>;
|
|
330
328
|
stackable: z.ZodBoolean;
|
|
331
329
|
startsAt: z.ZodOptional<z.ZodNullable<z.ZodCustom<Dayjs, Dayjs>>>;
|
|
332
330
|
endsAt: z.ZodOptional<z.ZodNullable<z.ZodCustom<Dayjs, Dayjs>>>;
|
|
@@ -396,6 +394,7 @@ export declare const CartPricingSchema: z.ZodObject<{
|
|
|
396
394
|
vatRate: z.ZodNumber;
|
|
397
395
|
countryIso: z.ZodString;
|
|
398
396
|
matchKind: z.ZodNullable<z.ZodString>;
|
|
397
|
+
isGift: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
399
398
|
}, z.core.$strip>>;
|
|
400
399
|
totalsByRecurrence: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
401
400
|
recurrence: z.ZodUnion<readonly [z.ZodLiteral<"_One_Time_">, z.ZodLiteral<"_Monthly_">, z.ZodLiteral<"_Annually_">]>;
|
|
@@ -423,7 +422,7 @@ export declare const CartPricingSchema: z.ZodObject<{
|
|
|
423
422
|
code: z.ZodString;
|
|
424
423
|
label: z.ZodNullable<z.ZodString>;
|
|
425
424
|
targetScope: z.ZodUnion<readonly [z.ZodLiteral<"_Whole_Cart_">, z.ZodLiteral<"_Specific_Items_">, z.ZodLiteral<"_Item_Category_">, z.ZodLiteral<"_Delivery_">]>;
|
|
426
|
-
valueType: z.ZodUnion<readonly [z.ZodLiteral<"_Percentage_">, z.ZodLiteral<"_Fixed_Amount_">, z.ZodLiteral<"_Fixed_Total_">]>;
|
|
425
|
+
valueType: z.ZodUnion<readonly [z.ZodLiteral<"_Percentage_">, z.ZodLiteral<"_Fixed_Amount_">, z.ZodLiteral<"_Fixed_Total_">, z.ZodLiteral<"_Item_">]>;
|
|
427
426
|
stackable: z.ZodBoolean;
|
|
428
427
|
startsAt: z.ZodOptional<z.ZodNullable<z.ZodCustom<Dayjs, Dayjs>>>;
|
|
429
428
|
endsAt: z.ZodOptional<z.ZodNullable<z.ZodCustom<Dayjs, Dayjs>>>;
|
|
@@ -544,88 +543,6 @@ export declare const OrderItemSchema: z.ZodObject<{
|
|
|
544
543
|
}, z.core.$strip>;
|
|
545
544
|
}, z.core.$strip>;
|
|
546
545
|
export type OrderItem = z.infer<typeof OrderItemSchema>;
|
|
547
|
-
export declare const OperationSummarySchema: z.ZodObject<{
|
|
548
|
-
id: z.ZodCustom<UUID, UUID>;
|
|
549
|
-
slug: z.ZodString;
|
|
550
|
-
name: z.ZodString;
|
|
551
|
-
description: z.ZodNullable<z.ZodString>;
|
|
552
|
-
startsAt: z.ZodCustom<Dayjs, Dayjs>;
|
|
553
|
-
endsAt: z.ZodCustom<Dayjs, Dayjs>;
|
|
554
|
-
priority: z.ZodNumber;
|
|
555
|
-
autoApplyDiscount: z.ZodBoolean;
|
|
556
|
-
discountId: z.ZodNullable<z.ZodCustom<UUID, UUID>>;
|
|
557
|
-
discountCode: z.ZodNullable<z.ZodString>;
|
|
558
|
-
discountLabel: z.ZodNullable<z.ZodString>;
|
|
559
|
-
discountValueType: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"_Percentage_">, z.ZodLiteral<"_Fixed_Amount_">, z.ZodLiteral<"_Fixed_Total_">]>>;
|
|
560
|
-
discountValue: z.ZodNullable<z.ZodNumber>;
|
|
561
|
-
}, z.core.$strip>;
|
|
562
|
-
export type OperationSummary = z.infer<typeof OperationSummarySchema>;
|
|
563
|
-
export declare const OperationAssetSchema: z.ZodObject<{
|
|
564
|
-
id: z.ZodCustom<UUID, UUID>;
|
|
565
|
-
operationId: z.ZodCustom<UUID, UUID>;
|
|
566
|
-
type: z.ZodUnion<readonly [z.ZodLiteral<"_Banner_Header_">, z.ZodLiteral<"_Banner_Mini_">, z.ZodLiteral<"_Banner_Sub_Header_">, z.ZodLiteral<"_Hero_">, z.ZodLiteral<"_Popup_Welcome_">, z.ZodLiteral<"_Popup_Operation_">, z.ZodLiteral<"_Popup_Technical_">, z.ZodLiteral<"_Strikethrough_Price_">, z.ZodLiteral<"_Discount_Section_">, z.ZodLiteral<"_Tag_">, z.ZodLiteral<"_Text_Banner_">, z.ZodLiteral<"_Page_Background_">]>;
|
|
567
|
-
surface: z.ZodUnion<readonly [z.ZodLiteral<"_All_">, z.ZodLiteral<"_Checkout_">, z.ZodLiteral<"_Storefront_">]>;
|
|
568
|
-
lang: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"fr">, z.ZodLiteral<"en">, z.ZodLiteral<"nl">, z.ZodLiteral<"de">, z.ZodLiteral<"it">, z.ZodLiteral<"es">]>>;
|
|
569
|
-
order: z.ZodNumber;
|
|
570
|
-
pageUrlPattern: z.ZodNullable<z.ZodString>;
|
|
571
|
-
content: z.ZodUnknown;
|
|
572
|
-
styles: z.ZodNullable<z.ZodUnknown>;
|
|
573
|
-
createdAt: z.ZodCustom<Dayjs, Dayjs>;
|
|
574
|
-
updatedAt: z.ZodCustom<Dayjs, Dayjs>;
|
|
575
|
-
}, z.core.$strip>;
|
|
576
|
-
export type OperationAsset = z.infer<typeof OperationAssetSchema>;
|
|
577
|
-
export declare const OperationItemPricingSchema: z.ZodObject<{
|
|
578
|
-
id: z.ZodCustom<UUID, UUID>;
|
|
579
|
-
operationId: z.ZodCustom<UUID, UUID>;
|
|
580
|
-
itemId: z.ZodCustom<UUID, UUID>;
|
|
581
|
-
profile: z.ZodUnion<readonly [z.ZodLiteral<"_Individual_">, z.ZodLiteral<"_Small_Business_">, z.ZodLiteral<"_Company_">]>;
|
|
582
|
-
recurrence: z.ZodUnion<readonly [z.ZodLiteral<"_One_Time_">, z.ZodLiteral<"_Monthly_">, z.ZodLiteral<"_Annually_">]>;
|
|
583
|
-
originalExclVat: z.ZodNumber;
|
|
584
|
-
discountedExclVat: z.ZodNumber;
|
|
585
|
-
currency: z.ZodString;
|
|
586
|
-
sku: z.ZodNullable<z.ZodString>;
|
|
587
|
-
}, z.core.$strip>;
|
|
588
|
-
export type OperationItemPricing = z.infer<typeof OperationItemPricingSchema>;
|
|
589
|
-
export declare const OperationDetailSchema: z.ZodObject<{
|
|
590
|
-
id: z.ZodCustom<UUID, UUID>;
|
|
591
|
-
slug: z.ZodString;
|
|
592
|
-
name: z.ZodString;
|
|
593
|
-
description: z.ZodNullable<z.ZodString>;
|
|
594
|
-
startsAt: z.ZodCustom<Dayjs, Dayjs>;
|
|
595
|
-
endsAt: z.ZodCustom<Dayjs, Dayjs>;
|
|
596
|
-
priority: z.ZodNumber;
|
|
597
|
-
autoApplyDiscount: z.ZodBoolean;
|
|
598
|
-
discountId: z.ZodNullable<z.ZodCustom<UUID, UUID>>;
|
|
599
|
-
discountCode: z.ZodNullable<z.ZodString>;
|
|
600
|
-
discountLabel: z.ZodNullable<z.ZodString>;
|
|
601
|
-
discountValueType: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"_Percentage_">, z.ZodLiteral<"_Fixed_Amount_">, z.ZodLiteral<"_Fixed_Total_">]>>;
|
|
602
|
-
discountValue: z.ZodNullable<z.ZodNumber>;
|
|
603
|
-
assets: z.ZodArray<z.ZodObject<{
|
|
604
|
-
id: z.ZodCustom<UUID, UUID>;
|
|
605
|
-
operationId: z.ZodCustom<UUID, UUID>;
|
|
606
|
-
type: z.ZodUnion<readonly [z.ZodLiteral<"_Banner_Header_">, z.ZodLiteral<"_Banner_Mini_">, z.ZodLiteral<"_Banner_Sub_Header_">, z.ZodLiteral<"_Hero_">, z.ZodLiteral<"_Popup_Welcome_">, z.ZodLiteral<"_Popup_Operation_">, z.ZodLiteral<"_Popup_Technical_">, z.ZodLiteral<"_Strikethrough_Price_">, z.ZodLiteral<"_Discount_Section_">, z.ZodLiteral<"_Tag_">, z.ZodLiteral<"_Text_Banner_">, z.ZodLiteral<"_Page_Background_">]>;
|
|
607
|
-
surface: z.ZodUnion<readonly [z.ZodLiteral<"_All_">, z.ZodLiteral<"_Checkout_">, z.ZodLiteral<"_Storefront_">]>;
|
|
608
|
-
lang: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"fr">, z.ZodLiteral<"en">, z.ZodLiteral<"nl">, z.ZodLiteral<"de">, z.ZodLiteral<"it">, z.ZodLiteral<"es">]>>;
|
|
609
|
-
order: z.ZodNumber;
|
|
610
|
-
pageUrlPattern: z.ZodNullable<z.ZodString>;
|
|
611
|
-
content: z.ZodUnknown;
|
|
612
|
-
styles: z.ZodNullable<z.ZodUnknown>;
|
|
613
|
-
createdAt: z.ZodCustom<Dayjs, Dayjs>;
|
|
614
|
-
updatedAt: z.ZodCustom<Dayjs, Dayjs>;
|
|
615
|
-
}, z.core.$strip>>;
|
|
616
|
-
itemsPricing: z.ZodArray<z.ZodObject<{
|
|
617
|
-
id: z.ZodCustom<UUID, UUID>;
|
|
618
|
-
operationId: z.ZodCustom<UUID, UUID>;
|
|
619
|
-
itemId: z.ZodCustom<UUID, UUID>;
|
|
620
|
-
profile: z.ZodUnion<readonly [z.ZodLiteral<"_Individual_">, z.ZodLiteral<"_Small_Business_">, z.ZodLiteral<"_Company_">]>;
|
|
621
|
-
recurrence: z.ZodUnion<readonly [z.ZodLiteral<"_One_Time_">, z.ZodLiteral<"_Monthly_">, z.ZodLiteral<"_Annually_">]>;
|
|
622
|
-
originalExclVat: z.ZodNumber;
|
|
623
|
-
discountedExclVat: z.ZodNumber;
|
|
624
|
-
currency: z.ZodString;
|
|
625
|
-
sku: z.ZodNullable<z.ZodString>;
|
|
626
|
-
}, z.core.$strip>>;
|
|
627
|
-
}, z.core.$strip>;
|
|
628
|
-
export type OperationDetail = z.infer<typeof OperationDetailSchema>;
|
|
629
546
|
export declare const TestimonialSchema: z.ZodObject<{
|
|
630
547
|
id: z.ZodCustom<UUID, UUID>;
|
|
631
548
|
lang: z.ZodUnion<readonly [z.ZodLiteral<"fr">, z.ZodLiteral<"en">, z.ZodLiteral<"nl">, z.ZodLiteral<"de">, z.ZodLiteral<"it">, z.ZodLiteral<"es">]>;
|
|
@@ -743,6 +660,14 @@ export declare const CampaignRibbonSchema: z.ZodObject<{
|
|
|
743
660
|
text: z.ZodString;
|
|
744
661
|
}, z.core.$strip>;
|
|
745
662
|
export type CampaignRibbon = z.infer<typeof CampaignRibbonSchema>;
|
|
663
|
+
export declare const CampaignPriceImpactSchema: z.ZodObject<{
|
|
664
|
+
discountCode: z.ZodString;
|
|
665
|
+
autoApply: z.ZodBoolean;
|
|
666
|
+
originalPrefix: z.ZodString;
|
|
667
|
+
valueType: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"_Percentage_">, z.ZodLiteral<"_Fixed_Amount_">, z.ZodLiteral<"_Fixed_Total_">, z.ZodLiteral<"_Item_">]>>;
|
|
668
|
+
rules: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
669
|
+
}, z.core.$strip>;
|
|
670
|
+
export type CampaignPriceImpact = z.infer<typeof CampaignPriceImpactSchema>;
|
|
746
671
|
export declare const CampaignSchema: z.ZodObject<{
|
|
747
672
|
id: z.ZodCustom<UUID, UUID>;
|
|
748
673
|
slug: z.ZodString;
|
|
@@ -783,6 +708,13 @@ export declare const CampaignSchema: z.ZodObject<{
|
|
|
783
708
|
strong: z.ZodNullable<z.ZodString>;
|
|
784
709
|
text: z.ZodString;
|
|
785
710
|
}, z.core.$strip>>;
|
|
711
|
+
priceImpact: z.ZodNullable<z.ZodObject<{
|
|
712
|
+
discountCode: z.ZodString;
|
|
713
|
+
autoApply: z.ZodBoolean;
|
|
714
|
+
originalPrefix: z.ZodString;
|
|
715
|
+
valueType: z.ZodNullable<z.ZodUnion<readonly [z.ZodLiteral<"_Percentage_">, z.ZodLiteral<"_Fixed_Amount_">, z.ZodLiteral<"_Fixed_Total_">, z.ZodLiteral<"_Item_">]>>;
|
|
716
|
+
rules: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
717
|
+
}, z.core.$strip>>;
|
|
786
718
|
}, z.core.$strip>;
|
|
787
719
|
export type Campaign = z.infer<typeof CampaignSchema>;
|
|
788
720
|
//# sourceMappingURL=main.d.ts.map
|
package/dist/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAKnC,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAC3D,eAAO,MAAM,UAAU,+IAAkH,CAAC;AAE1I,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG,kBAAkB,GAAG,WAAW,CAAC;AAC5E,eAAO,MAAM,iBAAiB,kHAA8F,CAAC;AAE7H,MAAM,MAAM,QAAQ,GAAG,WAAW,GAAG,UAAU,GAAG,eAAe,GAAG,WAAW,GAAG,YAAY,GAAG,WAAW,CAAC;AAC7G,eAAO,MAAM,cAAc,6LAAgK,CAAC;AAE5L,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,aAAa,GAAG,aAAa,CAAC;AAC5F,eAAO,MAAM,gBAAgB,6JAAmI,CAAC;AAEjK,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,QAAQ,GAAG,iBAAiB,GAAG,eAAe,GAAG,aAAa,GAAG,aAAa,GAAG,YAAY,CAAC;AACtI,eAAO,MAAM,iBAAiB,gOAAgM,CAAC;AAE/N,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,WAAW,GA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K,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
package/dist/main.js
CHANGED
|
@@ -16,7 +16,7 @@ export const CurrencyIsoSchema = z.union([z.literal('EUR'), z.literal('USD'), z.
|
|
|
16
16
|
export const PaymentMethodSchema = z.union([z.literal('_Card_'), z.literal('_PayPal_'), z.literal('_SEPA_'), z.literal('_Alma_4x_')]);
|
|
17
17
|
export const PaymentProviderSchema = z.union([z.literal('_Mollie_'), z.literal('_Alma_')]);
|
|
18
18
|
export const DeliveryMethodSchema = z.union([z.literal('_Standard_'), z.literal('_Express_')]);
|
|
19
|
-
export const DiscountValueTypeSchema = z.union([z.literal('_Percentage_'), z.literal('_Fixed_Amount_'), z.literal('_Fixed_Total_')]);
|
|
19
|
+
export const DiscountValueTypeSchema = z.union([z.literal('_Percentage_'), z.literal('_Fixed_Amount_'), z.literal('_Fixed_Total_'), z.literal('_Item_')]);
|
|
20
20
|
export const DiscountTargetScopeSchema = z.union([z.literal('_Whole_Cart_'), z.literal('_Specific_Items_'), z.literal('_Item_Category_'), z.literal('_Delivery_')]);
|
|
21
21
|
export const DiscountOperatorSchema = z.union([
|
|
22
22
|
z.literal('_Item_In_Cart_'),
|
|
@@ -32,8 +32,6 @@ export const DiscountOperatorSchema = z.union([
|
|
|
32
32
|
z.literal('_Payment_Frequency_Eq_'),
|
|
33
33
|
]);
|
|
34
34
|
export const DiscountNodeKindSchema = z.union([z.literal('_And_'), z.literal('_Or_'), z.literal('_Leaf_')]);
|
|
35
|
-
export const SurfaceSchema = z.union([z.literal('_All_'), z.literal('_Checkout_'), z.literal('_Storefront_')]);
|
|
36
|
-
export const OperationAssetTypeSchema = z.union([z.literal('_Banner_Header_'), z.literal('_Banner_Mini_'), z.literal('_Banner_Sub_Header_'), z.literal('_Hero_'), z.literal('_Popup_Welcome_'), z.literal('_Popup_Operation_'), z.literal('_Popup_Technical_'), z.literal('_Strikethrough_Price_'), z.literal('_Discount_Section_'), z.literal('_Tag_'), z.literal('_Text_Banner_'), z.literal('_Page_Background_')]);
|
|
37
35
|
export const AddressTypeSchema = z.union([z.literal('_Delivery_'), z.literal('_Billing_')]);
|
|
38
36
|
export const AddressConfidenceSchema = z.union([z.literal('_Verified_'), z.literal('_Partial_')]);
|
|
39
37
|
export const TermsTypeSchema = z.union([z.literal('_Terms_Of_Use_'), z.literal('_Terms_Of_Sales_'), z.literal('_Privacy_Policy_')]);
|
|
@@ -149,6 +147,7 @@ export const CartItemSchema = z.object({
|
|
|
149
147
|
isMainOffer: z.boolean(),
|
|
150
148
|
visible: z.boolean(),
|
|
151
149
|
maxPerCart: z.number().int().positive().nullable(),
|
|
150
|
+
isGift: z.boolean().optional().default(false),
|
|
152
151
|
});
|
|
153
152
|
export const PricingContextSchema = z.object({
|
|
154
153
|
cartId: uuidSchema,
|
|
@@ -173,6 +172,7 @@ export const PricingLineSchema = z.object({
|
|
|
173
172
|
vatRate: z.number(),
|
|
174
173
|
countryIso: z.string(),
|
|
175
174
|
matchKind: z.string().nullable(),
|
|
175
|
+
isGift: z.boolean().optional().default(false),
|
|
176
176
|
});
|
|
177
177
|
export const PricingRecurrenceTotalSchema = z.object({
|
|
178
178
|
recurrence: PriceRecurrenceSchema,
|
|
@@ -309,49 +309,6 @@ export const OrderItemSchema = z.object({
|
|
|
309
309
|
vatRate: z.number(),
|
|
310
310
|
line: AmountSchema,
|
|
311
311
|
});
|
|
312
|
-
export const OperationSummarySchema = z.object({
|
|
313
|
-
id: uuidSchema,
|
|
314
|
-
slug: z.string(),
|
|
315
|
-
name: z.string(),
|
|
316
|
-
description: z.string().nullable(),
|
|
317
|
-
startsAt: dayjsSchema,
|
|
318
|
-
endsAt: dayjsSchema,
|
|
319
|
-
priority: z.number().int(),
|
|
320
|
-
autoApplyDiscount: z.boolean(),
|
|
321
|
-
discountId: uuidSchema.nullable(),
|
|
322
|
-
discountCode: z.string().nullable(),
|
|
323
|
-
discountLabel: z.string().nullable(),
|
|
324
|
-
discountValueType: DiscountValueTypeSchema.nullable(),
|
|
325
|
-
discountValue: z.number().nullable(),
|
|
326
|
-
});
|
|
327
|
-
export const OperationAssetSchema = z.object({
|
|
328
|
-
id: uuidSchema,
|
|
329
|
-
operationId: uuidSchema,
|
|
330
|
-
type: OperationAssetTypeSchema,
|
|
331
|
-
surface: SurfaceSchema,
|
|
332
|
-
lang: LangSchema.nullable(),
|
|
333
|
-
order: z.number().int(),
|
|
334
|
-
pageUrlPattern: z.string().nullable(),
|
|
335
|
-
content: z.unknown(),
|
|
336
|
-
styles: z.unknown().nullable(),
|
|
337
|
-
createdAt: dayjsSchema,
|
|
338
|
-
updatedAt: dayjsSchema,
|
|
339
|
-
});
|
|
340
|
-
export const OperationItemPricingSchema = z.object({
|
|
341
|
-
id: uuidSchema,
|
|
342
|
-
operationId: uuidSchema,
|
|
343
|
-
itemId: uuidSchema,
|
|
344
|
-
profile: ProfileTypeSchema,
|
|
345
|
-
recurrence: PriceRecurrenceSchema,
|
|
346
|
-
originalExclVat: z.number(),
|
|
347
|
-
discountedExclVat: z.number(),
|
|
348
|
-
currency: z.string(),
|
|
349
|
-
sku: z.string().nullable(),
|
|
350
|
-
});
|
|
351
|
-
export const OperationDetailSchema = OperationSummarySchema.extend({
|
|
352
|
-
assets: z.array(OperationAssetSchema),
|
|
353
|
-
itemsPricing: z.array(OperationItemPricingSchema),
|
|
354
|
-
});
|
|
355
312
|
export const TestimonialSchema = z.object({
|
|
356
313
|
id: uuidSchema,
|
|
357
314
|
lang: LangSchema,
|
|
@@ -451,6 +408,13 @@ export const CampaignRibbonSchema = z.object({
|
|
|
451
408
|
strong: z.string().nullable(),
|
|
452
409
|
text: z.string(),
|
|
453
410
|
});
|
|
411
|
+
export const CampaignPriceImpactSchema = z.object({
|
|
412
|
+
discountCode: z.string(),
|
|
413
|
+
autoApply: z.boolean(),
|
|
414
|
+
originalPrefix: z.string(),
|
|
415
|
+
valueType: DiscountValueTypeSchema.nullable(),
|
|
416
|
+
rules: z.record(z.string(), z.number()),
|
|
417
|
+
});
|
|
454
418
|
export const CampaignSchema = z.object({
|
|
455
419
|
id: uuidSchema,
|
|
456
420
|
slug: z.string(),
|
|
@@ -463,4 +427,5 @@ export const CampaignSchema = z.object({
|
|
|
463
427
|
popup: CampaignPopupSchema.nullable(),
|
|
464
428
|
priceTag: CampaignPriceTagSchema.nullable(),
|
|
465
429
|
ribbon: CampaignRibbonSchema.nullable(),
|
|
430
|
+
priceImpact: CampaignPriceImpactSchema.nullable(),
|
|
466
431
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifeaz/lors-helper",
|
|
3
3
|
"description": "Lifeaz Online Retail Storefront Helper",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.20",
|
|
5
5
|
"main": "dist/main.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"lifeaz": {
|
|
52
52
|
"version": {
|
|
53
53
|
"short": 1,
|
|
54
|
-
"full": "1.0.
|
|
55
|
-
"code": "
|
|
54
|
+
"full": "1.0.20-b26",
|
|
55
|
+
"code": "100200026"
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
}
|
package/src/main.ts
CHANGED
|
@@ -50,8 +50,8 @@ export const PaymentProviderSchema = z.union([z.literal('_Mollie_'), z.literal('
|
|
|
50
50
|
export type DeliveryMethod = '_Standard_' | '_Express_';
|
|
51
51
|
export const DeliveryMethodSchema = z.union([z.literal('_Standard_'), z.literal('_Express_')]);
|
|
52
52
|
|
|
53
|
-
export type DiscountValueType = '_Percentage_' | '_Fixed_Amount_' | '_Fixed_Total_';
|
|
54
|
-
export const DiscountValueTypeSchema = z.union([z.literal('_Percentage_'), z.literal('_Fixed_Amount_'), z.literal('_Fixed_Total_')]);
|
|
53
|
+
export type DiscountValueType = '_Percentage_' | '_Fixed_Amount_' | '_Fixed_Total_' | '_Item_';
|
|
54
|
+
export const DiscountValueTypeSchema = z.union([z.literal('_Percentage_'), z.literal('_Fixed_Amount_'), z.literal('_Fixed_Total_'), z.literal('_Item_')]);
|
|
55
55
|
|
|
56
56
|
export type DiscountTargetScope = '_Whole_Cart_' | '_Specific_Items_' | '_Item_Category_' | '_Delivery_';
|
|
57
57
|
export const DiscountTargetScopeSchema = z.union([z.literal('_Whole_Cart_'), z.literal('_Specific_Items_'), z.literal('_Item_Category_'), z.literal('_Delivery_')]);
|
|
@@ -85,12 +85,6 @@ export const DiscountOperatorSchema = z.union([
|
|
|
85
85
|
export type DiscountNodeKind = '_And_' | '_Or_' | '_Leaf_';
|
|
86
86
|
export const DiscountNodeKindSchema = z.union([z.literal('_And_'), z.literal('_Or_'), z.literal('_Leaf_')]);
|
|
87
87
|
|
|
88
|
-
export type Surface = '_All_' | '_Checkout_' | '_Storefront_';
|
|
89
|
-
export const SurfaceSchema = z.union([z.literal('_All_'), z.literal('_Checkout_'), z.literal('_Storefront_')]);
|
|
90
|
-
|
|
91
|
-
export type OperationAssetType = '_Banner_Header_' | '_Banner_Mini_' | '_Banner_Sub_Header_' | '_Hero_' | '_Popup_Welcome_' | '_Popup_Operation_' | '_Popup_Technical_' | '_Strikethrough_Price_' | '_Discount_Section_' | '_Tag_' | '_Text_Banner_' | '_Page_Background_';
|
|
92
|
-
export const OperationAssetTypeSchema = z.union([z.literal('_Banner_Header_'), z.literal('_Banner_Mini_'), z.literal('_Banner_Sub_Header_'), z.literal('_Hero_'), z.literal('_Popup_Welcome_'), z.literal('_Popup_Operation_'), z.literal('_Popup_Technical_'), z.literal('_Strikethrough_Price_'), z.literal('_Discount_Section_'), z.literal('_Tag_'), z.literal('_Text_Banner_'), z.literal('_Page_Background_')]);
|
|
93
|
-
|
|
94
88
|
export type AddressType = '_Delivery_' | '_Billing_';
|
|
95
89
|
export const AddressTypeSchema = z.union([z.literal('_Delivery_'), z.literal('_Billing_')]);
|
|
96
90
|
|
|
@@ -244,6 +238,7 @@ export const CartItemSchema = z.object({
|
|
|
244
238
|
isMainOffer: z.boolean(),
|
|
245
239
|
visible: z.boolean(),
|
|
246
240
|
maxPerCart: z.number().int().positive().nullable(),
|
|
241
|
+
isGift: z.boolean().optional().default(false),
|
|
247
242
|
});
|
|
248
243
|
export type CartItem = z.infer<typeof CartItemSchema>;
|
|
249
244
|
|
|
@@ -272,6 +267,7 @@ export const PricingLineSchema = z.object({
|
|
|
272
267
|
vatRate: z.number(),
|
|
273
268
|
countryIso: z.string(),
|
|
274
269
|
matchKind: z.string().nullable(),
|
|
270
|
+
isGift: z.boolean().optional().default(false),
|
|
275
271
|
});
|
|
276
272
|
export type PricingLine = z.infer<typeof PricingLineSchema>;
|
|
277
273
|
|
|
@@ -443,57 +439,6 @@ export const OrderItemSchema = z.object({
|
|
|
443
439
|
});
|
|
444
440
|
export type OrderItem = z.infer<typeof OrderItemSchema>;
|
|
445
441
|
|
|
446
|
-
export const OperationSummarySchema = z.object({
|
|
447
|
-
id: uuidSchema,
|
|
448
|
-
slug: z.string(),
|
|
449
|
-
name: z.string(),
|
|
450
|
-
description: z.string().nullable(),
|
|
451
|
-
startsAt: dayjsSchema,
|
|
452
|
-
endsAt: dayjsSchema,
|
|
453
|
-
priority: z.number().int(),
|
|
454
|
-
autoApplyDiscount: z.boolean(),
|
|
455
|
-
discountId: uuidSchema.nullable(),
|
|
456
|
-
discountCode: z.string().nullable(),
|
|
457
|
-
discountLabel: z.string().nullable(),
|
|
458
|
-
discountValueType: DiscountValueTypeSchema.nullable(),
|
|
459
|
-
discountValue: z.number().nullable(),
|
|
460
|
-
});
|
|
461
|
-
export type OperationSummary = z.infer<typeof OperationSummarySchema>;
|
|
462
|
-
|
|
463
|
-
export const OperationAssetSchema = z.object({
|
|
464
|
-
id: uuidSchema,
|
|
465
|
-
operationId: uuidSchema,
|
|
466
|
-
type: OperationAssetTypeSchema,
|
|
467
|
-
surface: SurfaceSchema,
|
|
468
|
-
lang: LangSchema.nullable(),
|
|
469
|
-
order: z.number().int(),
|
|
470
|
-
pageUrlPattern: z.string().nullable(),
|
|
471
|
-
content: z.unknown(),
|
|
472
|
-
styles: z.unknown().nullable(),
|
|
473
|
-
createdAt: dayjsSchema,
|
|
474
|
-
updatedAt: dayjsSchema,
|
|
475
|
-
});
|
|
476
|
-
export type OperationAsset = z.infer<typeof OperationAssetSchema>;
|
|
477
|
-
|
|
478
|
-
export const OperationItemPricingSchema = z.object({
|
|
479
|
-
id: uuidSchema,
|
|
480
|
-
operationId: uuidSchema,
|
|
481
|
-
itemId: uuidSchema,
|
|
482
|
-
profile: ProfileTypeSchema,
|
|
483
|
-
recurrence: PriceRecurrenceSchema,
|
|
484
|
-
originalExclVat: z.number(),
|
|
485
|
-
discountedExclVat: z.number(),
|
|
486
|
-
currency: z.string(),
|
|
487
|
-
sku: z.string().nullable(),
|
|
488
|
-
});
|
|
489
|
-
export type OperationItemPricing = z.infer<typeof OperationItemPricingSchema>;
|
|
490
|
-
|
|
491
|
-
export const OperationDetailSchema = OperationSummarySchema.extend({
|
|
492
|
-
assets: z.array(OperationAssetSchema),
|
|
493
|
-
itemsPricing: z.array(OperationItemPricingSchema),
|
|
494
|
-
});
|
|
495
|
-
export type OperationDetail = z.infer<typeof OperationDetailSchema>;
|
|
496
|
-
|
|
497
442
|
export const TestimonialSchema = z.object({
|
|
498
443
|
id: uuidSchema,
|
|
499
444
|
lang: LangSchema,
|
|
@@ -628,6 +573,15 @@ export const CampaignRibbonSchema = z.object({
|
|
|
628
573
|
});
|
|
629
574
|
export type CampaignRibbon = z.infer<typeof CampaignRibbonSchema>;
|
|
630
575
|
|
|
576
|
+
export const CampaignPriceImpactSchema = z.object({
|
|
577
|
+
discountCode: z.string(),
|
|
578
|
+
autoApply: z.boolean(),
|
|
579
|
+
originalPrefix: z.string(),
|
|
580
|
+
valueType: DiscountValueTypeSchema.nullable(),
|
|
581
|
+
rules: z.record(z.string(), z.number()),
|
|
582
|
+
});
|
|
583
|
+
export type CampaignPriceImpact = z.infer<typeof CampaignPriceImpactSchema>;
|
|
584
|
+
|
|
631
585
|
export const CampaignSchema = z.object({
|
|
632
586
|
id: uuidSchema,
|
|
633
587
|
slug: z.string(),
|
|
@@ -640,5 +594,6 @@ export const CampaignSchema = z.object({
|
|
|
640
594
|
popup: CampaignPopupSchema.nullable(),
|
|
641
595
|
priceTag: CampaignPriceTagSchema.nullable(),
|
|
642
596
|
ribbon: CampaignRibbonSchema.nullable(),
|
|
597
|
+
priceImpact: CampaignPriceImpactSchema.nullable(),
|
|
643
598
|
});
|
|
644
599
|
export type Campaign = z.infer<typeof CampaignSchema>;
|