jamespot-user-api 1.0.165 → 1.0.167

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 (130) hide show
  1. package/documentation/assets/search.js +1 -1
  2. package/documentation/classes/AdminLicenseApi.html +11 -11
  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 +2 -2
  9. package/documentation/classes/JBaseApi.html +1 -1
  10. package/documentation/classes/JBbbApi.html +1 -0
  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/JDiapazoneApi.html +1 -1
  15. package/documentation/classes/JFaqApi.html +1 -1
  16. package/documentation/classes/JFileApi.html +5 -5
  17. package/documentation/classes/JFilebankApi.html +1 -1
  18. package/documentation/classes/JGlobalApi.html +1 -1
  19. package/documentation/classes/JGroupApi.html +14 -14
  20. package/documentation/classes/JIAApi.html +1 -1
  21. package/documentation/classes/JLandApi.html +1 -1
  22. package/documentation/classes/JMessengerApi.html +1 -1
  23. package/documentation/classes/JObjectApi.html +1 -1
  24. package/documentation/classes/JSearchApi.html +6 -6
  25. package/documentation/classes/JShareApi.html +1 -1
  26. package/documentation/classes/JSocialActionApi.html +1 -1
  27. package/documentation/classes/JTaxonomyApi.html +2 -2
  28. package/documentation/classes/JUserApi.html +7 -7
  29. package/documentation/classes/JWedocApi.html +1 -1
  30. package/documentation/classes/JWidgetApi.html +1 -1
  31. package/documentation/classes/JamespotUserApi.html +1 -1
  32. package/documentation/classes/Network.html +1 -1
  33. package/documentation/classes/TVDisplayApi.html +1 -1
  34. package/documentation/classes/WindowBrowser.html +1 -1
  35. package/documentation/enums/Format.html +1 -0
  36. package/documentation/enums/GroupModerateStatus.html +1 -1
  37. package/documentation/enums/StudioApplicationStatus.html +1 -1
  38. package/documentation/enums/WidgetsName.html +1 -0
  39. package/documentation/index.html +1 -1
  40. package/documentation/interfaces/AccessRightObject.html +1 -1
  41. package/documentation/interfaces/AdminLicenseUser.html +1 -1
  42. package/documentation/interfaces/ApiDefaultWrapper.html +1 -1
  43. package/documentation/interfaces/ApiWrapper.html +1 -1
  44. package/documentation/interfaces/BaseMessage.html +1 -1
  45. package/documentation/interfaces/Category.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/ObjectListProps.html +1 -1
  51. package/documentation/interfaces/PagingResults.html +1 -1
  52. package/documentation/interfaces/RootFolderProps.html +1 -1
  53. package/documentation/interfaces/SearchCategoryModel.html +1 -1
  54. package/documentation/interfaces/SearchCategoryValue.html +1 -1
  55. package/documentation/interfaces/SearchConfig.html +1 -1
  56. package/documentation/interfaces/SearchFacetModel.html +1 -1
  57. package/documentation/interfaces/SearchFacetValueModel.html +1 -1
  58. package/documentation/interfaces/SearchQuery.html +1 -1
  59. package/documentation/interfaces/SearchQueryFilterModel.html +1 -1
  60. package/documentation/interfaces/SearchQueryOption.html +1 -1
  61. package/documentation/interfaces/SearchQueryResult.html +1 -1
  62. package/documentation/interfaces/SearchQuerySortModel.html +1 -1
  63. package/documentation/interfaces/SearchResultCatProps.html +1 -1
  64. package/documentation/interfaces/SearchResultPropsApp.html +1 -1
  65. package/documentation/interfaces/SearchResultPropsObject.html +1 -1
  66. package/documentation/interfaces/SpotProps.html +1 -1
  67. package/documentation/interfaces/TaxonomyCreate.html +1 -1
  68. package/documentation/interfaces/WidgetType.html +1 -0
  69. package/documentation/interfaces/WindowInterface.html +1 -1
  70. package/documentation/modules.html +8 -12
  71. package/jest.config.ts +3 -2
  72. package/lib/jamespot-user-api.js +1 -1
  73. package/lib/jamespot-user-api.js.map +1 -1
  74. package/lib/jest.config.d.ts +1 -0
  75. package/lib/jest.config.vm.d.ts +1 -0
  76. package/lib/src/apis/accessibility/accessibility.d.ts +5 -0
  77. package/lib/src/apis/accessibility/accessibility.mock.d.ts +2 -0
  78. package/lib/src/apis/accessibility/accessibility.test.d.ts +1 -0
  79. package/lib/src/apis/article/article.d.ts +10 -7
  80. package/lib/src/apis/assetReservation/assetReservation.d.ts +4 -4
  81. package/lib/src/apis/bbb/bbb.d.ts +7 -0
  82. package/lib/src/apis/bbb/bbb.mock.d.ts +3 -0
  83. package/lib/src/apis/bbb/bbb.test.d.ts +1 -0
  84. package/lib/src/apis/bookmark/bookmark.d.ts +11 -11
  85. package/lib/src/apis/businessNetworking/businessNetworking.d.ts +2 -2
  86. package/lib/src/apis/community.d.ts +2 -2
  87. package/lib/src/apis/faq/faq.d.ts +15 -15
  88. package/lib/src/apis/file/file.d.ts +4 -4
  89. package/lib/src/apis/group/group.d.ts +18 -5
  90. package/lib/src/apis/index.d.ts +1 -0
  91. package/lib/src/apis/jamespotUserApi.d.ts +4 -0
  92. package/lib/src/apis/mediaLibrary/mediaLibrary.d.ts +1 -1
  93. package/lib/src/apis/search/search.d.ts +5 -2
  94. package/lib/src/apis/socialAction/socialAction.d.ts +4 -4
  95. package/lib/src/apis/taxonomy/taxonomy.d.ts +26 -2
  96. package/lib/src/apis/taxonomy/types.d.ts +2 -2
  97. package/lib/src/apis/user/user.d.ts +937 -8
  98. package/lib/src/apis/user/user.mock.d.ts +3 -2
  99. package/lib/src/types/article.d.ts +152945 -48
  100. package/lib/src/types/asei.d.ts +1 -1
  101. package/lib/src/types/assetReservation.d.ts +1 -1
  102. package/lib/src/types/autocomplete.d.ts +261 -9
  103. package/lib/src/types/bbb.d.ts +39 -0
  104. package/lib/src/types/businessContact.d.ts +18 -0
  105. package/lib/src/types/faq.d.ts +4 -5
  106. package/lib/src/types/file.d.ts +2 -2
  107. package/lib/src/types/group.d.ts +34 -5
  108. package/lib/src/types/hook.d.ts +6 -6
  109. package/lib/src/types/index.d.ts +2 -0
  110. package/lib/src/types/mediaLibrary.d.ts +2 -2
  111. package/lib/src/types/meeting.d.ts +1 -1
  112. package/lib/src/types/pollSurvey.d.ts +1 -1
  113. package/lib/src/types/quizz.d.ts +1 -1
  114. package/lib/src/types/search.d.ts +2 -1
  115. package/lib/src/types/socialEvent.d.ts +1 -1
  116. package/lib/src/types/support.d.ts +1 -1
  117. package/lib/src/types/surveyDate.d.ts +1 -1
  118. package/lib/src/types/tvDisplay.d.ts +2 -2
  119. package/lib/src/types/user.d.ts +0 -114
  120. package/lib/src/types/utils.d.ts +330 -55
  121. package/lib/src/types/widgets.d.ts +94410 -227
  122. package/lib/src/util/Test.d.ts +3640 -4
  123. package/lib/src/util/object.d.ts +2 -2
  124. package/package.json +1 -1
  125. package/phpunitMock/accessibilityGetStatus-default.json +7 -0
  126. package/phpunitMock/bigBlueButtonGetPublicWebinarData-success.json +10 -0
  127. package/phpunitMock/bigBlueButtonPublicWebinarFullname-success.json +9 -0
  128. package/phpunitMock/businessContactQueryList-default.json +54 -0
  129. package/phpunitMock/widgetCheckListRespond-article.json +1 -1
  130. package/documentation/interfaces/BaseAutocomplete.html +0 -1
