@voxket-ai/events-sdk 1.0.32 → 1.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/events-sdk.js +899 -889
- package/dist/events-sdk.umd.cjs +4 -4
- package/dist/utils/formUtils.d.ts +2 -0
- package/package.json +1 -1
|
@@ -25,6 +25,8 @@ export declare function fieldProblem(fields: any[], valueOf: (field: any) => unk
|
|
|
25
25
|
export declare function offerSaving(offer: any, amount: number): number;
|
|
26
26
|
/** The coupon worth the most on an amount — percent and flat compete on real savings. */
|
|
27
27
|
export declare function bestOffer(offers: any[], amount: number): any;
|
|
28
|
+
/** Offers a given registration type can actually use — unscoped ones apply to all. */
|
|
29
|
+
export declare function offersForType(offers: any[], typeId?: string): any[];
|
|
28
30
|
/** How an offer reads on a card: "20% off" or "INR 500 off". */
|
|
29
31
|
export declare function offerLabel(offer: any, currency?: string): string;
|
|
30
32
|
/** Matches a typed code against the live offers, case-insensitively. */
|