jamespot-user-api 1.0.114 → 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.
- package/documentation/assets/search.js +1 -1
- package/documentation/classes/AdminLicenseApi.html +11 -11
- package/documentation/classes/AdminStoreApi.html +1 -1
- package/documentation/classes/AdminUtilsApi.html +1 -1
- package/documentation/classes/JApplicationApi.html +8 -8
- package/documentation/classes/JArticleApi.html +1 -1
- package/documentation/classes/JAssetReservation.html +1 -1
- package/documentation/classes/JAudienceApi.html +1 -1
- package/documentation/classes/JBaseApi.html +1 -1
- package/documentation/classes/JBookmarkApi.html +1 -1
- package/documentation/classes/JCommunityApi.html +1 -1
- package/documentation/classes/JDiapazoneApi.html +1 -1
- package/documentation/classes/JFaqApi.html +1 -0
- package/documentation/classes/JFileApi.html +5 -5
- package/documentation/classes/JFilebankApi.html +1 -1
- package/documentation/classes/JGroupApi.html +9 -9
- package/documentation/classes/JLandApi.html +1 -1
- package/documentation/classes/JMessengerApi.html +1 -1
- package/documentation/classes/JSearchApi.html +6 -6
- package/documentation/classes/JShareApi.html +1 -1
- package/documentation/classes/JTaxonomyApi.html +2 -2
- package/documentation/classes/JUserApi.html +4 -4
- package/documentation/classes/JWedocApi.html +1 -1
- package/documentation/classes/JamespotUserApi.html +1 -1
- package/documentation/classes/Network.html +1 -1
- package/documentation/classes/TVDisplayApi.html +1 -1
- package/documentation/classes/WindowBrowser.html +1 -1
- package/documentation/enums/StudioApplicationStatus.html +1 -1
- package/documentation/index.html +1 -1
- package/documentation/interfaces/AccessRightObject.html +1 -1
- package/documentation/interfaces/AdminLicenseUser.html +1 -1
- package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
- package/documentation/interfaces/ApiWrapper.html +1 -1
- package/documentation/interfaces/BaseAutocomplete.html +1 -1
- package/documentation/interfaces/BaseMessage.html +1 -1
- package/documentation/interfaces/Category.html +1 -1
- package/documentation/interfaces/FileBankProps.html +1 -1
- package/documentation/interfaces/FolderProps.html +1 -1
- package/documentation/interfaces/ListFilterSpec.html +1 -1
- package/documentation/interfaces/OF.html +1 -1
- package/documentation/interfaces/ObjectListProps.html +1 -1
- package/documentation/interfaces/PagingResults.html +1 -1
- package/documentation/interfaces/RootFolderProps.html +1 -1
- package/documentation/interfaces/SearchCategoryModel.html +1 -1
- package/documentation/interfaces/SearchCategoryValue.html +1 -1
- package/documentation/interfaces/SearchConfig.html +1 -1
- package/documentation/interfaces/SearchFacetModel.html +1 -1
- package/documentation/interfaces/SearchFacetValueModel.html +1 -1
- package/documentation/interfaces/SearchQuery.html +1 -1
- package/documentation/interfaces/SearchQueryFilterModel.html +1 -1
- package/documentation/interfaces/SearchQueryOption.html +1 -1
- package/documentation/interfaces/SearchQueryResult.html +1 -1
- package/documentation/interfaces/SearchQuerySortModel.html +1 -1
- package/documentation/interfaces/SearchResultCatProps.html +1 -1
- package/documentation/interfaces/SearchResultPropsApp.html +1 -1
- package/documentation/interfaces/SearchResultPropsObject.html +1 -1
- package/documentation/interfaces/SpotProps.html +1 -1
- package/documentation/interfaces/Taxonomy.html +1 -1
- package/documentation/interfaces/TaxonomyCreate.html +1 -1
- package/documentation/interfaces/WindowInterface.html +1 -1
- package/documentation/modules.html +9 -9
- package/lib/jamespot-user-api.js +1 -1
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/src/apis/article/article.d.ts +10 -3
- package/lib/src/apis/article/article.mock.d.ts +2 -0
- package/lib/src/apis/faq/faq.d.ts +12 -0
- package/lib/src/apis/faq/faq.mock.d.ts +7 -0
- package/lib/src/apis/faq/faq.test.d.ts +1 -0
- package/lib/src/apis/file.d.ts +1 -8
- package/lib/src/apis/index.d.ts +1 -0
- package/lib/src/apis/jamespotUserApi.d.ts +2 -0
- package/lib/src/apis/taxonomy/taxonomy.d.ts +3 -6
- package/lib/src/apis/taxonomy/taxonomy.mock.d.ts +3 -3
- package/lib/src/apis/taxonomy/types.d.ts +1 -1
- package/lib/src/types/faq.d.ts +30 -0
- package/lib/src/types/file.d.ts +5 -4
- package/lib/src/types/index.d.ts +1 -0
- package/lib/src/util/Test.d.ts +2 -1
- package/lib/src/util/taxonomy.d.ts +3 -0
- package/package.json +1 -1
- package/phpunitMock/articleCreate-faq-category.json +51 -0
- package/phpunitMock/articleDelete-faq-category.json +12 -0
- package/phpunitMock/articleGet-faq-category.json +45 -0
- package/phpunitMock/articleGetAttachment-success.json +18 -0
- package/phpunitMock/articleUpdate-faq-category.json +49 -0
- package/phpunitMock/faqGetFaqTaxonomy-success.json +10 -0
- 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<
|
|
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 {};
|
package/lib/src/apis/file.d.ts
CHANGED
|
@@ -29,19 +29,12 @@ export declare class JFileApi extends JBaseApi {
|
|
|
29
29
|
rotation: any;
|
|
30
30
|
};
|
|
31
31
|
id: string;
|
|
32
|
-
/**
|
|
33
|
-
* Upload a file to the server. use the same token to link the file to an article
|
|
34
|
-
* @param config configuration object. One of "file" and "url" is mandatory
|
|
35
|
-
*/
|
|
36
32
|
name: string;
|
|
37
33
|
type: string;
|
|
38
34
|
token?: string;
|
|
39
35
|
size: string;
|
|
40
36
|
mediaKey: string;
|
|
41
|
-
imagesize:
|
|
42
|
-
width: number;
|
|
43
|
-
height: number;
|
|
44
|
-
};
|
|
37
|
+
imagesize: import("../types").ImageSize;
|
|
45
38
|
};
|
|
46
39
|
o: string;
|
|
47
40
|
f: string;
|
package/lib/src/apis/index.d.ts
CHANGED
|
@@ -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 {
|
|
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<
|
|
17
|
+
autocompleteHierarchy(payload: AutocompleteHierarchy): Promise<ApiWrapper<PagingResults<AutoCompleteConcept>, import("../../types").BaseMessages>>;
|
|
21
18
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
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<
|
|
6
|
+
export declare const taxonomyAutocomplete: ApiWrapper<AutoCompleteConcept[]>;
|
|
7
7
|
export declare const conceptAutocomplete: ApiWrapper<PagingResults<Concept>>;
|
|
8
|
-
export declare const conceptTaxonomyHierarchy: ApiWrapper<PagingResults<
|
|
8
|
+
export declare const conceptTaxonomyHierarchy: ApiWrapper<PagingResults<AutoCompleteConcept>>;
|
|
@@ -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
|
+
};
|
package/lib/src/types/file.d.ts
CHANGED
|
@@ -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;
|
package/lib/src/types/index.d.ts
CHANGED
package/lib/src/util/Test.d.ts
CHANGED
|
@@ -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
|
@@ -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,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
|
+
}
|