jamespot-user-api 1.0.105 → 1.0.107

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 (124) hide show
  1. package/documentation/assets/search.js +1 -1
  2. package/documentation/classes/AdminLicenseApi.html +12 -12
  3. package/documentation/classes/AdminStoreApi.html +1 -1
  4. package/documentation/classes/AdminUtilsApi.html +2 -2
  5. package/documentation/classes/JApplicationApi.html +9 -9
  6. package/documentation/classes/JArticleApi.html +1 -1
  7. package/documentation/classes/JAssetReservation.html +1 -1
  8. package/documentation/classes/JAudienceApi.html +2 -2
  9. package/documentation/classes/JBaseApi.html +1 -1
  10. package/documentation/classes/JBookmarkApi.html +1 -1
  11. package/documentation/classes/JCommunityApi.html +1 -1
  12. package/documentation/classes/JDiapazoneApi.html +1 -1
  13. package/documentation/classes/JFileApi.html +6 -6
  14. package/documentation/classes/JFilebankApi.html +1 -1
  15. package/documentation/classes/JGroupApi.html +12 -8
  16. package/documentation/classes/JLandApi.html +1 -1
  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/JTaxonomyApi.html +3 -3
  21. package/documentation/classes/JUserApi.html +4 -4
  22. package/documentation/classes/JWedocApi.html +1 -1
  23. package/documentation/classes/JamespotUserApi.html +1 -1
  24. package/documentation/classes/Network.html +1 -1
  25. package/documentation/classes/WindowBrowser.html +1 -1
  26. package/documentation/enums/StudioApplicationStatus.html +1 -1
  27. package/documentation/index.html +1 -1
  28. package/documentation/interfaces/AccessRightObject.html +1 -1
  29. package/documentation/interfaces/AdminLicenseUser.html +1 -1
  30. package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
  31. package/documentation/interfaces/ApiWrapper.html +1 -1
  32. package/documentation/interfaces/BaseAutocomplete.html +1 -1
  33. package/documentation/interfaces/BaseMessage.html +1 -1
  34. package/documentation/interfaces/Category.html +1 -1
  35. package/documentation/interfaces/FileBankProps.html +1 -1
  36. package/documentation/interfaces/FolderProps.html +1 -1
  37. package/documentation/interfaces/ListFilterSpec.html +1 -1
  38. package/documentation/interfaces/OF.html +1 -1
  39. package/documentation/interfaces/ObjectListProps.html +1 -1
  40. package/documentation/interfaces/PagingResults.html +1 -1
  41. package/documentation/interfaces/RootFolderProps.html +1 -1
  42. package/documentation/interfaces/SearchCategoryModel.html +1 -1
  43. package/documentation/interfaces/SearchCategoryValue.html +1 -1
  44. package/documentation/interfaces/SearchConfig.html +1 -1
  45. package/documentation/interfaces/SearchFacetModel.html +1 -1
  46. package/documentation/interfaces/SearchFacetValueModel.html +1 -1
  47. package/documentation/interfaces/SearchQuery.html +1 -1
  48. package/documentation/interfaces/SearchQueryFilterModel.html +1 -1
  49. package/documentation/interfaces/SearchQueryOption.html +1 -1
  50. package/documentation/interfaces/SearchQueryResult.html +1 -1
  51. package/documentation/interfaces/SearchQuerySortModel.html +1 -1
  52. package/documentation/interfaces/SearchResultCatProps.html +1 -1
  53. package/documentation/interfaces/SearchResultPropsApp.html +1 -1
  54. package/documentation/interfaces/SearchResultPropsObject.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 +6 -6
  60. package/lib/jamespot-user-api.js +1 -1
  61. package/lib/jamespot-user-api.js.map +1 -1
  62. package/lib/src/apis/base.d.ts +3 -1
  63. package/lib/src/apis/{bookmark.d.ts → bookmark/bookmark.d.ts} +7 -7
  64. package/lib/src/apis/bookmark/bookmark.mock.d.ts +8 -0
  65. package/lib/src/apis/bookmark/bookmark.test.d.ts +1 -0
  66. package/lib/src/apis/community.d.ts +39 -2
  67. package/lib/src/apis/{group.d.ts → group/group.d.ts} +23 -13
  68. package/lib/src/apis/group/group.mock.d.ts +4 -0
  69. package/lib/src/apis/group/group.test.d.ts +1 -0
  70. package/lib/src/apis/group/group.types.d.ts +122 -0
  71. package/lib/src/apis/group/index.d.ts +2 -0
  72. package/lib/src/apis/index.d.ts +4 -3
  73. package/lib/src/apis/jamespotUserApi.d.ts +4 -4
  74. package/lib/src/apis/share/share.d.ts +14 -0
  75. package/lib/src/apis/share/share.mock.d.ts +7 -0
  76. package/lib/src/apis/share/share.test.d.ts +1 -0
  77. package/lib/src/apis/wedoc/wedoc.d.ts +17 -0
  78. package/lib/src/apis/wedoc/wedoc.mock.d.ts +14 -0
  79. package/lib/src/apis/wedoc/wedoc.test.d.ts +1 -0
  80. package/lib/src/index.d.ts +1 -3
  81. package/lib/src/types/autocomplete.d.ts +12 -0
  82. package/lib/src/types/bookmark.d.ts +2 -1
  83. package/lib/src/types/index.d.ts +0 -1
  84. package/lib/src/types/realtime.d.ts +37 -11
  85. package/lib/src/types/share.d.ts +7 -17
  86. package/lib/src/types/utils.d.ts +2 -9
  87. package/lib/src/types/wedoc.d.ts +6 -21
  88. package/lib/src/util/Test.d.ts +10 -5
  89. package/lib/src/util/ensure.d.ts +3 -0
  90. package/lib/src/util/index.d.ts +4 -0
  91. package/lib/src/util/network.d.ts +14 -5
  92. package/lib/src/util/network.mock.d.ts +2 -1
  93. package/lib/src/util/network.test.d.ts +1 -0
  94. package/lib/src/util/object.d.ts +1 -0
  95. package/lib/src/util/object.test.d.ts +1 -0
  96. package/lib/src/window/Window.d.ts +5 -4
  97. package/lib/src/window/WindowBrowser.d.ts +2 -2
  98. package/lib/src/window/WindowBrowser.test.d.ts +1 -0
  99. package/package.json +1 -1
  100. package/phpunitMock/bookmarksAdd-url.json +35 -0
  101. package/phpunitMock/bookmarksDelete-spot1Article.json +7 -0
  102. package/phpunitMock/bookmarksMove-spot1Article.json +7 -0
  103. package/phpunitMock/bookmarksRename-spot1Article.json +7 -0
  104. package/phpunitMock/customActionAdd-bookmarkSpot1Article.json +45 -0
  105. package/phpunitMock/objectList-bookmarksList.json +92 -0
  106. package/phpunitMock/onlyOfficeAskObjectAccess-ask-read.json +1 -0
  107. package/phpunitMock/onlyOfficeCreateFile-create-file.json +19 -0
  108. package/phpunitMock/onlyOfficeDeleteFile-delete-file.json +1 -0
  109. package/phpunitMock/onlyOfficeDuplicateFile-duplicate-file.json +19 -0
  110. package/phpunitMock/onlyOfficeGetFile-get-file.json +50 -0
  111. package/phpunitMock/onlyOfficeGetFiles-get-files.json +58 -0
  112. package/phpunitMock/onlyOfficeGetObject-default.json +26 -0
  113. package/phpunitMock/onlyOfficeGetObjectAccess-default.json +34 -0
  114. package/phpunitMock/onlyOfficeGetObjectAccessRequest-all-request.json +19 -0
  115. package/phpunitMock/onlyOfficeGetTemplates-get-templates.json +29 -0
  116. package/phpunitMock/onlyOfficeSetObjectAccess-default.json +1 -0
  117. package/phpunitMock/onlyOfficeSetObjectAccessRequest-accept.json +1 -0
  118. package/phpunitMock/onlyOfficeUpdateFile-update-file.json +1 -0
  119. package/phpunitMock/spotGet-default.json +25 -0
  120. package/phpunitMock/spotGetProperties-default.json +77 -0
  121. package/documentation/interfaces/ApiError.html +0 -1
  122. package/lib/src/apis/share.d.ts +0 -17
  123. package/lib/src/apis/wedoc.d.ts +0 -26
  124. package/lib/src/types/group.d.ts +0 -58
