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,125 +1,689 @@
1
1
  import { z } from 'zod';
2
- export type WidgetText = {
3
- type: 'text';
4
- };
2
+ export declare const widgetTextSchema: z.ZodObject<{
3
+ type: z.ZodLiteral<"text">;
4
+ }, "strip", z.ZodTypeAny, {
5
+ type: "text";
6
+ }, {
7
+ type: "text";
8
+ }>;
9
+ export type WidgetText = z.infer<typeof widgetTextSchema>;
5
10
  export declare const widgetTextValueSchema: z.ZodString;
6
- export type WidgetTextarea = {
7
- type: 'textarea';
11
+ export declare const widgetTextareaSchema: z.ZodObject<{
12
+ type: z.ZodLiteral<"textarea">;
13
+ params: z.ZodOptional<z.ZodObject<{
14
+ class: z.ZodLiteral<"mceEditor">;
15
+ mention: z.ZodLiteral<"1">;
16
+ }, "strip", z.ZodTypeAny, {
17
+ class: "mceEditor";
18
+ mention: "1";
19
+ }, {
20
+ class: "mceEditor";
21
+ mention: "1";
22
+ }>>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ type: "textarea";
8
25
  params?: {
9
- class: 'mceEditor';
10
- mention: '1';
11
- };
12
- };
26
+ class: "mceEditor";
27
+ mention: "1";
28
+ } | undefined;
29
+ }, {
30
+ type: "textarea";
31
+ params?: {
32
+ class: "mceEditor";
33
+ mention: "1";
34
+ } | undefined;
35
+ }>;
36
+ export type WidgetTextarea = z.infer<typeof widgetTextareaSchema>;
13
37
  export declare const widgetTextareaValueSchema: z.ZodNullable<z.ZodString>;
14
- export type WidgetNumber = {
15
- type: 'number';
16
- };
38
+ export declare const widgetNumberSchema: z.ZodObject<{
39
+ type: z.ZodLiteral<"number">;
40
+ }, "strip", z.ZodTypeAny, {
41
+ type: "number";
42
+ }, {
43
+ type: "number";
44
+ }>;
45
+ export type WidgetNumber = z.infer<typeof widgetNumberSchema>;
17
46
  export declare const widgetNumberValueSchema: z.ZodNumber;
18
- export type WidgetColor = {
19
- type: 'color';
47
+ export declare const widgetColorSchema: z.ZodObject<{
48
+ type: z.ZodLiteral<"color">;
49
+ options: z.ZodObject<{
50
+ colors: z.ZodString;
51
+ defaultColor: z.ZodString;
52
+ }, "strip", z.ZodTypeAny, {
53
+ colors: string;
54
+ defaultColor: string;
55
+ }, {
56
+ colors: string;
57
+ defaultColor: string;
58
+ }>;
59
+ }, "strip", z.ZodTypeAny, {
20
60
  options: {
21
61
  colors: string;
22
62
  defaultColor: string;
23
63
  };
24
- };
25
- export type WidgetDate = {
26
- type: 'date';
64
+ type: "color";
65
+ }, {
66
+ options: {
67
+ colors: string;
68
+ defaultColor: string;
69
+ };
70
+ type: "color";
71
+ }>;
72
+ export type WidgetColor = z.infer<typeof widgetColorSchema>;
73
+ export declare const widgetDateSchema: z.ZodObject<{
74
+ type: z.ZodLiteral<"date">;
75
+ format: z.ZodString;
76
+ }, "strip", z.ZodTypeAny, {
77
+ type: "date";
27
78
  format: string;
28
- };
79
+ }, {
80
+ type: "date";
81
+ format: string;
82
+ }>;
83
+ export type WidgetDate = z.infer<typeof widgetDateSchema>;
29
84
  export declare const widgetDateValueSchema: z.ZodNullable<z.ZodString>;
