jamespot-user-api 1.0.167 → 1.0.169
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 +32 -12
- 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 -0
- 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/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/AdminLicenseUser.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/Category.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/ObjectListProps.html +1 -1
- package/documentation/interfaces/PagingResults.html +1 -1
- package/documentation/interfaces/RootFolderProps.html +1 -1
- package/documentation/interfaces/SearchCategoryModel.html +1 -1
- package/documentation/interfaces/SearchCategoryValue.html +1 -1
- package/documentation/interfaces/SearchConfig.html +1 -1
- package/documentation/interfaces/SearchFacetModel.html +1 -1
- package/documentation/interfaces/SearchFacetValueModel.html +1 -1
- package/documentation/interfaces/SearchQuery.html +1 -1
- package/documentation/interfaces/SearchQueryFilterModel.html +1 -1
- package/documentation/interfaces/SearchQueryOption.html +1 -1
- package/documentation/interfaces/SearchQueryResult.html +1 -1
- package/documentation/interfaces/SearchQuerySortModel.html +1 -1
- package/documentation/interfaces/SearchResultCatProps.html +1 -1
- package/documentation/interfaces/SearchResultPropsApp.html +1 -1
- package/documentation/interfaces/SearchResultPropsObject.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 +14 -8
- package/lib/jamespot-user-api.js +1 -1
- package/lib/jamespot-user-api.js.map +1 -1
- package/lib/src/apis/admin/license.d.ts +39 -4
- package/lib/src/apis/admin/licenses.mock.d.ts +6 -1
- package/lib/src/apis/admin/utils.d.ts +1 -1
- package/lib/src/apis/datasource/datasource.d.ts +44 -0
- package/lib/src/apis/datasource/datasource.mock.d.ts +15 -0
- package/lib/src/apis/datasource/datasource.test.d.ts +1 -0
- package/lib/src/apis/index.d.ts +1 -0
- package/lib/src/apis/jamespotUserApi.d.ts +4 -0
- package/lib/src/apis/magicPad/magicPad.d.ts +6 -0
- package/lib/src/apis/magicPad/magicPad.mock.d.ts +3 -0
- package/lib/src/apis/magicPad/magicPad.test.d.ts +1 -0
- package/lib/src/apis/user/user.d.ts +137 -60
- package/lib/src/types/adminLicence.d.ts +13 -3
- package/lib/src/types/adminUtils.d.ts +2 -0
- package/lib/src/types/article.d.ts +27846 -12466
- package/lib/src/types/hook.d.ts +91 -2
- package/lib/src/types/index.d.ts +1 -0
- package/lib/src/types/license.d.ts +223 -0
- package/lib/src/types/magicPad.d.ts +9 -0
- package/lib/src/types/search.d.ts +1 -3
- package/lib/src/types/utils.d.ts +11 -11
- package/lib/src/types/widgets.d.ts +15932 -4979
- package/lib/src/util/Test.d.ts +548 -240
- package/lib/src/util/taxonomy.d.ts +2 -2
- package/package.json +1 -1
- package/phpunitMock/accessibilityGetStatus-default.json +1 -1
- package/phpunitMock/licenseManagerAssignLicenseKind-default.json +7 -0
- package/phpunitMock/licenseManagerGetUsers-default.json +205 -0
- package/phpunitMock/licenseManagerGetUsersWithLicense-default.json +24 -0
- package/phpunitMock/licenseManagerStatistics-default.json +10 -0
- package/phpunitMock/licenseManagerUnassignLicenseKind-default.json +7 -0
- package/phpunitMock/licenseManagerUnassignUnusedLicenses-default.json +7 -0
- package/phpunitMock/magicPadGetThumbnailUrl-success.json +9 -0
- package/phpunitMock/widgetDatasourceCreate-doc.json +42 -0
- package/phpunitMock/widgetDatasourceCreate-studio.json +42 -0
- package/phpunitMock/widgetDatasourceGet-get-doc.json +17 -0
- package/phpunitMock/widgetDatasourceGet-get-studio.json +16 -0
- package/phpunitMock/widgetDatasourceGetModel-getModel-doc.json +14 -0
- package/phpunitMock/widgetDatasourceGetModel-getModel-studio.json +13 -0
- package/phpunitMock/widgetDatasourceGetObject-default.json +16 -0
- /package/lib/src/apis/admin/{licences.test.d.ts → licenses.test.d.ts} +0 -0
package/lib/src/types/hook.d.ts
CHANGED
|
@@ -7,6 +7,14 @@ declare const buildHookSchema: <T extends z.ZodTypeAny>(hookType: T) => z.ZodInt
|
|
|
7
7
|
isActive: boolean;
|
|
8
8
|
}>, T>;
|
|
9
9
|
export type HookType<T extends object = {}> = z.infer<ReturnType<typeof buildHookSchema<ZodType<T>>>>;
|
|
10
|
+
declare const buildLicenceHookSchema: <T extends z.ZodTypeAny>(hookType: T) => z.ZodIntersection<z.ZodObject<{
|
|
11
|
+
isActive: z.ZodBoolean;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
isActive: boolean;
|
|
14
|
+
}, {
|
|
15
|
+
isActive: boolean;
|
|
16
|
+
}>, z.ZodTypeAny>;
|
|
17
|
+
export type LicenceHookType<T extends object = {}> = z.infer<ReturnType<typeof buildLicenceHookSchema<ZodType<T>>>>;
|
|
10
18
|
/**
|
|
11
19
|
* Hook types
|
|
12
20
|
*/
|
|
@@ -96,10 +104,60 @@ declare const widgetHookSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
96
104
|
autorize: ("comment" | "message" | "board" | "article" | undefined)[];
|
|
97
105
|
}>>;
|
|
98
106
|
export type WidgetHook = z.infer<typeof widgetHookSchema>;
|
|
107
|
+
declare const magicPadHookSchema: z.ZodIntersection<z.ZodObject<{
|
|
108
|
+
isActive: z.ZodBoolean;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
isActive: boolean;
|
|
111
|
+
}, {
|
|
112
|
+
isActive: boolean;
|
|
113
|
+
}>, z.ZodObject<{
|
|
114
|
+
label: z.ZodString;
|
|
115
|
+
hasLicense: z.ZodBoolean;
|
|
116
|
+
}, "strip", z.ZodTypeAny, {
|
|
117
|
+
label: string;
|
|
118
|
+
hasLicense: boolean;
|
|
119
|
+
}, {
|
|
120
|
+
label: string;
|
|
121
|
+
hasLicense: boolean;
|
|
122
|
+
}>>;
|
|
123
|
+
export type MagicPadHook = z.infer<typeof magicPadHookSchema>;
|
|
99
124
|
/**
|
|
100
125
|
* HookListType
|
|
101
126
|
*/
|
|
102
|
-
declare const
|
|
127
|
+
declare const licenseHookListTypeSchema: z.ZodObject<{
|
|
128
|
+
MagicPadHook: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
|
|
129
|
+
isActive: z.ZodBoolean;
|
|
130
|
+
}, "strip", z.ZodTypeAny, {
|
|
131
|
+
isActive: boolean;
|
|
132
|
+
}, {
|
|
133
|
+
isActive: boolean;
|
|
134
|
+
}>, z.ZodObject<{
|
|
135
|
+
label: z.ZodString;
|
|
136
|
+
hasLicense: z.ZodBoolean;
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
label: string;
|
|
139
|
+
hasLicense: boolean;
|
|
140
|
+
}, {
|
|
141
|
+
label: string;
|
|
142
|
+
hasLicense: boolean;
|
|
143
|
+
}>>>;
|
|
144
|
+
}, "strip", z.ZodTypeAny, {
|
|
145
|
+
MagicPadHook?: ({
|
|
146
|
+
isActive: boolean;
|
|
147
|
+
} & {
|
|
148
|
+
label: string;
|
|
149
|
+
hasLicense: boolean;
|
|
150
|
+
}) | undefined;
|
|
151
|
+
}, {
|
|
152
|
+
MagicPadHook?: ({
|
|
153
|
+
isActive: boolean;
|
|
154
|
+
} & {
|
|
155
|
+
label: string;
|
|
156
|
+
hasLicense: boolean;
|
|
157
|
+
}) | undefined;
|
|
158
|
+
}>;
|
|
159
|
+
export type LicenseHookListType = z.infer<typeof licenseHookListTypeSchema>;
|
|
160
|
+
declare const hookListTypeSchema: z.ZodIntersection<z.ZodObject<{
|
|
103
161
|
DriveHook: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
|
|
104
162
|
isActive: z.ZodBoolean;
|
|
105
163
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -240,7 +298,38 @@ declare const hookListTypeSchema: z.ZodObject<{
|
|
|
240
298
|
} & {
|
|
241
299
|
sendAlert: boolean;
|
|
242
300
|
}) | undefined;
|
|
243
|
-
}
|
|
301
|
+
}>, z.ZodObject<{
|
|
302
|
+
MagicPadHook: z.ZodOptional<z.ZodIntersection<z.ZodObject<{
|
|
303
|
+
isActive: z.ZodBoolean;
|
|
304
|
+
}, "strip", z.ZodTypeAny, {
|
|
305
|
+
isActive: boolean;
|
|
306
|
+
}, {
|
|
307
|
+
isActive: boolean;
|
|
308
|
+
}>, z.ZodObject<{
|
|
309
|
+
label: z.ZodString;
|
|
310
|
+
hasLicense: z.ZodBoolean;
|
|
311
|
+
}, "strip", z.ZodTypeAny, {
|
|
312
|
+
label: string;
|
|
313
|
+
hasLicense: boolean;
|
|
314
|
+
}, {
|
|
315
|
+
label: string;
|
|
316
|
+
hasLicense: boolean;
|
|
317
|
+
}>>>;
|
|
318
|
+
}, "strip", z.ZodTypeAny, {
|
|
319
|
+
MagicPadHook?: ({
|
|
320
|
+
isActive: boolean;
|
|
321
|
+
} & {
|
|
322
|
+
label: string;
|
|
323
|
+
hasLicense: boolean;
|
|
324
|
+
}) | undefined;
|
|
325
|
+
}, {
|
|
326
|
+
MagicPadHook?: ({
|
|
327
|
+
isActive: boolean;
|
|
328
|
+
} & {
|
|
329
|
+
label: string;
|
|
330
|
+
hasLicense: boolean;
|
|
331
|
+
}) | undefined;
|
|
332
|
+
}>>;
|
|
244
333
|
export type HookListType = z.infer<typeof hookListTypeSchema>;
|
|
245
334
|
export declare const validateIsFormatHookListType: (object: object) => HookListType;
|
|
246
335
|
export {};
|
package/lib/src/types/index.d.ts
CHANGED
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { z, ZodType } from 'zod';
|
|
2
|
+
import { jUserLittle } from './user';
|
|
3
|
+
export declare const getLicenseKindUsersParamsSchema: z.ZodObject<{
|
|
4
|
+
kind: z.ZodString;
|
|
5
|
+
page: z.ZodNumber;
|
|
6
|
+
limit: z.ZodNumber;
|
|
7
|
+
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
value: z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
10
|
+
srcId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
11
|
+
srcType: z.ZodString;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
srcId: string | number;
|
|
14
|
+
srcType: string;
|
|
15
|
+
}, {
|
|
16
|
+
srcId: string | number;
|
|
17
|
+
srcType: string;
|
|
18
|
+
}>, z.ZodObject<{
|
|
19
|
+
targetId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
20
|
+
targetType: z.ZodString;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
targetId: string | number;
|
|
23
|
+
targetType: string;
|
|
24
|
+
}, {
|
|
25
|
+
targetId: string | number;
|
|
26
|
+
targetType: string;
|
|
27
|
+
}>, z.ZodObject<{
|
|
28
|
+
start: z.ZodString;
|
|
29
|
+
end: z.ZodString;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
start: string;
|
|
32
|
+
end: string;
|
|
33
|
+
}, {
|
|
34
|
+
start: string;
|
|
35
|
+
end: string;
|
|
36
|
+
}>]>;
|
|
37
|
+
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">]>>;
|
|
38
|
+
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">]>>;
|
|
39
|
+
or: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
+
isNull: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
isNotNull: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
value: (string | number | boolean | string[] | {
|
|
44
|
+
srcId: string | number;
|
|
45
|
+
srcType: string;
|
|
46
|
+
} | {
|
|
47
|
+
targetId: string | number;
|
|
48
|
+
targetType: string;
|
|
49
|
+
} | {
|
|
50
|
+
start: string;
|
|
51
|
+
end: string;
|
|
52
|
+
}) & (string | number | boolean | string[] | {
|
|
53
|
+
srcId: string | number;
|
|
54
|
+
srcType: string;
|
|
55
|
+
} | {
|
|
56
|
+
targetId: string | number;
|
|
57
|
+
targetType: string;
|
|
58
|
+
} | {
|
|
59
|
+
start: string;
|
|
60
|
+
end: string;
|
|
61
|
+
} | undefined);
|
|
62
|
+
name: string;
|
|
63
|
+
operator?: "link" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is" | "is not" | "in" | "match" | "equal" | undefined;
|
|
64
|
+
method?: "link" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is" | "is not" | "in" | "match" | "equal" | "+" | "-" | undefined;
|
|
65
|
+
or?: boolean | undefined;
|
|
66
|
+
isNull?: boolean | undefined;
|
|
67
|
+
isNotNull?: boolean | undefined;
|
|
68
|
+
}, {
|
|
69
|
+
value: (string | number | boolean | string[] | {
|
|
70
|
+
srcId: string | number;
|
|
71
|
+
srcType: string;
|
|
72
|
+
} | {
|
|
73
|
+
targetId: string | number;
|
|
74
|
+
targetType: string;
|
|
75
|
+
} | {
|
|
76
|
+
start: string;
|
|
77
|
+
end: string;
|
|
78
|
+
}) & (string | number | boolean | string[] | {
|
|
79
|
+
srcId: string | number;
|
|
80
|
+
srcType: string;
|
|
81
|
+
} | {
|
|
82
|
+
targetId: string | number;
|
|
83
|
+
targetType: string;
|
|
84
|
+
} | {
|
|
85
|
+
start: string;
|
|
86
|
+
end: string;
|
|
87
|
+
} | undefined);
|
|
88
|
+
name: string;
|
|
89
|
+
operator?: "link" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is" | "is not" | "in" | "match" | "equal" | undefined;
|
|
90
|
+
method?: "link" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is" | "is not" | "in" | "match" | "equal" | "+" | "-" | undefined;
|
|
91
|
+
or?: boolean | undefined;
|
|
92
|
+
isNull?: boolean | undefined;
|
|
93
|
+
isNotNull?: boolean | undefined;
|
|
94
|
+
}>, "many">>;
|
|
95
|
+
orders: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
96
|
+
name: z.ZodString;
|
|
97
|
+
sort: z.ZodUnion<[z.ZodLiteral<"ASC">, z.ZodLiteral<"DESC">]>;
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
99
|
+
sort: "ASC" | "DESC";
|
|
100
|
+
name: string;
|
|
101
|
+
}, {
|
|
102
|
+
sort: "ASC" | "DESC";
|
|
103
|
+
name: string;
|
|
104
|
+
}>, "many">>;
|
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
|
106
|
+
limit: number;
|
|
107
|
+
page: number;
|
|
108
|
+
kind: string;
|
|
109
|
+
filters?: {
|
|
110
|
+
value: (string | number | boolean | string[] | {
|
|
111
|
+
srcId: string | number;
|
|
112
|
+
srcType: string;
|
|
113
|
+
} | {
|
|
114
|
+
targetId: string | number;
|
|
115
|
+
targetType: string;
|
|
116
|
+
} | {
|
|
117
|
+
start: string;
|
|
118
|
+
end: string;
|
|
119
|
+
}) & (string | number | boolean | string[] | {
|
|
120
|
+
srcId: string | number;
|
|
121
|
+
srcType: string;
|
|
122
|
+
} | {
|
|
123
|
+
targetId: string | number;
|
|
124
|
+
targetType: string;
|
|
125
|
+
} | {
|
|
126
|
+
start: string;
|
|
127
|
+
end: string;
|
|
128
|
+
} | undefined);
|
|
129
|
+
name: string;
|
|
130
|
+
operator?: "link" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is" | "is not" | "in" | "match" | "equal" | undefined;
|
|
131
|
+
method?: "link" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is" | "is not" | "in" | "match" | "equal" | "+" | "-" | undefined;
|
|
132
|
+
or?: boolean | undefined;
|
|
133
|
+
isNull?: boolean | undefined;
|
|
134
|
+
isNotNull?: boolean | undefined;
|
|
135
|
+
}[] | undefined;
|
|
136
|
+
orders?: {
|
|
137
|
+
sort: "ASC" | "DESC";
|
|
138
|
+
name: string;
|
|
139
|
+
}[] | undefined;
|
|
140
|
+
}, {
|
|
141
|
+
limit: number;
|
|
142
|
+
page: number;
|
|
143
|
+
kind: string;
|
|
144
|
+
filters?: {
|
|
145
|
+
value: (string | number | boolean | string[] | {
|
|
146
|
+
srcId: string | number;
|
|
147
|
+
srcType: string;
|
|
148
|
+
} | {
|
|
149
|
+
targetId: string | number;
|
|
150
|
+
targetType: string;
|
|
151
|
+
} | {
|
|
152
|
+
start: string;
|
|
153
|
+
end: string;
|
|
154
|
+
}) & (string | number | boolean | string[] | {
|
|
155
|
+
srcId: string | number;
|
|
156
|
+
srcType: string;
|
|
157
|
+
} | {
|
|
158
|
+
targetId: string | number;
|
|
159
|
+
targetType: string;
|
|
160
|
+
} | {
|
|
161
|
+
start: string;
|
|
162
|
+
end: string;
|
|
163
|
+
} | undefined);
|
|
164
|
+
name: string;
|
|
165
|
+
operator?: "link" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is" | "is not" | "in" | "match" | "equal" | undefined;
|
|
166
|
+
method?: "link" | "<" | ">" | "<=" | ">=" | "!=" | "<>" | "like" | "between" | "is" | "is not" | "in" | "match" | "equal" | "+" | "-" | undefined;
|
|
167
|
+
or?: boolean | undefined;
|
|
168
|
+
isNull?: boolean | undefined;
|
|
169
|
+
isNotNull?: boolean | undefined;
|
|
170
|
+
}[] | undefined;
|
|
171
|
+
orders?: {
|
|
172
|
+
sort: "ASC" | "DESC";
|
|
173
|
+
name: string;
|
|
174
|
+
}[] | undefined;
|
|
175
|
+
}>;
|
|
176
|
+
export type GetLicenseKindUsersParams = z.infer<typeof getLicenseKindUsersParamsSchema>;
|
|
177
|
+
export declare const inferUserLicenseSchema: <T extends z.ZodType<z.objectOutputType<{
|
|
178
|
+
type: z.ZodString;
|
|
179
|
+
id: z.ZodNumber;
|
|
180
|
+
mainType: z.ZodString;
|
|
181
|
+
uri: z.ZodString;
|
|
182
|
+
title: z.ZodString;
|
|
183
|
+
_url: z.ZodString;
|
|
184
|
+
level: z.ZodNativeEnum<{
|
|
185
|
+
readonly ADMIN: 9;
|
|
186
|
+
readonly USER: 5;
|
|
187
|
+
readonly EXTERNAL: 3;
|
|
188
|
+
readonly GUEST: 0;
|
|
189
|
+
}>;
|
|
190
|
+
dateCreation: z.ZodString;
|
|
191
|
+
dateModified: z.ZodString;
|
|
192
|
+
}, 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.ZodTypeDef, z.objectOutputType<{
|
|
193
|
+
type: z.ZodString;
|
|
194
|
+
id: z.ZodNumber;
|
|
195
|
+
mainType: z.ZodString;
|
|
196
|
+
uri: z.ZodString;
|
|
197
|
+
title: z.ZodString;
|
|
198
|
+
_url: z.ZodString;
|
|
199
|
+
level: z.ZodNativeEnum<{
|
|
200
|
+
readonly ADMIN: 9;
|
|
201
|
+
readonly USER: 5;
|
|
202
|
+
readonly EXTERNAL: 3;
|
|
203
|
+
readonly GUEST: 0;
|
|
204
|
+
}>;
|
|
205
|
+
dateCreation: z.ZodString;
|
|
206
|
+
dateModified: z.ZodString;
|
|
207
|
+
}, 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">>>(type: T) => z.ZodObject<{
|
|
208
|
+
license: z.ZodUnion<[z.ZodLiteral<"1">, z.ZodLiteral<"0">]>;
|
|
209
|
+
user: T;
|
|
210
|
+
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
211
|
+
license: z.ZodUnion<[z.ZodLiteral<"1">, z.ZodLiteral<"0">]>;
|
|
212
|
+
user: T;
|
|
213
|
+
}>, "license" | (undefined extends T["_output"] ? never : "user")> extends infer T_1 ? { [k_1 in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
214
|
+
license: z.ZodUnion<[z.ZodLiteral<"1">, z.ZodLiteral<"0">]>;
|
|
215
|
+
user: T;
|
|
216
|
+
}>, "license" | (undefined extends T["_output"] ? never : "user")>[k_1]; } : never, z.baseObjectInputType<{
|
|
217
|
+
license: z.ZodUnion<[z.ZodLiteral<"1">, z.ZodLiteral<"0">]>;
|
|
218
|
+
user: T;
|
|
219
|
+
}> extends infer T_2 ? { [k_2 in keyof T_2]: z.baseObjectInputType<{
|
|
220
|
+
license: z.ZodUnion<[z.ZodLiteral<"1">, z.ZodLiteral<"0">]>;
|
|
221
|
+
user: T;
|
|
222
|
+
}>[k_2]; } : never>;
|
|
223
|
+
export type UserLicense<T extends jUserLittle> = z.infer<ReturnType<typeof inferUserLicenseSchema<ZodType<T>>>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const magicPadGetThumbnailSchema: z.ZodObject<{
|
|
3
|
+
thumbnailUrl: z.ZodString;
|
|
4
|
+
}, "strip", z.ZodTypeAny, {
|
|
5
|
+
thumbnailUrl: string;
|
|
6
|
+
}, {
|
|
7
|
+
thumbnailUrl: string;
|
|
8
|
+
}>;
|
|
9
|
+
export type MagicPadThumbnail = z.infer<typeof magicPadGetThumbnailSchema>;
|
|
@@ -18,9 +18,7 @@ export interface SearchCategoryValue {
|
|
|
18
18
|
export type FacetMode = 'AND' | 'OR';
|
|
19
19
|
export interface SearchFacetModel {
|
|
20
20
|
facetType: string;
|
|
21
|
-
facetOptions:
|
|
22
|
-
uriTaxonomy: string;
|
|
23
|
-
};
|
|
21
|
+
facetOptions: Record<string, object | number | string> | Array<never>;
|
|
24
22
|
facetMode?: FacetMode;
|
|
25
23
|
field: string;
|
|
26
24
|
title: string;
|
package/lib/src/types/utils.d.ts
CHANGED
|
@@ -170,17 +170,6 @@ export declare const audienceSchema: z.ZodUnion<[z.ZodLazy<z.ZodObject<{
|
|
|
170
170
|
privacy: number;
|
|
171
171
|
}>]>;
|
|
172
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";
|
|
178
|
-
name: string;
|
|
179
|
-
}, {
|
|
180
|
-
sort: "ASC" | "DESC";
|
|
181
|
-
name: string;
|
|
182
|
-
}>, "many">;
|
|
183
|
-
export type Orders = z.infer<typeof ordersSchema>;
|
|
184
173
|
export declare const filterValueSchema: z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
185
174
|
srcId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
186
175
|
srcType: z.ZodString;
|
|
@@ -299,6 +288,17 @@ export declare const filterSchema: z.ZodObject<{
|
|
|
299
288
|
isNotNull?: boolean | undefined;
|
|
300
289
|
}>;
|
|
301
290
|
export type Filter = z.infer<typeof filterSchema>;
|
|
291
|
+
export declare const ordersSchema: z.ZodArray<z.ZodObject<{
|
|
292
|
+
name: z.ZodString;
|
|
293
|
+
sort: z.ZodUnion<[z.ZodLiteral<"ASC">, z.ZodLiteral<"DESC">]>;
|
|
294
|
+
}, "strip", z.ZodTypeAny, {
|
|
295
|
+
sort: "ASC" | "DESC";
|
|
296
|
+
name: string;
|
|
297
|
+
}, {
|
|
298
|
+
sort: "ASC" | "DESC";
|
|
299
|
+
name: string;
|
|
300
|
+
}>, "many">;
|
|
301
|
+
export type Orders = z.infer<typeof ordersSchema>;
|
|
302
302
|
export declare const filtersSchema: z.ZodArray<z.ZodObject<{
|
|
303
303
|
name: z.ZodString;
|
|
304
304
|
value: z.ZodUnion<[z.ZodBoolean, z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|