@uniformdev/webhooks 19.82.2-alpha.20 → 19.84.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/dist/index.d.mts +193 -1
- package/dist/index.d.ts +193 -1
- package/dist/index.esm.js +170 -62
- package/dist/index.js +177 -62
- package/dist/index.mjs +170 -62
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -27,6 +27,13 @@ __export(src_exports, {
|
|
|
27
27
|
CompositionPayloadSchema: () => CompositionPayloadSchema,
|
|
28
28
|
CompositionPublishedDefinition: () => CompositionPublishedDefinition,
|
|
29
29
|
CompositionPublishedEventName: () => CompositionPublishedEventName,
|
|
30
|
+
EntryChangedDefinition: () => EntryChangedDefinition,
|
|
31
|
+
EntryChangedEventName: () => EntryChangedEventName,
|
|
32
|
+
EntryDeletedDefinition: () => EntryDeletedDefinition,
|
|
33
|
+
EntryDeletedEventName: () => EntryDeletedEventName,
|
|
34
|
+
EntryPayloadSchema: () => EntryPayloadSchema,
|
|
35
|
+
EntryPublishedDefinition: () => EntryPublishedDefinition,
|
|
36
|
+
EntryPublishedEventName: () => EntryPublishedEventName,
|
|
30
37
|
ManifestPublishedDefinition: () => ManifestPublishedDefinition,
|
|
31
38
|
ManifestPublishedEventName: () => ManifestPublishedEventName,
|
|
32
39
|
ProjectMapDeleteDefinition: () => ProjectMapDeleteDefinition,
|
|
@@ -61,7 +68,9 @@ var CompositionPayloadSchema = import_zod.z.object({
|
|
|
61
68
|
id: import_zod.z.string(),
|
|
62
69
|
url: import_zod.z.string()
|
|
63
70
|
}),
|
|
64
|
-
edit_url: import_zod.z.string()
|
|
71
|
+
edit_url: import_zod.z.string(),
|
|
72
|
+
api_url: import_zod.z.string(),
|
|
73
|
+
edge_url: import_zod.z.string()
|
|
65
74
|
});
|
|
66
75
|
|
|
67
76
|
// src/definition.ts
|
|
@@ -93,7 +102,9 @@ var CompositionChangedDefinition = definition(
|
|
|
93
102
|
url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
|
|
94
103
|
},
|
|
95
104
|
state: 64,
|
|
96
|
-
edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474
|
|
105
|
+
edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`,
|
|
106
|
+
api_url: `https://uniform.app/api/v1/canvas?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64`,
|
|
107
|
+
edge_url: `https://uniform.global/api/v1/compositions?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64`
|
|
97
108
|
}
|
|
98
109
|
);
|
|
99
110
|
var CompositionChangedEventName = CompositionChangedDefinition["event"];
|
|
@@ -146,23 +157,120 @@ var CompositionPublishedDefinition = definition(
|
|
|
146
157
|
url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
|
|
147
158
|
},
|
|
148
159
|
state: 64,
|
|
149
|
-
edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474
|
|
160
|
+
edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`,
|
|
161
|
+
api_url: `https://uniform.app/api/v1/canvas?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64`,
|
|
162
|
+
edge_url: `https://uniform.global/api/v1/compositions?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64`
|
|
150
163
|
}
|
|
151
164
|
);
|
|
152
165
|
var CompositionPublishedEventName = CompositionPublishedDefinition["event"];
|
|
153
166
|
|
|
154
|
-
// src/
|
|
167
|
+
// src/entry/common.ts
|
|
155
168
|
var import_zod3 = require("zod");
|
|
169
|
+
var EntryPayloadSchema = import_zod3.z.object({
|
|
170
|
+
id: import_zod3.z.string(),
|
|
171
|
+
slug: import_zod3.z.string().optional(),
|
|
172
|
+
state: import_zod3.z.number(),
|
|
173
|
+
name: import_zod3.z.string(),
|
|
174
|
+
project: import_zod3.z.object({
|
|
175
|
+
id: import_zod3.z.string(),
|
|
176
|
+
url: import_zod3.z.string()
|
|
177
|
+
}),
|
|
178
|
+
edit_url: import_zod3.z.string(),
|
|
179
|
+
api_url: import_zod3.z.string(),
|
|
180
|
+
edge_url: import_zod3.z.string()
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
// src/entry/entry.changed.ts
|
|
184
|
+
var EntryChangedDefinition = definition(
|
|
185
|
+
{
|
|
186
|
+
event: "entry.changed",
|
|
187
|
+
name: "Entry Changed",
|
|
188
|
+
description: "Triggers when an entry has been changed.",
|
|
189
|
+
schema: EntryPayloadSchema
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
|
|
193
|
+
name: "About Us",
|
|
194
|
+
slug: "/about-us",
|
|
195
|
+
project: {
|
|
196
|
+
id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
|
|
197
|
+
url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
|
|
198
|
+
},
|
|
199
|
+
state: 64,
|
|
200
|
+
edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/entries/e5c95c60-314b-4700-9035-6f9c2a4ff800`,
|
|
201
|
+
api_url: `https://uniform.app/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64`,
|
|
202
|
+
edge_url: `https://uniform.global/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64`
|
|
203
|
+
}
|
|
204
|
+
);
|
|
205
|
+
var EntryChangedEventName = EntryChangedDefinition["event"];
|
|
206
|
+
|
|
207
|
+
// src/entry/entry.deleted.ts
|
|
208
|
+
var import_zod4 = require("zod");
|
|
209
|
+
var EntryDeletedDefinition = definition(
|
|
210
|
+
{
|
|
211
|
+
event: "entry.deleted",
|
|
212
|
+
name: "Entry Deleted",
|
|
213
|
+
description: "Triggers when an entry has been deleted.",
|
|
214
|
+
schema: import_zod4.z.object({
|
|
215
|
+
id: import_zod4.z.string(),
|
|
216
|
+
state: import_zod4.z.number().optional(),
|
|
217
|
+
name: import_zod4.z.string(),
|
|
218
|
+
slug: import_zod4.z.string().optional(),
|
|
219
|
+
project: import_zod4.z.object({
|
|
220
|
+
id: import_zod4.z.string(),
|
|
221
|
+
url: import_zod4.z.string()
|
|
222
|
+
})
|
|
223
|
+
})
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
|
|
227
|
+
name: "About Us",
|
|
228
|
+
slug: "/about-us",
|
|
229
|
+
project: {
|
|
230
|
+
id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
|
|
231
|
+
url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
|
|
232
|
+
},
|
|
233
|
+
state: 64
|
|
234
|
+
}
|
|
235
|
+
);
|
|
236
|
+
var EntryDeletedEventName = EntryDeletedDefinition["event"];
|
|
237
|
+
|
|
238
|
+
// src/entry/entry.published.ts
|
|
239
|
+
var EntryPublishedDefinition = definition(
|
|
240
|
+
{
|
|
241
|
+
event: "entry.published",
|
|
242
|
+
name: "Entry Published",
|
|
243
|
+
description: "Triggers when an entry has been published.",
|
|
244
|
+
schema: EntryPayloadSchema
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
|
|
248
|
+
name: "About Us",
|
|
249
|
+
slug: "/about-us",
|
|
250
|
+
project: {
|
|
251
|
+
id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
|
|
252
|
+
url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
|
|
253
|
+
},
|
|
254
|
+
state: 64,
|
|
255
|
+
edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/entries/e5c95c60-314b-4700-9035-6f9c2a4ff800`,
|
|
256
|
+
api_url: `https://uniform.app/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64`,
|
|
257
|
+
edge_url: `https://uniform.global/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64`
|
|
258
|
+
}
|
|
259
|
+
);
|
|
260
|
+
var EntryPublishedEventName = EntryPublishedDefinition["event"];
|
|
261
|
+
|
|
262
|
+
// src/manifest/manifest.published.ts
|
|
263
|
+
var import_zod5 = require("zod");
|
|
156
264
|
var ManifestPublishedDefinition = definition(
|
|
157
265
|
{
|
|
158
266
|
event: "manifest.published",
|
|
159
267
|
name: "Manifest Published",
|
|
160
268
|
description: "Triggers when a manifest has been published.",
|
|
161
|
-
schema:
|
|
162
|
-
timestamp:
|
|
163
|
-
site:
|
|
164
|
-
id:
|
|
165
|
-
name:
|
|
269
|
+
schema: import_zod5.z.object({
|
|
270
|
+
timestamp: import_zod5.z.number(),
|
|
271
|
+
site: import_zod5.z.object({
|
|
272
|
+
id: import_zod5.z.string(),
|
|
273
|
+
name: import_zod5.z.string()
|
|
166
274
|
})
|
|
167
275
|
})
|
|
168
276
|
},
|
|
@@ -177,16 +285,16 @@ var ManifestPublishedDefinition = definition(
|
|
|
177
285
|
var ManifestPublishedEventName = ManifestPublishedDefinition["event"];
|
|
178
286
|
|
|
179
287
|
// src/project-map/projectMap.delete.ts
|
|
180
|
-
var
|
|
288
|
+
var import_zod6 = require("zod");
|
|
181
289
|
var ProjectMapDeleteDefinition = definition(
|
|
182
290
|
{
|
|
183
291
|
event: "projectmap.delete",
|
|
184
292
|
name: "Project Map Deleted",
|
|
185
293
|
description: "Triggers when a project map is deleted.",
|
|
186
|
-
schema:
|
|
187
|
-
id:
|
|
188
|
-
base_url:
|
|
189
|
-
project_id:
|
|
294
|
+
schema: import_zod6.z.object({
|
|
295
|
+
id: import_zod6.z.string(),
|
|
296
|
+
base_url: import_zod6.z.string().optional(),
|
|
297
|
+
project_id: import_zod6.z.string()
|
|
190
298
|
})
|
|
191
299
|
},
|
|
192
300
|
{
|
|
@@ -198,18 +306,18 @@ var ProjectMapDeleteDefinition = definition(
|
|
|
198
306
|
var ProjectMapDeletedEventName = ProjectMapDeleteDefinition["event"];
|
|
199
307
|
|
|
200
308
|
// src/project-map/projectMap.node.delete.ts
|
|
201
|
-
var
|
|
309
|
+
var import_zod7 = require("zod");
|
|
202
310
|
var ProjectMapNodeDeleteDefinition = definition(
|
|
203
311
|
{
|
|
204
312
|
event: "projectmap.node.delete",
|
|
205
313
|
name: "Project Map Node Deleted",
|
|
206
314
|
description: "Triggers when a project map node is deleted.",
|
|
207
|
-
schema:
|
|
208
|
-
project_id:
|
|
209
|
-
project_map_id:
|
|
210
|
-
id:
|
|
211
|
-
path:
|
|
212
|
-
composition_id:
|
|
315
|
+
schema: import_zod7.z.object({
|
|
316
|
+
project_id: import_zod7.z.string(),
|
|
317
|
+
project_map_id: import_zod7.z.string(),
|
|
318
|
+
id: import_zod7.z.string(),
|
|
319
|
+
path: import_zod7.z.string(),
|
|
320
|
+
composition_id: import_zod7.z.string().optional()
|
|
213
321
|
})
|
|
214
322
|
},
|
|
215
323
|
{
|
|
@@ -223,18 +331,18 @@ var ProjectMapNodeDeleteDefinition = definition(
|
|
|
223
331
|
var ProjectMapNodeDeletedEventName = ProjectMapNodeDeleteDefinition["event"];
|
|
224
332
|
|
|
225
333
|
// src/project-map/projectMap.node.insert.ts
|
|
226
|
-
var
|
|
334
|
+
var import_zod8 = require("zod");
|
|
227
335
|
var ProjectMapNodeInsertDefinition = definition(
|
|
228
336
|
{
|
|
229
337
|
event: "projectmap.node.insert",
|
|
230
338
|
name: "Project Map Node Inserted",
|
|
231
339
|
description: "Triggers when a project map node is inserted.",
|
|
232
|
-
schema:
|
|
233
|
-
id:
|
|
234
|
-
project_map_id:
|
|
235
|
-
project_id:
|
|
236
|
-
path:
|
|
237
|
-
composition_id:
|
|
340
|
+
schema: import_zod8.z.object({
|
|
341
|
+
id: import_zod8.z.string(),
|
|
342
|
+
project_map_id: import_zod8.z.string(),
|
|
343
|
+
project_id: import_zod8.z.string(),
|
|
344
|
+
path: import_zod8.z.string(),
|
|
345
|
+
composition_id: import_zod8.z.string().optional()
|
|
238
346
|
})
|
|
239
347
|
},
|
|
240
348
|
{
|
|
@@ -248,19 +356,19 @@ var ProjectMapNodeInsertDefinition = definition(
|
|
|
248
356
|
var ProjectMapNodeInsertedEventName = ProjectMapNodeInsertDefinition["event"];
|
|
249
357
|
|
|
250
358
|
// src/project-map/projectMap.node.update.ts
|
|
251
|
-
var
|
|
359
|
+
var import_zod9 = require("zod");
|
|
252
360
|
var ProjectMapNodeUpdateDefinition = definition(
|
|
253
361
|
{
|
|
254
362
|
event: "projectmap.node.update",
|
|
255
363
|
name: "Project Map Node Updated",
|
|
256
364
|
description: "Triggers when a project map node is updated.",
|
|
257
|
-
schema:
|
|
258
|
-
id:
|
|
259
|
-
project_map_id:
|
|
260
|
-
project_id:
|
|
261
|
-
path:
|
|
262
|
-
composition_id:
|
|
263
|
-
previous_path:
|
|
365
|
+
schema: import_zod9.z.object({
|
|
366
|
+
id: import_zod9.z.string(),
|
|
367
|
+
project_map_id: import_zod9.z.string(),
|
|
368
|
+
project_id: import_zod9.z.string(),
|
|
369
|
+
path: import_zod9.z.string(),
|
|
370
|
+
composition_id: import_zod9.z.string().optional(),
|
|
371
|
+
previous_path: import_zod9.z.string()
|
|
264
372
|
})
|
|
265
373
|
},
|
|
266
374
|
{
|
|
@@ -275,16 +383,16 @@ var ProjectMapNodeUpdateDefinition = definition(
|
|
|
275
383
|
var ProjectMapNodeUpdatedEventName = ProjectMapNodeUpdateDefinition["event"];
|
|
276
384
|
|
|
277
385
|
// src/project-map/projectMap.update.ts
|
|
278
|
-
var
|
|
386
|
+
var import_zod10 = require("zod");
|
|
279
387
|
var ProjectMapUpdateDefinition = definition(
|
|
280
388
|
{
|
|
281
389
|
event: "projectmap.update",
|
|
282
390
|
name: "Project Map Updated",
|
|
283
391
|
description: "Triggers when a project map is updated or created.",
|
|
284
|
-
schema:
|
|
285
|
-
id:
|
|
286
|
-
base_url:
|
|
287
|
-
project_id:
|
|
392
|
+
schema: import_zod10.z.object({
|
|
393
|
+
id: import_zod10.z.string(),
|
|
394
|
+
base_url: import_zod10.z.string().optional(),
|
|
395
|
+
project_id: import_zod10.z.string()
|
|
288
396
|
})
|
|
289
397
|
},
|
|
290
398
|
{
|
|
@@ -296,18 +404,18 @@ var ProjectMapUpdateDefinition = definition(
|
|
|
296
404
|
var ProjectMapUpdatedEventName = ProjectMapUpdateDefinition["event"];
|
|
297
405
|
|
|
298
406
|
// src/redirect/redirect.delete.ts
|
|
299
|
-
var
|
|
407
|
+
var import_zod11 = require("zod");
|
|
300
408
|
var RedirectDeleteDefinition = definition(
|
|
301
409
|
{
|
|
302
410
|
event: "redirect.delete",
|
|
303
411
|
name: "Redirect Deleted",
|
|
304
412
|
description: "Triggers when a redirect is deleted.",
|
|
305
|
-
schema:
|
|
306
|
-
project_id:
|
|
307
|
-
id:
|
|
308
|
-
source_url:
|
|
309
|
-
target_url:
|
|
310
|
-
target_status_code:
|
|
413
|
+
schema: import_zod11.z.object({
|
|
414
|
+
project_id: import_zod11.z.string(),
|
|
415
|
+
id: import_zod11.z.string(),
|
|
416
|
+
source_url: import_zod11.z.string(),
|
|
417
|
+
target_url: import_zod11.z.string(),
|
|
418
|
+
target_status_code: import_zod11.z.number()
|
|
311
419
|
})
|
|
312
420
|
},
|
|
313
421
|
{
|
|
@@ -321,18 +429,18 @@ var RedirectDeleteDefinition = definition(
|
|
|
321
429
|
var RedirectDeletedEventName = RedirectDeleteDefinition["event"];
|
|
322
430
|
|
|
323
431
|
// src/redirect/redirect.insert.ts
|
|
324
|
-
var
|
|
432
|
+
var import_zod12 = require("zod");
|
|
325
433
|
var RedirectInsertDefinition = definition(
|
|
326
434
|
{
|
|
327
435
|
event: "redirect.insert",
|
|
328
436
|
name: "Redirect Inserted",
|
|
329
437
|
description: "Triggers when a redirect is inserted.",
|
|
330
|
-
schema:
|
|
331
|
-
project_id:
|
|
332
|
-
id:
|
|
333
|
-
source_url:
|
|
334
|
-
target_url:
|
|
335
|
-
target_status_code:
|
|
438
|
+
schema: import_zod12.z.object({
|
|
439
|
+
project_id: import_zod12.z.string(),
|
|
440
|
+
id: import_zod12.z.string(),
|
|
441
|
+
source_url: import_zod12.z.string(),
|
|
442
|
+
target_url: import_zod12.z.string(),
|
|
443
|
+
target_status_code: import_zod12.z.number()
|
|
336
444
|
})
|
|
337
445
|
},
|
|
338
446
|
{
|
|
@@ -346,18 +454,18 @@ var RedirectInsertDefinition = definition(
|
|
|
346
454
|
var RedirectInsertedEventName = RedirectInsertDefinition["event"];
|
|
347
455
|
|
|
348
456
|
// src/redirect/redirect.update.ts
|
|
349
|
-
var
|
|
457
|
+
var import_zod13 = require("zod");
|
|
350
458
|
var RedirectUpdateDefinition = definition(
|
|
351
459
|
{
|
|
352
460
|
event: "redirect.update",
|
|
353
461
|
name: "Redirect Updated",
|
|
354
462
|
description: "Triggers when a redirect is updated.",
|
|
355
|
-
schema:
|
|
356
|
-
project_id:
|
|
357
|
-
id:
|
|
358
|
-
source_url:
|
|
359
|
-
target_url:
|
|
360
|
-
target_status_code:
|
|
463
|
+
schema: import_zod13.z.object({
|
|
464
|
+
project_id: import_zod13.z.string(),
|
|
465
|
+
id: import_zod13.z.string(),
|
|
466
|
+
source_url: import_zod13.z.string(),
|
|
467
|
+
target_url: import_zod13.z.string(),
|
|
468
|
+
target_status_code: import_zod13.z.number()
|
|
361
469
|
})
|
|
362
470
|
},
|
|
363
471
|
{
|
|
@@ -378,6 +486,13 @@ var RedirectUpdatedEventName = RedirectUpdateDefinition["event"];
|
|
|
378
486
|
CompositionPayloadSchema,
|
|
379
487
|
CompositionPublishedDefinition,
|
|
380
488
|
CompositionPublishedEventName,
|
|
489
|
+
EntryChangedDefinition,
|
|
490
|
+
EntryChangedEventName,
|
|
491
|
+
EntryDeletedDefinition,
|
|
492
|
+
EntryDeletedEventName,
|
|
493
|
+
EntryPayloadSchema,
|
|
494
|
+
EntryPublishedDefinition,
|
|
495
|
+
EntryPublishedEventName,
|
|
381
496
|
ManifestPublishedDefinition,
|
|
382
497
|
ManifestPublishedEventName,
|
|
383
498
|
ProjectMapDeleteDefinition,
|