@leatcom/portal-sessions 0.0.42 → 0.0.43-beta.0
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/calendar-Bdb4F8TW.js +5 -0
- package/dist/camera-switch-pZQsXtwJ.js +5 -0
- package/dist/caret-left-CvLobH4T.js +5 -0
- package/dist/close-1G33k97b.js +5 -0
- package/dist/crossBlack-jlUN1L_S.js +5 -0
- package/dist/edit-DP6rjn3O.js +5 -0
- package/dist/home-DdhgmQrD.js +5 -0
- package/dist/information-DBpcOU11.js +5 -0
- package/dist/mail-BugKWv2G.js +5 -0
- package/dist/portal-sessions.es.d.ts +44 -16
- package/dist/portal-sessions.es.js +17783 -18078
- package/dist/portal-sessions.umd.js +58 -59
- package/dist/settings-CtKNlBCg.js +5 -0
- package/dist/style.css +12 -12
- package/dist/user-ClrwKKfA.js +5 -0
- package/package.json +5 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const o = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M8 4.75V8.25M16 4.75V8.25M7.75 10.75H16.25M6.75 19.25H17.25C18.3546 19.25 19.25 18.3546 19.25 17.25V8.75C19.25 7.64543 18.3546 6.75 17.25 6.75H6.75C5.64543 6.75 4.75 7.64543 4.75 8.75V17.25C4.75 18.3546 5.64543 19.25 6.75 19.25Z", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
3
|
+
export {
|
|
4
|
+
o as default
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as c from "react";
|
|
2
|
+
const t = (l) => /* @__PURE__ */ c.createElement("svg", { height: 24, viewBox: "0 0 24 24", width: 24, xmlns: "http://www.w3.org/2000/svg", ...l }, /* @__PURE__ */ c.createElement("path", { d: "m21.25 7.5c.3796958 0 .693491.28215388.7431534.64822944l.0068466.10177056v8.5c0 1.7330315-1.3564548 3.1492459-3.0655761 3.2448552l-.1844239.0051448h-12.689l.71933009.7196699c.26626656.2662666.29047261.6829303.07261815.9765418l-.07261815.0841184c-.26626657.2662665-.68293025.2904726-.97654174.0726181l-.08411844-.0726181-2-2-.06339799-.0720275c-.00244939-.0031685-.00487398-.0063571-.00727348-.0095656l.07067147.0815931c-.03705327-.0370533-.06941902-.077019-.09709724-.1191603-.01316484-.0201549-.025545-.0411423-.03690171-.0627516-.00483354-.0091218-.00919014-.0178526-.01336588-.0266478-.01274712-.0267885-.02425172-.0552483-.03400215-.0845099-.00225837-.0069437-.00418282-.0130149-.00602813-.019105-.02092163-.0684786-.0322748-.1419912-.0322748-.2181555 0-.0383922.00288471-.0761107.00844919-.1129505.00180466-.0115676.0038603-.0232773.00619514-.0349422.00494363-.0250031.01111685-.0492994.01844184-.073091.00362656-.0116598.00765847-.0237092.01200456-.0356703.00848426-.0232976.01778613-.0453662.02808241-.0668678.00549219-.0116011.01179514-.0239381.01846187-.0361292.01323523-.0240158.02734042-.0467392.04258121-.0686124.00392129-.0057417.00832657-.0118713.01283554-.0179483.0251194-.0332177.04801831-.0595185.07261815-.0841184l2-2c.29289322-.2928932.76776696-.2928932 1.06066018 0 .26626656.2662666.29047261.6829303.07261815.9765418l-.07261815.0841184-.72033009.7196699h12.69c.9181734 0 1.6711923-.7071103 1.7441988-1.6064728l.0058012-.1435272v-8.5c0-.41421356.3357864-.75.75-.75zm-3.0537883-5.35294824.0841184.07261815 2 2c.0254481.02544812.049076.05271652.0706715.08159313l-.0706715-.08159313c.0370533.03705328.069419.07701901.0970972.1191603.0131649.02015493.025545.04114226.0369017.06275154.0048336.00912187.0091902.01785262.0133659.02664784.0127471.02678853.0242517.0552483.0340022.08450994.0022583.00694369.0041828.01301489.0060281.01910493.0209216.06847868.0322748.14199127.0322748.21815554 0 .03839224-.0028847.07611073-.0084492.11295053-.0014988.0095454-.0031606.01924362-.0050138.02891241-.0051364.02710922-.0117072.05340972-.0196232.07912072-.0036265.0116598-.0076584.02370928-.0120045.03567032-.0084843.02329763-.0177862.04536621-.0280824.06686781-.0054922.01160108-.0117952.02393815-.0184619.03612923-.0132352.02401575-.0273404.04673917-.0425812.06861233-.0039213.00574174-.0083266.01187138-.0128356.0179483-.023778.03144192-.0451015.05615345-.0679264.07938506l-.0046917.00473338-2 2c-.2928932.29289321-.767767.29289321-1.0606602 0-.2662665-.26626657-.2904726-.68293025-.0726181-.97654174l.0726181-.08411844.7183301-.71966991h-12.688c-.9181734 0-1.67119234.70711027-1.7441988 1.60647279l-.0058012.14352721v8.5c0 .4142136-.33578644.75-.75.75-.37969577 0-.69349096-.2821539-.74315338-.6482294l-.00684662-.1017706v-8.5c0-1.73303146 1.35645477-3.14924593 3.06557609-3.24485521l.18442391-.00514479h12.689l-.7193301-.71966991c-.2662665-.26626657-.2904726-.68293025-.0726181-.97654174l.0726181-.08411844c.2662666-.26626656.6829303-.29047261.9765418-.07261815zm-6.1962117 5.85294824c2.209139 0 4 1.790861 4 4s-1.790861 4-4 4-4-1.790861-4-4 1.790861-4 4-4zm0 1.5c-1.3807119 0-2.5 1.1192881-2.5 2.5s1.1192881 2.5 2.5 2.5 2.5-1.1192881 2.5-2.5-1.1192881-2.5-2.5-2.5z", fill: "#212121" }));
|
|
3
|
+
export {
|
|
4
|
+
t as default
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const o = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M13.25 8.75L9.75 12L13.25 15.25", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
3
|
+
export {
|
|
4
|
+
o as default
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const o = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M17.25 6.75L6.75 17.25M6.75 6.75L17.25 17.25", strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
3
|
+
export {
|
|
4
|
+
o as default
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const o = (t) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M4.7002 4.70016L11.2999 11.2998", stroke: "#000", strokeWidth: 1.8, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M11.2998 4.70016L4.70014 11.2998", stroke: "#000", strokeWidth: 1.8, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
3
|
+
export {
|
|
4
|
+
o as default
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const o = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M19.25 19.25H13.75M9 18.25L4.75 19.25L5.75 15L15.0429 5.70711C15.4334 5.31658 16.0666 5.31658 16.4571 5.70711L18.2929 7.54289C18.6834 7.93342 18.6834 8.56658 18.2929 8.95711L9 18.25Z", strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
3
|
+
export {
|
|
4
|
+
o as default
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const o = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M6.75024 19.2502H17.2502C18.3548 19.2502 19.2502 18.3548 19.2502 17.2502V9.75025L12.0002 4.75024L4.75024 9.75025V17.2502C4.75024 18.3548 5.64568 19.2502 6.75024 19.2502Z", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ e.createElement("path", { d: "M9.74963 15.7493C9.74963 14.6447 10.6451 13.7493 11.7496 13.7493H12.2496C13.3542 13.7493 14.2496 14.6447 14.2496 15.7493V19.2493H9.74963V15.7493Z", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
3
|
+
export {
|
|
4
|
+
o as default
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const r = (t) => /* @__PURE__ */ e.createElement("svg", { width: 24, height: 24, fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ e.createElement("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 13V15" }), /* @__PURE__ */ e.createElement("circle", { cx: 12, cy: 9, r: 0.5 }), /* @__PURE__ */ e.createElement("circle", { cx: 12, cy: 12, r: 7.25, strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5 }));
|
|
3
|
+
export {
|
|
4
|
+
r as default
|
|
5
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
const o = (t) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ...t }, /* @__PURE__ */ e.createElement("path", { 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", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" }));
|
|
3
|
+
export {
|
|
4
|
+
o as default
|
|
5
|
+
};
|
|
@@ -71,7 +71,7 @@ export declare type ContactResource = {
|
|
|
71
71
|
credit_balance: CreditBalance;
|
|
72
72
|
prepaid_balance: PrepaidBalance;
|
|
73
73
|
current_values: {
|
|
74
|
-
[key: string]: string |
|
|
74
|
+
[key: string]: string | number;
|
|
75
75
|
};
|
|
76
76
|
current_display_values: {
|
|
77
77
|
[key: string]: string;
|
|
@@ -116,6 +116,13 @@ declare type Event_2 = {
|
|
|
116
116
|
};
|
|
117
117
|
export { Event_2 as Event }
|
|
118
118
|
|
|
119
|
+
export declare enum EventType {
|
|
120
|
+
GIFTCARD_TRANSACTION = "giftcard_transaction",
|
|
121
|
+
VOUCHER_REDEEMED = "voucher_redeemed",
|
|
122
|
+
REWARD_RECEPTION = "reward_reception",
|
|
123
|
+
PREPAID_TRANSACTION = "prepaid_transaction"
|
|
124
|
+
}
|
|
125
|
+
|
|
119
126
|
export declare type GiftcardProgram = {
|
|
120
127
|
id: number;
|
|
121
128
|
name: string;
|
|
@@ -176,8 +183,14 @@ declare type HeaderItem = {
|
|
|
176
183
|
align?: "left" | "center" | "right";
|
|
177
184
|
};
|
|
178
185
|
|
|
186
|
+
declare type Image_2 = {
|
|
187
|
+
id: string;
|
|
188
|
+
type: string;
|
|
189
|
+
value: string;
|
|
190
|
+
};
|
|
191
|
+
export { Image_2 as Image }
|
|
192
|
+
|
|
179
193
|
export declare type InputData = {
|
|
180
|
-
scanner_type?: ScannerType;
|
|
181
194
|
enable_on_screen_keyboard?: boolean;
|
|
182
195
|
enable_email_identification?: boolean;
|
|
183
196
|
enable_registration?: boolean;
|
|
@@ -191,6 +204,12 @@ export declare type LoyaltyProgram = {
|
|
|
191
204
|
custom_credit_name: string;
|
|
192
205
|
};
|
|
193
206
|
|
|
207
|
+
export declare type Media = {
|
|
208
|
+
id: number;
|
|
209
|
+
type: string;
|
|
210
|
+
value: string;
|
|
211
|
+
};
|
|
212
|
+
|
|
194
213
|
declare type Option_2 = {
|
|
195
214
|
value: string;
|
|
196
215
|
label: string;
|
|
@@ -198,11 +217,12 @@ declare type Option_2 = {
|
|
|
198
217
|
export { Option_2 as Option }
|
|
199
218
|
|
|
200
219
|
export declare enum PortalRoute {
|
|
201
|
-
REDEEM_GIFTCARD = "/
|
|
202
|
-
TOP_UP_GIFTCARD = "/
|
|
220
|
+
REDEEM_GIFTCARD = "/redeem-giftcard",
|
|
221
|
+
TOP_UP_GIFTCARD = "/top-up-giftcard",
|
|
203
222
|
PORTAL = "/portal",
|
|
204
|
-
|
|
205
|
-
|
|
223
|
+
PAY_PREPAID = "/pay-prepaid",
|
|
224
|
+
TOP_UP_PREPAID = "/top-up-prepaid",
|
|
225
|
+
POINTS_TRANSACTION = "/points-transaction",
|
|
206
226
|
VOUCHER = "/voucher"
|
|
207
227
|
}
|
|
208
228
|
|
|
@@ -224,7 +244,6 @@ export declare type PortalSessionApiResource = {
|
|
|
224
244
|
export declare type PortalSessionPayload = {
|
|
225
245
|
api_key: string;
|
|
226
246
|
shop_uuid: string;
|
|
227
|
-
scanner_type?: string;
|
|
228
247
|
enable_on_screen_keyboard?: boolean;
|
|
229
248
|
enable_email_identification?: boolean;
|
|
230
249
|
enable_registration?: boolean;
|
|
@@ -238,7 +257,6 @@ export declare type PortalSessionProps = {
|
|
|
238
257
|
apiKey: string;
|
|
239
258
|
shopUuid: string;
|
|
240
259
|
contactUuid?: string;
|
|
241
|
-
scannerType?: string;
|
|
242
260
|
enableRegistration?: boolean;
|
|
243
261
|
enableEmailIdentification?: boolean;
|
|
244
262
|
enableOnScreenKeyboard?: boolean;
|
|
@@ -255,8 +273,9 @@ export declare enum PortalType {
|
|
|
255
273
|
REDEEM_GIFTCARD = "REDEEM_GIFTCARD",
|
|
256
274
|
TOP_UP_GIFTCARD = "TOP_UP_GIFTCARD",
|
|
257
275
|
PORTAL = "PORTAL",
|
|
258
|
-
|
|
259
|
-
|
|
276
|
+
PAY_PREPAID = "PAY_PREPAID",
|
|
277
|
+
TOP_UP_PREPAID = "TOP_UP_PREPAID",
|
|
278
|
+
POINTS_TRANSACTION = "POINTS_TRANSACTION",
|
|
260
279
|
VOUCHER = "VOUCHER"
|
|
261
280
|
}
|
|
262
281
|
|
|
@@ -270,13 +289,15 @@ export declare type PrepaidBalanceResource = {
|
|
|
270
289
|
};
|
|
271
290
|
|
|
272
291
|
export declare type Promotion = {
|
|
273
|
-
[p: string]: string | boolean | number;
|
|
274
292
|
uuid: string;
|
|
275
293
|
name: string;
|
|
276
294
|
description: string;
|
|
277
295
|
voucher_limit: number;
|
|
278
296
|
limit_per_contact: number;
|
|
279
297
|
expiration_duration: number;
|
|
298
|
+
image: Image_2;
|
|
299
|
+
} & {
|
|
300
|
+
[p: string]: string | boolean | number;
|
|
280
301
|
};
|
|
281
302
|
|
|
282
303
|
export declare type RewardResource = {
|
|
@@ -286,8 +307,10 @@ export declare type RewardResource = {
|
|
|
286
307
|
cost_price: number;
|
|
287
308
|
required_credits: number;
|
|
288
309
|
active: boolean;
|
|
310
|
+
media: Media;
|
|
289
311
|
reward_type: string;
|
|
290
312
|
stock: number;
|
|
313
|
+
} & {
|
|
291
314
|
[attributeKey: string]: string | number | boolean;
|
|
292
315
|
};
|
|
293
316
|
|
|
@@ -296,11 +319,6 @@ declare type RowType = {
|
|
|
296
319
|
id: number;
|
|
297
320
|
};
|
|
298
321
|
|
|
299
|
-
export declare enum ScannerType {
|
|
300
|
-
HAND_SCANNER = "hand_scanner",
|
|
301
|
-
CAMERA = "camera"
|
|
302
|
-
}
|
|
303
|
-
|
|
304
322
|
export declare type Search = {
|
|
305
323
|
api_url: string;
|
|
306
324
|
token: string;
|
|
@@ -334,6 +352,16 @@ export declare enum SubscriptionStrategy {
|
|
|
334
352
|
FUNCTIONAL = "FUNCTIONAL"
|
|
335
353
|
}
|
|
336
354
|
|
|
355
|
+
export declare type SubscriptionType = {
|
|
356
|
+
id: number;
|
|
357
|
+
uuid: string;
|
|
358
|
+
name: string;
|
|
359
|
+
description: string;
|
|
360
|
+
is_piggy_defined: boolean;
|
|
361
|
+
strategy: string;
|
|
362
|
+
active: boolean;
|
|
363
|
+
};
|
|
364
|
+
|
|
337
365
|
export declare type TableResponse = {
|
|
338
366
|
header: Header;
|
|
339
367
|
rows: RowType[];
|