@selfcommunity/api-services 0.6.4-alpha.0 → 0.6.4-courses.147

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.
Files changed (37) hide show
  1. package/lib/cjs/constants/Endpoints.js +214 -0
  2. package/lib/cjs/index.d.ts +4 -2
  3. package/lib/cjs/index.js +8 -1
  4. package/lib/cjs/services/course/index.d.ts +449 -0
  5. package/lib/cjs/services/course/index.js +643 -0
  6. package/lib/cjs/services/live_stream/index.d.ts +140 -0
  7. package/lib/cjs/services/live_stream/index.js +199 -0
  8. package/lib/cjs/services/suggestion/index.d.ts +9 -1
  9. package/lib/cjs/services/suggestion/index.js +13 -0
  10. package/lib/cjs/services/user/index.d.ts +10 -1
  11. package/lib/cjs/services/user/index.js +14 -0
  12. package/lib/cjs/types/course.d.ts +123 -0
  13. package/lib/cjs/types/course.js +12 -0
  14. package/lib/cjs/types/index.d.ts +3 -1
  15. package/lib/cjs/types/index.js +3 -1
  16. package/lib/cjs/types/liveStream.d.ts +54 -0
  17. package/lib/cjs/types/liveStream.js +2 -0
  18. package/lib/esm/constants/Endpoints.js +214 -0
  19. package/lib/esm/index.d.ts +4 -2
  20. package/lib/esm/index.js +4 -2
  21. package/lib/esm/services/course/index.d.ts +449 -0
  22. package/lib/esm/services/course/index.js +638 -0
  23. package/lib/esm/services/live_stream/index.d.ts +140 -0
  24. package/lib/esm/services/live_stream/index.js +194 -0
  25. package/lib/esm/services/suggestion/index.d.ts +9 -1
  26. package/lib/esm/services/suggestion/index.js +13 -0
  27. package/lib/esm/services/user/index.d.ts +10 -1
  28. package/lib/esm/services/user/index.js +14 -0
  29. package/lib/esm/types/course.d.ts +123 -0
  30. package/lib/esm/types/course.js +9 -0
  31. package/lib/esm/types/index.d.ts +3 -1
  32. package/lib/esm/types/index.js +2 -1
  33. package/lib/esm/types/liveStream.d.ts +54 -0
  34. package/lib/esm/types/liveStream.js +1 -0
  35. package/lib/umd/api-services.js +1 -1
  36. package/lib/umd/api-services.js.LICENSE.txt +2 -0
  37. package/package.json +117 -112
@@ -1 +1,3 @@
1
1
  /*! (c) 2023 - present: Quentral Srl | https://github.com/selfcommunity/community-js/blob/master/LICENSE.md */
