jamespot-user-api 1.0.121 → 1.0.123
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 -1
- package/documentation/classes/JFileApi.html +6 -6
- 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/JObjectApi.html +1 -0
- 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 +11 -11
- package/lib/jamespot-user-api.js +1 -1
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/src/apis/faq/faq.d.ts +11 -2
- package/lib/src/apis/faq/faq.mock.d.ts +29 -4
- package/lib/src/apis/file/file.d.ts +8 -1
- package/lib/src/apis/index.d.ts +1 -0
- package/lib/src/apis/jamespotUserApi.d.ts +2 -0
- package/lib/src/apis/object/object.d.ts +12 -0
- package/lib/src/apis/object/object.mock.d.ts +5 -0
- package/lib/src/apis/object/object.test.d.ts +1 -0
- package/lib/src/apis/share/share.d.ts +2 -11
- package/lib/src/apis/share/share.mock.d.ts +3 -7
- package/lib/src/apis/wedoc/wedoc.d.ts +5 -6
- package/lib/src/apis/wedoc/wedoc.mock.d.ts +4 -1
- package/lib/src/types/faq.d.ts +40 -3
- package/lib/src/types/group.d.ts +2 -0
- package/lib/src/types/share.d.ts +2 -1
- package/lib/src/types/utils.d.ts +3 -0
- package/lib/src/types/wedoc.d.ts +6 -1
- package/package.json +1 -1
- package/phpunitMock/articleCreate-faq-category.json +2 -2
- package/phpunitMock/articleCreate-faq-item.json +52 -0
- package/phpunitMock/articleDelete-faq-item.json +12 -0
- package/phpunitMock/articleGet-faq-category.json +9 -3
- package/phpunitMock/articleUpdate-faq-category.json +2 -2
- package/phpunitMock/articleUpdate-faq-item.json +50 -0
- package/phpunitMock/assetReservationBookByDate-default.json +2 -0
- package/phpunitMock/assetReservationCancelReservation-default.json +2 -0
- package/phpunitMock/assetReservationCreateReservation-default.json +2 -0
- package/phpunitMock/faqAddEntry-success.json +54 -0
- package/phpunitMock/faqAddTheme-success.json +17 -6
- package/phpunitMock/faqCheckItem-success.json +10 -8
- package/phpunitMock/faqDeleteTheme-success.json +22 -6
- package/phpunitMock/faqGetEntry-success.json +57 -0
- package/phpunitMock/faqMoveEntry-success.json +56 -0
- package/phpunitMock/objectGetAccess-default.json +1 -0
- package/phpunitMock/objectGetAccessHash-default.json +7 -0
- package/phpunitMock/objectGetObject-default.json +16 -0
- package/phpunitMock/objectListAssetReservationList-default.json +86 -73
- package/phpunitMock/objectListFaqQueryList-faq-success.json +10 -5
- package/phpunitMock/objectSetAccess-default.json +1 -0
- package/phpunitMock/onlyOfficeAskAccess-ask-read.json +1 -0
- package/phpunitMock/onlyOfficeGetAccessRequest-all-request.json +19 -0
- package/phpunitMock/onlyOfficeGetFile-get-file.json +13 -10
- package/phpunitMock/onlyOfficeGetFiles-get-files.json +17 -13
- package/phpunitMock/onlyOfficeSetAccessRequest-accept.json +1 -0
- package/phpunitMock/sharedContentObjectLinks-default.json +1 -0
- package/phpunitMock/sharedContentSetObjectAccessRule-default.json +1 -0
- package/phpunitMock/tvDisplayGetChannel-dynamic.json +1067 -2
- package/phpunitMock/tvDisplayGetChannel-slideshow.json +1 -0
- package/phpunitMock/tvDisplayGetConfigureChannel-dynamic.json +1067 -2
- package/phpunitMock/tvDisplayGetConfigureChannel-slideshow.json +1 -0
- package/phpunitMock/onlyOfficeGetObject-default.json +0 -26
- package/phpunitMock/onlyOfficeGetObjectAccess-default.json +0 -34
- package/phpunitMock/onlyOfficeSetObjectAccess-default.json +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JBaseApi } from '../base';
|
|
2
|
-
import { ApiWrapper, CreateFaqCategory, CreateFaqTheme, EditFaqCategory, ExtendedFaqCategory, FaqAccess, FaqList, FaqView, FaqHookProperties, FaqItemList, FaqTaxonomy, jArticleLittle, Orders, PagingResults, DeleteFaqTheme, EditFaqTheme, ApiDefaultWrapper, Format } from '../../types';
|
|
2
|
+
import { ApiWrapper, CreateFaqCategory, CreateFaqTheme, EditFaqCategory, ExtendedFaqCategory, FaqAccess, FaqList, FaqView, FaqHookProperties, FaqItemList, FaqTaxonomy, jArticleLittle, Orders, PagingResults, DeleteFaqTheme, EditFaqTheme, ApiDefaultWrapper, Format, CreateFaqEntry, FaqItemView, AddFaqEntry, EditFaqEntry, MoveFaqEntry } from '../../types';
|
|
3
3
|
export declare class JFaqApi extends JBaseApi {
|
|
4
4
|
getCategoriesList<T extends ExtendedFaqCategory<FaqList> = ExtendedFaqCategory<FaqList>>(format?: Format, orders?: Orders): Promise<ApiWrapper<PagingResults<T>>>;
|
|
5
5
|
createCategory<T extends jArticleLittle = FaqView>(params: Omit<CreateFaqCategory, 'type'>, format?: Format): Promise<ApiWrapper<Array<T>>>;
|
|
@@ -14,5 +14,14 @@ export declare class JFaqApi extends JBaseApi {
|
|
|
14
14
|
getAccess(): Promise<ApiWrapper<FaqAccess>>;
|
|
15
15
|
createTheme<T extends jArticleLittle = FaqView>(params: CreateFaqTheme, format?: Format): Promise<ApiWrapper<T>>;
|
|
16
16
|
deleteTheme<T extends jArticleLittle = FaqView>(params: DeleteFaqTheme, format?: Format): Promise<ApiWrapper<T>>;
|
|
17
|
-
|
|
17
|
+
updateTheme(params: EditFaqTheme, format?: Format): Promise<ApiDefaultWrapper>;
|
|
18
|
+
getEntry<T extends jArticleLittle = FaqItemView>(uri: string, format?: Format): Promise<ApiWrapper<T>>;
|
|
19
|
+
deleteEntry(id: number): Promise<ApiWrapper<boolean>>;
|
|
20
|
+
createEntry<T extends jArticleLittle = FaqItemView>(params: Omit<CreateFaqEntry, 'type'>, format?: Format): Promise<ApiWrapper<Array<T>>>;
|
|
21
|
+
addEntry<T extends jArticleLittle = FaqView>(params: AddFaqEntry, format?: Format): Promise<ApiWrapper<T>>;
|
|
22
|
+
updateEntry<T extends jArticleLittle = FaqItemView>(params: Omit<EditFaqEntry, 'type'>, format?: Format): Promise<ApiWrapper<T>>;
|
|
23
|
+
moveEntry<T extends jArticleLittle = FaqView>(params: MoveFaqEntry, format?: Format): Promise<ApiWrapper<{
|
|
24
|
+
source?: T;
|
|
25
|
+
target: T;
|
|
26
|
+
}>>;
|
|
18
27
|
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { ApiWrapper, ExtendedFaqCategory, FaqAccess, FaqList, FaqView, FaqHookProperties, FaqItemList, FaqTaxonomy, PagingResults, ApiDefaultWrapper } from '../../types';
|
|
1
|
+
import { ApiWrapper, ExtendedFaqCategory, FaqAccess, FaqList, FaqView, FaqHookProperties, FaqItemList, FaqTaxonomy, PagingResults, ApiDefaultWrapper, FaqItemView } from '../../types';
|
|
2
2
|
export declare const faqCreateCategory: ApiWrapper<(FaqView & {
|
|
3
3
|
processContext: null;
|
|
4
4
|
})[]>;
|
|
5
|
-
export declare const faqGetCategory: ApiWrapper<FaqView
|
|
6
|
-
|
|
5
|
+
export declare const faqGetCategory: ApiWrapper<FaqView & {
|
|
6
|
+
processContext: null;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const faqUpdateCategory: ApiWrapper<FaqView & {
|
|
9
|
+
processContext: null;
|
|
10
|
+
}>;
|
|
7
11
|
export declare const faqDeleteCategory: ApiWrapper<boolean>;
|
|
8
12
|
export declare const faqGetTaxonomy: ApiWrapper<FaqTaxonomy>;
|
|
9
13
|
export declare const faqGetHookProperties: ApiWrapper<FaqHookProperties>;
|
|
@@ -18,4 +22,25 @@ export declare const faqCreateTheme: ApiWrapper<FaqView & {
|
|
|
18
22
|
export declare const faqDeleteTheme: ApiWrapper<FaqView & {
|
|
19
23
|
processContext: null;
|
|
20
24
|
}>;
|
|
21
|
-
export declare const
|
|
25
|
+
export declare const faqUpdateTheme: ApiDefaultWrapper;
|
|
26
|
+
export declare const faqGetItem: ApiWrapper<FaqItemView & {
|
|
27
|
+
processContext: null;
|
|
28
|
+
}>;
|
|
29
|
+
export declare const faqAddEntry: ApiWrapper<FaqView & {
|
|
30
|
+
processContext: null;
|
|
31
|
+
}>;
|
|
32
|
+
export declare const faqDeleteEntry: ApiWrapper<boolean>;
|
|
33
|
+
export declare const faqCreateEntry: ApiWrapper<Array<FaqItemView & {
|
|
34
|
+
processContext: null;
|
|
35
|
+
}>>;
|
|
36
|
+
export declare const faqUpdateEntry: ApiWrapper<FaqItemView & {
|
|
37
|
+
processContext: null;
|
|
38
|
+
}>;
|
|
39
|
+
export declare const faqMoveEntry: ApiWrapper<{
|
|
40
|
+
source?: FaqView & {
|
|
41
|
+
processContext: null;
|
|
42
|
+
};
|
|
43
|
+
target: FaqView & {
|
|
44
|
+
processContext: null;
|
|
45
|
+
};
|
|
46
|
+
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiWrapper, FileCropConfig, UploadConfig, jFileLittle, jFileLittleCrop } from '../../types';
|
|
1
|
+
import { ApiWrapper, FileCropConfig, UploadConfig, jObjectLittle, jArticleLittle, jFileLittle, jFileLittleCrop } from '../../types';
|
|
2
2
|
import { JBaseApi } from '../base';
|
|
3
3
|
export declare class JFileApi extends JBaseApi {
|
|
4
4
|
/**
|
|
@@ -42,6 +42,13 @@ export declare class JFileApi extends JBaseApi {
|
|
|
42
42
|
token: string;
|
|
43
43
|
}[]>;
|
|
44
44
|
get<T extends jFileLittle>(idFile: number, format?: string): Promise<ApiWrapper<T>>;
|
|
45
|
+
getParent<T extends jArticleLittle>(idFile: number, format?: string): Promise<ApiWrapper<T>>;
|
|
46
|
+
getWithHash<T extends jFileLittle>(idFile: number, hash: string, format?: string): Promise<ApiWrapper<T>>;
|
|
47
|
+
duplicate(idFile: number, title: string, publishTo?: string[]): Promise<ApiWrapper<{
|
|
48
|
+
idFile: number;
|
|
49
|
+
article: jObjectLittle;
|
|
50
|
+
}>>;
|
|
51
|
+
updateFile(idFile: number, title: string): Promise<ApiWrapper<boolean>>;
|
|
45
52
|
/**
|
|
46
53
|
* Crop an image
|
|
47
54
|
* @param config crop configuration
|
package/lib/src/apis/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './group';
|
|
|
14
14
|
export * from './jamespotUserApi';
|
|
15
15
|
export * from './jland/jland';
|
|
16
16
|
export * from './messenger';
|
|
17
|
+
export * from './object/object';
|
|
17
18
|
export * from './share/share';
|
|
18
19
|
export * from './search/search';
|
|
19
20
|
export * from './share/share';
|
|
@@ -22,6 +22,7 @@ import { Network } from '../util/network';
|
|
|
22
22
|
import { TVDisplayApi } from './tvDisplay/tvDisplay';
|
|
23
23
|
import { JShareApi } from './share/share';
|
|
24
24
|
import { JFaqApi } from './faq/faq';
|
|
25
|
+
import { JObjectApi } from './object/object';
|
|
25
26
|
/**
|
|
26
27
|
* In browser usage, 'window' should be the window object.
|
|
27
28
|
* In server side usage, 'window' object given must implement the fetch method, used by the Apis.
|
|
@@ -53,6 +54,7 @@ export declare class JamespotUserApi {
|
|
|
53
54
|
jland: JLandApi;
|
|
54
55
|
mediaLibrary: JMediaLibraryApi;
|
|
55
56
|
messenger: JMessengerApi;
|
|
57
|
+
object: JObjectApi;
|
|
56
58
|
search: JSearchApi;
|
|
57
59
|
share: JShareApi;
|
|
58
60
|
taxonomy: JTaxonomyApi;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ApiWrapper, jObjectLittle } from '../../types';
|
|
2
|
+
import { JBaseApi } from '../base';
|
|
3
|
+
import { ShareAccessProps, ShareGeneralAccessRules } from '../../types/share';
|
|
4
|
+
export declare class JObjectApi extends JBaseApi {
|
|
5
|
+
getObject(uri: string): Promise<ApiWrapper<jObjectLittle>>;
|
|
6
|
+
setAccess(uri: string, access: {
|
|
7
|
+
read: string[];
|
|
8
|
+
write: string[];
|
|
9
|
+
}, message: string, generalAccessRule: ShareGeneralAccessRules): Promise<ApiWrapper<boolean>>;
|
|
10
|
+
getAccess(uri: string): Promise<ApiWrapper<ShareAccessProps>>;
|
|
11
|
+
getAccessHash(uri: string): Promise<ApiWrapper<string>>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ApiWrapper, ShareAccessProps, jObjectLittle } from '../../types';
|
|
2
|
+
export declare const objectGetObject: ApiWrapper<jObjectLittle>;
|
|
3
|
+
export declare const objectGetAccess: ApiWrapper<ShareAccessProps>;
|
|
4
|
+
export declare const objectGetAccessHash: ApiWrapper<string>;
|
|
5
|
+
export declare const objectSetAccess: ApiWrapper<boolean>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
import { ApiWrapper } from '../../types';
|
|
2
2
|
import { JBaseApi } from '../base';
|
|
3
|
-
import { ShareAccessObject, ShareAccessProps, ShareAudienceItem, ShareGeneralAccessRules } from '../../types/share';
|
|
4
3
|
export declare class JShareApi extends JBaseApi {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
getObject(uri: string): Promise<ApiWrapper<ShareAccessObject>>;
|
|
8
|
-
askObjectAccess(uri: string, askAccess: 'read' | 'write', askMessage?: string): Promise<ApiWrapper<boolean>>;
|
|
9
|
-
setObjectAccess(uri: string, access: {
|
|
10
|
-
read: string[];
|
|
11
|
-
write: string[];
|
|
12
|
-
}, message: string, generalAccessRule: ShareGeneralAccessRules): Promise<ApiWrapper<boolean>>;
|
|
13
|
-
getObjectAccess(uri: string): Promise<ApiWrapper<ShareAccessProps>>;
|
|
14
|
-
getObjectAccessHash(uri: string): Promise<ApiWrapper<string>>;
|
|
4
|
+
contentObjectLinks(uri: string): Promise<ApiWrapper<number>>;
|
|
5
|
+
contentSetObjectAccessRule(uri: string, rule: 'link' | 'invitation', hash: string): Promise<ApiWrapper<boolean>>;
|
|
15
6
|
}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
import { ApiWrapper
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const shareGetObjectAccess: ApiWrapper<ShareAccessProps>;
|
|
5
|
-
export declare const shareGetObjectAccessRequest: ApiWrapper<ShareAudienceItem[]>;
|
|
6
|
-
export declare const shareSetObjectAccess: ApiWrapper<boolean>;
|
|
7
|
-
export declare const shareSetObjectAccessRequest: ApiWrapper<[]>;
|
|
1
|
+
import { ApiWrapper } from '../../types';
|
|
2
|
+
export declare const sharedContentObjectLinks: ApiWrapper<number>;
|
|
3
|
+
export declare const sharedContentSetObjectAccessRule: ApiWrapper<number>;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import { ApiWrapper, PagingResults, WedocFileType, WedocQueryType, WedocTemplate, jArticleLittle } from '../../types';
|
|
1
|
+
import { ApiWrapper, PagingResults, WedocFileType, WedocQueryType, WedocTemplate, jArticleLittle, jUserLittle } from '../../types';
|
|
2
2
|
import { JBaseApi } from '../base';
|
|
3
3
|
export declare class JWedocApi extends JBaseApi {
|
|
4
4
|
getFiles(query: WedocQueryType): Promise<ApiWrapper<PagingResults<WedocFileType>>>;
|
|
5
5
|
getFile(idFile: number, hash?: string): Promise<ApiWrapper<WedocFileType>>;
|
|
6
|
-
getTemplates(): Promise<ApiWrapper<WedocTemplate[]>>;
|
|
7
|
-
duplicateFile(idFile: number, title: string, publishTo: string[]): Promise<ApiWrapper<{
|
|
8
|
-
idFile: number;
|
|
9
|
-
article: jArticleLittle;
|
|
10
|
-
}>>;
|
|
6
|
+
getTemplates(signal?: AbortSignal): Promise<ApiWrapper<WedocTemplate[]>>;
|
|
11
7
|
deleteFile(idFile: number, withParent?: boolean): Promise<ApiWrapper<boolean>>;
|
|
12
8
|
createFile(title: string, type: string, publishTo: string[]): Promise<ApiWrapper<{
|
|
13
9
|
idFile: number;
|
|
@@ -15,4 +11,7 @@ export declare class JWedocApi extends JBaseApi {
|
|
|
15
11
|
}>>;
|
|
16
12
|
updateFile(idFile: number, title: string): Promise<ApiWrapper<boolean>>;
|
|
17
13
|
createVersion(idFile: number): Promise<ApiWrapper<boolean>>;
|
|
14
|
+
setAccessRequest(uri: string, idUser: number, requestAccessValue: 'accept' | 'deny', requestResponseMessage?: string): Promise<ApiWrapper<[]>>;
|
|
15
|
+
getAccessRequest(uri: string, idUser?: number): Promise<ApiWrapper<jUserLittle[]>>;
|
|
16
|
+
askAccess(uri: string, askAccess: 'read' | 'write', askMessage?: string): Promise<ApiWrapper<boolean>>;
|
|
18
17
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApiWrapper, PagingResults, WedocFileType, WedocTemplate, jArticleLittle } from '../../types';
|
|
1
|
+
import { ApiWrapper, PagingResults, WedocFileType, WedocTemplate, jArticleLittle, jUserLittle } from '../../types';
|
|
2
2
|
export declare const wedocGetTemplates: ApiWrapper<WedocTemplate[]>;
|
|
3
3
|
export declare const wedocCreateFile: ApiWrapper<{
|
|
4
4
|
idFile: number;
|
|
@@ -13,4 +13,7 @@ export declare const wedocDeleteFile: ApiWrapper<boolean>;
|
|
|
13
13
|
export declare const wedocGetFile: ApiWrapper<WedocFileType>;
|
|
14
14
|
export declare const wedocGetObjectAccessHash: ApiWrapper<string>;
|
|
15
15
|
export declare const wedocGetFiles: ApiWrapper<PagingResults<WedocFileType>>;
|
|
16
|
+
export declare const wedocAskAccess: ApiWrapper<boolean>;
|
|
17
|
+
export declare const wedocGetAccessRequest: ApiWrapper<jUserLittle[]>;
|
|
18
|
+
export declare const wedocSetAccessRequest: ApiWrapper<[]>;
|
|
16
19
|
export declare const wedocCreateVersion: ApiWrapper<boolean>;
|
package/lib/src/types/faq.d.ts
CHANGED
|
@@ -1,22 +1,35 @@
|
|
|
1
|
-
import { Format, jArticleList, MaybeWithToken } from './utils';
|
|
1
|
+
import { Format, jArticleList, jArticleLittle, MaybeWithToken } from './utils';
|
|
2
2
|
import { ArticleCreation, AutoCompleteConcept } from '../apis';
|
|
3
3
|
import { ImageSize } from './file';
|
|
4
4
|
import { AudienceAutocomplete } from './autocomplete';
|
|
5
5
|
export type FaqView = FaqList & {
|
|
6
6
|
_audience: AudienceAutocomplete[];
|
|
7
7
|
tags?: AutoCompleteConcept[];
|
|
8
|
-
type: 'faq';
|
|
9
8
|
isWeb: boolean;
|
|
9
|
+
faqContent?: {
|
|
10
|
+
title: string;
|
|
11
|
+
id?: string;
|
|
12
|
+
items: string[];
|
|
13
|
+
}[];
|
|
10
14
|
};
|
|
11
15
|
export type FaqList = jArticleList & {
|
|
12
16
|
faqColor?: string;
|
|
13
17
|
image?: ImageSize;
|
|
18
|
+
type: 'faq';
|
|
14
19
|
};
|
|
15
20
|
export type ExtendedFaqCategory<T extends FaqList> = T & {
|
|
16
21
|
_extend: {
|
|
17
22
|
itemsCount: number;
|
|
18
23
|
};
|
|
19
24
|
};
|
|
25
|
+
export type FaqItemView = Omit<FaqItemList, 'hierarchy'> & {
|
|
26
|
+
faqResponse: string;
|
|
27
|
+
tags?: AutoCompleteConcept[];
|
|
28
|
+
uriCategory: jArticleLittle[];
|
|
29
|
+
themeId: string;
|
|
30
|
+
_nbAttachedFiles?: number;
|
|
31
|
+
uiObjectLink: unknown;
|
|
32
|
+
};
|
|
20
33
|
export type FaqItemList = jArticleList & {
|
|
21
34
|
type: 'faqItem';
|
|
22
35
|
hierarchy: {
|
|
@@ -41,8 +54,13 @@ export type FaqTaxonomy = {
|
|
|
41
54
|
};
|
|
42
55
|
export type FaqHookProperties = {
|
|
43
56
|
_web?: '0' | '1' | '';
|
|
44
|
-
appImage?: string;
|
|
45
57
|
appImageText?: string;
|
|
58
|
+
appImage?: string | {
|
|
59
|
+
image: {
|
|
60
|
+
id: string;
|
|
61
|
+
type: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
46
64
|
};
|
|
47
65
|
export type FaqAccess = {
|
|
48
66
|
createCategory: boolean;
|
|
@@ -61,3 +79,22 @@ export type EditFaqTheme = {
|
|
|
61
79
|
indexTheme: number;
|
|
62
80
|
title: string;
|
|
63
81
|
};
|
|
82
|
+
export type CreateFaqEntry = MaybeWithToken<ArticleCreation> & {
|
|
83
|
+
tags?: string;
|
|
84
|
+
faqResponse?: string;
|
|
85
|
+
type: 'faqItem';
|
|
86
|
+
};
|
|
87
|
+
export type AddFaqEntry = {
|
|
88
|
+
idEntry: number;
|
|
89
|
+
idCategory: number;
|
|
90
|
+
theme: number;
|
|
91
|
+
};
|
|
92
|
+
export type EditFaqEntry = CreateFaqEntry & {
|
|
93
|
+
uri: string;
|
|
94
|
+
};
|
|
95
|
+
export type MoveFaqEntry = {
|
|
96
|
+
entryURI: string;
|
|
97
|
+
sourceURI?: string;
|
|
98
|
+
targetURI: string;
|
|
99
|
+
theme: number;
|
|
100
|
+
};
|
package/lib/src/types/group.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export type GroupProperties = {
|
|
|
44
44
|
widgets: Array<string>;
|
|
45
45
|
rss_access: '1' | '0';
|
|
46
46
|
rss_key: string;
|
|
47
|
+
fileSyncVersioningType: 'overwrite' | 'author-change';
|
|
47
48
|
_options: GroupPropertiesOptions;
|
|
48
49
|
_errors: [];
|
|
49
50
|
lastRssExecution?: Record<string, string>;
|
|
@@ -68,6 +69,7 @@ export type GroupPropertiesOptions = {
|
|
|
68
69
|
widgets: Array<GroupWidget>;
|
|
69
70
|
custom_widgets: Record<string, GroupCustomWidget> | [];
|
|
70
71
|
isArchive: number;
|
|
72
|
+
fileSyncVersioningType: Array<ValueLabel>;
|
|
71
73
|
};
|
|
72
74
|
export type RssType = {
|
|
73
75
|
url: string;
|
package/lib/src/types/share.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { GroupLittle } from './group';
|
|
1
2
|
import { jUserLittle } from './user';
|
|
2
3
|
import { Rights } from './utils';
|
|
3
4
|
export type ShareGeneralAccessRules = 'link' | 'invitation';
|
|
@@ -19,7 +20,7 @@ export type ShareAccessObject = {
|
|
|
19
20
|
_audience: ShareAudienceItem[];
|
|
20
21
|
_right: Rights;
|
|
21
22
|
};
|
|
22
|
-
export type ShareAudienceItem = jUserLittle;
|
|
23
|
+
export type ShareAudienceItem = jUserLittle | GroupLittle;
|
|
23
24
|
export type ShareAccessProps = {
|
|
24
25
|
audience: ShareAudienceItem[];
|
|
25
26
|
read: string[];
|
package/lib/src/types/utils.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ImageSize } from './file';
|
|
1
2
|
import { GroupLittle } from './group';
|
|
2
3
|
import { jUserLittle } from './user';
|
|
3
4
|
/**
|
|
@@ -100,6 +101,8 @@ export type jArticleList = jArticleLittle & {
|
|
|
100
101
|
description?: string | null;
|
|
101
102
|
_user: jUserLittle;
|
|
102
103
|
_right: Rights;
|
|
104
|
+
_audience: Audience[];
|
|
105
|
+
image?: ImageSize;
|
|
103
106
|
};
|
|
104
107
|
export type jArticleView = jArticleList & {};
|
|
105
108
|
export type Order = {
|
package/lib/src/types/wedoc.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { jUserLittle } from './user';
|
|
2
2
|
import { Filters, jObjectBase, jObjectLittle, Orders, Rights } from './utils';
|
|
3
|
+
export type AccessRequestStatusValues = 'accept' | 'deny';
|
|
4
|
+
export declare const ACCESS_REQUEST_ACCEPT = "accept";
|
|
5
|
+
export declare const ACCESS_REQUEST_DENY = "deny";
|
|
3
6
|
export type WedocFileInfo = {
|
|
4
7
|
color: string;
|
|
5
8
|
description: string;
|
|
@@ -16,9 +19,11 @@ export declare type WedocFileType = jObjectBase & {
|
|
|
16
19
|
dateModified: string;
|
|
17
20
|
dateCreation: string;
|
|
18
21
|
fileInfo: WedocFileInfo;
|
|
22
|
+
parentId: number;
|
|
19
23
|
parentFiles: number[];
|
|
24
|
+
_url: string;
|
|
20
25
|
};
|
|
21
|
-
_audience:
|
|
26
|
+
_audience: jObjectLittle[];
|
|
22
27
|
_right: Rights;
|
|
23
28
|
_user: jUserLittle;
|
|
24
29
|
};
|
package/package.json
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"mainType": "article",
|
|
15
15
|
"type": "faq",
|
|
16
16
|
"uri": "faq/19",
|
|
17
|
-
"dateCreation": "2023-
|
|
18
|
-
"dateModified": "2023-
|
|
17
|
+
"dateCreation": "2023-10-11 15:34:06",
|
|
18
|
+
"dateModified": "2023-10-11 15:34:06",
|
|
19
19
|
"title": "FAQ test",
|
|
20
20
|
"_url": "/ng/app/faq/c/19",
|
|
21
21
|
"_right": {
|
|
@@ -0,0 +1,52 @@
|
|
|
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": 22,
|
|
14
|
+
"mainType": "article",
|
|
15
|
+
"type": "faqItem",
|
|
16
|
+
"uri": "faqItem/22",
|
|
17
|
+
"dateCreation": "2023-10-11 14:43:22",
|
|
18
|
+
"dateModified": "2023-10-11 14:43:22",
|
|
19
|
+
"title": "TEST",
|
|
20
|
+
"_url": "/ng/app/faq/q/22",
|
|
21
|
+
"_right": {
|
|
22
|
+
"create": true,
|
|
23
|
+
"read": true,
|
|
24
|
+
"publish": false,
|
|
25
|
+
"administrate": true,
|
|
26
|
+
"update": true,
|
|
27
|
+
"delete": true,
|
|
28
|
+
"comment": true,
|
|
29
|
+
"member": true
|
|
30
|
+
},
|
|
31
|
+
"description": "<div class='content-html'></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
|
+
"_audience": [],
|
|
44
|
+
"processContext": null,
|
|
45
|
+
"faqResponse": "",
|
|
46
|
+
"uriCategory": [],
|
|
47
|
+
"themeId": "",
|
|
48
|
+
"uiObjectLink": [],
|
|
49
|
+
"tags": []
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"mainType": "article",
|
|
9
9
|
"type": "faq",
|
|
10
10
|
"uri": "faq/13",
|
|
11
|
-
"dateCreation": "2023-
|
|
12
|
-
"dateModified": "2023-
|
|
11
|
+
"dateCreation": "2023-10-11 15:33:49",
|
|
12
|
+
"dateModified": "2023-10-11 15:33:49",
|
|
13
13
|
"title": "CATEGORY 1",
|
|
14
14
|
"_url": "/ng/app/faq/c/13",
|
|
15
15
|
"_right": {
|
|
@@ -38,6 +38,12 @@
|
|
|
38
38
|
"faqColor": "",
|
|
39
39
|
"_audience": [],
|
|
40
40
|
"tags": [],
|
|
41
|
-
"isWeb": false
|
|
41
|
+
"isWeb": false,
|
|
42
|
+
"faqContent": [
|
|
43
|
+
{
|
|
44
|
+
"title": "FAQ THEME",
|
|
45
|
+
"items": ["faqItem/14"]
|
|
46
|
+
}
|
|
47
|
+
]
|
|
42
48
|
}
|
|
43
49
|
}
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"mainType": "article",
|
|
14
14
|
"type": "faq",
|
|
15
15
|
"uri": "faq/20",
|
|
16
|
-
"dateCreation": "2023-
|
|
17
|
-
"dateModified": "2023-
|
|
16
|
+
"dateCreation": "2023-10-11 15:34:06",
|
|
17
|
+
"dateModified": "2023-10-11 15:34:06",
|
|
18
18
|
"title": "New title",
|
|
19
19
|
"_url": "/ng/app/faq/c/20",
|
|
20
20
|
"_right": {
|
|
@@ -0,0 +1,50 @@
|
|
|
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": 22,
|
|
13
|
+
"mainType": "article",
|
|
14
|
+
"type": "faqItem",
|
|
15
|
+
"uri": "faqItem/22",
|
|
16
|
+
"dateCreation": "2023-10-11 14:52:39",
|
|
17
|
+
"dateModified": "2023-10-11 14:52:39",
|
|
18
|
+
"title": "EDIT",
|
|
19
|
+
"_url": "/ng/app/faq/q/22",
|
|
20
|
+
"_right": {
|
|
21
|
+
"create": true,
|
|
22
|
+
"read": true,
|
|
23
|
+
"publish": false,
|
|
24
|
+
"administrate": true,
|
|
25
|
+
"update": true,
|
|
26
|
+
"delete": true,
|
|
27
|
+
"comment": true,
|
|
28
|
+
"member": true
|
|
29
|
+
},
|
|
30
|
+
"description": "<div class='content-html'></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
|
+
"_audience": [],
|
|
43
|
+
"processContext": null,
|
|
44
|
+
"faqResponse": "",
|
|
45
|
+
"uriCategory": [],
|
|
46
|
+
"themeId": "",
|
|
47
|
+
"uiObjectLink": [],
|
|
48
|
+
"tags": []
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"_url": "/user/1",
|
|
36
36
|
"level": 9
|
|
37
37
|
},
|
|
38
|
+
"_audience": [],
|
|
38
39
|
"_isColorDark": null,
|
|
39
40
|
"assetPlannerBackgroundColor": null
|
|
40
41
|
},
|
|
@@ -69,6 +70,7 @@
|
|
|
69
70
|
"_url": "/user/1",
|
|
70
71
|
"level": 9
|
|
71
72
|
},
|
|
73
|
+
"_audience": [],
|
|
72
74
|
"_isColorDark": null,
|
|
73
75
|
"assetPlannerBackgroundColor": null
|
|
74
76
|
}
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"_url": "/user/1",
|
|
35
35
|
"level": 9
|
|
36
36
|
},
|
|
37
|
+
"_audience": [],
|
|
37
38
|
"dateStart": "2023-07-04 12:00",
|
|
38
39
|
"dateEnd": "2023-07-04 13:00",
|
|
39
40
|
"reservationCancelled": true,
|
|
@@ -68,6 +69,7 @@
|
|
|
68
69
|
"_url": "/user/1",
|
|
69
70
|
"level": 9
|
|
70
71
|
},
|
|
72
|
+
"_audience": [],
|
|
71
73
|
"_isColorDark": null,
|
|
72
74
|
"assetPlannerBackgroundColor": null
|
|
73
75
|
}
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"_url": "/user/1",
|
|
35
35
|
"level": 9
|
|
36
36
|
},
|
|
37
|
+
"_audience": [],
|
|
37
38
|
"dateStart": "2023-07-03 08:00",
|
|
38
39
|
"dateEnd": "2023-07-03 09:00",
|
|
39
40
|
"reservationCancelled": false,
|
|
@@ -68,6 +69,7 @@
|
|
|
68
69
|
"_url": "/user/1",
|
|
69
70
|
"level": 9
|
|
70
71
|
},
|
|
72
|
+
"_audience": [],
|
|
71
73
|
"_isColorDark": null,
|
|
72
74
|
"assetPlannerBackgroundColor": null
|
|
73
75
|
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"o": "faq",
|
|
3
|
+
"f": "addEntry",
|
|
4
|
+
"error": 0,
|
|
5
|
+
"messages": [
|
|
6
|
+
{
|
|
7
|
+
"code": 200,
|
|
8
|
+
"msg": "Enregistrement r\u00e9ussi"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"result": {
|
|
12
|
+
"id": 13,
|
|
13
|
+
"mainType": "article",
|
|
14
|
+
"type": "faq",
|
|
15
|
+
"uri": "faq/13",
|
|
16
|
+
"dateCreation": "2023-10-11 15:33:49",
|
|
17
|
+
"dateModified": "2023-10-11 15:34:07",
|
|
18
|
+
"title": "CATEGORY 1",
|
|
19
|
+
"_url": "/ng/app/faq/c/13",
|
|
20
|
+
"_right": {
|
|
21
|
+
"create": true,
|
|
22
|
+
"read": true,
|
|
23
|
+
"publish": false,
|
|
24
|
+
"administrate": true,
|
|
25
|
+
"update": true,
|
|
26
|
+
"delete": true,
|
|
27
|
+
"comment": true,
|
|
28
|
+
"member": true
|
|
29
|
+
},
|
|
30
|
+
"description": "<div class='content-html'>description FAQ FOR TEST categorie 1</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": "",
|
|
44
|
+
"_audience": [],
|
|
45
|
+
"tags": [],
|
|
46
|
+
"isWeb": false,
|
|
47
|
+
"faqContent": [
|
|
48
|
+
{
|
|
49
|
+
"title": "FAQ THEME",
|
|
50
|
+
"items": ["faqItem/14", "faqItem/14"]
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
}
|