@@ -1,9 +1,12 @@
1
1
  import { JamespotUserApi } from '../apis';
2
2
  import { ApiDefaultWrapper, PagingResults, jArticleLittle, jObjectAutocomplete, jObjectList, jUserList } from '../types';
3
+ import { FetchResponseType, WindowBrowser } from '../window';
3
4
  import { Network } from './network';
5
+ export declare const windowBrowser: WindowBrowser;
4
6
  export declare const network: Network;
5
7
  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;
8
+ export declare const fetchMock: <T>(data: T) => jest.Mock<Promise<FetchResponseType<T>>, []>;
9
+ export declare const validateJArticle: <T extends jArticleLittle>(received: T, expected: T) => void;
7
10
  export declare const validateApiWrapper: <T extends ApiDefaultWrapper<import("../types").BaseMessages>>(res: T, o: string, f: string, error?: null) => void;
8
11
  export declare const validatePagingResults: <T>(res: PagingResults<T>) => void;
9
12
  export declare const validateObjectIsFormatLittle: <T extends {
@@ -24,7 +27,9 @@ export declare const validateObjectIsFormatLittle: <T extends {
24
27
  dateModified?: string;
25
28
  title: string;
26
29
  _url: string;
27
- }>(object: T) => boolean;
28
- export declare const validateObjectIsFormatList: <T extends jObjectList = jObjectList>(object: T) => boolean;
29
- export declare const validateUserIsFormatList: <T extends jUserList = jUserList>(object: T) => boolean;
30
- export declare const validateObjectIsFormatAutocomplete: <T extends jObjectAutocomplete = jObjectAutocomplete>(object: T) => boolean;
30
+ }>(object: T) => void;
31
+ export declare const validateObjectIsFormatList: <T extends jObjectList = jObjectList>(object: T) => void;
32
+ export declare const validateUserIsFormatList: <T extends jUserList = jUserList>(object: T) => void;
33
+ export declare const validateObjectIsFormatAutocomplete: <T extends jObjectAutocomplete = jObjectAutocomplete>(object: T) => void;
34
+ export declare const expectToHaveProperties: <T>(props: string[], payload: T[]) => void;
35
+ export declare const expectToBeArray: <T>(arr: T[]) => void;
@@ -1,4 +1,5 @@
1
1
  import { BookmarkCustom, BookmarkLink, BookmarkRawList, jObjectBase } from '../types';
