favesalon-embed 1.0.4 → 1.0.6
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/custom-elements/index.d.ts +42 -0
- package/dist/{cjs/_commonjsHelpers-5cfcba41.js → favesalon-embed/_commonjsHelpers-a4f66ccd.js} +14 -6
- package/dist/favesalon-embed/activate-form.entry.js +70 -0
- package/dist/favesalon-embed/app-globals-74127f4b.js +7 -0
- package/dist/favesalon-embed/app-globals-f954a22f.js +7 -0
- package/dist/favesalon-embed/change-password-form.entry.js +81 -0
- package/dist/favesalon-embed/chat-box.entry.js +55 -0
- package/dist/{esm → favesalon-embed}/chat-button.entry.js +36 -13
- package/dist/favesalon-embed/chat-form.entry.js +39 -0
- package/dist/favesalon-embed/chat-messages.entry.js +71 -0
- package/dist/favesalon-embed/chat-rooms.entry.js +111 -0
- package/dist/favesalon-embed/css-shim-b7d3d95f.js +4 -0
- package/dist/favesalon-embed/dom-64053c71.js +73 -0
- package/dist/favesalon-embed/favesalon-embed.css +114 -1
- package/dist/favesalon-embed/favesalon-embed.esm.js +148 -1
- package/dist/{esm → favesalon-embed}/google-map.entry.js +1 -1
- package/dist/{esm/index-a1c7583c.js → favesalon-embed/index-00b83e1c.js} +425 -15
- package/dist/favesalon-embed/index-888e99e3.js +3371 -0
- package/dist/favesalon-embed/index-a229b3b5.js +3371 -0
- package/dist/favesalon-embed/index.esm.js +1 -0
- package/dist/{esm/chat-box_5.entry.js → favesalon-embed/lodash-d5526b38.js} +27 -243
- package/dist/favesalon-embed/login-form.entry.js +67 -0
- package/dist/{cjs/chat-button.cjs.entry.js → favesalon-embed/notify-sounds.entry.js} +20 -44
- package/dist/favesalon-embed/register-form.entry.js +88 -0
- package/dist/favesalon-embed/relativeTime-268e64b0.js +7 -0
- package/dist/favesalon-embed/reset-password-form.entry.js +47 -0
- package/dist/{esm → favesalon-embed}/salon-booking-modal.entry.js +1 -1
- package/dist/{esm → favesalon-embed}/salon-booking.entry.js +4 -4
- package/dist/{esm → favesalon-embed}/salon-gift-card-modal.entry.js +1 -1
- package/dist/{esm → favesalon-embed}/salon-gift-card.entry.js +4 -4
- package/dist/{esm → favesalon-embed}/salon-info.entry.js +3 -3
- package/dist/{esm → favesalon-embed}/salon-latest-reviews.entry.js +22 -6
- package/dist/{collection/components/salon-latest-styles/index.js → favesalon-embed/salon-latest-styles.entry.js} +27 -105
- package/dist/{collection/components/salon-locations/index.js → favesalon-embed/salon-locations.entry.js} +15 -95
- package/dist/{esm → favesalon-embed}/salon-lookbook.entry.js +18 -6
- package/dist/{esm → favesalon-embed}/salon-ranking.entry.js +1 -1
- package/dist/{esm → favesalon-embed}/salon-reviews.entry.js +20 -6
- package/dist/{collection/components/salon-schedules/index.js → favesalon-embed/salon-schedules.entry.js} +14 -95
- package/dist/{esm → favesalon-embed}/salon-services.entry.js +25 -13
- package/dist/{esm → favesalon-embed}/salon-stylists.entry.js +3 -3
- package/dist/{esm/services-257442e2.js → favesalon-embed/services-5a4c43a6.js} +2608 -188
- package/dist/{cjs/services-d1bdf299.js → favesalon-embed/services-d71be591.js} +2616 -191
- package/dist/favesalon-embed/shadow-css-98135883.js +387 -0
- package/dist/{esm → favesalon-embed}/style-detail.entry.js +29 -11
- package/dist/favesalon-embed/user-avatar.entry.js +52 -0
- package/dist/favesalon-embed/user-form.entry.js +44 -0
- package/dist/{collection/utils/utils.js → favesalon-embed/utils-fd30fb29.js} +14 -5
- package/dist/types/components/activate-form/activate-form.d.ts +12 -0
- package/dist/types/components/activate-form/test/activate-form.spec.d.ts +1 -0
- package/dist/types/components/change-password-form/change-password-form.d.ts +12 -0
- package/dist/types/components/chat-box/index.d.ts +1 -0
- package/dist/types/components/chat-button/index.d.ts +6 -2
- package/dist/types/components/chat-button/notify-sounds.d.ts +5 -0
- package/dist/types/components/chat-rooms/index.d.ts +6 -0
- package/dist/types/components/login-form/login-form.d.ts +10 -0
- package/dist/types/components/register-form/register-form.d.ts +13 -0
- package/dist/types/components/reset-password-form/reset-password-form.d.ts +9 -0
- package/dist/types/components/user-form/user-form.d.ts +7 -0
- package/dist/types/components.d.ts +127 -2
- package/dist/types/services/services.d.ts +17 -0
- package/dist/types/types/chat.d.ts +1 -0
- package/dist/types/types/user.d.ts +16 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/dist/types/utils/utils.spec.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/chat-box_5.cjs.entry.js +0 -17439
- package/dist/cjs/colors-38421769.js +0 -69
- package/dist/cjs/favesalon-embed.cjs.js +0 -23
- package/dist/cjs/google-map.cjs.entry.js +0 -52
- package/dist/cjs/index-7f190886.js +0 -4396
- package/dist/cjs/index-dd8176c4.js +0 -1531
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -22
- package/dist/cjs/relativeTime-3721080d.js +0 -9
- package/dist/cjs/salon-booking-modal.cjs.entry.js +0 -30
- package/dist/cjs/salon-booking.cjs.entry.js +0 -51
- package/dist/cjs/salon-gift-card-modal.cjs.entry.js +0 -29
- package/dist/cjs/salon-gift-card.cjs.entry.js +0 -51
- package/dist/cjs/salon-info.cjs.entry.js +0 -33
- package/dist/cjs/salon-latest-reviews.cjs.entry.js +0 -97
- package/dist/cjs/salon-latest-styles_3.cjs.entry.js +0 -241
- package/dist/cjs/salon-lookbook.cjs.entry.js +0 -222
- package/dist/cjs/salon-ranking.cjs.entry.js +0 -60
- package/dist/cjs/salon-reviews.cjs.entry.js +0 -193
- package/dist/cjs/salon-services.cjs.entry.js +0 -81
- package/dist/cjs/salon-stylists.cjs.entry.js +0 -118
- package/dist/cjs/style-detail.cjs.entry.js +0 -312
- package/dist/cjs/utils-c5a33b3c.js +0 -23
- package/dist/collection/collection-manifest.json +0 -33
- package/dist/collection/components/chat-box/index.css +0 -105
- package/dist/collection/components/chat-box/index.js +0 -138
- package/dist/collection/components/chat-button/index.css +0 -101
- package/dist/collection/components/chat-button/index.js +0 -155
- package/dist/collection/components/chat-form/index.css +0 -40
- package/dist/collection/components/chat-form/index.js +0 -79
- package/dist/collection/components/chat-messages/index.css +0 -48
- package/dist/collection/components/chat-messages/index.js +0 -142
- package/dist/collection/components/chat-rooms/index.css +0 -102
- package/dist/collection/components/chat-rooms/index.js +0 -157
- package/dist/collection/components/google-map/assets/map--placeholder.jpeg +0 -0
- package/dist/collection/components/google-map/index.css +0 -5
- package/dist/collection/components/google-map/index.js +0 -90
- package/dist/collection/components/salon-booking/index.css +0 -30
- package/dist/collection/components/salon-booking/index.js +0 -126
- package/dist/collection/components/salon-booking/salon-booking-modal.js +0 -92
- package/dist/collection/components/salon-gift-card/index.css +0 -30
- package/dist/collection/components/salon-gift-card/index.js +0 -126
- package/dist/collection/components/salon-gift-card/salon-gift-card-modal.js +0 -73
- package/dist/collection/components/salon-info/index.css +0 -1
- package/dist/collection/components/salon-info/index.js +0 -77
- package/dist/collection/components/salon-latest-reviews/index.css +0 -11
- package/dist/collection/components/salon-latest-reviews/index.js +0 -163
- package/dist/collection/components/salon-latest-styles/index.css +0 -12
- package/dist/collection/components/salon-locations/index.css +0 -24
- package/dist/collection/components/salon-lookbook/index.css +0 -15
- package/dist/collection/components/salon-lookbook/index.js +0 -368
- package/dist/collection/components/salon-ranking/index.css +0 -3
- package/dist/collection/components/salon-ranking/index.js +0 -117
- package/dist/collection/components/salon-reviews/index.css +0 -18
- package/dist/collection/components/salon-reviews/index.js +0 -249
- package/dist/collection/components/salon-schedules/index.css +0 -18
- package/dist/collection/components/salon-services/index.css +0 -1
- package/dist/collection/components/salon-services/index.js +0 -146
- package/dist/collection/components/salon-stylists/index.css +0 -43
- package/dist/collection/components/salon-stylists/index.js +0 -184
- package/dist/collection/components/style-detail/index.css +0 -76
- package/dist/collection/components/style-detail/index.js +0 -386
- package/dist/collection/components/user-avatar/index.css +0 -0
- package/dist/collection/components/user-avatar/index.js +0 -159
- package/dist/collection/constants/colors.js +0 -65
- package/dist/collection/global/global.js +0 -0
- package/dist/collection/mocks/users.js +0 -10
- package/dist/collection/services/services.js +0 -295
- package/dist/collection/types/chat.js +0 -23
- package/dist/collection/types/common.js +0 -11
- package/dist/collection/types/review.js +0 -39
- package/dist/collection/types/salon.js +0 -58
- package/dist/collection/types/service.js +0 -24
- package/dist/collection/types/style.js +0 -128
- package/dist/collection/types/stylist.js +0 -30
- package/dist/collection/types/user.js +0 -10
- package/dist/custom-elements/index.js +0 -44974
- package/dist/esm/_commonjsHelpers-66ac50f5.js +0 -32
- package/dist/esm/favesalon-embed.js +0 -18
- package/dist/esm/index-0494771f.js +0 -1504
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -18
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/relativeTime-baa50aa2.js +0 -7
- package/dist/esm/salon-latest-styles_3.entry.js +0 -235
- package/dist/esm/utils-e97485e0.js +0 -19
- package/dist/favesalon-embed/p-05a1c88a.entry.js +0 -1
- package/dist/favesalon-embed/p-0acf0447.entry.js +0 -1
- package/dist/favesalon-embed/p-0bc4f624.js +0 -1
- package/dist/favesalon-embed/p-1af1515f.entry.js +0 -1
- package/dist/favesalon-embed/p-1cba5fc9.entry.js +0 -1
- package/dist/favesalon-embed/p-39a4ef15.entry.js +0 -1
- package/dist/favesalon-embed/p-3e2cb05b.entry.js +0 -1
- package/dist/favesalon-embed/p-47e646f8.js +0 -1
- package/dist/favesalon-embed/p-487b311f.entry.js +0 -1
- package/dist/favesalon-embed/p-55387c2f.entry.js +0 -1
- package/dist/favesalon-embed/p-566f05b4.entry.js +0 -1
- package/dist/favesalon-embed/p-862a0de0.entry.js +0 -1
- package/dist/favesalon-embed/p-9fe0cbeb.js +0 -2
- package/dist/favesalon-embed/p-a33331cc.js +0 -1
- package/dist/favesalon-embed/p-aeeb7b5f.entry.js +0 -1
- package/dist/favesalon-embed/p-b08e5b54.js +0 -6
- package/dist/favesalon-embed/p-b5cca5fc.entry.js +0 -1
- package/dist/favesalon-embed/p-c7fb7af5.js +0 -1580
- package/dist/favesalon-embed/p-ccab56d8.js +0 -1
- package/dist/favesalon-embed/p-d6e13053.entry.js +0 -1
- package/dist/favesalon-embed/p-dee42d34.entry.js +0 -1
- package/dist/favesalon-embed/p-e661ca1d.entry.js +0 -1
- package/dist/favesalon-embed/p-eeceab9c.entry.js +0 -1
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- /package/dist/{esm → favesalon-embed}/colors-ea36347a.js +0 -0
- /package/dist/{collection/index.js → types/components/activate-form/test/activate-form.e2e.d.ts} +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { User } from '../../types/user';
|
|
2
|
+
export declare class RegisterForm {
|
|
3
|
+
onSuccess: (user: User) => void;
|
|
4
|
+
isSubmitting: boolean;
|
|
5
|
+
error: string;
|
|
6
|
+
firstName: string;
|
|
7
|
+
lastName: string;
|
|
8
|
+
email: string;
|
|
9
|
+
phone: string;
|
|
10
|
+
password: string;
|
|
11
|
+
onSubmit(evt: any): Promise<void>;
|
|
12
|
+
render(): any;
|
|
13
|
+
}
|
|
@@ -8,18 +8,33 @@ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
|
8
8
|
import { User } from "./types/user";
|
|
9
9
|
import { ChatMessage, ChatRoom } from "./types/chat";
|
|
10
10
|
export namespace Components {
|
|
11
|
+
interface ActivateForm {
|
|
12
|
+
"onSubmit": (evt: any) => Promise<void>;
|
|
13
|
+
"onSuccess": (user: User) => void;
|
|
14
|
+
"password": string;
|
|
15
|
+
"resendCode": (evt: any) => Promise<void>;
|
|
16
|
+
"username": string;
|
|
17
|
+
}
|
|
18
|
+
interface ChangePasswordForm {
|
|
19
|
+
"onSubmit": (evt: any) => Promise<void>;
|
|
20
|
+
"onSuccess": (user: User) => void;
|
|
21
|
+
"resendCode": (evt: any) => Promise<void>;
|
|
22
|
+
"username": string;
|
|
23
|
+
}
|
|
11
24
|
interface ChatBox {
|
|
12
25
|
"accessToken": string;
|
|
13
26
|
"fetchData": () => Promise<void>;
|
|
14
27
|
"primaryColor": string;
|
|
28
|
+
"salonId": string;
|
|
15
29
|
"senderId": string;
|
|
16
30
|
}
|
|
17
31
|
interface ChatButton {
|
|
18
|
-
"accessToken"
|
|
32
|
+
"accessToken"?: string;
|
|
19
33
|
"fetchData": () => Promise<void>;
|
|
34
|
+
"onVerificationSuccess": (user: User) => Promise<void>;
|
|
20
35
|
"primaryColor": string;
|
|
21
36
|
"receiverId": string;
|
|
22
|
-
"senderId"
|
|
37
|
+
"senderId"?: string;
|
|
23
38
|
}
|
|
24
39
|
interface ChatForm {
|
|
25
40
|
"chatRoomId": string;
|
|
@@ -32,15 +47,32 @@ export namespace Components {
|
|
|
32
47
|
"sender": User;
|
|
33
48
|
}
|
|
34
49
|
interface ChatRooms {
|
|
50
|
+
"accessToken": string;
|
|
35
51
|
"activeRoom": ChatRoom;
|
|
36
52
|
"chatRooms": ChatRoom[];
|
|
53
|
+
"clients": User[];
|
|
37
54
|
"onClickRoom": (chatRoom: ChatRoom) => void;
|
|
55
|
+
"salonId": number;
|
|
38
56
|
"senderId": number;
|
|
39
57
|
}
|
|
40
58
|
interface GoogleMap {
|
|
41
59
|
"locationAddress"?: string;
|
|
42
60
|
"locationName"?: string;
|
|
43
61
|
}
|
|
62
|
+
interface LoginForm {
|
|
63
|
+
"onSubmit": (evt: any) => Promise<void>;
|
|
64
|
+
"onSuccess": (user: User) => void;
|
|
65
|
+
}
|
|
66
|
+
interface NotifySounds {
|
|
67
|
+
}
|
|
68
|
+
interface RegisterForm {
|
|
69
|
+
"onSubmit": (evt: any) => Promise<void>;
|
|
70
|
+
"onSuccess": (user: User) => void;
|
|
71
|
+
}
|
|
72
|
+
interface ResetPasswordForm {
|
|
73
|
+
"onSubmit": (evt: any) => Promise<void>;
|
|
74
|
+
"onSuccess": (user: User) => void;
|
|
75
|
+
}
|
|
44
76
|
interface SalonBooking {
|
|
45
77
|
"buttonClass": string;
|
|
46
78
|
"buttonText": string;
|
|
@@ -130,8 +162,23 @@ export namespace Components {
|
|
|
130
162
|
"shortName": string;
|
|
131
163
|
"size": number;
|
|
132
164
|
}
|
|
165
|
+
interface UserForm {
|
|
166
|
+
"onSuccess": (user: User) => void;
|
|
167
|
+
}
|
|
133
168
|
}
|
|
134
169
|
declare global {
|
|
170
|
+
interface HTMLActivateFormElement extends Components.ActivateForm, HTMLStencilElement {
|
|
171
|
+
}
|
|
172
|
+
var HTMLActivateFormElement: {
|
|
173
|
+
prototype: HTMLActivateFormElement;
|
|
174
|
+
new (): HTMLActivateFormElement;
|
|
175
|
+
};
|
|
176
|
+
interface HTMLChangePasswordFormElement extends Components.ChangePasswordForm, HTMLStencilElement {
|
|
177
|
+
}
|
|
178
|
+
var HTMLChangePasswordFormElement: {
|
|
179
|
+
prototype: HTMLChangePasswordFormElement;
|
|
180
|
+
new (): HTMLChangePasswordFormElement;
|
|
181
|
+
};
|
|
135
182
|
interface HTMLChatBoxElement extends Components.ChatBox, HTMLStencilElement {
|
|
136
183
|
}
|
|
137
184
|
var HTMLChatBoxElement: {
|
|
@@ -168,6 +215,30 @@ declare global {
|
|
|
168
215
|
prototype: HTMLGoogleMapElement;
|
|
169
216
|
new (): HTMLGoogleMapElement;
|
|
170
217
|
};
|
|
218
|
+
interface HTMLLoginFormElement extends Components.LoginForm, HTMLStencilElement {
|
|
219
|
+
}
|
|
220
|
+
var HTMLLoginFormElement: {
|
|
221
|
+
prototype: HTMLLoginFormElement;
|
|
222
|
+
new (): HTMLLoginFormElement;
|
|
223
|
+
};
|
|
224
|
+
interface HTMLNotifySoundsElement extends Components.NotifySounds, HTMLStencilElement {
|
|
225
|
+
}
|
|
226
|
+
var HTMLNotifySoundsElement: {
|
|
227
|
+
prototype: HTMLNotifySoundsElement;
|
|
228
|
+
new (): HTMLNotifySoundsElement;
|
|
229
|
+
};
|
|
230
|
+
interface HTMLRegisterFormElement extends Components.RegisterForm, HTMLStencilElement {
|
|
231
|
+
}
|
|
232
|
+
var HTMLRegisterFormElement: {
|
|
233
|
+
prototype: HTMLRegisterFormElement;
|
|
234
|
+
new (): HTMLRegisterFormElement;
|
|
235
|
+
};
|
|
236
|
+
interface HTMLResetPasswordFormElement extends Components.ResetPasswordForm, HTMLStencilElement {
|
|
237
|
+
}
|
|
238
|
+
var HTMLResetPasswordFormElement: {
|
|
239
|
+
prototype: HTMLResetPasswordFormElement;
|
|
240
|
+
new (): HTMLResetPasswordFormElement;
|
|
241
|
+
};
|
|
171
242
|
interface HTMLSalonBookingElement extends Components.SalonBooking, HTMLStencilElement {
|
|
172
243
|
}
|
|
173
244
|
var HTMLSalonBookingElement: {
|
|
@@ -264,13 +335,25 @@ declare global {
|
|
|
264
335
|
prototype: HTMLUserAvatarElement;
|
|
265
336
|
new (): HTMLUserAvatarElement;
|
|
266
337
|
};
|
|
338
|
+
interface HTMLUserFormElement extends Components.UserForm, HTMLStencilElement {
|
|
339
|
+
}
|
|
340
|
+
var HTMLUserFormElement: {
|
|
341
|
+
prototype: HTMLUserFormElement;
|
|
342
|
+
new (): HTMLUserFormElement;
|
|
343
|
+
};
|
|
267
344
|
interface HTMLElementTagNameMap {
|
|
345
|
+
"activate-form": HTMLActivateFormElement;
|
|
346
|
+
"change-password-form": HTMLChangePasswordFormElement;
|
|
268
347
|
"chat-box": HTMLChatBoxElement;
|
|
269
348
|
"chat-button": HTMLChatButtonElement;
|
|
270
349
|
"chat-form": HTMLChatFormElement;
|
|
271
350
|
"chat-messages": HTMLChatMessagesElement;
|
|
272
351
|
"chat-rooms": HTMLChatRoomsElement;
|
|
273
352
|
"google-map": HTMLGoogleMapElement;
|
|
353
|
+
"login-form": HTMLLoginFormElement;
|
|
354
|
+
"notify-sounds": HTMLNotifySoundsElement;
|
|
355
|
+
"register-form": HTMLRegisterFormElement;
|
|
356
|
+
"reset-password-form": HTMLResetPasswordFormElement;
|
|
274
357
|
"salon-booking": HTMLSalonBookingElement;
|
|
275
358
|
"salon-booking-modal": HTMLSalonBookingModalElement;
|
|
276
359
|
"salon-gift-card": HTMLSalonGiftCardElement;
|
|
@@ -287,12 +370,23 @@ declare global {
|
|
|
287
370
|
"salon-stylists": HTMLSalonStylistsElement;
|
|
288
371
|
"style-detail": HTMLStyleDetailElement;
|
|
289
372
|
"user-avatar": HTMLUserAvatarElement;
|
|
373
|
+
"user-form": HTMLUserFormElement;
|
|
290
374
|
}
|
|
291
375
|
}
|
|
292
376
|
declare namespace LocalJSX {
|
|
377
|
+
interface ActivateForm {
|
|
378
|
+
"onSuccess"?: (user: User) => void;
|
|
379
|
+
"password"?: string;
|
|
380
|
+
"username"?: string;
|
|
381
|
+
}
|
|
382
|
+
interface ChangePasswordForm {
|
|
383
|
+
"onSuccess"?: (user: User) => void;
|
|
384
|
+
"username"?: string;
|
|
385
|
+
}
|
|
293
386
|
interface ChatBox {
|
|
294
387
|
"accessToken"?: string;
|
|
295
388
|
"primaryColor"?: string;
|
|
389
|
+
"salonId"?: string;
|
|
296
390
|
"senderId"?: string;
|
|
297
391
|
}
|
|
298
392
|
interface ChatButton {
|
|
@@ -312,15 +406,29 @@ declare namespace LocalJSX {
|
|
|
312
406
|
"sender"?: User;
|
|
313
407
|
}
|
|
314
408
|
interface ChatRooms {
|
|
409
|
+
"accessToken"?: string;
|
|
315
410
|
"activeRoom"?: ChatRoom;
|
|
316
411
|
"chatRooms"?: ChatRoom[];
|
|
412
|
+
"clients"?: User[];
|
|
317
413
|
"onClickRoom"?: (chatRoom: ChatRoom) => void;
|
|
414
|
+
"salonId"?: number;
|
|
318
415
|
"senderId"?: number;
|
|
319
416
|
}
|
|
320
417
|
interface GoogleMap {
|
|
321
418
|
"locationAddress"?: string;
|
|
322
419
|
"locationName"?: string;
|
|
323
420
|
}
|
|
421
|
+
interface LoginForm {
|
|
422
|
+
"onSuccess"?: (user: User) => void;
|
|
423
|
+
}
|
|
424
|
+
interface NotifySounds {
|
|
425
|
+
}
|
|
426
|
+
interface RegisterForm {
|
|
427
|
+
"onSuccess"?: (user: User) => void;
|
|
428
|
+
}
|
|
429
|
+
interface ResetPasswordForm {
|
|
430
|
+
"onSuccess"?: (user: User) => void;
|
|
431
|
+
}
|
|
324
432
|
interface SalonBooking {
|
|
325
433
|
"buttonClass"?: string;
|
|
326
434
|
"buttonText"?: string;
|
|
@@ -397,13 +505,22 @@ declare namespace LocalJSX {
|
|
|
397
505
|
"shortName"?: string;
|
|
398
506
|
"size"?: number;
|
|
399
507
|
}
|
|
508
|
+
interface UserForm {
|
|
509
|
+
"onSuccess"?: (user: User) => void;
|
|
510
|
+
}
|
|
400
511
|
interface IntrinsicElements {
|
|
512
|
+
"activate-form": ActivateForm;
|
|
513
|
+
"change-password-form": ChangePasswordForm;
|
|
401
514
|
"chat-box": ChatBox;
|
|
402
515
|
"chat-button": ChatButton;
|
|
403
516
|
"chat-form": ChatForm;
|
|
404
517
|
"chat-messages": ChatMessages;
|
|
405
518
|
"chat-rooms": ChatRooms;
|
|
406
519
|
"google-map": GoogleMap;
|
|
520
|
+
"login-form": LoginForm;
|
|
521
|
+
"notify-sounds": NotifySounds;
|
|
522
|
+
"register-form": RegisterForm;
|
|
523
|
+
"reset-password-form": ResetPasswordForm;
|
|
407
524
|
"salon-booking": SalonBooking;
|
|
408
525
|
"salon-booking-modal": SalonBookingModal;
|
|
409
526
|
"salon-gift-card": SalonGiftCard;
|
|
@@ -420,18 +537,25 @@ declare namespace LocalJSX {
|
|
|
420
537
|
"salon-stylists": SalonStylists;
|
|
421
538
|
"style-detail": StyleDetail;
|
|
422
539
|
"user-avatar": UserAvatar;
|
|
540
|
+
"user-form": UserForm;
|
|
423
541
|
}
|
|
424
542
|
}
|
|
425
543
|
export { LocalJSX as JSX };
|
|
426
544
|
declare module "@stencil/core" {
|
|
427
545
|
export namespace JSX {
|
|
428
546
|
interface IntrinsicElements {
|
|
547
|
+
"activate-form": LocalJSX.ActivateForm & JSXBase.HTMLAttributes<HTMLActivateFormElement>;
|
|
548
|
+
"change-password-form": LocalJSX.ChangePasswordForm & JSXBase.HTMLAttributes<HTMLChangePasswordFormElement>;
|
|
429
549
|
"chat-box": LocalJSX.ChatBox & JSXBase.HTMLAttributes<HTMLChatBoxElement>;
|
|
430
550
|
"chat-button": LocalJSX.ChatButton & JSXBase.HTMLAttributes<HTMLChatButtonElement>;
|
|
431
551
|
"chat-form": LocalJSX.ChatForm & JSXBase.HTMLAttributes<HTMLChatFormElement>;
|
|
432
552
|
"chat-messages": LocalJSX.ChatMessages & JSXBase.HTMLAttributes<HTMLChatMessagesElement>;
|
|
433
553
|
"chat-rooms": LocalJSX.ChatRooms & JSXBase.HTMLAttributes<HTMLChatRoomsElement>;
|
|
434
554
|
"google-map": LocalJSX.GoogleMap & JSXBase.HTMLAttributes<HTMLGoogleMapElement>;
|
|
555
|
+
"login-form": LocalJSX.LoginForm & JSXBase.HTMLAttributes<HTMLLoginFormElement>;
|
|
556
|
+
"notify-sounds": LocalJSX.NotifySounds & JSXBase.HTMLAttributes<HTMLNotifySoundsElement>;
|
|
557
|
+
"register-form": LocalJSX.RegisterForm & JSXBase.HTMLAttributes<HTMLRegisterFormElement>;
|
|
558
|
+
"reset-password-form": LocalJSX.ResetPasswordForm & JSXBase.HTMLAttributes<HTMLResetPasswordFormElement>;
|
|
435
559
|
"salon-booking": LocalJSX.SalonBooking & JSXBase.HTMLAttributes<HTMLSalonBookingElement>;
|
|
436
560
|
"salon-booking-modal": LocalJSX.SalonBookingModal & JSXBase.HTMLAttributes<HTMLSalonBookingModalElement>;
|
|
437
561
|
"salon-gift-card": LocalJSX.SalonGiftCard & JSXBase.HTMLAttributes<HTMLSalonGiftCardElement>;
|
|
@@ -448,6 +572,7 @@ declare module "@stencil/core" {
|
|
|
448
572
|
"salon-stylists": LocalJSX.SalonStylists & JSXBase.HTMLAttributes<HTMLSalonStylistsElement>;
|
|
449
573
|
"style-detail": LocalJSX.StyleDetail & JSXBase.HTMLAttributes<HTMLStyleDetailElement>;
|
|
450
574
|
"user-avatar": LocalJSX.UserAvatar & JSXBase.HTMLAttributes<HTMLUserAvatarElement>;
|
|
575
|
+
"user-form": LocalJSX.UserForm & JSXBase.HTMLAttributes<HTMLUserFormElement>;
|
|
451
576
|
}
|
|
452
577
|
}
|
|
453
578
|
}
|
|
@@ -5,6 +5,23 @@ declare class HttpService {
|
|
|
5
5
|
firebaseDatabase: any;
|
|
6
6
|
firebaseApp: any;
|
|
7
7
|
constructor();
|
|
8
|
+
login(apiUrl: any, options: any): Promise<{
|
|
9
|
+
id: any;
|
|
10
|
+
firstName: any;
|
|
11
|
+
lastName: any;
|
|
12
|
+
fullName: any;
|
|
13
|
+
avatar: any;
|
|
14
|
+
mobilePhone: any;
|
|
15
|
+
accessToken: any;
|
|
16
|
+
email: any;
|
|
17
|
+
password: any;
|
|
18
|
+
}>;
|
|
19
|
+
register(options: any): Promise<import("axios").AxiosResponse<any>>;
|
|
20
|
+
resendActivateCode(email: string): Promise<import("axios").AxiosResponse<never>>;
|
|
21
|
+
activateAccount(email: any, code: any): Promise<import("axios").AxiosResponse<never>>;
|
|
22
|
+
resetPassword(email: string): Promise<import("axios").AxiosResponse<never>>;
|
|
23
|
+
onChangePassword(options: any): Promise<import("axios").AxiosResponse<any>>;
|
|
24
|
+
fetchClients(salonId: number, keyword: string, accessToken: string): Promise<any>;
|
|
8
25
|
fetchStyleDetail(styleId: number): Promise<{
|
|
9
26
|
styleInfo: any;
|
|
10
27
|
similarStyles: any[];
|
|
@@ -4,6 +4,10 @@ export interface User {
|
|
|
4
4
|
firstName: string;
|
|
5
5
|
lastName: string;
|
|
6
6
|
avatar: string;
|
|
7
|
+
email: string;
|
|
8
|
+
mobilePhone: string;
|
|
9
|
+
accessToken: string;
|
|
10
|
+
password: string;
|
|
7
11
|
}
|
|
8
12
|
export declare function createUser(blob: any): {
|
|
9
13
|
id: any;
|
|
@@ -11,4 +15,16 @@ export declare function createUser(blob: any): {
|
|
|
11
15
|
lastName: any;
|
|
12
16
|
fullName: any;
|
|
13
17
|
avatar: any;
|
|
18
|
+
mobilePhone: any;
|
|
19
|
+
accessToken: any;
|
|
20
|
+
email: any;
|
|
21
|
+
password: any;
|
|
22
|
+
};
|
|
23
|
+
export declare function createUserFromChatRoom(blob: any): {
|
|
24
|
+
id: any;
|
|
25
|
+
firstName: any;
|
|
26
|
+
lastName: any;
|
|
27
|
+
fullName: any;
|
|
28
|
+
avatar: any;
|
|
29
|
+
mobilePhone: any;
|
|
14
30
|
};
|
|
@@ -4,3 +4,4 @@ export declare function format(first: string, middle: string, last: string): str
|
|
|
4
4
|
export declare function formatWebsiteUrl(website: string): string;
|
|
5
5
|
export declare function formatFullAddress(salon: Salon): string;
|
|
6
6
|
export declare function getRatingText(): string[];
|
|
7
|
+
export declare function formatPhoneNumber(phone: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|