jamespot-user-api 1.0.118 → 1.0.120

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 (101) 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 -1
  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 +14 -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 +3 -11
  65. package/lib/src/apis/article/article.mock.d.ts +3 -3
  66. package/lib/src/apis/faq/faq.d.ts +7 -4
  67. package/lib/src/apis/faq/faq.mock.d.ts +6 -1
  68. package/lib/src/apis/file/file.d.ts +68 -0
  69. package/lib/src/apis/file/file.mock.d.ts +8 -0
  70. package/lib/src/apis/file/file.test.d.ts +1 -0
  71. package/lib/src/apis/index.d.ts +1 -1
  72. package/lib/src/apis/jamespotUserApi.d.ts +1 -1
  73. package/lib/src/types/faq.d.ts +24 -3
  74. package/lib/src/types/file.d.ts +9 -20
  75. package/lib/src/types/mediaLibrary.d.ts +3 -7
  76. package/lib/src/types/utils.d.ts +1 -1
  77. package/lib/src/types/widgets.d.ts +9 -10
  78. package/lib/src/util/Test.d.ts +23 -0
  79. package/lib/src/util/file.d.ts +23 -7
  80. package/lib/src/util/file.mock.d.ts +312 -0
  81. package/lib/src/util/network.d.ts +16 -2
  82. package/package.json +1 -1
  83. package/phpunitMock/articleCreate-faq-category.json +3 -4
  84. package/phpunitMock/articleGet-faq-category.json +7 -9
  85. package/phpunitMock/articleGet-mpArticle-list.json +1 -2
  86. package/phpunitMock/articleGet-with-widgets.json +161 -0
  87. package/phpunitMock/articleGetAttachment-success.json +19 -18
  88. package/phpunitMock/articleUpdate-faq-category.json +3 -4
  89. package/phpunitMock/faqAccess-success.json +9 -0
  90. package/phpunitMock/faqCheckItem-success.json +89 -0
  91. package/phpunitMock/fileCreate-rawLittle.json +17 -0
  92. package/phpunitMock/fileDelete-default.json +1 -0
  93. package/phpunitMock/fileDeleteImage-default.json +1 -0
  94. package/phpunitMock/fileGet-default.json +17 -0
  95. package/phpunitMock/fileUpdate-rawLittle.json +18 -0
  96. package/phpunitMock/objectListFaqQueryList-faq-success.json +192 -0
  97. package/phpunitMock/tvDisplayGetChannel-dynamic.json +16 -16
  98. package/phpunitMock/tvDisplayGetChannel-slideshow.json +16 -14
  99. package/phpunitMock/tvDisplayGetConfigureChannel-dynamic.json +16 -16
  100. package/phpunitMock/tvDisplayGetConfigureChannel-slideshow.json +16 -14
  101. package/lib/src/apis/file.d.ts +0 -62
@@ -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
- }