2
+ import { AbortApiError, StandardApiError } from './network';
2
3
  declare function ensureIsBookmarkLink(bookmark: BookmarkCustom | BookmarkLink): bookmark is BookmarkLink;
3
4
  declare function ensureIsBookmarkCustom(bookmark: BookmarkCustom | BookmarkLink): bookmark is BookmarkCustom;
4
5
  declare function ensureIsBookmarkRawList(bookmark: jObjectBase | BookmarkRawList): bookmark is BookmarkRawList;
@@ -11,5 +12,7 @@ export declare const jEnsure: {
11
12
  isBookmarkCustom: typeof ensureIsBookmarkCustom;
12
13
  isBookmarkRawList: typeof ensureIsBookmarkRawList;
13
14
  objectIsType: typeof ensureObjectIsType;
15
+ isStandardApiError: (err: any) => err is StandardApiError<import("../types").BaseMessages>;
16
+ isAbortApiError: (err: any) => err is AbortApiError;
14
17
  };
15
18
  export {};
@@ -0,0 +1,4 @@
1
+ export * from './ensure';
2
+ export * from './file';
3
+ export * from './network';
4
+ export * from './object';
@@ -1,9 +1,20 @@
1
- import { ApiWrapper, BaseMessages, FileResponse, MaybeWithCsrf, MaybeWithToken } from '../types';
2
- import { FetchReturnType, WindowInterface } from '../window/Window';
1
+ import { ApiWrapper, BaseMessages, FileResponse, MaybeWithToken } from '../types';
2
+ import { WindowInterface } from '../window/Window';
3
3
  export interface OF {
4
4
  o: string;
5
5
  f: string;
6
6
  }
