jamespot-user-api 1.0.98 → 1.0.99

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 (141) hide show
  1. package/documentation/assets/search.js +1 -1
  2. package/documentation/classes/AdminStoreApi.html +1 -1
  3. package/documentation/classes/JApplicationApi.html +11 -11
  4. package/documentation/classes/JArticleApi.html +1 -1
  5. package/documentation/classes/JAssetReservation.html +1 -1
  6. package/documentation/classes/JAudienceApi.html +2 -2
  7. package/documentation/classes/JBaseApi.html +1 -1
  8. package/documentation/classes/JBookmarkApi.html +1 -1
  9. package/documentation/classes/JCommunityApi.html +1 -1
  10. package/documentation/classes/JConceptApi.html +2 -2
  11. package/documentation/classes/JDiapazoneApi.html +1 -1
  12. package/documentation/classes/JFileApi.html +5 -5
  13. package/documentation/classes/JFilebankApi.html +1 -1
  14. package/documentation/classes/JGroupApi.html +7 -7
  15. package/documentation/classes/JLandApi.html +1 -1
  16. package/documentation/classes/JLicenseApi.html +4 -4
  17. package/documentation/classes/JMessengerApi.html +1 -1
  18. package/documentation/classes/JSearchApi.html +7 -7
  19. package/documentation/classes/JShareApi.html +1 -1
  20. package/documentation/classes/JUserApi.html +4 -4
  21. package/documentation/classes/JWedocApi.html +1 -1
  22. package/documentation/classes/JamespotUserApi.html +1 -1
  23. package/documentation/classes/Network.html +1 -1
  24. package/documentation/classes/WindowBrowser.html +1 -1
  25. package/documentation/enums/StudioApplicationStatus.html +1 -1
  26. package/documentation/index.html +1 -1
  27. package/documentation/interfaces/AccessRightObject.html +1 -0
  28. package/documentation/interfaces/ApiError.html +1 -1
  29. package/documentation/interfaces/ApiWrapper.html +1 -1
  30. package/documentation/interfaces/BaseAutocomplete.html +1 -1
  31. package/documentation/interfaces/BaseMessage.html +1 -1
  32. package/documentation/interfaces/Category.html +1 -1
  33. package/documentation/interfaces/FileBankProps.html +1 -1
  34. package/documentation/interfaces/FolderProps.html +1 -1
  35. package/documentation/interfaces/ListFilterSpec.html +1 -1
  36. package/documentation/interfaces/OF.html +1 -1
  37. package/documentation/interfaces/ObjectListProps.html +1 -1
  38. package/documentation/interfaces/PagingResults.html +1 -1
  39. package/documentation/interfaces/RootFolderProps.html +1 -1
  40. package/documentation/interfaces/SearchCategoryModel.html +1 -1
  41. package/documentation/interfaces/SearchCategoryValue.html +1 -0
  42. package/documentation/interfaces/SearchConfig.html +1 -1
  43. package/documentation/interfaces/SearchFacetModel.html +1 -1
  44. package/documentation/interfaces/SearchFacetValueModel.html +1 -1
  45. package/documentation/interfaces/SearchQuery.html +1 -1
  46. package/documentation/interfaces/SearchQueryFilterModel.html +1 -1
  47. package/documentation/interfaces/SearchQueryOption.html +1 -1
  48. package/documentation/interfaces/SearchQueryResult.html +1 -1
  49. package/documentation/interfaces/SearchQuerySortModel.html +1 -1
  50. package/documentation/interfaces/SearchResultCatProps.html +1 -1
  51. package/documentation/interfaces/SearchResultPropsApp.html +1 -0
  52. package/documentation/interfaces/SearchResultPropsObject.html +1 -0
  53. package/documentation/interfaces/SpotProps.html +1 -1
  54. package/documentation/interfaces/Taxonomy.html +1 -1
  55. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  56. package/documentation/interfaces/WindowInterface.html +1 -1
  57. package/documentation/modules.html +3 -1
  58. package/{jest.fetch.base-config.ts → jest.config.ts} +6 -1
  59. package/jest.config.vm.ts +11 -0
  60. package/lib/jamespot-user-api.js +1 -1
  61. package/lib/jamespot-user-api.js.map +1 -1
  62. package/lib/{jest.fetch.base-config.d.ts → jest.config.d.ts} +4 -0
  63. package/lib/{jest.fetch.config.d.ts → jest.config.vm.d.ts} +6 -3
  64. package/lib/src/apis/Licenses/licences.test.d.ts +1 -0
  65. package/lib/src/apis/{licenses.d.ts → Licenses/licenses.d.ts} +2 -2
  66. package/lib/src/apis/Licenses/licenses.mock.d.ts +8 -0
  67. package/lib/src/apis/{application.d.ts → application/application.d.ts} +6 -36
  68. package/lib/src/apis/application/application.test.d.ts +1 -0
  69. package/lib/src/apis/application/index.d.ts +2 -0
  70. package/lib/src/apis/application/listApplicationDefault.mock.d.ts +3 -0
  71. package/lib/src/apis/application/types.d.ts +89 -0
  72. package/lib/src/apis/{article.d.ts → article/article.d.ts} +8 -6
  73. package/lib/src/apis/article/article.mock.d.ts +7 -0
  74. package/lib/src/apis/article/article.test.d.ts +1 -0
  75. package/lib/src/apis/assetReservation.mock.d.ts +3 -0
  76. package/lib/src/apis/assetReservation.test.d.ts +1 -0
  77. package/lib/src/apis/{audience.d.ts → audience/audience.d.ts} +2 -2
  78. package/lib/src/apis/audience/audience.mock.d.ts +2 -0
  79. package/lib/src/apis/audience/audience.test.d.ts +1 -0
  80. package/lib/src/apis/bookmark.d.ts +4 -4
  81. package/lib/src/apis/index.d.ts +5 -5
  82. package/lib/src/apis/jamespotUserApi.d.ts +5 -5
  83. package/lib/src/apis/{jland.d.ts → jland/jland.d.ts} +6 -4
  84. package/lib/src/apis/jland/jland.mock.d.ts +5 -0
  85. package/lib/src/apis/jland/jland.test.d.ts +1 -0
  86. package/lib/src/apis/{search.d.ts → search/search.d.ts} +4 -4
  87. package/lib/src/apis/search/search.mock.d.ts +13 -0
  88. package/lib/src/apis/search/search.test.d.ts +1 -0
  89. package/lib/src/apis/user.d.ts +2 -2
  90. package/lib/src/index.d.ts +1 -0
  91. package/lib/src/types/asei.d.ts +3 -3
  92. package/lib/src/types/autocomplete.d.ts +12 -5
  93. package/lib/src/types/bookmark.d.ts +39 -10
  94. package/lib/src/types/group.d.ts +5 -1
  95. package/lib/src/types/index.d.ts +1 -1
  96. package/lib/src/types/model.d.ts +7 -0
  97. package/lib/src/types/realtime.d.ts +25 -0
  98. package/lib/src/types/search.d.ts +43 -16
  99. package/lib/src/types/user.d.ts +6 -15
  100. package/lib/src/types/utils.d.ts +33 -14
  101. package/lib/src/util/Test.d.ts +9 -0
  102. package/lib/src/util/ensure.d.ts +15 -0
  103. package/lib/src/util/network.mock.d.ts +3 -0
  104. package/lib/src/window/index.d.ts +0 -1
  105. package/package.json +3 -5
  106. package/phpunitMock/articleCount-mpArticle.json +1 -0
  107. package/phpunitMock/articleCreate-mpArticle-little.json +18 -0
  108. package/phpunitMock/articleDelete-mpArticle.json +7 -0
  109. package/phpunitMock/articleGet-mpArticle-list.json +39 -0
  110. package/phpunitMock/articleUpdate-mpArticleView.json +39 -0
  111. package/phpunitMock/assetReservationConfiguration-default.json +14 -0
  112. package/phpunitMock/assetReservationConfiguration-updated.json +14 -0
  113. package/phpunitMock/autocompleteAudience-u.json +64 -0
  114. package/phpunitMock/jLandAdminLogs-empty.json +1 -0
  115. package/phpunitMock/jLandAdminLogs-full.json +98 -0
  116. package/phpunitMock/jLandAdminStats-empty.json +1 -0
  117. package/phpunitMock/licenseManagerAssignLicense-default.json +7 -0
  118. package/phpunitMock/licenseManagerAssignLicense-isAssignLicense.json +1 -0
  119. package/phpunitMock/licenseManagerCountLicensesNotAssigned-count.json +15 -0
  120. package/phpunitMock/licenseManagerGetLicensesAssigned-default.json +48 -0
  121. package/phpunitMock/licenseManagerUnassignLicense-default.json +7 -0
  122. package/phpunitMock/licenseManagerUnassignLicense-isUnassign.json +1 -0
  123. package/phpunitMock/objectListJamespotArticleList-mpArticle-little.json +115 -0
  124. package/phpunitMock/searchGetAdminConfig-default.json +22 -0
  125. package/phpunitMock/searchGetConfig-default.json +249 -0
  126. package/phpunitMock/searchGetLastQueries-default.json +7 -0
  127. package/phpunitMock/searchProposition-gro.json +60 -0
  128. package/phpunitMock/searchQuery-admin.json +53 -0
  129. package/phpunitMock/searchSetAdminConfig-test.json +1 -0
  130. package/phpunitMock/studioList-testUserApiList.json +114 -0
  131. package/documentation/classes/WindowMock.html +0 -10
  132. package/documentation/interfaces/Result.html +0 -1
  133. package/documentation/interfaces/SearchResultProps.html +0 -1
  134. package/jest.fetch.config.ts +0 -7
  135. package/jest.fetch.jenkinsdev.config.ts +0 -7
  136. package/jest.mock.config.ts +0 -8
  137. package/lib/jest.fetch.jenkinsdev.config.d.ts +0 -12
  138. package/lib/jest.mock.config.d.ts +0 -12
  139. package/lib/src/types/application.d.ts +0 -15
  140. package/lib/src/window/WindowJestFetch.d.ts +0 -6
  141. package/lib/src/window/WindowMock.d.ts +0 -16
