jamespot-user-api 1.0.204 → 1.0.206

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 (83) hide show
  1. package/documentation/assets/search.js +1 -1
  2. package/documentation/classes/AdminLicenseApi.html +14 -14
  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/JBbbApi.html +1 -1
  11. package/documentation/classes/JBookmarkApi.html +1 -1
  12. package/documentation/classes/JBusinessNetworkingApi.html +1 -1
  13. package/documentation/classes/JCalendarApi.html +1 -1
  14. package/documentation/classes/JCommunityApi.html +1 -1
  15. package/documentation/classes/JDatasourceApi.html +1 -1
  16. package/documentation/classes/JDiapazoneApi.html +1 -1
  17. package/documentation/classes/JExternalAppApi.html +1 -1
  18. package/documentation/classes/JFaqApi.html +1 -1
  19. package/documentation/classes/JFileApi.html +5 -5
  20. package/documentation/classes/JFilebankApi.html +1 -1
  21. package/documentation/classes/JGlobalApi.html +1 -1
  22. package/documentation/classes/JGroupApi.html +12 -12
  23. package/documentation/classes/JIAApi.html +1 -1
  24. package/documentation/classes/JLandApi.html +1 -1
  25. package/documentation/classes/JMessengerApi.html +1 -1
  26. package/documentation/classes/JModuleApi.html +1 -1
  27. package/documentation/classes/JObjectApi.html +1 -1
  28. package/documentation/classes/JSearchApi.html +6 -6
  29. package/documentation/classes/JShareApi.html +1 -1
  30. package/documentation/classes/JSocialActionApi.html +1 -1
  31. package/documentation/classes/JTaxonomyApi.html +2 -2
  32. package/documentation/classes/JUserApi.html +7 -7
  33. package/documentation/classes/JWedocApi.html +1 -1
  34. package/documentation/classes/JWidgetApi.html +1 -1
  35. package/documentation/classes/JamespotUserApi.html +1 -1
  36. package/documentation/classes/JitsiApi.html +1 -0
  37. package/documentation/classes/Network.html +1 -1
  38. package/documentation/classes/TVDisplayApi.html +1 -1
  39. package/documentation/classes/WindowBrowser.html +1 -1
  40. package/documentation/enums/BookmarkType.html +1 -1
  41. package/documentation/enums/Format.html +1 -1
  42. package/documentation/enums/GroupModerateStatus.html +1 -1
  43. package/documentation/enums/StudioApplicationStatus.html +1 -1
  44. package/documentation/enums/WidgetsName.html +1 -1
  45. package/documentation/index.html +1 -1
  46. package/documentation/interfaces/AccessRightObject.html +1 -1
  47. package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
  48. package/documentation/interfaces/ApiWrapper.html +1 -1
  49. package/documentation/interfaces/BaseMessage.html +1 -1
  50. package/documentation/interfaces/FileBankProps.html +1 -1
  51. package/documentation/interfaces/FolderProps.html +1 -1
  52. package/documentation/interfaces/ListFilterSpec.html +1 -1
  53. package/documentation/interfaces/OF.html +1 -1
  54. package/documentation/interfaces/PagingResults.html +1 -1
  55. package/documentation/interfaces/RootFolderProps.html +1 -1
  56. package/documentation/interfaces/SpotProps.html +1 -1
  57. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  58. package/documentation/interfaces/WidgetType.html +1 -1
  59. package/documentation/interfaces/WindowInterface.html +1 -1
  60. package/documentation/modules.html +11 -11
  61. package/jest.config.ts +1 -1
  62. package/lib/jamespot-user-api.js +1 -1
  63. package/lib/jamespot-user-api.js.map +1 -1
  64. package/lib/src/apis/application/types.d.ts +14 -3
  65. package/lib/src/apis/externalApp/externalApp.d.ts +5 -0
  66. package/lib/src/apis/externalApp/externalApp.mock.d.ts +1 -0
  67. package/lib/src/apis/index.d.ts +1 -0
  68. package/lib/src/apis/jamespotUserApi.d.ts +2 -0
  69. package/lib/src/apis/jitsi/jitsi.d.ts +7 -0
  70. package/lib/src/apis/jitsi/jitsi.mock.d.ts +2 -0
  71. package/lib/src/apis/jitsi/jitsi.test.d.ts +1 -0
  72. package/lib/src/apis/visioConnect/visioConnect.d.ts +3 -0
  73. package/lib/src/apis/visioConnect/visioConnect.mock.d.ts +1 -0
  74. package/lib/src/types/tinymce.d.ts +3 -0
  75. package/package.json +1 -1
  76. package/phpunitMock/articleGet-pollSurvey-list.json +1 -1
  77. package/phpunitMock/articleGet-pollSurvey-view.json +1 -1
  78. package/phpunitMock/externalAppDelete-default.json +1 -0
  79. package/phpunitMock/externalAppList-default.json +5 -5
  80. package/phpunitMock/externalAppSave-default.json +4 -4
  81. package/phpunitMock/jitsiResolveUrl-default.json +7 -0
  82. package/phpunitMock/userSignIn-success.json +0 -2
  83. package/phpunitMock/visioConnectResolveUrl-default.json +7 -0
