@synnaxlabs/client 0.1.2 → 0.2.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/.DS_Store +0 -0
- package/.editorconfig +15 -0
- package/.eslintrc.json +33 -0
- package/.gitignore +9 -0
- package/.nyc_output/20720f2d-6abe-420f-a3c5-304d52d60827.json +1 -0
- package/.nyc_output/4725921c-6f1b-4ae9-9819-e455f702d31c.json +1 -0
- package/.nyc_output/47478588-5ffd-4332-873c-facaa4a2fc38.json +1 -0
- package/.nyc_output/48180641-e0b2-49ab-a6eb-e7910e9eac2f.json +1 -0
- package/.nyc_output/cb0abf31-740f-47db-b94a-8e3f8f117cb8.json +1 -0
- package/.nyc_output/fc77fce2-dad0-49a8-8d4b-0a9014ecf8c5.json +1 -0
- package/.nyc_output/processinfo/20720f2d-6abe-420f-a3c5-304d52d60827.json +1 -0
- package/.nyc_output/processinfo/4725921c-6f1b-4ae9-9819-e455f702d31c.json +1 -0
- package/.nyc_output/processinfo/47478588-5ffd-4332-873c-facaa4a2fc38.json +1 -0
- package/.nyc_output/processinfo/48180641-e0b2-49ab-a6eb-e7910e9eac2f.json +1 -0
- package/.nyc_output/processinfo/cb0abf31-740f-47db-b94a-8e3f8f117cb8.json +1 -0
- package/.nyc_output/processinfo/fc77fce2-dad0-49a8-8d4b-0a9014ecf8c5.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -0
- package/.prettierignore +2 -0
- package/CHANGELOG.md +5 -0
- package/build/main/index.d.ts +1 -1
- package/build/main/index.js +2 -3
- package/build/main/lib/auth.d.ts +54 -0
- package/build/main/lib/auth.js +62 -0
- package/build/main/lib/auth.spec.d.ts +1 -0
- package/build/main/lib/auth.spec.js +39 -0
- package/build/main/lib/channel/channel.spec.js +17 -3
- package/build/main/lib/channel/client.d.ts +2 -2
- package/build/main/lib/channel/client.js +6 -3
- package/build/main/lib/channel/payload.d.ts +2 -2
- package/build/main/lib/client.d.ts +13 -6
- package/build/main/lib/client.js +16 -4
- package/build/main/lib/segment/iterator.spec.js +14 -3
- package/build/main/lib/segment/typed.js +4 -4
- package/build/main/lib/segment/writer.spec.js +17 -3
- package/build/main/lib/telem.d.ts +2 -2
- package/build/main/lib/telem.js +4 -4
- package/build/main/lib/telem.spec.js +4 -2
- package/build/main/lib/transport.d.ts +2 -1
- package/build/main/lib/transport.js +5 -1
- package/build/main/lib/user/payload.d.ts +12 -0
- package/build/main/lib/user/payload.js +9 -0
- package/build/main/setupspecs.d.ts +4 -0
- package/build/main/setupspecs.js +17 -0
- package/build/module/index.d.ts +1 -1
- package/build/module/index.js +2 -2
- package/build/module/lib/auth.d.ts +54 -0
- package/build/module/lib/auth.js +63 -0
- package/build/module/lib/auth.spec.d.ts +1 -0
- package/build/module/lib/auth.spec.js +34 -0
- package/build/module/lib/channel/channel.spec.js +17 -3
- package/build/module/lib/channel/client.d.ts +2 -2
- package/build/module/lib/channel/client.js +6 -3
- package/build/module/lib/channel/payload.d.ts +2 -2
- package/build/module/lib/client.d.ts +13 -6
- package/build/module/lib/client.js +17 -4
- package/build/module/lib/segment/iterator.spec.js +14 -3
- package/build/module/lib/segment/typed.js +5 -5
- package/build/module/lib/segment/writer.spec.js +18 -4
- package/build/module/lib/telem.d.ts +2 -2
- package/build/module/lib/telem.js +4 -4
- package/build/module/lib/telem.spec.js +5 -3
- package/build/module/lib/transport.d.ts +2 -1
- package/build/module/lib/transport.js +5 -1
- package/build/module/lib/user/payload.d.ts +12 -0
- package/build/module/lib/user/payload.js +6 -0
- package/build/module/setupspecs.d.ts +4 -0
- package/build/module/setupspecs.js +16 -0
- package/build/tsconfig.module.tsbuildinfo +1 -0
- package/build/tsconfig.tsbuildinfo +1 -0
- package/coverage/base.css +224 -0
- package/coverage/block-navigation.js +87 -0
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +191 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +191 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov-report/src/index.html +116 -0
- package/coverage/lcov-report/src/lib/auth.ts.html +340 -0
- package/coverage/lcov-report/src/lib/channel/client.ts.html +604 -0
- package/coverage/lcov-report/src/lib/channel/creator.ts.html +304 -0
- package/coverage/lcov-report/src/lib/channel/index.html +176 -0
- package/coverage/lcov-report/src/lib/channel/payload.ts.html +139 -0
- package/coverage/lcov-report/src/lib/channel/registry.ts.html +202 -0
- package/coverage/lcov-report/src/lib/channel/retriever.ts.html +244 -0
- package/coverage/lcov-report/src/lib/client.ts.html +244 -0
- package/coverage/lcov-report/src/lib/errors.ts.html +484 -0
- package/coverage/lcov-report/src/lib/index.html +176 -0
- package/coverage/lcov-report/src/lib/segment/client.ts.html +463 -0
- package/coverage/lcov-report/src/lib/segment/index.html +206 -0
- package/coverage/lcov-report/src/lib/segment/iterator.ts.html +928 -0
- package/coverage/lcov-report/src/lib/segment/payload.ts.html +139 -0
- package/coverage/lcov-report/src/lib/segment/splitter.ts.html +181 -0
- package/coverage/lcov-report/src/lib/segment/typed.ts.html +307 -0
- package/coverage/lcov-report/src/lib/segment/validator.ts.html +331 -0
- package/coverage/lcov-report/src/lib/segment/writer.ts.html +727 -0
- package/coverage/lcov-report/src/lib/telem.ts.html +2056 -0
- package/coverage/lcov-report/src/lib/transport.ts.html +196 -0
- package/coverage/lcov-report/src/lib/user/index.html +116 -0
- package/coverage/lcov-report/src/lib/user/payload.ts.html +109 -0
- package/coverage/lcov-report/src/lib/util/index.html +116 -0
- package/coverage/lcov-report/src/lib/util/telem.ts.html +124 -0
- package/coverage/lcov-report/src/setupspecs.ts.html +133 -0
- package/coverage/lcov.info +1230 -0
- package/coverage/prettify.css +1 -0
- package/coverage/prettify.js +2 -0
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +196 -0
- package/coverage/src/index.html +116 -0
- package/coverage/src/lib/auth.ts.html +340 -0
- package/coverage/src/lib/channel/client.ts.html +604 -0
- package/coverage/src/lib/channel/creator.ts.html +304 -0
- package/coverage/src/lib/channel/index.html +176 -0
- package/coverage/src/lib/channel/payload.ts.html +139 -0
- package/coverage/src/lib/channel/registry.ts.html +202 -0
- package/coverage/src/lib/channel/retriever.ts.html +244 -0
- package/coverage/src/lib/client.ts.html +244 -0
- package/coverage/src/lib/errors.ts.html +484 -0
- package/coverage/src/lib/index.html +176 -0
- package/coverage/src/lib/segment/client.ts.html +463 -0
- package/coverage/src/lib/segment/index.html +206 -0
- package/coverage/src/lib/segment/iterator.ts.html +928 -0
- package/coverage/src/lib/segment/payload.ts.html +139 -0
- package/coverage/src/lib/segment/splitter.ts.html +181 -0
- package/coverage/src/lib/segment/typed.ts.html +307 -0
- package/coverage/src/lib/segment/validator.ts.html +331 -0
- package/coverage/src/lib/segment/writer.ts.html +727 -0
- package/coverage/src/lib/telem.ts.html +2056 -0
- package/coverage/src/lib/transport.ts.html +196 -0
- package/coverage/src/lib/user/index.html +116 -0
- package/coverage/src/lib/user/payload.ts.html +109 -0
- package/coverage/src/lib/util/index.html +116 -0
- package/coverage/src/lib/util/telem.ts.html +124 -0
- package/coverage/src/setupspecs.ts.html +133 -0
- package/package.json +2 -2
- package/src/index.ts +13 -0
- package/src/lib/.DS_Store +0 -0
- package/src/lib/auth.spec.ts +36 -0
- package/src/lib/auth.ts +85 -0
- package/src/lib/channel/channel.spec.ts +49 -0
- package/src/lib/channel/client.ts +173 -0
- package/src/lib/channel/creator.ts +73 -0
- package/src/lib/channel/payload.ts +18 -0
- package/src/lib/channel/registry.ts +39 -0
- package/src/lib/channel/retriever.ts +53 -0
- package/src/lib/client.ts +53 -0
- package/src/lib/errors.ts +133 -0
- package/src/lib/segment/client.ts +126 -0
- package/src/lib/segment/iterator.spec.ts +78 -0
- package/src/lib/segment/iterator.ts +281 -0
- package/src/lib/segment/payload.ts +18 -0
- package/src/lib/segment/splitter.ts +32 -0
- package/src/lib/segment/typed.ts +74 -0
- package/src/lib/segment/validator.ts +82 -0
- package/src/lib/segment/writer.spec.ts +85 -0
- package/src/lib/segment/writer.ts +214 -0
- package/src/lib/telem.spec.ts +200 -0
- package/src/lib/telem.ts +657 -0
- package/src/lib/transport.ts +37 -0
- package/src/lib/user/payload.ts +8 -0
- package/src/lib/util/telem.ts +13 -0
- package/src/setupspecs.ts +16 -0
- package/tsconfig.json +47 -0
- package/tsconfig.module.json +9 -0
- package/yarn-error.log +5756 -0
- package/yarn.lock +5936 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import Synnax, { SynnaxProps } from './lib/client';
|
|
2
|
+
|
|
3
|
+
export const HOST = 'localhost';
|
|
4
|
+
export const PORT = 8080;
|
|
5
|
+
|
|
6
|
+
export const newClient = (...props: SynnaxProps[]): Synnax => {
|
|
7
|
+
let _props = {};
|
|
8
|
+
if (props.length > 0) _props = props[0];
|
|
9
|
+
return new Synnax({
|
|
10
|
+
host: HOST,
|
|
11
|
+
port: PORT,
|
|
12
|
+
username: 'synnax',
|
|
13
|
+
password: 'seldon',
|
|
14
|
+
..._props,
|
|
15
|
+
});
|
|
16
|
+
};
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"incremental": true,
|
|
4
|
+
"target": "es2017",
|
|
5
|
+
"outDir": "build/main",
|
|
6
|
+
"rootDir": "src",
|
|
7
|
+
"moduleResolution": "node",
|
|
8
|
+
"module": "commonjs",
|
|
9
|
+
"declaration": true,
|
|
10
|
+
"inlineSourceMap": true,
|
|
11
|
+
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
|
|
12
|
+
"resolveJsonModule": true /* Include modules imported with .json extension. */,
|
|
13
|
+
|
|
14
|
+
"strict": true /* Enable all strict type-checking options. */,
|
|
15
|
+
|
|
16
|
+
/* Strict Type-Checking Options */
|
|
17
|
+
// "noImplicitAny": true /* Raise error on expressions and declarations with an implied 'any' type. */,
|
|
18
|
+
// "strictNullChecks": true /* Enable strict null checks. */,
|
|
19
|
+
// "strictFunctionTypes": true /* Enable strict checking of function types. */,
|
|
20
|
+
// "strictPropertyInitialization": true /* Enable strict checking of property initialization in classes. */,
|
|
21
|
+
// "noImplicitThis": true /* Raise error on 'this' expressions with an implied 'any' type. */,
|
|
22
|
+
// "alwaysStrict": true /* Parse in strict mode and emit "use strict" for each source file. */,
|
|
23
|
+
|
|
24
|
+
/* Additional Checks */
|
|
25
|
+
"noUnusedLocals": true /* Report errors on unused locals. */,
|
|
26
|
+
"noUnusedParameters": true /* Report errors on unused parameters. */,
|
|
27
|
+
"noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
|
|
28
|
+
"noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */,
|
|
29
|
+
|
|
30
|
+
/* Debugging Options */
|
|
31
|
+
"traceResolution": false /* Report module resolution log messages. */,
|
|
32
|
+
"listEmittedFiles": false /* Print names of generated files part of the compilation. */,
|
|
33
|
+
"listFiles": false /* Print names of files part of the compilation. */,
|
|
34
|
+
"pretty": true /* Stylize errors and messages using color and context. */,
|
|
35
|
+
|
|
36
|
+
/* Experimental Options */
|
|
37
|
+
// "experimentalDecorators": true /* Enables experimental support for ES7 decorators. */,
|
|
38
|
+
// "emitDecoratorMetadata": true /* Enables experimental support for emitting type metadata for decorators. */,
|
|
39
|
+
|
|
40
|
+
"lib": ["es2017", "dom"],
|
|
41
|
+
"types": ["node"],
|
|
42
|
+
"typeRoots": ["node_modules/@types", "src/types"]
|
|
43
|
+
},
|
|
44
|
+
"include": ["src/**/*.ts"],
|
|
45
|
+
"exclude": ["node_modules/**"],
|
|
46
|
+
"compileOnSave": false
|
|
47
|
+
}
|