jamespot-user-api 1.0.183 → 1.0.184

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 (94) 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/tvDisplay/tvDisplay.d.ts +32 -32
  60. package/lib/src/apis/widget/widget.d.ts +20 -3
  61. package/lib/src/apis/widget/widget.mock.d.ts +5 -1
  62. package/lib/src/types/article.d.ts +216 -216
  63. package/lib/src/types/asei.d.ts +22 -22
  64. package/lib/src/types/assetReservation.d.ts +96 -96
  65. package/lib/src/types/businessContact.d.ts +14 -14
  66. package/lib/src/types/comment.d.ts +22 -22
  67. package/lib/src/types/faq.d.ts +118 -118
  68. package/lib/src/types/hook.d.ts +6 -6
  69. package/lib/src/types/jLand.d.ts +36 -36
  70. package/lib/src/types/mediaLibrary.d.ts +22 -22
  71. package/lib/src/types/meeting.d.ts +66 -66
  72. package/lib/src/types/pollSurvey.d.ts +66 -66
  73. package/lib/src/types/quizz.d.ts +66 -66
  74. package/lib/src/types/realtime.d.ts +15 -3
  75. package/lib/src/types/socialEvent.d.ts +66 -66
  76. package/lib/src/types/support.d.ts +66 -66
  77. package/lib/src/types/surveyDate.d.ts +66 -66
  78. package/lib/src/types/tvDisplay.d.ts +560 -560
  79. package/lib/src/types/widgets/common.d.ts +5 -3
  80. package/lib/src/types/widgets/default.d.ts +149 -99
  81. package/lib/src/types/widgets/ensure.d.ts +58 -0
  82. package/lib/src/types/widgets/ensure.test.d.ts +1 -0
  83. package/lib/src/types/widgets/widgetDatasourceTable.d.ts +8 -8
  84. package/lib/src/types/widgets/widgetExcelDatasourceTable.d.ts +8 -8
  85. package/lib/src/types/widgets/widgetPresence.d.ts +132 -0
  86. package/lib/src/types/widgets.d.ts +944 -288
  87. package/lib/src/util/widget.d.ts +6 -9
  88. package/package.json +6 -2
  89. package/phpunitMock/articleGet-with-widgets.json +2 -1
  90. package/phpunitMock/widgetPresenceCancel-default.json +1 -0
  91. package/phpunitMock/widgetPresenceGetResponse-available.json +25 -0
  92. package/phpunitMock/widgetPresenceGetResponse-unavailable.json +25 -0
  93. package/phpunitMock/widgetPresenceRespond-available.json +1 -0
  94. 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.184",
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": "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>;