@@ -1019,117 +1019,3 @@ export declare const validateIsFormatUserDirectoryConfiguration: (object: object
1019
1019
  userGeoloc?: boolean | undefined;
1020
1020
  cnt?: number | undefined;
1021
1021
  };
1022
- export declare const userModelSchema: z.ZodLazy<z.ZodObject<{
1023
- type: z.ZodString;
1024
- id: z.ZodNumber;
1025
- mainType: z.ZodString;
1026
- uri: z.ZodString;
1027
- title: z.ZodString;
1028
- _url: z.ZodString;
1029
- dateCreation: z.ZodString;
1030
- dateModified: z.ZodString;
1031
- firstname: z.ZodString;
1032
- lastname: z.ZodString;
1033
- active: z.ZodNumber;
1034
- mail: z.ZodOptional<z.ZodString>;
1035
- }, "strip", z.ZodTypeAny, {
1036
- type: string;
1037
- id: number;
1038
- mainType: string;
1039
- uri: string;
1040
- dateCreation: string;
1041
- dateModified: string;
1042
- title: string;
1043
- _url: string;
1044
- active: number;
1045
- firstname: string;
1046
- lastname: string;
1047
- mail?: string | undefined;
1048
- }, {
1049
- type: string;
1050
- id: number;
1051
- mainType: string;
1052
- uri: string;
1053
- dateCreation: string;
1054
- dateModified: string;
1055
- title: string;
1056
- _url: string;
1057
- active: number;
1058
- firstname: string;
1059
- lastname: string;
1060
- mail?: string | undefined;
1061
- }>>;
1062
- /**
1063
- * @deprecated Use jUserList instead
1064
- */
1065
- export type UserModel = z.infer<typeof userModelSchema>;
1066
- export declare const validateIsFormatUserModel: (object: object) => object is {
1067
- type: string;
1068
- id: number;
1069
- mainType: string;
1070
- uri: string;
1071
- dateCreation: string;
1072
- dateModified: string;
1073
- title: string;
1074
- _url: string;
1075
- active: number;
1076
- firstname: string;
1077
- lastname: string;
1078
- mail?: string | undefined;
1079
- };
1080
- export declare const userSchema: z.ZodLazy<z.ZodObject<{
1081
- type: z.ZodString;
1082
- mainType: z.ZodString;
1083
- uri: z.ZodString;
1084
- dateCreation: z.ZodOptional<z.ZodString>;
1085
- dateModified: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1086
- title: z.ZodString;
1087
- _url: z.ZodString;
1088
- id: z.ZodString;
1089
- shortUri: z.ZodString;
1090
- name: z.ZodString;
1091
- label: z.ZodString;
1092
- cssClass: z.ZodString;
1093
- cssColor: z.ZodString;
1094
- class: z.ZodString;
1095
- Pseudo: z.ZodString;
1096
- _values: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1097
- }, "strip", z.ZodTypeAny, {
1098
- type: string;
1099
- id: string;
1100
- mainType: string;
1101
- uri: string;
1102
- title: string;
1103
- _url: string;
1104
- name: string;
1105
- shortUri: string;
1106
- label: string;
1107
- cssClass: string;
1108
- cssColor: string;
1109
- class: string;
1110
- Pseudo: string;
1111
- _values: Record<string, unknown>;
1112
- dateCreation?: string | undefined;
1113
- dateModified?: string | null | undefined;
1114
- }, {
1115
- type: string;
1116
- id: string;
1117
- mainType: string;
1118
- uri: string;
1119
- title: string;
1120
- _url: string;
1121
- name: string;
1122
- shortUri: string;
1123
- label: string;
1124
- cssClass: string;
1125
- cssColor: string;
1126
- class: string;
1127
- Pseudo: string;
1128
- _values: Record<string, unknown>;
1129
- dateCreation?: string | undefined;
1130
- dateModified?: string | null | undefined;
1131
- }>>;
1132
- /**
1133
- * @deprecated use raw formats instead
1134
- */
1135
- export type User = z.infer<typeof userSchema>;
@@ -1,9 +1,6 @@
1
- import { ImageSize, jFileLittle } from './file';
2
- import { GroupLittle } from './group';
3
1
  import { jUserLittle } from './user';
