jamespot-user-api 1.0.107 → 1.0.108

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 (98) hide show
  1. package/README-internal.md +14 -14
  2. package/documentation/assets/search.js +1 -1
  3. package/documentation/classes/AdminLicenseApi.html +11 -11
  4. package/documentation/classes/AdminStoreApi.html +1 -1
  5. package/documentation/classes/AdminUtilsApi.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/JDiapazoneApi.html +1 -1
  14. package/documentation/classes/JFileApi.html +5 -5
  15. package/documentation/classes/JFilebankApi.html +1 -1
  16. package/documentation/classes/JGroupApi.html +8 -8
  17. package/documentation/classes/JLandApi.html +1 -1
  18. package/documentation/classes/JMessengerApi.html +1 -1
  19. package/documentation/classes/JSearchApi.html +6 -6
  20. package/documentation/classes/JShareApi.html +1 -1
  21. package/documentation/classes/JTaxonomyApi.html +2 -2
  22. package/documentation/classes/JUserApi.html +4 -4
  23. package/documentation/classes/JWedocApi.html +1 -1
  24. package/documentation/classes/JamespotUserApi.html +1 -1
  25. package/documentation/classes/Network.html +1 -1
  26. package/documentation/classes/WindowBrowser.html +1 -1
  27. package/documentation/enums/StudioApplicationStatus.html +1 -1
  28. package/documentation/index.html +1 -1
  29. package/documentation/interfaces/AccessRightObject.html +1 -1
  30. package/documentation/interfaces/AdminLicenseUser.html +1 -1
  31. package/documentation/interfaces/ApiDefaultWrapper.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/FileBankProps.html +1 -1
  37. package/documentation/interfaces/FolderProps.html +1 -1
  38. package/documentation/interfaces/ListFilterSpec.html +1 -1
  39. package/documentation/interfaces/OF.html +1 -1
  40. package/documentation/interfaces/ObjectListProps.html +1 -1
  41. package/documentation/interfaces/PagingResults.html +1 -1
  42. package/documentation/interfaces/RootFolderProps.html +1 -1
  43. package/documentation/interfaces/SearchCategoryModel.html +1 -1
  44. package/documentation/interfaces/SearchCategoryValue.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/SearchResultPropsApp.html +1 -1
  55. package/documentation/interfaces/SearchResultPropsObject.html +1 -1
  56. package/documentation/interfaces/SpotProps.html +1 -1
  57. package/documentation/interfaces/Taxonomy.html +1 -1
  58. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  59. package/documentation/interfaces/WindowInterface.html +1 -1
  60. package/documentation/modules.html +19 -6
  61. package/lib/jamespot-user-api.js +1 -1
  62. package/lib/jamespot-user-api.js.map +1 -1
  63. package/lib/src/apis/{assetReservation.d.ts → assetReservation/assetReservation.d.ts} +3 -4
  64. package/lib/src/apis/assetReservation/assetReservation.mock.d.ts +6 -0
  65. package/lib/src/apis/base.d.ts +1 -1
  66. package/lib/src/apis/diapazone/diapazone.d.ts +6 -0
  67. package/lib/src/apis/diapazone/diapazone.mock.d.ts +3 -0
  68. package/lib/src/apis/diapazone/diapazone.test.d.ts +1 -0
  69. package/lib/src/apis/group/group.types.d.ts +1 -0
  70. package/lib/src/apis/index.d.ts +2 -2
  71. package/lib/src/apis/jamespotUserApi.d.ts +2 -2
  72. package/lib/src/apis/share/share.d.ts +1 -0
  73. package/lib/src/apis/wedoc/wedoc.d.ts +1 -1
  74. package/lib/src/apis/wedoc/wedoc.mock.d.ts +1 -0
  75. package/lib/src/types/assetReservation.d.ts +2 -2
  76. package/lib/src/types/diapazone.d.ts +12 -0
  77. package/lib/src/types/index.d.ts +1 -0
  78. package/lib/src/types/user.d.ts +1 -1
  79. package/lib/src/types/utils.d.ts +5 -0
  80. package/lib/src/types/wedoc.d.ts +2 -0
  81. package/lib/src/util/Test.d.ts +10 -1
  82. package/lib/src/util/object.d.ts +11 -0
  83. package/package.json +1 -1
  84. package/phpunitMock/articleCreate-animatedMeeting.json +41 -0
  85. package/phpunitMock/assetReservationBookByDate-default.json +76 -0
  86. package/phpunitMock/assetReservationCancelReservation-default.json +75 -0
  87. package/phpunitMock/assetReservationCreateReservation-default.json +75 -0
  88. package/phpunitMock/diapazoneCreateDiapazone.json +18 -0
  89. package/phpunitMock/objectListAssetReservationList-default.json +428 -0
  90. package/phpunitMock/objectListDiapazoneQueryList-default-raw-list.json +77 -0
  91. package/phpunitMock/onlyOfficeGetFile-get-file.json +2 -1
  92. package/phpunitMock/onlyOfficeGetFiles-get-files.json +2 -1
  93. package/phpunitMock/onlyOfficeGetObjectAccessHash-default.json +7 -0
  94. package/phpunitMock/spotGetProperties-default.json +1 -0
  95. package/pnpm-lock.yaml +12425 -0
  96. package/lib/src/apis/assetReservation.mock.d.ts +0 -3
  97. package/lib/src/apis/diapazone.d.ts +0 -24
  98. /package/lib/src/apis/{assetReservation.test.d.ts → assetReservation/assetReservation.test.d.ts} +0 -0
