skyflow-js 1.34.3 → 1.34.4-beta.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.
- package/CHANGELOG.md +5 -0
- package/dist/sdkNodeBuild/index.js +1 -1
- package/dist/sdkNodeBuild/index.js.gz +0 -0
- package/package.json +1 -1
- package/types/core/constants.d.ts +49 -0
- package/types/core/external/common/iframe.d.ts +1 -1
- package/types/core/internal/skyflow-frame/skyflow-frame-controller.d.ts +1 -0
- package/types/metrics/index.d.ts +7 -0
- package/types/utils/common/index.d.ts +25 -0
- package/types/utils/helpers/index.d.ts +1 -0
- package/types/utils/logs.d.ts +3 -0
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export declare const SESSION_ID = "session_id";
|
|
1
2
|
export declare const SKY_METADATA_HEADER = "sky-metadata";
|
|
2
3
|
export declare const SDK_VERSION = "sdkVersion";
|
|
3
4
|
export declare const COLLECT_FRAME_CONTROLLER = "collect_controller";
|
|
@@ -5,6 +6,53 @@ export declare const REVEAL_FRAME_CONTROLLER = "reveal_controller";
|
|
|
5
6
|
export declare const SKYFLOW_FRAME_CONTROLLER = "skyflow_controller";
|
|
6
7
|
export declare const FRAME_REVEAL = "reveal";
|
|
7
8
|
export declare const FRAME_ELEMENT = "element";
|
|
9
|
+
export declare const ELEMENT_TYPES: {
|
|
10
|
+
COLLECT: string;
|
|
11
|
+
REVEAL: string;
|
|
12
|
+
COMPOSE: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const EVENT_TYPES: {
|
|
15
|
+
MOUNTED: string;
|
|
16
|
+
READY: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const STATUS_TYPES: {
|
|
19
|
+
SUCCESS: string;
|
|
20
|
+
INITIALIZED: string;
|
|
21
|
+
PARTIAL_RENDER: string;
|
|
22
|
+
FAILED: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const METRIC_TYPES: {
|
|
25
|
+
ELEMENT_ID: string;
|
|
26
|
+
ELEMENT_TYPE: {
|
|
27
|
+
COLLECT: string;
|
|
28
|
+
REVEAL: string;
|
|
29
|
+
COMPOSE: string;
|
|
30
|
+
};
|
|
31
|
+
ELEMENT_TYPE_KEY: string;
|
|
32
|
+
DIV_ID: string;
|
|
33
|
+
CONTAINER_ID: string;
|
|
34
|
+
CONTAINER_NAME: string;
|
|
35
|
+
SESSION_ID: string;
|
|
36
|
+
VAULT_ID: string;
|
|
37
|
+
VAULT_URL: string;
|
|
38
|
+
EVENTS: {
|
|
39
|
+
MOUNTED: string;
|
|
40
|
+
READY: string;
|
|
41
|
+
};
|
|
42
|
+
EVENTS_KEY: string;
|
|
43
|
+
CREATED_AT: string;
|
|
44
|
+
REGION: string;
|
|
45
|
+
MOUNT_START_TIME: string;
|
|
46
|
+
MOUNT_END_TIME: string;
|
|
47
|
+
ERROR: string;
|
|
48
|
+
LATENCY: string;
|
|
49
|
+
STATUS: {
|
|
50
|
+
SUCCESS: string;
|
|
51
|
+
INITIALIZED: string;
|
|
52
|
+
PARTIAL_RENDER: string;
|
|
53
|
+
FAILED: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
8
56
|
export declare const PUREJS_TYPES: {
|
|
9
57
|
INSERT: string;
|
|
10
58
|
DETOKENIZE: string;
|
|
@@ -53,6 +101,7 @@ export declare const ELEMENT_EVENTS_TO_IFRAME: {
|
|
|
53
101
|
COMPOSABLE_UPDATE_OPTIONS: string;
|
|
54
102
|
RENDER_FILE_RESPONSE_READY: string;
|
|
55
103
|
RENDER_FILE_REQUEST: string;
|
|
104
|
+
PUSH_EVENT: string;
|
|
56
105
|
};
|
|
57
106
|
export declare const REVEAL_ELEMENT_OPTIONS_TYPES: {
|
|
58
107
|
TOKEN: string;
|
|
@@ -4,7 +4,7 @@ export default class IFrame {
|
|
|
4
4
|
iframe: HTMLIFrameElement;
|
|
5
5
|
container?: Element;
|
|
6
6
|
constructor(name: any, metadata: any, containerId: any, logLevel: any);
|
|
7
|
-
mount: (domElement: any) => void;
|
|
7
|
+
mount: (domElement: any, elementId?: string) => void;
|
|
8
8
|
setIframeHeight: (height: any) => void;
|
|
9
9
|
unmount: () => void;
|
|
10
10
|
}
|
|
@@ -5,5 +5,6 @@ declare class SkyflowFrameController {
|
|
|
5
5
|
static init(clientId: any): SkyflowFrameController;
|
|
6
6
|
insertData(records: any, options: any): Promise<unknown>;
|
|
7
7
|
renderFile(data: IRevealRecord, containerId: any, iframeName: any): Promise<unknown>;
|
|
8
|
+
pushEvent(event: any): Promise<unknown>;
|
|
8
9
|
}
|
|
9
10
|
export default SkyflowFrameController;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MeticsObjectType, SharedMeticsObjectType } from '../utils/common';
|
|
2
|
+
export declare const METRIC_OBJECT: SharedMeticsObjectType;
|
|
3
|
+
export declare function initalizeMetricObject(metadata: any, elementId: string): void;
|
|
4
|
+
export declare function updateMetricObjectValue(id: string, key: string, value: any): void;
|
|
5
|
+
export declare function getEventStatus(metricEvent: MeticsObjectType): string;
|
|
6
|
+
export declare function pushEventToMixpanel(elementId: string): void;
|
|
7
|
+
export declare function pushElementEventWithTimeout(elementID: string): void;
|
|
@@ -123,3 +123,28 @@ export interface IDeleteResponseType {
|
|
|
123
123
|
records?: Record<string, string>[];
|
|
124
124
|
errors?: Record<string, any>[];
|
|
125
125
|
}
|
|
126
|
+
export interface MeticsObjectType {
|
|
127
|
+
element_id: string;
|
|
128
|
+
element_type: string[];
|
|
129
|
+
div_id: string;
|
|
130
|
+
container_id: string;
|
|
131
|
+
container_name: string;
|
|
132
|
+
session_id: string;
|
|
133
|
+
vault_id: string;
|
|
134
|
+
vault_url: string;
|
|
135
|
+
events: string[];
|
|
136
|
+
created_at: number;
|
|
137
|
+
region: string;
|
|
138
|
+
mount_start_time?: number;
|
|
139
|
+
mount_end_time?: number;
|
|
140
|
+
error?: string;
|
|
141
|
+
latency?: number;
|
|
142
|
+
status: 'SUCCESS' | 'INITIALIZED' | 'PARTIAL_RENDER' | 'FAILED' | string;
|
|
143
|
+
sdk_name_version: string;
|
|
144
|
+
sdk_client_device_model: string | undefined;
|
|
145
|
+
sdk_client_os_details: string;
|
|
146
|
+
sdk_runtime_details: string;
|
|
147
|
+
}
|
|
148
|
+
export interface SharedMeticsObjectType {
|
|
149
|
+
records: MeticsObjectType[];
|
|
150
|
+
}
|
|
@@ -49,4 +49,5 @@ export declare function getMetaObject(sdkDetails: any, metaData: any, navigator:
|
|
|
49
49
|
sdk_runtime_details: string;
|
|
50
50
|
};
|
|
51
51
|
export declare function checkAndSetForCustomUrl(config: ISkyflow): void;
|
|
52
|
+
export declare function getVaultBeffeURL(vaultURL: string): string;
|
|
52
53
|
export {};
|
package/types/utils/logs.d.ts
CHANGED
|
@@ -47,6 +47,9 @@ declare const logs: {
|
|
|
47
47
|
DELETE_RESOLVED: string;
|
|
48
48
|
EMIT_EVENT: string;
|
|
49
49
|
CAPTURE_EVENT: string;
|
|
50
|
+
METRIC_CAPTURE_EVENT: string;
|
|
51
|
+
UNKNOWN_METRIC_CAPTURE_EVENT: string;
|
|
52
|
+
UNKNOWN_RESPONSE_FROM_METRIC_EVENT: string;
|
|
50
53
|
LISTEN_COLLECT_FRAME_READY: string;
|
|
51
54
|
EMIT_COLLECT_ELEMENT_FRAME_READY: string;
|
|
52
55
|
ENTERED_COLLECT_FRAME_READY_CB: string;
|