jamespot-user-api 1.0.125 → 1.0.127

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 (75) 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 +5 -5
  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/JObjectApi.html +1 -1
  20. package/documentation/classes/JSearchApi.html +6 -6
  21. package/documentation/classes/JShareApi.html +1 -1
  22. package/documentation/classes/JTaxonomyApi.html +2 -2
  23. package/documentation/classes/JUserApi.html +4 -4
  24. package/documentation/classes/JWedocApi.html +1 -1
  25. package/documentation/classes/JamespotUserApi.html +1 -1
  26. package/documentation/classes/Network.html +1 -1
  27. package/documentation/classes/TVDisplayApi.html +1 -1
  28. package/documentation/classes/WindowBrowser.html +1 -1
  29. package/documentation/enums/StudioApplicationStatus.html +1 -1
  30. package/documentation/index.html +1 -1
  31. package/documentation/interfaces/AccessRightObject.html +1 -1
  32. package/documentation/interfaces/AdminLicenseUser.html +1 -1
  33. package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
  34. package/documentation/interfaces/ApiWrapper.html +1 -1
  35. package/documentation/interfaces/BaseAutocomplete.html +1 -1
  36. package/documentation/interfaces/BaseMessage.html +1 -1
  37. package/documentation/interfaces/Category.html +1 -1
  38. package/documentation/interfaces/FileBankProps.html +1 -1
  39. package/documentation/interfaces/FolderProps.html +1 -1
  40. package/documentation/interfaces/ListFilterSpec.html +1 -1
  41. package/documentation/interfaces/OF.html +1 -1
  42. package/documentation/interfaces/ObjectListProps.html +1 -1
  43. package/documentation/interfaces/PagingResults.html +1 -1
  44. package/documentation/interfaces/RootFolderProps.html +1 -1
  45. package/documentation/interfaces/SearchCategoryModel.html +1 -1
  46. package/documentation/interfaces/SearchCategoryValue.html +1 -1
  47. package/documentation/interfaces/SearchConfig.html +1 -1
  48. package/documentation/interfaces/SearchFacetModel.html +1 -1
  49. package/documentation/interfaces/SearchFacetValueModel.html +1 -1
  50. package/documentation/interfaces/SearchQuery.html +1 -1
  51. package/documentation/interfaces/SearchQueryFilterModel.html +1 -1
  52. package/documentation/interfaces/SearchQueryOption.html +1 -1
  53. package/documentation/interfaces/SearchQueryResult.html +1 -1
  54. package/documentation/interfaces/SearchQuerySortModel.html +1 -1
  55. package/documentation/interfaces/SearchResultCatProps.html +1 -1
  56. package/documentation/interfaces/SearchResultPropsApp.html +1 -1
  57. package/documentation/interfaces/SearchResultPropsObject.html +1 -1
  58. package/documentation/interfaces/SpotProps.html +1 -1
  59. package/documentation/interfaces/Taxonomy.html +1 -1
  60. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  61. package/documentation/interfaces/WindowInterface.html +1 -1
  62. package/documentation/modules.html +11 -11
  63. package/lib/jamespot-user-api.js +1 -1
  64. package/lib/jamespot-user-api.js.map +1 -1
  65. package/lib/src/apis/drive/drive.d.ts +8 -5
  66. package/lib/src/apis/drive/drive.mock.d.ts +3 -3
  67. package/lib/src/apis/drive/drive.test.d.ts +1 -0
  68. package/lib/src/types/drive.d.ts +21 -11
  69. package/lib/src/util/file.d.ts +1 -1
  70. package/package.json +1 -1
  71. package/phpunitMock/spotGetProperties-default.json +1 -1
  72. package/phpunitMock/tvDisplayGetChannel-dynamic.json +22 -1056
  73. package/phpunitMock/tvDisplayGetChannel-slideshow.json +14 -14
  74. package/phpunitMock/tvDisplayGetConfigureChannel-dynamic.json +20 -32
  75. package/phpunitMock/tvDisplayGetConfigureChannel-slideshow.json +14 -14
@@ -1,20 +1,23 @@
1
1
  import { JBaseApi } from '../base';
2
- import { ApiWrapper, DriveDocumentParams, DriveItemType, MSGraphGroup, MSGraphSite, MSGraphTenant } from '../../types';
2
+ import { ApiWrapper, DriveAccount, DriveDocumentParams, MSDocumentEntity, MSGroupEntity, MSSiteEntity, MSTenantEntity } from '../../types';
3
3
  export declare class JDriveApi extends JBaseApi {
4
4
  /**
5
5
  * Microsoft graph only
6
6
  * @returns
7
7
  */
8
- tenants(): Promise<ApiWrapper<MSGraphTenant[]>>;
8
+ tenants(): Promise<ApiWrapper<MSTenantEntity[]>>;
9
9
  /**
10
10
  * Microsoft graph only
11
11
  * @returns
12
12
  */
13
- groups(): Promise<ApiWrapper<MSGraphGroup[]>>;
13
+ groups(): Promise<ApiWrapper<MSGroupEntity[]>>;
14
14
  /**
15
15
  * Microsoft graph only
16
16
  * @returns
17
17
  */
18
- sites(): Promise<ApiWrapper<MSGraphSite[]>>;
19
- documents(service: string, documentParams: DriveDocumentParams): Promise<ApiWrapper<DriveItemType[]>>;
18
+ sites(): Promise<ApiWrapper<MSSiteEntity[]>>;
19
+ listAccount(service: string): Promise<ApiWrapper<DriveAccount[]>>;
20
+ isAccountLogged(service: string, id: string): Promise<ApiWrapper<boolean>>;
21
+ checkAccountToken(service: string): Promise<ApiWrapper<boolean>>;
22
+ documents(service: string, documentParams: DriveDocumentParams): Promise<ApiWrapper<MSDocumentEntity[]>>;
20
23
  }