4
- import { WidgetWrapperProps } from './widgets';
5
2
  import { jObjectBase, jObjectLittle } from './object';
6
- import { Rights } from './common';
3
+ import { z } from 'zod';
7
4
  /**
8
5
  * Ease usage in IDE by decomposing complex types
9
6
  * Decompose combined types into simple object types
@@ -49,7 +46,7 @@ export interface ObjectListProps {
49
46
  limit?: number;
50
47
  page?: number;
51
48
  orders?: Orders;
52
- format?: string;
49
+ format?: FormatList;
53
50
  }
54
51
  export interface PagingResults<T> {
55
52
  cnt: number;
@@ -71,71 +68,349 @@ export type jLinkList<T extends jObjectBase = jObjectLittle | jUserLittle> = jLi
71
68
  _src?: T;
72
69
  _target?: T | undefined;
73
70
  };
74
- export type jHref = {
71
+ export declare const jHrefSchema: z.ZodObject<{
72
+ href: z.ZodString;
73
+ target: z.ZodString;
74
+ }, "strip", z.ZodTypeAny, {
75
75
  href: string;
76
76
  target: string;
77
- };
78
- export type jArticleLittle = jObjectLittle & {
77
+ }, {
78
+ href: string;
79
+ target: string;
80
+ }>;
81
+ export type jHref = z.infer<typeof jHrefSchema>;
82
+ export declare const orderSchema: z.ZodObject<{
83
+ name: z.ZodString;
84
+ sort: z.ZodUnion<[z.ZodLiteral<"ASC">, z.ZodLiteral<"DESC">]>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ sort: "ASC" | "DESC";
87
+ name: string;
88
+ }, {
89
+ sort: "ASC" | "DESC";
90
+ name: string;
91
+ }>;
92
+ export type Order = z.infer<typeof orderSchema>;
93
+ export declare const audienceSchema: z.ZodUnion<[z.ZodLazy<z.ZodObject<{
94
+ type: z.ZodString;
95
+ id: z.ZodNumber;
96
+ mainType: z.ZodString;
97
+ uri: z.ZodString;
98
+ title: z.ZodString;
99
+ _url: z.ZodString;
100
+ level: z.ZodNativeEnum<{
101
+ readonly ADMIN: 9;
102
+ readonly USER: 5;
103
+ readonly EXTERNAL: 3;
104
+ readonly GUEST: 0;
105
+ }>;
106
+ dateCreation: z.ZodString;
107
+ dateModified: z.ZodString;
108
+ }, "strip", 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]>, z.objectOutputType<{
109
+ type: z.ZodString;
110
+ id: z.ZodNumber;
111
+ mainType: z.ZodString;
112
+ uri: z.ZodString;
113
+ title: z.ZodString;
114
+ _url: z.ZodString;
115
+ level: z.ZodNativeEnum<{
116
+ readonly ADMIN: 9;
117
+ readonly USER: 5;
118
+ readonly EXTERNAL: 3;
119
+ readonly GUEST: 0;
120
+ }>;
121
+ dateCreation: z.ZodString;
122
+ dateModified: z.ZodString;
123
+ }, 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]>, "strip">, z.objectInputType<{
124
+ type: z.ZodString;
125
+ id: z.ZodNumber;
126
+ mainType: z.ZodString;
127
+ uri: z.ZodString;
128
+ title: z.ZodString;
129
+ _url: z.ZodString;
130
+ level: z.ZodNativeEnum<{
131
+ readonly ADMIN: 9;
132
+ readonly USER: 5;
133
+ readonly EXTERNAL: 3;
134
+ readonly GUEST: 0;
135
+ }>;
136
+ dateCreation: z.ZodString;
137
+ dateModified: z.ZodString;
138
+ }, 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]>, "strip">>>, z.ZodObject<{
139
+ type: z.ZodString;
140
+ id: z.ZodNumber;
141
+ mainType: z.ZodString;
142
+ uri: z.ZodString;
143
+ title: z.ZodString;
144
+ _url: z.ZodString;
145
+ dateCreation: z.ZodString;
146
+ dateModified: z.ZodString;
147
+ category: z.ZodNumber;
148
+ privacy: z.ZodNumber;
149
+ }, "strip", z.ZodTypeAny, {
150
+ type: string;
151
+ id: number;
152
+ mainType: string;
153
+ uri: string;
79
154
  dateCreation: string;
80
155
  dateModified: string;
81
- };
82
- export type jArticleList = jArticleLittle & {
83
- description?: string | null;
84
- _user: jUserLittle;
85
- _right: Rights;
86
- _audience: Audience[];
87
- image?: ImageSize;
88
- articleWidgets?: WidgetWrapperProps[];
89
- };
90
- export type jArticleView = jArticleList & {
91
- _attachedFiles: jFileLittle[];
92
- };
93
- export type jArticleExtendView = {
94
- processContext?: null;
95
- uiObjectLink?: jObjectLittle[];
96
- };
97
- export type jInternalDraftView<T> = jArticleView & {
98
- idDraft: number;
99
- form: T;
100
- };
101
- export type Order = {
156
+ title: string;
157
+ _url: string;
158
+ category: number;
159
+ privacy: number;
160
+ }, {
161
+ type: string;
162
+ id: number;
163
+ mainType: string;
164
+ uri: string;
165
+ dateCreation: string;
166
+ dateModified: string;
167
+ title: string;
168
+ _url: string;
169
+ category: number;
170
+ privacy: number;
171
+ }>]>;
172
+ export type Audience = z.infer<typeof audienceSchema>;
173
+ export declare const ordersSchema: z.ZodArray<z.ZodObject<{
174
+ name: z.ZodString;
175
+ sort: z.ZodUnion<[z.ZodLiteral<"ASC">, z.ZodLiteral<"DESC">]>;
176
+ }, "strip", z.ZodTypeAny, {
177
+ sort: "ASC" | "DESC";
102
178
  name: string;
103
- sort: 'ASC' | 'DESC';
104
- };
105
- export type Audience = jUserLittle | GroupLittle;
106
- export type Orders = Array<Order>;
107
- export type FilterValue = boolean | string | number | string[] | {
108
- srcId: number | string;
179
+ }, {
180
+ sort: "ASC" | "DESC";
181
+ name: string;
182
+ }>, "many">;
183
+ export type Orders = z.infer<typeof ordersSchema>;
184
+ export declare const filterValueSchema: z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">, z.ZodObject<{
185
+ srcId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
186
+ srcType: z.ZodString;
187
+ }, "strip", z.ZodTypeAny, {
188
+ srcId: string | number;
189
+ srcType: string;
190
+ }, {
191
+ srcId: string | number;
109
192
  srcType: string;
110
- } | {
111
- targetId: number | string;
193
+ }>, z.ZodObject<{
194
+ targetId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
195
+ targetType: z.ZodString;
196
+ }, "strip", z.ZodTypeAny, {
197
+ targetId: string | number;
112
198
  targetType: string;
113
- } | {
199
+ }, {
200
+ targetId: string | number;
201
+ targetType: string;
202
+ }>, z.ZodObject<{
203
+ start: z.ZodString;
204
+ end: z.ZodString;
205
+ }, "strip", z.ZodTypeAny, {
114
206
  start: string;
115
207
  end: string;
116
- };
117
- export type Filter = {
208
+ }, {
209
+ start: string;
210
+ end: string;
211
+ }>]>;
212
+ export type FilterValue = z.infer<typeof filterValueSchema>;
213
+ export declare const filterSchema: z.ZodObject<{
214
+ name: z.ZodString;
215
+ value: z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">, z.ZodObject<{
216
+ srcId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
217
+ srcType: z.ZodString;
218
+ }, "strip", z.ZodTypeAny, {
219
+ srcId: string | number;
220
+ srcType: string;
221
+ }, {
222
+ srcId: string | number;
223
+ srcType: string;
224
+ }>, z.ZodObject<{
225
+ targetId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
226
+ targetType: z.ZodString;
227
+ }, "strip", z.ZodTypeAny, {
228
+ targetId: string | number;
229
+ targetType: string;
230
+ }, {
231
+ targetId: string | number;
232
+ targetType: string;
233
+ }>, z.ZodObject<{
234
+ start: z.ZodString;
235
+ end: z.ZodString;
236
+ }, "strip", z.ZodTypeAny, {
237
+ start: string;
238
+ end: string;
239
+ }, {
240
+ start: string;
241
+ end: string;
242
+ }>]>;
243
+ operator: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"<">, z.ZodLiteral<">">, z.ZodLiteral<"<=">, z.ZodLiteral<">=">, z.ZodLiteral<"!=">, z.ZodLiteral<"<>">, z.ZodLiteral<"like">, z.ZodLiteral<"between">, z.ZodLiteral<"is">, z.ZodLiteral<"is not">, z.ZodLiteral<"in">, z.ZodLiteral<"link">, z.ZodLiteral<"match">, z.ZodLiteral<"equal">]>>;
244
+ method: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"<">, z.ZodLiteral<">">, z.ZodLiteral<"<=">, z.ZodLiteral<">=">, z.ZodLiteral<"!=">, z.ZodLiteral<"<>">, z.ZodLiteral<"+">, z.ZodLiteral<"-">, z.ZodLiteral<"like">, z.ZodLiteral<"between">, z.ZodLiteral<"is">, z.ZodLiteral<"is not">, z.ZodLiteral<"in">, z.ZodLiteral<"link">, z.ZodLiteral<"match">, z.ZodLiteral<"equal">]>>;
245
+ or: z.ZodOptional<z.ZodBoolean>;
246
+ isNull: z.ZodOptional<z.ZodBoolean>;
247
+ isNotNull: z.ZodOptional<z.ZodBoolean>;
248
+ }, "strip", z.ZodTypeAny, {
249
+ value: (string | number | boolean | string[] | {
250
+ srcId: string | number;
251
+ srcType: string;
252
+ } | {
253
+ targetId: string | number;
254
+ targetType: string;
255
+ } | {
256
+ start: string;
257
+ end: string;
258
+ }) & (string | number | boolean | string[] | {
259
+ srcId: string | number;
260
+ srcType: string;
261
+ } | {
262
+ targetId: string | number;
263
+ targetType: string;
264
+ } | {
265
+ start: string;
266
+ end: string;
267
+ } | undefined);
118
268
  name: string;
119
- value: FilterValue;
120
- operator?: '<' | '>' | '<=' | '>=' | '!=' | '<>' | 'like' | 'between' | 'is' | 'is not' | 'in' | 'link' | 'match' | 'equal';
121
- method?: '<' | '>' | '<=' | '>=' | '!=' | '<>' | '+' | '-' | 'like' | 'between' | 'is' | 'is not' | 'in' | 'link' | 'match' | 'equal';
122
- or?: boolean;
123
- isNull?: boolean;
124
- isNotNull?: boolean;
125
- };
126
- export type Filters = Array<Filter>;
269
+ operator?: "link" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is" | "is not" | "in" | "match" | "equal" | undefined;
270
+ method?: "link" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is" | "is not" | "in" | "match" | "equal" | "+" | "-" | undefined;
271
+ or?: boolean | undefined;
272
+ isNull?: boolean | undefined;
273
+ isNotNull?: boolean | undefined;
274
+ }, {
275
+ value: (string | number | boolean | string[] | {
276
+ srcId: string | number;
277
+ srcType: string;
278
+ } | {
279
+ targetId: string | number;
280
+ targetType: string;
281
+ } | {
282
+ start: string;
283
+ end: string;
284
+ }) & (string | number | boolean | string[] | {
285
+ srcId: string | number;
286
+ srcType: string;
287
+ } | {
288
+ targetId: string | number;
289
+ targetType: string;
290
+ } | {
291
+ start: string;
292
+ end: string;
293
+ } | undefined);
294
+ name: string;
295
+ operator?: "link" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is" | "is not" | "in" | "match" | "equal" | undefined;
296
+ method?: "link" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is" | "is not" | "in" | "match" | "equal" | "+" | "-" | undefined;
297
+ or?: boolean | undefined;
298
+ isNull?: boolean | undefined;
299
+ isNotNull?: boolean | undefined;
300
+ }>;
301
+ export type Filter = z.infer<typeof filterSchema>;
302
+ export declare const filtersSchema: z.ZodArray<z.ZodObject<{
303
+ name: z.ZodString;
304
+ value: z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">, z.ZodObject<{
305
+ srcId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
306
+ srcType: z.ZodString;
307
+ }, "strip", z.ZodTypeAny, {
308
+ srcId: string | number;
309
+ srcType: string;
310
+ }, {
311
+ srcId: string | number;
312
+ srcType: string;
313
+ }>, z.ZodObject<{
314
+ targetId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
315
+ targetType: z.ZodString;
316
+ }, "strip", z.ZodTypeAny, {
317
+ targetId: string | number;
318
+ targetType: string;
319
+ }, {
320
+ targetId: string | number;
321
+ targetType: string;
322
+ }>, z.ZodObject<{
323
+ start: z.ZodString;
324
+ end: z.ZodString;
325
+ }, "strip", z.ZodTypeAny, {
326
+ start: string;
327
+ end: string;
328
+ }, {
329
+ start: string;
330
+ end: string;
331
+ }>]>;
332
+ operator: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"<">, z.ZodLiteral<">">, z.ZodLiteral<"<=">, z.ZodLiteral<">=">, z.ZodLiteral<"!=">, z.ZodLiteral<"<>">, z.ZodLiteral<"like">, z.ZodLiteral<"between">, z.ZodLiteral<"is">, z.ZodLiteral<"is not">, z.ZodLiteral<"in">, z.ZodLiteral<"link">, z.ZodLiteral<"match">, z.ZodLiteral<"equal">]>>;
333
+ method: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"<">, z.ZodLiteral<">">, z.ZodLiteral<"<=">, z.ZodLiteral<">=">, z.ZodLiteral<"!=">, z.ZodLiteral<"<>">, z.ZodLiteral<"+">, z.ZodLiteral<"-">, z.ZodLiteral<"like">, z.ZodLiteral<"between">, z.ZodLiteral<"is">, z.ZodLiteral<"is not">, z.ZodLiteral<"in">, z.ZodLiteral<"link">, z.ZodLiteral<"match">, z.ZodLiteral<"equal">]>>;
334
+ or: z.ZodOptional<z.ZodBoolean>;
335
+ isNull: z.ZodOptional<z.ZodBoolean>;
336
+ isNotNull: z.ZodOptional<z.ZodBoolean>;
337
+ }, "strip", z.ZodTypeAny, {
338
+ value: (string | number | boolean | string[] | {
339
+ srcId: string | number;
340
+ srcType: string;
341
+ } | {
342
+ targetId: string | number;
343
+ targetType: string;
344
+ } | {
345
+ start: string;
346
+ end: string;
347
+ }) & (string | number | boolean | string[] | {
348
+ srcId: string | number;
349
+ srcType: string;
350
+ } | {
351
+ targetId: string | number;
352
+ targetType: string;
353
+ } | {
354
+ start: string;
355
+ end: string;
356
+ } | undefined);
357
+ name: string;
358
+ operator?: "link" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is" | "is not" | "in" | "match" | "equal" | undefined;
359
+ method?: "link" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is" | "is not" | "in" | "match" | "equal" | "+" | "-" | undefined;
360
+ or?: boolean | undefined;
361
+ isNull?: boolean | undefined;
362
+ isNotNull?: boolean | undefined;
363
+ }, {
364
+ value: (string | number | boolean | string[] | {
365
+ srcId: string | number;
366
+ srcType: string;
367
+ } | {
368
+ targetId: string | number;
369
+ targetType: string;
370
+ } | {
371
+ start: string;
372
+ end: string;
373
+ }) & (string | number | boolean | string[] | {
374
+ srcId: string | number;
375
+ srcType: string;
376
+ } | {
377
+ targetId: string | number;
378
+ targetType: string;
379
+ } | {
380
+ start: string;
381
+ end: string;
382
+ } | undefined);
383
+ name: string;
384
+ operator?: "link" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is" | "is not" | "in" | "match" | "equal" | undefined;
385
+ method?: "link" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is" | "is not" | "in" | "match" | "equal" | "+" | "-" | undefined;
386
+ or?: boolean | undefined;
387
+ isNull?: boolean | undefined;
388
+ isNotNull?: boolean | undefined;
389
+ }>, "many">;
390
+ export type Filters = z.infer<typeof filtersSchema>;
127
391
  export type MaybeWithToken<T> = T & {
128
392
  token?: string | undefined;
129
393
  };
130
394
  export type MaybeWithParent<T extends jObjectBase = jObjectBase> = {
131
395
  _parent?: T;
132
396
  };
133
- /**
134
- * @deprecated
135
- */
136
- type Format_DEPRECATED = 'user-api' | 'mobile';
137
- export type Format = 'raw-little' | 'raw-list' | 'raw-view' | Format_DEPRECATED | undefined;
138
- export type FormatExtension = Array<'bookmark' | 'licenses' | 'socialEventRecord' | 'quizFieldDefinitions' | 'quizResponseRecord' | 'surveyDateRecord'>;
139
- export type ApiReturn<T extends Format, Little, List = Little, View = List, Default = {}> = T extends 'raw-little' ? Little : T extends 'raw-list' ? List : T extends 'raw-view' ? View : Default;
397
+ export declare enum Format {
398
+ LITTLE = "raw-little",
399
+ LIST = "raw-list",
400
+ VIEW = "raw-view",
401
+ /**
402
+ * @deprecated
403
+ */
404
+ USER_API = "user-api",
405
+ /**
406
+ * @deprecated
407
+ */
408
+ MOBILE = "mobile"
409
+ }
410
+ export declare const formatListSchema: z.ZodUnion<[z.ZodEffects<z.ZodNativeEnum<typeof Format>, "raw-little" | "raw-list" | "raw-view" | "user-api" | "mobile", Format>, z.ZodUndefined]>;
411
+ export type FormatList = z.infer<typeof formatListSchema>;
412
+ export declare const formatExtensionSchema: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"bookmark">, z.ZodLiteral<"contact">, z.ZodLiteral<"licenses">, z.ZodLiteral<"quizFieldDefinitions">, z.ZodLiteral<"quizResponseRecord">, z.ZodLiteral<"search">, z.ZodLiteral<"socialEventRecord">, z.ZodLiteral<"surveyDateRecord">]>, "many">;
413
+ export type FormatExtension = z.infer<typeof formatExtensionSchema>;
414
+ export type ApiReturn<T extends FormatList, Little, List = Little, View = List, Default = {}> = T extends 'raw-little' ? Little : T extends 'raw-list' ? List : T extends 'raw-view' ? View : Default;
140
415
  export type ValueOf<T> = T[keyof T];
141
416
  export {};