7
+ export declare type ApiError = {
8
+ error: number;
9
+ };
10
+ export declare type StandardApiError<T = BaseMessages> = ApiError & {
11
+ errorMsg: string | undefined;
12
+ messages: T;
13
+ };
14
+ export declare type AbortApiError = ApiError & {
15
+ error: -1;
16
+ aborted: true;
17
+ };
7
18
  /**
8
19
  * deprecated
9
20
  */
@@ -12,14 +23,12 @@ export declare class Network {
12
23
  private readonly window;
13
24
  constructor(window: WindowInterface, action?: string);
14
25
  static _formatPostOptions(body: object): RequestInit;
15
- static _formatQueryOptions(options: Record<string, string | boolean | number>): string;
16
26
  getUrl(o: string, f: string): Promise<string>;
17
27
  getHostname(): Promise<string>;
18
- fetch({ o, f, ...body }: OF, signal?: AbortSignal | null): FetchReturnType;
28
+ fetch<T>({ o, f, ...body }: OF, signal?: AbortSignal | null): Promise<import("../window/Window").FetchResponseType<T>>;
19
29
  post<T, U = BaseMessages>(body: OF, signal?: AbortSignal): Promise<ApiWrapper<T, U>>;
20
30
  postFile(body: FormData): Promise<ApiWrapper<FileResponse, BaseMessages>>;
21
31
  postCSRF<T, U = BaseMessages>(body: OF): Promise<ApiWrapper<T, U>>;
22
- maybePostCSRF<T, U = BaseMessages>(body: MaybeWithCsrf<OF>): Promise<ApiWrapper<T, U>>;
23
32
  postToken<T, U = BaseMessages>(body: OF): Promise<ApiWrapper<T, U>>;
24
33
  maybePostToken<T, U = BaseMessages>(body: MaybeWithToken<OF>): Promise<ApiWrapper<T, U>>;
25
34
  token(): Promise<ApiWrapper<string>>;
@@ -1,3 +1,4 @@
1
- import { ApiWrapper } from '../types';
1
+ import { ApiDefaultWrapper, ApiWrapper } from '../types';
2
+ export declare const miscTokenError: ApiDefaultWrapper;
2
3
  export declare const miscToken: ApiWrapper<string>;
3
4
  export declare const miscTokenCSRF: ApiWrapper<string>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export declare function deepEqual(a: any, b: any, ignoreAttributes?: Array<string>): boolean;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,7 +1,8 @@
1
- export declare type FetchReturnType = Promise<{
2
- json: () => unknown;
3
- }>;
1
+ export declare type FetchResponseType<T> = {
2
+ json: () => Promise<T>;
3
+ };
4
+ export declare type FetchReturnType<T> = Promise<FetchResponseType<T>>;
4
5
  export interface WindowInterface {
5
6
  getBackendUrl: () => Promise<string>;
6
- fetch: (url: string, init?: RequestInit) => FetchReturnType;
7
+ fetch: <T>(url: string, init?: RequestInit) => FetchReturnType<T>;
7
8
  }
@@ -1,5 +1,5 @@
1
- import { WindowInterface } from './Window';
1
+ import { FetchReturnType, WindowInterface } from './Window';
2
2
  export declare class WindowBrowser implements WindowInterface {
3
3
  getBackendUrl(): Promise<string>;
4
- fetch(url: string, init?: RequestInit): Promise<Response>;
4
+ fetch<T>(url: string, init?: RequestInit): FetchReturnType<T>;
5
5
  }
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-user-api",
3
- "version": "1.0.105",
3
+ "version": "1.0.107",
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,35 @@
1
+ {
2
+ "o": "bookmarks",
3
+ "f": "add",
4
+ "error": 0,
5
+ "messages": [{ "code": 200, "msg": "Enregistrement r\u00e9ussi" }],
6
+ "result": {
7
+ "id": 46,
8
+ "mainType": "link",
9
+ "type": "bookmarkLink",
10
+ "uri": "bookmarkLink/46",
11
+ "dateCreation": "2023-06-09 16:26:25",
12
+ "dateModified": "2023-06-09 16:26:25",
13
+ "srcId": 1,
14
+ "srcType": "user",
15
+ "targetId": 0,
16
+ "targetType": null,
17
+ "value": null,
18
+ "_src": {
19
+ "id": 1,
20
+ "mainType": "user",
21
+ "type": "user",
22
+ "uri": "user/1",
23
+ "dateCreation": "2019-03-26 16:29:33",
24
+ "dateModified": "2019-07-19 09:39:23",
25
+ "title": "AdminJenkins",
26
+ "_url": "/user/1",
27
+ "level": 9
28
+ },
29
+ "bookmarkOrder": -13,
30
+ "bookmarkLabel": "www.example.com",
31
+ "bookmarkUrl": "https://www.example.com",
32
+ "bookmarkMeta": null,
33
+ "url": null
34
+ }
35
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "o": "bookmarks",
3
+ "f": "delete",
4
+ "error": 0,
5
+ "messages": [{ "code": 200, "msg": "Suppression r\u00e9ussie" }],
6
+ "result": null
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "o": "bookmarks",
3
+ "f": "move",
4
+ "error": 0,
5
+ "messages": [{ "code": 200, "msg": "Enregistrement r\u00e9ussi" }],
6
+ "result": null
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "o": "bookmarks",
3
+ "f": "rename",
4
+ "error": 0,
5
+ "messages": [{ "code": 200, "msg": "Enregistrement r\u00e9ussi" }],
6
+ "result": null
7
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "o": "custom",
3
+ "f": "actionAdd",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "id": 31,
8
+ "mainType": "link",
9
+ "type": "bookmarkLink",
10
+ "uri": "bookmarkLink/31",
11
+ "dateCreation": "2023-06-09 16:18:47",
12
+ "dateModified": "2023-06-09 16:18:47",
13
+ "srcId": 1,
14
+ "srcType": "user",
15
+ "targetId": 2,
16
+ "targetType": "mpArticle",
17
+ "value": null,
18
+ "_src": {
19
+ "id": 1,
20
+ "mainType": "user",
21
+ "type": "user",
22
+ "uri": "user/1",
23
+ "dateCreation": "2019-03-26 16:29:33",
24
+ "dateModified": "2019-07-19 09:39:23",
25
+ "title": "AdminJenkins",
26
+ "_url": "/user/1",
27
+ "level": 9
28
+ },
29
+ "_target": {
30
+ "id": 2,
31
+ "mainType": "article",
32
+ "type": "mpArticle",
33
+ "uri": "mpArticle/2",
34
+ "dateCreation": "2019-07-19 09:36:25",
35
+ "dateModified": "2019-07-19 09:36:25",
36
+ "title": "Article groupe public",
37
+ "_url": "/article/2"
38
+ },
39
+ "bookmarkOrder": -1,
40
+ "bookmarkLabel": "Article groupe public",
41
+ "bookmarkUrl": "",
42
+ "bookmarkMeta": null,
43
+ "url": "http://jenkins-preprod.jamespot.pro/index.php?action=article&idArticle=2"
44
+ }
45
+ }
@@ -0,0 +1,92 @@
1
+ {
2
+ "o": "object",
3
+ "f": "list",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "limit": 10,
8
+ "page": 1,
9
+ "cnt": 2,
10
+ "data": [
11
+ {
12
+ "id": 34,
13
+ "mainType": "link",
14
+ "type": "bookmarkLink",
15
+ "uri": "bookmarkLink/34",
16
+ "dateCreation": "2023-06-09 16:26:22",
17
+ "dateModified": "2023-06-09 16:26:22",
18
+ "srcId": 1,
19
+ "srcType": "user",
20
+ "targetId": 4,
21
+ "targetType": "mpArticle",
22
+ "value": null,
23
+ "_src": {
24
+ "id": 1,
25
+ "mainType": "user",
26
+ "type": "user",
27
+ "uri": "user/1",
28
+ "dateCreation": "2019-03-26 16:29:33",
29
+ "dateModified": "2019-07-19 09:39:23",
30
+ "title": "AdminJenkins",
31
+ "_url": "/user/1",
32
+ "level": 9
33
+ },
34
+ "_target": {
35
+ "id": 4,
36
+ "mainType": "article",
37
+ "type": "mpArticle",
38
+ "uri": "mpArticle/4",
39
+ "dateCreation": "2019-07-19 09:36:48",
40
+ "dateModified": "2019-07-19 09:36:48",
41
+ "title": "Article groupe priv\u00e9",
42
+ "_url": "/article/4"
43
+ },
44
+ "bookmarkOrder": -3,
45
+ "bookmarkLabel": "Article groupe priv\u00e9",
46
+ "bookmarkUrl": "",
47
+ "bookmarkMeta": null,
48
+ "url": "http://jenkins-preprod.jamespot.pro/index.php?action=article&idArticle=4"
49
+ },
50
+ {
51
+ "id": 33,
52
+ "mainType": "link",
53
+ "type": "bookmarkLink",
54
+ "uri": "bookmarkLink/33",
55
+ "dateCreation": "2023-06-09 16:26:22",
56
+ "dateModified": "2023-06-09 16:26:22",
57
+ "srcId": 1,
58
+ "srcType": "user",
59
+ "targetId": 2,
60
+ "targetType": "mpArticle",
61
+ "value": null,
62
+ "_src": {
63
+ "id": 1,
64
+ "mainType": "user",
65
+ "type": "user",
66
+ "uri": "user/1",
67
+ "dateCreation": "2019-03-26 16:29:33",
68
+ "dateModified": "2019-07-19 09:39:23",
69
+ "title": "AdminJenkins",
70
+ "_url": "/user/1",
71
+ "level": 9
72
+ },
73
+ "_target": {
74
+ "id": 2,
75
+ "mainType": "article",
76
+ "type": "mpArticle",
77
+ "uri": "mpArticle/2",
78
+ "dateCreation": "2019-07-19 09:36:25",
79
+ "dateModified": "2019-07-19 09:36:25",
80
+ "title": "Article groupe public",
81
+ "_url": "/article/2"
82
+ },
83
+ "bookmarkOrder": -2,
84
+ "bookmarkLabel": "Article groupe public",
85
+ "bookmarkUrl": "",
86
+ "bookmarkMeta": null,
87
+ "url": "http://jenkins-preprod.jamespot.pro/index.php?action=article&idArticle=2"
88
+ }
89
+ ],
90
+ "facets": null
91
+ }
92
+ }
@@ -0,0 +1 @@
1
+ { "o": "onlyOffice", "f": "askObjectAccess", "error": 0, "messages": [], "result": true }
@@ -0,0 +1,19 @@
1
+ {
2
+ "o": "onlyOffice",
3
+ "f": "createFile",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "idFile": 58,
8
+ "article": {
9
+ "id": 314,
10
+ "mainType": "article",
11
+ "type": "mpSocialFile",
12
+ "uri": "mpSocialFile/314",
13
+ "title": "xlsx_document",
14
+ "_url": "/article/314",
15
+ "dateCreation": "2023-04-14 14:52:36",
16
+ "dateModified": "2023-04-14 14:52:36"
17
+ }
18
+ }
19
+ }
@@ -0,0 +1 @@
1
+ { "o": "onlyOffice", "f": "deleteFile", "error": 0, "messages": [], "result": true }
@@ -0,0 +1,19 @@
1
+ {
2
+ "o": "onlyOffice",
3
+ "f": "duplicateFile",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "idFile": 163,
8
+ "article": {
9
+ "id": 91,
10
+ "mainType": "article",
11
+ "type": "mpSocialFile",
12
+ "uri": "mpSocialFile/91",
13
+ "title": "DUPLICATED",
14
+ "_url": "/article/91",
15
+ "dateCreation": "2023-04-14 15:54:17",
16
+ "dateModified": "2023-04-14 15:54:17"
17
+ }
18
+ }
19
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "o": "onlyOffice",
3
+ "f": "getFile",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "id": 56,
8
+ "title": "xlsx_document.xlsx",
9
+ "mimetype": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
10
+ "type": "fileArticle",
11
+ "mainType": "fileArticle",
12
+ "uri": "fileArticle/56",
13
+ "dateModified": "2023-04-14 14:39:17",
14
+ "dateCreation": "2023-04-14 14:39:17",
15
+ "_extend": {
16
+ "generalAccessRule": "link",
17
+ "dateModified": "2023-04-14 14:39:17",
18
+ "dateCreation": "2023-04-14 14:39:17",
19
+ "fileInfo": {
20
+ "color": "#218273",
21
+ "description": "Tableur",
22
+ "extension": "xlsx",
23
+ "icon": "icon-file-excel-o",
24
+ "label": "Tableur"
25
+ }
26
+ },
27
+ "_user": {
28
+ "id": 4,
29
+ "mainType": "user",
30
+ "type": "user",
31
+ "uri": "user/4",
32
+ "title": "Admin1",
33
+ "_url": "/user/4",
34
+ "dateCreation": "2019-07-09 15:48:26",
35
+ "dateModified": "2023-04-14 14:29:47",
36
+ "level": 9
37
+ },
38
+ "_right": {
39
+ "create": true,
40
+ "read": true,
41
+ "publish": false,
42
+ "administrate": true,
43
+ "update": true,
44
+ "delete": true,
45
+ "comment": true,
46
+ "member": true
47
+ },
48
+ "_audience": []
49
+ }
50
+ }
@@ -0,0 +1,58 @@
1
+ {
2
+ "o": "onlyOffice",
3
+ "f": "getFiles",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "data": [
8
+ {
9
+ "id": 56,
10
+ "title": "xlsx_document.xlsx",
11
+ "mimetype": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
12
+ "type": "fileArticle",
13
+ "mainType": "fileArticle",
14
+ "uri": "fileArticle/56",
15
+ "dateModified": "2023-04-14 14:39:17",
16
+ "dateCreation": "2023-04-14 14:39:17",
17
+ "_extend": {
18
+ "generalAccessRule": "link",
19
+ "dateModified": "2023-04-14 14:39:17",
20
+ "dateCreation": "2023-04-14 14:39:17",
21
+ "fileInfo": {
22
+ "color": "#218273",
23
+ "description": "Tableur",
24
+ "extension": "xlsx",
25
+ "icon": "icon-file-excel-o",
26
+ "label": "Tableur"
27
+ }
28
+ },
29
+ "_user": {
30
+ "id": 4,
31
+ "mainType": "user",
32
+ "type": "user",
33
+ "uri": "user/4",
34
+ "title": "Admin1",
35
+ "_url": "/user/4",
36
+ "dateCreation": "2019-07-09 15:48:26",
37
+ "dateModified": "2023-04-14 14:29:47",
38
+ "level": 9
39
+ },
40
+ "_right": {
41
+ "create": true,
42
+ "read": true,
43
+ "publish": false,
44
+ "administrate": true,
45
+ "update": true,
46
+ "delete": true,
47
+ "comment": true,
48
+ "member": true
49
+ },
50
+ "_audience": []
51
+ }
52
+ ],
53
+ "limit": 100,
54
+ "page": 1,
55
+ "facets": [],
56
+ "cnt": 1
57
+ }
58
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "o": "onlyOffice",
3
+ "f": "getObject",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "id": 101,
8
+ "type": "fileArticle",
9
+ "title": "ASK.xlsx",
10
+ "idUser": 4,
11
+ "uri": "fileArticle/101",
12
+ "generalAccessRule": "link",
13
+ "generalAccessHash": null,
14
+ "_right": {
15
+ "create": true,
16
+ "read": true,
17
+ "publish": false,
18
+ "administrate": true,
19
+ "update": true,
20
+ "delete": true,
21
+ "comment": true,
22
+ "member": true
23
+ },
24
+ "_audience": []
25
+ }
26
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "o": "onlyOffice",
3
+ "f": "getObjectAccess",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "audience": [
8
+ {
9
+ "id": 6,
10
+ "mainType": "user",
11
+ "type": "user",
12
+ "uri": "user/6",
13
+ "dateCreation": "2019-07-09 15:49:06",
14
+ "dateModified": "2019-07-09 15:51:35",
15
+ "title": "User1",
16
+ "_url": "/user/6",
17
+ "level": 5
18
+ },
19
+ {
20
+ "id": 7,
21
+ "mainType": "user",
22
+ "type": "user",
23
+ "uri": "user/7",
24
+ "dateCreation": "2019-07-09 15:49:25",
25
+ "dateModified": "2019-07-09 15:51:50",
26
+ "title": "User2",
27
+ "_url": "/user/7",
28
+ "level": 5
29
+ }
30
+ ],
31
+ "read": ["user/6", "user/7"],
32
+ "write": ["user/6"]
33
+ }
34
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "o": "onlyOffice",
3
+ "f": "getObjectAccessRequest",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": [
7
+ {
8
+ "id": 4,
9
+ "mainType": "user",
10
+ "type": "user",
11
+ "uri": "user/4",
12
+ "dateCreation": "2019-07-09 15:48:26",
13
+ "dateModified": "2019-07-09 15:51:24",
14
+ "title": "Admin1",
15
+ "_url": "/user/4",
16
+ "level": 9
17
+ }
18
+ ]
19
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "o": "onlyOffice",
3
+ "f": "getTemplates",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": [
7
+ {
8
+ "label": "Traitement de texte",
9
+ "description": "Traitement de texte",
10
+ "extension": "docx",
11
+ "icon": "icon-file-word-o",
12
+ "color": "#566DC6"
13
+ },
14
+ {
15
+ "label": "Tableur",
16
+ "description": "Tableur",
17
+ "extension": "xlsx",
18
+ "icon": "icon-file-excel-o",
19
+ "color": "#218273"
20
+ },
21
+ {
22
+ "label": "Pr\u00e9sentation",
23
+ "description": "Pr\u00e9sentation",
24
+ "extension": "pptx",
25
+ "icon": "icon-file-powerpoint-o",
26
+ "color": "#E2472D"
27
+ }
28
+ ]
29
+ }
@@ -0,0 +1 @@
1
+ { "o": "onlyOffice", "f": "setObjectAccess", "error": 0, "messages": [], "result": true }
@@ -0,0 +1 @@
1
+ { "o": "onlyOffice", "f": "setObjectAccessRequest", "error": 0, "messages": [], "result": [] }
@@ -0,0 +1 @@
1
+ { "o": "onlyOffice", "f": "updateFile", "error": 0, "messages": [], "result": true }
@@ -0,0 +1,25 @@
1
+ {
2
+ "o": "spot",
3
+ "f": "get",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "id": 2,
8
+ "mainType": "spot",
9
+ "type": "spot",
10
+ "uri": "spot/2",
11
+ "dateCreation": "2019-07-19 18:36:24",
12
+ "dateModified": "2023-06-08 09:19:44",
13
+ "title": "Groupe public",
14
+ "_url": "/group/2",
15
+ "privacy": 1,
16
+ "idCategory": 1,
17
+ "category": "1",
18
+ "description": "",
19
+ "edito": null,
20
+ "language": "fr",
21
+ "image": null,
22
+ "spotBanner": [],
23
+ "useTeaser": ""
24
+ }
25
+ }