@uniformdev/webhooks 19.186.1 → 19.186.4-alpha.29

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.mjs CHANGED
@@ -2,6 +2,7 @@
2
2
  import { z } from "zod";
3
3
  var CompositionCorePayloadSchema = z.object({
4
4
  id: z.string(),
5
+ editionId: z.string().optional(),
5
6
  slug: z.string().optional(),
6
7
  name: z.string(),
7
8
  type: z.string(),
@@ -21,6 +22,11 @@ var CompositionDeletePayloadSchema = CompositionCorePayloadSchema.and(
21
22
  state: z.number().optional()
22
23
  })
23
24
  );
25
+ var CompositionRestorePayloadSchema = CompositionCorePayloadSchema.and(
26
+ z.object({
27
+ state: z.number()
28
+ })
29
+ );
24
30
  var CompositionPayloadSchema = CompositionCorePayloadSchema.and(
25
31
  z.object({
26
32
  state: z.number(),
@@ -58,6 +64,7 @@ var CompositionChangedDefinition = definition(
58
64
  },
59
65
  {
60
66
  id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
67
+ editionId: "8b937004-6c50-449a-a7cd-a6a70b25f2da",
61
68
  name: "About Us",
62
69
  slug: "/about-us",
63
70
  type: "page",
@@ -87,6 +94,7 @@ var CompositionDeletedDefinition = definition(
87
94
  },
88
95
  {
89
96
  id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
97
+ editionId: "8b937004-6c50-449a-a7cd-a6a70b25f2da",
90
98
  state: 64,
91
99
  name: "About Us",
92
100
  type: "page",
@@ -113,6 +121,7 @@ var CompositionPublishedDefinition = definition(
113
121
  },
114
122
  {
115
123
  id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
124
+ editionId: "8b937004-6c50-449a-a7cd-a6a70b25f2da",
116
125
  name: "About Us",
117
126
  slug: "/about-us",
118
127
  type: "page",
@@ -146,6 +155,7 @@ var CompositionReleaseChangedDefinition = definition(
146
155
  url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
147
156
  },
148
157
  id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
158
+ editionId: "8b937004-6c50-449a-a7cd-a6a70b25f2da",
149
159
  name: "About Us",
150
160
  slug: "/about-us",
151
161
  type: "page",
@@ -175,6 +185,7 @@ var CompositionReleaseDeletedDefinition = definition(
175
185
  url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
176
186
  },
177
187
  id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
188
+ editionId: "8b937004-6c50-449a-a7cd-a6a70b25f2da",
178
189
  state: 64,
179
190
  name: "About Us",
180
191
  type: "page",
@@ -201,6 +212,7 @@ var CompositionReleasePublishedDefinition = definition(
201
212
  url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
202
213
  },
203
214
  id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
215
+ editionId: "8b937004-6c50-449a-a7cd-a6a70b25f2da",
204
216
  name: "About Us",
205
217
  slug: "/about-us",
206
218
  type: "page",
@@ -216,10 +228,38 @@ var CompositionReleasePublishedDefinition = definition(
216
228
  );
217
229
  var CompositionReleasePublishedEventName = CompositionReleasePublishedDefinition["event"];
218
230
 
231
+ // src/composition/composition.release.restored.ts
232
+ var CompositionReleaseRestoredDefinition = definition(
233
+ {
234
+ event: "composition.release.restored",
235
+ name: "Composition Restored on Release",
236
+ description: "Triggers when a composition deleted in a pre-launch release is restored.",
237
+ schema: CompositionRestorePayloadSchema.and(ReleaseCompositionPayloadSchema)
238
+ },
239
+ {
240
+ release: {
241
+ id: "48293345-f2d0-1125-afda-7c661abad432",
242
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
243
+ },
244
+ id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
245
+ editionId: "8b937004-6c50-449a-a7cd-a6a70b25f2da",
246
+ state: 64,
247
+ name: "About Us",
248
+ type: "page",
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
+ }
255
+ );
256
+ var CompositionReleaseRestoredEventName = CompositionReleaseRestoredDefinition["event"];
257
+
219
258
  // src/entry/common.ts
220
259
  import { z as z2 } from "zod";
221
260
  var EntryCorePayloadSchema = z2.object({
222
261
  id: z2.string(),
262
+ editionId: z2.string().optional(),
223
263
  slug: z2.string().optional(),
224
264
  name: z2.string(),
225
265
  type: z2.string(),
@@ -239,6 +279,11 @@ var EntryDeletePayloadSchema = EntryCorePayloadSchema.and(
239
279
  state: z2.number().optional()
240
280
  })
241
281
  );
282
+ var EntryRestorePayloadSchema = EntryCorePayloadSchema.and(
283
+ z2.object({
284
+ state: z2.number()
285
+ })
286
+ );
242
287
  var EntryPayloadSchema = EntryCorePayloadSchema.and(
243
288
  z2.object({
244
289
  state: z2.number(),
@@ -264,6 +309,7 @@ var EntryChangedDefinition = definition(
264
309
  },
265
310
  {
266
311
  id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
312
+ editionId: "8b937004-6c50-449a-a7cd-a6a70b25f2da",
267
313
  name: "About Us",
268
314
  slug: "/about-us",
269
315
  type: "page",
@@ -293,6 +339,7 @@ var EntryDeletedDefinition = definition(
293
339
  },
294
340
  {
295
341
  id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
342
+ editionId: "8b937004-6c50-449a-a7cd-a6a70b25f2da",
296
343
  name: "About Us",
297
344
  type: "page",
298
345
  slug: "/about-us",
@@ -319,6 +366,7 @@ var EntryPublishedDefinition = definition(
319
366
  },
320
367
  {
321
368
  id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
369
+ editionId: "8b937004-6c50-449a-a7cd-a6a70b25f2da",
322
370
  name: "About Us",
323
371
  slug: "/about-us",
324
372
  type: "page",
@@ -352,6 +400,7 @@ var EntryReleaseChangedDefinition = definition(
352
400
  url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
353
401
  },
354
402
  id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
403
+ editionId: "8b937004-6c50-449a-a7cd-a6a70b25f2da",
355
404
  name: "About Us",
356
405
  slug: "/about-us",
357
406
  type: "page",
@@ -381,6 +430,7 @@ var EntryReleaseDeletedDefinition = definition(
381
430
  url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
382
431
  },
383
432
  id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
433
+ editionId: "8b937004-6c50-449a-a7cd-a6a70b25f2da",
384
434
  name: "About Us",
385
435
  type: "page",
386
436
  slug: "/about-us",
@@ -407,6 +457,7 @@ var EntryReleasePublishedDefinition = definition(
407
457
  url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
408
458
  },
409
459
  id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
460
+ editionId: "8b937004-6c50-449a-a7cd-a6a70b25f2da",
410
461
  name: "About Us",
411
462
  slug: "/about-us",
412
463
  type: "page",
@@ -422,6 +473,33 @@ var EntryReleasePublishedDefinition = definition(
422
473
  );
423
474
  var EntryReleasePublishedEventName = EntryReleasePublishedDefinition["event"];
424
475
 
476
+ // src/entry/entry.release.restored.ts
477
+ var EntryReleaseRestoredDefinition = definition(
478
+ {
479
+ event: "entry.release.restored",
480
+ name: "Entry Restored on Release",
481
+ description: "Triggers when an entry deleted in a pre-launch release is restored.",
482
+ schema: EntryRestorePayloadSchema.and(ReleaseEntryPayloadSchema)
483
+ },
484
+ {
485
+ release: {
486
+ id: "48293345-f2d0-1125-afda-7c661abad432",
487
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/releases/48293345-f2d0-1125-afda-7c661abad432`
488
+ },
489
+ id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
490
+ editionId: "8b937004-6c50-449a-a7cd-a6a70b25f2da",
491
+ name: "About Us",
492
+ type: "page",
493
+ slug: "/about-us",
494
+ project: {
495
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
496
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
497
+ },
498
+ state: 64
499
+ }
500
+ );
501
+ var EntryReleaseRestoredEventName = EntryReleaseRestoredDefinition["event"];
502
+
425
503
  // src/manifest/manifest.published.ts
426
504
  import { z as z3 } from "zod";
427
505
  var ManifestPublishedDefinition = definition(
@@ -842,6 +920,7 @@ var WorkflowEntitySchema = z13.strictObject({
842
920
  type: z13.enum(["entry", "component"]),
843
921
  name: z13.string(),
844
922
  id: z13.string(),
923
+ editionId: z13.string().optional(),
845
924
  releaseId: z13.string().optional(),
846
925
  url: z13.string()
847
926
  });
@@ -871,6 +950,7 @@ var WorkflowTransitionDefinition = definition(
871
950
  type: "component",
872
951
  name: "About Us",
873
952
  id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
953
+ editionId: "8b937004-6c50-449a-a7cd-a6a70b25f2da",
874
954
  releaseId: "7ae142c0-ec20-467a-9268-8fc959045679",
875
955
  url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/entries/e5c95c60-314b-4700-9035-6f9c2a4ff800?release=7ae142c0-ec20-467a-9268-8fc959045679`
876
956
  },
@@ -914,6 +994,9 @@ export {
914
994
  CompositionReleaseDeletedEventName,
915
995
  CompositionReleasePublishedDefinition,
916
996
  CompositionReleasePublishedEventName,
997
+ CompositionReleaseRestoredDefinition,
998
+ CompositionReleaseRestoredEventName,
999
+ CompositionRestorePayloadSchema,
917
1000
  CompositionTriggerPayloadSchema,
918
1001
  EntryChangedDefinition,
919
1002
  EntryChangedEventName,
@@ -929,6 +1012,9 @@ export {
929
1012
  EntryReleaseDeletedEventName,
930
1013
  EntryReleasePublishedDefinition,
931
1014
  EntryReleasePublishedEventName,
1015
+ EntryReleaseRestoredDefinition,
1016
+ EntryReleaseRestoredEventName,
1017
+ EntryRestorePayloadSchema,
932
1018
  EntryTriggerPayloadSchema,
933
1019
  ManifestPublishedDefinition,
934
1020
  ManifestPublishedEventName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/webhooks",
3
- "version": "19.186.1",
3
+ "version": "19.186.4-alpha.29+03de47b2a8",
4
4
  "description": "Uniform Webhooks",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -41,5 +41,5 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "12ca61d140d99b4f2de67428425076cecbc6577b"
44
+ "gitHead": "03de47b2a82e853fe3a989a5a60f352c74ed2777"
45
45
  }