@voxket-ai/events-sdk 1.0.30 → 1.0.32

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.
@@ -8,4 +8,7 @@ export declare class StorageHelper {
8
8
  setToken(token: string): void;
9
9
  getToken(): string | null;
10
10
  clearToken(): void;
11
+ setPendingCustomQr(value: any): void;
12
+ getPendingCustomQr(): any | null;
13
+ clearPendingCustomQr(): void;
11
14
  }
@@ -21,3 +21,11 @@ export declare function getFieldLabelKey(label?: string, fallbackId?: string): s
21
21
  export declare const CHECKBOX_ON = "Yes";
22
22
  export declare function countWords(text?: string): number;
23
23
  export declare function fieldProblem(fields: any[], valueOf: (field: any) => unknown): string | null;
24
+ /** What a coupon takes off an amount; never more than the amount itself. */
25
+ export declare function offerSaving(offer: any, amount: number): number;
26
+ /** The coupon worth the most on an amount — percent and flat compete on real savings. */
27
+ export declare function bestOffer(offers: any[], amount: number): any;
28
+ /** How an offer reads on a card: "20% off" or "INR 500 off". */
29
+ export declare function offerLabel(offer: any, currency?: string): string;
30
+ /** Matches a typed code against the live offers, case-insensitively. */
31
+ export declare function findOffer(offers: any[], code: string): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voxket-ai/events-sdk",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "description": "Event registration and ticketing widget SDK",
5
5
  "publishConfig": {
6
6
  "access": "public"