@ourofoundation/ouro-js 1.1.1 → 1.1.3
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/dist/index.d.ts +18 -19
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +2 -81
- package/dist/index.js.map +1 -1
- package/dist/schema/assets.d.ts +111 -100
- package/dist/schema/assets.esm.js +2 -0
- package/dist/schema/assets.esm.js.map +1 -0
- package/dist/schema/assets.js +2 -95
- package/dist/schema/assets.js.map +1 -1
- package/dist/schema/blueprints.d.ts +105 -95
- package/dist/schema/blueprints.esm.js +2 -0
- package/dist/schema/blueprints.esm.js.map +1 -0
- package/dist/schema/blueprints.js +2 -38
- package/dist/schema/blueprints.js.map +1 -1
- package/dist/schema/comments.d.ts +91 -81
- package/dist/schema/comments.esm.js +2 -0
- package/dist/schema/comments.esm.js.map +1 -0
- package/dist/schema/comments.js +2 -32
- package/dist/schema/comments.js.map +1 -1
- package/dist/schema/common.d.ts +32 -32
- package/dist/schema/common.esm.js +2 -0
- package/dist/schema/common.esm.js.map +1 -0
- package/dist/schema/common.js +2 -87
- package/dist/schema/common.js.map +1 -1
- package/dist/schema/conversations.d.ts +149 -139
- package/dist/schema/conversations.esm.js +2 -0
- package/dist/schema/conversations.esm.js.map +1 -0
- package/dist/schema/conversations.js +2 -54
- package/dist/schema/conversations.js.map +1 -1
- package/dist/schema/datasets.d.ts +218 -202
- package/dist/schema/datasets.esm.js +2 -0
- package/dist/schema/datasets.esm.js.map +1 -0
- package/dist/schema/datasets.js +2 -49
- package/dist/schema/datasets.js.map +1 -1
- package/dist/schema/files.d.ts +201 -185
- package/dist/schema/files.esm.js +2 -0
- package/dist/schema/files.esm.js.map +1 -0
- package/dist/schema/files.js +2 -50
- package/dist/schema/files.js.map +1 -1
- package/dist/schema/index.d.ts +14 -80
- package/dist/schema/notifications.d.ts +22 -22
- package/dist/schema/notifications.esm.js +2 -0
- package/dist/schema/notifications.esm.js.map +1 -0
- package/dist/schema/notifications.js +2 -46
- package/dist/schema/notifications.js.map +1 -1
- package/dist/schema/organizations.d.ts +11 -11
- package/dist/schema/organizations.esm.js +2 -0
- package/dist/schema/organizations.esm.js.map +1 -0
- package/dist/schema/organizations.js +2 -33
- package/dist/schema/organizations.js.map +1 -1
- package/dist/schema/posts.d.ts +326 -298
- package/dist/schema/posts.esm.js +2 -0
- package/dist/schema/posts.esm.js.map +1 -0
- package/dist/schema/posts.js +2 -81
- package/dist/schema/posts.js.map +1 -1
- package/dist/schema/replications.d.ts +125 -115
- package/dist/schema/replications.esm.js +2 -0
- package/dist/schema/replications.esm.js.map +1 -0
- package/dist/schema/replications.js +2 -42
- package/dist/schema/replications.js.map +1 -1
- package/dist/schema/services.d.ts +14 -14
- package/dist/schema/services.esm.js +2 -0
- package/dist/schema/services.esm.js.map +1 -0
- package/dist/schema/services.js +2 -39
- package/dist/schema/services.js.map +1 -1
- package/dist/schema/teams.d.ts +99 -85
- package/dist/schema/teams.esm.js +2 -0
- package/dist/schema/teams.esm.js.map +1 -0
- package/dist/schema/teams.js +2 -57
- package/dist/schema/teams.js.map +1 -1
- package/dist/schema/users.d.ts +13 -4
- package/dist/schema/users.esm.js +2 -0
- package/dist/schema/users.esm.js.map +1 -0
- package/dist/schema/users.js +2 -35
- package/dist/schema/users.js.map +1 -1
- package/dist/types/index.d.ts +14 -0
- package/dist/utils/air/index.d.ts +1 -1
- package/dist/utils/air/index.esm.js +2 -0
- package/dist/utils/air/index.esm.js.map +1 -0
- package/dist/utils/air/index.js +2 -51
- package/dist/utils/air/index.js.map +1 -1
- package/dist/utils/air/markdown-parser.esm.js +2 -0
- package/dist/utils/air/markdown-parser.esm.js.map +1 -0
- package/dist/utils/air/markdown-parser.js +2 -118
- package/dist/utils/air/markdown-parser.js.map +1 -1
- package/dist/utils/dataset.esm.js +2 -0
- package/dist/utils/dataset.esm.js.map +1 -0
- package/dist/utils/dataset.js +2 -19
- package/dist/utils/dataset.js.map +1 -1
- package/dist/utils/navigate.esm.js +2 -0
- package/dist/utils/navigate.esm.js.map +1 -0
- package/dist/utils/navigate.js +2 -56
- package/dist/utils/navigate.js.map +1 -1
- package/package.json +21 -4
- package/rollup.config.js +52 -0
|
@@ -15,6 +15,7 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
15
15
|
}, {
|
|
16
16
|
value: string;
|
|
17
17
|
}>, "many">>>;
|
|
18
|
+
post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
18
19
|
last_active: z.ZodOptional<z.ZodString>;
|
|
19
20
|
}, "strip", z.ZodTypeAny, {
|
|
20
21
|
id?: string | undefined;
|
|
@@ -25,6 +26,7 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
25
26
|
}[] | undefined;
|
|
26
27
|
username?: string | null | undefined;
|
|
27
28
|
bio?: string | null | undefined;
|
|
29
|
+
post_id?: string | null | undefined;
|
|
28
30
|
last_active?: string | undefined;
|
|
29
31
|
}, {
|
|
30
32
|
id?: string | undefined;
|
|
@@ -35,6 +37,7 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
35
37
|
}[] | undefined;
|
|
36
38
|
username?: string | null | undefined;
|
|
37
39
|
bio?: string | null | undefined;
|
|
40
|
+
post_id?: string | null | undefined;
|
|
38
41
|
last_active?: string | undefined;
|
|
39
42
|
}>>;
|
|
40
43
|
org_id: z.ZodString;
|
|
@@ -57,27 +60,27 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
57
60
|
}, "strip", z.ZodTypeAny, {
|
|
58
61
|
id?: string | undefined;
|
|
59
62
|
name?: string | undefined;
|
|
60
|
-
size?: string | undefined;
|
|
61
|
-
email?: string | null | undefined;
|
|
62
63
|
avatar_path?: string | null | undefined;
|
|
63
64
|
mission?: string | null | undefined;
|
|
65
|
+
size?: string | undefined;
|
|
66
|
+
email?: string | null | undefined;
|
|
64
67
|
domain?: string | null | undefined;
|
|
65
68
|
urls?: {
|
|
66
69
|
value: string;
|
|
67
70
|
}[] | null | undefined;
|
|
68
|
-
base_role?: "
|
|
71
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
69
72
|
}, {
|
|
70
73
|
id?: string | undefined;
|
|
71
74
|
name?: string | undefined;
|
|
72
|
-
size?: string | undefined;
|
|
73
|
-
email?: string | null | undefined;
|
|
74
75
|
avatar_path?: string | null | undefined;
|
|
75
76
|
mission?: string | null | undefined;
|
|
77
|
+
size?: string | undefined;
|
|
78
|
+
email?: string | null | undefined;
|
|
76
79
|
domain?: string | null | undefined;
|
|
77
80
|
urls?: {
|
|
78
81
|
value: string;
|
|
79
82
|
}[] | null | undefined;
|
|
80
|
-
base_role?: "
|
|
83
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
81
84
|
}>>;
|
|
82
85
|
team_id: z.ZodString;
|
|
83
86
|
team: z.ZodOptional<z.ZodObject<{
|
|
@@ -90,20 +93,20 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
90
93
|
created_at: z.ZodOptional<z.ZodString>;
|
|
91
94
|
}, "strip", z.ZodTypeAny, {
|
|
92
95
|
id?: string | undefined;
|
|
93
|
-
name?: string | undefined;
|
|
94
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
95
|
-
description?: string | null | undefined;
|
|
96
96
|
org_id?: string | undefined;
|
|
97
97
|
created_at?: string | undefined;
|
|
98
|
-
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
99
|
-
}, {
|
|
100
|
-
id?: string | undefined;
|
|
101
98
|
name?: string | undefined;
|
|
102
|
-
visibility?: "
|
|
99
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
103
100
|
description?: string | null | undefined;
|
|
101
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
102
|
+
}, {
|
|
103
|
+
id?: string | undefined;
|
|
104
104
|
org_id?: string | undefined;
|
|
105
105
|
created_at?: string | undefined;
|
|
106
|
-
|
|
106
|
+
name?: string | undefined;
|
|
107
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
108
|
+
description?: string | null | undefined;
|
|
109
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
107
110
|
}>>;
|
|
108
111
|
parent_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
109
112
|
parent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
@@ -126,7 +129,7 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
126
129
|
created_at: z.ZodString;
|
|
127
130
|
last_updated: z.ZodString;
|
|
128
131
|
}, {
|
|
129
|
-
asset_type: z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "
|
|
132
|
+
asset_type: z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">;
|
|
130
133
|
metadata: z.ZodObject<{
|
|
131
134
|
schedule: z.ZodOptional<z.ZodObject<{
|
|
132
135
|
cron: z.ZodString;
|
|
@@ -154,8 +157,9 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
154
157
|
}, z.ZodTypeAny, "passthrough">>;
|
|
155
158
|
}>, "strip", z.ZodTypeAny, {
|
|
156
159
|
id: string;
|
|
157
|
-
|
|
158
|
-
|
|
160
|
+
user_id: string;
|
|
161
|
+
org_id: string;
|
|
162
|
+
asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
159
163
|
metadata: {
|
|
160
164
|
schedule?: z.objectOutputType<{
|
|
161
165
|
cron: z.ZodString;
|
|
@@ -163,16 +167,12 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
163
167
|
} & {
|
|
164
168
|
[k: string]: unknown;
|
|
165
169
|
};
|
|
166
|
-
user_id: string;
|
|
167
|
-
org_id: string;
|
|
168
|
-
asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
169
170
|
created_at: string;
|
|
170
171
|
last_updated: string;
|
|
172
|
+
name: string;
|
|
171
173
|
team_id: string;
|
|
174
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
172
175
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
173
|
-
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
174
|
-
description?: string | null | undefined;
|
|
175
|
-
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
176
176
|
user?: {
|
|
177
177
|
id?: string | undefined;
|
|
178
178
|
user_id?: string | undefined;
|
|
@@ -182,31 +182,34 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
182
182
|
}[] | undefined;
|
|
183
183
|
username?: string | null | undefined;
|
|
184
184
|
bio?: string | null | undefined;
|
|
185
|
+
post_id?: string | null | undefined;
|
|
185
186
|
last_active?: string | undefined;
|
|
186
187
|
} | undefined;
|
|
187
188
|
organization?: {
|
|
188
189
|
id?: string | undefined;
|
|
189
190
|
name?: string | undefined;
|
|
190
|
-
size?: string | undefined;
|
|
191
|
-
email?: string | null | undefined;
|
|
192
191
|
avatar_path?: string | null | undefined;
|
|
193
192
|
mission?: string | null | undefined;
|
|
193
|
+
size?: string | undefined;
|
|
194
|
+
email?: string | null | undefined;
|
|
194
195
|
domain?: string | null | undefined;
|
|
195
196
|
urls?: {
|
|
196
197
|
value: string;
|
|
197
198
|
}[] | null | undefined;
|
|
198
|
-
base_role?: "
|
|
199
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
199
200
|
} | undefined;
|
|
200
201
|
team?: {
|
|
201
202
|
id?: string | undefined;
|
|
202
|
-
name?: string | undefined;
|
|
203
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
204
|
-
description?: string | null | undefined;
|
|
205
203
|
org_id?: string | undefined;
|
|
206
204
|
created_at?: string | undefined;
|
|
207
|
-
|
|
205
|
+
name?: string | undefined;
|
|
206
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
207
|
+
description?: string | null | undefined;
|
|
208
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
208
209
|
} | undefined;
|
|
210
|
+
description?: string | null | undefined;
|
|
209
211
|
parent_id?: string | null | undefined;
|
|
212
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
210
213
|
name_url_slug?: string | null | undefined;
|
|
211
214
|
slug?: string | null | undefined;
|
|
212
215
|
price?: number | null | undefined;
|
|
@@ -216,10 +219,12 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
216
219
|
product_id?: string | null | undefined;
|
|
217
220
|
price_id?: string | null | undefined;
|
|
218
221
|
preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
222
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
219
223
|
}, {
|
|
220
224
|
id: string;
|
|
221
|
-
|
|
222
|
-
|
|
225
|
+
user_id: string;
|
|
226
|
+
org_id: string;
|
|
227
|
+
asset_type: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
223
228
|
metadata: {
|
|
224
229
|
schedule?: z.objectInputType<{
|
|
225
230
|
cron: z.ZodString;
|
|
@@ -227,16 +232,12 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
227
232
|
} & {
|
|
228
233
|
[k: string]: unknown;
|
|
229
234
|
};
|
|
230
|
-
user_id: string;
|
|
231
|
-
org_id: string;
|
|
232
|
-
asset_type: "file" | "dataset" | "user" | "organization" | "team" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication";
|
|
233
235
|
created_at: string;
|
|
234
236
|
last_updated: string;
|
|
237
|
+
name: string;
|
|
235
238
|
team_id: string;
|
|
239
|
+
visibility: "organization" | "public" | "private" | "monetized" | "inherit";
|
|
236
240
|
monetization: "none" | "pay-to-unlock" | "pay-per-use";
|
|
237
|
-
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
238
|
-
description?: string | null | undefined;
|
|
239
|
-
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
240
241
|
user?: {
|
|
241
242
|
id?: string | undefined;
|
|
242
243
|
user_id?: string | undefined;
|
|
@@ -246,31 +247,34 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
246
247
|
}[] | undefined;
|
|
247
248
|
username?: string | null | undefined;
|
|
248
249
|
bio?: string | null | undefined;
|
|
250
|
+
post_id?: string | null | undefined;
|
|
249
251
|
last_active?: string | undefined;
|
|
250
252
|
} | undefined;
|
|
251
253
|
organization?: {
|
|
252
254
|
id?: string | undefined;
|
|
253
255
|
name?: string | undefined;
|
|
254
|
-
size?: string | undefined;
|
|
255
|
-
email?: string | null | undefined;
|
|
256
256
|
avatar_path?: string | null | undefined;
|
|
257
257
|
mission?: string | null | undefined;
|
|
258
|
+
size?: string | undefined;
|
|
259
|
+
email?: string | null | undefined;
|
|
258
260
|
domain?: string | null | undefined;
|
|
259
261
|
urls?: {
|
|
260
262
|
value: string;
|
|
261
263
|
}[] | null | undefined;
|
|
262
|
-
base_role?: "
|
|
264
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
263
265
|
} | undefined;
|
|
264
266
|
team?: {
|
|
265
267
|
id?: string | undefined;
|
|
266
|
-
name?: string | undefined;
|
|
267
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
268
|
-
description?: string | null | undefined;
|
|
269
268
|
org_id?: string | undefined;
|
|
270
269
|
created_at?: string | undefined;
|
|
271
|
-
|
|
270
|
+
name?: string | undefined;
|
|
271
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
272
|
+
description?: string | null | undefined;
|
|
273
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
272
274
|
} | undefined;
|
|
275
|
+
description?: string | null | undefined;
|
|
273
276
|
parent_id?: string | null | undefined;
|
|
277
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
274
278
|
name_url_slug?: string | null | undefined;
|
|
275
279
|
slug?: string | null | undefined;
|
|
276
280
|
price?: number | null | undefined;
|
|
@@ -280,6 +284,7 @@ declare const ReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
280
284
|
product_id?: string | null | undefined;
|
|
281
285
|
price_id?: string | null | undefined;
|
|
282
286
|
preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
287
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
283
288
|
}>;
|
|
284
289
|
declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
285
290
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -297,6 +302,7 @@ declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
297
302
|
}, {
|
|
298
303
|
value: string;
|
|
299
304
|
}>, "many">>>;
|
|
305
|
+
post_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
300
306
|
last_active: z.ZodOptional<z.ZodString>;
|
|
301
307
|
}, "strip", z.ZodTypeAny, {
|
|
302
308
|
id?: string | undefined;
|
|
@@ -307,6 +313,7 @@ declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
307
313
|
}[] | undefined;
|
|
308
314
|
username?: string | null | undefined;
|
|
309
315
|
bio?: string | null | undefined;
|
|
316
|
+
post_id?: string | null | undefined;
|
|
310
317
|
last_active?: string | undefined;
|
|
311
318
|
}, {
|
|
312
319
|
id?: string | undefined;
|
|
@@ -317,6 +324,7 @@ declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
317
324
|
}[] | undefined;
|
|
318
325
|
username?: string | null | undefined;
|
|
319
326
|
bio?: string | null | undefined;
|
|
327
|
+
post_id?: string | null | undefined;
|
|
320
328
|
last_active?: string | undefined;
|
|
321
329
|
}>>>;
|
|
322
330
|
org_id: z.ZodOptional<z.ZodString>;
|
|
@@ -339,27 +347,27 @@ declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
339
347
|
}, "strip", z.ZodTypeAny, {
|
|
340
348
|
id?: string | undefined;
|
|
341
349
|
name?: string | undefined;
|
|
342
|
-
size?: string | undefined;
|
|
343
|
-
email?: string | null | undefined;
|
|
344
350
|
avatar_path?: string | null | undefined;
|
|
345
351
|
mission?: string | null | undefined;
|
|
352
|
+
size?: string | undefined;
|
|
353
|
+
email?: string | null | undefined;
|
|
346
354
|
domain?: string | null | undefined;
|
|
347
355
|
urls?: {
|
|
348
356
|
value: string;
|
|
349
357
|
}[] | null | undefined;
|
|
350
|
-
base_role?: "
|
|
358
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
351
359
|
}, {
|
|
352
360
|
id?: string | undefined;
|
|
353
361
|
name?: string | undefined;
|
|
354
|
-
size?: string | undefined;
|
|
355
|
-
email?: string | null | undefined;
|
|
356
362
|
avatar_path?: string | null | undefined;
|
|
357
363
|
mission?: string | null | undefined;
|
|
364
|
+
size?: string | undefined;
|
|
365
|
+
email?: string | null | undefined;
|
|
358
366
|
domain?: string | null | undefined;
|
|
359
367
|
urls?: {
|
|
360
368
|
value: string;
|
|
361
369
|
}[] | null | undefined;
|
|
362
|
-
base_role?: "
|
|
370
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
363
371
|
}>>>;
|
|
364
372
|
team_id: z.ZodOptional<z.ZodString>;
|
|
365
373
|
team: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
@@ -372,20 +380,20 @@ declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
372
380
|
created_at: z.ZodOptional<z.ZodString>;
|
|
373
381
|
}, "strip", z.ZodTypeAny, {
|
|
374
382
|
id?: string | undefined;
|
|
375
|
-
name?: string | undefined;
|
|
376
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
377
|
-
description?: string | null | undefined;
|
|
378
383
|
org_id?: string | undefined;
|
|
379
384
|
created_at?: string | undefined;
|
|
380
|
-
default_role?: "none" | "admin" | "read" | "write" | undefined;
|
|
381
|
-
}, {
|
|
382
|
-
id?: string | undefined;
|
|
383
385
|
name?: string | undefined;
|
|
384
|
-
visibility?: "
|
|
386
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
385
387
|
description?: string | null | undefined;
|
|
388
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
389
|
+
}, {
|
|
390
|
+
id?: string | undefined;
|
|
386
391
|
org_id?: string | undefined;
|
|
387
392
|
created_at?: string | undefined;
|
|
388
|
-
|
|
393
|
+
name?: string | undefined;
|
|
394
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
395
|
+
description?: string | null | undefined;
|
|
396
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
389
397
|
}>>>;
|
|
390
398
|
parent_id: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
|
|
391
399
|
parent: z.ZodOptional<z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>>;
|
|
@@ -405,7 +413,7 @@ declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
405
413
|
state: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEnum<["queued", "in-progress", "success", "error"]>>>>;
|
|
406
414
|
created_at: z.ZodOptional<z.ZodString>;
|
|
407
415
|
last_updated: z.ZodOptional<z.ZodString>;
|
|
408
|
-
asset_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "
|
|
416
|
+
asset_type: z.ZodOptional<z.ZodEffects<z.ZodEnum<["user", "organization", "team", "dataset", "file", "service", "route", "post", "comment", "conversation", "blueprint", "replication"]>, "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication", "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication">>;
|
|
409
417
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
410
418
|
schedule: z.ZodOptional<z.ZodObject<{
|
|
411
419
|
cron: z.ZodString;
|
|
@@ -441,20 +449,6 @@ declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
441
449
|
org_id: string;
|
|
442
450
|
team_id: string;
|
|
443
451
|
name_url_slug: string;
|
|
444
|
-
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
445
|
-
name?: string | undefined;
|
|
446
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
447
|
-
metadata?: z.objectOutputType<{
|
|
448
|
-
schedule: z.ZodOptional<z.ZodObject<{
|
|
449
|
-
cron: z.ZodString;
|
|
450
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
451
|
-
cron: z.ZodString;
|
|
452
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
453
|
-
cron: z.ZodString;
|
|
454
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
455
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
456
|
-
description?: string | null | undefined;
|
|
457
|
-
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
458
452
|
user?: {
|
|
459
453
|
id?: string | undefined;
|
|
460
454
|
user_id?: string | undefined;
|
|
@@ -464,35 +458,49 @@ declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
464
458
|
}[] | undefined;
|
|
465
459
|
username?: string | null | undefined;
|
|
466
460
|
bio?: string | null | undefined;
|
|
461
|
+
post_id?: string | null | undefined;
|
|
467
462
|
last_active?: string | undefined;
|
|
468
463
|
} | undefined;
|
|
469
464
|
organization?: {
|
|
470
465
|
id?: string | undefined;
|
|
471
466
|
name?: string | undefined;
|
|
472
|
-
size?: string | undefined;
|
|
473
|
-
email?: string | null | undefined;
|
|
474
467
|
avatar_path?: string | null | undefined;
|
|
475
468
|
mission?: string | null | undefined;
|
|
469
|
+
size?: string | undefined;
|
|
470
|
+
email?: string | null | undefined;
|
|
476
471
|
domain?: string | null | undefined;
|
|
477
472
|
urls?: {
|
|
478
473
|
value: string;
|
|
479
474
|
}[] | null | undefined;
|
|
480
|
-
base_role?: "
|
|
475
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
481
476
|
} | undefined;
|
|
482
477
|
team?: {
|
|
483
478
|
id?: string | undefined;
|
|
484
|
-
name?: string | undefined;
|
|
485
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
486
|
-
description?: string | null | undefined;
|
|
487
479
|
org_id?: string | undefined;
|
|
488
480
|
created_at?: string | undefined;
|
|
489
|
-
|
|
481
|
+
name?: string | undefined;
|
|
482
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
483
|
+
description?: string | null | undefined;
|
|
484
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
490
485
|
} | undefined;
|
|
491
486
|
user_id?: string | undefined;
|
|
492
|
-
asset_type?: "
|
|
487
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
488
|
+
metadata?: z.objectOutputType<{
|
|
489
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
490
|
+
cron: z.ZodString;
|
|
491
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
492
|
+
cron: z.ZodString;
|
|
493
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
494
|
+
cron: z.ZodString;
|
|
495
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
496
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
493
497
|
created_at?: string | undefined;
|
|
494
498
|
last_updated?: string | undefined;
|
|
499
|
+
name?: string | undefined;
|
|
500
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
501
|
+
description?: string | null | undefined;
|
|
495
502
|
parent_id?: string | null | undefined;
|
|
503
|
+
parent?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
496
504
|
slug?: string | null | undefined;
|
|
497
505
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
498
506
|
price?: number | null | undefined;
|
|
@@ -502,23 +510,9 @@ declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
502
510
|
product_id?: string | null | undefined;
|
|
503
511
|
price_id?: string | null | undefined;
|
|
504
512
|
preview?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
513
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
505
514
|
}, {
|
|
506
515
|
name_url_slug: string;
|
|
507
|
-
id?: string | undefined;
|
|
508
|
-
state?: "error" | "in-progress" | "success" | "queued" | null | undefined;
|
|
509
|
-
name?: string | undefined;
|
|
510
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
511
|
-
metadata?: z.objectInputType<{
|
|
512
|
-
schedule: z.ZodOptional<z.ZodObject<{
|
|
513
|
-
cron: z.ZodString;
|
|
514
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
515
|
-
cron: z.ZodString;
|
|
516
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
517
|
-
cron: z.ZodString;
|
|
518
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
519
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
520
|
-
description?: string | null | undefined;
|
|
521
|
-
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
522
516
|
user?: {
|
|
523
517
|
id?: string | undefined;
|
|
524
518
|
user_id?: string | undefined;
|
|
@@ -528,37 +522,52 @@ declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
528
522
|
}[] | undefined;
|
|
529
523
|
username?: string | null | undefined;
|
|
530
524
|
bio?: string | null | undefined;
|
|
525
|
+
post_id?: string | null | undefined;
|
|
531
526
|
last_active?: string | undefined;
|
|
532
527
|
} | undefined;
|
|
533
528
|
organization?: {
|
|
534
529
|
id?: string | undefined;
|
|
535
530
|
name?: string | undefined;
|
|
536
|
-
size?: string | undefined;
|
|
537
|
-
email?: string | null | undefined;
|
|
538
531
|
avatar_path?: string | null | undefined;
|
|
539
532
|
mission?: string | null | undefined;
|
|
533
|
+
size?: string | undefined;
|
|
534
|
+
email?: string | null | undefined;
|
|
540
535
|
domain?: string | null | undefined;
|
|
541
536
|
urls?: {
|
|
542
537
|
value: string;
|
|
543
538
|
}[] | null | undefined;
|
|
544
|
-
base_role?: "
|
|
539
|
+
base_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
545
540
|
} | undefined;
|
|
546
541
|
team?: {
|
|
547
542
|
id?: string | undefined;
|
|
548
|
-
name?: string | undefined;
|
|
549
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | undefined;
|
|
550
|
-
description?: string | null | undefined;
|
|
551
543
|
org_id?: string | undefined;
|
|
552
544
|
created_at?: string | undefined;
|
|
553
|
-
|
|
545
|
+
name?: string | undefined;
|
|
546
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
547
|
+
description?: string | null | undefined;
|
|
548
|
+
default_role?: "admin" | "read" | "write" | "none" | undefined;
|
|
554
549
|
} | undefined;
|
|
550
|
+
id?: string | undefined;
|
|
555
551
|
user_id?: string | undefined;
|
|
556
552
|
org_id?: string | undefined;
|
|
557
|
-
asset_type?: "
|
|
553
|
+
asset_type?: "user" | "organization" | "team" | "dataset" | "file" | "service" | "route" | "post" | "comment" | "conversation" | "blueprint" | "replication" | undefined;
|
|
554
|
+
metadata?: z.objectInputType<{
|
|
555
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
556
|
+
cron: z.ZodString;
|
|
557
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
558
|
+
cron: z.ZodString;
|
|
559
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
560
|
+
cron: z.ZodString;
|
|
561
|
+
}, z.ZodTypeAny, "passthrough">>>;
|
|
562
|
+
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
558
563
|
created_at?: string | undefined;
|
|
559
564
|
last_updated?: string | undefined;
|
|
565
|
+
name?: string | undefined;
|
|
560
566
|
team_id?: string | undefined;
|
|
567
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | undefined;
|
|
568
|
+
description?: string | null | undefined;
|
|
561
569
|
parent_id?: string | null | undefined;
|
|
570
|
+
parent?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
562
571
|
slug?: string | null | undefined;
|
|
563
572
|
monetization?: "none" | "pay-to-unlock" | "pay-per-use" | undefined;
|
|
564
573
|
price?: number | null | undefined;
|
|
@@ -568,6 +577,7 @@ declare const CreateReplicationSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
568
577
|
product_id?: string | null | undefined;
|
|
569
578
|
price_id?: string | null | undefined;
|
|
570
579
|
preview?: z.objectInputType<{}, z.ZodTypeAny, "passthrough">[] | null | undefined;
|
|
580
|
+
state?: "queued" | "in-progress" | "success" | "error" | null | undefined;
|
|
571
581
|
}>;
|
|
572
582
|
declare const UpdateReplicationSchema: z.ZodObject<{
|
|
573
583
|
team_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -579,22 +589,22 @@ declare const UpdateReplicationSchema: z.ZodObject<{
|
|
|
579
589
|
last_updated: z.ZodDefault<z.ZodString>;
|
|
580
590
|
}, "strip", z.ZodTypeAny, {
|
|
581
591
|
last_updated: string;
|
|
582
|
-
name?: string | null | undefined;
|
|
583
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | null | undefined;
|
|
584
592
|
metadata?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
585
|
-
|
|
593
|
+
name?: string | null | undefined;
|
|
586
594
|
team_id?: string | null | undefined;
|
|
595
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | null | undefined;
|
|
596
|
+
description?: string | null | undefined;
|
|
587
597
|
name_url_slug?: string | null | undefined;
|
|
588
598
|
}, {
|
|
589
|
-
name?: string | null | undefined;
|
|
590
|
-
visibility?: "inherit" | "private" | "public" | "organization" | "monetized" | null | undefined;
|
|
591
599
|
metadata?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | null | undefined;
|
|
592
|
-
description?: string | null | undefined;
|
|
593
600
|
last_updated?: string | undefined;
|
|
601
|
+
name?: string | null | undefined;
|
|
594
602
|
team_id?: string | null | undefined;
|
|
603
|
+
visibility?: "organization" | "public" | "private" | "monetized" | "inherit" | null | undefined;
|
|
604
|
+
description?: string | null | undefined;
|
|
595
605
|
name_url_slug?: string | null | undefined;
|
|
596
606
|
}>;
|
|
597
|
-
|
|
598
|
-
type
|
|
599
|
-
type
|
|
600
|
-
export
|
|
607
|
+
export { ReplicationSchema, CreateReplicationSchema, UpdateReplicationSchema };
|
|
608
|
+
export type Replication = z.infer<typeof ReplicationSchema>;
|
|
609
|
+
export type CreateReplication = z.infer<typeof CreateReplicationSchema>;
|
|
610
|
+
export type UpdateReplication = z.infer<typeof UpdateReplicationSchema>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{uuidv7 as t}from"uuidv7";import{z as i}from"zod";import{AssetSchema as e}from"./assets.esm.js";import{AssetTypeSchema as a,VisibilitySchema as o}from"./common.esm.js";const l=e.extend({asset_type:a.refine((t=>"replication"===t)),metadata:i.object({schedule:i.object({cron:i.string()}).passthrough().optional()}).passthrough()}),n=l.partial().extend({id:i.string().uuid().default((()=>t())),team_id:i.string().uuid().default("00000000-0000-0000-0000-000000000000"),org_id:i.string().uuid().default("00000000-0000-0000-0000-000000000000"),name_url_slug:i.string()}),s=i.object({team_id:i.string().uuid().nullable().optional(),name_url_slug:i.string().nullable().optional(),name:i.string().nullable().optional(),description:i.string().nullable().optional(),visibility:o.nullable().optional(),metadata:i.object({}).passthrough().optional().nullable(),last_updated:i.string().default((()=>(new Date).toISOString()))});export{n as CreateReplicationSchema,l as ReplicationSchema,s as UpdateReplicationSchema};
|
|
2
|
+
//# sourceMappingURL=replications.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"replications.esm.js","sources":["../../src/schema/replications.ts"],"sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport { z } from \"zod\";\n\nimport { AssetSchema } from \"./assets\";\nimport { AssetTypeSchema, VisibilitySchema } from \"./common\";\n\nconst ReplicationSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.refine((val) => val === \"replication\"),\n metadata: z\n .object({\n schedule: z\n .object({\n cron: z.string(),\n })\n .passthrough()\n .optional(),\n })\n .passthrough(),\n});\n\nconst CreateReplicationSchema = ReplicationSchema.partial().extend({\n id: z\n .string()\n .uuid()\n .default(() => uuidv7()),\n team_id: z.string().uuid().default(\"00000000-0000-0000-0000-000000000000\"),\n org_id: z.string().uuid().default(\"00000000-0000-0000-0000-000000000000\"),\n name_url_slug: z.string(),\n});\n\nconst UpdateReplicationSchema = z.object({\n team_id: z.string().uuid().nullable().optional(),\n name_url_slug: z.string().nullable().optional(),\n name: z.string().nullable().optional(),\n description: z.string().nullable().optional(),\n visibility: VisibilitySchema.nullable().optional(),\n metadata: z.object({}).passthrough().optional().nullable(),\n last_updated: z.string().default(() => new Date().toISOString()),\n});\n\nexport { ReplicationSchema, CreateReplicationSchema, UpdateReplicationSchema };\nexport type Replication = z.infer<typeof ReplicationSchema>;\nexport type CreateReplication = z.infer<typeof CreateReplicationSchema>;\nexport type UpdateReplication = z.infer<typeof UpdateReplicationSchema>;\n"],"names":["ReplicationSchema","AssetSchema","extend","asset_type","AssetTypeSchema","refine","val","metadata","z","object","schedule","cron","string","passthrough","optional","CreateReplicationSchema","partial","id","uuid","default","uuidv7","team_id","org_id","name_url_slug","UpdateReplicationSchema","nullable","name","description","visibility","VisibilitySchema","last_updated","Date","toISOString"],"mappings":"8KAMA,MAAMA,EAAoBC,EAAYC,OAAO,CAC3CC,WAAYC,EAAgBC,QAAQC,GAAgB,gBAARA,IAC5CC,SAAUC,EACPC,OAAO,CACNC,SAAUF,EACPC,OAAO,CACNE,KAAMH,EAAEI,WAETC,cACAC,aAEJD,gBAGCE,EAA0Bf,EAAkBgB,UAAUd,OAAO,CACjEe,GAAIT,EACDI,SACAM,OACAC,SAAQ,IAAMC,MACjBC,QAASb,EAAEI,SAASM,OAAOC,QAAQ,wCACnCG,OAAQd,EAAEI,SAASM,OAAOC,QAAQ,wCAClCI,cAAef,EAAEI,WAGbY,EAA0BhB,EAAEC,OAAO,CACvCY,QAASb,EAAEI,SAASM,OAAOO,WAAWX,WACtCS,cAAef,EAAEI,SAASa,WAAWX,WACrCY,KAAMlB,EAAEI,SAASa,WAAWX,WAC5Ba,YAAanB,EAAEI,SAASa,WAAWX,WACnCc,WAAYC,EAAiBJ,WAAWX,WACxCP,SAAUC,EAAEC,OAAO,CAAE,GAAEI,cAAcC,WAAWW,WAChDK,aAActB,EAAEI,SAASO,SAAQ,KAAM,IAAIY,MAAOC"}
|
|
@@ -1,42 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
exports.UpdateReplicationSchema = exports.CreateReplicationSchema = exports.ReplicationSchema = void 0;
|
|
4
|
-
const uuidv7_1 = require("uuidv7");
|
|
5
|
-
const zod_1 = require("zod");
|
|
6
|
-
const assets_1 = require("./assets");
|
|
7
|
-
const common_1 = require("./common");
|
|
8
|
-
const ReplicationSchema = assets_1.AssetSchema.extend({
|
|
9
|
-
asset_type: common_1.AssetTypeSchema.refine((val) => val === "replication"),
|
|
10
|
-
metadata: zod_1.z
|
|
11
|
-
.object({
|
|
12
|
-
schedule: zod_1.z
|
|
13
|
-
.object({
|
|
14
|
-
cron: zod_1.z.string(),
|
|
15
|
-
})
|
|
16
|
-
.passthrough()
|
|
17
|
-
.optional(),
|
|
18
|
-
})
|
|
19
|
-
.passthrough(),
|
|
20
|
-
});
|
|
21
|
-
exports.ReplicationSchema = ReplicationSchema;
|
|
22
|
-
const CreateReplicationSchema = ReplicationSchema.partial().extend({
|
|
23
|
-
id: zod_1.z
|
|
24
|
-
.string()
|
|
25
|
-
.uuid()
|
|
26
|
-
.default(() => (0, uuidv7_1.uuidv7)()),
|
|
27
|
-
team_id: zod_1.z.string().uuid().default("00000000-0000-0000-0000-000000000000"),
|
|
28
|
-
org_id: zod_1.z.string().uuid().default("00000000-0000-0000-0000-000000000000"),
|
|
29
|
-
name_url_slug: zod_1.z.string(),
|
|
30
|
-
});
|
|
31
|
-
exports.CreateReplicationSchema = CreateReplicationSchema;
|
|
32
|
-
const UpdateReplicationSchema = zod_1.z.object({
|
|
33
|
-
team_id: zod_1.z.string().uuid().nullable().optional(),
|
|
34
|
-
name_url_slug: zod_1.z.string().nullable().optional(),
|
|
35
|
-
name: zod_1.z.string().nullable().optional(),
|
|
36
|
-
description: zod_1.z.string().nullable().optional(),
|
|
37
|
-
visibility: common_1.VisibilitySchema.nullable().optional(),
|
|
38
|
-
metadata: zod_1.z.object({}).passthrough().optional().nullable(),
|
|
39
|
-
last_updated: zod_1.z.string().default(() => new Date().toISOString()),
|
|
40
|
-
});
|
|
41
|
-
exports.UpdateReplicationSchema = UpdateReplicationSchema;
|
|
42
|
-
//# sourceMappingURL=replications.js.map
|
|
1
|
+
"use strict";var e=require("uuidv7"),t=require("zod"),i=require("./assets.js"),a=require("./common.js");const l=i.AssetSchema.extend({asset_type:a.AssetTypeSchema.refine((e=>"replication"===e)),metadata:t.z.object({schedule:t.z.object({cron:t.z.string()}).passthrough().optional()}).passthrough()}),s=l.partial().extend({id:t.z.string().uuid().default((()=>e.uuidv7())),team_id:t.z.string().uuid().default("00000000-0000-0000-0000-000000000000"),org_id:t.z.string().uuid().default("00000000-0000-0000-0000-000000000000"),name_url_slug:t.z.string()}),n=t.z.object({team_id:t.z.string().uuid().nullable().optional(),name_url_slug:t.z.string().nullable().optional(),name:t.z.string().nullable().optional(),description:t.z.string().nullable().optional(),visibility:a.VisibilitySchema.nullable().optional(),metadata:t.z.object({}).passthrough().optional().nullable(),last_updated:t.z.string().default((()=>(new Date).toISOString()))});exports.CreateReplicationSchema=s,exports.ReplicationSchema=l,exports.UpdateReplicationSchema=n;
|
|
2
|
+
//# sourceMappingURL=replications.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replications.js","
|
|
1
|
+
{"version":3,"file":"replications.js","sources":["../../src/schema/replications.ts"],"sourcesContent":["import { uuidv7 } from \"uuidv7\";\nimport { z } from \"zod\";\n\nimport { AssetSchema } from \"./assets\";\nimport { AssetTypeSchema, VisibilitySchema } from \"./common\";\n\nconst ReplicationSchema = AssetSchema.extend({\n asset_type: AssetTypeSchema.refine((val) => val === \"replication\"),\n metadata: z\n .object({\n schedule: z\n .object({\n cron: z.string(),\n })\n .passthrough()\n .optional(),\n })\n .passthrough(),\n});\n\nconst CreateReplicationSchema = ReplicationSchema.partial().extend({\n id: z\n .string()\n .uuid()\n .default(() => uuidv7()),\n team_id: z.string().uuid().default(\"00000000-0000-0000-0000-000000000000\"),\n org_id: z.string().uuid().default(\"00000000-0000-0000-0000-000000000000\"),\n name_url_slug: z.string(),\n});\n\nconst UpdateReplicationSchema = z.object({\n team_id: z.string().uuid().nullable().optional(),\n name_url_slug: z.string().nullable().optional(),\n name: z.string().nullable().optional(),\n description: z.string().nullable().optional(),\n visibility: VisibilitySchema.nullable().optional(),\n metadata: z.object({}).passthrough().optional().nullable(),\n last_updated: z.string().default(() => new Date().toISOString()),\n});\n\nexport { ReplicationSchema, CreateReplicationSchema, UpdateReplicationSchema };\nexport type Replication = z.infer<typeof ReplicationSchema>;\nexport type CreateReplication = z.infer<typeof CreateReplicationSchema>;\nexport type UpdateReplication = z.infer<typeof UpdateReplicationSchema>;\n"],"names":["ReplicationSchema","AssetSchema","extend","asset_type","AssetTypeSchema","refine","val","metadata","z","object","schedule","cron","string","passthrough","optional","CreateReplicationSchema","partial","id","uuid","default","uuidv7","team_id","org_id","name_url_slug","UpdateReplicationSchema","nullable","name","description","visibility","VisibilitySchema","last_updated","Date","toISOString"],"mappings":"wGAMA,MAAMA,EAAoBC,EAAWA,YAACC,OAAO,CAC3CC,WAAYC,EAAeA,gBAACC,QAAQC,GAAgB,gBAARA,IAC5CC,SAAUC,EAAAA,EACPC,OAAO,CACNC,SAAUF,EAAAA,EACPC,OAAO,CACNE,KAAMH,EAACA,EAACI,WAETC,cACAC,aAEJD,gBAGCE,EAA0Bf,EAAkBgB,UAAUd,OAAO,CACjEe,GAAIT,EAAAA,EACDI,SACAM,OACAC,SAAQ,IAAMC,EAAAA,WACjBC,QAASb,EAACA,EAACI,SAASM,OAAOC,QAAQ,wCACnCG,OAAQd,EAACA,EAACI,SAASM,OAAOC,QAAQ,wCAClCI,cAAef,EAACA,EAACI,WAGbY,EAA0BhB,EAACA,EAACC,OAAO,CACvCY,QAASb,EAACA,EAACI,SAASM,OAAOO,WAAWX,WACtCS,cAAef,EAAAA,EAAEI,SAASa,WAAWX,WACrCY,KAAMlB,EAAAA,EAAEI,SAASa,WAAWX,WAC5Ba,YAAanB,EAAAA,EAAEI,SAASa,WAAWX,WACnCc,WAAYC,EAAgBA,iBAACJ,WAAWX,WACxCP,SAAUC,EAAAA,EAAEC,OAAO,CAAE,GAAEI,cAAcC,WAAWW,WAChDK,aAActB,EAAAA,EAAEI,SAASO,SAAQ,KAAM,IAAIY,MAAOC"}
|