@@ -0,0 +1,6 @@
1
+ import { JBaseApi } from '../base';
2
+ import { ApiWrapper, BaseMessages, Filters, Orders, PagingResults, jDiapazoneList } from '../../types';
3
+ export declare class JDiapazoneApi extends JBaseApi {
4
+ create<T>(type: string, token: string, title: string, dateStart: string, publishTo: Array<string>): Promise<ApiWrapper<Array<T>, BaseMessages>>;
5
+ getList(query?: string, filters?: Filters, orders?: Orders, page?: number, format?: string): Promise<ApiWrapper<PagingResults<jDiapazoneList>>>;
6
+ }
@@ -0,0 +1,3 @@
1
+ import { ApiWrapper, BaseMessages, jArticleView, jDiapazoneList, PagingResults } from '../../types';
2
+ export declare const diapazoneCreateDiapazone: ApiWrapper<Array<jArticleView>, BaseMessages>;
3
+ export declare const diapazoneQueryList: ApiWrapper<PagingResults<jDiapazoneList>>;
@@ -0,0 +1 @@
1
+ export {};
@@ -66,6 +66,7 @@ export declare type GroupPropertiesOptions = {
66
66
  mail_frequency: Array<ValueLabel>;
67
67
  widgets: Array<GroupWidget>;
68
68
  custom_widgets: Record<string, GroupCustomWidget> | [];
69
+ isArchive: number;
69
70
  };
70
71
  export declare type RssType = {
71
72
  url: string;
@@ -1,12 +1,12 @@
1
1
  export * from './admin';
2
2
  export * from './application';
3
3
  export * from './article/article';
4
- export * from './assetReservation';
4
+ export * from './assetReservation/assetReservation';
5
5
  export * from './audience/audience';
6
6
  export * from './base';
7
7
  export * from './bookmark/bookmark';
8
8
  export * from './community';
9
- export * from './diapazone';
9
+ export * from './diapazone/diapazone';
10
10
  export * from './file';
11
11
  export * from './filebank';
12
12
  export * from './group';
@@ -2,9 +2,10 @@ import { AdminLicenseApi, AdminUtilsApi, AdminStoreApi } from './admin';
2
2
  import { JApplicationApi } from './application';
3
3
  import { JArticleApi } from './article/article';
4
4
  import { JAseiApi } from './asei';
5
- import { JAssetReservation } from './assetReservation';
5
+ import { JAssetReservation } from './assetReservation/assetReservation';
6
6
  import { JAudienceApi } from './audience/audience';
7
7
  import { JCommunityApi } from './community';
8
+ import { JDiapazoneApi } from './diapazone/diapazone';
8
9
  import { JDriveApi } from './drive/drive';
9
10
  import { JFileApi } from './file';
10
11
  import { JFilebankApi } from './filebank';
@@ -16,7 +17,6 @@ import { JSearchApi } from './search/search';
16
17
  import { JBookmarkApi } from './bookmark/bookmark';
17
18
  import { JTaxonomyApi } from './taxonomy';
18
19
  import { JUserApi } from './user/user';
19
- import { JDiapazoneApi } from './diapazone';
20
20
  import { JWedocApi } from './wedoc/wedoc';
21
21
  import { Network } from '../util/network';
22
22
  import { JShareApi } from './share/share';
@@ -11,4 +11,5 @@ export declare class JShareApi extends JBaseApi {
11
11
  write: string[];
12
12
  }, message: string, generalAccessRule: ShareGeneralAccessRules): Promise<ApiWrapper<boolean>>;
