@grapecity-software/js-collaboration-client 18.2.5 → 19.0.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/dist/index.d.ts +16 -4
- package/dist/index.js +12 -1
- package/package.json +1 -2
package/dist/index.d.ts
CHANGED
|
@@ -42,6 +42,17 @@ export declare class Client {
|
|
|
42
42
|
connect(roomId: string, options?: IConnectOptions): Connection;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
export type LicenseType = 'evaluation' | 'production' | 'invalid';
|
|
46
|
+
|
|
47
|
+
export interface ILicenseValidationResult {
|
|
48
|
+
status: number;
|
|
49
|
+
message?: string;
|
|
50
|
+
type?: LicenseType;
|
|
51
|
+
expiredDate?: string;
|
|
52
|
+
serverKeyType?: LicenseType;
|
|
53
|
+
serverKeyExpiredDate?: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
45
56
|
export interface IConnectionEvents {
|
|
46
57
|
connect: () => void;
|
|
47
58
|
message: (data: MessageData, type: MessageType) => void;
|
|
@@ -50,6 +61,7 @@ export interface IConnectionEvents {
|
|
|
50
61
|
reconnectAttempts: (attempts: number) => void;
|
|
51
62
|
reconnect: (attempts: number) => void;
|
|
52
63
|
reconnectFailed: () => void;
|
|
64
|
+
licenseValidation: (data: ILicenseValidationResult) => void;
|
|
53
65
|
}
|
|
54
66
|
|
|
55
67
|
/**
|
|
@@ -126,10 +138,6 @@ export declare class Connection {
|
|
|
126
138
|
* @param {IConnectionEvents[NAME]} f - The event handler function to remove.
|
|
127
139
|
*/
|
|
128
140
|
off<NAME extends keyof IConnectionEvents>(name: NAME, f: IConnectionEvents[NAME]): void;
|
|
129
|
-
/**
|
|
130
|
-
* Destroys the observable and cleans up resources.
|
|
131
|
-
*/
|
|
132
|
-
destroy(): void;
|
|
133
141
|
|
|
134
142
|
/**
|
|
135
143
|
* Sends a message to the server.
|
|
@@ -141,4 +149,8 @@ export declare class Connection {
|
|
|
141
149
|
* Closes the connection to the server.
|
|
142
150
|
*/
|
|
143
151
|
close(): void;
|
|
152
|
+
/**
|
|
153
|
+
* Destroys the observable and cleans up resources.
|
|
154
|
+
*/
|
|
155
|
+
destroy(): void;
|
|
144
156
|
}
|