@leatcom/portal-sessions 0.2.0 → 0.3.0-beta.11

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.
Files changed (219) hide show
  1. package/README.md +66 -57
  2. package/dist/calendar-DDwBva4Q.js +35 -0
  3. package/dist/camera-switch-qzVCu9nA.js +32 -0
  4. package/dist/caret-left-CN9nJHxG.js +35 -0
  5. package/dist/close-C3cNBsWI.js +31 -0
  6. package/dist/crossBlack-Bk5GghfW.js +40 -0
  7. package/dist/dollar-CgVNkJJz.js +56 -0
  8. package/dist/edit-BJZMibY4.js +31 -0
  9. package/dist/home-CEviZ8Oe.js +40 -0
  10. package/dist/information-GyGGINwg.js +50 -0
  11. package/dist/leat_logo-D4RkhmEp.js +33 -0
  12. package/dist/lib/api/errorHandler.d.ts +3 -0
  13. package/dist/lib/api/types.d.ts +9 -0
  14. package/dist/lib/api/useFetcher.d.ts +16 -0
  15. package/dist/lib/api/useHttp.d.ts +7 -0
  16. package/dist/lib/api/useV2Fetcher.d.ts +16 -0
  17. package/dist/lib/api/useV2Http.d.ts +7 -0
  18. package/dist/lib/components/AnimatedCounter/AnimatedCounter.d.ts +9 -0
  19. package/dist/lib/components/AnimatedCounter/index.d.ts +1 -0
  20. package/dist/lib/components/Badge/Badge.d.ts +10 -0
  21. package/dist/lib/components/Badge/variants.d.ts +5 -0
  22. package/dist/lib/components/Banner/Banner.d.ts +5 -0
  23. package/dist/lib/components/Buttons/Button-cva.d.ts +28 -0
  24. package/dist/lib/components/Buttons/Button.d.ts +12 -0
  25. package/dist/lib/components/Buttons/NavLinkButton.d.ts +21 -0
  26. package/dist/lib/components/Buttons/index.d.ts +2 -0
  27. package/dist/lib/components/Buttons/variants.d.ts +8 -0
  28. package/dist/lib/components/Card/Card.d.ts +8 -0
  29. package/dist/lib/components/Card/CardContent.d.ts +7 -0
  30. package/dist/lib/components/Card/CardFooter.d.ts +6 -0
  31. package/dist/lib/components/Card/CardHeader.d.ts +6 -0
  32. package/dist/lib/components/Card/CardSubTitle.d.ts +6 -0
  33. package/dist/lib/components/Card/CardTitle.d.ts +6 -0
  34. package/dist/lib/components/Card/NavigationHeader.d.ts +1 -0
  35. package/dist/lib/components/Card/index.d.ts +6 -0
  36. package/dist/lib/components/Checkbox/Checkbox.d.ts +15 -0
  37. package/dist/lib/components/Checkbox/CheckboxBase.d.ts +8 -0
  38. package/dist/lib/components/Checkbox/CheckboxGroup.d.ts +15 -0
  39. package/dist/lib/components/Checkbox/index.d.ts +3 -0
  40. package/dist/lib/components/Form/Form.d.ts +4 -0
  41. package/dist/lib/components/Form/FormInputField.d.ts +13 -0
  42. package/dist/lib/components/Hooks/useCloseDropdownHandler.d.ts +2 -0
  43. package/dist/lib/components/Hooks/useCustomEvents.d.ts +8 -0
  44. package/dist/lib/components/Hooks/useCustomEvents.test.d.ts +1 -0
  45. package/dist/lib/components/Hooks/useViewPortSize.d.ts +6 -0
  46. package/dist/lib/components/Icon/Icon.d.ts +10 -0
  47. package/dist/lib/components/Icon/IconBase.d.ts +5 -0
  48. package/dist/lib/components/Icon/index.d.ts +1 -0
  49. package/dist/lib/components/Icon/variants.d.ts +6 -0
  50. package/dist/lib/components/Input/Input.d.ts +23 -0
  51. package/dist/lib/components/Input/InputDate.d.ts +18 -0
  52. package/dist/lib/components/Input/InputEmail.d.ts +18 -0
  53. package/dist/lib/components/Input/InputNumeric.d.ts +9 -0
  54. package/dist/lib/components/Input/index.d.ts +3 -0
  55. package/dist/lib/components/Keyboard/Keyboard.d.ts +6 -0
  56. package/dist/lib/components/Keyboard/KeyboardWrapper.d.ts +10 -0
  57. package/dist/lib/components/Keyboard/NumericKeyboard.d.ts +7 -0
  58. package/dist/lib/components/Keyboard/index.d.ts +4 -0
  59. package/dist/lib/components/Keyboard/useKeyboard.d.ts +8 -0
  60. package/dist/lib/components/Label/Label.d.ts +18 -0
  61. package/dist/lib/components/Label/index.d.ts +1 -0
  62. package/dist/lib/components/Layout/Container.d.ts +6 -0
  63. package/dist/lib/components/Layout/index.d.ts +1 -0
  64. package/dist/lib/components/Loader/Loader.d.ts +3 -0
  65. package/dist/lib/components/Message/Message.d.ts +11 -0
  66. package/dist/lib/components/Modal/Modal.d.ts +17 -0
  67. package/dist/lib/components/Modal/index.d.ts +1 -0
  68. package/dist/lib/components/MultiSelect/MultiSelect.d.ts +13 -0
  69. package/dist/lib/components/MultiSelect/MultiSelectOption.d.ts +8 -0
  70. package/dist/lib/components/MultiSelect/index.d.ts +1 -0
  71. package/dist/lib/components/ProgressBar/ProgressBar.d.ts +7 -0
  72. package/dist/lib/components/ProgressBar/index.d.ts +1 -0
  73. package/dist/lib/components/Select/Select.d.ts +12 -0
  74. package/dist/lib/components/Select/SelectGroup.d.ts +7 -0
  75. package/dist/lib/components/Select/SelectOption.d.ts +5 -0
  76. package/dist/lib/components/Select/SelectTrigger.d.ts +10 -0
  77. package/dist/lib/components/Select/index.d.ts +3 -0
  78. package/dist/lib/components/Skeletons/RowsSkeletonLoader.d.ts +5 -0
  79. package/dist/lib/components/Skeletons/Skeleton.d.ts +1 -0
  80. package/dist/lib/components/Skeletons/TableSkeleton.d.ts +8 -0
  81. package/dist/lib/components/Spinner/Spinner.d.ts +2 -0
  82. package/dist/lib/components/Spinner/index.d.ts +1 -0
  83. package/dist/lib/components/Stack/Stack.d.ts +9 -0
  84. package/dist/lib/components/Stack/index.d.ts +1 -0
  85. package/dist/lib/components/Switch/Switch.d.ts +20 -0
  86. package/dist/lib/components/Switch/SwitchBase.d.ts +12 -0
  87. package/dist/lib/components/Switch/SwitchGroup.d.ts +23 -0
  88. package/dist/lib/components/Switch/index.d.ts +3 -0
  89. package/dist/lib/components/Switch/variants.d.ts +6 -0
  90. package/dist/lib/components/Table/Header.d.ts +6 -0
  91. package/dist/lib/components/Table/Row.d.ts +7 -0
  92. package/dist/lib/components/Table/Table.d.ts +9 -0
  93. package/dist/lib/components/Table/index.d.ts +2 -0
  94. package/dist/lib/components/Table/types.d.ts +24 -0
  95. package/dist/lib/components/Typography/Text.d.ts +16 -0
  96. package/dist/lib/components/Typography/index.d.ts +2 -0
  97. package/dist/lib/components/Typography/types.d.ts +3 -0
  98. package/dist/lib/components/debug/DebugOverlay.d.ts +1 -0
  99. package/dist/lib/components/special/CustomErrorBoundary.d.ts +16 -0
  100. package/dist/lib/components/special/ErrorHasOccurred.d.ts +1 -0
  101. package/dist/lib/components/special/LoadingScreen.d.ts +5 -0
  102. package/dist/lib/components/special/SessionUnavailable.d.ts +3 -0
  103. package/dist/lib/components/special/SpecialScreen.d.ts +7 -0
  104. package/dist/lib/components/types.d.ts +17 -0
  105. package/dist/lib/context/Api/ApiContext.d.ts +5 -0
  106. package/dist/lib/context/Api/useApiContext.d.ts +1 -0
  107. package/dist/lib/context/Configuration/ConfigurationContext.d.ts +19 -0
  108. package/dist/lib/context/Configuration/WithConfiguration.d.ts +7 -0
  109. package/dist/lib/context/Configuration/useConfigurationContext.d.ts +1 -0
  110. package/dist/lib/context/PortalSession/PortalSessionContext.d.ts +10 -0
  111. package/dist/lib/context/PortalSession/PortalSessionProvider.d.ts +7 -0
  112. package/dist/lib/context/PortalSession/usePortalSessionContext.d.ts +1 -0
  113. package/dist/lib/design/colorPaletteGenerator.d.ts +6 -0
  114. package/dist/lib/design/setupBranding.d.ts +2 -0
  115. package/dist/lib/helpers/displayNameForContact.d.ts +2 -0
  116. package/dist/lib/helpers/enum.d.ts +23 -0
  117. package/dist/lib/helpers/helpers.d.ts +9 -0
  118. package/dist/lib/helpers/index.d.ts +2 -0
  119. package/dist/lib/hooks/fetchers/useContactIdentifiers.d.ts +10 -0
  120. package/dist/lib/hooks/fetchers/useContactSubscriptions.d.ts +6 -0
  121. package/dist/lib/hooks/fetchers/useGiftcard.d.ts +6 -0
  122. package/dist/lib/hooks/fetchers/useLoyaltyTransactions.d.ts +20 -0
  123. package/dist/lib/hooks/fetchers/usePrepaidBalance.d.ts +6 -0
  124. package/dist/lib/hooks/fetchers/useRewards.d.ts +6 -0
  125. package/dist/lib/hooks/fetchers/useSubscriptions.d.ts +6 -0
  126. package/dist/lib/hooks/fetchers/useVoucher.d.ts +6 -0
  127. package/dist/lib/hooks/fetchers/useVouchers.d.ts +6 -0
  128. package/dist/lib/hooks/toasts/useToast.d.ts +7 -0
  129. package/dist/lib/hooks/useCreatePortalSession.d.ts +5 -0
  130. package/dist/lib/hooks/useCurrency.d.ts +5 -0
  131. package/dist/lib/hooks/useEvents.d.ts +4 -0
  132. package/dist/lib/localization/i18n.d.ts +2 -0
  133. package/dist/lib/main.d.ts +8 -0
  134. package/dist/lib/modules/CreateNewPortalSession.d.ts +31 -0
  135. package/dist/lib/modules/Root.d.ts +14 -0
  136. package/dist/lib/modules/StartSession.d.ts +2 -0
  137. package/dist/lib/modules/UuidSession.d.ts +6 -0
  138. package/dist/lib/modules/components/HandleContactIdentifier.d.ts +7 -0
  139. package/dist/lib/modules/components/Scanner/QrReader.d.ts +5 -0
  140. package/dist/lib/modules/components/Scanner/QrReader2.d.ts +5 -0
  141. package/dist/lib/modules/components/Scanner/QrReader3.d.ts +5 -0
  142. package/dist/lib/modules/components/Scanner/QrReader4.d.ts +5 -0
  143. package/dist/lib/modules/components/Scanner/Scanner.d.ts +9 -0
  144. package/dist/lib/modules/components/auth/AuthenticateContact.d.ts +1 -0
  145. package/dist/lib/modules/components/auth/AuthenticateViaContactIdentifier.d.ts +4 -0
  146. package/dist/lib/modules/components/auth/AuthenticateViaEmail.d.ts +13 -0
  147. package/dist/lib/modules/components/useFindOrCreateContact.d.ts +9 -0
  148. package/dist/lib/modules/components/useLinkContactToSession.d.ts +4 -0
  149. package/dist/lib/modules/components/useLinkIdentifierToContact.d.ts +5 -0
  150. package/dist/lib/modules/generic/Generic.d.ts +6 -0
  151. package/dist/lib/modules/giftcard/HandleGiftcard.d.ts +7 -0
  152. package/dist/lib/modules/giftcard/IdentifyGiftcard.d.ts +1 -0
  153. package/dist/lib/modules/pointsTransaction/PointsTransaction.d.ts +1 -0
  154. package/dist/lib/modules/portal/profile/Data.d.ts +1 -0
  155. package/dist/lib/modules/portal/profile/details/activities/Activities.d.ts +1 -0
  156. package/dist/lib/modules/portal/profile/details/contactAttributes/ContactAttributes.d.ts +1 -0
  157. package/dist/lib/modules/portal/profile/details/contactIdentifiers/ContactIdentifiers.d.ts +1 -0
  158. package/dist/lib/modules/portal/profile/details/contactIdentifiers/CreateContactIdentifier.d.ts +1 -0
  159. package/dist/lib/modules/portal/profile/details/subscriptions/Subscriptions.d.ts +1 -0
  160. package/dist/lib/modules/portal/profile/sections/Balance.d.ts +1 -0
  161. package/dist/lib/modules/portal/profile/sections/LoyaltyTransactions.d.ts +1 -0
  162. package/dist/lib/modules/portal/profile/sections/Section.d.ts +5 -0
  163. package/dist/lib/modules/portal/profile/sections/Stats.d.ts +1 -0
  164. package/dist/lib/modules/portal/profile/sections/Subscriptions.d.ts +1 -0
  165. package/dist/lib/modules/portal/rewards/Reward.d.ts +11 -0
  166. package/dist/lib/modules/portal/rewards/Rewards.d.ts +1 -0
  167. package/dist/lib/modules/portal/rewards/RewardsContent.d.ts +8 -0
  168. package/dist/lib/modules/portal/vouchers/Voucher.d.ts +9 -0
  169. package/dist/lib/modules/portal/vouchers/Vouchers.d.ts +1 -0
  170. package/dist/lib/modules/prepaid/HandlePrepaid.d.ts +1 -0
  171. package/dist/lib/modules/voucher/HandleVoucher.d.ts +14 -0
  172. package/dist/lib/modules/voucher/IdentifyVoucher.d.ts +1 -0
  173. package/dist/lib/routing/AuthenticatedRoute.d.ts +6 -0
  174. package/dist/lib/routing/ContactRoutes.d.ts +1 -0
  175. package/dist/lib/routing/PortalRoutes.d.ts +1 -0
  176. package/dist/lib/routing/Router.d.ts +1 -0
  177. package/dist/lib/routing/RouterStateReporter.d.ts +16 -0
  178. package/dist/lib/routing/routes.d.ts +3 -0
  179. package/dist/lib/types/Contact.d.ts +35 -0
  180. package/dist/lib/types/Giftcard.d.ts +47 -0
  181. package/dist/lib/types/PortalSession.d.ts +61 -0
  182. package/dist/lib/types/Prepaid.d.ts +27 -0
  183. package/dist/lib/types/Reward.d.ts +18 -0
  184. package/dist/lib/types/Subscription.d.ts +32 -0
  185. package/dist/lib/types/Voucher.d.ts +39 -0
  186. package/dist/mail-DemY4OPW.js +32 -0
  187. package/dist/notificationErrorV2-DoQ2HXpo.js +50 -0
  188. package/dist/notificationSuccessV2-B3PJl6dS.js +50 -0
  189. package/dist/notificationWarningV2-Df16qkpM.js +50 -0
  190. package/dist/portal-sessions.es.js +45806 -21
  191. package/dist/portal-sessions.umd.js +76 -879
  192. package/dist/qr-scanner-worker.min-BYjhoE_l.js +20 -0
  193. package/dist/settings-zcOeMJIO.js +40 -0
  194. package/dist/shopping-bag-Nu4xZLvT.js +48 -0
  195. package/dist/star-BH-kt-To.js +34 -0
  196. package/dist/style.css +24 -1
  197. package/dist/user-O_Zbi2Tw.js +28 -0
  198. package/package.json +50 -51
  199. package/dist/browser-ponyfill-C2l-BoS5.js +0 -380
  200. package/dist/calendar-DatiUSvc.js +0 -19
  201. package/dist/camera-switch-BG4ghgtr.js +0 -19
  202. package/dist/caret-left-BzIJ4OR3.js +0 -19
  203. package/dist/close-BOnvojez.js +0 -19
  204. package/dist/crossBlack-D3AScCz7.js +0 -19
  205. package/dist/dollar-BiByq0t0.js +0 -19
  206. package/dist/edit-GxItFJF8.js +0 -19
  207. package/dist/home-BRXF8Ydg.js +0 -19
  208. package/dist/information-kCveus0e.js +0 -19
  209. package/dist/mail-Dn-PppcI.js +0 -19
  210. package/dist/main-Cq8Au5WV.js +0 -38031
  211. package/dist/notificationErrorV2-BT7C7lnC.js +0 -19
  212. package/dist/notificationSuccessV2-CD4Nzkx1.js +0 -19
  213. package/dist/notificationWarningV2-Ce-MU9nv.js +0 -19
  214. package/dist/portal-sessions.es.d.ts +0 -173
  215. package/dist/qr-scanner-worker.min-BT9FO00c.js +0 -115
  216. package/dist/settings-iI_Z4aYk.js +0 -19
  217. package/dist/shopping-bag-gCcU6Sk5.js +0 -19
  218. package/dist/star-B5vZfVjf.js +0 -19
  219. package/dist/user-CefiGOdl.js +0 -19
