@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.mjs CHANGED
@@ -9,7 +9,9 @@ var CompositionPayloadSchema = z.object({
9
9
  id: z.string(),
10
10
  url: z.string()
11
11
  }),
12
- edit_url: z.string()
12
+ edit_url: z.string(),
13
+ api_url: z.string(),
14
+ edge_url: z.string()
13
15
  });
14
16
 
15
17
  // src/definition.ts
@@ -41,7 +43,9 @@ var CompositionChangedDefinition = definition(
41
43
  url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
42
44
  },
43
45
  state: 64,
44
- edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`
46
+ edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`,
47
+ api_url: `https://uniform.app/api/v1/canvas?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64`,
48
+ edge_url: `https://uniform.global/api/v1/compositions?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64`
45
49
  }
46
50
  );
47
51
  var CompositionChangedEventName = CompositionChangedDefinition["event"];
@@ -94,23 +98,120 @@ var CompositionPublishedDefinition = definition(
94
98
  url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
95
99
  },
96
100
  state: 64,
97
- edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`
101
+ edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`,
102
+ api_url: `https://uniform.app/api/v1/canvas?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64`,
103
+ edge_url: `https://uniform.global/api/v1/compositions?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64`
98
104
  }
99
105
  );
100
106
  var CompositionPublishedEventName = CompositionPublishedDefinition["event"];
101
107
 
102
- // src/manifest/manifest.published.ts
108
+ // src/entry/common.ts
103
109
  import { z as z3 } from "zod";