30
- export type WidgetDatetime = {
31
- type: 'datetime';
32
- };
85
+ export declare const widgetDatetimeSchema: z.ZodObject<{
86
+ type: z.ZodLiteral<"datetime">;
87
+ }, "strip", z.ZodTypeAny, {
88
+ type: "datetime";
89
+ }, {
90
+ type: "datetime";
91
+ }>;
92
+ export type WidgetDatetime = z.infer<typeof widgetDatetimeSchema>;
33
93
  export declare const widgetDatetimeValueSchema: z.ZodNullable<z.ZodString>;
34
- export type WidgetDatePicker = {
35
- type: 'datePicker';
36
- };
94
+ export declare const widgetDatePickerSchema: z.ZodObject<{
95
+ type: z.ZodLiteral<"datePicker">;
96
+ }, "strip", z.ZodTypeAny, {
97
+ type: "datePicker";
98
+ }, {
99
+ type: "datePicker";
100
+ }>;
101
+ export type WidgetDatePicker = z.infer<typeof widgetDatePickerSchema>;
37
102
  export declare const widgetDatePickerValueSchema: z.ZodNullable<z.ZodString>;
38
103
  export declare const widgetActiveValueSchema: z.ZodNumber;
39
- export type WidgetAudience = {
40
- type: 'audience';
104
+ export declare const widgetAudienceSchema: z.ZodObject<{
105
+ type: z.ZodLiteral<"audience">;
106
+ options: z.ZodOptional<z.ZodObject<{
107
+ disableEveryoneAudience: z.ZodOptional<z.ZodBoolean>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ disableEveryoneAudience?: boolean | undefined;
110
+ }, {
111
+ disableEveryoneAudience?: boolean | undefined;
112
+ }>>;
113
+ }, "strip", z.ZodTypeAny, {
114
+ type: "audience";
41
115
  options?: {
42
- disableEveryoneAudience?: boolean;
43
- };
44
- };
45
- export type WidgetLink = {
46
- type: 'link';
47
- };
48
- export type WidgetMultiattribute = {
49
- type: 'multiattribute';
50
- };
51
- export type WidgetFile = {
52
- type: 'file';
53
- };
54
- export type WidgetSelect<U extends string = string> = {
55
- type: 'select';
56
- options: Record<U, string>;
116
+ disableEveryoneAudience?: boolean | undefined;
117
+ } | undefined;
118
+ }, {
119
+ type: "audience";
120
+ options?: {
121
+ disableEveryoneAudience?: boolean | undefined;
122
+ } | undefined;
123
+ }>;
124
+ export type WidgetAudience = z.infer<typeof widgetAudienceSchema>;
125
+ export declare const widgetLinkSchema: z.ZodObject<{
126
+ type: z.ZodLiteral<"link">;
127
+ }, "strip", z.ZodTypeAny, {
128
+ type: "link";
129
+ }, {
130
+ type: "link";
131
+ }>;
132
+ export type WidgetLink = z.infer<typeof widgetLinkSchema>;
133
+ export declare const widgetMultiattributeSchema: z.ZodObject<{
134
+ type: z.ZodLiteral<"multiattribute">;
135
+ }, "strip", z.ZodTypeAny, {
136
+ type: "multiattribute";
137
+ }, {
138
+ type: "multiattribute";
139
+ }>;
140
+ export type WidgetMultiattribute = z.infer<typeof widgetMultiattributeSchema>;
141
+ export declare const widgetFileSchema: z.ZodObject<{
142
+ type: z.ZodLiteral<"file">;
143
+ }, "strip", z.ZodTypeAny, {
144
+ type: "file";
145
+ }, {
146
+ type: "file";
147
+ }>;
148
+ export type WidgetFile = z.infer<typeof widgetFileSchema>;
149
+ export declare const widgetSelectSchema: z.ZodObject<{
150
+ type: z.ZodLiteral<"select">;
151
+ options: z.ZodRecord<z.ZodString, z.ZodString>;
152
+ params: z.ZodOptional<z.ZodObject<{
153
+ data: z.ZodOptional<z.ZodString>;
154
+ defaultValue: z.ZodOptional<z.ZodString>;
155
+ explain: z.ZodOptional<z.ZodLiteral<1>>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ data?: string | undefined;
158
+ defaultValue?: string | undefined;
159
+ explain?: 1 | undefined;
160
+ }, {
161
+ data?: string | undefined;
162
+ defaultValue?: string | undefined;
163
+ explain?: 1 | undefined;
164
+ }>>;
165
+ }, "strip", z.ZodTypeAny, {
166
+ options: Record<string, string>;
167
+ type: "select";
57
168
  params?: {
58
- data?: string;
59
- defaultValue?: U;
60
- explain?: 1;
61
- };
62
- };
63
- export type WidgetEmbed = {
64
- type: 'embed';
65
- };
66
- export type WidgetEmail = {
67
- type: 'email';
68
- };
169
+ data?: string | undefined;
170
+ defaultValue?: string | undefined;
171
+ explain?: 1 | undefined;
172
+ } | undefined;
173
+ }, {
174
+ options: Record<string, string>;
175
+ type: "select";
176
+ params?: {
177
+ data?: string | undefined;
178
+ defaultValue?: string | undefined;
179
+ explain?: 1 | undefined;
180
+ } | undefined;
181
+ }>;
182
+ export type WidgetSelect = z.infer<typeof widgetSelectSchema>;
183
+ export declare const widgetEmbedSchema: z.ZodObject<{
184
+ type: z.ZodLiteral<"embed">;
185
+ }, "strip", z.ZodTypeAny, {
186
+ type: "embed";
187
+ }, {
188
+ type: "embed";
189
+ }>;
190
+ export type WidgetEmbed = z.infer<typeof widgetEmbedSchema>;
191
+ export declare const widgetEmailSchema: z.ZodObject<{
192
+ type: z.ZodLiteral<"email">;
193
+ }, "strip", z.ZodTypeAny, {
194
+ type: "email";
195
+ }, {
196
+ type: "email";
197
+ }>;
198
+ export type WidgetEmail = z.infer<typeof widgetEmailSchema>;
69
199
  export declare const widgetEmailValueSchema: z.ZodString;