@@ -1,4 +1,4 @@
1
- import { ApiWrapper, BaseMessages, DriveItemType, MSGraphGroup, MSGraphTenant } from '../../types';
2
- export declare const driveGetTenants: ApiWrapper<MSGraphTenant[], BaseMessages>;
3
- export declare const driveGetGroups: ApiWrapper<MSGraphGroup[], BaseMessages>;
1
+ import { ApiWrapper, BaseMessages, DriveItemType, MSGroupEntity, MSTenantEntity } from '../../types';
2
+ export declare const driveGetTenants: ApiWrapper<MSTenantEntity[], BaseMessages>;
3
+ export declare const driveGetGroups: ApiWrapper<MSGroupEntity[], BaseMessages>;
4
4
  export declare const driveGetDocuments: ApiWrapper<DriveItemType[], BaseMessages>;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,26 +1,36 @@
1
- export type MSGraphTenant = {
2
- title: string;
3
- name: 'groups' | 'sites' | 'onedrive' | 'documents';
4
- type: string;
5
- };
6
- export type MSGraphGroup = {
1
+ export type MSTenants = 'groups' | 'sites' | 'onedrive' | 'group' | 'documents';
2
+ export type MSBaseEntity = {
7
3
  title: string;
8
4
  id: string;
9
5
  type: string;
10
6
  };
11
- export type MSGraphSite = {
12
- title: string;
7
+ export type MSTenantEntity = Omit<MSBaseEntity, 'id'> & {
8
+ name?: MSTenants;
9
+ };
10
+ export type MSSiteEntity = MSBaseEntity & {};
11
+ export type MSGroupEntity = MSBaseEntity & {
12
+ visibility?: 'public' | 'private';
13
+ };
14
+ export type MSDocumentEntity = MSBaseEntity & {
15
+ mimetype?: string;
16
+ webUrl?: string;
17
+ };
18
+ export type MSUnifiedEntity = MSGroupEntity & MSDocumentEntity;
19
+ export type DriveAccount = {
13
20
  id: string;
14
- type: string;
21
+ title: string;
22
+ mail: string;
23
+ default: boolean;
15
24
  };
16
25
  export type DriveItemType = {
17
26
  title: string;
18
27
  id: string;
19
28
  type: string;
20
- webUrl: string;
29
+ mimetype?: string;
30
+ webUrl?: string;
21
31
  };
22
32
  export type DriveDocumentParams = {
23
- msTenant: 'groups' | 'sites' | 'onedrive' | 'documents' | undefined;
33
+ msTenant: MSTenants | undefined;
24
34
  msId: string | undefined;
25
35
  idFolder: string | undefined;
26
36
  page: number;
@@ -3,7 +3,7 @@ export declare const mimetypes: readonly ["application/vnd.openxmlformats-office
3
3
  export type MimetypesType = (typeof mimetypes)[number];
4
4
  export type fileExtensionTypes = 'docx' | 'xlsx' | 'csv' | 'pptx' | 'pdf' | 'zip' | 'ai' | 'mp3' | 'mpeg' | 'ttf' | 'otf' | 'jpg' | 'jpeg' | 'png' | 'gif' | 'psd' | 'svg' | 'txt' | 'mp4' | 'odt' | 'webm';
5
5
  export declare const extensions: fileExtensionTypes[];
6
- export type fileFamilyTypes = 'application' | 'gif' | 'image' | 'video' | 'audio' | 'font' | 'text';
6
+ export type fileFamilyTypes = 'application' | 'gif' | 'image' | 'video' | 'audio' | 'font' | 'text' | 'folder';
7
7
  export declare const mimetypeToExt: Record<string, fileExtensionTypes>;
8
8
  export declare const getMimetypeFromExtension: (fileExt: fileExtensionTypes) => string | undefined;
9
9
  export declare const getFileExtensionFromMimetype: (mimetype: string) => fileExtensionTypes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-user-api",
3
- "version": "1.0.125",
3
+ "version": "1.0.127",
4
4
  "main": "lib/jamespot-user-api.js",
5
5
  "types": "lib/src/index.d.ts",
6
6
  "directories": {
@@ -43,7 +43,7 @@
43
43
  ],
44
44
  "spotDefaultPublishType": ["mpMedia", "mpArticle", "mpSocialFile", "socialQuestion"],
45
45
  "mail_frequency": [
46
- { "value": -1, "label": "Fr\u00e9quence par d\u00e9faut (Temps r\u00e9el)" },
46
+ { "value": -1, "label": "Par d\u00e9faut (Temps r\u00e9el)" },
47
47
  { "value": 0, "label": "Temps r\u00e9el" },
48
48
  { "value": 1, "label": "Quotidien" },
49
49
  { "value": 2, "label": "Hebdomadaire" },