@uniformdev/webhooks 19.79.1-alpha.11 → 19.79.1-alpha.13

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.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,
@@ -57,11 +64,14 @@ var CompositionPayloadSchema = import_zod.z.object({
57
64
  slug: import_zod.z.string().optional(),
58
65
  state: import_zod.z.number(),
59
66
  name: import_zod.z.string(),
67
+ type: import_zod.z.string(),
60
68
  project: import_zod.z.object({
61
69
  id: import_zod.z.string(),
62
70
  url: import_zod.z.string()
63
71
  }),
64
- edit_url: import_zod.z.string()
72
+ edit_url: import_zod.z.string(),
73
+ api_url: import_zod.z.string(),
74
+ edge_url: import_zod.z.string()
65
75
  });
66
76
 
67
77
  // src/definition.ts
@@ -88,12 +98,15 @@ var CompositionChangedDefinition = definition(
88
98
  id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
89
99
  name: "About Us",
90
100
  slug: "/about-us",
101
+ type: "page",
91
102
  project: {
92
103
  id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
93
104
  url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
94
105
  },
95
106
  state: 64,
96
- edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`
107
+ edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`,
108
+ api_url: `https://uniform.app/api/v1/canvas?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64`,
109
+ edge_url: `https://uniform.global/api/v1/compositions?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64`
97
110
  }
98
111
  );
99
112
  var CompositionChangedEventName = CompositionChangedDefinition["event"];
