jamespot-user-api 1.0.82 → 1.0.89

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 (85) hide show
  1. package/README-internal.md +41 -0
  2. package/README.md +7 -33
  3. package/documentation/assets/highlight.css +13 -6
  4. package/documentation/assets/search.js +1 -1
  5. package/documentation/classes/AdminStoreApi.html +1 -1
  6. package/documentation/classes/JApplicationApi.html +8 -8
  7. package/documentation/classes/JArticleApi.html +1 -1
  8. package/documentation/classes/JAssetReservation.html +1 -1
  9. package/documentation/classes/JAudienceApi.html +1 -1
  10. package/documentation/classes/JBaseApi.html +1 -1
  11. package/documentation/classes/JBookmarkApi.html +1 -1
  12. package/documentation/classes/JCommunityApi.html +1 -1
  13. package/documentation/classes/JConceptApi.html +1 -1
  14. package/documentation/classes/JDiapazoneApi.html +1 -1
  15. package/documentation/classes/JFileApi.html +1 -1
  16. package/documentation/classes/JFilebankApi.html +1 -1
  17. package/documentation/classes/JGroupApi.html +2 -2
  18. package/documentation/classes/JLandApi.html +1 -1
  19. package/documentation/classes/JLicenseApi.html +18 -0
  20. package/documentation/classes/JMessengerApi.html +1 -1
  21. package/documentation/classes/JSearchApi.html +6 -6
  22. package/documentation/classes/JShareApi.html +1 -1
  23. package/documentation/classes/JUserApi.html +5 -5
  24. package/documentation/classes/JWedocApi.html +1 -1
  25. package/documentation/classes/JamespotUserApi.html +1 -1
  26. package/documentation/classes/Network.html +1 -1
  27. package/documentation/classes/WindowBrowser.html +1 -1
  28. package/documentation/classes/WindowMock.html +2 -2
  29. package/documentation/enums/StudioApplicationStatus.html +1 -1
  30. package/documentation/index.html +5 -70
  31. package/documentation/interfaces/ApiError.html +1 -1
  32. package/documentation/interfaces/ApiWrapper.html +1 -1
  33. package/documentation/interfaces/BaseAutocomplete.html +1 -1
  34. package/documentation/interfaces/BaseMessage.html +1 -1
  35. package/documentation/interfaces/Category.html +1 -1
  36. package/documentation/interfaces/CreateGroup.html +1 -1
  37. package/documentation/interfaces/FileBankProps.html +1 -1
  38. package/documentation/interfaces/FolderProps.html +1 -1
  39. package/documentation/interfaces/ListFilterSpec.html +1 -1
  40. package/documentation/interfaces/OF.html +1 -1
  41. package/documentation/interfaces/PagingResults.html +1 -1
  42. package/documentation/interfaces/Result.html +1 -1
  43. package/documentation/interfaces/RootFolderProps.html +1 -1
  44. package/documentation/interfaces/SearchCategoryModel.html +1 -1
  45. package/documentation/interfaces/SearchConfig.html +1 -1
  46. package/documentation/interfaces/SearchFacetModel.html +1 -1
  47. package/documentation/interfaces/SearchFacetValueModel.html +1 -1
  48. package/documentation/interfaces/SearchQuery.html +1 -1
  49. package/documentation/interfaces/SearchQueryFilterModel.html +1 -1
  50. package/documentation/interfaces/SearchQueryOption.html +1 -1
  51. package/documentation/interfaces/SearchQueryResult.html +1 -1
  52. package/documentation/interfaces/SearchQuerySortModel.html +1 -1
  53. package/documentation/interfaces/SearchResultCatProps.html +1 -1
  54. package/documentation/interfaces/SearchResultProps.html +1 -1
  55. package/documentation/interfaces/SpotProps.html +1 -1
  56. package/documentation/interfaces/Taxonomy.html +1 -1
  57. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  58. package/documentation/interfaces/WindowInterface.html +1 -1
  59. package/documentation/modules.html +1 -1
  60. package/lib/jamespot-user-api.js +1 -1
  61. package/lib/jamespot-user-api.js.map +1 -1
  62. package/lib/src/apis/application.d.ts +2 -2
  63. package/lib/src/apis/article.d.ts +5 -4
  64. package/lib/src/apis/assetReservation.d.ts +7 -7
  65. package/lib/src/apis/bookmark.d.ts +2 -2
  66. package/lib/src/apis/filebank.d.ts +2 -2
  67. package/lib/src/apis/group.d.ts +2 -2
  68. package/lib/src/apis/index.d.ts +1 -0
  69. package/lib/src/apis/jamespotUserApi.d.ts +4 -2
  70. package/lib/src/apis/jland.d.ts +14 -1
  71. package/lib/src/apis/licenses.d.ts +44 -0
  72. package/lib/src/apis/user.d.ts +4 -18
  73. package/lib/src/types/application.d.ts +2 -1
  74. package/lib/src/types/asei.d.ts +11 -10
  75. package/lib/src/types/assetReservation.d.ts +3 -3
  76. package/lib/src/types/model.d.ts +4 -1
  77. package/lib/src/types/user.d.ts +23 -12
  78. package/lib/src/types/utils.d.ts +7 -5
  79. package/lib/src/util/network.d.ts +1 -0
  80. package/lib/src/window/index.d.ts +0 -2
  81. package/package.json +2 -2
  82. package/documentation/classes/WindowJestFetch.html +0 -1
  83. package/documentation/classes/WindowMobile.html +0 -1
  84. package/documentation/interfaces/UserModel.html +0 -1
  85. package/lib/src/window/WindowMobile.d.ts +0 -9
