jamespot-user-api 1.0.180 → 1.0.182
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 +2 -2
- 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 +17 -17
- 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 +10 -8
- 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/StudioApplicationStatus.html +1 -1
- package/documentation/enums/WidgetsName.html +1 -1
- package/documentation/enums/_GroupModerateStatus.html +1 -0
- 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/jest.config.ts +1 -2
- package/lib/jamespot-user-api.js +1 -1
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/jest.config.d.ts +0 -1
- package/lib/jest.config.vm.d.ts +0 -1
- package/lib/src/apis/admin/utils.d.ts +1 -1
- package/lib/src/apis/article/article.d.ts +3 -1
- package/lib/src/apis/file/file.d.ts +2 -2
- package/lib/src/apis/filebank/filebank.d.ts +2 -2
- package/lib/src/apis/group/group.d.ts +218 -9
- package/lib/src/apis/group/group.mock.d.ts +6 -6
- package/lib/src/apis/jland/jland.d.ts +2 -31
- package/lib/src/apis/jland/jland.mock.d.ts +3 -2
- package/lib/src/apis/taxonomy/taxonomy.d.ts +2 -2
- package/lib/src/apis/tvDisplay/tvDisplay.d.ts +962 -3
- package/lib/src/apis/user/user.d.ts +11 -103
- package/lib/src/apis/user/user.mock.d.ts +5 -1
- package/lib/src/apis/widget/widget.d.ts +2 -2
- package/lib/src/apis/widget/widget.mock.d.ts +2 -2
- package/lib/src/types/adminUtils.d.ts +10 -10
- package/lib/src/types/article.d.ts +3065 -4796
- package/lib/src/types/asei.d.ts +231 -413
- package/lib/src/types/assetReservation.d.ts +1051 -1768
- package/lib/src/types/autocomplete.d.ts +14 -14
- package/lib/src/types/businessContact.d.ts +136 -502
- package/lib/src/types/comment.d.ts +231 -413
- package/lib/src/types/diapazone.d.ts +4 -4
- package/lib/src/types/faq.d.ts +1365 -2277
- package/lib/src/types/global.d.ts +2 -2
- package/lib/src/types/group.d.ts +1881 -127
- package/lib/src/types/hook.d.ts +1 -2
- package/lib/src/types/index.d.ts +1 -0
- package/lib/src/types/jLand.d.ts +1175 -0
- package/lib/src/types/mediaLibrary.d.ts +241 -423
- package/lib/src/types/meeting.d.ts +723 -1269
- package/lib/src/types/model.d.ts +653 -89
- package/lib/src/types/object.d.ts +2 -2
- package/lib/src/types/pollSurvey.d.ts +856 -1402
- package/lib/src/types/quizz.d.ts +723 -1269
- package/lib/src/types/search.d.ts +8 -8
- package/lib/src/types/share.d.ts +8 -8
- package/lib/src/types/socialEvent.d.ts +723 -1269
- package/lib/src/types/support.d.ts +723 -1269
- package/lib/src/types/surveyDate.d.ts +726 -1308
- package/lib/src/types/tvDisplay.d.ts +18544 -49
- package/lib/src/types/uri.d.ts +44 -8
- package/lib/src/types/wedoc.d.ts +633 -27
- package/lib/src/types/widgets/common.d.ts +1 -18
- package/lib/src/types/widgets/default.d.ts +538 -1719
- package/lib/src/types/widgets/widgetApi.d.ts +0 -1
- package/lib/src/types/widgets/widgetArticleAttachment.d.ts +0 -1
- package/lib/src/types/widgets/widgetArticleButton.d.ts +0 -1
- package/lib/src/types/widgets/widgetArticleGallery.d.ts +0 -1
- package/lib/src/types/widgets/widgetArticleImage.d.ts +0 -1
- package/lib/src/types/widgets/widgetArticleSlider.d.ts +0 -1
- package/lib/src/types/widgets/widgetArticleText.d.ts +0 -1
- package/lib/src/types/widgets/widgetArticleTitle.d.ts +0 -1
- package/lib/src/types/widgets/widgetCheckList.d.ts +7 -4
- package/lib/src/types/widgets/widgetDatasourceTable.d.ts +0 -1
- package/lib/src/types/widgets/widgetExcelDatasourceTable.d.ts +2 -26
- package/lib/src/types/widgets.d.ts +3573 -4860
- package/lib/src/util/Test.d.ts +5 -498
- package/lib/src/util/group.d.ts +2 -2
- package/lib/src/util/index.d.ts +1 -0
- package/lib/src/util/widget.d.ts +83 -0
- package/package.json +1 -1
- package/phpunitMock/articleCreate-businessContact.json +23 -0
- package/phpunitMock/articleCreate-jLandMap.json +49 -0
- package/phpunitMock/articleDelete-businessContact.json +12 -0
- package/phpunitMock/articleUpdate-businessContact.json +50 -0
- package/phpunitMock/objectListJLandJLandList-success.json +14 -0
- package/phpunitMock/userSignIn-success.json +31 -0
- package/documentation/enums/GroupModerateStatus.html +0 -1
- package/documentation/interfaces/Category.html +0 -1
package/lib/src/types/uri.d.ts
CHANGED
|
@@ -1,19 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
* Type with one of (tuple type - id) and (uri) required. If both are passed, only the uri will be used
|
|
3
|
-
*/
|
|
4
|
-
export type UriOrTypeId = Partial<TypeId> & Partial<Uri>;
|
|
1
|
+
import { z } from 'zod';
|
|
5
2
|
/**
|
|
6
3
|
* Interface representing the parameters used to make a content/record uri
|
|
7
4
|
* @member type - type of the image (ex: user, fileArticle, spot, diffgroup, etc.)
|
|
8
5
|
* @member recordId - id of the record
|
|
9
6
|
*/
|
|
10
|
-
export
|
|
7
|
+
export declare const typeIdSchema: z.ZodObject<{
|
|
8
|
+
type: z.ZodString;
|
|
9
|
+
recordId: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
type: string;
|
|
12
|
+
recordId: string | number;
|
|
13
|
+
}, {
|
|
14
|
+
type: string;
|
|
15
|
+
recordId: string | number;
|
|
16
|
+
}>;
|
|
17
|
+
export type TypeId = z.infer<typeof typeIdSchema>;
|
|
18
|
+
export declare const ensureTypeId: (o: unknown) => o is {
|
|
11
19
|
type: string;
|
|
12
20
|
recordId: string | number;
|
|
13
|
-
}
|
|
21
|
+
};
|
|
14
22
|
/**
|
|
15
23
|
* @member uri - uri of the record
|
|
16
24
|
*/
|
|
17
|
-
export
|
|
25
|
+
export declare const uriSchema: z.ZodObject<{
|
|
26
|
+
uri: z.ZodString;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
uri: string;
|
|
29
|
+
}, {
|
|
30
|
+
uri: string;
|
|
31
|
+
}>;
|
|
32
|
+
export type Uri = z.infer<typeof uriSchema>;
|
|
33
|
+
export declare const ensureUri: (o: unknown) => o is {
|
|
18
34
|
uri: string;
|
|
19
|
-
}
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Type with one of (tuple type - id) and (uri) required. If both are passed, only the uri will be used
|
|
38
|
+
*/
|
|
39
|
+
export declare const uriOrTypeIdSchema: z.ZodUnion<[z.ZodObject<{
|
|
40
|
+
type: z.ZodOptional<z.ZodString>;
|
|
41
|
+
recordId: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
type?: string | undefined;
|
|
44
|
+
recordId?: string | number | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
type?: string | undefined;
|
|
47
|
+
recordId?: string | number | undefined;
|
|
48
|
+
}>, z.ZodObject<{
|
|
49
|
+
uri: z.ZodOptional<z.ZodString>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
uri?: string | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
uri?: string | undefined;
|
|
54
|
+
}>]>;
|
|
55
|
+
export type UriOrTypeId = z.infer<typeof uriOrTypeIdSchema>;
|