favesalon-embed 1.0.22 → 1.0.24
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/favesalon-embed/activate-form.entry.js +1 -1
- package/dist/favesalon-embed/buy-giftcard-form.entry.js +218 -22
- package/dist/favesalon-embed/buy-giftcard-verification.entry.js +1 -1
- package/dist/favesalon-embed/change-password-form.entry.js +1 -1
- package/dist/favesalon-embed/chat-box.entry.js +1 -1
- package/dist/favesalon-embed/chat-button.entry.js +1 -1
- package/dist/favesalon-embed/chat-form.entry.js +1 -1
- package/dist/favesalon-embed/chat-messages.entry.js +1 -1
- package/dist/favesalon-embed/chat-rooms.entry.js +1 -1
- package/dist/favesalon-embed/favesalon-embed.esm.js +1 -1
- package/dist/favesalon-embed/login-form.entry.js +1 -1
- package/dist/favesalon-embed/register-form.entry.js +1 -1
- package/dist/favesalon-embed/reset-password-form.entry.js +1 -1
- package/dist/favesalon-embed/salon-info.entry.js +1 -1
- package/dist/favesalon-embed/salon-latest-reviews.entry.js +1 -1
- package/dist/favesalon-embed/salon-latest-styles.entry.js +1 -1
- package/dist/favesalon-embed/salon-locations.entry.js +1 -1
- package/dist/favesalon-embed/salon-lookbook.entry.js +1 -1
- package/dist/favesalon-embed/salon-reviews.entry.js +1 -1
- package/dist/favesalon-embed/salon-schedules.entry.js +1 -1
- package/dist/favesalon-embed/salon-services.entry.js +1 -1
- package/dist/favesalon-embed/salon-stylists.entry.js +1 -1
- package/dist/favesalon-embed/services-2993bf2a.js +24157 -0
- package/dist/favesalon-embed/services-54b63d13.js +24157 -0
- package/dist/favesalon-embed/{services-82948efc.js → services-97ad3e3d.js} +42 -8
- package/dist/favesalon-embed/{services-9e44a982.js → services-a7506d8c.js} +14 -10
- package/dist/favesalon-embed/{services-42acb174.js → services-cb90384e.js} +11 -8
- package/dist/favesalon-embed/style-detail.entry.js +1 -1
- package/dist/favesalon-embed/wizard-existing-user.entry.js +1 -1
- package/dist/favesalon-embed/wizard-new-user.entry.js +1 -1
- package/dist/types/components/buy-giftcard-form/buy-giftcard-form.d.ts +4 -0
- package/dist/types/services/services.d.ts +5 -13
- package/package.json +1 -1
|
@@ -24025,6 +24025,10 @@ class HttpService {
|
|
|
24025
24025
|
}
|
|
24026
24026
|
return Promise.reject();
|
|
24027
24027
|
}
|
|
24028
|
+
sendNotification(options, accessToken) {
|
|
24029
|
+
const url = `${apiV2Prefix}/push-notification/send-users?access_token=${accessToken}`;
|
|
24030
|
+
return this.http.post(url, options);
|
|
24031
|
+
}
|
|
24028
24032
|
loginByPhoneCode(options) {
|
|
24029
24033
|
const url = `${apiV2Prefix}/user/login-by-sms`;
|
|
24030
24034
|
return this.http.post(url, options)
|
|
@@ -24094,14 +24098,17 @@ class HttpService {
|
|
|
24094
24098
|
.catch(() => ({}));
|
|
24095
24099
|
}
|
|
24096
24100
|
fetchMagensaCredentials(salonId) {
|
|
24097
|
-
|
|
24098
|
-
|
|
24099
|
-
|
|
24100
|
-
|
|
24101
|
-
|
|
24102
|
-
|
|
24103
|
-
|
|
24104
|
-
|
|
24101
|
+
if (salonId) {
|
|
24102
|
+
const credentials = {
|
|
24103
|
+
customerCode: window.atob('U0s5MDE3MzI4MQ=='),
|
|
24104
|
+
username: window.atob('TUFHNDM3NTgyNjky'),
|
|
24105
|
+
password: window.atob('eV41T3htYlNuUDdUaDc='),
|
|
24106
|
+
processorName: window.atob('VFNZUyAtIFByb2R1Y3Rpb24='),
|
|
24107
|
+
token: window.atob('V0VjeU5qZ3hORE01TVM5TlFVYzFOVFUyT1RVeE9ETTZXVFIwUkVGYVJpUT0='),
|
|
24108
|
+
};
|
|
24109
|
+
return Promise.resolve(credentials);
|
|
24110
|
+
}
|
|
24111
|
+
return Promise.resolve({});
|
|
24105
24112
|
}
|
|
24106
24113
|
magensaProcessToken(salonId, options) {
|
|
24107
24114
|
const url = `${apiV2Prefix}/magensa/${salonId}/process-token`;
|
|
@@ -24117,6 +24124,33 @@ class HttpService {
|
|
|
24117
24124
|
return Promise.resolve((response.data || [])[0] || {});
|
|
24118
24125
|
});
|
|
24119
24126
|
}
|
|
24127
|
+
fetchAWSPresigned(options) {
|
|
24128
|
+
const url = `${apiV1Prefix}/upload/presigned-url`;
|
|
24129
|
+
return this.http.post(url, options)
|
|
24130
|
+
.then(response => (response.data || {}).data);
|
|
24131
|
+
}
|
|
24132
|
+
uploadFileToAWS(file, options) {
|
|
24133
|
+
const { acl, policy, AWSAccessKeyId, signature, key } = options || {};
|
|
24134
|
+
const formData = new FormData();
|
|
24135
|
+
formData.append('acl', String(acl));
|
|
24136
|
+
formData.append('key', String(key));
|
|
24137
|
+
formData.append('policy', String(policy));
|
|
24138
|
+
formData.append('signature', String(signature));
|
|
24139
|
+
formData.append('AWSAccessKeyId', String(AWSAccessKeyId));
|
|
24140
|
+
formData.append('Content-Type', String(file.type));
|
|
24141
|
+
formData.append('success_action_status', String(201));
|
|
24142
|
+
formData.append('file', file);
|
|
24143
|
+
return this.http.post(`https://favesalon.s3.amazonaws.com`, formData)
|
|
24144
|
+
.then(() => `https://favesalon.s3.amazonaws.com/${key}`);
|
|
24145
|
+
}
|
|
24146
|
+
uploadFile(file, extraOptions) {
|
|
24147
|
+
return this.fetchAWSPresigned({ ...extraOptions, file_name: file.name })
|
|
24148
|
+
.then(options => this.uploadFileToAWS(file, options));
|
|
24149
|
+
}
|
|
24150
|
+
log(options) {
|
|
24151
|
+
const url = `${apiV2Prefix}/log/add-common-log`;
|
|
24152
|
+
return this.http.post(url, options);
|
|
24153
|
+
}
|
|
24120
24154
|
}
|
|
24121
24155
|
const HttpService$1 = () => new HttpService();
|
|
24122
24156
|
|
|
@@ -24025,8 +24025,8 @@ class HttpService {
|
|
|
24025
24025
|
}
|
|
24026
24026
|
return Promise.reject();
|
|
24027
24027
|
}
|
|
24028
|
-
sendNotification(options) {
|
|
24029
|
-
const url = `${apiV2Prefix}/push-notification/send-users`;
|
|
24028
|
+
sendNotification(options, accessToken) {
|
|
24029
|
+
const url = `${apiV2Prefix}/push-notification/send-users?access_token=${accessToken}`;
|
|
24030
24030
|
return this.http.post(url, options);
|
|
24031
24031
|
}
|
|
24032
24032
|
loginByPhoneCode(options) {
|
|
@@ -24098,14 +24098,18 @@ class HttpService {
|
|
|
24098
24098
|
.catch(() => ({}));
|
|
24099
24099
|
}
|
|
24100
24100
|
fetchMagensaCredentials(salonId) {
|
|
24101
|
-
|
|
24102
|
-
|
|
24103
|
-
|
|
24104
|
-
|
|
24105
|
-
|
|
24106
|
-
|
|
24107
|
-
|
|
24108
|
-
|
|
24101
|
+
if (salonId) {
|
|
24102
|
+
const credentials = {
|
|
24103
|
+
customerCode: window.atob('U0s5MDE3MzI4MQ=='),
|
|
24104
|
+
username: window.atob('TUFHNDM3NTgyNjky'),
|
|
24105
|
+
password: window.atob('eV41T3htYlNuUDdUaDc='),
|
|
24106
|
+
processorName: window.atob('VFNZUyAtIFByb2R1Y3Rpb24='),
|
|
24107
|
+
token: window.atob('V0VjeU5qZ3hORE01TVM5TlFVYzFOVFUyT1RVeE9ETTZXVFIwUkVGYVJpUT0='),
|
|
24108
|
+
};
|
|
24109
|
+
debugger;
|
|
24110
|
+
return Promise.resolve(credentials);
|
|
24111
|
+
}
|
|
24112
|
+
return Promise.resolve({});
|
|
24109
24113
|
}
|
|
24110
24114
|
magensaProcessToken(salonId, options) {
|
|
24111
24115
|
const url = `${apiV2Prefix}/magensa/${salonId}/process-token`;
|
|
@@ -24098,14 +24098,17 @@ class HttpService {
|
|
|
24098
24098
|
.catch(() => ({}));
|
|
24099
24099
|
}
|
|
24100
24100
|
fetchMagensaCredentials(salonId) {
|
|
24101
|
-
|
|
24102
|
-
|
|
24103
|
-
|
|
24104
|
-
|
|
24105
|
-
|
|
24106
|
-
|
|
24107
|
-
|
|
24108
|
-
|
|
24101
|
+
if (salonId) {
|
|
24102
|
+
const credentials = {
|
|
24103
|
+
customerCode: window.atob('U0s5MDE3MzI4MQ=='),
|
|
24104
|
+
username: window.atob('TUFHNDM3NTgyNjky'),
|
|
24105
|
+
password: window.atob('eV41T3htYlNuUDdUaDc='),
|
|
24106
|
+
processorName: window.atob('VFNZUyAtIFByb2R1Y3Rpb24='),
|
|
24107
|
+
token: window.atob('V0VjeU5qZ3hORE01TVM5TlFVYzFOVFUyT1RVeE9ETTZXVFIwUkVGYVJpUT0='),
|
|
24108
|
+
};
|
|
24109
|
+
return Promise.resolve(credentials);
|
|
24110
|
+
}
|
|
24111
|
+
return Promise.resolve({});
|
|
24109
24112
|
}
|
|
24110
24113
|
magensaProcessToken(salonId, options) {
|
|
24111
24114
|
const url = `${apiV2Prefix}/magensa/${salonId}/process-token`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-888e99e3.js';
|
|
2
|
-
import { d as dayjs_min, H as HttpService,
|
|
2
|
+
import { d as dayjs_min, H as HttpService, k as isVideoMedia, e as getSalonImage, h as shortDateYearFormat } from './services-2993bf2a.js';
|
|
3
3
|
import { r as relativeTime } from './relativeTime-15477f02.js';
|
|
4
4
|
import { C as Colors } from './colors-ea36347a.js';
|
|
5
5
|
import './_commonjsHelpers-9bc404fc.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-888e99e3.js';
|
|
2
|
-
import { H as HttpService, g as get_1 } from './services-
|
|
2
|
+
import { H as HttpService, g as get_1 } from './services-2993bf2a.js';
|
|
3
3
|
import { C as Colors } from './colors-ea36347a.js';
|
|
4
4
|
import './_commonjsHelpers-9bc404fc.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-888e99e3.js';
|
|
2
|
-
import { H as HttpService, g as get_1 } from './services-
|
|
2
|
+
import { H as HttpService, g as get_1 } from './services-2993bf2a.js';
|
|
3
3
|
import { C as Colors } from './colors-ea36347a.js';
|
|
4
4
|
import './_commonjsHelpers-9bc404fc.js';
|
|
5
5
|
|
|
@@ -10,6 +10,7 @@ declare enum FormStep {
|
|
|
10
10
|
PaymentSucceed = "Payment Succeed"
|
|
11
11
|
}
|
|
12
12
|
export declare class BuyGiftcardForm {
|
|
13
|
+
trackingEvents: any[];
|
|
13
14
|
deliveryInput?: HTMLInputElement;
|
|
14
15
|
deliveryReenterInput?: HTMLInputElement;
|
|
15
16
|
salonId: string;
|
|
@@ -35,7 +36,9 @@ export declare class BuyGiftcardForm {
|
|
|
35
36
|
isInvalidPhones: boolean;
|
|
36
37
|
selectedStyleId: number;
|
|
37
38
|
isDeliveryDoneVisible: boolean;
|
|
39
|
+
isTermsAccepted: boolean;
|
|
38
40
|
componentDidLoad(): Promise<void>;
|
|
41
|
+
private saveTrackingData;
|
|
39
42
|
private fetchMagensaCredentials;
|
|
40
43
|
private fetchSalonInfo;
|
|
41
44
|
private fetchGiftCardSettings;
|
|
@@ -54,6 +57,7 @@ export declare class BuyGiftcardForm {
|
|
|
54
57
|
private renderPaymentForm;
|
|
55
58
|
private renderSalonInfo;
|
|
56
59
|
private renderSkeletons;
|
|
60
|
+
private renderContent;
|
|
57
61
|
render(): any;
|
|
58
62
|
}
|
|
59
63
|
export {};
|
|
@@ -129,21 +129,13 @@ declare class HttpService {
|
|
|
129
129
|
onBuyGiftCard(salonId: number, options: any): Promise<import("axios").AxiosResponse<any>>;
|
|
130
130
|
fetchGiftCardSettings(salonId: any): Promise<any>;
|
|
131
131
|
fetchSalonClientInfo(salonId: any, mobilePhone: any): Promise<{} | {}>;
|
|
132
|
-
fetchMagensaCredentials(salonId: any): Promise<{
|
|
133
|
-
customerCode: string;
|
|
134
|
-
username: string;
|
|
135
|
-
password: string;
|
|
136
|
-
processorName: string;
|
|
137
|
-
token: string;
|
|
138
|
-
} | {
|
|
139
|
-
customerCode?: undefined;
|
|
140
|
-
username?: undefined;
|
|
141
|
-
password?: undefined;
|
|
142
|
-
processorName?: undefined;
|
|
143
|
-
token?: undefined;
|
|
144
|
-
}>;
|
|
132
|
+
fetchMagensaCredentials(salonId: any): Promise<{}>;
|
|
145
133
|
magensaProcessToken(salonId: any, options: any): Promise<any>;
|
|
146
134
|
magensaConfirmTransaction(options: any): Promise<any>;
|
|
135
|
+
private fetchAWSPresigned;
|
|
136
|
+
private uploadFileToAWS;
|
|
137
|
+
uploadFile(file: any, accessToken: any): Promise<string>;
|
|
138
|
+
log(options: any, accessToken: any): Promise<import("axios").AxiosResponse<any>>;
|
|
147
139
|
}
|
|
148
140
|
declare const _default: () => HttpService;
|
|
149
141
|
export default _default;
|