jamespot-user-api 1.0.183 → 1.0.185

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 (102) 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/JCommunityApi.html +1 -1
  14. package/documentation/classes/JDatasourceApi.html +1 -1
  15. package/documentation/classes/JDiapazoneApi.html +1 -1
  16. package/documentation/classes/JFaqApi.html +1 -1
  17. package/documentation/classes/JFileApi.html +5 -5
  18. package/documentation/classes/JFilebankApi.html +1 -1
  19. package/documentation/classes/JGlobalApi.html +1 -1
  20. package/documentation/classes/JGroupApi.html +12 -12
  21. package/documentation/classes/JIAApi.html +1 -1
  22. package/documentation/classes/JLandApi.html +1 -1
  23. package/documentation/classes/JMessengerApi.html +1 -1
  24. package/documentation/classes/JObjectApi.html +1 -1
  25. package/documentation/classes/JSearchApi.html +6 -6
  26. package/documentation/classes/JShareApi.html +1 -1
  27. package/documentation/classes/JSocialActionApi.html +1 -1
  28. package/documentation/classes/JTaxonomyApi.html +2 -2
  29. package/documentation/classes/JUserApi.html +7 -7
  30. package/documentation/classes/JWedocApi.html +1 -1
  31. package/documentation/classes/JWidgetApi.html +1 -1
  32. package/documentation/classes/JamespotUserApi.html +1 -1
  33. package/documentation/classes/Network.html +1 -1
  34. package/documentation/classes/TVDisplayApi.html +1 -1
  35. package/documentation/classes/WindowBrowser.html +1 -1
  36. package/documentation/enums/BookmarkType.html +1 -1
  37. package/documentation/enums/Format.html +1 -1
  38. package/documentation/enums/GroupModerateStatus.html +1 -1
  39. package/documentation/enums/StudioApplicationStatus.html +1 -1
  40. package/documentation/enums/WidgetsName.html +1 -1
  41. package/documentation/index.html +1 -1
  42. package/documentation/interfaces/AccessRightObject.html +1 -1
  43. package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
  44. package/documentation/interfaces/ApiWrapper.html +1 -1
  45. package/documentation/interfaces/BaseMessage.html +1 -1
  46. package/documentation/interfaces/FileBankProps.html +1 -1
  47. package/documentation/interfaces/FolderProps.html +1 -1
  48. package/documentation/interfaces/ListFilterSpec.html +1 -1
  49. package/documentation/interfaces/OF.html +1 -1
  50. package/documentation/interfaces/PagingResults.html +1 -1
  51. package/documentation/interfaces/RootFolderProps.html +1 -1
  52. package/documentation/interfaces/SpotProps.html +1 -1
  53. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  54. package/documentation/interfaces/WidgetType.html +1 -1
  55. package/documentation/interfaces/WindowInterface.html +1 -1
  56. package/documentation/modules.html +11 -11
  57. package/lib/jamespot-user-api.js +1 -1
  58. package/lib/jamespot-user-api.js.map +1 -1
  59. package/lib/src/apis/datasource/datasource.d.ts +8 -3
  60. package/lib/src/apis/datasource/datasource.mock.d.ts +2 -0
  61. package/lib/src/apis/tvDisplay/tvDisplay.d.ts +32 -32
  62. package/lib/src/apis/widget/widget.d.ts +20 -3
  63. package/lib/src/apis/widget/widget.mock.d.ts +5 -1
  64. package/lib/src/types/article.d.ts +216 -216
  65. package/lib/src/types/asei.d.ts +22 -22
  66. package/lib/src/types/assetReservation.d.ts +96 -96
  67. package/lib/src/types/businessContact.d.ts +14 -14
  68. package/lib/src/types/comment.d.ts +22 -22
  69. package/lib/src/types/faq.d.ts +118 -118
  70. package/lib/src/types/hook.d.ts +203 -6
  71. package/lib/src/types/jLand.d.ts +36 -36
  72. package/lib/src/types/mediaLibrary.d.ts +22 -22
  73. package/lib/src/types/meeting.d.ts +66 -66
  74. package/lib/src/types/pollSurvey.d.ts +66 -66
  75. package/lib/src/types/quizz.d.ts +66 -66
  76. package/lib/src/types/realtime.d.ts +20 -4
  77. package/lib/src/types/socialEvent.d.ts +66 -66
  78. package/lib/src/types/support.d.ts +66 -66
  79. package/lib/src/types/surveyDate.d.ts +66 -66
  80. package/lib/src/types/tvDisplay.d.ts +560 -560
  81. package/lib/src/types/widgets/common.d.ts +5 -3
  82. package/lib/src/types/widgets/default.d.ts +152 -99
  83. package/lib/src/types/widgets/ensure.d.ts +58 -0
  84. package/lib/src/types/widgets/ensure.test.d.ts +1 -0
  85. package/lib/src/types/widgets/widgetDatasourceTable.d.ts +8 -8
  86. package/lib/src/types/widgets/widgetExcelDatasourceTable.d.ts +8 -8
  87. package/lib/src/types/widgets/widgetPresence.d.ts +132 -0
  88. package/lib/src/types/widgets.d.ts +961 -288
  89. package/lib/src/util/widget.d.ts +6 -9
  90. package/package.json +6 -2
  91. package/phpunitMock/articleGet-with-widgets.json +2 -1
  92. package/phpunitMock/widgetDatasourceCancel-default.json +1 -0
  93. package/phpunitMock/widgetDatasourceGet-get-calc.json +4 -0
  94. package/phpunitMock/widgetDatasourceGet-get-doc.json +4 -0
  95. package/phpunitMock/widgetDatasourceGet-get-studio.json +4 -0
  96. package/phpunitMock/widgetDatasourceGetExcelDatasource-default.json +3 -2
  97. package/phpunitMock/widgetDatasourceGetExcelDatasourceHeaders-default.json +7 -0
  98. package/phpunitMock/widgetPresenceCancel-default.json +1 -0
  99. package/phpunitMock/widgetPresenceGetResponse-available.json +25 -0
  100. package/phpunitMock/widgetPresenceGetResponse-unavailable.json +25 -0
  101. package/phpunitMock/widgetPresenceRespond-available.json +1 -0
  102. package/lib/src/types/widgets/widgetApi.d.ts +0 -24
