jamespot-user-api 1.0.113 → 1.0.115

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 (87) hide show
  1. package/documentation/assets/search.js +1 -1
  2. package/documentation/classes/AdminLicenseApi.html +11 -11
  3. package/documentation/classes/AdminStoreApi.html +1 -1
  4. package/documentation/classes/AdminUtilsApi.html +1 -1
  5. package/documentation/classes/JApplicationApi.html +8 -8
  6. package/documentation/classes/JArticleApi.html +1 -1
  7. package/documentation/classes/JAssetReservation.html +1 -1
  8. package/documentation/classes/JAudienceApi.html +1 -1
  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/JFaqApi.html +1 -0
  14. package/documentation/classes/JFileApi.html +6 -6
  15. package/documentation/classes/JFilebankApi.html +1 -1
  16. package/documentation/classes/JGroupApi.html +9 -9
  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/TVDisplayApi.html +1 -1
  27. package/documentation/classes/WindowBrowser.html +1 -1
  28. package/documentation/enums/StudioApplicationStatus.html +1 -1
  29. package/documentation/index.html +1 -1
  30. package/documentation/interfaces/AccessRightObject.html +1 -1
  31. package/documentation/interfaces/AdminLicenseUser.html +1 -1
  32. package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
  33. package/documentation/interfaces/ApiWrapper.html +1 -1
  34. package/documentation/interfaces/BaseAutocomplete.html +1 -1
  35. package/documentation/interfaces/BaseMessage.html +1 -1
  36. package/documentation/interfaces/Category.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/ObjectListProps.html +1 -1
  42. package/documentation/interfaces/PagingResults.html +1 -1
  43. package/documentation/interfaces/RootFolderProps.html +1 -1
  44. package/documentation/interfaces/SearchCategoryModel.html +1 -1
  45. package/documentation/interfaces/SearchCategoryValue.html +1 -1
  46. package/documentation/interfaces/SearchConfig.html +1 -1
  47. package/documentation/interfaces/SearchFacetModel.html +1 -1
  48. package/documentation/interfaces/SearchFacetValueModel.html +1 -1
  49. package/documentation/interfaces/SearchQuery.html +1 -1
  50. package/documentation/interfaces/SearchQueryFilterModel.html +1 -1
  51. package/documentation/interfaces/SearchQueryOption.html +1 -1
  52. package/documentation/interfaces/SearchQueryResult.html +1 -1
  53. package/documentation/interfaces/SearchQuerySortModel.html +1 -1
  54. package/documentation/interfaces/SearchResultCatProps.html +1 -1
  55. package/documentation/interfaces/SearchResultPropsApp.html +1 -1
  56. package/documentation/interfaces/SearchResultPropsObject.html +1 -1
  57. package/documentation/interfaces/SpotProps.html +1 -1
  58. package/documentation/interfaces/Taxonomy.html +1 -1
  59. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  60. package/documentation/interfaces/WindowInterface.html +1 -1
  61. package/documentation/modules.html +9 -9
  62. package/lib/jamespot-user-api.js +1 -1
  63. package/lib/jamespot-user-api.js.map +1 -1
  64. package/lib/src/apis/article/article.d.ts +10 -3
  65. package/lib/src/apis/article/article.mock.d.ts +2 -0
  66. package/lib/src/apis/faq/faq.d.ts +12 -0
  67. package/lib/src/apis/faq/faq.mock.d.ts +7 -0
  68. package/lib/src/apis/faq/faq.test.d.ts +1 -0
  69. package/lib/src/apis/file.d.ts +8 -10
  70. package/lib/src/apis/index.d.ts +1 -0
  71. package/lib/src/apis/jamespotUserApi.d.ts +2 -0
  72. package/lib/src/apis/taxonomy/taxonomy.d.ts +3 -6
  73. package/lib/src/apis/taxonomy/taxonomy.mock.d.ts +3 -3
  74. package/lib/src/apis/taxonomy/types.d.ts +1 -1
  75. package/lib/src/types/faq.d.ts +30 -0
  76. package/lib/src/types/file.d.ts +16 -4
  77. package/lib/src/types/index.d.ts +1 -0
  78. package/lib/src/util/Test.d.ts +2 -1
  79. package/lib/src/util/taxonomy.d.ts +3 -0
  80. package/package.json +1 -1
  81. package/phpunitMock/articleCreate-faq-category.json +51 -0
  82. package/phpunitMock/articleDelete-faq-category.json +12 -0
  83. package/phpunitMock/articleGet-faq-category.json +45 -0
  84. package/phpunitMock/articleGetAttachment-success.json +18 -0
  85. package/phpunitMock/articleUpdate-faq-category.json +49 -0
  86. package/phpunitMock/faqGetFaqTaxonomy-success.json +10 -0
  87. package/phpunitMock/faqGetHookProperties-success.json +9 -0
