@voicenter-team/events-sdk 0.0.13 → 0.0.14
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/.eslintrc.cjs +17 -0
- package/.github/workflows/main.yml +16 -0
- package/.idea/VoicenterEventsSDK.iml +12 -0
- package/.idea/git_toolbox_prj.xml +15 -0
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/jsLibraryMappings.xml +6 -0
- package/.idea/jsLinters/eslint.xml +7 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/.nvmrc +1 -0
- package/TODELETE_TEMP/events.json +69122 -0
- package/TODELETE_TEMP/temphelper.cjs +101 -0
- package/dist/{voicenter-events-sdk.d.ts → index.d.ts} +192 -38
- package/dist/voicenter-events-sdk.cjs.js +15 -15
- package/dist/voicenter-events-sdk.cjs.js.map +1 -1
- package/dist/voicenter-events-sdk.es.js +1809 -1795
- package/dist/voicenter-events-sdk.es.js.map +1 -1
- package/dist/voicenter-events-sdk.iife.js +15 -15
- package/dist/voicenter-events-sdk.iife.js.map +1 -1
- package/dist/voicenter-events-sdk.umd.js +14 -14
- package/dist/voicenter-events-sdk.umd.js.map +1 -1
- package/docs/package-lock.json +3820 -0
- package/docs/package.json +25 -0
- package/docs/src/.vuepress/client.js +8 -0
- package/docs/src/.vuepress/components/Demo.vue +191 -0
- package/docs/src/.vuepress/config.js +60 -0
- package/docs/src/.vuepress/public/favicon.ico +0 -0
- package/docs/src/.vuepress/public/images/logo.png +0 -0
- package/docs/src/.vuepress/styles/index.scss +0 -0
- package/docs/src/.vuepress/styles/index.styl +8 -0
- package/docs/src/.vuepress/styles/palette.styl +10 -0
- package/docs/src/demo.md +7 -0
- package/docs/src/index.md +4 -0
- package/interface.ts +261 -0
- package/jest.config.js +11 -0
- package/package.json +54 -57
- package/src/classes/auth/auth.class.ts +272 -0
- package/src/classes/auth/auth.urls.ts +8 -0
- package/src/classes/events-sdk/events-sdk-default-options.ts +60 -0
- package/src/classes/events-sdk/events-sdk.class.ts +250 -0
- package/src/classes/events-sdk/events-sdk.test.ts +9 -0
- package/src/classes/events-sdk/events-sdk.types.ts +71 -0
- package/src/classes/socket-io/socket-io.class.ts +172 -0
- package/src/classes/socket-io/socket-io.d.ts +10 -0
- package/src/classes/socket-io/versions/index.ts +52 -0
- package/src/classes/socket-io/versions/v1_3_7.js +2083 -0
- package/src/classes/storage/storage.class.ts +43 -0
- package/src/enum/auth.enum.ts +4 -0
- package/src/enum/events.enum.ts +98 -0
- package/src/index.ts +15 -0
- package/src/types/auth.d.ts +53 -0
- package/src/types/events.common.d.ts +110 -0
- package/src/types/events.d.ts +175 -0
- package/src/types/listeners.d.ts +37 -0
- package/src/types/public-api.d.ts +39 -0
- package/src/types/socket.d.ts +5 -0
- package/swagger/generated/Swagger.json +1 -0
- package/swagger/index.js +60 -0
- package/swagger/package.json +21 -0
- package/swagger/scripts/update-swagger-json.js +53 -0
- package/swagger/yarn.lock +2100 -0
- package/tsconfig.json +47 -0
- package/vite.config.ts +45 -0
package/tsconfig.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"include": [
|
|
3
|
+
"src/**/*",
|
|
4
|
+
"src/**/*.d.ts",
|
|
5
|
+
"docs/**/*",
|
|
6
|
+
],
|
|
7
|
+
"exclude": ["public/**/*", "node_modules"],
|
|
8
|
+
"compilerOptions": {
|
|
9
|
+
"target": "ES2022" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */,
|
|
10
|
+
"module": "ESNext" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
|
|
11
|
+
"moduleResolution": "Node",
|
|
12
|
+
"resolveJsonModule": true,
|
|
13
|
+
"lib": [
|
|
14
|
+
"dom",
|
|
15
|
+
"ESNext"
|
|
16
|
+
],
|
|
17
|
+
"types": [
|
|
18
|
+
"vite/client",
|
|
19
|
+
"node",
|
|
20
|
+
"jest",
|
|
21
|
+
"chrome"
|
|
22
|
+
],
|
|
23
|
+
"declaration": true, /* Generates corresponding '.d.ts' file. */
|
|
24
|
+
"esModuleInterop": true,
|
|
25
|
+
"paths": {
|
|
26
|
+
"voicenterEventsSDK/*": [
|
|
27
|
+
"./src/*"
|
|
28
|
+
],
|
|
29
|
+
"@/*": [
|
|
30
|
+
"./src/*"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"useDefineForClassFields": true,
|
|
34
|
+
"strict": true,
|
|
35
|
+
"jsx": "preserve",
|
|
36
|
+
"sourceMap": true,
|
|
37
|
+
"isolatedModules": true,
|
|
38
|
+
"declarationDir": "dist/types",
|
|
39
|
+
"noUnusedLocals": true,
|
|
40
|
+
"noUnusedParameters": true,
|
|
41
|
+
"importHelpers": true,
|
|
42
|
+
"experimentalDecorators": true,
|
|
43
|
+
"allowSyntheticDefaultImports": true,
|
|
44
|
+
"skipLibCheck": true,
|
|
45
|
+
"baseUrl": ".",
|
|
46
|
+
}
|
|
47
|
+
}
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { resolve } from 'path'
|
|
2
|
+
import { defineConfig, loadEnv, ConfigEnv } from 'vite'
|
|
3
|
+
import dts from 'vite-plugin-dts'
|
|
4
|
+
|
|
5
|
+
export default ({ mode }: ConfigEnv) => {
|
|
6
|
+
process.env = {
|
|
7
|
+
...process.env,
|
|
8
|
+
...loadEnv(mode, process.cwd(), '')
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return defineConfig({
|
|
12
|
+
build: {
|
|
13
|
+
rollupOptions: {
|
|
14
|
+
output: {
|
|
15
|
+
exports: 'named'
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
outDir: 'dist',
|
|
19
|
+
sourcemap: true,
|
|
20
|
+
commonjsOptions: {
|
|
21
|
+
esmExternals: true
|
|
22
|
+
},
|
|
23
|
+
lib: {
|
|
24
|
+
entry: resolve(__dirname, 'src/index.ts'),
|
|
25
|
+
formats: [ 'es', 'cjs', 'umd', 'iife' ],
|
|
26
|
+
name: 'VoicenterEventsSDK',
|
|
27
|
+
fileName: (format) => {
|
|
28
|
+
return `voicenter-events-sdk.${format}.js`
|
|
29
|
+
},
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
plugins: [
|
|
33
|
+
dts({
|
|
34
|
+
copyDtsFiles: true,
|
|
35
|
+
rollupTypes: true,
|
|
36
|
+
})
|
|
37
|
+
],
|
|
38
|
+
resolve: {
|
|
39
|
+
alias: {
|
|
40
|
+
'@': resolve(__dirname, './src'),
|
|
41
|
+
voicenterEventsSDK: resolve(__dirname, './src'),
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
})
|
|
45
|
+
}
|