@grapecity-software/js-collaboration 18.2.5 → 19.0.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/index.d.ts +40 -0
- package/dist/index.js +12 -1
- package/package.json +2 -4
- package/wrapper.mjs +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -74,6 +74,13 @@ export interface IServerConfig {
|
|
|
74
74
|
* The request path for the server. Defaults to '/collaboration/'.
|
|
75
75
|
*/
|
|
76
76
|
path?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Custom Socket.IO adapter for multi-node/distributed deployments.
|
|
79
|
+
* Allows integration with various message brokers (Redis, MongoDB, PostgreSQL, etc.)
|
|
80
|
+
* to enable message broadcasting across multiple server instances.
|
|
81
|
+
* @see https://socket.io/docs/v4/adapter/
|
|
82
|
+
*/
|
|
83
|
+
socketIoAdapter?: any;
|
|
77
84
|
}
|
|
78
85
|
|
|
79
86
|
export interface IFeature {
|
|
@@ -87,6 +94,15 @@ export interface IFeature {
|
|
|
87
94
|
export declare class Server {
|
|
88
95
|
constructor(config?: IServerConfig);
|
|
89
96
|
|
|
97
|
+
/**
|
|
98
|
+
* License key for server validation and collaboration features.
|
|
99
|
+
*/
|
|
100
|
+
licenseKey: string;
|
|
101
|
+
/**
|
|
102
|
+
* License key for validating server machine deployment.
|
|
103
|
+
*/
|
|
104
|
+
serverLicenseKey: string;
|
|
105
|
+
|
|
90
106
|
/**
|
|
91
107
|
* Registers multiple middlewares to the server in a batch.
|
|
92
108
|
* @param {IMiddlewares} middlewares - The middlewares to register.
|
|
@@ -194,3 +210,27 @@ export interface IMessageMiddlewareContext {
|
|
|
194
210
|
type: MessageType;
|
|
195
211
|
data: MessageData;
|
|
196
212
|
}
|
|
213
|
+
|
|
214
|
+
export interface IDeactivateServerLicenseResult {
|
|
215
|
+
/**
|
|
216
|
+
* The unique token to be submitted to sales/support for the deactivation process.
|
|
217
|
+
*/
|
|
218
|
+
token: string;
|
|
219
|
+
/**
|
|
220
|
+
* The unique machine ID that was deactivated.
|
|
221
|
+
*/
|
|
222
|
+
machineId: string;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Retrieves the unique authorization ID for the current machine.
|
|
226
|
+
* @returns {string} The ID string of the current machine.
|
|
227
|
+
*/
|
|
228
|
+
export declare function getMachineIdForServerLicense(): string;
|
|
229
|
+
/**
|
|
230
|
+
* Deactivates the License Key currently registered on the machine.
|
|
231
|
+
* This function deactivates the license and returns an array of all deactivation records
|
|
232
|
+
* present on the current machine. The array is ordered chronologically, with the most
|
|
233
|
+
* recent deactivation record at index [0].
|
|
234
|
+
* @returns {IDeactivateServerLicenseResult[]}
|
|
235
|
+
*/
|
|
236
|
+
export declare function deactivateServerLicense(): IDeactivateServerLicenseResult[];
|