@leatcom/portal-sessions 0.0.72 → 0.0.74
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/portal-sessions.es.d.ts +7 -173
- package/dist/portal-sessions.es.js +16484 -16484
- package/dist/portal-sessions.umd.js +12 -12
- package/package.json +1 -1
|
@@ -15,20 +15,6 @@ export declare type Attribute = {
|
|
|
15
15
|
value: string;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
declare type Attribute_2 = {
|
|
19
|
-
attribute: {
|
|
20
|
-
field_type: string;
|
|
21
|
-
id: number;
|
|
22
|
-
is_hard_read_only: boolean;
|
|
23
|
-
is_soft_read_only: boolean;
|
|
24
|
-
label: string;
|
|
25
|
-
name: string;
|
|
26
|
-
options: [];
|
|
27
|
-
type: any;
|
|
28
|
-
};
|
|
29
|
-
value: string;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
18
|
declare type Column = {
|
|
33
19
|
align?: "left" | "center" | "right";
|
|
34
20
|
value: ColumnValue;
|
|
@@ -92,29 +78,11 @@ export declare type ContactResource = {
|
|
|
92
78
|
};
|
|
93
79
|
};
|
|
94
80
|
|
|
95
|
-
declare type ContactResource_2 = {
|
|
96
|
-
id: number;
|
|
97
|
-
uuid: string;
|
|
98
|
-
email: string;
|
|
99
|
-
attributes: Array<Attribute_2>;
|
|
100
|
-
tier: Tier_2 | null;
|
|
101
|
-
subscriptions: Array<Subscription_2>;
|
|
102
|
-
credit_balance: CreditBalance_2;
|
|
103
|
-
prepaid_balance: PrepaidBalance_2;
|
|
104
|
-
current_values: { [key: string]: string | number };
|
|
105
|
-
current_display_values: { [key: string]: string };
|
|
106
|
-
};
|
|
107
|
-
|
|
108
81
|
export declare type CreditBalance = {
|
|
109
82
|
balance: number;
|
|
110
83
|
id: number;
|
|
111
84
|
};
|
|
112
85
|
|
|
113
|
-
declare type CreditBalance_2 = {
|
|
114
|
-
balance: number;
|
|
115
|
-
id: number;
|
|
116
|
-
};
|
|
117
|
-
|
|
118
86
|
export declare type CreditReceptionTransactionResource = {
|
|
119
87
|
type: string;
|
|
120
88
|
credits: number;
|
|
@@ -165,11 +133,6 @@ export declare enum FacingMode {
|
|
|
165
133
|
ENVIRONMENT = "environment"
|
|
166
134
|
}
|
|
167
135
|
|
|
168
|
-
declare enum FacingMode_2 {
|
|
169
|
-
USER = "user",
|
|
170
|
-
ENVIRONMENT = "environment",
|
|
171
|
-
}
|
|
172
|
-
|
|
173
136
|
export declare type GiftcardProgram = {
|
|
174
137
|
id: number;
|
|
175
138
|
name: string;
|
|
@@ -221,18 +184,6 @@ export declare type GiftcardTransactionResource = {
|
|
|
221
184
|
created_at: string;
|
|
222
185
|
};
|
|
223
186
|
|
|
224
|
-
declare type GiftcardTransactionResource_2 = {
|
|
225
|
-
id: number;
|
|
226
|
-
uuid: string;
|
|
227
|
-
amount_in_cents: number;
|
|
228
|
-
type: string;
|
|
229
|
-
settled: boolean;
|
|
230
|
-
card: { id: number; uuid: string };
|
|
231
|
-
shop: { id: number; uuid: string; name: string };
|
|
232
|
-
settlements: []; // GiftcardTransactionSettlementResource
|
|
233
|
-
created_at: string;
|
|
234
|
-
};
|
|
235
|
-
|
|
236
187
|
declare type Header = {
|
|
237
188
|
items: HeaderItem[];
|
|
238
189
|
};
|
|
@@ -249,12 +200,6 @@ declare type Image_2 = {
|
|
|
249
200
|
};
|
|
250
201
|
export { Image_2 as Image }
|
|
251
202
|
|
|
252
|
-
declare type Image_3 = {
|
|
253
|
-
id: string;
|
|
254
|
-
type: string;
|
|
255
|
-
value: string;
|
|
256
|
-
};
|
|
257
|
-
|
|
258
203
|
export declare type InputData = {
|
|
259
204
|
enable_on_screen_keyboard?: boolean;
|
|
260
205
|
enable_email_identification?: boolean;
|
|
@@ -276,12 +221,6 @@ export declare type Media = {
|
|
|
276
221
|
value: string;
|
|
277
222
|
};
|
|
278
223
|
|
|
279
|
-
declare type Media_2 = {
|
|
280
|
-
id: number;
|
|
281
|
-
type: string;
|
|
282
|
-
value: string;
|
|
283
|
-
};
|
|
284
|
-
|
|
285
224
|
declare type Option_2 = {
|
|
286
225
|
value: string;
|
|
287
226
|
label: string;
|
|
@@ -324,7 +263,7 @@ export declare type PortalSessionPayload = {
|
|
|
324
263
|
};
|
|
325
264
|
|
|
326
265
|
export declare type PortalSessionProps = {
|
|
327
|
-
type?:
|
|
266
|
+
type?: PortalType;
|
|
328
267
|
host?: string;
|
|
329
268
|
apiKey: string;
|
|
330
269
|
shopUuid: string;
|
|
@@ -334,13 +273,13 @@ export declare type PortalSessionProps = {
|
|
|
334
273
|
enableOnScreenKeyboard?: boolean;
|
|
335
274
|
allowMultipleGiftcards?: boolean;
|
|
336
275
|
amountInCents?: number;
|
|
337
|
-
cameraFacingMode?:
|
|
338
|
-
onContactLink?: (contact:
|
|
339
|
-
onClaimReward?: (reward:
|
|
340
|
-
onRedeemVoucher?: (voucher:
|
|
341
|
-
onUseGiftcard?: (giftcardTransaction:
|
|
276
|
+
cameraFacingMode?: FacingMode | "user" | "environment";
|
|
277
|
+
onContactLink?: (contact: ContactResource) => void;
|
|
278
|
+
onClaimReward?: (reward: RewardResource, transactionUuid?: string) => void;
|
|
279
|
+
onRedeemVoucher?: (voucher: VoucherResource) => void;
|
|
280
|
+
onUseGiftcard?: (giftcardTransaction: GiftcardTransactionResource) => void;
|
|
342
281
|
onCreateTransaction?: (creditReceptionId: number) => void;
|
|
343
|
-
primaryIdentificationMethod?:
|
|
282
|
+
primaryIdentificationMethod?: PrimaryIdentificationMethod;
|
|
344
283
|
};
|
|
345
284
|
|
|
346
285
|
export declare enum PortalType {
|
|
@@ -355,26 +294,10 @@ export declare enum PortalType {
|
|
|
355
294
|
VOUCHER = "VOUCHER"
|
|
356
295
|
}
|
|
357
296
|
|
|
358
|
-
declare enum PortalType_2 {
|
|
359
|
-
GENERIC = "GENERIC",
|
|
360
|
-
GIFTCARD = "GIFTCARD",
|
|
361
|
-
REDEEM_GIFTCARD = "REDEEM_GIFTCARD",
|
|
362
|
-
TOP_UP_GIFTCARD = "TOP_UP_GIFTCARD",
|
|
363
|
-
PORTAL = "PORTAL",
|
|
364
|
-
PAY_PREPAID = "PAY_PREPAID",
|
|
365
|
-
TOP_UP_PREPAID = "TOP_UP_PREPAID",
|
|
366
|
-
POINTS_TRANSACTION = "POINTS_TRANSACTION",
|
|
367
|
-
VOUCHER = "VOUCHER",
|
|
368
|
-
}
|
|
369
|
-
|
|
370
297
|
export declare type PrepaidBalance = {
|
|
371
298
|
balance_in_cents: number;
|
|
372
299
|
};
|
|
373
300
|
|
|
374
|
-
declare type PrepaidBalance_2 = {
|
|
375
|
-
balance_in_cents: number;
|
|
376
|
-
};
|
|
377
|
-
|
|
378
301
|
export declare type PrepaidBalanceResource = {
|
|
379
302
|
balance_in_cents: number;
|
|
380
303
|
balance: string;
|
|
@@ -385,11 +308,6 @@ export declare enum PrimaryIdentificationMethod {
|
|
|
385
308
|
EMAIL = "email"
|
|
386
309
|
}
|
|
387
310
|
|
|
388
|
-
declare enum PrimaryIdentificationMethod_2 {
|
|
389
|
-
IDENTIFIER = "identifier",
|
|
390
|
-
EMAIL = "email",
|
|
391
|
-
}
|
|
392
|
-
|
|
393
311
|
export declare type Promotion = {
|
|
394
312
|
uuid: string;
|
|
395
313
|
name: string;
|
|
@@ -402,16 +320,6 @@ export declare type Promotion = {
|
|
|
402
320
|
[p: string]: string | boolean | number;
|
|
403
321
|
};
|
|
404
322
|
|
|
405
|
-
declare type Promotion_2 = {
|
|
406
|
-
uuid: string;
|
|
407
|
-
name: string;
|
|
408
|
-
description: string;
|
|
409
|
-
voucher_limit: number;
|
|
410
|
-
limit_per_contact: number;
|
|
411
|
-
expiration_duration: number;
|
|
412
|
-
image: Image_3;
|
|
413
|
-
} & { [p: string]: string | boolean | number };
|
|
414
|
-
|
|
415
323
|
export declare type RewardResource = {
|
|
416
324
|
uuid: string;
|
|
417
325
|
title: string;
|
|
@@ -426,18 +334,6 @@ export declare type RewardResource = {
|
|
|
426
334
|
[attributeKey: string]: string | number | boolean;
|
|
427
335
|
};
|
|
428
336
|
|
|
429
|
-
declare type RewardResource_2 = {
|
|
430
|
-
uuid: string;
|
|
431
|
-
title: string;
|
|
432
|
-
description: string;
|
|
433
|
-
cost_price: number;
|
|
434
|
-
required_credits: number;
|
|
435
|
-
active: boolean;
|
|
436
|
-
media: Media_2;
|
|
437
|
-
reward_type: string;
|
|
438
|
-
stock: number;
|
|
439
|
-
} & { [attributeKey: string]: string | number | boolean };
|
|
440
|
-
|
|
441
337
|
declare type RowType = {
|
|
442
338
|
columns: Column[];
|
|
443
339
|
id: number;
|
|
@@ -463,31 +359,12 @@ export declare type Subscription = {
|
|
|
463
359
|
};
|
|
464
360
|
};
|
|
465
361
|
|
|
466
|
-
declare type Subscription_2 = {
|
|
467
|
-
is_subscribed: boolean;
|
|
468
|
-
status: SubscriptionStatus_2;
|
|
469
|
-
subscription_type: {
|
|
470
|
-
active: boolean;
|
|
471
|
-
description: string;
|
|
472
|
-
id: number;
|
|
473
|
-
name: string;
|
|
474
|
-
strategy: SubscriptionStrategy_2;
|
|
475
|
-
uuid: string;
|
|
476
|
-
};
|
|
477
|
-
};
|
|
478
|
-
|
|
479
362
|
export declare enum SubscriptionStatus {
|
|
480
363
|
SUBSCRIBED = "SUBSCRIBED",
|
|
481
364
|
UNSUBSCRIBED = "UNSUBSCRIBED",
|
|
482
365
|
PENDING_CONFIRMATION = "PENDING_CONFIRMATION"
|
|
483
366
|
}
|
|
484
367
|
|
|
485
|
-
declare enum SubscriptionStatus_2 {
|
|
486
|
-
SUBSCRIBED = "SUBSCRIBED",
|
|
487
|
-
UNSUBSCRIBED = "UNSUBSCRIBED",
|
|
488
|
-
PENDING_CONFIRMATION = "PENDING_CONFIRMATION",
|
|
489
|
-
}
|
|
490
|
-
|
|
491
368
|
export declare enum SubscriptionStrategy {
|
|
492
369
|
OPT_OUT = "OPT_OUT",
|
|
493
370
|
OPT_IN = "OPT_IN",
|
|
@@ -495,13 +372,6 @@ export declare enum SubscriptionStrategy {
|
|
|
495
372
|
FUNCTIONAL = "FUNCTIONAL"
|
|
496
373
|
}
|
|
497
374
|
|
|
498
|
-
declare enum SubscriptionStrategy_2 {
|
|
499
|
-
OPT_OUT = "OPT_OUT",
|
|
500
|
-
OPT_IN = "OPT_IN",
|
|
501
|
-
DOUBLE_OPT_IN = "DOUBLE_OPT_IN",
|
|
502
|
-
FUNCTIONAL = "FUNCTIONAL",
|
|
503
|
-
}
|
|
504
|
-
|
|
505
375
|
export declare type SubscriptionType = {
|
|
506
376
|
id: number;
|
|
507
377
|
uuid: string;
|
|
@@ -525,14 +395,6 @@ export declare type Tier = {
|
|
|
525
395
|
uuid: string;
|
|
526
396
|
};
|
|
527
397
|
|
|
528
|
-
declare type Tier_2 = {
|
|
529
|
-
description: string;
|
|
530
|
-
// media:
|
|
531
|
-
name: string;
|
|
532
|
-
position: number;
|
|
533
|
-
uuid: string;
|
|
534
|
-
};
|
|
535
|
-
|
|
536
398
|
export declare type VoucherResource = {
|
|
537
399
|
uuid: string;
|
|
538
400
|
code: string;
|
|
@@ -552,25 +414,6 @@ export declare type VoucherResource = {
|
|
|
552
414
|
promotion: Promotion;
|
|
553
415
|
};
|
|
554
416
|
|
|
555
|
-
declare type VoucherResource_2 = {
|
|
556
|
-
uuid: string;
|
|
557
|
-
code: string;
|
|
558
|
-
status: VoucherStatus_2;
|
|
559
|
-
name: string;
|
|
560
|
-
description: string;
|
|
561
|
-
expiration_date: string;
|
|
562
|
-
redeemed_at: string;
|
|
563
|
-
is_redeemed: boolean;
|
|
564
|
-
attributes: {
|
|
565
|
-
[key: string]: any;
|
|
566
|
-
};
|
|
567
|
-
contact: {
|
|
568
|
-
uuid: string;
|
|
569
|
-
email: string;
|
|
570
|
-
};
|
|
571
|
-
promotion: Promotion_2;
|
|
572
|
-
};
|
|
573
|
-
|
|
574
417
|
export declare enum VoucherStatus {
|
|
575
418
|
INACTIVE = "INACTIVE",
|
|
576
419
|
ACTIVE = "ACTIVE",
|
|
@@ -580,13 +423,4 @@ export declare enum VoucherStatus {
|
|
|
580
423
|
DEACTIVATED = "DEACTIVATED"
|
|
581
424
|
}
|
|
582
425
|
|
|
583
|
-
declare enum VoucherStatus_2 {
|
|
584
|
-
INACTIVE = "INACTIVE",
|
|
585
|
-
ACTIVE = "ACTIVE",
|
|
586
|
-
EXPIRED = "EXPIRED",
|
|
587
|
-
LOCKED = "LOCKED",
|
|
588
|
-
REDEEMED = "REDEEMED",
|
|
589
|
-
DEACTIVATED = "DEACTIVATED",
|
|
590
|
-
}
|
|
591
|
-
|
|
592
426
|
export { }
|