@@ -1,19 +1,29 @@
1
1
  import { jObjectLittle, Rights, ValueOf } from '../../types';
2
- export type ApplicationType = {
2
+ type ApplicationBase = {
3
3
  name: string;
4
4
  label: string;
5
5
  icon: string;
6
6
  img: string;
7
7
  url: string;
8
8
  description: string;
9
- color?: string;
10
- hasLicense: boolean;
9
+ color: string;
10
+ };
11
+ export type ApplicationDefault = ApplicationBase & {
12
+ hasLicense?: boolean;
11
13
  sref?: string;
12
14
  type?: string;
13
15
  _extend?: {
14
16
  [key: string]: any;
15
17
  };
16
18
  };
19
+ export type ApplicationLink = ApplicationBase & {
20
+ urlTarget: '_blank';
21
+ urlNoReferrer: boolean;
22
+ };
23
+ export type ApplicationIframe = ApplicationBase & {
24
+ urlIframe: string;
25
+ };
26
+ export type ApplicationType = ApplicationDefault | ApplicationLink | ApplicationIframe;
17
27
  export type StudioAction = {
18
28
  action: string;
19
29
  nameApp: string;
@@ -91,3 +101,4 @@ export declare enum StudioApplicationStatus {
91
101
  }
92
102
  export type StudioApplicationStatusEnumBased = ValueOf<StudioApplicationStatus>;
93
103
  export type StudioApplication = StudioApplicationBase & {};
104
+ export {};
@@ -10,4 +10,9 @@ export declare class JExternalAppApi extends JBaseApi {
10
10
  list(params?: {
11
11
  signal?: AbortSignal;
12
12
  }): Promise<ApiWrapper<Record<string, ExternalAppType>>>;
13
+ delete(payload: {
14
+ id: string;
15
+ }, params?: {
16
+ signal?: AbortSignal;
17
+ }): Promise<ApiWrapper<boolean>>;
13
18
  }
@@ -2,3 +2,4 @@ import { ExternalAppType } from '../../types/externalApp';
2
2
  import { ApiWrapper } from '../../types/utils';
3
3
  export declare const mockExternalAppList: ApiWrapper<Record<string, ExternalAppType>>;
4
4
  export declare const mockExternalAppSave: ApiWrapper<ExternalAppType>;
5
+ export declare const mockExternalAppDelete: ApiWrapper<boolean>;
@@ -19,6 +19,7 @@ export * from './global/global';
19
19
  export * from './group/group';
20
20
  export * from './jamespotUserApi';
21
21
  export * from './jia/jia';
22
+ export * from './jitsi/jitsi';
22
23
  export * from './jland/jland';
23
24
  export * from './messenger';
24
25
  export * from './module/module';
@@ -39,6 +39,7 @@ import { JQuestionAnswerApi } from './questionAnswer/questionAnswer';
39
39
  import { JVisioConnectApi } from './visioConnect/visioConnect';
40
40
  import { JModuleApi } from './module/module';
41
41
  import { JExternalAppApi } from './externalApp/externalApp';
42
+ import { JitsiApi } from './jitsi/jitsi';
42
43
  /**
43
44
  * In browser usage, 'window' should be the window object.
44
45
  * In server side usage, 'window' object given must implement the fetch method, used by the Apis.
@@ -76,6 +77,7 @@ export declare class JamespotUserApi {
76
77
  global: JGlobalApi;
77
78
  group: JGroupApi;
78
79
  jia: JIAApi;
80
+ jitsi: JitsiApi;
79
81
  jland: JLandApi;
80
82
  magicPad: JMagicPadApi;
81
83
  mediaLibrary: JMediaLibraryApi;
@@ -0,0 +1,7 @@
1
+ import { ApiWrapper } from '../../types';
2
+ import { JBaseApi } from '../base';
3
+ export declare class JitsiApi extends JBaseApi {
4
+ resolveUrl({ id }: {
5
+ id: string;
6
+ }, signal?: AbortSignal): Promise<ApiWrapper<string>>;
7
+ }
@@ -0,0 +1,2 @@
1
+ import { ApiWrapper } from '../../types';
2
+ export declare const jitsiResolveUrl: ApiWrapper<string>;
@@ -0,0 +1 @@
1
+ export {};
@@ -4,4 +4,7 @@ export declare class JVisioConnectApi extends JBaseApi {
4
4
  recordingDelete(id: number, filename: string, options?: {
5
5
  signal?: AbortSignal;
6
6
  }): Promise<ApiWrapper<boolean>>;
7
+ resolveUrl({ uri }: {
8
+ uri: string;
9
+ }, signal?: AbortSignal): Promise<ApiWrapper<string>>;
7
10
  }
@@ -1,2 +1,3 @@
1
1
  import { ApiWrapper } from '../../types';
2
2
  export declare const visioConnectVideoRecordingDelete: ApiWrapper<Boolean>;
3
+ export declare const visioConnectResolveUrl: ApiWrapper<string>;
@@ -59,6 +59,7 @@ export declare const tinyMCECommonOptionsSchema: z.ZodObject<z.objectUtil.extend
59
59
  paste_data_images: z.ZodBoolean;
60
60
  browser_spellcheck: z.ZodBoolean;
61
61
  quickbars_insert_toolbar: z.ZodBoolean;
62
+ license_key: z.ZodLiteral<"gpl">;
62
63
  }>, "strip", z.ZodTypeAny, {
63
64
  height: number;
64
65
  language: string;
@@ -88,6 +89,7 @@ export declare const tinyMCECommonOptionsSchema: z.ZodObject<z.objectUtil.extend
88
89
  paste_data_images: boolean;
89
90
  browser_spellcheck: boolean;
90
91
  quickbars_insert_toolbar: boolean;
92
+ license_key: "gpl";
91
93
  }, {
92
94
  height: number;
93
95
  language: string;
@@ -117,6 +119,7 @@ export declare const tinyMCECommonOptionsSchema: z.ZodObject<z.objectUtil.extend
117
119
  paste_data_images: boolean;
118
120
  browser_spellcheck: boolean;
119
121
  quickbars_insert_toolbar: boolean;
122
+ license_key: "gpl";
120
123
  }>;
121
124
  export type TinyMCECommonOptions = z.infer<typeof tinyMCECommonOptionsSchema>;
122
125
  export declare const tinymceExtendedOptionsSchema: z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-user-api",
3
- "version": "1.0.204",
3
+ "version": "1.0.206",
4
4
  "main": "lib/jamespot-user-api.js",
5
5
  "types": "lib/src/index.d.ts",
6
6
  "directories": {
@@ -51,7 +51,7 @@
51
51
  "multipleResponse": 1,
52
52
  "publicResults": null,
53
53
  "pollProgression": {
54
- "colors": { "0-49": "#FFC670", "50-99": "#71ABFF", "100": "#50D0BC" },
54
+ "colors": { "0-49": "#FFC670", "50-99": "#71ABFF", "100": "#0D846B" },
55
55
  "maxRespondentsValue": 1,
56
56
  "countRespondentsValue": 0
57
57
  },
@@ -54,7 +54,7 @@
54
54
  "colors": {
55
55
  "0-49": "#FFC670",
56
56
  "50-99": "#71ABFF",
57
- "100": "#50D0BC"
57
+ "100": "#0D846B"
58
58
  },
59
59
  "maxRespondentsValue": 1,
60
60
  "countRespondentsValue": 0
@@ -0,0 +1 @@
1
+ { "o": "externalApp", "f": "delete", "error": 0, "messages": [], "result": true }
@@ -4,9 +4,9 @@
4
4
  "error": 0,
5
5
  "messages": [],
6
6
  "result": {
7
- "672a29dbf1b4c": {
8
- "id": "672a29dbf1b4c",
9
- "label": "External App 0.76837000 1730816475",
7
+ "6745e5f2043fe": {
8
+ "id": "6745e5f2043fe",
9
+ "label": "External App 0.67257900 1732634097",
10
10
  "description": "External App description",
11
11
  "icon": "fs-applications",
12
12
  "color": "#8F7CEA",
@@ -14,8 +14,8 @@
14
14
  "accessRight": 0,
15
15
  "accessRightSelector": [],
16
16
  "mode": "link",
17
- "target": true,
18
- "noreferrer": true
17
+ "urlTarget": true,
18
+ "urlNoReferrer": true
19
19
  }
20
20
  }
21
21
  }
@@ -4,8 +4,8 @@
4
4
  "error": 0,
5
5
  "messages": [],
6
6
  "result": {
7
- "id": "672a29dbf1b4c",
8
- "label": "External App 0.76837000 1730816475",
7
+ "id": "6745e5f2043fe",
8
+ "label": "External App 0.67257900 1732634097",
9
9
  "description": "External App description",
10
10
  "icon": "fs-applications",
11
11
  "color": "#8F7CEA",
@@ -13,7 +13,7 @@
13
13
  "accessRight": 0,
14
14
  "accessRightSelector": [],
15
15
  "mode": "link",
16
- "target": true,
17
- "noreferrer": true
16
+ "urlTarget": true,
17
+ "urlNoReferrer": true
18
18
  }
19
19
  }
@@ -0,0 +1,7 @@
1
+ {
2
+ "o": "jitsi",
3
+ "f": "resolveUrl",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": "https://meet.jit.si/jenkins-preprod-dev-jamespot-674451d6e701b"
7
+ }
@@ -23,8 +23,6 @@
23
23
  "function": "",
24
24
  "department": "",
25
25
  "country": "fr",
26
- "timeZone": "Europe/Paris",
27
- "language": "fr",
28
26
  "description": "",
29
27
  "webSite": ""
30
28
  }
@@ -0,0 +1,7 @@
1
+ {
2
+ "o": "visioConnect",
3
+ "f": "resolveUrl",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": "VISIO_CONNECT_URL/room/jenkins2018_instance_1/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6IjIyIiwidXJpIjoic29jaWFsRXZlbnRcLzIyIiwiaWRVc2VyIjo0LCJ1c2VybmFtZSI6IkFkbWluMSIsInBlcm1hTGluayI6IjM1YzgzOGRjNWRlN2Q1NjdhZjJjNWNhYzE2MjIwNzJiIiwicmVkaXJlY3RVcmwiOiJodHRwOlwvXC9qZW5raW5zLXByZXByb2QuZGV2LmphbWVzcG90LnByb1wvP2FjdGlvbj12aXNpb0Nvbm5lY3RDcmVhdGVkJnVyaT1zb2NpYWxFdmVudFwvMjIiLCJ0aXRsZSI6ImEtMSJ9.7NH0Ioi967IIcxjGl164WMdtqBrz5NgFrU8Fr3oSpyY"
7
+ }