@@ -1,5 +1,5 @@
1
1
  import { JBaseApi } from '../base';
2
- import { ApiWrapper, BaseMessages, Filters, jArticleList, jArticleLittle, MaybeWithToken, Orders, PagingResults } from '../../types';
2
+ import { ApiWrapper, BaseMessages, Filters, jArticleList, jArticleLittle, jObjectBase, MaybeWithToken, Orders, PagingResults } from '../../types';
3
3
  export declare type ArticleListConfig = {
4
4
  type: string;
5
5
  format?: string;
@@ -16,7 +16,7 @@ export declare type ArticleGetConfig = {
16
16
  };
17
17
  export declare type ArticleCreation = {
18
18
  title?: string;
19
- description?: string;
19
+ description?: string | null;
20
20
  type?: string;
21
21
  publishTo?: string;
22
22
  idSpot?: Array<string>;
@@ -29,15 +29,22 @@ export declare type BaseArticle = {
29
29
  title: string;
30
30
  uri: string;
31
31
  };
32
+ export declare type FileArticle = jObjectBase & {
33
+ title: string;
34
+ type: 'fileArticle';
35
+ mainType: 'fileArticle';
36
+ _url: string;
37
+ };
32
38
  export declare class JArticleApi extends JBaseApi {
33
39
  list<T extends jArticleLittle = jArticleLittle>(config: ArticleListConfig): Promise<ApiWrapper<PagingResults<T>>>;
34
40
  get<T extends jArticleLittle = jArticleLittle>(config: ArticleGetConfig): Promise<ApiWrapper<T & {
35
41
  _nbAttachedFiles: number;
36
42
  }, BaseMessages>>;
37
- create<T extends jArticleLittle = jArticleLittle>(article: MaybeWithToken<ArticleCreation>, format?: string): Promise<ApiWrapper<Array<T>, BaseMessages>>;
43
+ create<R extends jArticleLittle = jArticleLittle, P extends ArticleCreation = ArticleCreation>(article: MaybeWithToken<P>, format?: string): Promise<ApiWrapper<Array<R>, BaseMessages>>;
38
44
  update<T extends {
39
45
  uri: string;
40
46
  }, U extends jArticleLittle = jArticleList>(article: T): Promise<ApiWrapper<U, BaseMessages>>;
41
47
  delete(id: number): Promise<ApiWrapper<boolean, BaseMessages>>;
42
48
  count(type: string): Promise<ApiWrapper<number>>;
49
+ getAttachments(id: number, type: string, format?: string): Promise<ApiWrapper<FileArticle[]>>;
43
50
  }
@@ -1,7 +1,9 @@
1
1
  import { ApiWrapper, BaseMessages, PagingResults, jArticleList, jArticleLittle, jArticleView } from '../../types';
2
+ import { FileArticle } from './article';
2
3
  export declare const articleGetMpArticleList: ApiWrapper<jArticleList, BaseMessages>;
3
4
  export declare const articleCreateMpArticleLittle: ApiWrapper<Array<jArticleLittle>, BaseMessages>;
4
5
  export declare const articleUpdateMpArticleView: ApiWrapper<jArticleView, BaseMessages>;
5
6
  export declare const articleCountMpArticle: ApiWrapper<number>;
6
7
  export declare const objectListJamespotArticleQueryList: ApiWrapper<PagingResults<jArticleLittle>>;
7
8
  export declare const articleDeleteMpArticle: ApiWrapper<boolean, BaseMessages>;
9
+ export declare const articleGetAttachment: ApiWrapper<FileArticle[]>;
@@ -0,0 +1,12 @@
1
+ import { JBaseApi } from '../base';
2
+ import { ApiWrapper, CreateFaqCategory, EditFaqCategory, FaqCategoryView, FaqHookProperties, FaqTaxonomy, jArticleLittle } from '../../types';
3
+ export declare class JFaqApi extends JBaseApi {
4
+ createCategory<T extends jArticleLittle = FaqCategoryView>(params: Omit<CreateFaqCategory, 'type'>, format?: string): Promise<ApiWrapper<Array<T>>>;
5
+ updateCategory<T extends jArticleLittle = FaqCategoryView>(params: Omit<EditFaqCategory, 'type'>, format?: string): Promise<ApiWrapper<T>>;
6
+ getCategory<T extends jArticleLittle = FaqCategoryView>(id: number, format?: string): Promise<ApiWrapper<T & {
7
+ _nbAttachedFiles: number;
8
+ }>>;
9
+ deleteCategory(id: number): Promise<ApiWrapper<boolean>>;
10
+ getTaxonomy(): Promise<ApiWrapper<FaqTaxonomy>>;
11
+ getHookProperties(properties?: Array<keyof FaqHookProperties>): Promise<ApiWrapper<FaqHookProperties>>;
12
+ }
@@ -0,0 +1,7 @@
1
+ import { ApiWrapper, FaqCategoryView, FaqHookProperties, FaqTaxonomy } from '../../types';
2
+ export declare const faqCreateCategory: ApiWrapper<FaqCategoryView[]>;
3
+ export declare const faqGetCategory: ApiWrapper<FaqCategoryView>;
4
+ export declare const faqUpdateCategory: ApiWrapper<FaqCategoryView>;
5
+ export declare const faqDeleteCategory: ApiWrapper<boolean>;
6
+ export declare const faqGetTaxonomy: ApiWrapper<FaqTaxonomy>;
7
+ export declare const faqGetHookProperties: ApiWrapper<FaqHookProperties>;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,24 +1,25 @@
1
- import { FileCropConfig, FileResponse, UploadConfig } from '../types';
1
+ import { ApiWrapper, FileCropConfig, FileResponse, JFileExtended, UploadConfig } from '../types';
2
2
  import { JBaseApi } from './base';
3
3
  export declare class JFileApi extends JBaseApi {
4
4
  /**
5
5
  * Upload a file to the server. use the same token to link the file to an article
6
6
  * @param config configuration object. One of "file" and "url" is mandatory
7
7
  */
8
- upload(config: UploadConfig): Promise<import("../types").ApiWrapper<FileResponse, import("../types").BaseMessages>>;
8
+ upload(config: UploadConfig): Promise<ApiWrapper<FileResponse, import("../types").BaseMessages>>;
9
9
  /**
10
10
  * Upload a list of files to the server. use the same token to link the file to an article
11
11
  * @param attrName file name (attachment, image, bannerImage, etc.)
12
12
  * @param files files
13
13
  * @param token token
14
14
  */
15
- uploadMany(configArray: Array<UploadConfig>): Promise<import("../types").ApiWrapper<FileResponse, import("../types").BaseMessages>[]>;
15
+ uploadMany(configArray: Array<UploadConfig>): Promise<ApiWrapper<FileResponse, import("../types").BaseMessages>[]>;
16
+ get<T extends JFileExtended>(idFile: number, format?: string): Promise<ApiWrapper<T>>;
16
17
  /**
17
18
  * Crop an image
18
19
  * @param config crop configuration
19
20
  * @returns
20
21
  */
21
- update(idFile: number | string, type: string, config: FileCropConfig): Promise<import("../types").ApiWrapper<FileResponse, import("../types").BaseMessages> | {
22
+ update(idFile: number | string, type: string, config: FileCropConfig): Promise<ApiWrapper<FileResponse, import("../types").BaseMessages> | {
22
23
  result: {
23
24
  crop: {
24
25
  width: any;
@@ -33,10 +34,7 @@ export declare class JFileApi extends JBaseApi {
33
34
  token?: string;
34
35
  size: string;
35
36
  mediaKey: string;
36
- imagesize: {
37
- width: number;
38
- height: number;
39
- };
37
+ imagesize: import("../types").ImageSize;
40
38
  };
41
39
  o: string;
42
40
  f: string;
@@ -51,14 +49,14 @@ export declare class JFileApi extends JBaseApi {
51
49
  * @param token token
52
50
  * @returns
53
51
  */
54
- deleteFile(idFile: number | string, attrName: string, token: string, signal?: AbortSignal): Promise<import("../types").ApiWrapper<"", import("../types").BaseMessages>>;
52
+ deleteFile(idFile: number | string, attrName: string, token: string, signal?: AbortSignal): Promise<ApiWrapper<"", import("../types").BaseMessages>>;
55
53
  /**
56
54
  * delete the image associated with a content. This action is permanent. There is no two step process with a token
57
55
  * @param id content id
58
56
  * @param type content type
59
57
  * @returns
60
58
  */
61
- deleteImage(id: number | string, type: string): Promise<import("../types").ApiWrapper<{
59
+ deleteImage(id: number | string, type: string): Promise<ApiWrapper<{
62
60
  id: number;
63
61
  }, import("../types").BaseMessages>>;
64
62
  }
@@ -7,6 +7,7 @@ export * from './base';
7
7
  export * from './bookmark/bookmark';
8
8
  export * from './community';
9
9
  export * from './diapazone/diapazone';
10
+ export * from './faq/faq';
10
11
  export * from './file';
11
12
  export * from './filebank';
12
13
  export * from './group';
@@ -21,6 +21,7 @@ import { JWedocApi } from './wedoc/wedoc';
21
21
  import { Network } from '../util/network';
22
22
  import { TVDisplayApi } from './tvDisplay/tvDisplay';
23
23
  import { JShareApi } from './share/share';
24
+ import { JFaqApi } from './faq/faq';
24
25
  /**
25
26
  * In browser usage, 'window' should be the window object.
26
27
  * In server side usage, 'window' object given must implement the fetch method, used by the Apis.
@@ -45,6 +46,7 @@ export declare class JamespotUserApi {
45
46
  community: JCommunityApi;
46
47
  diapazone: JDiapazoneApi;
47
48
  drive: JDriveApi;
49
+ faq: JFaqApi;
48
50
  file: JFileApi;
49
51
  filebank: JFilebankApi;
50
52
  group: JGroupApi;
@@ -1,6 +1,6 @@
1
1
  import { JBaseApi } from '../base';
2
2
  import { ApiWrapper, BaseMessagesOne, PagingResults } from '../../types';
3
- import { AutoCompeteConcept, AutocompleteHierarchy, AutoCompleteList, Concept, Taxonomy, TaxonomyCreate } from './types';
3
+ import { AutoCompleteConcept, AutocompleteHierarchy, AutoCompleteList, Concept, Taxonomy, TaxonomyCreate } from './types';
4
4
  export declare class JTaxonomyApi extends JBaseApi {
5
5
  /**
6
6
  * list all taxonomies (no pagination)
@@ -12,10 +12,7 @@ export declare class JTaxonomyApi extends JBaseApi {
12
12
  * @param idTaxonomy taxonomy id
13
13
  * @param query search characters
14
14
  */
15
- autocomplete(idTaxonomy: string, query: string): Promise<ApiWrapper<{
16
- id: string;
17
- type: string;
18
- }[], import("../../types").BaseMessages>>;
15
+ autocomplete(idTaxonomy: string, query: string): Promise<ApiWrapper<AutoCompleteConcept[], import("../../types").BaseMessages>>;
19
16
  autocompleteList(payload: AutoCompleteList): Promise<ApiWrapper<PagingResults<Concept>, import("../../types").BaseMessages>>;
20
- autocompleteHierarchy(payload: AutocompleteHierarchy): Promise<ApiWrapper<PagingResults<AutoCompeteConcept>, import("../../types").BaseMessages>>;
17
+ autocompleteHierarchy(payload: AutocompleteHierarchy): Promise<ApiWrapper<PagingResults<AutoCompleteConcept>, import("../../types").BaseMessages>>;
21
18
  }
@@ -1,8 +1,8 @@
1
- import { AutoCompeteConcept, Concept, Taxonomy, TaxonomyCreate } from './types';
1
+ import { AutoCompleteConcept, Concept, Taxonomy, TaxonomyCreate } from './types';
2
2
  import { ApiWrapper, BaseMessages, PagingResults } from '../../types';
3
3
  export declare const taxonomyList: ApiWrapper<Taxonomy[]>;
4
4
  export declare const taxonomyCreateParam: TaxonomyCreate;
5
5
  export declare const taxonomyCreateResponse: ApiWrapper<Taxonomy, BaseMessages>;
6
- export declare const taxonomyAutocomplete: ApiWrapper<AutoCompeteConcept[]>;
6
+ export declare const taxonomyAutocomplete: ApiWrapper<AutoCompleteConcept[]>;
7
7
  export declare const conceptAutocomplete: ApiWrapper<PagingResults<Concept>>;
8
- export declare const conceptTaxonomyHierarchy: ApiWrapper<PagingResults<AutoCompeteConcept>>;
8
+ export declare const conceptTaxonomyHierarchy: ApiWrapper<PagingResults<AutoCompleteConcept>>;
@@ -74,7 +74,7 @@ export declare type AutocompleteHierarchy = {
74
74
  uriTaxonomy: string;
75
75
  uriConcept?: string;
76
76
  };
77
- export declare type AutoCompeteConcept = {
77
+ export declare type AutoCompleteConcept = {
78
78
  id: string;
79
79
  uri: string;
80
80
  shortUri: string;
@@ -0,0 +1,30 @@
1
+ import { jArticleView, MaybeWithToken } from './utils';
2
+ import { ArticleCreation, AutoCompleteConcept } from '../apis';
3
+ import { ImageSize } from './file';
4
+ import { AudienceAutocomplete } from './autocomplete';
5
+ export declare type FaqCategoryView = jArticleView & {
6
+ faqColor?: string;
7
+ _audience: AudienceAutocomplete[];
8
+ image?: ImageSize | null;
9
+ tags?: AutoCompleteConcept[];
10
+ type: 'faq';
11
+ isWeb: boolean;
12
+ };
13
+ export declare type CreateFaqCategory = MaybeWithToken<Omit<ArticleCreation, 'idSpot'>> & {
14
+ image?: ImageSize | null;
15
+ tags?: string;
16
+ faqColor?: string;
17
+ isWeb?: boolean;
18
+ type: 'faq';
19
+ };
20
+ export declare type EditFaqCategory = CreateFaqCategory & {
21
+ uri: string;
22
+ format?: string;
23
+ };
24
+ export declare type FaqTaxonomy = {
25
+ title: string;
26
+ id: string;
27
+ };
28
+ export declare type FaqHookProperties = {
29
+ _web: '0' | '1' | '';
30
+ };
@@ -5,6 +5,10 @@ export declare type UploadConfig = {
5
5
  file?: File | null;
6
6
  url?: string;
7
7
  };
8
+ export declare type ImageSize = {
9
+ width: number;
10
+ height: number;
11
+ };
8
12
  export declare type FileResponse = {
9
13
  id: string;
10
14
  name: string;
@@ -13,10 +17,7 @@ export declare type FileResponse = {
13
17
  crop?: FileCropConfig;
14
18
  size: string;
15
19
  mediaKey: string;
16
- imagesize: {
17
- width: number;
18
- height: number;
19
- };
20
+ imagesize: ImageSize;
20
21
  };
21
22
  export declare type FileCropConfig = {
22
23
  x: number;
@@ -33,3 +34,14 @@ export declare type jFileLittle = Readable<Omit<jObjectLittle, 'dateModified'> &
33
34
  dateCreation: string;
34
35
  dateModified: string | null;
35
36
  }>;
37
+ export declare type jFileRendition = {
38
+ name: string;
39
+ filename: string;
40
+ dateModified: string;
41
+ mimetype: string;
42
+ };
43
+ export declare type JFileExtended = jFileLittle & {
44
+ meta?: string;
45
+ _renditions: string[];
46
+ _renditionsData: Record<string, jFileRendition>;
47
+ };
@@ -7,6 +7,7 @@ export * from './autocomplete';
7
7
  export * from './bookmark';
8
8
  export * from './diapazone';
9
9
  export * from './drive';
10
+ export * from './faq';
10
11
  export * from './file';
11
12
  export * from './mediaLibrary';
12
13
  export * from './model';
@@ -1,5 +1,5 @@
1
1
  import { JamespotUserApi } from '../apis';
2
- import { ApiDefaultWrapper, PagingResults, jArticleLittle, jObjectAutocomplete, jObjectLittle, jObjectList, jUserList, Rights } from '../types';
2
+ import { ApiDefaultWrapper, PagingResults, jArticleLittle, jObjectAutocomplete, jObjectLittle, jObjectList, jUserList, Rights, jArticleView } from '../types';
3
3
  import { jCommentList } from '../types/comment';
4
4
  import { FetchResponseType, WindowBrowser } from '../window';
5
5
  import { Network } from './network';
@@ -12,6 +12,7 @@ export declare const validateApiWrapper: <T extends ApiDefaultWrapper<import("..
12
12
  export declare const validatePagingResults: <T>(res: PagingResults<T>) => void;
13
13
  export declare const validateObjectIsFormatLittle: <T extends jObjectLittle = jObjectLittle>(object: T) => void;
14
14
  export declare const validateObjectIsFormatList: <T extends jObjectList = jObjectList>(object: T) => void;
15
+ export declare const validateArticleIsFormatView: <T extends jArticleView = jArticleView>(object: T) => void;
15
16
  export declare const validateUserIsFormatList: <T extends jUserList = jUserList>(object: T) => void;
16
17
  export declare const validateCommentIsFormatList: <T extends jCommentList = jCommentList>(object: T) => void;
17
18
  export declare const validateObjectIsFormatAutocomplete: <T extends jObjectAutocomplete = jObjectAutocomplete>(object: T) => void;
@@ -1,2 +1,5 @@
1
1
  export declare function extractTaxonomiesFromObject(objet: Record<string, unknown>): Record<string, unknown>;
2
+ export declare function extractTaxonomiesFromObjectAndMapProperty(objet: Record<string, unknown>, property: string, format?: (o: any) => any): {
3
+ [k: string]: any;
4
+ };
2
5
  export declare function extractTaxonomiesFromObjectAndMapUri(objet: Record<string, unknown>): Record<string, unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-user-api",
3
- "version": "1.0.113",
3
+ "version": "1.0.115",
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,51 @@
1
+ {
2
+ "o": "article",
3
+ "f": "create",
4
+ "error": 0,
5
+ "messages": [
6
+ {
7
+ "code": 200,
8
+ "msg": "Enregistrement r\u00e9ussi"
9
+ }
10
+ ],
11
+ "result": [
12
+ {
13
+ "id": 19,
14
+ "mainType": "article",
15
+ "type": "faq",
16
+ "uri": "faq/19",
17
+ "dateCreation": "2023-08-03 12:00:15",
18
+ "dateModified": "2023-08-03 12:00:15",
19
+ "title": "FAQ test",
20
+ "_url": "/ng/app/faq/c/19",
21
+ "_right": {
22
+ "create": true,
23
+ "read": true,
24
+ "publish": false,
25
+ "administrate": true,
26
+ "update": true,
27
+ "delete": true,
28
+ "comment": false,
29
+ "member": true
30
+ },
31
+ "description": "<div class='content-html'>FAQ Category description !</div>",
32
+ "_user": {
33
+ "id": 4,
34
+ "mainType": "user",
35
+ "type": "user",
36
+ "uri": "user/4",
37
+ "dateCreation": "2019-07-09 15:48:26",
38
+ "dateModified": "2019-07-09 15:51:24",
39
+ "title": "Admin1",
40
+ "_url": "/user/4",
41
+ "level": 9
42
+ },
43
+ "processContext": null,
44
+ "faqColor": "#111111",
45
+ "_audience": [],
46
+ "image": null,
47
+ "tags": [],
48
+ "isWeb": false
49
+ }
50
+ ]
51
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "o": "article",
3
+ "f": "delete",
4
+ "error": 0,
5
+ "messages": [
6
+ {
7
+ "code": 200,
8
+ "msg": "L'article a \u00e9t\u00e9 supprim\u00e9 avec succ\u00e8s"
9
+ }
10
+ ],
11
+ "result": true
12
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ "o": "article",
3
+ "f": "get",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "id": 416,
8
+ "mainType": "article",
9
+ "type": "faq",
10
+ "uri": "faq/416",
11
+ "dateCreation": "2023-09-12 14:39:30",
12
+ "dateModified": "2023-09-12 14:39:30",
13
+ "title": "CATEGORY 1",
14
+ "_url": "/ng/app/faq/c/416",
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'>description FAQ FOR TEST categorie 1</div>",
26
+ "_user": {
27
+ "id": 4,
28
+ "mainType": "user",
29
+ "type": "user",
30
+ "uri": "user/4",
31
+ "dateCreation": "2019-07-09 15:48:26",
32
+ "dateModified": "2023-09-12 10:59:13",
33
+ "title": "Admin1",
34
+ "_url": "/user/4",
35
+ "level": 9
36
+ },
37
+ "processContext": null,
38
+ "faqColor": "",
39
+ "_audience": [],
40
+ "image": null,
41
+ "tags": [],
42
+ "isWeb": false,
43
+ "_nbAttachedFiles": 0
44
+ }
45
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "o": "article",
3
+ "f": "getAttachment",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": [
7
+ {
8
+ "id": 70,
9
+ "mainType": "fileArticle",
10
+ "type": "fileArticle",
11
+ "uri": "fileArticle/70",
12
+ "dateCreation": "2023-09-11 10:56:53",
13
+ "dateModified": "2023-09-11 10:56:53",
14
+ "title": "imgTest.jpg",
15
+ "_url": "/article/416"
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "o": "article",
3
+ "f": "update",
4
+ "error": 0,
5
+ "messages": [
6
+ {
7
+ "code": 200,
8
+ "msg": "Enregistrement r\u00e9ussi"
9
+ }
10
+ ],
11
+ "result": {
12
+ "id": 20,
13
+ "mainType": "article",
14
+ "type": "faq",
15
+ "uri": "faq/20",
16
+ "dateCreation": "2023-08-03 12:00:16",
17
+ "dateModified": "2023-08-03 12:00:17",
18
+ "title": "New title",
19
+ "_url": "/ng/app/faq/c/20",
20
+ "_right": {
21
+ "create": true,
22
+ "read": true,
23
+ "publish": false,
24
+ "administrate": true,
25
+ "update": true,
26
+ "delete": true,
27
+ "comment": false,
28
+ "member": true
29
+ },
30
+ "description": "<div class='content-html'>New description</div>",
31
+ "_user": {
32
+ "id": 4,
33
+ "mainType": "user",
34
+ "type": "user",
35
+ "uri": "user/4",
36
+ "dateCreation": "2019-07-09 15:48:26",
37
+ "dateModified": "2019-07-09 15:51:24",
38
+ "title": "Admin1",
39
+ "_url": "/user/4",
40
+ "level": 9
41
+ },
42
+ "processContext": null,
43
+ "faqColor": "#111111",
44
+ "_audience": [],
45
+ "image": null,
46
+ "tags": [],
47
+ "isWeb": false
48
+ }
49
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "o": "faq",
3
+ "f": "getFaqTaxonomy",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "title": "FAQ_Custom_Taxonomy",
8
+ "id": "3"
9
+ }
10
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "o": "faq",
3
+ "f": "getHookProperties",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "_web": ""
8
+ }
9
+ }