@@ -0,0 +1,41 @@
1
+ # JamespotUserApi
2
+
3
+ The JamespotUserApi library facilitates the HTTPS calls to the Jamespot Apis. The only entry point that should be used is the [default export](modules.html#default).
4
+
5
+ ## How to use
6
+
7
+ ## Installation
8
+
9
+ ```
10
+ git clone https://github.com/Jamespot/jamespot-user-api.git
11
+ npm ci
12
+ ```
13
+
14
+ ## Build
15
+
16
+ | commande | format du bundle | avec les mock | hot reload |
17
+ | -------------------- | ---------------- | ------------- | ---------- |
18
+ | `npm run build` | development | non | non |
19
+ | `npm run build-mock` | development | oui | non |
20
+ | `npm run dev` | development | non | non |
21
+ | `npm run dev-mock` | production | non | non |
22
+ | `npm run local` | production | oui | oui |
23
+ | `npm run local-mock` | production | non | oui |
24
+
25
+ ## Test - Jest (using jenkins DB located at https://jenskinsdev.jamespot.pro)
26
+
27
+ ```
28
+ # Lancer tous les tests
29
+ npm run testJenkinsDev
30
+
31
+ # Lancer un fichier de test spécifique - pattern de test a lancer
32
+ npm run testJenkinsDev -- [pathFile] -t [testName]
33
+ ```
34
+
35
+ The configuration is editable in the file setEnvVars.js to use the real api or the mocked one
36
+
37
+ ## Generate doc
38
+
39
+ ```
40
+ npm run doc
41
+ ```
package/README.md CHANGED
@@ -1,41 +1,15 @@
1
1
  # JamespotUserApi
2
2
 
3
- The JamespotUserApi library facilitates the HTTPS calls to the Jamespot Apis. The only entry point that should be used is the [default export](modules.html#default).
3
+ This library facilitates the HTTPS calls to the Jamespot Apis.
4
4
 
5
- ## How to use
6
-
7
- ## Installation
8
-
9
- ```
10
- git clone https://github.com/Jamespot/jamespot-user-api.git
11
- npm ci
12
- ```
13
-
14
- ## Build
15
-
16
- | commande | format du bundle | avec les mock | hot reload |
17
- | -------------------- | ---------------- | ------------- | ---------- |
18
- | `npm run build` | development | non | non |
19
- | `npm run build-mock` | development | oui | non |
20
- | `npm run dev` | development | non | non |
21
- | `npm run dev-mock` | production | non | non |
22
- | `npm run local` | production | oui | oui |
23
- | `npm run local-mock` | production | non | oui |
5
+ Only be use in Jamespot.Pro product pages.
24
6
 
25
- ## Test - Jest (using jenkins DB located at https://jenskinsdev.jamespot.pro)
7
+ Because by default we initialized via browser location and the endpoints are secure by referrer.
26
8
 
27
- ```
28
- # Lancer tous les tests
29
- npm run testJenkinsDev
30
-
31
- # Lancer un fichier de test spécifique - pattern de test a lancer
32
- npm run testJenkinsDev -- [pathFile] -t [testName]
33
- ```
34
-
35
- The configuration is editable in the file setEnvVars.js to use the real api or the mocked one
9
+ ## How to use
36
10
 
37
- ## Generate doc
11
+ ```javascript
12
+ import jApi from 'jamespot-user-api';
38
13
 
39
- ```
40
- npm run doc
14
+ jApi.user.get('user/XXX');
41
15
  ```
@@ -1,12 +1,14 @@
1
1
  :root {
2
- --light-hl-0: #001080;
3
- --dark-hl-0: #9CDCFE;
2
+ --light-hl-0: #AF00DB;
3
+ --dark-hl-0: #C586C0;
4
4
  --light-hl-1: #000000;
5
5
  --dark-hl-1: #D4D4D4;
6
- --light-hl-2: #000000;
7
- --dark-hl-2: #C8C8C8;
8
- --light-hl-3: #008000;
9
- --dark-hl-3: #6A9955;
6
+ --light-hl-2: #001080;
7
+ --dark-hl-2: #9CDCFE;
8
+ --light-hl-3: #A31515;
9
+ --dark-hl-3: #CE9178;
10
+ --light-hl-4: #795E26;
11
+ --dark-hl-4: #DCDCAA;
10
12
  --light-code-background: #F5F5F5;
11
13
  --dark-code-background: #1E1E1E;
12
14
  }
@@ -16,6 +18,7 @@
16
18
  --hl-1: var(--light-hl-1);
17
19
  --hl-2: var(--light-hl-2);
18
20
  --hl-3: var(--light-hl-3);
21
+ --hl-4: var(--light-hl-4);
19
22
  --code-background: var(--light-code-background);
20
23
  } }
21
24
 
@@ -24,6 +27,7 @@
24
27
  --hl-1: var(--dark-hl-1);
25
28
  --hl-2: var(--dark-hl-2);
26
29
  --hl-3: var(--dark-hl-3);
30
+ --hl-4: var(--dark-hl-4);
27
31
  --code-background: var(--dark-code-background);
28
32
  } }
29
33
 
@@ -32,6 +36,7 @@ body.light {
32
36
  --hl-1: var(--light-hl-1);
33
37
  --hl-2: var(--light-hl-2);
34
38
  --hl-3: var(--light-hl-3);
39
+ --hl-4: var(--light-hl-4);
35
40
  --code-background: var(--light-code-background);
36
41
  }
37
42
 
@@ -40,6 +45,7 @@ body.dark {
40
45
  --hl-1: var(--dark-hl-1);
41
46
  --hl-2: var(--dark-hl-2);
42
47
  --hl-3: var(--dark-hl-3);
48
+ --hl-4: var(--dark-hl-4);
43
49
  --code-background: var(--dark-code-background);
44
50
  }
45
51
 
@@ -47,4 +53,5 @@ body.dark {
47
53
  .hl-1 { color: var(--hl-1); }
48
54
  .hl-2 { color: var(--hl-2); }
49
55
  .hl-3 { color: var(--hl-3); }
56
+ .hl-4 { color: var(--hl-4); }
50
57
  pre, code { background: var(--code-background); }