@@ -0,0 +1,5 @@
1
+ import { ContactIdentifier } from './auth/AuthenticateViaEmail';
2
+ import { Contact } from '../../types/Contact';
3
+ export default function useLinkIdentifierToContact(): {
4
+ linkIdentifierToContact: (identifier: ContactIdentifier, contact: Contact) => Promise<void>;
5
+ };
@@ -0,0 +1,6 @@
1
+ export declare enum SupportedCodeType {
2
+ IDENTIFIER = "identifier",
3
+ GIFTCARD = "giftcard",
4
+ VOUCHER = "voucher"
5
+ }
6
+ export default function Generic(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ export type Giftcard = {
2
+ id: number;
3
+ hash: string;
4
+ amount_in_cents: number;
5
+ uuid: string;
6
+ };
7
+ export default function HandleGiftcard(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function IdentifyGiftcard(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function PointsTransaction(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function Data(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function Activities(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function ContactAttributes(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function ContactIdentifiers(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function CreateContactIdentifier(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function Subscriptions(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function Balance(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function LoyaltyTransactions(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { ReactNode } from 'react';
2
+ export default function Section({ children, className, }: {
3
+ children: ReactNode;
4
+ className?: string;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function Stats(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function Subscriptions(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { RewardResource } from '../../../types/Reward';
2
+ import { Dispatch, SetStateAction } from 'react';
3
+ type RewardProps = {
4
+ reward: RewardResource;
5
+ selected: RewardResource | undefined;
6
+ setSelected: Dispatch<SetStateAction<RewardResource | undefined>>;
7
+ disabled?: boolean;
8
+ readOnly?: boolean;
9
+ };
10
+ export default function Reward({ reward, selected, setSelected, disabled, readOnly }: RewardProps): import("react/jsx-runtime").JSX.Element;
11
+ export {};
@@ -0,0 +1 @@
1
+ export default function Rewards(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { RewardResource } from '../../../types/Reward';
3
+ type Props = {
4
+ selected: RewardResource;
5
+ setSelected: Dispatch<SetStateAction<RewardResource>>;
6
+ };
7
+ export default function RewardsContent({ selected, setSelected }: Props): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { VoucherResource } from '../../../types/Voucher';
3
+ type VoucherProps = {
4
+ voucher: VoucherResource;
5
+ selected?: VoucherResource | null;
6
+ setSelected: Dispatch<SetStateAction<VoucherResource | null>>;
7
+ };
8
+ export default function Voucher({ voucher, selected, setSelected }: VoucherProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
@@ -0,0 +1 @@
1
+ export default function Vouchers(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function HandlePrepaid(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { Contact } from '../../types/Contact';
2
+ import { Promotion, VoucherStatus } from '../../types/Voucher';
3
+ export type Voucher = {
4
+ id: number;
5
+ code: string;
6
+ uuid: string;
7
+ name: string;
8
+ expiration_date: string;
9
+ redemptions_remaining: number;
10
+ status: VoucherStatus;
11
+ promotion: Promotion;
12
+ contact: Contact | null;
13
+ };
14
+ export default function HandleVoucher(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function IdentifyVoucher(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { ReactElement } from 'react';
2
+ type Props = {
3
+ element: ReactElement;
4
+ };
5
+ export default function AuthenticatedRoute(props: Props): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1 @@
1
+ export default function ContactRoutes(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function PortalRoutes(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function Router(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import { ReactElement } from 'react';
2
+ declare const routerStateMessageType = "portal-sessions-sdk:router-state";
3
+ export type RouterStateMessage = {
4
+ source: "portal-sessions-sdk";
5
+ type: typeof routerStateMessageType;
6
+ payload: {
7
+ hash: string;
8
+ key: string;
9
+ navigationType: string;
10
+ pathname: string;
11
+ search: string;
12
+ state: unknown;
13
+ };
14
+ };
15
+ export default function RouterStateReporter(): ReactElement | null;
16
+ export { routerStateMessageType };
@@ -0,0 +1,3 @@
1
+ export declare const routes: {
2
+ contactOverview: string;
3
+ };
@@ -0,0 +1,35 @@
1
+ export type PrepaidBalance = {
2
+ balance_in_cents: number;
3
+ };
4
+ export type CreditBalance = {
5
+ id: number;
6
+ balance: number;
7
+ points: number;
8
+ transactions: number;
9
+ first_transaction: null | {
10
+ id: number;
11
+ created_at: string;
12
+ };
13
+ last_transaction: null | {
14
+ id: number;
15
+ created_at: string;
16
+ };
17
+ };
18
+ export type Contact = {
19
+ id: number;
20
+ uuid: string;
21
+ email: string;
22
+ credit_balance: CreditBalance;
23
+ prepaid_balance: PrepaidBalance;
24
+ avatar_url: string | null;
25
+ first_name: string | null;
26
+ last_name: string | null;
27
+ custom_attribute_values: {
28
+ [key: string]: string;
29
+ };
30
+ current_tier: null | {
31
+ id: number;
32
+ name: string;
33
+ };
34
+ created_at: string;
35
+ };
@@ -0,0 +1,47 @@
1
+ export type GiftcardProgram = {
2
+ id: number;
3
+ name: string;
4
+ uuid: string;
5
+ max_amount_in_cents: number;
6
+ };
7
+ export type GiftcardRecipient = {
8
+ id: number;
9
+ email: string;
10
+ status: number;
11
+ opens: number;
12
+ clicks: number;
13
+ };
14
+ export type GiftcardResource = {
15
+ id: number;
16
+ uuid: string;
17
+ type: string;
18
+ hash: string;
19
+ amount_in_cents: number;
20
+ upgradeable: boolean;
21
+ active: boolean;
22
+ expiration_date: string;
23
+ amount: number;
24
+ url: string;
25
+ display_amount: string;
26
+ formatted_expiration_date: string;
27
+ giftcard_program: GiftcardProgram;
28
+ giftcard_recipients: Array<GiftcardRecipient>;
29
+ };
30
+ export type GiftcardTransactionResource = {
31
+ id: number;
32
+ uuid: string;
33
+ amount_in_cents: number;
34
+ type: string;
35
+ settled: boolean;
36
+ card: {
37
+ id: number;
38
+ uuid: string;
39
+ };
40
+ shop: {
41
+ id: number;
42
+ uuid: string;
43
+ name: string;
44
+ };
45
+ settlements: [];
46
+ created_at: string;
47
+ };
@@ -0,0 +1,61 @@
1
+ import { FacingMode, PortalType } from '../helpers';
2
+ import { Contact } from './Contact';
3
+ export declare enum PrimaryIdentificationMethod {
4
+ IDENTIFIER = "identifier",
5
+ EMAIL = "email"
6
+ }
7
+ export type InputData = {
8
+ enable_on_screen_keyboard?: boolean;
9
+ enable_email_identification?: boolean;
10
+ enable_registration?: boolean;
11
+ amount_in_cents?: number;
12
+ unit_value?: number;
13
+ allow_multiple_giftcards?: boolean;
14
+ camera_service?: 1 | 2 | 3 | 4;
15
+ facing_mode?: FacingMode | "user" | "environment";
16
+ primary_identification_method?: PrimaryIdentificationMethod;
17
+ enable_marketing_preferences: boolean;
18
+ };
19
+ export type Event = {
20
+ data: {
21
+ [p: string]: any;
22
+ };
23
+ type: string;
24
+ created_at: string;
25
+ };
26
+ export type LoyaltyProgram = {
27
+ name: string;
28
+ max_amount: number;
29
+ custom_credit_name: string;
30
+ };
31
+ export declare enum PortalSessionStatus {
32
+ ACTIVE = "ACTIVE",
33
+ EXPIRED = "EXPIRED",
34
+ COMPLETED = "COMPLETED"
35
+ }
36
+ export type PortalSession = {
37
+ type: PortalType;
38
+ uuid: string;
39
+ contact: Contact | null;
40
+ status: PortalSessionStatus;
41
+ input_data: InputData;
42
+ results: Record<string, any>;
43
+ events: Array<Event>;
44
+ currency: string;
45
+ loyalty_program: LoyaltyProgram;
46
+ };
47
+ export type PortalSessionPayload = {
48
+ api_key: string;
49
+ shop_uuid: string;
50
+ contact_uuid?: string;
51
+ enable_on_screen_keyboard?: boolean;
52
+ enable_email_identification?: boolean;
53
+ enable_registration?: boolean;
54
+ enable_marketing_preferences?: boolean;
55
+ camera_service?: 1 | 2 | 3 | 4;
56
+ facing_mode?: FacingMode | "user" | "environment";
57
+ amount_in_cents?: number;
58
+ allow_multiple_giftcards?: boolean;
59
+ primary_identification_method?: PrimaryIdentificationMethod;
60
+ type: keyof typeof PortalType;
61
+ };
@@ -0,0 +1,27 @@
1
+ export type PrepaidBalanceResource = {
2
+ balance_in_cents: number;
3
+ balance: string;
4
+ };
5
+ export type PrepaidTransaction = {
6
+ amount_in_cents: number;
7
+ channel: string;
8
+ contact: {
9
+ uuid: string;
10
+ email: string;
11
+ };
12
+ contact_identifier: {
13
+ name: string;
14
+ value: string;
15
+ active: boolean;
16
+ };
17
+ created_at: string;
18
+ shop: {
19
+ uuid: string;
20
+ name: string;
21
+ };
22
+ prepaid_balance: {
23
+ balance_in_cents: number;
24
+ balance: string;
25
+ };
26
+ uuid: string;
27
+ };
@@ -0,0 +1,18 @@
1
+ export type Media = {
2
+ id: number;
3
+ type: string;
4
+ value: string;
5
+ };
6
+ export type RewardResource = {
7
+ uuid: string;
8
+ title: string;
9
+ description: string;
10
+ cost_price: number;
11
+ required_credits: number;
12
+ active: boolean;
13
+ media: Media;
14
+ reward_type: string;
15
+ stock: number;
16
+ } & {
17
+ [attributeKey: string]: string | number | boolean;
18
+ };
@@ -0,0 +1,32 @@
1
+ export declare enum SubscriptionStatus {
2
+ SUBSCRIBED = "SUBSCRIBED",
3
+ UNSUBSCRIBED = "UNSUBSCRIBED",
4
+ PENDING_CONFIRMATION = "PENDING_CONFIRMATION"
5
+ }
6
+ export declare enum SubscriptionStrategy {
7
+ OPT_OUT = "OPT_OUT",
8
+ OPT_IN = "OPT_IN",
9
+ DOUBLE_OPT_IN = "DOUBLE_OPT_IN",
10
+ FUNCTIONAL = "FUNCTIONAL"
11
+ }
12
+ export type Subscription = {
13
+ is_subscribed: boolean;
14
+ status: SubscriptionStatus;
15
+ subscription_type: {
16
+ active: boolean;
17
+ description: string;
18
+ id: number;
19
+ name: string;
20
+ strategy: SubscriptionStrategy;
21
+ uuid: string;
22
+ };
23
+ };
24
+ export type SubscriptionType = {
25
+ id: number;
26
+ uuid: string;
27
+ name: string;
28
+ description: string;
29
+ is_piggy_defined: boolean;
30
+ strategy: string;
31
+ active: boolean;
32
+ };
@@ -0,0 +1,39 @@
1
+ export declare enum VoucherStatus {
2
+ INACTIVE = "INACTIVE",
3
+ ACTIVE = "ACTIVE",
4
+ EXPIRED = "EXPIRED",
5
+ LOCKED = "LOCKED",
6
+ REDEEMED = "REDEEMED",
7
+ DEACTIVATED = "DEACTIVATED"
8
+ }
9
+ export type Image = {
10
+ id: string;
11
+ type: string;
12
+ value: string;
13
+ };
14
+ export type Promotion = {
15
+ name: string;
16
+ description: string;
17
+ image_url: string | null;
18
+ voucher_limit: number;
19
+ limit_per_contact: number;
20
+ expiration_duration: number;
21
+ };
22
+ export type VoucherResource = {
23
+ uuid: string;
24
+ code: string;
25
+ status: VoucherStatus;
26
+ name: string;
27
+ description: string;
28
+ expiration_date: string;
29
+ redeemed_at: string;
30
+ is_redeemed: boolean;
31
+ attributes: {
32
+ [key: string]: any;
33
+ };
34
+ contact: {
35
+ uuid: string;
36
+ email: string;
37
+ };
38
+ promotion: Promotion;
39
+ };
@@ -0,0 +1,32 @@
1
+ (function() {
2
+ try {
3
+ var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
+ e.SENTRY_RELEASE = { id: "650749ce5559439c3d93d5b1cb0cd8b14f4c453f" }, e._sentryModuleMetadata = e._sentryModuleMetadata || {}, e._sentryModuleMetadata[new e.Error().stack] = function(e) {
5
+ for (var t = 1; t < arguments.length; t++) {
6
+ var n = arguments[t];
7
+ if (n != null) for (var r in n) n.hasOwnProperty(r) && (e[r] = n[r]);
8
+ }
9
+ return e;
10
+ }({}, e._sentryModuleMetadata[new e.Error().stack], { "_sentryBundlerPluginAppKey:portal-sessions-application-key": !0 });
11
+ var t = new e.Error().stack;
12
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "fbee9350-c26c-4f4c-ab46-37ca8fd0de68", e._sentryDebugIdIdentifier = "sentry-dbid-fbee9350-c26c-4f4c-ab46-37ca8fd0de68");
13
+ } catch {}
14
+ })();
15
+ import "react";
16
+ import { jsx as e } from "react/jsx-runtime";
17
+ //#region lib/assets/svg/mail.svg?react
18
+ var t = (t) => /* @__PURE__ */ e("svg", {
19
+ xmlns: "http://www.w3.org/2000/svg",
20
+ viewBox: "0 0 24 24",
21
+ ...t,
22
+ children: /* @__PURE__ */ e("path", {
23
+ d: "M5.5 6.5L12 12.25L18.5 6.5M6.75 18.25H17.25C18.3546 18.25 19.25 17.3546 19.25 16.25V7.75C19.25 6.64543 18.3546 5.75 17.25 5.75H6.75C5.64543 5.75 4.75 6.64543 4.75 7.75V16.25C4.75 17.3546 5.64543 18.25 6.75 18.25Z",
24
+ strokeWidth: 1.5,
25
+ strokeLinecap: "round",
26
+ strokeLinejoin: "round"
27
+ })
28
+ });
29
+ //#endregion
30
+ export { t as default };
31
+
32
+ //# sourceMappingURL=mail-DemY4OPW.js.map
@@ -0,0 +1,50 @@
1
+ (function() {
2
+ try {
3
+ var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
+ e.SENTRY_RELEASE = { id: "650749ce5559439c3d93d5b1cb0cd8b14f4c453f" }, e._sentryModuleMetadata = e._sentryModuleMetadata || {}, e._sentryModuleMetadata[new e.Error().stack] = function(e) {
5
+ for (var t = 1; t < arguments.length; t++) {
6
+ var n = arguments[t];
7
+ if (n != null) for (var r in n) n.hasOwnProperty(r) && (e[r] = n[r]);
8
+ }
9
+ return e;
10
+ }({}, e._sentryModuleMetadata[new e.Error().stack], { "_sentryBundlerPluginAppKey:portal-sessions-application-key": !0 });
11
+ var t = new e.Error().stack;
12
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "208d879a-4e4e-46c6-b3ac-4ff0fde3fda4", e._sentryDebugIdIdentifier = "sentry-dbid-208d879a-4e4e-46c6-b3ac-4ff0fde3fda4");
13
+ } catch {}
14
+ })();
15
+ import "react";
16
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
17
+ //#region lib/assets/svg/notificationErrorV2.svg?react
18
+ var n = (n) => /* @__PURE__ */ t("svg", {
19
+ width: 32,
20
+ height: 32,
21
+ viewBox: "0 0 32 32",
22
+ fill: "none",
23
+ xmlns: "http://www.w3.org/2000/svg",
24
+ ...n,
25
+ children: [/* @__PURE__ */ t("g", {
26
+ clipPath: "url(#clip0_17_95)",
27
+ children: [/* @__PURE__ */ e("rect", {
28
+ width: 32,
29
+ height: 32,
30
+ rx: 4,
31
+ fill: "#FEF3F2"
32
+ }), /* @__PURE__ */ e("path", {
33
+ d: "M12.0003 12L20.0003 20M12.0003 20L20.0003 12",
34
+ stroke: "#E02731",
35
+ strokeWidth: 1.5,
36
+ strokeLinecap: "round",
37
+ strokeLinejoin: "round"
38
+ })]
39
+ }), /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", {
40
+ id: "clip0_17_95",
41
+ children: /* @__PURE__ */ e("path", {
42
+ d: "M0 16C0 7.16344 7.16344 0 16 0V0C24.8366 0 32 7.16344 32 16V16C32 24.8366 24.8366 32 16 32V32C7.16344 32 0 24.8366 0 16V16Z",
43
+ fill: "white"
44
+ })
45
+ }) })]
46
+ });
47
+ //#endregion
48
+ export { n as default };
49
+
50
+ //# sourceMappingURL=notificationErrorV2-DoQ2HXpo.js.map
@@ -0,0 +1,50 @@
1
+ (function() {
2
+ try {
3
+ var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
+ e.SENTRY_RELEASE = { id: "650749ce5559439c3d93d5b1cb0cd8b14f4c453f" }, e._sentryModuleMetadata = e._sentryModuleMetadata || {}, e._sentryModuleMetadata[new e.Error().stack] = function(e) {
5
+ for (var t = 1; t < arguments.length; t++) {
6
+ var n = arguments[t];
7
+ if (n != null) for (var r in n) n.hasOwnProperty(r) && (e[r] = n[r]);
8
+ }
9
+ return e;
10
+ }({}, e._sentryModuleMetadata[new e.Error().stack], { "_sentryBundlerPluginAppKey:portal-sessions-application-key": !0 });
11
+ var t = new e.Error().stack;
12
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "ae5f9be8-57b2-40ba-a86f-4af3fec26c6d", e._sentryDebugIdIdentifier = "sentry-dbid-ae5f9be8-57b2-40ba-a86f-4af3fec26c6d");
13
+ } catch {}
14
+ })();
15
+ import "react";
16
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
17
+ //#region lib/assets/svg/notificationSuccessV2.svg?react
18
+ var n = (n) => /* @__PURE__ */ t("svg", {
19
+ width: 32,
20
+ height: 32,
21
+ viewBox: "0 0 32 32",
22
+ fill: "none",
23
+ xmlns: "http://www.w3.org/2000/svg",
24
+ ...n,
25
+ children: [/* @__PURE__ */ t("g", {
26
+ clipPath: "url(#clip0_15_20)",
27
+ children: [/* @__PURE__ */ e("rect", {
28
+ width: 32,
29
+ height: 32,
30
+ rx: 4,
31
+ fill: "#E7FBF4"
32
+ }), /* @__PURE__ */ e("path", {
33
+ d: "M10.6668 17.3333L14.6668 20L21.3335 12",
34
+ stroke: "#039855",
35
+ strokeWidth: 1.6875,
36
+ strokeLinecap: "round",
37
+ strokeLinejoin: "round"
38
+ })]
39
+ }), /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", {
40
+ id: "clip0_15_20",
41
+ children: /* @__PURE__ */ e("path", {
42
+ d: "M0 16C0 7.16344 7.16344 0 16 0V0C24.8366 0 32 7.16344 32 16V16C32 24.8366 24.8366 32 16 32V32C7.16344 32 0 24.8366 0 16V16Z",
43
+ fill: "white"
44
+ })
45
+ }) })]
46
+ });
47
+ //#endregion
48
+ export { n as default };
49
+
50
+ //# sourceMappingURL=notificationSuccessV2-B3PJl6dS.js.map
@@ -0,0 +1,50 @@
1
+ (function() {
2
+ try {
3
+ var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
+ e.SENTRY_RELEASE = { id: "650749ce5559439c3d93d5b1cb0cd8b14f4c453f" }, e._sentryModuleMetadata = e._sentryModuleMetadata || {}, e._sentryModuleMetadata[new e.Error().stack] = function(e) {
5
+ for (var t = 1; t < arguments.length; t++) {
6
+ var n = arguments[t];
7
+ if (n != null) for (var r in n) n.hasOwnProperty(r) && (e[r] = n[r]);
8
+ }
9
+ return e;
10
+ }({}, e._sentryModuleMetadata[new e.Error().stack], { "_sentryBundlerPluginAppKey:portal-sessions-application-key": !0 });
11
+ var t = new e.Error().stack;
12
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "7869a36e-2b60-47bb-b7fb-5625bb296410", e._sentryDebugIdIdentifier = "sentry-dbid-7869a36e-2b60-47bb-b7fb-5625bb296410");
13
+ } catch {}
14
+ })();
15
+ import "react";
16
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
17
+ //#region lib/assets/svg/notificationWarningV2.svg?react
18
+ var n = (n) => /* @__PURE__ */ t("svg", {
19
+ width: 32,
20
+ height: 32,
21
+ viewBox: "0 0 32 32",
22
+ fill: "none",
23
+ xmlns: "http://www.w3.org/2000/svg",
24
+ ...n,
25
+ children: [/* @__PURE__ */ t("g", {
26
+ clipPath: "url(#clip0_17_99)",
27
+ children: [/* @__PURE__ */ e("rect", {
28
+ width: 32,
29
+ height: 32,
30
+ rx: 4,
31
+ fill: "#FFFAEB"
32
+ }), /* @__PURE__ */ e("path", {
33
+ d: "M16.0002 17.3333V13.3333M16.0002 20V20.0067M23.0353 19.3333L17.942 10.456C17.0833 8.95867 14.9167 8.95867 14.058 10.456L8.96533 19.3333C8.11266 20.8187 9.18933 22.6667 10.9073 22.6667H21.0933C22.8107 22.6667 23.8873 20.8187 23.0353 19.3333Z",
34
+ stroke: "#CFAA25",
35
+ strokeWidth: 1.5,
36
+ strokeLinecap: "round",
37
+ strokeLinejoin: "round"
38
+ })]
39
+ }), /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", {
40
+ id: "clip0_17_99",
41
+ children: /* @__PURE__ */ e("path", {
42
+ d: "M0 16C0 7.16344 7.16344 0 16 0C24.8366 0 32 7.16344 32 16C32 24.8366 24.8366 32 16 32C7.16344 32 0 24.8366 0 16Z",
43
+ fill: "white"
44
+ })
45
+ }) })]
46
+ });
47
+ //#endregion
48
+ export { n as default };
49
+
50
+ //# sourceMappingURL=notificationWarningV2-Df16qkpM.js.map