@leatcom/portal-sessions 0.2.0 → 0.3.0-beta.10
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 +66 -57
- package/dist/calendar-Can0qQlp.js +35 -0
- package/dist/camera-switch-GycOMC0h.js +32 -0
- package/dist/caret-left-Bu6hBQ5l.js +35 -0
- package/dist/close-DEGYFjZn.js +31 -0
- package/dist/crossBlack-nmm64QX1.js +40 -0
- package/dist/dollar-BbDPUsF1.js +56 -0
- package/dist/edit-xcD5f5zi.js +31 -0
- package/dist/home-Cdal78fu.js +40 -0
- package/dist/information-Cq6k4byC.js +50 -0
- package/dist/leat_logo-BpQeHCzL.js +33 -0
- package/dist/lib/api/errorHandler.d.ts +3 -0
- package/dist/lib/api/types.d.ts +9 -0
- package/dist/lib/api/useFetcher.d.ts +16 -0
- package/dist/lib/api/useHttp.d.ts +7 -0
- package/dist/lib/api/useV2Fetcher.d.ts +16 -0
- package/dist/lib/api/useV2Http.d.ts +7 -0
- package/dist/lib/components/AnimatedCounter/AnimatedCounter.d.ts +9 -0
- package/dist/lib/components/AnimatedCounter/index.d.ts +1 -0
- package/dist/lib/components/Badge/Badge.d.ts +10 -0
- package/dist/lib/components/Badge/variants.d.ts +5 -0
- package/dist/lib/components/Banner/Banner.d.ts +5 -0
- package/dist/lib/components/Buttons/Button-cva.d.ts +28 -0
- package/dist/lib/components/Buttons/Button.d.ts +12 -0
- package/dist/lib/components/Buttons/NavLinkButton.d.ts +21 -0
- package/dist/lib/components/Buttons/index.d.ts +2 -0
- package/dist/lib/components/Buttons/variants.d.ts +8 -0
- package/dist/lib/components/Card/Card.d.ts +8 -0
- package/dist/lib/components/Card/CardContent.d.ts +7 -0
- package/dist/lib/components/Card/CardFooter.d.ts +6 -0
- package/dist/lib/components/Card/CardHeader.d.ts +6 -0
- package/dist/lib/components/Card/CardSubTitle.d.ts +6 -0
- package/dist/lib/components/Card/CardTitle.d.ts +6 -0
- package/dist/lib/components/Card/NavigationHeader.d.ts +1 -0
- package/dist/lib/components/Card/index.d.ts +6 -0
- package/dist/lib/components/Checkbox/Checkbox.d.ts +15 -0
- package/dist/lib/components/Checkbox/CheckboxBase.d.ts +8 -0
- package/dist/lib/components/Checkbox/CheckboxGroup.d.ts +15 -0
- package/dist/lib/components/Checkbox/index.d.ts +3 -0
- package/dist/lib/components/Form/Form.d.ts +4 -0
- package/dist/lib/components/Form/FormInputField.d.ts +13 -0
- package/dist/lib/components/Hooks/useCloseDropdownHandler.d.ts +2 -0
- package/dist/lib/components/Hooks/useCustomEvents.d.ts +8 -0
- package/dist/lib/components/Hooks/useCustomEvents.test.d.ts +1 -0
- package/dist/lib/components/Hooks/useViewPortSize.d.ts +6 -0
- package/dist/lib/components/Icon/Icon.d.ts +10 -0
- package/dist/lib/components/Icon/IconBase.d.ts +5 -0
- package/dist/lib/components/Icon/index.d.ts +1 -0
- package/dist/lib/components/Icon/variants.d.ts +6 -0
- package/dist/lib/components/Input/Input.d.ts +23 -0
- package/dist/lib/components/Input/InputDate.d.ts +18 -0
- package/dist/lib/components/Input/InputEmail.d.ts +18 -0
- package/dist/lib/components/Input/InputNumeric.d.ts +9 -0
- package/dist/lib/components/Input/index.d.ts +3 -0
- package/dist/lib/components/Keyboard/Keyboard.d.ts +6 -0
- package/dist/lib/components/Keyboard/KeyboardWrapper.d.ts +10 -0
- package/dist/lib/components/Keyboard/NumericKeyboard.d.ts +7 -0
- package/dist/lib/components/Keyboard/index.d.ts +4 -0
- package/dist/lib/components/Keyboard/useKeyboard.d.ts +8 -0
- package/dist/lib/components/Label/Label.d.ts +18 -0
- package/dist/lib/components/Label/index.d.ts +1 -0
- package/dist/lib/components/Layout/Container.d.ts +6 -0
- package/dist/lib/components/Layout/index.d.ts +1 -0
- package/dist/lib/components/Loader/Loader.d.ts +3 -0
- package/dist/lib/components/Message/Message.d.ts +11 -0
- package/dist/lib/components/Modal/Modal.d.ts +17 -0
- package/dist/lib/components/Modal/index.d.ts +1 -0
- package/dist/lib/components/MultiSelect/MultiSelect.d.ts +13 -0
- package/dist/lib/components/MultiSelect/MultiSelectOption.d.ts +8 -0
- package/dist/lib/components/MultiSelect/index.d.ts +1 -0
- package/dist/lib/components/ProgressBar/ProgressBar.d.ts +7 -0
- package/dist/lib/components/ProgressBar/index.d.ts +1 -0
- package/dist/lib/components/Select/Select.d.ts +12 -0
- package/dist/lib/components/Select/SelectGroup.d.ts +7 -0
- package/dist/lib/components/Select/SelectOption.d.ts +5 -0
- package/dist/lib/components/Select/SelectTrigger.d.ts +10 -0
- package/dist/lib/components/Select/index.d.ts +3 -0
- package/dist/lib/components/Skeletons/RowsSkeletonLoader.d.ts +5 -0
- package/dist/lib/components/Skeletons/Skeleton.d.ts +1 -0
- package/dist/lib/components/Skeletons/TableSkeleton.d.ts +8 -0
- package/dist/lib/components/Spinner/Spinner.d.ts +2 -0
- package/dist/lib/components/Spinner/index.d.ts +1 -0
- package/dist/lib/components/Stack/Stack.d.ts +9 -0
- package/dist/lib/components/Stack/index.d.ts +1 -0
- package/dist/lib/components/Switch/Switch.d.ts +20 -0
- package/dist/lib/components/Switch/SwitchBase.d.ts +12 -0
- package/dist/lib/components/Switch/SwitchGroup.d.ts +23 -0
- package/dist/lib/components/Switch/index.d.ts +3 -0
- package/dist/lib/components/Switch/variants.d.ts +6 -0
- package/dist/lib/components/Table/Header.d.ts +6 -0
- package/dist/lib/components/Table/Row.d.ts +7 -0
- package/dist/lib/components/Table/Table.d.ts +9 -0
- package/dist/lib/components/Table/index.d.ts +2 -0
- package/dist/lib/components/Table/types.d.ts +24 -0
- package/dist/lib/components/Typography/Text.d.ts +16 -0
- package/dist/lib/components/Typography/index.d.ts +2 -0
- package/dist/lib/components/Typography/types.d.ts +3 -0
- package/dist/lib/components/debug/DebugOverlay.d.ts +1 -0
- package/dist/lib/components/special/CustomErrorBoundary.d.ts +16 -0
- package/dist/lib/components/special/ErrorHasOccurred.d.ts +1 -0
- package/dist/lib/components/special/LoadingScreen.d.ts +5 -0
- package/dist/lib/components/special/SessionUnavailable.d.ts +3 -0
- package/dist/lib/components/special/SpecialScreen.d.ts +7 -0
- package/dist/lib/components/types.d.ts +17 -0
- package/dist/lib/context/Api/ApiContext.d.ts +5 -0
- package/dist/lib/context/Api/useApiContext.d.ts +1 -0
- package/dist/lib/context/Configuration/ConfigurationContext.d.ts +19 -0
- package/dist/lib/context/Configuration/WithConfiguration.d.ts +7 -0
- package/dist/lib/context/Configuration/useConfigurationContext.d.ts +1 -0
- package/dist/lib/context/PortalSession/PortalSessionContext.d.ts +10 -0
- package/dist/lib/context/PortalSession/PortalSessionProvider.d.ts +7 -0
- package/dist/lib/context/PortalSession/usePortalSessionContext.d.ts +1 -0
- package/dist/lib/design/colorPaletteGenerator.d.ts +6 -0
- package/dist/lib/design/setupBranding.d.ts +2 -0
- package/dist/lib/helpers/displayNameForContact.d.ts +2 -0
- package/dist/lib/helpers/enum.d.ts +23 -0
- package/dist/lib/helpers/helpers.d.ts +9 -0
- package/dist/lib/helpers/index.d.ts +2 -0
- package/dist/lib/hooks/fetchers/useContactIdentifiers.d.ts +10 -0
- package/dist/lib/hooks/fetchers/useContactSubscriptions.d.ts +6 -0
- package/dist/lib/hooks/fetchers/useGiftcard.d.ts +6 -0
- package/dist/lib/hooks/fetchers/useLoyaltyTransactions.d.ts +20 -0
- package/dist/lib/hooks/fetchers/usePrepaidBalance.d.ts +6 -0
- package/dist/lib/hooks/fetchers/useRewards.d.ts +6 -0
- package/dist/lib/hooks/fetchers/useSubscriptions.d.ts +6 -0
- package/dist/lib/hooks/fetchers/useVoucher.d.ts +6 -0
- package/dist/lib/hooks/fetchers/useVouchers.d.ts +6 -0
- package/dist/lib/hooks/toasts/useToast.d.ts +7 -0
- package/dist/lib/hooks/useCreatePortalSession.d.ts +5 -0
- package/dist/lib/hooks/useCurrency.d.ts +5 -0
- package/dist/lib/hooks/useEvents.d.ts +4 -0
- package/dist/lib/localization/i18n.d.ts +2 -0
- package/dist/lib/main.d.ts +8 -0
- package/dist/lib/modules/CreateNewPortalSession.d.ts +31 -0
- package/dist/lib/modules/Root.d.ts +14 -0
- package/dist/lib/modules/StartSession.d.ts +2 -0
- package/dist/lib/modules/UuidSession.d.ts +6 -0
- package/dist/lib/modules/components/HandleContactIdentifier.d.ts +7 -0
- package/dist/lib/modules/components/Scanner/QrReader.d.ts +5 -0
- package/dist/lib/modules/components/Scanner/QrReader2.d.ts +5 -0
- package/dist/lib/modules/components/Scanner/QrReader3.d.ts +5 -0
- package/dist/lib/modules/components/Scanner/QrReader4.d.ts +5 -0
- package/dist/lib/modules/components/Scanner/Scanner.d.ts +9 -0
- package/dist/lib/modules/components/auth/AuthenticateContact.d.ts +1 -0
- package/dist/lib/modules/components/auth/AuthenticateViaContactIdentifier.d.ts +4 -0
- package/dist/lib/modules/components/auth/AuthenticateViaEmail.d.ts +13 -0
- package/dist/lib/modules/components/useFindOrCreateContact.d.ts +9 -0
- package/dist/lib/modules/components/useLinkContactToSession.d.ts +4 -0
- package/dist/lib/modules/components/useLinkIdentifierToContact.d.ts +5 -0
- package/dist/lib/modules/generic/Generic.d.ts +6 -0
- package/dist/lib/modules/giftcard/HandleGiftcard.d.ts +7 -0
- package/dist/lib/modules/giftcard/IdentifyGiftcard.d.ts +1 -0
- package/dist/lib/modules/pointsTransaction/PointsTransaction.d.ts +1 -0
- package/dist/lib/modules/portal/profile/Data.d.ts +1 -0
- package/dist/lib/modules/portal/profile/details/activities/Activities.d.ts +1 -0
- package/dist/lib/modules/portal/profile/details/contactAttributes/ContactAttributes.d.ts +1 -0
- package/dist/lib/modules/portal/profile/details/contactIdentifiers/ContactIdentifiers.d.ts +1 -0
- package/dist/lib/modules/portal/profile/details/contactIdentifiers/CreateContactIdentifier.d.ts +1 -0
- package/dist/lib/modules/portal/profile/details/subscriptions/Subscriptions.d.ts +1 -0
- package/dist/lib/modules/portal/profile/sections/Balance.d.ts +1 -0
- package/dist/lib/modules/portal/profile/sections/LoyaltyTransactions.d.ts +1 -0
- package/dist/lib/modules/portal/profile/sections/Section.d.ts +5 -0
- package/dist/lib/modules/portal/profile/sections/Stats.d.ts +1 -0
- package/dist/lib/modules/portal/profile/sections/Subscriptions.d.ts +1 -0
- package/dist/lib/modules/portal/rewards/Reward.d.ts +11 -0
- package/dist/lib/modules/portal/rewards/Rewards.d.ts +1 -0
- package/dist/lib/modules/portal/rewards/RewardsContent.d.ts +8 -0
- package/dist/lib/modules/portal/vouchers/Voucher.d.ts +9 -0
- package/dist/lib/modules/portal/vouchers/Vouchers.d.ts +1 -0
- package/dist/lib/modules/prepaid/HandlePrepaid.d.ts +1 -0
- package/dist/lib/modules/voucher/HandleVoucher.d.ts +14 -0
- package/dist/lib/modules/voucher/IdentifyVoucher.d.ts +1 -0
- package/dist/lib/routing/AuthenticatedRoute.d.ts +6 -0
- package/dist/lib/routing/ContactRoutes.d.ts +1 -0
- package/dist/lib/routing/PortalRoutes.d.ts +1 -0
- package/dist/lib/routing/Router.d.ts +1 -0
- package/dist/lib/routing/RouterStateReporter.d.ts +16 -0
- package/dist/lib/routing/routes.d.ts +3 -0
- package/dist/lib/types/Contact.d.ts +35 -0
- package/dist/lib/types/Giftcard.d.ts +47 -0
- package/dist/lib/types/PortalSession.d.ts +61 -0
- package/dist/lib/types/Prepaid.d.ts +27 -0
- package/dist/lib/types/Reward.d.ts +18 -0
- package/dist/lib/types/Subscription.d.ts +32 -0
- package/dist/lib/types/Voucher.d.ts +39 -0
- package/dist/mail-CILHEgMY.js +32 -0
- package/dist/notificationErrorV2-CtLIl0uv.js +50 -0
- package/dist/notificationSuccessV2-CiOOunIj.js +50 -0
- package/dist/notificationWarningV2-DeiXPjap.js +50 -0
- package/dist/portal-sessions.es.js +45806 -21
- package/dist/portal-sessions.umd.js +76 -879
- package/dist/qr-scanner-worker.min-uyv8r9jq.js +20 -0
- package/dist/settings-hMBGAHeo.js +40 -0
- package/dist/shopping-bag-D83pzW-N.js +48 -0
- package/dist/star-DQL2OQsB.js +34 -0
- package/dist/style.css +24 -1
- package/dist/user-DATIDkwc.js +28 -0
- package/package.json +49 -51
- package/dist/browser-ponyfill-C2l-BoS5.js +0 -380
- package/dist/calendar-DatiUSvc.js +0 -19
- package/dist/camera-switch-BG4ghgtr.js +0 -19
- package/dist/caret-left-BzIJ4OR3.js +0 -19
- package/dist/close-BOnvojez.js +0 -19
- package/dist/crossBlack-D3AScCz7.js +0 -19
- package/dist/dollar-BiByq0t0.js +0 -19
- package/dist/edit-GxItFJF8.js +0 -19
- package/dist/home-BRXF8Ydg.js +0 -19
- package/dist/information-kCveus0e.js +0 -19
- package/dist/mail-Dn-PppcI.js +0 -19
- package/dist/main-Cq8Au5WV.js +0 -38031
- package/dist/notificationErrorV2-BT7C7lnC.js +0 -19
- package/dist/notificationSuccessV2-CD4Nzkx1.js +0 -19
- package/dist/notificationWarningV2-Ce-MU9nv.js +0 -19
- package/dist/portal-sessions.es.d.ts +0 -173
- package/dist/qr-scanner-worker.min-BT9FO00c.js +0 -115
- package/dist/settings-iI_Z4aYk.js +0 -19
- package/dist/shopping-bag-gCcU6Sk5.js +0 -19
- package/dist/star-B5vZfVjf.js +0 -19
- package/dist/user-CefiGOdl.js +0 -19
|
@@ -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;
|
package/dist/lib/modules/portal/profile/details/contactIdentifiers/CreateContactIdentifier.d.ts
ADDED
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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,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: "35181fda5c0d299f97ce0d4e0eb4669645aed500" }, 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-CILHEgMY.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: "35181fda5c0d299f97ce0d4e0eb4669645aed500" }, 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-CtLIl0uv.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: "35181fda5c0d299f97ce0d4e0eb4669645aed500" }, 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-CiOOunIj.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: "35181fda5c0d299f97ce0d4e0eb4669645aed500" }, 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-DeiXPjap.js.map
|