2
+
3
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
package/package.json CHANGED
@@ -1,114 +1,119 @@
1
1
  {
2
- "name": "@selfcommunity/api-services",
3
- "version": "0.6.4-alpha.0",
4
- "license": "MIT",
5
- "private": false,
6
- "main": "./lib/cjs/index.js",
7
- "module": "./lib/esm/index.js",
8
- "exports": {
9
- ".": {
10
- "require": "./lib/cjs/index.js",
11
- "import": "./lib/esm/index.js"
12
- },
13
- "./*": {
14
- "require": "./lib/cjs/*",
15
- "import": "./lib/esm/*"
16
- }
17
- },
18
- "sideEffects": false,
19
- "description": "Client api for SelfCommunity.",
20
- "author": "SelfCommunity <https://www.selfcommunity.com>",
21
- "keywords": [
22
- "react",
23
- "widgets",
24
- "community",
25
- "api-client",
26
- "selfcommunity",
27
- "community-api",
28
- "selfcommunity api",
29
- "selfcommunity api services"
30
- ],
31
- "scripts": {
32
- "prepare": "install-peers -f",
33
- "install-peers": "install-peers -f",
34
- "test": "npm run lint && npm run test-only",
35
- "test-only": "jest --runInBand",
36
- "tdd": "jest --watch --runInBand",
37
- "lint": "eslint ./src test --ext .ts,.tsx,.js",
38
- "prettier": "prettier './**/*.js' './**/*.css' './**/*.md' --write",
39
- "prettier-list-different": "prettier './**/*.js' './**/*.css' './**/*.md' --list-different",
40
- "clean:lib": "rimraf lib",
41
- "clean:node_modules": "rimraf node_modules",
42
- "build:commonjs": "tsc -b tsconfig-cjs.build.json",
43
- "build:esm": "tsc -b tsconfig-esm.build.json",
44
- "build:umd": "webpack --mode production",
45
- "build:umd:analyze": "webpack --mode production --profile --json > ./lib/umd/stats.json && webpack-bundle-analyzer ./lib/umd/stats.json",
46
- "build": "yarn clean:lib && yarn build:commonjs && yarn build:esm && yarn build:umd",
47
- "prerelease": "yarn run clean:lib && yarn run build"
48
- },
49
- "homepage": "https://www.selfcommunity.com",
50
- "files": [
51
- "lib"
52
- ],
53
- "repository": {
54
- "type": "git",
55
- "url": "https://github.com/selfcommunity/community-js/tree/main/packages/api-services"
56
- },
57
- "publishConfig": {
58
- "access": "public"
59
- },
60
- "dependencies": {
61
- "@selfcommunity/types": "^0.7.4-alpha.0",
62
- "@selfcommunity/utils": "^0.2.61-alpha.0",
63
- "axios": "^1.4.0",
64
- "jose": "^4.14.4"
65
- },
66
- "devDependencies": {
67
- "@types/chai": "^4.2.14",
68
- "@types/enzyme": "^3.10.8",
69
- "@types/jest": "^26.0.20",
70
- "@types/react": "17 || 18",
71
- "@types/react-dom": "17 || 18",
72
- "@types/sinon": "^9.0.10",
73
- "@typescript-eslint/eslint-plugin": "^4.14.2",
74
- "@typescript-eslint/parser": "^4.14.2",
75
- "babel-jest": "^26.6.3",
76
- "chai": "^4.2.0",
77
- "cherry-pick": "^0.5.0",
78
- "enzyme": "^3.10.0",
79
- "enzyme-adapter-react-16": "^1.15.6",
80
- "eslint": "^7.19.0",
81
- "eslint-config-prettier": "^7.2.0",
82
- "eslint-plugin-import": "^2.22.1",
83
- "eslint-plugin-mocha": "^8.0.0",
84
- "eslint-plugin-prettier": "^4.0.0",
85
- "eslint-plugin-react": "^7.22.0",
86
- "eslint-plugin-react-hooks": "^4.2.0",
87
- "faker": "^5.3.1",
88
- "install-peers-cli": "^2.2.0",
89
- "jest": "^26.6.3",
90
- "lodash": "^4.17.15",
91
- "postcss": "^8.2.4",
92
- "prettier": "^2.2.1",
93
- "rimraf": "^3.0.2",
94
- "sass": "^1.32.6",
95
- "sinon": "^9.2.4",
96
- "tslib": "^2.6.2",
97
- "typescript": "^4.1.3",
98
- "webpack": "^5.20.1",
99
- "webpack-atoms": "^17.1.0",
100
- "webpack-bundle-analyzer": "^4.9.0",
101
- "webpack-cli": "^4.5.0"
102
- },
103
- "prettier": {
104
- "printWidth": 150,
105
- "bracketSpacing": false,
106
- "trailingComma": "none",
107
- "singleQuote": true,
108
- "bracketSameLine": true
109
- },
110
- "bugs": {
111
- "url": "https://github.com/selfcommunity/community-js/issues"
112
- },
113
- "gitHead": "e13a5c38cc7e5df08dfa80a02e670f81f0f3f630"
2
+ "name": "@selfcommunity/api-services",
3
+ "version": "0.6.4-courses.147+885f17e77",
4
+ "license": "MIT",
5
+ "private": false,
6
+ "main": "./lib/cjs/index.js",
7
+ "module": "./lib/esm/index.js",
8
+ "exports": {
9
+ ".": {
10
+ "require": "./lib/cjs/index.js",
11
+ "import": "./lib/esm/index.js"
12
+ },
13
+ "./*": {
14
+ "require": "./lib/cjs/*",
15
+ "import": "./lib/esm/*"
16
+ }
17
+ },
18
+ "sideEffects": false,
19
+ "description": "Client api for SelfCommunity.",
20
+ "author": "SelfCommunity <https://www.selfcommunity.com>",
21
+ "keywords": [
22
+ "react",
23
+ "widgets",
24
+ "community",
25
+ "api-client",
26
+ "selfcommunity",
27
+ "community-api",
28
+ "selfcommunity api",
29
+ "selfcommunity api services"
30
+ ],
31
+ "scripts": {
32
+ "prepare": "install-peers -f",
33
+ "install-peers": "install-peers -f",
34
+ "test": "npm run lint && npm run test-only",
35
+ "test-only": "jest --runInBand",
36
+ "tdd": "jest --watch --runInBand",
37
+ "lint": "eslint ./src test --ext .ts,.tsx,.js",
38
+ "prettier": "prettier './**/*.js' './**/*.css' './**/*.md' --write",
39
+ "prettier-list-different": "prettier './**/*.js' './**/*.css' './**/*.md' --list-different",
40
+ "clean:lib": "rimraf lib",
41
+ "clean:node_modules": "rimraf node_modules",
42
+ "build:commonjs": "tsc -b tsconfig-cjs.build.json",
43
+ "build:esm": "tsc -b tsconfig-esm.build.json",
44
+ "build:umd": "webpack --mode production",
45
+ "build:umd:analyze": "webpack --mode production --profile --json > ./lib/umd/stats.json && webpack-bundle-analyzer ./lib/umd/stats.json",
46
+ "build": "yarn clean:lib && yarn build:commonjs && yarn build:esm && yarn build:umd",
47
+ "prerelease": "yarn run clean:lib && yarn run build"
48
+ },
49
+ "homepage": "https://www.selfcommunity.com",
50
+ "files": [
51
+ "lib"
52
+ ],
53
+ "repository": {
54
+ "type": "git",
55
+ "url": "https://github.com/selfcommunity/community-js/tree/main/packages/api-services"
56
+ },
57
+ "publishConfig": {
58
+ "access": "public"
59
+ },
60
+ "dependencies": {
61
+ "@selfcommunity/types": "0.7.4-courses.147+885f17e77",
62
+ "@selfcommunity/utils": "0.2.61-courses.147+885f17e77",
63
+ "axios": "^1.4.0",
64
+ "jose": "^4.14.4"
65
+ },
66
+ "devDependencies": {
67
+ "@babel/core": "^7.7.4",
68
+ "@babel/preset-env": "^7.25.8",
69
+ "@babel/preset-react": "^7.7.4",
70
+ "@babel/preset-typescript": "^7.7.4",
71
+ "@types/chai": "^4.2.14",
72
+ "@types/enzyme": "^3.10.8",
73
+ "@types/jest": "^26.0.20",
74
+ "@types/react": "17 || 18",
75
+ "@types/react-dom": "17 || 18",
76
+ "@types/sinon": "^9.0.10",
77
+ "@typescript-eslint/eslint-plugin": "^4.14.2",
78
+ "@typescript-eslint/parser": "^4.14.2",
79
+ "babel-jest": "^26.6.3",
80
+ "babel-loader": "^8.2.2",
81
+ "babel-preset-env-modules": "^1.0.0",
82
+ "chai": "^4.2.0",
83
+ "cherry-pick": "^0.5.0",
84
+ "enzyme": "^3.10.0",
85
+ "enzyme-adapter-react-16": "^1.15.6",
86
+ "eslint": "^7.19.0",
87
+ "eslint-config-prettier": "^7.2.0",
88
+ "eslint-plugin-import": "^2.22.1",
89
+ "eslint-plugin-mocha": "^8.0.0",
90
+ "eslint-plugin-prettier": "^4.0.0",
91
+ "eslint-plugin-react": "^7.22.0",
92
+ "eslint-plugin-react-hooks": "^4.2.0",
93
+ "faker": "^5.3.1",
94
+ "install-peers-cli": "^2.2.0",
95
+ "jest": "^26.6.3",
96
+ "lodash": "^4.17.15",
97
+ "postcss": "^8.2.4",
98
+ "prettier": "^2.2.1",
99
+ "rimraf": "^3.0.2",
100
+ "sass": "^1.32.6",
101
+ "sinon": "^9.2.4",
102
+ "tslib": "^2.6.2",
103
+ "typescript": "^4.1.3",
104
+ "webpack": "^5.20.1",
105
+ "webpack-bundle-analyzer": "^4.9.0",
106
+ "webpack-cli": "^4.5.0"
107
+ },
108
+ "prettier": {
109
+ "printWidth": 150,
110
+ "bracketSpacing": false,
111
+ "trailingComma": "none",
112
+ "singleQuote": true,
113
+ "bracketSameLine": true
114
+ },
115
+ "bugs": {
116
+ "url": "https://github.com/selfcommunity/community-js/issues"
117
+ },
118
+ "gitHead": "885f17e7746d3308b7db24415a2b1a9913ae6d88"
114
119
  }