skyflow-js 1.34.4-beta.1 → 1.35.0
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/sdkNodeBuild/index.js +1 -1
- package/dist/sdkNodeBuild/index.js.gz +0 -0
- package/package.json +1 -1
- package/types/core/constants.d.ts +0 -49
- package/types/core/external/common/iframe.d.ts +1 -1
- package/types/core/internal/iframe-form/index.d.ts +1 -0
- package/types/core/internal/skyflow-frame/skyflow-frame-controller.d.ts +0 -1
- package/types/utils/common/index.d.ts +0 -25
- package/types/utils/helpers/index.d.ts +1 -1
- package/types/utils/logs.d.ts +0 -3
- package/types/metrics/index.d.ts +0 -7
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export declare const SESSION_ID = "session_id";
|
|
2
1
|
export declare const SKY_METADATA_HEADER = "sky-metadata";
|
|
3
2
|
export declare const SDK_VERSION = "sdkVersion";
|
|
4
3
|
export declare const COLLECT_FRAME_CONTROLLER = "collect_controller";
|
|
@@ -6,53 +5,6 @@ export declare const REVEAL_FRAME_CONTROLLER = "reveal_controller";
|
|
|
6
5
|
export declare const SKYFLOW_FRAME_CONTROLLER = "skyflow_controller";
|
|
7
6
|
export declare const FRAME_REVEAL = "reveal";
|
|
8
7
|
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
|
-
};
|
|
56
8
|
export declare const PUREJS_TYPES: {
|
|
57
9
|
INSERT: string;
|
|
58
10
|
DETOKENIZE: string;
|
|
@@ -101,7 +53,6 @@ export declare const ELEMENT_EVENTS_TO_IFRAME: {
|
|
|
101
53
|
COMPOSABLE_UPDATE_OPTIONS: string;
|
|
102
54
|
RENDER_FILE_RESPONSE_READY: string;
|
|
103
55
|
RENDER_FILE_REQUEST: string;
|
|
104
|
-
PUSH_EVENT: string;
|
|
105
56
|
};
|
|
106
57
|
export declare const REVEAL_ELEMENT_OPTIONS_TYPES: {
|
|
107
58
|
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
|
|
7
|
+
mount: (domElement: any) => void;
|
|
8
8
|
setIframeHeight: (height: any) => void;
|
|
9
9
|
unmount: () => void;
|
|
10
10
|
}
|
|
@@ -30,6 +30,7 @@ export declare class IFrameFormElement extends EventEmitter {
|
|
|
30
30
|
skyflowID?: string;
|
|
31
31
|
containerType: string;
|
|
32
32
|
cardType: string;
|
|
33
|
+
preserveFileName: boolean;
|
|
33
34
|
constructor(name: string, label: string, metaData: any, context: Context, skyflowID?: string);
|
|
34
35
|
onFocusChange: (focus: boolean) => void;
|
|
35
36
|
changeFocus: (focus: boolean) => void;
|
|
@@ -5,6 +5,5 @@ 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>;
|
|
9
8
|
}
|
|
10
9
|
export default SkyflowFrameController;
|
|
@@ -123,28 +123,3 @@ 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,5 +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
|
|
52
|
+
export declare const generateUploadFileName: (fileName: string) => string;
|
|
53
53
|
export {};
|
package/types/utils/logs.d.ts
CHANGED
|
@@ -47,9 +47,6 @@ 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;
|
|
53
50
|
LISTEN_COLLECT_FRAME_READY: string;
|
|
54
51
|
EMIT_COLLECT_ELEMENT_FRAME_READY: string;
|
|
55
52
|
ENTERED_COLLECT_FRAME_READY_CB: string;
|
package/types/metrics/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
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;
|