@anticrm/client
Advanced tools
+29
-1
@@ -0,1 +1,2 @@ | ||
| import { Metadata } from '@anticrm/platform'; | ||
| import type { Plugin, Resource } from '@anticrm/platform'; | ||
@@ -7,7 +8,34 @@ import type { Client } from '@anticrm/core'; | ||
| export declare const clientId: Plugin; | ||
| /** | ||
| * @public | ||
| */ | ||
| export declare type ClientHook = (client: Client) => Promise<Client>; | ||
| /** | ||
| * @public | ||
| */ | ||
| export declare type ClientSocketFactory = (url: string) => ClientSocket; | ||
| /** | ||
| * @public | ||
| */ | ||
| export interface ClientSocket { | ||
| onmessage?: ((this: ClientSocket, ev: MessageEvent) => any) | null; | ||
| onclose?: ((this: ClientSocket, ev: CloseEvent) => any) | null; | ||
| onopen?: ((this: ClientSocket, ev: Event) => any) | null; | ||
| onerror?: ((this: ClientSocket, ev: Event) => any) | null; | ||
| send: (data: string | ArrayBufferLike | Blob | ArrayBufferView) => void; | ||
| close: () => void; | ||
| } | ||
| /** | ||
| * @public | ||
| */ | ||
| export declare type ClientFactory = (token: string, endpoint: string) => Promise<Client>; | ||
| declare const _default: { | ||
| metadata: { | ||
| ClientHook: Metadata<Resource<ClientHook>>; | ||
| ClientSocketFactory: Metadata<ClientSocketFactory>; | ||
| }; | ||
| function: { | ||
| GetClient: Resource<(token: string, endpoint: string) => Promise<Client>>; | ||
| GetClient: Resource<ClientFactory>; | ||
| }; | ||
| }; | ||
| export default _default; |
+5
-1
@@ -25,3 +25,7 @@ "use strict"; | ||
| exports.clientId = 'client'; | ||
| exports.default = platform_1.plugin(exports.clientId, { | ||
| exports.default = (0, platform_1.plugin)(exports.clientId, { | ||
| metadata: { | ||
| ClientHook: '', | ||
| ClientSocketFactory: '' | ||
| }, | ||
| function: { | ||
@@ -28,0 +32,0 @@ GetClient: '' |
+1
-1
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,0EAA0E;AAC1E,2EAA2E;AAC3E,wEAAwE;AACxE,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,EAAE;AACF,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;;;AAEF,gDAA0C;AAG1C,kDAAkD;AAElD,6DAA6D;AAE7D;;GAEG;AACU,QAAA,QAAQ,GAAG,QAAkB,CAAA;AAE1C,kBAAe,iBAAM,CAAC,gBAAQ,EAC5B;IACE,QAAQ,EAAE;QACR,SAAS,EAAE,EAAoE;KAChF;CACF,CACF,CAAA"} | ||
| {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,0EAA0E;AAC1E,2EAA2E;AAC3E,wEAAwE;AACxE,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,EAAE;AACF,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;;;AAEF,gDAAoD;AAGpD,kDAAkD;AAElD,6DAA6D;AAE7D;;GAEG;AACU,QAAA,QAAQ,GAAG,QAAkB,CAAA;AA+B1C,kBAAe,IAAA,iBAAM,EAAC,gBAAQ,EAC5B;IACE,QAAQ,EAAE;QACR,UAAU,EAAE,EAAoC;QAChD,mBAAmB,EAAE,EAAmC;KACzD;IACD,QAAQ,EAAE;QACR,SAAS,EAAE,EAA6B;KACzC;CACF,CACF,CAAA"} |
@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard. | ||
| "packageName": "@microsoft/api-extractor", | ||
| "packageVersion": "7.18.4" | ||
| "packageVersion": "7.18.13" | ||
| } | ||
| ] | ||
| } |
+20
-12
| { | ||
| "name": "@anticrm/client", | ||
| "version": "0.6.1", | ||
| "version": "0.6.2", | ||
| "main": "lib/index.js", | ||
| "author": "Anticrm Platform Contributors", | ||
| "license": "EPL-2.0", | ||
| "scripts": { | ||
| "build": "heft build", | ||
| "build:watch": "tsc", | ||
| "lint:fix": "eslint --fix src", | ||
| "lint": "eslint src", | ||
| "format": "prettier --write src && eslint --fix src" | ||
| }, | ||
| "devDependencies": { | ||
| "@anticrm/platform-rig": "~0.6.0", | ||
| "@types/heft-jest": "^1.0.2", | ||
| "@typescript-eslint/eslint-plugin": "4", | ||
| "eslint-plugin-import": "2", | ||
| "eslint-plugin-promise": "4", | ||
| "eslint-plugin-node": "11", | ||
| "eslint": "^7.32.0" | ||
| "@typescript-eslint/eslint-plugin": "^5.4.0", | ||
| "eslint-plugin-import": "^2.25.3", | ||
| "eslint-plugin-promise": "^5.1.1", | ||
| "eslint-plugin-node": "^11.1.0", | ||
| "eslint": "^7.32.0", | ||
| "@typescript-eslint/parser": "^5.4.0", | ||
| "eslint-config-standard-with-typescript": "^21.0.1", | ||
| "prettier": "^2.4.1", | ||
| "@rushstack/heft": "^0.41.1", | ||
| "typescript": "^4.3.5" | ||
| }, | ||
| "dependencies": { | ||
| "@anticrm/platform": "~0.6.5", | ||
| "@anticrm/core": "~0.6.8" | ||
| }, | ||
| "scripts": { | ||
| "build": "heft build", | ||
| "lint:fix": "eslint --fix src" | ||
| "@anticrm/core": "~0.6.11" | ||
| } | ||
| } | ||
| } |
4354
43.89%84
61.54%12
71.43%Updated