@@ -109,6 +122,7 @@ var CompositionDeletedDefinition = definition(
109
122
  id: import_zod2.z.string(),
110
123
  state: import_zod2.z.number().optional(),
111
124
  name: import_zod2.z.string(),
125
+ type: import_zod2.z.string(),
112
126
  slug: import_zod2.z.string().optional(),
113
127
  project: import_zod2.z.object({
114
128
  id: import_zod2.z.string(),
@@ -120,6 +134,7 @@ var CompositionDeletedDefinition = definition(
120
134
  id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
121
135
  state: 64,
122
136
  name: "About Us",
137
+ type: "page",
123
138
  slug: "/about-us",
124
139
  project: {
125
140
  id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
@@ -141,28 +156,131 @@ var CompositionPublishedDefinition = definition(
141
156
  id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
142
157
  name: "About Us",
143
158
  slug: "/about-us",
159
+ type: "page",
144
160
  project: {
145
161
  id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
146
162
  url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
147
163
  },
148
164
  state: 64,
149
- edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`
165
+ edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`,
166
+ api_url: `https://uniform.app/api/v1/canvas?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64`,
167
+ edge_url: `https://uniform.global/api/v1/compositions?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64`
150
168
  }
151
169
  );
152
170
  var CompositionPublishedEventName = CompositionPublishedDefinition["event"];
153
171
 
154
- // src/manifest/manifest.published.ts
172
+ // src/entry/common.ts
155
173
  var import_zod3 = require("zod");
174
+ var EntryPayloadSchema = import_zod3.z.object({
175
+ id: import_zod3.z.string(),
176
+ slug: import_zod3.z.string().optional(),
177
+ state: import_zod3.z.number(),
178
+ name: import_zod3.z.string(),
179
+ type: import_zod3.z.string(),
180
+ project: import_zod3.z.object({
181
+ id: import_zod3.z.string(),
182
+ url: import_zod3.z.string()
183
+ }),
184
+ edit_url: import_zod3.z.string(),
185
+ api_url: import_zod3.z.string(),
186
+ edge_url: import_zod3.z.string()
187
+ });
188
+
189
+ // src/entry/entry.changed.ts
190
+ var EntryChangedDefinition = definition(
191
+ {
192
+ event: "entry.changed",
193
+ name: "Entry Changed",
194
+ description: "Triggers when an entry has been changed.",
195
+ schema: EntryPayloadSchema
196
+ },
197
+ {
198
+ id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
199
+ name: "About Us",
200
+ slug: "/about-us",
201
+ type: "page",
202
+ project: {
203
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
204
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
205
+ },
206
+ state: 64,
207
+ edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/entries/e5c95c60-314b-4700-9035-6f9c2a4ff800`,
208
+ api_url: `https://uniform.app/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64`,
209
+ edge_url: `https://uniform.global/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64`
210
+ }
211
+ );
212
+ var EntryChangedEventName = EntryChangedDefinition["event"];
213
+
214
+ // src/entry/entry.deleted.ts
215
+ var import_zod4 = require("zod");
216
+ var EntryDeletedDefinition = definition(
217
+ {
218
+ event: "entry.deleted",
219
+ name: "Entry Deleted",
220
+ description: "Triggers when an entry has been deleted.",
221
+ schema: import_zod4.z.object({
222
+ id: import_zod4.z.string(),
223
+ state: import_zod4.z.number().optional(),
224
+ name: import_zod4.z.string(),
225
+ type: import_zod4.z.string(),
226
+ slug: import_zod4.z.string().optional(),
227
+ project: import_zod4.z.object({
228
+ id: import_zod4.z.string(),
229
+ url: import_zod4.z.string()
230
+ })
231
+ })
232
+ },
233
+ {
234
+ id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
235
+ name: "About Us",
236
+ type: "page",
237
+ slug: "/about-us",
238
+ project: {
239
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
240
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
241
+ },
242
+ state: 64
243
+ }
244
+ );
245
+ var EntryDeletedEventName = EntryDeletedDefinition["event"];
246
+
247
+ // src/entry/entry.published.ts
248
+ var EntryPublishedDefinition = definition(
249
+ {
250
+ event: "entry.published",
251
+ name: "Entry Published",
252
+ description: "Triggers when an entry has been published.",
253
+ schema: EntryPayloadSchema
254
+ },
255
+ {
256
+ id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
257
+ name: "About Us",
258
+ slug: "/about-us",
259
+ type: "page",
260
+ project: {
261
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
262
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
263
+ },
264
+ state: 64,
265
+ edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/entries/e5c95c60-314b-4700-9035-6f9c2a4ff800`,
266
+ api_url: `https://uniform.app/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64`,
267
+ edge_url: `https://uniform.global/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64`
268
+ }
269
+ );
270
+ var EntryPublishedEventName = EntryPublishedDefinition["event"];
271
+
272
+ // src/manifest/manifest.published.ts
273
+ var import_zod5 = require("zod");
156
274
  var ManifestPublishedDefinition = definition(
157
275
  {
158
276
  event: "manifest.published",
159
277
  name: "Manifest Published",
160
278
  description: "Triggers when a manifest has been published.",
161
- schema: import_zod3.z.object({
162
- timestamp: import_zod3.z.number(),
163
- site: import_zod3.z.object({
164
- id: import_zod3.z.string(),
165
- name: import_zod3.z.string()
279
+ schema: import_zod5.z.object({
280
+ timestamp: import_zod5.z.number(),
281
+ site: import_zod5.z.object({
282
+ id: import_zod5.z.string(),
283
+ name: import_zod5.z.string()
166
284
  })
167
285
  })
168
286
  },
@@ -177,16 +295,16 @@ var ManifestPublishedDefinition = definition(
177
295
  var ManifestPublishedEventName = ManifestPublishedDefinition["event"];
178
296
 
179
297
  // src/project-map/projectMap.delete.ts
180
- var import_zod4 = require("zod");
298
+ var import_zod6 = require("zod");
181
299
  var ProjectMapDeleteDefinition = definition(
182
300
  {
183
301
  event: "projectmap.delete",
184
302
  name: "Project Map Deleted",
185
303
  description: "Triggers when a project map is deleted.",
186
- schema: import_zod4.z.object({
187
- id: import_zod4.z.string(),
188
- base_url: import_zod4.z.string().optional(),
189
- project_id: import_zod4.z.string()
304
+ schema: import_zod6.z.object({
305
+ id: import_zod6.z.string(),
306
+ base_url: import_zod6.z.string().optional(),
307
+ project_id: import_zod6.z.string()
190
308
  })
191
309
  },
192
310
  {
@@ -198,18 +316,18 @@ var ProjectMapDeleteDefinition = definition(
198
316
  var ProjectMapDeletedEventName = ProjectMapDeleteDefinition["event"];
199
317
 
200
318
  // src/project-map/projectMap.node.delete.ts
201
- var import_zod5 = require("zod");
319
+ var import_zod7 = require("zod");
202
320
  var ProjectMapNodeDeleteDefinition = definition(
203
321
  {
204
322
  event: "projectmap.node.delete",
205
323
  name: "Project Map Node Deleted",
206
324
  description: "Triggers when a project map node is deleted.",
207
- schema: import_zod5.z.object({
208
- project_id: import_zod5.z.string(),
209
- project_map_id: import_zod5.z.string(),
210
- id: import_zod5.z.string(),
211
- path: import_zod5.z.string(),
212
- composition_id: import_zod5.z.string().optional()
325
+ schema: import_zod7.z.object({
326
+ project_id: import_zod7.z.string(),
327
+ project_map_id: import_zod7.z.string(),
328
+ id: import_zod7.z.string(),
329
+ path: import_zod7.z.string(),
330
+ composition_id: import_zod7.z.string().optional()
213
331
  })
214
332
  },
215
333
  {
@@ -223,18 +341,18 @@ var ProjectMapNodeDeleteDefinition = definition(
223
341
  var ProjectMapNodeDeletedEventName = ProjectMapNodeDeleteDefinition["event"];
224
342
 
225
343
  // src/project-map/projectMap.node.insert.ts
226
- var import_zod6 = require("zod");
344
+ var import_zod8 = require("zod");
227
345
  var ProjectMapNodeInsertDefinition = definition(
228
346
  {
229
347
  event: "projectmap.node.insert",
230
348
  name: "Project Map Node Inserted",
231
349
  description: "Triggers when a project map node is inserted.",
232
- schema: import_zod6.z.object({
233
- id: import_zod6.z.string(),
234
- project_map_id: import_zod6.z.string(),
235
- project_id: import_zod6.z.string(),
236
- path: import_zod6.z.string(),
237
- composition_id: import_zod6.z.string().optional()
350
+ schema: import_zod8.z.object({
351
+ id: import_zod8.z.string(),
352
+ project_map_id: import_zod8.z.string(),
353
+ project_id: import_zod8.z.string(),
354
+ path: import_zod8.z.string(),
355
+ composition_id: import_zod8.z.string().optional()
238
356
  })
239
357
  },
240
358
  {
@@ -248,19 +366,19 @@ var ProjectMapNodeInsertDefinition = definition(
248
366
  var ProjectMapNodeInsertedEventName = ProjectMapNodeInsertDefinition["event"];
249
367
 
250
368
  // src/project-map/projectMap.node.update.ts
251
- var import_zod7 = require("zod");
369
+ var import_zod9 = require("zod");
252
370
  var ProjectMapNodeUpdateDefinition = definition(
253
371
  {
254
372
  event: "projectmap.node.update",
255
373
  name: "Project Map Node Updated",
256
374
  description: "Triggers when a project map node is updated.",
257
- schema: import_zod7.z.object({
258
- id: import_zod7.z.string(),
259
- project_map_id: import_zod7.z.string(),
260
- project_id: import_zod7.z.string(),
261
- path: import_zod7.z.string(),
262
- composition_id: import_zod7.z.string().optional(),
263
- previous_path: import_zod7.z.string()
375
+ schema: import_zod9.z.object({
376
+ id: import_zod9.z.string(),
377
+ project_map_id: import_zod9.z.string(),
378
+ project_id: import_zod9.z.string(),
379
+ path: import_zod9.z.string(),
380
+ composition_id: import_zod9.z.string().optional(),
381
+ previous_path: import_zod9.z.string()
264
382
  })
265
383
  },
266
384
  {
@@ -275,16 +393,16 @@ var ProjectMapNodeUpdateDefinition = definition(
275
393
  var ProjectMapNodeUpdatedEventName = ProjectMapNodeUpdateDefinition["event"];
276
394
 
277
395
  // src/project-map/projectMap.update.ts
278
- var import_zod8 = require("zod");
396
+ var import_zod10 = require("zod");
279
397
  var ProjectMapUpdateDefinition = definition(
280
398
  {
281
399
  event: "projectmap.update",
282
400
  name: "Project Map Updated",
283
401
  description: "Triggers when a project map is updated or created.",
284
- schema: import_zod8.z.object({
285
- id: import_zod8.z.string(),
286
- base_url: import_zod8.z.string().optional(),
287
- project_id: import_zod8.z.string()
402
+ schema: import_zod10.z.object({
403
+ id: import_zod10.z.string(),
404
+ base_url: import_zod10.z.string().optional(),
405
+ project_id: import_zod10.z.string()
288
406
  })
289
407
  },
290
408
  {
@@ -296,18 +414,18 @@ var ProjectMapUpdateDefinition = definition(
296
414
  var ProjectMapUpdatedEventName = ProjectMapUpdateDefinition["event"];
297
415
 
298
416
  // src/redirect/redirect.delete.ts
299
- var import_zod9 = require("zod");
417
+ var import_zod11 = require("zod");
300
418
  var RedirectDeleteDefinition = definition(
301
419
  {
302
420
  event: "redirect.delete",
303
421
  name: "Redirect Deleted",
304
422
  description: "Triggers when a redirect is deleted.",
305
- schema: import_zod9.z.object({
306
- project_id: import_zod9.z.string(),
307
- id: import_zod9.z.string(),
308
- source_url: import_zod9.z.string(),
309
- target_url: import_zod9.z.string(),
310
- target_status_code: import_zod9.z.number()
423
+ schema: import_zod11.z.object({
424
+ project_id: import_zod11.z.string(),
425
+ id: import_zod11.z.string(),
426
+ source_url: import_zod11.z.string(),
427
+ target_url: import_zod11.z.string(),
428
+ target_status_code: import_zod11.z.number()
311
429
  })
312
430
  },
313
431
  {
@@ -321,18 +439,18 @@ var RedirectDeleteDefinition = definition(
321
439
  var RedirectDeletedEventName = RedirectDeleteDefinition["event"];
322
440
 
323
441
  // src/redirect/redirect.insert.ts
324
- var import_zod10 = require("zod");
442
+ var import_zod12 = require("zod");
325
443
  var RedirectInsertDefinition = definition(
326
444
  {
327
445
  event: "redirect.insert",
328
446
  name: "Redirect Inserted",
329
447
  description: "Triggers when a redirect is inserted.",
330
- schema: import_zod10.z.object({
331
- project_id: import_zod10.z.string(),
332
- id: import_zod10.z.string(),
333
- source_url: import_zod10.z.string(),
334
- target_url: import_zod10.z.string(),
335
- target_status_code: import_zod10.z.number()
448
+ schema: import_zod12.z.object({
449
+ project_id: import_zod12.z.string(),
450
+ id: import_zod12.z.string(),
451
+ source_url: import_zod12.z.string(),
452
+ target_url: import_zod12.z.string(),
453
+ target_status_code: import_zod12.z.number()
336
454
  })
337
455
  },
338
456
  {
@@ -346,18 +464,18 @@ var RedirectInsertDefinition = definition(
346
464
  var RedirectInsertedEventName = RedirectInsertDefinition["event"];
347
465
 
348
466
  // src/redirect/redirect.update.ts
349
- var import_zod11 = require("zod");
467
+ var import_zod13 = require("zod");
350
468
  var RedirectUpdateDefinition = definition(
351
469
  {
352
470
  event: "redirect.update",
353
471
  name: "Redirect Updated",
354
472
  description: "Triggers when a redirect is updated.",
355
- schema: import_zod11.z.object({
356
- project_id: import_zod11.z.string(),
357
- id: import_zod11.z.string(),
358
- source_url: import_zod11.z.string(),
359
- target_url: import_zod11.z.string(),
360
- target_status_code: import_zod11.z.number()
473
+ schema: import_zod13.z.object({
474
+ project_id: import_zod13.z.string(),
475
+ id: import_zod13.z.string(),
476
+ source_url: import_zod13.z.string(),
477
+ target_url: import_zod13.z.string(),
478
+ target_status_code: import_zod13.z.number()
361
479
  })
362
480
  },
363
481
  {
@@ -378,6 +496,13 @@ var RedirectUpdatedEventName = RedirectUpdateDefinition["event"];
378
496
  CompositionPayloadSchema,
379
497
  CompositionPublishedDefinition,
380
498
  CompositionPublishedEventName,
499
+ EntryChangedDefinition,
500
+ EntryChangedEventName,
501
+ EntryDeletedDefinition,
502
+ EntryDeletedEventName,
503
+ EntryPayloadSchema,
504
+ EntryPublishedDefinition,
505
+ EntryPublishedEventName,
381
506
  ManifestPublishedDefinition,
382
507
  ManifestPublishedEventName,
383
508
  ProjectMapDeleteDefinition,