jamespot-user-api 1.0.181 → 1.0.183

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 (140) hide show
  1. package/documentation/assets/search.js +1 -1
  2. package/documentation/classes/AdminLicenseApi.html +15 -15
  3. package/documentation/classes/AdminStoreApi.html +1 -1
  4. package/documentation/classes/AdminUtilsApi.html +2 -2
  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 +17 -17
  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 +10 -8
  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/jest.config.ts +1 -2
  58. package/lib/jamespot-user-api.js +1 -1
  59. package/lib/jamespot-user-api.js.map +1 -1
  60. package/lib/jest.config.d.ts +0 -1
  61. package/lib/jest.config.vm.d.ts +0 -1
  62. package/lib/src/apis/admin/license.d.ts +2 -2
  63. package/lib/src/apis/admin/licenses.mock.d.ts +6 -0
  64. package/lib/src/apis/admin/utils.d.ts +1 -1
  65. package/lib/src/apis/admin/utils.mock.d.ts +2 -0
  66. package/lib/src/apis/admin/utils.test.d.ts +1 -0
  67. package/lib/src/apis/article/article.d.ts +3 -1
  68. package/lib/src/apis/filebank/filebank.d.ts +2 -2
  69. package/lib/src/apis/group/group.d.ts +218 -9
  70. package/lib/src/apis/group/group.mock.d.ts +6 -6
  71. package/lib/src/apis/jland/jland.d.ts +2 -31
  72. package/lib/src/apis/jland/jland.mock.d.ts +3 -2
  73. package/lib/src/apis/taxonomy/taxonomy.d.ts +2 -2
  74. package/lib/src/apis/tvDisplay/tvDisplay.d.ts +962 -3
  75. package/lib/src/apis/user/user.d.ts +11 -103
  76. package/lib/src/apis/user/user.mock.d.ts +5 -1
  77. package/lib/src/apis/widget/widget.d.ts +2 -2
  78. package/lib/src/apis/widget/widget.mock.d.ts +2 -2
  79. package/lib/src/types/adminUtils.d.ts +10 -10
  80. package/lib/src/types/article.d.ts +3065 -4796
  81. package/lib/src/types/asei.d.ts +231 -413
  82. package/lib/src/types/assetReservation.d.ts +1051 -1768
  83. package/lib/src/types/autocomplete.d.ts +14 -14
  84. package/lib/src/types/businessContact.d.ts +136 -502
  85. package/lib/src/types/comment.d.ts +231 -413
  86. package/lib/src/types/diapazone.d.ts +4 -4
  87. package/lib/src/types/faq.d.ts +1365 -2277
  88. package/lib/src/types/global.d.ts +2 -2
  89. package/lib/src/types/group.d.ts +1880 -127
  90. package/lib/src/types/hook.d.ts +1 -2
  91. package/lib/src/types/index.d.ts +2 -1
  92. package/lib/src/types/jLand.d.ts +1175 -0
  93. package/lib/src/types/mediaLibrary.d.ts +241 -423
  94. package/lib/src/types/meeting.d.ts +723 -1269
  95. package/lib/src/types/model.d.ts +653 -89
  96. package/lib/src/types/object.d.ts +2 -2
  97. package/lib/src/types/pollSurvey.d.ts +856 -1402
  98. package/lib/src/types/quizz.d.ts +723 -1269
  99. package/lib/src/types/search.d.ts +8 -8
  100. package/lib/src/types/share.d.ts +8 -8
  101. package/lib/src/types/socialEvent.d.ts +723 -1269
  102. package/lib/src/types/support.d.ts +723 -1269
  103. package/lib/src/types/surveyDate.d.ts +726 -1308
  104. package/lib/src/types/tvDisplay.d.ts +18544 -49
  105. package/lib/src/types/uri.d.ts +44 -8
  106. package/lib/src/types/wedoc.d.ts +633 -27
  107. package/lib/src/types/widgets/common.d.ts +1 -18
  108. package/lib/src/types/widgets/default.d.ts +538 -1719
  109. package/lib/src/types/widgets/widgetApi.d.ts +0 -1
  110. package/lib/src/types/widgets/widgetArticleAttachment.d.ts +0 -1
  111. package/lib/src/types/widgets/widgetArticleButton.d.ts +0 -1
  112. package/lib/src/types/widgets/widgetArticleGallery.d.ts +0 -1
  113. package/lib/src/types/widgets/widgetArticleImage.d.ts +0 -1
  114. package/lib/src/types/widgets/widgetArticleSlider.d.ts +0 -1
  115. package/lib/src/types/widgets/widgetArticleText.d.ts +0 -1
  116. package/lib/src/types/widgets/widgetArticleTitle.d.ts +0 -1
  117. package/lib/src/types/widgets/widgetCheckList.d.ts +7 -4
  118. package/lib/src/types/widgets/widgetDatasourceTable.d.ts +0 -1
  119. package/lib/src/types/widgets/widgetExcelDatasourceTable.d.ts +2 -26
  120. package/lib/src/types/widgets.d.ts +3573 -4860
  121. package/lib/src/util/Test.d.ts +5 -498
  122. package/lib/src/util/group.d.ts +114 -2
  123. package/lib/src/util/index.d.ts +1 -0
  124. package/lib/src/util/widget.d.ts +83 -0
  125. package/package.json +1 -1
  126. package/phpunitMock/adminApps-success.json +270 -0
  127. package/phpunitMock/articleCreate-businessContact.json +23 -0
  128. package/phpunitMock/articleCreate-jLandMap.json +49 -0
  129. package/phpunitMock/articleDelete-businessContact.json +12 -0
  130. package/phpunitMock/articleUpdate-businessContact.json +50 -0
  131. package/phpunitMock/licenseManagerAssignPossiblesLicenses-success.json +7 -0
  132. package/phpunitMock/licenseManagerCountObjectsWithoutLicense-success.json +7 -0
  133. package/phpunitMock/licenseManagerGetAssignmentMode-success.json +7 -0
  134. package/phpunitMock/licenseManagerOptimizeLicenses-success.json +7 -0
  135. package/phpunitMock/licenseManagerSetAssignmentMode-success.json +7 -0
  136. package/phpunitMock/licenseManagerUserStatistics-success.json +11 -0
  137. package/phpunitMock/objectListJLandJLandList-success.json +14 -0
  138. package/phpunitMock/userSignIn-success.json +31 -0
  139. package/documentation/interfaces/Category.html +0 -1
  140. /package/lib/src/types/{adminLicence.d.ts → adminLicense.d.ts} +0 -0
@@ -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 interface TypeId {
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 interface Uri {
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>;