favesalon-embed 1.0.28 → 1.1.1

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 (35) hide show
  1. package/dist/custom-elements/index.d.ts +6 -0
  2. package/dist/favesalon-embed/activate-form.entry.js +1 -1
  3. package/dist/favesalon-embed/buy-giftcard-form.entry.js +123 -262
  4. package/dist/favesalon-embed/buy-giftcard-verification.entry.js +13 -6
  5. package/dist/favesalon-embed/change-password-form.entry.js +1 -1
  6. package/dist/favesalon-embed/chat-box.entry.js +1 -1
  7. package/dist/favesalon-embed/chat-button.entry.js +1 -1
  8. package/dist/favesalon-embed/chat-form.entry.js +1 -1
  9. package/dist/favesalon-embed/chat-messages.entry.js +1 -1
  10. package/dist/favesalon-embed/chat-rooms.entry.js +1 -1
  11. package/dist/favesalon-embed/favesalon-embed.esm.js +1 -1
  12. package/dist/favesalon-embed/login-form.entry.js +1 -1
  13. package/dist/favesalon-embed/magensa-payment.entry.js +136 -0
  14. package/dist/favesalon-embed/register-form.entry.js +1 -1
  15. package/dist/favesalon-embed/reset-password-form.entry.js +1 -1
  16. package/dist/favesalon-embed/salon-info.entry.js +1 -1
  17. package/dist/favesalon-embed/salon-latest-reviews.entry.js +1 -1
  18. package/dist/favesalon-embed/salon-latest-styles.entry.js +1 -1
  19. package/dist/favesalon-embed/salon-locations.entry.js +1 -1
  20. package/dist/favesalon-embed/salon-lookbook.entry.js +1 -1
  21. package/dist/favesalon-embed/salon-reviews.entry.js +1 -1
  22. package/dist/favesalon-embed/salon-schedules.entry.js +1 -1
  23. package/dist/favesalon-embed/salon-services.entry.js +1 -1
  24. package/dist/favesalon-embed/salon-stylists.entry.js +1 -1
  25. package/dist/favesalon-embed/{services-392da128.js → services-48c99e41.js} +20 -5
  26. package/dist/favesalon-embed/style-detail.entry.js +1 -1
  27. package/dist/favesalon-embed/wizard-existing-user.entry.js +5 -2
  28. package/dist/favesalon-embed/wizard-new-user.entry.js +5 -2
  29. package/dist/types/components/buy-giftcard-form/buy-giftcard-form.d.ts +2 -5
  30. package/dist/types/components/buy-giftcard-verification/buy-giftcard-verification.d.ts +2 -2
  31. package/dist/types/components/magensa-payment/magensa-payment.d.ts +19 -0
  32. package/dist/types/components.d.ts +25 -0
  33. package/dist/types/services/services.d.ts +3 -0
  34. package/dist/types/types/giftcard.d.ts +2 -1
  35. package/package.json +1 -1
@@ -94,6 +94,14 @@ export namespace Components {
94
94
  "onSubmit": (evt: any) => Promise<void>;
95
95
  "onSuccess": (user: User) => void;
96
96
  }
97
+ interface MagensaPayment {
98
+ "isProcessing": boolean;
99
+ "onPaymentError": (message, response) => void;
100
+ "onPaymentSuccess": (queueId) => void;
101
+ "paymentAmount": string;
102
+ "processingError": string;
103
+ "salonId": string;
104
+ }
97
105
  interface NotifySounds {
98
106
  }