@@ -1,10 +1,6 @@
1
- import { ZodSchema } from 'zod';
2
- import { WidgetApiType, WidgetArticleAttachmentType, WidgetArticleButtonType, WidgetArticleGalleryType, WidgetArticleImageType, WidgetArticleSliderType, WidgetArticleTextType, WidgetArticleTitleType, WidgetCheckListType, WidgetDatasourceTableType } from '../types';
3
- export declare const ensureWidgetType: (widget: unknown, schema: ZodSchema) => boolean;
1
+ import { WidgetArticleAttachmentType, WidgetArticleButtonType, WidgetArticleGalleryType, WidgetArticleImageType, WidgetArticleSliderType, WidgetArticleTextType, WidgetArticleTitleType, WidgetCheckListType, WidgetDatasourceTableType } from '../types';
4
2
  export declare const ensureWidgetWrapperProps: (o: unknown) => o is import("../types").WidgetWrapperGeneric<({
5
3
  layers?: string[] | undefined;
6
- } & WidgetApiType) | ({
7
- layers?: string[] | undefined;
8
4
  } & WidgetArticleAttachmentType) | ({
9
5
  layers?: string[] | undefined;
10
6
  } & WidgetArticleButtonType) | ({
@@ -28,7 +24,7 @@ export declare const ensureWidgetWrapperProps: (o: unknown) => o is import("../t
28
24
  uniqid: string;
29
25
  content: {
30
26
  uri?: string | undefined;
31
- limit?: number | undefined;
27
+ limit?: number | boolean | undefined;
32
28
  tableColumnsData?: {
33
29
  name?: string | undefined;
34
30
  label?: string | undefined;
@@ -46,8 +42,9 @@ export declare const ensureWidgetWrapperProps: (o: unknown) => o is import("../t
46
42
  tableSizedColumns?: boolean | undefined;
47
43
  tableSizedColumnsWidth?: number | undefined;
48
44
  };
49
- })>;
50
- export declare const ensureWidgetApiType: (widget: unknown) => widget is WidgetApiType;
45
+ }) | ({
46
+ layers?: string[] | undefined;
47
+ } & import("../types").WidgetPresenceType)>;
51
48
  export declare const ensureWidgetArticleAttachmentType: (widget: unknown) => widget is WidgetArticleAttachmentType;
52
49
  export declare const ensureWidgetArticleButtonType: (widget: unknown) => widget is WidgetArticleButtonType;
53
50
  export declare const ensureWidgetArticleGalleryType: (widget: unknown) => widget is WidgetArticleGalleryType;
@@ -62,7 +59,7 @@ export declare const ensureWidgetExcelDatasourceTableType: (widget: unknown) =>
62
59
  uniqid: string;
63
60
  content: {
64
61
  uri?: string | undefined;
65
- limit?: number | undefined;
62
+ limit?: number | boolean | undefined;
66
63
  tableColumnsData?: {
67
64
  name?: string | undefined;
68
65
  label?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-user-api",
3
- "version": "1.0.183",
3
+ "version": "1.0.185",
4
4
  "main": "lib/jamespot-user-api.js",
5
5
  "types": "lib/src/index.d.ts",
6
6
  "directories": {
@@ -16,7 +16,7 @@
16
16
  "@babel/preset-env": "^7.15.8",
17
17
  "@babel/preset-typescript": "^7.15.0",
18
18
  "@types/jest": "^27.0.2",
19
- "@types/node": "^16.11.1",
19
+ "@types/node": "^20.14.8",
20
20
  "@types/node-fetch": "^2.5.12",
21
21
  "@typescript-eslint/eslint-plugin": "^5.4.0",
22
22
  "@typescript-eslint/parser": "^5.4.0",
@@ -58,6 +58,10 @@
58
58
  "dependencies": {
59
59
  "zod": "^3.22.4"
60
60
  },
61
+ "engines": {
62
+ "node": ">=20.17.0 <21.0.0",
63
+ "pnpm": ">=9.9.0 <10"
64
+ },
61
65
  "scripts": {
62
66
  "build": "npx webpack --env NODE_ENV=production",
63
67
  "build-dev-vm": "npx webpack --env NODE_ENV=development --env NODE_BUILD=VM",
@@ -173,7 +173,8 @@
173
173
  ]
174
174
  }
175
175
  }
176
- }
176
+ },
177
+ { "title": "", "widget": { "name": "widget-presence", "uniqid": "66e039b77a878", "content": {} } }
177
178
  ],
