@upscopeio/sdk 1.0.1 → 1.0.3
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/index.d.ts +7 -7
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
type SubmitRating = {
|
|
2
2
|
userSessionRating?: number;
|
|
3
3
|
userAgentRating?: number;
|
|
4
4
|
userAgentFeedback?: string;
|
|
5
5
|
};
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
type CobrowsingSdkConfiguration = {
|
|
8
8
|
jsConfiguration?: boolean;
|
|
9
9
|
uniqueId?: null | string;
|
|
10
10
|
identities?: null | string | string[];
|
|
@@ -105,7 +105,7 @@ export type CobrowsingSdkConfiguration = {
|
|
|
105
105
|
styleSheetContentFromRules: (stylesheet: HTMLLinkElement | HTMLStyleElement) => boolean;
|
|
106
106
|
};
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
type Instruction =
|
|
109
109
|
| ["init", Partial<CobrowsingSdkConfiguration>]
|
|
110
110
|
| ["reset"]
|
|
111
111
|
| ["connect"]
|
|
@@ -125,7 +125,8 @@ export type Instruction =
|
|
|
125
125
|
| ["submitRating", SubmitRating]
|
|
126
126
|
| ["updateConnection", Partial<CobrowsingSdkConfiguration>];
|
|
127
127
|
|
|
128
|
-
|
|
128
|
+
type Upscope = {
|
|
129
|
+
(...args: Instruction): void;
|
|
129
130
|
_config?: CobrowsingSdkConfiguration;
|
|
130
131
|
__defaultConfiguration?: CobrowsingSdkConfiguration;
|
|
131
132
|
__defaultRegion?: string;
|
|
@@ -138,10 +139,9 @@ declare global {
|
|
|
138
139
|
interface Window {
|
|
139
140
|
Upscope: Upscope;
|
|
140
141
|
}
|
|
141
|
-
}
|
|
142
142
|
|
|
143
|
-
declare global {
|
|
144
143
|
function setInterval(callback: (...args: any[]) => void, ms: number, ...args: any[]): number;
|
|
145
144
|
function setTimeout(callback: (...args: any[]) => void, ms: number, ...args: any[]): number;
|
|
146
145
|
}
|
|
147
|
-
|
|
146
|
+
|
|
147
|
+
export {CobrowsingSdkConfiguration, Instruction, Upscope};
|
package/package.json
CHANGED