99
107
  interface PoweredByFavesalon {
@@ -323,6 +331,12 @@ declare global {
323
331
  prototype: HTMLLoginFormElement;
324
332
  new (): HTMLLoginFormElement;
325
333
  };
334
+ interface HTMLMagensaPaymentElement extends Components.MagensaPayment, HTMLStencilElement {
335
+ }
336
+ var HTMLMagensaPaymentElement: {
337
+ prototype: HTMLMagensaPaymentElement;
338
+ new (): HTMLMagensaPaymentElement;
339
+ };
326
340
  interface HTMLNotifySoundsElement extends Components.NotifySounds, HTMLStencilElement {
327
341
  }
328
342
  var HTMLNotifySoundsElement: {
@@ -480,6 +494,7 @@ declare global {
480
494
  "icon-location-marker": HTMLIconLocationMarkerElement;
481
495
  "icon-phone": HTMLIconPhoneElement;
482
496
  "login-form": HTMLLoginFormElement;
497
+ "magensa-payment": HTMLMagensaPaymentElement;
483
498
  "notify-sounds": HTMLNotifySoundsElement;
484
499
  "powered-by-favesalon": HTMLPoweredByFavesalonElement;
485
500
  "register-form": HTMLRegisterFormElement;
@@ -582,6 +597,14 @@ declare namespace LocalJSX {
582
597
  interface LoginForm {
583
598
  "onSuccess"?: (user: User) => void;
584
599
  }
600
+ interface MagensaPayment {
601
+ "isProcessing"?: boolean;
602
+ "onPaymentError"?: (message, response) => void;
603
+ "onPaymentSuccess"?: (queueId) => void;
604
+ "paymentAmount"?: string;
605
+ "processingError"?: string;
606
+ "salonId"?: string;
607
+ }
585
608
  interface NotifySounds {
586
609
  }
587
610
  interface PoweredByFavesalon {
@@ -705,6 +728,7 @@ declare namespace LocalJSX {
705
728
  "icon-location-marker": IconLocationMarker;
706
729
  "icon-phone": IconPhone;
707
730
  "login-form": LoginForm;
731
+ "magensa-payment": MagensaPayment;
708
732
  "notify-sounds": NotifySounds;
709
733
  "powered-by-favesalon": PoweredByFavesalon;
710
734
  "register-form": RegisterForm;
@@ -752,6 +776,7 @@ declare module "@stencil/core" {
752
776
  "icon-location-marker": LocalJSX.IconLocationMarker & JSXBase.HTMLAttributes<HTMLIconLocationMarkerElement>;
753
777
  "icon-phone": LocalJSX.IconPhone & JSXBase.HTMLAttributes<HTMLIconPhoneElement>;
754
778
  "login-form": LocalJSX.LoginForm & JSXBase.HTMLAttributes<HTMLLoginFormElement>;
779
+ "magensa-payment": LocalJSX.MagensaPayment & JSXBase.HTMLAttributes<HTMLMagensaPaymentElement>;
755
780
  "notify-sounds": LocalJSX.NotifySounds & JSXBase.HTMLAttributes<HTMLNotifySoundsElement>;
756
781
  "powered-by-favesalon": LocalJSX.PoweredByFavesalon & JSXBase.HTMLAttributes<HTMLPoweredByFavesalonElement>;
757
782
  "register-form": LocalJSX.RegisterForm & JSXBase.HTMLAttributes<HTMLRegisterFormElement>;
@@ -130,6 +130,9 @@ declare class HttpService {
130
130
  fetchGiftCardSettings(salonId: any): Promise<any>;
131
131
  fetchSalonClientInfo(salonId: any, mobilePhone: any): Promise<{} | {}>;
132
132
  fetchMagensaCredentials(salonId: any): Promise<{}>;
133
+ magensaCreateQueue(salonId: any, options: any): Promise<{
134
+ queueId: any;
135
+ }>;
133
136
  magensaProcessToken(salonId: any, options: any): Promise<any>;
134
137
  magensaConfirmTransaction(options: any): Promise<any>;
135
138
  private fetchAWSPresigned;
@@ -3,11 +3,12 @@ export declare class GiftCardStyle {
3
3
  imageUrl: string;
4
4
  }
5
5
  export declare class GiftCardSettings {
6
- isMagensaPayment: boolean;
7
6
  acceptCustomAmount: boolean;
8
7
  acceptPaymentOnline: boolean;
9
8
  giftCardTerms: string;
10
9
  recommendAmounts: number[];
11
10
  giftCardStyles: GiftCardStyle[];
11
+ isDuoPricingEnabled: boolean;
12
+ paymentFeeRate: number;
12
13
  }
13
14
  export declare function createGiftCardSettings(blob: any): GiftCardSettings;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "favesalon-embed",
3
- "version": "1.0.28",
3
+ "version": "1.1.1",
4
4
  "description": "Favesalon Embed",
5
5
  "author": "Trung Luu <trung@favesalon.com> (https://favesalon.com)",
6
6
  "main": "dist/index.cjs.js",