178
179
  "articleWidgetDisplayMode": null
179
180
  }
@@ -0,0 +1 @@
1
+ { "o": "widget", "f": "datasourceCancel", "error": 0, "messages": [], "result": true }
@@ -18,6 +18,10 @@
18
18
  { "name": "Date", "label": "Date", "type": "date", "widget": [] }
19
19
  ],
20
20
  "sort": { "order": "ascending", "name": "unknown" },
21
+ "datasource": {
22
+ "datasourceIdentifier": "",
23
+ "datasourceType": "calc"
24
+ },
21
25
  "data": []
22
26
  }
23
27
  }
@@ -22,6 +22,10 @@
22
22
  { "name": "url", "label": "Url", "widget": { "type": "text" }, "type": "url" }
23
23
  ],
24
24
  "sort": { "order": "ascending", "name": "unknown" },
25
+ "datasource": {
26
+ "datasourceIdentifier": "",
27
+ "datasourceType": "doc"
28
+ },
25
29
  "data": []
26
30
  }
27
31
  }
@@ -19,6 +19,10 @@
19
19
  { "name": "description", "label": "Label", "widget": {}, "type": "text", "sortable": true }
20
20
  ],
21
21
  "sort": { "order": "descending", "name": "title" },
22
+ "datasource": {
23
+ "datasourceIdentifier": "",
24
+ "datasourceType": "studio"
25
+ },
22
26
  "data": []
23
27
  }
24
28
  }
@@ -18,7 +18,8 @@
18
18
  },
