@visus-io/notion-sdk-ts 2.0.1 → 2.1.0
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/README.md +25 -9
- package/dist/api/base.api.d.ts +1 -1
- package/dist/api/blocks.api.d.ts +260 -80
- package/dist/api/comments.api.d.ts +7 -7
- package/dist/api/dataSources.api.d.ts +12 -12
- package/dist/api/databases.api.d.ts +12 -12
- package/dist/api/fileUploads.api.d.ts +2 -2
- package/dist/api/pages.api.d.ts +29 -29
- package/dist/api/users.api.d.ts +1 -1
- package/dist/helpers/block.helpers.d.ts +4 -0
- package/dist/helpers/block.helpers.js +11 -0
- package/dist/models/base.model.d.ts +2 -2
- package/dist/schemas/block.schema.d.ts +261 -81
- package/dist/schemas/block.schema.js +157 -81
- package/dist/schemas/comment.schema.d.ts +9 -9
- package/dist/schemas/comment.schema.js +54 -20
- package/dist/schemas/dataSource.schema.d.ts +13 -13
- package/dist/schemas/dataSource.schema.js +46 -12
- package/dist/schemas/database.schema.d.ts +13 -13
- package/dist/schemas/database.schema.js +51 -17
- package/dist/schemas/emoji.schema.d.ts +1 -1
- package/dist/schemas/emoji.schema.js +37 -4
- package/dist/schemas/file.schema.d.ts +3 -3
- package/dist/schemas/file.schema.js +49 -15
- package/dist/schemas/fileUpload.schema.d.ts +3 -3
- package/dist/schemas/fileUpload.schema.js +47 -13
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/page.schema.d.ts +30 -30
- package/dist/schemas/page.schema.js +47 -13
- package/dist/schemas/pageProperties.schema.d.ts +47 -47
- package/dist/schemas/pageProperties.schema.js +162 -128
- package/dist/schemas/pagination.schema.d.ts +1 -1
- package/dist/schemas/pagination.schema.js +40 -7
- package/dist/schemas/parent.schema.d.ts +1 -1
- package/dist/schemas/parent.schema.js +51 -18
- package/dist/schemas/propertyObjects.schema.d.ts +1 -1
- package/dist/schemas/propertyObjects.schema.js +194 -161
- package/dist/schemas/richText.schema.d.ts +7 -7
- package/dist/schemas/richText.schema.js +95 -56
- package/dist/schemas/shared.schema.d.ts +15 -0
- package/dist/schemas/shared.schema.js +54 -0
- package/dist/schemas/user.schema.d.ts +3 -3
- package/dist/schemas/user.schema.js +63 -30
- package/package.json +3 -1
|
@@ -1,7 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
36
|
exports.propertiesObjectSchema = exports.propertyObjectSchema = void 0;
|
|
4
|
-
const
|
|
37
|
+
const z = __importStar(require("zod"));
|
|
5
38
|
/**
|
|
6
39
|
* Data source property objects define the schema/configuration for a data source.
|
|
7
40
|
* These are different from page property values (which contain the actual data).
|
|
@@ -10,7 +43,7 @@ const zod_1 = require("zod");
|
|
|
10
43
|
* https://developers.notion.com/reference/property-object
|
|
11
44
|
*/
|
|
12
45
|
/** Valid color values for select, multi_select, and status options */
|
|
13
|
-
const colorSchema =
|
|
46
|
+
const colorSchema = z.enum([
|
|
14
47
|
'blue',
|
|
15
48
|
'brown',
|
|
16
49
|
'default',
|
|
@@ -23,97 +56,97 @@ const colorSchema = zod_1.z.enum([
|
|
|
23
56
|
'yellow',
|
|
24
57
|
]);
|
|
25
58
|
/** Option for select and multi_select properties */
|
|
26
|
-
const selectOptionSchema =
|
|
27
|
-
id:
|
|
28
|
-
name:
|
|
59
|
+
const selectOptionSchema = z.object({
|
|
60
|
+
id: z.string().trim(),
|
|
61
|
+
name: z.string().trim(),
|
|
29
62
|
color: colorSchema,
|
|
30
63
|
});
|
|
31
64
|
/** Checkbox property configuration (empty object) */
|
|
32
|
-
const checkboxPropertySchema =
|
|
33
|
-
type:
|
|
34
|
-
id:
|
|
35
|
-
name:
|
|
36
|
-
description:
|
|
37
|
-
checkbox:
|
|
65
|
+
const checkboxPropertySchema = z.object({
|
|
66
|
+
type: z.literal('checkbox'),
|
|
67
|
+
id: z.string().trim(),
|
|
68
|
+
name: z.string().trim(),
|
|
69
|
+
description: z.string().trim().optional(),
|
|
70
|
+
checkbox: z.object({}),
|
|
38
71
|
});
|
|
39
72
|
/** Created by property configuration (empty object) */
|
|
40
|
-
const createdByPropertySchema =
|
|
41
|
-
type:
|
|
42
|
-
id:
|
|
43
|
-
name:
|
|
44
|
-
description:
|
|
45
|
-
created_by:
|
|
73
|
+
const createdByPropertySchema = z.object({
|
|
74
|
+
type: z.literal('created_by'),
|
|
75
|
+
id: z.string().trim(),
|
|
76
|
+
name: z.string().trim(),
|
|
77
|
+
description: z.string().trim().optional(),
|
|
78
|
+
created_by: z.object({}),
|
|
46
79
|
});
|
|
47
80
|
/** Created time property configuration (empty object) */
|
|
48
|
-
const createdTimePropertySchema =
|
|
49
|
-
type:
|
|
50
|
-
id:
|
|
51
|
-
name:
|
|
52
|
-
description:
|
|
53
|
-
created_time:
|
|
81
|
+
const createdTimePropertySchema = z.object({
|
|
82
|
+
type: z.literal('created_time'),
|
|
83
|
+
id: z.string().trim(),
|
|
84
|
+
name: z.string().trim(),
|
|
85
|
+
description: z.string().trim().optional(),
|
|
86
|
+
created_time: z.object({}),
|
|
54
87
|
});
|
|
55
88
|
/** Date property configuration (empty object) */
|
|
56
|
-
const datePropertySchema =
|
|
57
|
-
type:
|
|
58
|
-
id:
|
|
59
|
-
name:
|
|
60
|
-
description:
|
|
61
|
-
date:
|
|
89
|
+
const datePropertySchema = z.object({
|
|
90
|
+
type: z.literal('date'),
|
|
91
|
+
id: z.string().trim(),
|
|
92
|
+
name: z.string().trim(),
|
|
93
|
+
description: z.string().trim().optional(),
|
|
94
|
+
date: z.object({}),
|
|
62
95
|
});
|
|
63
96
|
/** Email property configuration (empty object) */
|
|
64
|
-
const emailPropertySchema =
|
|
65
|
-
type:
|
|
66
|
-
id:
|
|
67
|
-
name:
|
|
68
|
-
description:
|
|
69
|
-
email:
|
|
97
|
+
const emailPropertySchema = z.object({
|
|
98
|
+
type: z.literal('email'),
|
|
99
|
+
id: z.string().trim(),
|
|
100
|
+
name: z.string().trim(),
|
|
101
|
+
description: z.string().trim().optional(),
|
|
102
|
+
email: z.object({}),
|
|
70
103
|
});
|
|
71
104
|
/** Files property configuration (empty object) */
|
|
72
|
-
const filesPropertySchema =
|
|
73
|
-
type:
|
|
74
|
-
id:
|
|
75
|
-
name:
|
|
76
|
-
description:
|
|
77
|
-
files:
|
|
105
|
+
const filesPropertySchema = z.object({
|
|
106
|
+
type: z.literal('files'),
|
|
107
|
+
id: z.string().trim(),
|
|
108
|
+
name: z.string().trim(),
|
|
109
|
+
description: z.string().trim().optional(),
|
|
110
|
+
files: z.object({}),
|
|
78
111
|
});
|
|
79
112
|
/** Formula property configuration */
|
|
80
|
-
const formulaPropertySchema =
|
|
81
|
-
type:
|
|
82
|
-
id:
|
|
83
|
-
name:
|
|
84
|
-
description:
|
|
85
|
-
formula:
|
|
86
|
-
expression:
|
|
113
|
+
const formulaPropertySchema = z.object({
|
|
114
|
+
type: z.literal('formula'),
|
|
115
|
+
id: z.string().trim(),
|
|
116
|
+
name: z.string().trim(),
|
|
117
|
+
description: z.string().trim().optional(),
|
|
118
|
+
formula: z.object({
|
|
119
|
+
expression: z.string().trim(),
|
|
87
120
|
}),
|
|
88
121
|
});
|
|
89
122
|
/** Last edited by property configuration (empty object) */
|
|
90
|
-
const lastEditedByPropertySchema =
|
|
91
|
-
type:
|
|
92
|
-
id:
|
|
93
|
-
name:
|
|
94
|
-
description:
|
|
95
|
-
last_edited_by:
|
|
123
|
+
const lastEditedByPropertySchema = z.object({
|
|
124
|
+
type: z.literal('last_edited_by'),
|
|
125
|
+
id: z.string().trim(),
|
|
126
|
+
name: z.string().trim(),
|
|
127
|
+
description: z.string().trim().optional(),
|
|
128
|
+
last_edited_by: z.object({}),
|
|
96
129
|
});
|
|
97
130
|
/** Last edited time property configuration (empty object) */
|
|
98
|
-
const lastEditedTimePropertySchema =
|
|
99
|
-
type:
|
|
100
|
-
id:
|
|
101
|
-
name:
|
|
102
|
-
description:
|
|
103
|
-
last_edited_time:
|
|
131
|
+
const lastEditedTimePropertySchema = z.object({
|
|
132
|
+
type: z.literal('last_edited_time'),
|
|
133
|
+
id: z.string().trim(),
|
|
134
|
+
name: z.string().trim(),
|
|
135
|
+
description: z.string().trim().optional(),
|
|
136
|
+
last_edited_time: z.object({}),
|
|
104
137
|
});
|
|
105
138
|
/** Multi-select property configuration */
|
|
106
|
-
const multiSelectPropertySchema =
|
|
107
|
-
type:
|
|
108
|
-
id:
|
|
109
|
-
name:
|
|
110
|
-
description:
|
|
111
|
-
multi_select:
|
|
112
|
-
options:
|
|
139
|
+
const multiSelectPropertySchema = z.object({
|
|
140
|
+
type: z.literal('multi_select'),
|
|
141
|
+
id: z.string().trim(),
|
|
142
|
+
name: z.string().trim(),
|
|
143
|
+
description: z.string().trim().optional(),
|
|
144
|
+
multi_select: z.object({
|
|
145
|
+
options: z.array(selectOptionSchema),
|
|
113
146
|
}),
|
|
114
147
|
});
|
|
115
148
|
/** Number format options */
|
|
116
|
-
const numberFormatSchema =
|
|
149
|
+
const numberFormatSchema = z.enum([
|
|
117
150
|
'argentine_peso',
|
|
118
151
|
'baht',
|
|
119
152
|
'australian_dollar',
|
|
@@ -157,61 +190,61 @@ const numberFormatSchema = zod_1.z.enum([
|
|
|
157
190
|
'zloty',
|
|
158
191
|
]);
|
|
159
192
|
/** Number property configuration */
|
|
160
|
-
const numberPropertySchema =
|
|
161
|
-
type:
|
|
162
|
-
id:
|
|
163
|
-
name:
|
|
164
|
-
description:
|
|
165
|
-
number:
|
|
193
|
+
const numberPropertySchema = z.object({
|
|
194
|
+
type: z.literal('number'),
|
|
195
|
+
id: z.string().trim(),
|
|
196
|
+
name: z.string().trim(),
|
|
197
|
+
description: z.string().trim().optional(),
|
|
198
|
+
number: z.object({
|
|
166
199
|
format: numberFormatSchema,
|
|
167
200
|
}),
|
|
168
201
|
});
|
|
169
202
|
/** People property configuration (empty object) */
|
|
170
|
-
const peoplePropertySchema =
|
|
171
|
-
type:
|
|
172
|
-
id:
|
|
173
|
-
name:
|
|
174
|
-
description:
|
|
175
|
-
people:
|
|
203
|
+
const peoplePropertySchema = z.object({
|
|
204
|
+
type: z.literal('people'),
|
|
205
|
+
id: z.string().trim(),
|
|
206
|
+
name: z.string().trim(),
|
|
207
|
+
description: z.string().trim().optional(),
|
|
208
|
+
people: z.object({}),
|
|
176
209
|
});
|
|
177
210
|
/** Phone number property configuration (empty object) */
|
|
178
|
-
const phoneNumberPropertySchema =
|
|
179
|
-
type:
|
|
180
|
-
id:
|
|
181
|
-
name:
|
|
182
|
-
description:
|
|
183
|
-
phone_number:
|
|
211
|
+
const phoneNumberPropertySchema = z.object({
|
|
212
|
+
type: z.literal('phone_number'),
|
|
213
|
+
id: z.string().trim(),
|
|
214
|
+
name: z.string().trim(),
|
|
215
|
+
description: z.string().trim().optional(),
|
|
216
|
+
phone_number: z.object({}),
|
|
184
217
|
});
|
|
185
218
|
/** Place property configuration (empty object) */
|
|
186
|
-
const placePropertySchema =
|
|
187
|
-
type:
|
|
188
|
-
id:
|
|
189
|
-
name:
|
|
190
|
-
description:
|
|
191
|
-
place:
|
|
219
|
+
const placePropertySchema = z.object({
|
|
220
|
+
type: z.literal('place'),
|
|
221
|
+
id: z.string().trim(),
|
|
222
|
+
name: z.string().trim(),
|
|
223
|
+
description: z.string().trim().optional(),
|
|
224
|
+
place: z.object({}),
|
|
192
225
|
});
|
|
193
226
|
/** Relation property configuration */
|
|
194
|
-
const relationPropertySchema =
|
|
195
|
-
type:
|
|
196
|
-
id:
|
|
197
|
-
name:
|
|
198
|
-
description:
|
|
199
|
-
relation:
|
|
200
|
-
data_source_id:
|
|
201
|
-
synced_property_id:
|
|
202
|
-
synced_property_name:
|
|
227
|
+
const relationPropertySchema = z.object({
|
|
228
|
+
type: z.literal('relation'),
|
|
229
|
+
id: z.string().trim(),
|
|
230
|
+
name: z.string().trim(),
|
|
231
|
+
description: z.string().trim().optional(),
|
|
232
|
+
relation: z.object({
|
|
233
|
+
data_source_id: z.uuid(),
|
|
234
|
+
synced_property_id: z.string().trim(),
|
|
235
|
+
synced_property_name: z.string().trim(),
|
|
203
236
|
}),
|
|
204
237
|
});
|
|
205
238
|
/** Rich text property configuration (empty object) */
|
|
206
|
-
const richTextPropertySchema =
|
|
207
|
-
type:
|
|
208
|
-
id:
|
|
209
|
-
name:
|
|
210
|
-
description:
|
|
211
|
-
rich_text:
|
|
239
|
+
const richTextPropertySchema = z.object({
|
|
240
|
+
type: z.literal('rich_text'),
|
|
241
|
+
id: z.string().trim(),
|
|
242
|
+
name: z.string().trim(),
|
|
243
|
+
description: z.string().trim().optional(),
|
|
244
|
+
rich_text: z.object({}),
|
|
212
245
|
});
|
|
213
246
|
/** Rollup function options */
|
|
214
|
-
const rollupFunctionSchema =
|
|
247
|
+
const rollupFunctionSchema = z.enum([
|
|
215
248
|
'average',
|
|
216
249
|
'checked',
|
|
217
250
|
'count_per_group',
|
|
@@ -238,84 +271,84 @@ const rollupFunctionSchema = zod_1.z.enum([
|
|
|
238
271
|
'sum',
|
|
239
272
|
]);
|
|
240
273
|
/** Rollup property configuration */
|
|
241
|
-
const rollupPropertySchema =
|
|
242
|
-
type:
|
|
243
|
-
id:
|
|
244
|
-
name:
|
|
245
|
-
description:
|
|
246
|
-
rollup:
|
|
247
|
-
rollup_property_name:
|
|
248
|
-
relation_property_name:
|
|
249
|
-
rollup_property_id:
|
|
250
|
-
relation_property_id:
|
|
274
|
+
const rollupPropertySchema = z.object({
|
|
275
|
+
type: z.literal('rollup'),
|
|
276
|
+
id: z.string().trim(),
|
|
277
|
+
name: z.string().trim(),
|
|
278
|
+
description: z.string().trim().optional(),
|
|
279
|
+
rollup: z.object({
|
|
280
|
+
rollup_property_name: z.string().trim(),
|
|
281
|
+
relation_property_name: z.string().trim(),
|
|
282
|
+
rollup_property_id: z.string().trim(),
|
|
283
|
+
relation_property_id: z.string().trim(),
|
|
251
284
|
function: rollupFunctionSchema,
|
|
252
285
|
}),
|
|
253
286
|
});
|
|
254
287
|
/** Select property configuration */
|
|
255
|
-
const selectPropertySchema =
|
|
256
|
-
type:
|
|
257
|
-
id:
|
|
258
|
-
name:
|
|
259
|
-
description:
|
|
260
|
-
select:
|
|
261
|
-
options:
|
|
288
|
+
const selectPropertySchema = z.object({
|
|
289
|
+
type: z.literal('select'),
|
|
290
|
+
id: z.string().trim(),
|
|
291
|
+
name: z.string().trim(),
|
|
292
|
+
description: z.string().trim().optional(),
|
|
293
|
+
select: z.object({
|
|
294
|
+
options: z.array(selectOptionSchema),
|
|
262
295
|
}),
|
|
263
296
|
});
|
|
264
297
|
/** Status option for status properties */
|
|
265
|
-
const statusOptionSchema =
|
|
266
|
-
id:
|
|
267
|
-
name:
|
|
298
|
+
const statusOptionSchema = z.object({
|
|
299
|
+
id: z.string().trim(),
|
|
300
|
+
name: z.string().trim(),
|
|
268
301
|
color: colorSchema,
|
|
269
302
|
});
|
|
270
303
|
/** Status group for status properties */
|
|
271
|
-
const statusGroupSchema =
|
|
272
|
-
id:
|
|
273
|
-
name:
|
|
304
|
+
const statusGroupSchema = z.object({
|
|
305
|
+
id: z.string().trim(),
|
|
306
|
+
name: z.string().trim(),
|
|
274
307
|
color: colorSchema,
|
|
275
|
-
option_ids:
|
|
308
|
+
option_ids: z.array(z.string().trim()),
|
|
276
309
|
});
|
|
277
310
|
/** Status property configuration */
|
|
278
|
-
const statusPropertySchema =
|
|
279
|
-
type:
|
|
280
|
-
id:
|
|
281
|
-
name:
|
|
282
|
-
description:
|
|
283
|
-
status:
|
|
284
|
-
options:
|
|
285
|
-
groups:
|
|
311
|
+
const statusPropertySchema = z.object({
|
|
312
|
+
type: z.literal('status'),
|
|
313
|
+
id: z.string().trim(),
|
|
314
|
+
name: z.string().trim(),
|
|
315
|
+
description: z.string().trim().optional(),
|
|
316
|
+
status: z.object({
|
|
317
|
+
options: z.array(statusOptionSchema),
|
|
318
|
+
groups: z.array(statusGroupSchema),
|
|
286
319
|
}),
|
|
287
320
|
});
|
|
288
321
|
/** Title property configuration (empty object) - all data sources require exactly one */
|
|
289
|
-
const titlePropertySchema =
|
|
290
|
-
type:
|
|
291
|
-
id:
|
|
292
|
-
name:
|
|
293
|
-
description:
|
|
294
|
-
title:
|
|
322
|
+
const titlePropertySchema = z.object({
|
|
323
|
+
type: z.literal('title'),
|
|
324
|
+
id: z.string().trim(),
|
|
325
|
+
name: z.string().trim(),
|
|
326
|
+
description: z.string().trim().optional(),
|
|
327
|
+
title: z.object({}),
|
|
295
328
|
});
|
|
296
329
|
/** URL property configuration (empty object) */
|
|
297
|
-
const urlPropertySchema =
|
|
298
|
-
type:
|
|
299
|
-
id:
|
|
300
|
-
name:
|
|
301
|
-
description:
|
|
302
|
-
url:
|
|
330
|
+
const urlPropertySchema = z.object({
|
|
331
|
+
type: z.literal('url'),
|
|
332
|
+
id: z.string().trim(),
|
|
333
|
+
name: z.string().trim(),
|
|
334
|
+
description: z.string().trim().optional(),
|
|
335
|
+
url: z.object({}),
|
|
303
336
|
});
|
|
304
337
|
/** Unique ID property configuration */
|
|
305
|
-
const uniqueIdPropertySchema =
|
|
306
|
-
type:
|
|
307
|
-
id:
|
|
308
|
-
name:
|
|
309
|
-
description:
|
|
310
|
-
unique_id:
|
|
311
|
-
prefix:
|
|
338
|
+
const uniqueIdPropertySchema = z.object({
|
|
339
|
+
type: z.literal('unique_id'),
|
|
340
|
+
id: z.string().trim(),
|
|
341
|
+
name: z.string().trim(),
|
|
342
|
+
description: z.string().trim().optional(),
|
|
343
|
+
unique_id: z.object({
|
|
344
|
+
prefix: z.string().trim().optional(),
|
|
312
345
|
}),
|
|
313
346
|
});
|
|
314
347
|
/**
|
|
315
348
|
* Discriminated union of all data source property object types.
|
|
316
349
|
* These define the schema/configuration for a data source (not the values).
|
|
317
350
|
*/
|
|
318
|
-
exports.propertyObjectSchema =
|
|
351
|
+
exports.propertyObjectSchema = z.discriminatedUnion('type', [
|
|
319
352
|
checkboxPropertySchema,
|
|
320
353
|
createdByPropertySchema,
|
|
321
354
|
createdTimePropertySchema,
|
|
@@ -340,4 +373,4 @@ exports.propertyObjectSchema = zod_1.z.discriminatedUnion('type', [
|
|
|
340
373
|
uniqueIdPropertySchema,
|
|
341
374
|
]);
|
|
342
375
|
/** Record of property objects keyed by property name */
|
|
343
|
-
exports.propertiesObjectSchema =
|
|
376
|
+
exports.propertiesObjectSchema = z.record(z.string().trim(), exports.propertyObjectSchema);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from 'zod';
|
|
2
2
|
/** Text rich text type. */
|
|
3
3
|
declare const textRichTextSchema: z.ZodObject<{
|
|
4
4
|
type: z.ZodLiteral<"text">;
|
|
@@ -50,8 +50,8 @@ declare const mentionRichTextSchema: z.ZodObject<{
|
|
|
50
50
|
}, z.core.$strip>, z.ZodObject<{
|
|
51
51
|
type: z.ZodLiteral<"date">;
|
|
52
52
|
date: z.ZodObject<{
|
|
53
|
-
start: z.
|
|
54
|
-
end: z.ZodNullable<z.
|
|
53
|
+
start: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>;
|
|
54
|
+
end: z.ZodNullable<z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>>;
|
|
55
55
|
time_zone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
56
|
}, z.core.$strip>;
|
|
57
57
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -103,7 +103,7 @@ declare const mentionRichTextSchema: z.ZodObject<{
|
|
|
103
103
|
workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
104
|
workspace_id: z.ZodOptional<z.ZodString>;
|
|
105
105
|
workspace_limits: z.ZodOptional<z.ZodObject<{
|
|
106
|
-
max_file_upload_size_in_bytes: z.
|
|
106
|
+
max_file_upload_size_in_bytes: z.ZodInt;
|
|
107
107
|
}, z.core.$strip>>;
|
|
108
108
|
}, z.core.$strip>;
|
|
109
109
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -227,8 +227,8 @@ export declare const richTextSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
227
227
|
}, z.core.$strip>, z.ZodObject<{
|
|
228
228
|
type: z.ZodLiteral<"date">;
|
|
229
229
|
date: z.ZodObject<{
|
|
230
|
-
start: z.
|
|
231
|
-
end: z.ZodNullable<z.
|
|
230
|
+
start: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>;
|
|
231
|
+
end: z.ZodNullable<z.ZodUnion<readonly [z.ZodISODateTime, z.ZodISODate]>>;
|
|
232
232
|
time_zone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
233
233
|
}, z.core.$strip>;
|
|
234
234
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -280,7 +280,7 @@ export declare const richTextSchema: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
280
280
|
workspace_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
281
281
|
workspace_id: z.ZodOptional<z.ZodString>;
|
|
282
282
|
workspace_limits: z.ZodOptional<z.ZodObject<{
|
|
283
|
-
max_file_upload_size_in_bytes: z.
|
|
283
|
+
max_file_upload_size_in_bytes: z.ZodInt;
|
|
284
284
|
}, z.core.$strip>>;
|
|
285
285
|
}, z.core.$strip>;
|
|
286
286
|
}, z.core.$strip>, z.ZodObject<{
|