70
- export type WidgetUrl = {
71
- type: 'url';
200
+ export declare const widgetUrlSchema: z.ZodObject<{
201
+ type: z.ZodLiteral<"url">;
202
+ params: z.ZodObject<{
203
+ target: z.ZodOptional<z.ZodLiteral<"_blank">>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ target?: "_blank" | undefined;
206
+ }, {
207
+ target?: "_blank" | undefined;
208
+ }>;
209
+ }, "strip", z.ZodTypeAny, {
72
210
  params: {
73
- target?: '_blank';
211
+ target?: "_blank" | undefined;
74
212
  };
75
- };
213
+ type: "url";
214
+ }, {
215
+ params: {
216
+ target?: "_blank" | undefined;
217
+ };
218
+ type: "url";
219
+ }>;
220
+ export type WidgetUrl = z.infer<typeof widgetUrlSchema>;
76
221
  export declare const widgetUrlValueSchema: z.ZodString;
77
- export type WidgetPlace = {
78
- type: 'place';
222
+ export declare const widgetPlaceSchema: z.ZodObject<{
223
+ type: z.ZodLiteral<"place">;
224
+ options: z.ZodRecord<z.ZodString, z.ZodString>;
225
+ }, "strip", z.ZodTypeAny, {
79
226
  options: Record<string, string>;
80
- };
81
- export type WidgetRefUser = {
82
- type: 'refUser';
83
- };
84
- export type WidgetTransient = {
85
- type: 'transient';
86
- };
87
- export type WidgetRadio = {
88
- type: 'radio';
227
+ type: "place";
228
+ }, {
89
229
  options: Record<string, string>;
90
- };
91
- export type WidgetCheckbox = {
92
- type: 'checkbox';
230
+ type: "place";
231
+ }>;
232
+ export type WidgetPlace = z.infer<typeof widgetPlaceSchema>;
233
+ export declare const widgetRefUserSchema: z.ZodObject<{
234
+ type: z.ZodLiteral<"refUser">;
235
+ }, "strip", z.ZodTypeAny, {
236
+ type: "refUser";
237
+ }, {
238
+ type: "refUser";
239
+ }>;
240
+ export type WidgetRefUser = z.infer<typeof widgetRefUserSchema>;
241
+ export declare const widgetTransientSchema: z.ZodObject<{
242
+ type: z.ZodLiteral<"transient">;
243
+ }, "strip", z.ZodTypeAny, {
244
+ type: "transient";
245
+ }, {
246
+ type: "transient";
247
+ }>;
248
+ export type WidgetTransient = z.infer<typeof widgetTransientSchema>;
249
+ export declare const widgetRadioSchema: z.ZodObject<{
250
+ type: z.ZodLiteral<"radio">;
251
+ options: z.ZodRecord<z.ZodString, z.ZodString>;
252
+ }, "strip", z.ZodTypeAny, {
93
253
  options: Record<string, string>;
94
- };
95
- export type WidgetTaxonomy = {
96
- type: 'taxonomy';
254
+ type: "radio";
255
+ }, {
256
+ options: Record<string, string>;
257
+ type: "radio";
258
+ }>;
259
+ export type WidgetRadio = z.infer<typeof widgetRadioSchema>;
260
+ export declare const widgetCheckboxSchema: z.ZodObject<{
261
+ type: z.ZodLiteral<"checkbox">;
262
+ options: z.ZodRecord<z.ZodString, z.ZodString>;
263
+ }, "strip", z.ZodTypeAny, {
264
+ options: Record<string, string>;
265
+ type: "checkbox";
266
+ }, {
267
+ options: Record<string, string>;
268
+ type: "checkbox";
269
+ }>;
270
+ export type WidgetCheckbox = z.infer<typeof widgetCheckboxSchema>;
271
+ export declare const widgetTaxonomySchema: z.ZodObject<{
272
+ type: z.ZodLiteral<"taxonomy">;
273
+ params: z.ZodObject<{
274
+ idTaxonomy: z.ZodString;
275
+ type: z.ZodOptional<z.ZodString>;
276
+ limit: z.ZodOptional<z.ZodNumber>;
277
+ }, "strip", z.ZodTypeAny, {
278
+ idTaxonomy: string;
279
+ type?: string | undefined;
280
+ limit?: number | undefined;
281
+ }, {
282
+ idTaxonomy: string;
283
+ type?: string | undefined;
284
+ limit?: number | undefined;
285
+ }>;
286
+ }, "strip", z.ZodTypeAny, {
97
287
  params: {
98
288
  idTaxonomy: string;
99
- type?: string;
100
- limit?: number;
289
+ type?: string | undefined;
290
+ limit?: number | undefined;
101
291
  };
102
- };
103
- export type WidgetTel = {
104
- type: 'tel';
105
- };
106
- export type WidgetOrientedlinks = {
107
- type: 'orientedlinks';
292
+ type: "taxonomy";
293
+ }, {
108
294
  params: {
109
- 'jcomplete-multiple': '0' | '1';
110
- showAdd: '0' | '1';
111
- supportedTypes: Array<string>;
295
+ idTaxonomy: string;
296
+ type?: string | undefined;
297
+ limit?: number | undefined;
112
298
  };
113
- };
114
- export type WidgetUri = {
115
- type: 'uri';
299
+ type: "taxonomy";
300
+ }>;
301
+ export type WidgetTaxonomy = z.infer<typeof widgetTaxonomySchema>;
302
+ export declare const widgetTelSchema: z.ZodObject<{
303
+ type: z.ZodLiteral<"tel">;
304
+ }, "strip", z.ZodTypeAny, {
305
+ type: "tel";
306
+ }, {
307
+ type: "tel";
308
+ }>;
309
+ export type WidgetTel = z.infer<typeof widgetTelSchema>;
310
+ export declare const widgetOrientedlinksSchema: z.ZodObject<{
311
+ type: z.ZodLiteral<"orientedlinks">;
312
+ params: z.ZodObject<{
313
+ 'jcomplete-multiple': z.ZodUnion<[z.ZodLiteral<"0">, z.ZodLiteral<"1">]>;
314
+ showAdd: z.ZodUnion<[z.ZodLiteral<"0">, z.ZodLiteral<"1">]>;
315
+ supportedTypes: z.ZodArray<z.ZodString, "many">;
316
+ }, "strip", z.ZodTypeAny, {
317
+ 'jcomplete-multiple': "0" | "1";
318
+ showAdd: "0" | "1";
319
+ supportedTypes: string[];
320
+ }, {
321
+ 'jcomplete-multiple': "0" | "1";
322
+ showAdd: "0" | "1";
323
+ supportedTypes: string[];
324
+ }>;
325
+ }, "strip", z.ZodTypeAny, {
326
+ params: {
327
+ 'jcomplete-multiple': "0" | "1";
328
+ showAdd: "0" | "1";
329
+ supportedTypes: string[];
330
+ };
331
+ type: "orientedlinks";
332
+ }, {
116
333
  params: {
334
+ 'jcomplete-multiple': "0" | "1";
335
+ showAdd: "0" | "1";
336
+ supportedTypes: string[];
337
+ };
338
+ type: "orientedlinks";
339
+ }>;
340
+ export type WidgetOrientedlinks = z.infer<typeof widgetOrientedlinksSchema>;
341
+ export declare const widgetUriSchema: z.ZodObject<{
342
+ type: z.ZodLiteral<"uri">;
343
+ params: z.ZodObject<{
344
+ class: z.ZodString;
345
+ 'jcomplete-url': z.ZodString;
346
+ type: z.ZodString;
347
+ }, "strip", z.ZodTypeAny, {
348
+ type: string;
117
349
  class: string;
118
350
  'jcomplete-url': string;
351
+ }, {
119
352
  type: string;
353
+ class: string;
354
+ 'jcomplete-url': string;
355
+ }>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ params: {
358
+ type: string;
359
+ class: string;
360
+ 'jcomplete-url': string;
120
361
  };
121
- };
122
- export type Widget = WidgetText | WidgetTextarea | WidgetNumber | WidgetDate | WidgetDatetime | WidgetDatePicker | WidgetSelect | WidgetEmbed | WidgetEmail | WidgetUrl | WidgetRefUser | WidgetRadio | WidgetCheckbox | WidgetOrientedlinks | WidgetTaxonomy | WidgetUri | WidgetTransient | WidgetMultiattribute | WidgetTel | WidgetPlace | WidgetColor | WidgetLink | WidgetFile | WidgetAudience;
362
+ type: "uri";
363
+ }, {
364
+ params: {
365
+ type: string;
366
+ class: string;
367
+ 'jcomplete-url': string;
368
+ };
369
+ type: "uri";
370
+ }>;
371
+ export type WidgetUri = z.infer<typeof widgetUriSchema>;
372
+ export declare const widgetSchema: z.ZodUnion<[z.ZodObject<{
373
+ type: z.ZodLiteral<"text">;
374
+ }, "strip", z.ZodTypeAny, {
375
+ type: "text";
376
+ }, {
377
+ type: "text";
378
+ }>, z.ZodObject<{
379
+ type: z.ZodLiteral<"textarea">;
380
+ params: z.ZodOptional<z.ZodObject<{
381
+ class: z.ZodLiteral<"mceEditor">;
382
+ mention: z.ZodLiteral<"1">;
383
+ }, "strip", z.ZodTypeAny, {
384
+ class: "mceEditor";
385
+ mention: "1";
386
+ }, {
387
+ class: "mceEditor";
388
+ mention: "1";
389
+ }>>;
390
+ }, "strip", z.ZodTypeAny, {
391
+ type: "textarea";
392
+ params?: {
393
+ class: "mceEditor";
394
+ mention: "1";
395
+ } | undefined;
396
+ }, {
397
+ type: "textarea";
398
+ params?: {
399
+ class: "mceEditor";
400
+ mention: "1";
401
+ } | undefined;
402
+ }>, z.ZodObject<{
403
+ type: z.ZodLiteral<"number">;
404
+ }, "strip", z.ZodTypeAny, {
405
+ type: "number";
406
+ }, {
407
+ type: "number";
408
+ }>, z.ZodObject<{
409
+ type: z.ZodLiteral<"date">;
410
+ format: z.ZodString;
411
+ }, "strip", z.ZodTypeAny, {
412
+ type: "date";
413
+ format: string;
414
+ }, {
415
+ type: "date";
416
+ format: string;
417
+ }>, z.ZodObject<{
418
+ type: z.ZodLiteral<"datetime">;
419
+ }, "strip", z.ZodTypeAny, {
420
+ type: "datetime";
421
+ }, {
422
+ type: "datetime";
423
+ }>, z.ZodObject<{
424
+ type: z.ZodLiteral<"datePicker">;
425
+ }, "strip", z.ZodTypeAny, {
426
+ type: "datePicker";
427
+ }, {
428
+ type: "datePicker";
429
+ }>, z.ZodObject<{
430
+ type: z.ZodLiteral<"select">;
431
+ options: z.ZodRecord<z.ZodString, z.ZodString>;
432
+ params: z.ZodOptional<z.ZodObject<{
433
+ data: z.ZodOptional<z.ZodString>;
434
+ defaultValue: z.ZodOptional<z.ZodString>;
435
+ explain: z.ZodOptional<z.ZodLiteral<1>>;
436
+ }, "strip", z.ZodTypeAny, {
437
+ data?: string | undefined;
438
+ defaultValue?: string | undefined;
439
+ explain?: 1 | undefined;
440
+ }, {
441
+ data?: string | undefined;
442
+ defaultValue?: string | undefined;
443
+ explain?: 1 | undefined;
444
+ }>>;
445
+ }, "strip", z.ZodTypeAny, {
446
+ options: Record<string, string>;
447
+ type: "select";
448
+ params?: {
449
+ data?: string | undefined;
450
+ defaultValue?: string | undefined;
451
+ explain?: 1 | undefined;
452
+ } | undefined;
453
+ }, {
454
+ options: Record<string, string>;
455
+ type: "select";
456
+ params?: {
457
+ data?: string | undefined;
458
+ defaultValue?: string | undefined;
459
+ explain?: 1 | undefined;
460
+ } | undefined;
461
+ }>, z.ZodObject<{
462
+ type: z.ZodLiteral<"embed">;
463
+ }, "strip", z.ZodTypeAny, {
464
+ type: "embed";
465
+ }, {
466
+ type: "embed";
467
+ }>, z.ZodObject<{
468
+ type: z.ZodLiteral<"email">;
469
+ }, "strip", z.ZodTypeAny, {
470
+ type: "email";
471
+ }, {
472
+ type: "email";
473
+ }>, z.ZodObject<{
474
+ type: z.ZodLiteral<"url">;
475
+ params: z.ZodObject<{
476
+ target: z.ZodOptional<z.ZodLiteral<"_blank">>;
477
+ }, "strip", z.ZodTypeAny, {
478
+ target?: "_blank" | undefined;
479
+ }, {
480
+ target?: "_blank" | undefined;
481
+ }>;
482
+ }, "strip", z.ZodTypeAny, {
483
+ params: {
484
+ target?: "_blank" | undefined;
485
+ };
486
+ type: "url";
487
+ }, {
488
+ params: {
489
+ target?: "_blank" | undefined;
490
+ };
491
+ type: "url";
492
+ }>, z.ZodObject<{
493
+ type: z.ZodLiteral<"refUser">;
494
+ }, "strip", z.ZodTypeAny, {
495
+ type: "refUser";
496
+ }, {
497
+ type: "refUser";
498
+ }>, z.ZodObject<{
499
+ type: z.ZodLiteral<"radio">;
500
+ options: z.ZodRecord<z.ZodString, z.ZodString>;
501
+ }, "strip", z.ZodTypeAny, {
502
+ options: Record<string, string>;
503
+ type: "radio";
504
+ }, {
505
+ options: Record<string, string>;
506
+ type: "radio";
507
+ }>, z.ZodObject<{
508
+ type: z.ZodLiteral<"checkbox">;
509
+ options: z.ZodRecord<z.ZodString, z.ZodString>;
510
+ }, "strip", z.ZodTypeAny, {
511
+ options: Record<string, string>;
512
+ type: "checkbox";
513
+ }, {
514
+ options: Record<string, string>;
515
+ type: "checkbox";
516
+ }>, z.ZodObject<{
517
+ type: z.ZodLiteral<"orientedlinks">;
518
+ params: z.ZodObject<{
519
+ 'jcomplete-multiple': z.ZodUnion<[z.ZodLiteral<"0">, z.ZodLiteral<"1">]>;
520
+ showAdd: z.ZodUnion<[z.ZodLiteral<"0">, z.ZodLiteral<"1">]>;
521
+ supportedTypes: z.ZodArray<z.ZodString, "many">;
522
+ }, "strip", z.ZodTypeAny, {
523
+ 'jcomplete-multiple': "0" | "1";
524
+ showAdd: "0" | "1";
525
+ supportedTypes: string[];
526
+ }, {
527
+ 'jcomplete-multiple': "0" | "1";
528
+ showAdd: "0" | "1";
529
+ supportedTypes: string[];
530
+ }>;
531
+ }, "strip", z.ZodTypeAny, {
532
+ params: {
533
+ 'jcomplete-multiple': "0" | "1";
534
+ showAdd: "0" | "1";
535
+ supportedTypes: string[];
536
+ };
537
+ type: "orientedlinks";
538
+ }, {
539
+ params: {
540
+ 'jcomplete-multiple': "0" | "1";
541
+ showAdd: "0" | "1";
542
+ supportedTypes: string[];
543
+ };
544
+ type: "orientedlinks";
545
+ }>, z.ZodObject<{
546
+ type: z.ZodLiteral<"taxonomy">;
547
+ params: z.ZodObject<{
548
+ idTaxonomy: z.ZodString;
549
+ type: z.ZodOptional<z.ZodString>;
550
+ limit: z.ZodOptional<z.ZodNumber>;
551
+ }, "strip", z.ZodTypeAny, {
552
+ idTaxonomy: string;
553
+ type?: string | undefined;
554
+ limit?: number | undefined;
555
+ }, {
556
+ idTaxonomy: string;
557
+ type?: string | undefined;
558
+ limit?: number | undefined;
559
+ }>;
560
+ }, "strip", z.ZodTypeAny, {
561
+ params: {
562
+ idTaxonomy: string;
563
+ type?: string | undefined;
564
+ limit?: number | undefined;
565
+ };
566
+ type: "taxonomy";
567
+ }, {
568
+ params: {
569
+ idTaxonomy: string;
570
+ type?: string | undefined;
571
+ limit?: number | undefined;
572
+ };
573
+ type: "taxonomy";
574
+ }>, z.ZodObject<{
575
+ type: z.ZodLiteral<"uri">;
576
+ params: z.ZodObject<{
577
+ class: z.ZodString;
578
+ 'jcomplete-url': z.ZodString;
579
+ type: z.ZodString;
580
+ }, "strip", z.ZodTypeAny, {
581
+ type: string;
582
+ class: string;
583
+ 'jcomplete-url': string;
584
+ }, {
585
+ type: string;
586
+ class: string;
587
+ 'jcomplete-url': string;
588
+ }>;
589
+ }, "strip", z.ZodTypeAny, {
590
+ params: {
591
+ type: string;
592
+ class: string;
593
+ 'jcomplete-url': string;
594
+ };
595
+ type: "uri";
596
+ }, {
597
+ params: {
598
+ type: string;
599
+ class: string;
600
+ 'jcomplete-url': string;
601
+ };
602
+ type: "uri";
603
+ }>, z.ZodObject<{
604
+ type: z.ZodLiteral<"transient">;
605
+ }, "strip", z.ZodTypeAny, {
606
+ type: "transient";
607
+ }, {
608
+ type: "transient";
609
+ }>, z.ZodObject<{
610
+ type: z.ZodLiteral<"multiattribute">;
611
+ }, "strip", z.ZodTypeAny, {
612
+ type: "multiattribute";
613
+ }, {
614
+ type: "multiattribute";
615
+ }>, z.ZodObject<{
616
+ type: z.ZodLiteral<"tel">;
617
+ }, "strip", z.ZodTypeAny, {
618
+ type: "tel";
619
+ }, {
620
+ type: "tel";
621
+ }>, z.ZodObject<{
622
+ type: z.ZodLiteral<"place">;
623
+ options: z.ZodRecord<z.ZodString, z.ZodString>;
624
+ }, "strip", z.ZodTypeAny, {
625
+ options: Record<string, string>;
626
+ type: "place";
627
+ }, {
628
+ options: Record<string, string>;
629
+ type: "place";
630
+ }>, z.ZodObject<{
631
+ type: z.ZodLiteral<"color">;
632
+ options: z.ZodObject<{
633
+ colors: z.ZodString;
634
+ defaultColor: z.ZodString;
635
+ }, "strip", z.ZodTypeAny, {
636
+ colors: string;
637
+ defaultColor: string;
638
+ }, {
639
+ colors: string;
640
+ defaultColor: string;
641
+ }>;
642
+ }, "strip", z.ZodTypeAny, {
643
+ options: {
644
+ colors: string;
645
+ defaultColor: string;
646
+ };
647
+ type: "color";
648
+ }, {
649
+ options: {
650
+ colors: string;
651
+ defaultColor: string;
652
+ };
653
+ type: "color";
654
+ }>, z.ZodObject<{
655
+ type: z.ZodLiteral<"link">;
656
+ }, "strip", z.ZodTypeAny, {
657
+ type: "link";
658
+ }, {
659
+ type: "link";
660
+ }>, z.ZodObject<{
661
+ type: z.ZodLiteral<"file">;
662
+ }, "strip", z.ZodTypeAny, {
663
+ type: "file";
664
+ }, {
665
+ type: "file";
666
+ }>, z.ZodObject<{
667
+ type: z.ZodLiteral<"audience">;
668
+ options: z.ZodOptional<z.ZodObject<{
669
+ disableEveryoneAudience: z.ZodOptional<z.ZodBoolean>;
670
+ }, "strip", z.ZodTypeAny, {
671
+ disableEveryoneAudience?: boolean | undefined;
672
+ }, {
673
+ disableEveryoneAudience?: boolean | undefined;
674
+ }>>;
675
+ }, "strip", z.ZodTypeAny, {
676
+ type: "audience";
677
+ options?: {
678
+ disableEveryoneAudience?: boolean | undefined;
679
+ } | undefined;
680
+ }, {
681
+ type: "audience";
682
+ options?: {
683
+ disableEveryoneAudience?: boolean | undefined;
684
+ } | undefined;
685
+ }>]>;
686
+ export type Widget = z.infer<typeof widgetSchema>;
123
687
  export declare const widgetsValueSchema: z.ZodUnion<[z.ZodNumber, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodString>, z.ZodNullable<z.ZodString>, z.ZodString, z.ZodNumber, z.ZodNullable<z.ZodString>, z.ZodString, z.ZodString]>;
124
688
  export type WidgetsValue = z.infer<typeof widgetsValueSchema>;
125
689
  export type FieldConfiguration<T extends string = string> = {