jamespot-user-api 1.0.117 → 1.0.119
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/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 +14 -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 +3 -11
- package/lib/src/apis/article/article.mock.d.ts +3 -3
- package/lib/src/apis/faq/faq.d.ts +1 -3
- package/lib/src/apis/file/file.d.ts +68 -0
- package/lib/src/apis/file/file.mock.d.ts +8 -0
- package/lib/src/apis/file/file.test.d.ts +1 -0
- package/lib/src/apis/index.d.ts +1 -1
- package/lib/src/apis/jamespotUserApi.d.ts +1 -1
- package/lib/src/apis/wedoc/wedoc.d.ts +1 -0
- package/lib/src/apis/wedoc/wedoc.mock.d.ts +1 -0
- package/lib/src/types/file.d.ts +9 -20
- package/lib/src/types/mediaLibrary.d.ts +3 -7
- package/lib/src/types/widgets.d.ts +9 -10
- package/lib/src/util/Test.d.ts +23 -0
- package/lib/src/util/file.d.ts +23 -7
- package/lib/src/util/file.mock.d.ts +312 -0
- package/lib/src/util/network.d.ts +16 -2
- package/package.json +1 -1
- package/phpunitMock/articleGet-faq-category.json +1 -2
- package/phpunitMock/articleGet-mpArticle-list.json +1 -2
- package/phpunitMock/articleGet-with-widgets.json +161 -0
- package/phpunitMock/articleGetAttachment-success.json +19 -18
- package/phpunitMock/fileCreate-rawLittle.json +17 -0
- package/phpunitMock/fileDelete-default.json +1 -0
- package/phpunitMock/fileDeleteImage-default.json +1 -0
- package/phpunitMock/fileGet-default.json +17 -0
- package/phpunitMock/fileUpdate-rawLittle.json +18 -0
- package/phpunitMock/onlyOfficeCreateVersion-create-version.json +12 -0
- package/phpunitMock/tvDisplayGetChannel-dynamic.json +16 -16
- package/phpunitMock/tvDisplayGetChannel-slideshow.json +16 -14
- package/phpunitMock/tvDisplayGetConfigureChannel-dynamic.json +16 -16
- package/phpunitMock/tvDisplayGetConfigureChannel-slideshow.json +16 -14
- package/lib/src/apis/file.d.ts +0 -62
package/lib/src/apis/file.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { ApiWrapper, FileCropConfig, FileResponse, JFileExtended, UploadConfig } from '../types';
|
|
2
|
-
import { JBaseApi } from './base';
|
|
3
|
-
export declare class JFileApi extends JBaseApi {
|
|
4
|
-
/**
|
|
5
|
-
* Upload a file to the server. use the same token to link the file to an article
|
|
6
|
-
* @param config configuration object. One of "file" and "url" is mandatory
|
|
7
|
-
*/
|
|
8
|
-
upload(config: UploadConfig): Promise<ApiWrapper<FileResponse, import("../types").BaseMessages>>;
|
|
9
|
-
/**
|
|
10
|
-
* Upload a list of files to the server. use the same token to link the file to an article
|
|
11
|
-
* @param attrName file name (attachment, image, bannerImage, etc.)
|
|
12
|
-
* @param files files
|
|
13
|
-
* @param token token
|
|
14
|
-
*/
|
|
15
|
-
uploadMany(configArray: Array<UploadConfig>): Promise<ApiWrapper<FileResponse, import("../types").BaseMessages>[]>;
|
|
16
|
-
get<T extends JFileExtended>(idFile: number, format?: string): Promise<ApiWrapper<T>>;
|
|
17
|
-
/**
|
|
18
|
-
* Crop an image
|
|
19
|
-
* @param config crop configuration
|
|
20
|
-
* @returns
|
|
21
|
-
*/
|
|
22
|
-
update(idFile: number | string, type: string, config: FileCropConfig): Promise<ApiWrapper<FileResponse, import("../types").BaseMessages> | {
|
|
23
|
-
result: {
|
|
24
|
-
crop: {
|
|
25
|
-
width: any;
|
|
26
|
-
height: any;
|
|
27
|
-
x: any;
|
|
28
|
-
y: any;
|
|
29
|
-
rotation: any;
|
|
30
|
-
};
|
|
31
|
-
id: string;
|
|
32
|
-
name: string;
|
|
33
|
-
type: string;
|
|
34
|
-
token?: string;
|
|
35
|
-
size: string;
|
|
36
|
-
mediaKey: string;
|
|
37
|
-
imagesize: import("../types").ImageSize;
|
|
38
|
-
};
|
|
39
|
-
o: string;
|
|
40
|
-
f: string;
|
|
41
|
-
error: number;
|
|
42
|
-
messages: import("../types").BaseMessages;
|
|
43
|
-
errorMsg?: string;
|
|
44
|
-
}>;
|
|
45
|
-
/**
|
|
46
|
-
* delete file. This action is not automatic. You need to update the content associated with the deleted image with the same token
|
|
47
|
-
* @param idFile file id
|
|
48
|
-
* @param attrName attribute name
|
|
49
|
-
* @param token token
|
|
50
|
-
* @returns
|
|
51
|
-
*/
|
|
52
|
-
deleteFile(idFile: number | string, attrName: string, token: string, signal?: AbortSignal): Promise<ApiWrapper<"", import("../types").BaseMessages>>;
|
|
53
|
-
/**
|
|
54
|
-
* delete the image associated with a content. This action is permanent. There is no two step process with a token
|
|
55
|
-
* @param id content id
|
|
56
|
-
* @param type content type
|
|
57
|
-
* @returns
|
|
58
|
-
*/
|
|
59
|
-
deleteImage(id: number | string, type: string): Promise<ApiWrapper<{
|
|
60
|
-
id: number;
|
|
61
|
-
}, import("../types").BaseMessages>>;
|
|
62
|
-
}
|