@@ -1,3 +1,4 @@
1
+ import { jObjectLittle } from './utils';
1
2
  export interface SearchCategoryModel {
2
3
  id: string;
3
4
  mainType: string;
@@ -9,6 +10,10 @@ export interface SearchCategoryModel {
9
10
  typesExcluded: string[];
10
11
  facets: SearchFacetModel[];
11
12
  }
13
+ export interface SearchCategoryValue {
14
+ count: number;
15
+ id: string;
16
+ }
12
17
  export interface SearchFacetModel {
13
18
  facetType: string;
14
19
  facetOptions: any;
@@ -17,10 +22,16 @@ export interface SearchFacetModel {
17
22
  category?: SearchCategoryModel['id'];
18
23
  }
19
24
  export interface SearchFacetValueModel {
25
+ name: string;
20
26
  count: number;
21
- value: string;
27
+ values: SearchFacetValues[];
22
28
  title: string;
23
29
  }
30
+ export declare type SearchFacetValues = {
31
+ count: number;
32
+ value: string;
33
+ title: string;
34
+ };
24
35
  /** *
25
36
  * Used in search query to specify a filter
26
37
  * field : name/id of the filter category (ie skills)
@@ -30,7 +41,7 @@ export interface SearchFacetValueModel {
30
41
  export interface SearchQueryFilterModel {
31
42
  field: string;
32
43
  value: string;
33
- exclude: boolean;
44
+ exclude?: boolean;
34
45
  }
35
46
  /**
36
47
  * Used in search query to specify a filter
@@ -55,7 +66,7 @@ export interface SearchConfig {
55
66
  facets: SearchFacetModel[];
56
67
  };
57
68
  categories: SearchCategoryModel[];
58
- viewcard?: Record<string, {
69
+ viewcard: Record<string, {
59
70
  name: string;
60
71
  title: string;
61
72
  }[]>;
@@ -66,34 +77,50 @@ export interface SearchResultCatProps {
66
77
  showAll?: boolean;
67
78
  results: SearchResultProps[];
68
79
  }
69
- export interface SearchResultProps {
80
+ export declare type SearchResultProps = SearchResultPropsApp | SearchResultPropsObject;
81
+ export interface SearchResultPropsApp {
82
+ name: string;
83
+ title: string;
84
+ icon: string;
85
+ _url: string;
86
+ }
87
+ export interface SearchResultPropsObject {
88
+ id?: number;
70
89
  title: string;
71
90
  picture: string;
72
91
  uri: string;
92
+ type?: string;
93
+ icon?: string;
94
+ _cssColor?: string;
95
+ _url?: string;
96
+ idArticle?: number;
97
+ _user?: {
98
+ title: string;
99
+ };
100
+ _values?: {
101
+ dateModified: string;
102
+ };
73
103
  }
74
104
  export interface SearchQuery {
75
105
  keywords?: string;
76
106
  category?: string;
77
107
  facetCategories?: boolean;
78
108
  filters?: SearchQueryFilterModel[];
109
+ facets?: SearchFacetModel[];
79
110
  page?: number;
80
111
  limit?: number;
81
112
  sort?: SearchQuerySortModel;
82
113
  options?: SearchQueryOption;
114
+ format?: string;
83
115
  }
84
- export interface Result {
85
- id: number;
86
- type: string;
87
- uri: string;
88
- title: string;
89
- mainType: string;
90
- _url: string;
91
- }
92
- export interface SearchQueryResult {
93
- results: Result[];
94
- facets: SearchFacetModel[];
95
- categories: SearchCategoryModel[];
116
+ export interface SearchQueryResult<T extends jObjectLittle = jObjectLittle> {
117
+ start: number;
118
+ count: number;
119
+ results: T[];
120
+ facets: SearchFacetValueModel[];
121
+ categories: SearchCategoryValue[];
96
122
  }
97
123
  export declare type SearchLastQuery = {
98
124
  keywords: string;
99
125
  };
126
+ export declare type SearchAdminConfig = any;
@@ -1,3 +1,4 @@
1
+ import { WidgetsValue } from './model';
1
2
  import { jObjectLittle } from './utils';
2
3
  export declare type UserModel = jObjectLittle & {
3
4
  firstname: string;
@@ -15,21 +16,11 @@ export declare const UserLevel: {
15
16
  readonly EXTERNAL: 3;
16
17
  readonly GUEST: 0;
17
18
  };
18
- export declare type jUserAutocomplete = {
19
- id: string;
20
- uri: string;
21
- shortUri: string;
22
- title: string;
23
- name: string;
24
- mainType: string;
25
- type: string;
26
- label: string;
27
- cssClass: string;
28
- cssColor: string;
29
- class: string;
30
- Pseudo: string;
31
- };
32
19
  export declare type jUserLittle = jObjectLittle & {
33
20
  level: typeof UserLevel[keyof typeof UserLevel];
21
+ dateCreation: string;
22
+ dateModified: string;
23
+ };
24
+ export declare type jUserList = jUserLittle & {
25
+ [key: string]: WidgetsValue;
34
26
  };
35
- export declare type jUserList = jUserLittle & {};
@@ -36,37 +36,52 @@ export declare type Rights = {
36
36
  comment: boolean;
37
37
  member: boolean;
38
38
  };
39
- export declare type Little = {
39
+ export declare type jObjectBase = {
40
40
  id: number;
41
41
  mainType: string;
42
42
  type: string;
43
43
  uri: string;
44
+ dateCreation?: string;
45
+ dateModified?: string;
46
+ };
47
+ export declare type jObjectLittle = jObjectBase & {
44
48
  title: string;
45
49
  _url: string;
46
- dateCreation: string;
47
- dateModified: string;
48
50
  };
49
- export declare type List = Little & {
51
+ export declare type jObjectList = jObjectLittle & {
50
52
  description?: string;
51
- _user: Little;
53
+ _user: jUserLittle;
52
54
  _right: Rights;
53
55
  };
54
- export declare type jObjectLittle = {
55
- id: number;
56
- mainType: string;
57
- type: string;
58
- uri: string;
59
- title: string;
60
- _url: string;
56
+ /**
57
+ * @deprecated Use jObjectLittle instead
58
+ */
59
+ export declare type Little = jObjectLittle;
60
+ /**
61
+ * @deprecated Use jObjectList instead
62
+ */
63
+ export declare type List = jObjectList;
64
+ export declare type jLinkLittle = jObjectBase & {
65
+ srcId: number;
66
+ srcType: string;
67
+ targetId: number;
68
+ targetType: string | null;
69
+ };
70
+ export declare type jLinkList<T extends jObjectBase = jObjectLittle> = jLinkLittle & {
71
+ value: string | null;
72
+ _src?: T;
73
+ _target?: T | undefined;
74
+ };
75
+ export declare type jArticleLittle = jObjectLittle & {
61
76
  dateCreation: string;
62
77
  dateModified: string;
63
78
  };
64
- export declare type jArticleLittle = jObjectLittle & {};
65
- export declare type jArticleList = jObjectLittle & {
79
+ export declare type jArticleList = jArticleLittle & {
66
80
  description?: string;
67
81
  _user: jUserLittle;
68
82
  _right: Rights;
69
83
  };
84
+ export declare type jArticleView = jArticleList & {};
70
85
  export declare type Order = {
71
86
  name: string;
72
87
  sort: 'ASC' | 'DESC';
@@ -92,5 +107,9 @@ export declare type MaybeWithCsrf<T> = T & {
92
107
  export declare type MaybeWithToken<T> = T & {
93
108
  token?: string | undefined;
94
109
  };
110
+ export declare type MaybeWithParent<T extends jObjectBase = jObjectBase> = {
111
+ _parent?: T;
112
+ };
95
113
  export declare type Format = 'raw-little' | 'raw-list' | 'raw-view' | undefined;
96
114
  export declare type ApiReturn<T extends Format, Little, List = Little, View = List, Default = {}> = T extends 'raw-little' ? Little : T extends 'raw-list' ? List : T extends 'raw-view' ? View : Default;
115
+ export declare type ValueOf<T> = T[keyof T];
@@ -0,0 +1,9 @@
1
+ import { JamespotUserApi } from '../apis';
2
+ import { PagingResults, jArticleLittle, jObjectAutocomplete, jObjectLittle } from '../types';
3
+ import { Network } from './network';
4
+ export declare const network: Network;
5
+ export declare const jApi: JamespotUserApi;
6
+ export declare const validateJArticle: <T extends jArticleLittle>(received: T, expected: T, _format: 'raw-little' | 'raw-list' | 'raw-view') => void;
7
+ export declare const validatePagingResults: <T>(received: PagingResults<T>, expected: PagingResults<T>) => void;
8
+ export declare const validateObjectIsFormatLittle: <T extends jObjectLittle = jObjectLittle>(object: T) => boolean;
9
+ export declare const validateObjectIsFormatAutocomplete: <T extends jObjectAutocomplete = jObjectAutocomplete>(object: T) => boolean;
@@ -0,0 +1,15 @@
1
+ import { BookmarkCustom, BookmarkLink, BookmarkRawList, jObjectBase } from '../types';
2
+ declare function ensureIsBookmarkLink(bookmark: BookmarkCustom | BookmarkLink): bookmark is BookmarkLink;
3
+ declare function ensureIsBookmarkCustom(bookmark: BookmarkCustom | BookmarkLink): bookmark is BookmarkCustom;
4
+ declare function ensureIsBookmarkRawList(bookmark: jObjectBase | BookmarkRawList): bookmark is BookmarkRawList;
5
+ declare type jObjectTypes = {
6
+ bookmarkLink: BookmarkRawList;
7
+ };
8
+ declare function ensureObjectIsType<T extends keyof jObjectTypes>(type: T, object: jObjectBase): object is jObjectTypes[T];
9
+ export declare const jEnsure: {
10
+ isBookmarkLink: typeof ensureIsBookmarkLink;
11
+ isBookmarkCustom: typeof ensureIsBookmarkCustom;
12
+ isBookmarkRawList: typeof ensureIsBookmarkRawList;
13
+ objectIsType: typeof ensureObjectIsType;
14
+ };
15
+ export {};
@@ -0,0 +1,3 @@
1
+ import { ApiWrapper } from '../types';
2
+ export declare const miscToken: ApiWrapper<string>;
3
+ export declare const miscTokenCSRF: ApiWrapper<string>;
@@ -1,3 +1,2 @@
1
1
  export * from './Window';
2
2
  export * from './WindowBrowser';
3
- export * from './WindowMock';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-user-api",
3
- "version": "1.0.98",
3
+ "version": "1.0.99",
4
4
  "scripts": {
5
5
  "build": "npx webpack --env NODE_ENV=production",
6
6
  "build-dev-vm": "npx webpack --env NODE_ENV=development --env NODE_BUILD=VM",
@@ -14,10 +14,8 @@
14
14
  "lint:fix": "npx eslint ./src/ --ext .ts,.tsx --fix ",
15
15
  "lint:ci": "eslint --output-file eslint_report.json --format json . --ext .ts,.js",
16
16
  "doc": "npx typedoc",
17
- "testFetch": "jest -c ./jest.fetch.config.ts",
18
- "testMock": "jest -c ./jest.mock.config.ts",
19
- "test": "npm run testMock",
20
- "testJenkinsDev": "jest -c ./jest.fetch.jenkinsdev.config.ts",
17
+ "test": "jest",
18
+ "test:mockVM": "jest -c ./jest.config.vm.ts",
21
19
  "prepare": "husky install"
22
20
  },
23
21
  "main": "lib/jamespot-user-api.js",
@@ -0,0 +1 @@
1
+ { "o": "article", "f": "count", "error": 0, "messages": [], "result": 13 }
@@ -0,0 +1,18 @@
1
+ {
2
+ "o": "article",
3
+ "f": "create",
4
+ "error": 0,
5
+ "messages": [{ "code": 200, "msg": "Enregistrement r\u00e9ussi" }],
6
+ "result": [
7
+ {
8
+ "id": 35,
9
+ "mainType": "article",
10
+ "type": "mpArticle",
11
+ "uri": "mpArticle/35",
12
+ "title": "Article for testArticleCreate",
13
+ "_url": "/article/35",
14
+ "dateCreation": "2023-04-11 14:53:51",
15
+ "dateModified": "2023-04-11 14:53:51"
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "o": "article",
3
+ "f": "delete",
4
+ "error": 0,
5
+ "messages": [{ "code": 200, "msg": "L'article a \u00e9t\u00e9 supprim\u00e9 avec succ\u00e8s" }],
6
+ "result": true
7
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "o": "article",
3
+ "f": "get",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "id": 2,
8
+ "mainType": "article",
9
+ "type": "mpArticle",
10
+ "uri": "mpArticle/2",
11
+ "title": "Article groupe public",
12
+ "_url": "/article/2",
13
+ "dateCreation": "2019-07-19 09:36:25",
14
+ "dateModified": "2019-07-19 09:36:25",
15
+ "_right": {
16
+ "create": true,
17
+ "read": true,
18
+ "publish": false,
19
+ "administrate": true,
20
+ "update": true,
21
+ "delete": true,
22
+ "comment": true,
23
+ "member": true
24
+ },
25
+ "description": "<div class='content-html'></div>",
26
+ "_user": {
27
+ "id": 1,
28
+ "mainType": "user",
29
+ "type": "user",
30
+ "uri": "user/1",
31
+ "title": "AdminJenkins",
32
+ "_url": "/user/1",
33
+ "dateCreation": "2019-03-26 16:29:33",
34
+ "dateModified": "2019-07-19 09:39:23",
35
+ "level": 9
36
+ },
37
+ "_nbAttachedFiles": 0
38
+ }
39
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "o": "article",
3
+ "f": "update",
4
+ "error": 0,
5
+ "messages": [{ "code": 200, "msg": "Enregistrement r\u00e9ussi" }],
6
+ "result": {
7
+ "id": 64,
8
+ "mainType": "article",
9
+ "type": "mpArticle",
10
+ "uri": "mpArticle/64",
11
+ "title": "New Title for testArticleUpdate",
12
+ "_url": "/article/64",
13
+ "dateCreation": "2023-04-11 15:34:46",
14
+ "dateModified": "2023-04-11 15:34:46",
15
+ "_right": {
16
+ "create": true,
17
+ "read": true,
18
+ "publish": false,
19
+ "administrate": true,
20
+ "update": true,
21
+ "delete": true,
22
+ "comment": true,
23
+ "member": true
24
+ },
25
+ "description": "<div class='content-html'></div>",
26
+ "_user": {
27
+ "id": 4,
28
+ "mainType": "user",
29
+ "type": "user",
30
+ "uri": "user/4",
31
+ "title": "Admin1",
32
+ "_url": "/user/4",
33
+ "dateCreation": "2019-07-09 15:48:26",
34
+ "dateModified": "2019-07-09 15:51:24",
35
+ "level": 9
36
+ },
37
+ "processContext": null
38
+ }
39
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "o": "assetReservation",
3
+ "f": "configuration",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "description": "",
8
+ "right": { "manage": true },
9
+ "weekEnd": "0",
10
+ "bookingOpeningTime": "08:00",
11
+ "bookingClosingTime": "21:00",
12
+ "lastBookingSchedule": "20:00"
13
+ }
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "o": "assetReservation",
3
+ "f": "configuration",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "description": "",
8
+ "right": { "manage": true },
9
+ "weekEnd": "0",
10
+ "bookingOpeningTime": "07:00",
11
+ "bookingClosingTime": "20:00",
12
+ "lastBookingSchedule": "20:00"
13
+ }
14
+ }
@@ -0,0 +1,64 @@
1
+ {
2
+ "o": "autocomplete",
3
+ "f": "audience",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": [
7
+ {
8
+ "id": "user/6",
9
+ "uri": "user/6",
10
+ "shortUri": "u6",
11
+ "title": "User1",
12
+ "name": "User1",
13
+ "mainType": "user",
14
+ "type": "user",
15
+ "label": "Utilisateur",
16
+ "cssClass": "user",
17
+ "cssColor": "#a4acaf",
18
+ "class": "user-selector-user",
19
+ "Pseudo": "User1"
20
+ },
21
+ {
22
+ "id": "user/7",
23
+ "uri": "user/7",
24
+ "shortUri": "u7",
25
+ "title": "User2",
26
+ "name": "User2",
27
+ "mainType": "user",
28
+ "type": "user",
29
+ "label": "Utilisateur",
30
+ "cssClass": "user",
31
+ "cssColor": "#a4acaf",
32
+ "class": "user-selector-user",
33
+ "Pseudo": "User2"
34
+ },
35
+ {
36
+ "id": "spot/3",
37
+ "idspot": "3",
38
+ "uri": "spot/3",
39
+ "shortUri": "s3",
40
+ "title": "Groupe mod\u00e9r\u00e9",
41
+ "name": "Groupe mod\u00e9r\u00e9",
42
+ "mainType": "spot",
43
+ "type": "spot",
44
+ "label": "Groupe",
45
+ "cssClass": "group",
46
+ "cssColor": "#e34d55",
47
+ "class": "user-selector-spot"
48
+ },
49
+ {
50
+ "id": "spot/1",
51
+ "idspot": "1",
52
+ "uri": "spot/1",
53
+ "shortUri": "s1",
54
+ "title": "Groupe public",
55
+ "name": "Groupe public",
56
+ "mainType": "spot",
57
+ "type": "spot",
58
+ "label": "Groupe",
59
+ "cssClass": "group",
60
+ "cssColor": "#e34d55",
61
+ "class": "user-selector-spot"
62
+ }
63
+ ]
64
+ }
@@ -0,0 +1 @@
1
+ { "o": "jLand", "f": "adminLogs", "error": 0, "messages": [], "result": [] }
@@ -0,0 +1,98 @@
1
+ {
2
+ "o": "jLand",
3
+ "f": "adminLogs",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": [
7
+ {
8
+ "idLog": 155924,
9
+ "slug": "jday-2022.jamespot.pro",
10
+ "dateCreation": "2023-04-13T10:00:12.000Z",
11
+ "map": "170",
12
+ "mail": "cyril.barragan@jamespot.com",
13
+ "action": "access",
14
+ "mode": "controlled"
15
+ },
16
+ {
17
+ "idLog": 71508,
18
+ "slug": "jday-2022.jamespot.pro",
19
+ "dateCreation": "2022-10-13T13:12:30.000Z",
20
+ "map": "jpro/office",
21
+ "mail": "alain.garnier@jamespot.com",
22
+ "action": "access",
23
+ "mode": "controlled"
24
+ },
25
+ {
26
+ "idLog": 44612,
27
+ "slug": "jday-2022.jamespot.pro",
28
+ "dateCreation": "2022-08-23T15:57:10.000Z",
29
+ "map": "jpro/office",
30
+ "mail": "romaric.pighetti@jamespot.com",
31
+ "action": "access",
32
+ "mode": "controlled"
33
+ },
34
+ {
35
+ "idLog": 44611,
36
+ "slug": "jday-2022.jamespot.pro",
37
+ "dateCreation": "2022-08-23T15:56:31.000Z",
38
+ "map": "jpro/office",
39
+ "mail": "romaric.pighetti@jamespot.com",
40
+ "action": "access",
41
+ "mode": "controlled"
42
+ },
43
+ {
44
+ "idLog": 44610,
45
+ "slug": "jday-2022.jamespot.pro",
46
+ "dateCreation": "2022-08-23T15:56:30.000Z",
47
+ "map": "jpro/office",
48
+ "mail": "romaric.pighetti@jamespot.com",
49
+ "action": "access",
50
+ "mode": "controlled"
51
+ },
52
+ {
53
+ "idLog": 44609,
54
+ "slug": "jday-2022.jamespot.pro",
55
+ "dateCreation": "2022-08-23T15:56:29.000Z",
56
+ "map": "jpro/office",
57
+ "mail": "romaric.pighetti@jamespot.com",
58
+ "action": "access",
59
+ "mode": "controlled"
60
+ },
61
+ {
62
+ "idLog": 44608,
63
+ "slug": "jday-2022.jamespot.pro",
64
+ "dateCreation": "2022-08-23T15:56:26.000Z",
65
+ "map": "jpro/office",
66
+ "mail": "romaric.pighetti@jamespot.com",
67
+ "action": "access",
68
+ "mode": "controlled"
69
+ },
70
+ {
71
+ "idLog": 36888,
72
+ "slug": "jday-2022.jamespot.pro",
73
+ "dateCreation": "2022-08-01T12:44:01.000Z",
74
+ "map": "jpro/office",
75
+ "mail": "romaric.pighetti@jamespot.com",
76
+ "action": "access",
77
+ "mode": "controlled"
78
+ },
79
+ {
80
+ "idLog": 36887,
81
+ "slug": "jday-2022.jamespot.pro",
82
+ "dateCreation": "2022-08-01T12:44:01.000Z",
83
+ "map": "jpro/office",
84
+ "mail": "romaric.pighetti@jamespot.com",
85
+ "action": "access",
86
+ "mode": "controlled"
87
+ },
88
+ {
89
+ "idLog": 36886,
90
+ "slug": "jday-2022.jamespot.pro",
91
+ "dateCreation": "2022-08-01T12:43:59.000Z",
92
+ "map": "jpro/office",
93
+ "mail": "romaric.pighetti@jamespot.com",
94
+ "action": "access",
95
+ "mode": "controlled"
96
+ }
97
+ ]
98
+ }
@@ -0,0 +1 @@
1
+ { "o": "jLand", "f": "adminStats", "error": 0, "messages": [], "result": [] }
@@ -0,0 +1,7 @@
1
+ {
2
+ "o": "licenseManager",
3
+ "f": "assignLicense",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": false
7
+ }
@@ -0,0 +1 @@
1
+ { "o": "licenseManager", "f": "assignLicense", "error": 0, "messages": [], "result": true }
@@ -0,0 +1,15 @@
1
+ {
2
+ "o": "licenseManager",
3
+ "f": "countLicensesNotAssigned",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "JLO1": 0,
8
+ "JLO2": 0,
9
+ "JLO3": 0,
10
+ "JLO5": 0,
11
+ "JLMO2": 0,
12
+ "JLV3": 1,
13
+ "JLC3": 0
14
+ }
15
+ }
@@ -0,0 +1,48 @@
1
+ {
2
+ "o": "licenseManager",
3
+ "f": "getLicensesAssigned",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": [
7
+ {
8
+ "id": 4,
9
+ "kind": "capacity-JLO1",
10
+ "dateCreation": "2023-04-13 16:02:53",
11
+ "idFeature": 7,
12
+ "uri": "jlandmap/16",
13
+ "contentId": 16,
14
+ "contentType": "jlandmap",
15
+ "status": 0
16
+ },
17
+ {
18
+ "id": 6,
19
+ "kind": "capacity-JLO3",
20
+ "dateCreation": "2023-04-13 16:02:54",
21
+ "idFeature": 9,
22
+ "uri": "jlandmap/18",
23
+ "contentId": 18,
24
+ "contentType": "jlandmap",
25
+ "status": 0
26
+ },
27
+ {
28
+ "id": 7,
29
+ "kind": "capacity-JLO5",
30
+ "dateCreation": "2023-04-13 16:02:54",
31
+ "idFeature": 10,
32
+ "uri": "jlandmap/19",
33
+ "contentId": 19,
34
+ "contentType": "jlandmap",
35
+ "status": 0
36
+ },
37
+ {
38
+ "id": 8,
39
+ "kind": "capacity-JLO5",
40
+ "dateCreation": "2023-04-13 16:02:54",
41
+ "idFeature": 10,
42
+ "uri": "jlandmap/20",
43
+ "contentId": 20,
44
+ "contentType": "jlandmap",
45
+ "status": 0
46
+ }
47
+ ]
48
+ }