jamespot-user-api 1.0.84 → 1.0.90
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/README-internal.md +41 -0
- package/README.md +7 -33
- package/documentation/assets/highlight.css +13 -6
- package/documentation/assets/search.js +1 -1
- package/documentation/classes/AdminStoreApi.html +1 -1
- package/documentation/classes/JApplicationApi.html +8 -8
- package/documentation/classes/JArticleApi.html +1 -1
- package/documentation/classes/JAssetReservation.html +1 -1
- package/documentation/classes/JAudienceApi.html +1 -1
- package/documentation/classes/JBaseApi.html +1 -1
- package/documentation/classes/JBookmarkApi.html +1 -1
- package/documentation/classes/JCommunityApi.html +1 -1
- package/documentation/classes/JConceptApi.html +1 -1
- package/documentation/classes/JDiapazoneApi.html +1 -1
- package/documentation/classes/JFileApi.html +1 -1
- package/documentation/classes/JFilebankApi.html +1 -1
- package/documentation/classes/JGroupApi.html +2 -2
- package/documentation/classes/JLandApi.html +1 -1
- package/documentation/classes/JLicenseApi.html +18 -0
- package/documentation/classes/JMessengerApi.html +1 -1
- package/documentation/classes/JSearchApi.html +6 -6
- package/documentation/classes/JShareApi.html +1 -1
- package/documentation/classes/JUserApi.html +5 -5
- package/documentation/classes/JWedocApi.html +1 -1
- package/documentation/classes/JamespotUserApi.html +1 -1
- package/documentation/classes/Network.html +1 -1
- package/documentation/classes/WindowBrowser.html +1 -1
- package/documentation/classes/WindowMock.html +2 -2
- package/documentation/enums/StudioApplicationStatus.html +1 -1
- package/documentation/index.html +5 -70
- package/documentation/interfaces/ApiError.html +1 -1
- package/documentation/interfaces/ApiWrapper.html +1 -1
- package/documentation/interfaces/BaseAutocomplete.html +1 -1
- package/documentation/interfaces/BaseMessage.html +1 -1
- package/documentation/interfaces/Category.html +1 -1
- package/documentation/interfaces/CreateGroup.html +1 -1
- package/documentation/interfaces/FileBankProps.html +1 -1
- package/documentation/interfaces/FolderProps.html +1 -1
- package/documentation/interfaces/ListFilterSpec.html +1 -1
- package/documentation/interfaces/OF.html +1 -1
- package/documentation/interfaces/PagingResults.html +1 -1
- package/documentation/interfaces/Result.html +1 -1
- package/documentation/interfaces/RootFolderProps.html +1 -1
- package/documentation/interfaces/SearchCategoryModel.html +1 -1
- package/documentation/interfaces/SearchConfig.html +1 -1
- package/documentation/interfaces/SearchFacetModel.html +1 -1
- package/documentation/interfaces/SearchFacetValueModel.html +1 -1
- package/documentation/interfaces/SearchQuery.html +1 -1
- package/documentation/interfaces/SearchQueryFilterModel.html +1 -1
- package/documentation/interfaces/SearchQueryOption.html +1 -1
- package/documentation/interfaces/SearchQueryResult.html +1 -1
- package/documentation/interfaces/SearchQuerySortModel.html +1 -1
- package/documentation/interfaces/SearchResultCatProps.html +1 -1
- package/documentation/interfaces/SearchResultProps.html +1 -1
- package/documentation/interfaces/SpotProps.html +1 -1
- package/documentation/interfaces/Taxonomy.html +1 -1
- package/documentation/interfaces/TaxonomyCreate.html +1 -1
- package/documentation/interfaces/WindowInterface.html +1 -1
- package/documentation/modules.html +1 -1
- package/lib/jamespot-user-api.js +1 -1
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/src/apis/application.d.ts +2 -2
- package/lib/src/apis/article.d.ts +5 -4
- package/lib/src/apis/bookmark.d.ts +2 -2
- package/lib/src/apis/filebank.d.ts +2 -2
- package/lib/src/apis/group.d.ts +2 -2
- package/lib/src/apis/index.d.ts +1 -0
- package/lib/src/apis/jamespotUserApi.d.ts +4 -2
- package/lib/src/apis/jland.d.ts +14 -1
- package/lib/src/apis/licenses.d.ts +44 -0
- package/lib/src/apis/user.d.ts +4 -18
- package/lib/src/types/asei.d.ts +11 -10
- package/lib/src/types/assetReservation.d.ts +3 -3
- package/lib/src/types/user.d.ts +23 -12
- package/lib/src/types/utils.d.ts +5 -3
- package/lib/src/util/network.d.ts +1 -0
- package/package.json +1 -1
- package/documentation/interfaces/UserModel.html +0 -1
|
@@ -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
|
-
|
|
3
|
+
This library facilitates the HTTPS calls to the Jamespot Apis.
|
|
4
4
|
|
|
5
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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: #
|
|
3
|
-
--dark-hl-0: #
|
|
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: #
|
|
7
|
-
--dark-hl-2: #
|
|
8
|
-
--light-hl-3: #
|
|
9
|
-
--dark-hl-3: #
|
|
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); }
|