13
13
  getObjectAccess(uri: string): Promise<ApiWrapper<ShareAccessProps>>;
14
+ getObjectAccessHash(uri: string): Promise<ApiWrapper<string>>;
14
15
  }
@@ -8,7 +8,7 @@ export declare class JWedocApi extends JBaseApi {
8
8
  idFile: number;
9
9
  article: jArticleLittle;
10
10
  }>>;
11
- deleteFile(idFile: number): Promise<ApiWrapper<boolean>>;
11
+ deleteFile(idFile: number, withParent?: boolean): Promise<ApiWrapper<boolean>>;
12
12
  createFile(title: string, type: string, publishTo: string[]): Promise<ApiWrapper<{
13
13
  idFile: number;
14
14
  article: jArticleLittle;
@@ -11,4 +11,5 @@ export declare const wedocDuplicateFile: ApiWrapper<{
11
11
  export declare const wedocUpdateFile: ApiWrapper<boolean>;
12
12
  export declare const wedocDeleteFile: ApiWrapper<boolean>;
13
13
  export declare const wedocGetFile: ApiWrapper<WedocFileType>;
14
+ export declare const wedocGetObjectAccessHash: ApiWrapper<string>;
14
15
  export declare const wedocGetFiles: ApiWrapper<PagingResults<WedocFileType>>;
@@ -11,8 +11,8 @@ export declare type AssetReservationConfiguration = {
11
11
  lastBookingSchedule: string;
12
12
  };
13
13
  export declare type BookableAssetList = jArticleList & {
14
- _isColorDark: boolean;
15
- assetPlannerBackgroundColor: string;
14
+ _isColorDark: boolean | null;
15
+ assetPlannerBackgroundColor: string | null;
16
16
  };
17
17
  export declare type BookableAssetView = BookableAssetList & {
18
18
  assetBanner: {
@@ -0,0 +1,12 @@
1
+ import { Audience, jObjectList } from './utils';
2
+ export declare type jDiapazoneList = jObjectList & {
3
+ dateStart: string;
4
+ animatedMeetingContent: Record<string, unknown>;
5
+ _extend: {
6
+ status: string;
7
+ statusValue: 1 | 2 | 3;
8
+ date: string;
9
+ };
10
+ _audience: Audience[];
11
+ _audienceLeft: number;
12
+ };
@@ -5,6 +5,7 @@ export * from './asei';
5
5
  export * from './assetReservation';
6
6
  export * from './autocomplete';
7
7
  export * from './bookmark';
8
+ export * from './diapazone';
8
9
  export * from './drive';
9
10
  export * from './file';
10
11
  export * from './mediaLibrary';
@@ -21,7 +21,7 @@ export declare const UserLevel: {
21
21
  readonly GUEST: 0;
22
22
  };
23
23
  export declare type jUserLittle = jObjectLittle & {
24
- level: typeof UserLevel[keyof typeof UserLevel];
24
+ level: (typeof UserLevel)[keyof typeof UserLevel];
25
25
  dateCreation: string;
26
26
  dateModified: string;
27
27
  };
@@ -1,3 +1,4 @@
1
+ import { jSpotLittle } from './spot';
1
2
  import { jUserLittle } from './user';
2
3
  /**
3
4
  * Ease usage in IDE by decomposing complex types
@@ -105,6 +106,7 @@ export declare type Order = {
105
106
  name: string;
106
107
  sort: 'ASC' | 'DESC';
107
108
  };
109
+ export declare type Audience = jUserLittle | jSpotLittle;
108
110
  export declare type Orders = Array<Order>;
109
111
  export declare type FilterValue = boolean | string | number | string[] | {
110
112
  srcId: number | string;
@@ -121,6 +123,9 @@ export declare type Filter = {
121
123
  value: FilterValue;
122
124
  operator?: '<' | '>' | '<=' | '>=' | '!=' | '<>' | 'like' | 'between' | 'is' | 'is not' | 'in' | 'link' | 'match' | 'equal';
123
125
  method?: '<' | '>' | '<=' | '>=' | '!=' | '<>' | '+' | '-' | 'like' | 'between' | 'is' | 'is not' | 'in' | 'link' | 'match' | 'equal';
126
+ or?: boolean;
127
+ isNull?: boolean;
128
+ isNotNull?: boolean;
124
129
  };
125
130
  export declare type Filters = Array<Filter>;
126
131
  export declare type MaybeWithToken<T> = T & {
@@ -12,9 +12,11 @@ export declare type WedocFileType = jObjectBase & {
12
12
  mimetype: string;
13
13
  _extend: {
14
14
  generalAccessRule: string;
15
+ generalAccessHash: string | undefined;
15
16
  dateModified: string;
16
17
  dateCreation: string;
17
18
  fileInfo: WedocFileInfo;
19
+ parentFiles: number[];
18
20
  };
19
21
  _audience: WedocFileAudienceType[];
20
22
  _right: Rights;
@@ -1,5 +1,5 @@
1
1
  import { JamespotUserApi } from '../apis';
2
- import { ApiDefaultWrapper, PagingResults, jArticleLittle, jObjectAutocomplete, jObjectList, jUserList } from '../types';
2
+ import { ApiDefaultWrapper, PagingResults, jArticleLittle, jObjectAutocomplete, jObjectList, jUserList, Rights } from '../types';
3
3
  import { FetchResponseType, WindowBrowser } from '../window';
4
4
  import { Network } from './network';
5
5
  export declare const windowBrowser: WindowBrowser;
@@ -33,3 +33,12 @@ export declare const validateUserIsFormatList: <T extends jUserList = jUserList>
33
33
  export declare const validateObjectIsFormatAutocomplete: <T extends jObjectAutocomplete = jObjectAutocomplete>(object: T) => void;
34
34
  export declare const expectToHaveProperties: <T>(props: string[], payload: T[]) => void;
35
35
  export declare const expectToBeArray: <T>(arr: T[]) => void;
36
+ export declare const validateRights: (object: Rights) => void;
37
+ export declare const jDynamicProperties: string[];
38
+ /**
39
+ * Valorise toutes les propriétés Jamespot dynamiques avec leur typeof, sur toute la profondeur de l'objet.
40
+ * @param obj objet à modifier
41
+ * @param extraProperties propriétés supplémentaires à remplacer
42
+ */
43
+ export declare function replaceJDynamicProperties(obj: any, ...extraProperties: string[]): any;
44
+ export declare const validatePhpUnitSnapshot: (phpUnitSnapshot: object, mock: object, ...extraPropertiesToReplace: string[]) => void;
@@ -1 +1,12 @@
1
1
  export declare function deepEqual(a: any, b: any, ignoreAttributes?: Array<string>): boolean;
2
+ /**
3
+ * Remplace la valeur de propriétés par leur typeof, sur toute la profondeur de l'objet.
4
+ * Valorisation avec le typeof pour conserver la vérification du type dans le cas d'une comparaison d'objets.
5
+ * Avantages :
6
+ * - gère l'ensemble de la profondeur de l'objet
7
+ * - peut être intégré à un test toMatchObject qui permet une meilleure
8
+ * lisibilité des erreurs potentielles ({@see validatePhpUnitSnapshot})
9
+ * @param obj objet à modifier
10
+ * @param replacedProperties propriétés à remplacer
11
+ */
12
+ export declare function replacePropertiesWithTypes(obj: any, replacedProperties: string[]): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-user-api",
3
- "version": "1.0.107",
3
+ "version": "1.0.108",
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",
@@ -0,0 +1,41 @@
1
+ {
2
+ "o": "article",
3
+ "f": "create",
4
+ "error": 0,
5
+ "messages": [{ "code": 200, "msg": "Enregistrement r\u00e9ussi" }],
6
+ "result": [
7
+ {
8
+ "id": 18,
9
+ "mainType": "article",
10
+ "type": "mpArticle",
11
+ "uri": "mpArticle/18",
12
+ "dateCreation": "2023-06-23 14:15:22",
13
+ "dateModified": "2023-06-23 14:15:22",
14
+ "title": "animatedMeeting snapshot",
15
+ "_url": "/article/18",
16
+ "_right": {
17
+ "create": true,
18
+ "read": true,
19
+ "publish": false,
20
+ "administrate": true,
21
+ "update": true,
22
+ "delete": true,
23
+ "comment": true,
24
+ "member": true
25
+ },
26
+ "description": "<div class='content-html'></div>",
27
+ "_user": {
28
+ "id": 1,
29
+ "mainType": "user",
30
+ "type": "user",
31
+ "uri": "user/1",
32
+ "dateCreation": "2019-03-26 16:29:33",
33
+ "dateModified": "2019-07-19 09:39:23",
34
+ "title": "AdminJenkins",
35
+ "_url": "/user/1",
36
+ "level": 9
37
+ },
38
+ "processContext": null
39
+ }
40
+ ]
41
+ }
@@ -0,0 +1,76 @@
1
+ {
2
+ "o": "assetReservation",
3
+ "f": "bookByDate",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": [
7
+ {
8
+ "id": 71,
9
+ "mainType": "article",
10
+ "type": "bookableAsset",
11
+ "uri": "bookableAsset/71",
12
+ "dateCreation": "2023-06-26 11:56:56",
13
+ "dateModified": "2023-06-26 11:56:56",
14
+ "title": "test asset 1",
15
+ "_url": "/ng/app/assetReservation/asset/71",
16
+ "_right": {
17
+ "create": true,
18
+ "read": true,
19
+ "publish": true,
20
+ "administrate": true,
21
+ "update": true,
22
+ "delete": true,
23
+ "comment": false,
24
+ "member": true
25
+ },
26
+ "description": "<div class='content-html'></div>",
27
+ "_user": {
28
+ "id": 1,
29
+ "mainType": "user",
30
+ "type": "user",
31
+ "uri": "user/1",
32
+ "dateCreation": "2019-03-26 16:29:33",
33
+ "dateModified": "2019-07-19 09:39:23",
34
+ "title": "AdminJenkins",
35
+ "_url": "/user/1",
36
+ "level": 9
37
+ },
38
+ "_isColorDark": null,
39
+ "assetPlannerBackgroundColor": null
40
+ },
41
+ {
42
+ "id": 72,
43
+ "mainType": "article",
44
+ "type": "bookableAsset",
45
+ "uri": "bookableAsset/72",
46
+ "dateCreation": "2023-06-26 11:57:03",
47
+ "dateModified": "2023-06-26 11:57:03",
48
+ "title": "test asset 2",
49
+ "_url": "/ng/app/assetReservation/asset/72",
50
+ "_right": {
51
+ "create": true,
52
+ "read": true,
53
+ "publish": true,
54
+ "administrate": true,
55
+ "update": true,
56
+ "delete": true,
57
+ "comment": false,
58
+ "member": true
59
+ },
60
+ "description": "<div class='content-html'></div>",
61
+ "_user": {
62
+ "id": 1,
63
+ "mainType": "user",
64
+ "type": "user",
65
+ "uri": "user/1",
66
+ "dateCreation": "2019-03-26 16:29:33",
67
+ "dateModified": "2019-07-19 09:39:23",
68
+ "title": "AdminJenkins",
69
+ "_url": "/user/1",
70
+ "level": 9
71
+ },
72
+ "_isColorDark": null,
73
+ "assetPlannerBackgroundColor": null
74
+ }
75
+ ]
76
+ }
@@ -0,0 +1,75 @@
1
+ {
2
+ "o": "assetReservation",
3
+ "f": "cancelReservation",
4
+ "error": 0,
5
+ "messages": [{ "code": 200, "msg": "Enregistrement r\u00e9ussi" }],
6
+ "result": {
7
+ "id": 79,
8
+ "mainType": "article",
9
+ "type": "reservation",
10
+ "uri": "reservation/79",
11
+ "dateCreation": "2023-06-26 11:57:08",
12
+ "dateModified": "2023-06-26 11:57:08",
13
+ "title": "R\u00e9servation",
14
+ "_url": "/ng/app/assetReservation/asset/71",
15
+ "_right": {
16
+ "create": true,
17
+ "read": true,
18
+ "publish": true,
19
+ "administrate": true,
20
+ "update": true,
21
+ "delete": true,
22
+ "comment": false,
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
+ "dateCreation": "2019-03-26 16:29:33",
32
+ "dateModified": "2019-07-19 09:39:23",
33
+ "title": "AdminJenkins",
34
+ "_url": "/user/1",
35
+ "level": 9
36
+ },
37
+ "dateStart": "2023-07-04 12:00",
38
+ "dateEnd": "2023-07-04 13:00",
39
+ "reservationCancelled": true,
40
+ "_asset": {
41
+ "id": 71,
42
+ "mainType": "article",
43
+ "type": "bookableAsset",
44
+ "uri": "bookableAsset/71",
45
+ "dateCreation": "2023-06-26 11:56:56",
46
+ "dateModified": "2023-06-26 11:56:56",
47
+ "title": "test asset 1",
48
+ "_url": "/ng/app/assetReservation/asset/71",
49
+ "_right": {
50
+ "create": true,
51
+ "read": true,
52
+ "publish": true,
53
+ "administrate": true,
54
+ "update": true,
55
+ "delete": true,
56
+ "comment": false,
57
+ "member": true
58
+ },
59
+ "description": "<div class='content-html'></div>",
60
+ "_user": {
61
+ "id": 1,
62
+ "mainType": "user",
63
+ "type": "user",
64
+ "uri": "user/1",
65
+ "dateCreation": "2019-03-26 16:29:33",
66
+ "dateModified": "2019-07-19 09:39:23",
67
+ "title": "AdminJenkins",
68
+ "_url": "/user/1",
69
+ "level": 9
70
+ },
71
+ "_isColorDark": null,
72
+ "assetPlannerBackgroundColor": null
73
+ }
74
+ }
75
+ }
@@ -0,0 +1,75 @@
1
+ {
2
+ "o": "assetReservation",
3
+ "f": "createReservation",
4
+ "error": 0,
5
+ "messages": [{ "code": 200, "msg": "Enregistrement r\u00e9ussi" }],
6
+ "result": {
7
+ "id": 74,
8
+ "mainType": "article",
9
+ "type": "reservation",
10
+ "uri": "reservation/74",
11
+ "dateCreation": "2023-06-26 11:57:04",
12
+ "dateModified": "2023-06-26 11:57:04",
13
+ "title": "R\u00e9servation",
14
+ "_url": "/ng/app/assetReservation/asset/71",
15
+ "_right": {
16
+ "create": true,
17
+ "read": true,
18
+ "publish": true,
19
+ "administrate": true,
20
+ "update": true,
21
+ "delete": true,
22
+ "comment": false,
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
+ "dateCreation": "2019-03-26 16:29:33",
32
+ "dateModified": "2019-07-19 09:39:23",
33
+ "title": "AdminJenkins",
34
+ "_url": "/user/1",
35
+ "level": 9
36
+ },
37
+ "dateStart": "2023-07-03 08:00",
38
+ "dateEnd": "2023-07-03 09:00",
39
+ "reservationCancelled": false,
40
+ "_asset": {
41
+ "id": 71,
42
+ "mainType": "article",
43
+ "type": "bookableAsset",
44
+ "uri": "bookableAsset/71",
45
+ "dateCreation": "2023-06-26 11:56:56",
46
+ "dateModified": "2023-06-26 11:56:56",
47
+ "title": "test asset 1",
48
+ "_url": "/ng/app/assetReservation/asset/71",
49
+ "_right": {
50
+ "create": true,
51
+ "read": true,
52
+ "publish": true,
53
+ "administrate": true,
54
+ "update": true,
55
+ "delete": true,
56
+ "comment": false,
57
+ "member": true
58
+ },
59
+ "description": "<div class='content-html'></div>",
60
+ "_user": {
61
+ "id": 1,
62
+ "mainType": "user",
63
+ "type": "user",
64
+ "uri": "user/1",
65
+ "dateCreation": "2019-03-26 16:29:33",
66
+ "dateModified": "2019-07-19 09:39:23",
67
+ "title": "AdminJenkins",
68
+ "_url": "/user/1",
69
+ "level": 9
70
+ },
71
+ "_isColorDark": null,
72
+ "assetPlannerBackgroundColor": null
73
+ }
74
+ }
75
+ }
@@ -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": 1,
9
+ "mainType": "article",
10
+ "type": "mpArticle",
11
+ "uri": "mpArticle/1",
12
+ "title": "Diapazone",
13
+ "_url": "/article/1",
14
+ "dateCreation": "2023-04-11 14:53:51",
15
+ "dateModified": "2023-04-11 14:53:51"
16
+ }
17
+ ]
18
+ }