110
+ var EntryPayloadSchema = z3.object({
111
+ id: z3.string(),
112
+ slug: z3.string().optional(),
113
+ state: z3.number(),
114
+ name: z3.string(),
115
+ project: z3.object({
116
+ id: z3.string(),
117
+ url: z3.string()
118
+ }),
119
+ edit_url: z3.string(),
120
+ api_url: z3.string(),
121
+ edge_url: z3.string()
122
+ });
123
+
124
+ // src/entry/entry.changed.ts
125
+ var EntryChangedDefinition = definition(
126
+ {
127
+ event: "entry.changed",
128
+ name: "Entry Changed",
129
+ description: "Triggers when an entry has been changed.",
130
+ schema: EntryPayloadSchema
131
+ },
132
+ {
133
+ id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
134
+ name: "About Us",
135
+ slug: "/about-us",
136
+ project: {
137
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
138
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
139
+ },
140
+ state: 64,
141
+ edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/entries/e5c95c60-314b-4700-9035-6f9c2a4ff800`,
142
+ api_url: `https://uniform.app/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64`,
143
+ edge_url: `https://uniform.global/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64`
144
+ }
145
+ );
146
+ var EntryChangedEventName = EntryChangedDefinition["event"];
147
+
148
+ // src/entry/entry.deleted.ts
149
+ import { z as z4 } from "zod";
150
+ var EntryDeletedDefinition = definition(
151
+ {
152
+ event: "entry.deleted",
153
+ name: "Entry Deleted",
154
+ description: "Triggers when an entry has been deleted.",
155
+ schema: z4.object({
156
+ id: z4.string(),
157
+ state: z4.number().optional(),
158
+ name: z4.string(),
159
+ slug: z4.string().optional(),
160
+ project: z4.object({
161
+ id: z4.string(),
162
+ url: z4.string()
163
+ })
164
+ })
165
+ },
166
+ {
167
+ id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
168
+ name: "About Us",
169
+ slug: "/about-us",
170
+ project: {
171
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
172
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
173
+ },
174
+ state: 64
175
+ }
176
+ );
177
+ var EntryDeletedEventName = EntryDeletedDefinition["event"];
178
+
179
+ // src/entry/entry.published.ts
180
+ var EntryPublishedDefinition = definition(
181
+ {
182
+ event: "entry.published",
183
+ name: "Entry Published",
184
+ description: "Triggers when an entry has been published.",
185
+ schema: EntryPayloadSchema
186
+ },
187
+ {
188
+ id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
189
+ name: "About Us",
190
+ slug: "/about-us",
191
+ project: {
192
+ id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
193
+ url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
194
+ },
195
+ state: 64,
196
+ edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/entries/e5c95c60-314b-4700-9035-6f9c2a4ff800`,
197
+ api_url: `https://uniform.app/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64`,
198
+ edge_url: `https://uniform.global/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64`
199
+ }
200
+ );
201
+ var EntryPublishedEventName = EntryPublishedDefinition["event"];
202
+
203
+ // src/manifest/manifest.published.ts
204
+ import { z as z5 } from "zod";
104
205
  var ManifestPublishedDefinition = definition(
105
206
  {
106
207
  event: "manifest.published",
107
208
  name: "Manifest Published",
108
209
  description: "Triggers when a manifest has been published.",
109
- schema: z3.object({
110
- timestamp: z3.number(),
111
- site: z3.object({
112
- id: z3.string(),
113
- name: z3.string()
210
+ schema: z5.object({
211
+ timestamp: z5.number(),
212
+ site: z5.object({
213
+ id: z5.string(),
214
+ name: z5.string()
114
215
  })
115
216
  })
116
217
  },
@@ -125,16 +226,16 @@ var ManifestPublishedDefinition = definition(
125
226
  var ManifestPublishedEventName = ManifestPublishedDefinition["event"];
126
227
 
127
228
  // src/project-map/projectMap.delete.ts
128
- import { z as z4 } from "zod";
229
+ import { z as z6 } from "zod";
129
230
  var ProjectMapDeleteDefinition = definition(
130
231
  {
131
232
  event: "projectmap.delete",
132
233
  name: "Project Map Deleted",
133
234
  description: "Triggers when a project map is deleted.",
134
- schema: z4.object({
135
- id: z4.string(),
136
- base_url: z4.string().optional(),
137
- project_id: z4.string()
235
+ schema: z6.object({
236
+ id: z6.string(),
237
+ base_url: z6.string().optional(),
238
+ project_id: z6.string()
138
239
  })
139
240
  },
140
241
  {
@@ -146,18 +247,18 @@ var ProjectMapDeleteDefinition = definition(
146
247
  var ProjectMapDeletedEventName = ProjectMapDeleteDefinition["event"];
147
248
 
148
249
  // src/project-map/projectMap.node.delete.ts
149
- import { z as z5 } from "zod";
250
+ import { z as z7 } from "zod";
150
251
  var ProjectMapNodeDeleteDefinition = definition(
151
252
  {
152
253
  event: "projectmap.node.delete",
153
254
  name: "Project Map Node Deleted",
154
255
  description: "Triggers when a project map node is deleted.",
155
- schema: z5.object({
156
- project_id: z5.string(),
157
- project_map_id: z5.string(),
158
- id: z5.string(),
159
- path: z5.string(),
160
- composition_id: z5.string().optional()
256
+ schema: z7.object({
257
+ project_id: z7.string(),
258
+ project_map_id: z7.string(),
259
+ id: z7.string(),
260
+ path: z7.string(),
261
+ composition_id: z7.string().optional()
161
262
  })
162
263
  },
163
264
  {
@@ -171,18 +272,18 @@ var ProjectMapNodeDeleteDefinition = definition(
171
272
  var ProjectMapNodeDeletedEventName = ProjectMapNodeDeleteDefinition["event"];
172
273
 
173
274
  // src/project-map/projectMap.node.insert.ts
174
- import { z as z6 } from "zod";
275
+ import { z as z8 } from "zod";
175
276
  var ProjectMapNodeInsertDefinition = definition(
176
277
  {
177
278
  event: "projectmap.node.insert",
178
279
  name: "Project Map Node Inserted",
179
280
  description: "Triggers when a project map node is inserted.",
180
- schema: z6.object({
181
- id: z6.string(),
182
- project_map_id: z6.string(),
183
- project_id: z6.string(),
184
- path: z6.string(),
185
- composition_id: z6.string().optional()
281
+ schema: z8.object({
282
+ id: z8.string(),
283
+ project_map_id: z8.string(),
284
+ project_id: z8.string(),
285
+ path: z8.string(),
286
+ composition_id: z8.string().optional()
186
287
  })
187
288
  },
188
289
  {
@@ -196,19 +297,19 @@ var ProjectMapNodeInsertDefinition = definition(
196
297
  var ProjectMapNodeInsertedEventName = ProjectMapNodeInsertDefinition["event"];
197
298
 
198
299
  // src/project-map/projectMap.node.update.ts
199
- import { z as z7 } from "zod";
300
+ import { z as z9 } from "zod";
200
301
  var ProjectMapNodeUpdateDefinition = definition(
201
302
  {
202
303
  event: "projectmap.node.update",
203
304
  name: "Project Map Node Updated",
204
305
  description: "Triggers when a project map node is updated.",
205
- schema: z7.object({
206
- id: z7.string(),
207
- project_map_id: z7.string(),
208
- project_id: z7.string(),
209
- path: z7.string(),
210
- composition_id: z7.string().optional(),
211
- previous_path: z7.string()
306
+ schema: z9.object({
307
+ id: z9.string(),
308
+ project_map_id: z9.string(),
309
+ project_id: z9.string(),
310
+ path: z9.string(),
311
+ composition_id: z9.string().optional(),
312
+ previous_path: z9.string()
212
313
  })
213
314
  },
214
315
  {
@@ -223,16 +324,16 @@ var ProjectMapNodeUpdateDefinition = definition(
223
324
  var ProjectMapNodeUpdatedEventName = ProjectMapNodeUpdateDefinition["event"];
224
325
 
225
326
  // src/project-map/projectMap.update.ts
226
- import { z as z8 } from "zod";
327
+ import { z as z10 } from "zod";
227
328
  var ProjectMapUpdateDefinition = definition(
228
329
  {
229
330
  event: "projectmap.update",
230
331
  name: "Project Map Updated",
231
332
  description: "Triggers when a project map is updated or created.",
232
- schema: z8.object({
233
- id: z8.string(),
234
- base_url: z8.string().optional(),
235
- project_id: z8.string()
333
+ schema: z10.object({
334
+ id: z10.string(),
335
+ base_url: z10.string().optional(),
336
+ project_id: z10.string()
236
337
  })
237
338
  },
238
339
  {
@@ -244,18 +345,18 @@ var ProjectMapUpdateDefinition = definition(
244
345
  var ProjectMapUpdatedEventName = ProjectMapUpdateDefinition["event"];
245
346
 
246
347
  // src/redirect/redirect.delete.ts
247
- import { z as z9 } from "zod";
348
+ import { z as z11 } from "zod";
248
349
  var RedirectDeleteDefinition = definition(
249
350
  {
250
351
  event: "redirect.delete",
251
352
  name: "Redirect Deleted",
252
353
  description: "Triggers when a redirect is deleted.",
253
- schema: z9.object({
254
- project_id: z9.string(),
255
- id: z9.string(),
256
- source_url: z9.string(),
257
- target_url: z9.string(),
258
- target_status_code: z9.number()
354
+ schema: z11.object({
355
+ project_id: z11.string(),
356
+ id: z11.string(),
357
+ source_url: z11.string(),
358
+ target_url: z11.string(),
359
+ target_status_code: z11.number()
259
360
  })
260
361
  },
261
362
  {
@@ -269,18 +370,18 @@ var RedirectDeleteDefinition = definition(
269
370
  var RedirectDeletedEventName = RedirectDeleteDefinition["event"];
270
371
 
271
372
  // src/redirect/redirect.insert.ts
272
- import { z as z10 } from "zod";
373
+ import { z as z12 } from "zod";
273
374
  var RedirectInsertDefinition = definition(
274
375
  {
275
376
  event: "redirect.insert",
276
377
  name: "Redirect Inserted",
277
378
  description: "Triggers when a redirect is inserted.",
278
- schema: z10.object({
279
- project_id: z10.string(),
280
- id: z10.string(),
281
- source_url: z10.string(),
282
- target_url: z10.string(),
283
- target_status_code: z10.number()
379
+ schema: z12.object({
380
+ project_id: z12.string(),
381
+ id: z12.string(),
382
+ source_url: z12.string(),
383
+ target_url: z12.string(),
384
+ target_status_code: z12.number()
284
385
  })
285
386
  },
286
387
  {
@@ -294,18 +395,18 @@ var RedirectInsertDefinition = definition(
294
395
  var RedirectInsertedEventName = RedirectInsertDefinition["event"];
295
396
 
296
397
  // src/redirect/redirect.update.ts
297
- import { z as z11 } from "zod";
398
+ import { z as z13 } from "zod";
298
399
  var RedirectUpdateDefinition = definition(
299
400
  {
300
401
  event: "redirect.update",
301
402
  name: "Redirect Updated",
302
403
  description: "Triggers when a redirect is updated.",
303
- schema: z11.object({
304
- project_id: z11.string(),
305
- id: z11.string(),
306
- source_url: z11.string(),
307
- target_url: z11.string(),
308
- target_status_code: z11.number()
404
+ schema: z13.object({
405
+ project_id: z13.string(),
406
+ id: z13.string(),
407
+ source_url: z13.string(),
408
+ target_url: z13.string(),
409
+ target_status_code: z13.number()
309
410
  })
310
411
  },
311
412
  {
@@ -325,6 +426,13 @@ export {
325
426
  CompositionPayloadSchema,
326
427
  CompositionPublishedDefinition,
327
428
  CompositionPublishedEventName,
429
+ EntryChangedDefinition,
430
+ EntryChangedEventName,
431
+ EntryDeletedDefinition,
432
+ EntryDeletedEventName,
433
+ EntryPayloadSchema,
434
+ EntryPublishedDefinition,
435
+ EntryPublishedEventName,
328
436
  ManifestPublishedDefinition,
329
437
  ManifestPublishedEventName,
330
438
  ProjectMapDeleteDefinition,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/webhooks",
3
- "version": "19.82.2-alpha.20+c643b20fb",
3
+ "version": "19.84.0",
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": "c643b20fb0d3ac210ee8038037f556bde90a22e9"
44
+ "gitHead": "673e64f3757a81bda174fe69bdec2c1320001519"
45
45
  }