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.
- package/documentation/assets/search.js +1 -1
- package/documentation/classes/AdminLicenseApi.html +14 -14
- package/documentation/classes/AdminStoreApi.html +1 -1
- package/documentation/classes/AdminUtilsApi.html +1 -1
- package/documentation/classes/JApplicationApi.html +8 -8
- package/documentation/classes/JArticleApi.html +1 -1
- package/documentation/classes/JAssetReservation.html +1 -1
- package/documentation/classes/JAudienceApi.html +1 -1
- package/documentation/classes/JBaseApi.html +1 -1
- package/documentation/classes/JBbbApi.html +1 -1
- package/documentation/classes/JBookmarkApi.html +1 -1
- package/documentation/classes/JBusinessNetworkingApi.html +1 -1
- package/documentation/classes/JCommunityApi.html +1 -1
- package/documentation/classes/JDatasourceApi.html +1 -1
- package/documentation/classes/JDiapazoneApi.html +1 -1
- package/documentation/classes/JFaqApi.html +1 -1
- package/documentation/classes/JFileApi.html +5 -5
- package/documentation/classes/JFilebankApi.html +1 -1
- package/documentation/classes/JGlobalApi.html +1 -1
- package/documentation/classes/JGroupApi.html +12 -12
- package/documentation/classes/JIAApi.html +1 -1
- package/documentation/classes/JLandApi.html +1 -1
- package/documentation/classes/JMessengerApi.html +1 -1
- package/documentation/classes/JObjectApi.html +1 -1
- package/documentation/classes/JSearchApi.html +6 -6
- package/documentation/classes/JShareApi.html +1 -1
- package/documentation/classes/JSocialActionApi.html +1 -1
- package/documentation/classes/JTaxonomyApi.html +2 -2
- package/documentation/classes/JUserApi.html +7 -7
- package/documentation/classes/JWedocApi.html +1 -1
- package/documentation/classes/JWidgetApi.html +1 -1
- package/documentation/classes/JamespotUserApi.html +1 -1
- package/documentation/classes/Network.html +1 -1
- package/documentation/classes/TVDisplayApi.html +1 -1
- package/documentation/classes/WindowBrowser.html +1 -1
- package/documentation/enums/BookmarkType.html +1 -1
- package/documentation/enums/Format.html +1 -1
- package/documentation/enums/GroupModerateStatus.html +1 -1
- package/documentation/enums/StudioApplicationStatus.html +1 -1
- package/documentation/enums/WidgetsName.html +1 -1
- package/documentation/index.html +1 -1
- package/documentation/interfaces/AccessRightObject.html +1 -1
- package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
- package/documentation/interfaces/ApiWrapper.html +1 -1
- package/documentation/interfaces/BaseMessage.html +1 -1
- package/documentation/interfaces/FileBankProps.html +1 -1
- package/documentation/interfaces/FolderProps.html +1 -1
- package/documentation/interfaces/ListFilterSpec.html +1 -1
- package/documentation/interfaces/OF.html +1 -1
- package/documentation/interfaces/PagingResults.html +1 -1
- package/documentation/interfaces/RootFolderProps.html +1 -1
- package/documentation/interfaces/SpotProps.html +1 -1
- package/documentation/interfaces/TaxonomyCreate.html +1 -1
- package/documentation/interfaces/WidgetType.html +1 -1
- package/documentation/interfaces/WindowInterface.html +1 -1
- package/documentation/modules.html +11 -11
- package/lib/jamespot-user-api.js +1 -1
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/src/apis/tvDisplay/tvDisplay.d.ts +32 -32
- package/lib/src/apis/widget/widget.d.ts +20 -3
- package/lib/src/apis/widget/widget.mock.d.ts +5 -1
- package/lib/src/types/article.d.ts +216 -216
- package/lib/src/types/asei.d.ts +22 -22
- package/lib/src/types/assetReservation.d.ts +96 -96
- package/lib/src/types/businessContact.d.ts +14 -14
- package/lib/src/types/comment.d.ts +22 -22
- package/lib/src/types/faq.d.ts +118 -118
- package/lib/src/types/hook.d.ts +6 -6
- package/lib/src/types/jLand.d.ts +36 -36
- package/lib/src/types/mediaLibrary.d.ts +22 -22
- package/lib/src/types/meeting.d.ts +66 -66
- package/lib/src/types/pollSurvey.d.ts +66 -66
- package/lib/src/types/quizz.d.ts +66 -66
- package/lib/src/types/realtime.d.ts +15 -3
- package/lib/src/types/socialEvent.d.ts +66 -66
- package/lib/src/types/support.d.ts +66 -66
- package/lib/src/types/surveyDate.d.ts +66 -66
- package/lib/src/types/tvDisplay.d.ts +560 -560
- package/lib/src/types/widgets/common.d.ts +5 -3
- package/lib/src/types/widgets/default.d.ts +149 -99
- package/lib/src/types/widgets/ensure.d.ts +58 -0
- package/lib/src/types/widgets/ensure.test.d.ts +1 -0
- package/lib/src/types/widgets/widgetDatasourceTable.d.ts +8 -8
- package/lib/src/types/widgets/widgetExcelDatasourceTable.d.ts +8 -8
- package/lib/src/types/widgets/widgetPresence.d.ts +132 -0
- package/lib/src/types/widgets.d.ts +944 -288
- package/lib/src/util/widget.d.ts +6 -9
- package/package.json +6 -2
- package/phpunitMock/articleGet-with-widgets.json +2 -1
- package/phpunitMock/widgetPresenceCancel-default.json +1 -0
- package/phpunitMock/widgetPresenceGetResponse-available.json +25 -0
- package/phpunitMock/widgetPresenceGetResponse-unavailable.json +25 -0
- package/phpunitMock/widgetPresenceRespond-available.json +1 -0
- package/lib/src/types/widgets/widgetApi.d.ts +0 -24
package/lib/src/util/widget.d.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
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.
|
|
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": "^
|
|
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",
|
|
@@ -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>;
|