19
19
  "fileUrl": "/ng/file/982/12038a97c53add757a188b63bc4213bcc0468f87b7a34605d5127e27c9a99751",
20
20
  "spreadsheetList": ["Feuille1"],
21
- "spreadsheet": "Feuille1",
22
- "headers": ["fichier", "excel", "test", ""]
21
+ "spreadsheetListHeaders": {
22
+ "Feuille1": ["fichier", "excel", "test", ""]
23
+ }
23
24
  }
24
25
  }
@@ -0,0 +1,7 @@
1
+ {
2
+ "o": "widget",
3
+ "f": "datasourceGetExcelDatasourceHeaders",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": ["fichier", "excel", "test", ""]
7
+ }
@@ -0,0 +1 @@
1
+ { "o": "widget", "f": "PresenceCancel", "error": 0, "messages": [], "result": true }
@@ -0,0 +1,25 @@
1
+ {
2
+ "o": "widget",
3
+ "f": "PresenceGetResponse",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "userValue": 1,
8
+ "userAvailableList": [
9
+ {
10
+ "id": 4,
11
+ "mainType": "user",
12
+ "type": "user",
13
+ "uri": "user/4",
14
+ "dateCreation": "2019-07-09 15:48:26",
15
+ "dateModified": "2019-07-09 15:51:24",
16
+ "title": "Admin1",
17
+ "_url": "/user/4",
18
+ "level": 9
19
+ }
20
+ ],
21
+ "userUnavailableList": [],
22
+ "userAvailableTotal": 1,
23
+ "userUnavailableTotal": 0
24
+ }
25
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "o": "widget",
3
+ "f": "PresenceGetResponse",
4
+ "error": 0,
5
+ "messages": [],
6
+ "result": {
7
+ "userValue": 0,
8
+ "userAvailableList": [],
9
+ "userUnavailableList": [
10
+ {
11
+ "id": 4,
12
+ "mainType": "user",
13
+ "type": "user",
14
+ "uri": "user/4",
15
+ "dateCreation": "2019-07-09 15:48:26",
16
+ "dateModified": "2019-07-09 15:51:24",
17
+ "title": "Admin1",
18
+ "_url": "/user/4",
19
+ "level": 9
20
+ }
21
+ ],
22
+ "userAvailableTotal": 0,
23
+ "userUnavailableTotal": 1
24
+ }
25
+ }
@@ -0,0 +1 @@
1
+ { "o": "widget", "f": "PresenceRespond", "error": 0, "messages": [], "result": [] }
@@ -1,24 +0,0 @@
1
- import { z } from 'zod';
2
- import { WidgetsName } from './common';
3
- export type WidgetApiContent = {
4
- url?: string;
5
- keys?: string[];
6
- order?: string;
7
- orderBy?: string;
8
- };
9
- export declare const widgetApiContentSchema: z.ZodObject<{
10
- url: z.ZodOptionalType<z.ZodType<string | undefined, z.ZodTypeDef, string | undefined>>;
11
- keys: z.ZodOptionalType<z.ZodType<string[] | undefined, z.ZodTypeDef, string[] | undefined>>;
12
- order: z.ZodOptionalType<z.ZodType<string | undefined, z.ZodTypeDef, string | undefined>>;
13
- orderBy: z.ZodOptionalType<z.ZodType<string | undefined, z.ZodTypeDef, string | undefined>>;
14
- }, "strip", z.ZodTypeAny, WidgetApiContent, WidgetApiContent>;
15
- export type WidgetApiType = {
16
- name: WidgetsName.Api;
17
- uniqid: string;
18
- content: WidgetApiContent;
19
- };
20
- export declare const widgetApiTypeSchema: z.ZodObject<{
21
- name: z.ZodType<WidgetsName.Api, z.ZodTypeDef, WidgetsName.Api>;
22
- uniqid: z.ZodType<string, z.ZodTypeDef, string>;
23
- content: z.ZodType<WidgetApiContent, z.ZodTypeDef, WidgetApiContent>;
24
- }, "strip", z.ZodTypeAny, WidgetApiType, WidgetApiType>;