@mailbiz/onsite-vtex-vendor 0.10.0 → 0.10.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.
@@ -29,17 +29,32 @@ interface VtexWindow extends OnsiteCoreWindow {
|
|
29
29
|
//#endregion
|
30
30
|
//#region [KO]
|
31
31
|
interface KnockoutStatic {
|
32
|
-
contextFor: (element: HTMLElement) =>
|
32
|
+
contextFor: (element: HTMLElement) => ClientProfileDataContext | undefined;
|
33
33
|
}
|
34
34
|
interface KnockoutObservable<T> {
|
35
35
|
subscribe: (callback: (newValue: T) => void) => {
|
36
36
|
dispose: () => void;
|
37
37
|
};
|
38
38
|
}
|
39
|
-
interface
|
40
|
-
$root:
|
41
|
-
|
42
|
-
|
39
|
+
interface ClientProfileDataContext {
|
40
|
+
$root: ClientProfileDataContextRoot;
|
41
|
+
}
|
42
|
+
interface ClientProfileDataContextRoot {
|
43
|
+
toJSON: () => ClientProfileData;
|
44
|
+
email: KnockoutObservable<string>;
|
45
|
+
firstEmail: KnockoutObservable<string>;
|
46
|
+
firstName: KnockoutObservable<string>;
|
47
|
+
lastName: KnockoutObservable<string>;
|
48
|
+
corporateName: KnockoutObservable<string>;
|
49
|
+
phone: KnockoutObservable<string>;
|
50
|
+
}
|
51
|
+
interface ClientProfileData {
|
52
|
+
email?: string;
|
53
|
+
firstEmail?: string;
|
54
|
+
firstName?: string;
|
55
|
+
lastName?: string;
|
56
|
+
corporateName?: string;
|
57
|
+
phone?: string;
|
43
58
|
}
|
44
59
|
//#endregion
|
45
60
|
//#region [Data Layer]
|