@uniformdev/webhooks 19.79.0 → 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.d.mts +217 -1
- package/dist/index.d.ts +217 -1
- package/dist/index.esm.js +180 -62
- package/dist/index.js +187 -62
- package/dist/index.mjs +180 -62
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -5,11 +5,14 @@ var CompositionPayloadSchema = z.object({
|
|
|
5
5
|
slug: z.string().optional(),
|
|
6
6
|
state: z.number(),
|
|
7
7
|
name: z.string(),
|
|
8
|
+
type: z.string(),
|
|
8
9
|
project: z.object({
|
|
9
10
|
id: z.string(),
|
|
10
11
|
url: z.string()
|
|
11
12
|
}),
|
|
12
|
-
edit_url: z.string()
|
|
13
|
+
edit_url: z.string(),
|
|
14
|
+
api_url: z.string(),
|
|
15
|
+
edge_url: z.string()
|
|
13
16
|
});
|
|
14
17
|
|
|
15
18
|
// src/definition.ts
|
|
@@ -36,12 +39,15 @@ var CompositionChangedDefinition = definition(
|
|
|
36
39
|
id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
|
|
37
40
|
name: "About Us",
|
|
38
41
|
slug: "/about-us",
|
|
42
|
+
type: "page",
|
|
39
43
|
project: {
|
|
40
44
|
id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
|
|
41
45
|
url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
|
|
42
46
|
},
|
|
43
47
|
state: 64,
|
|
44
|
-
edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474
|
|
48
|
+
edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`,
|
|
49
|
+
api_url: `https://uniform.app/api/v1/canvas?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64`,
|
|
50
|
+
edge_url: `https://uniform.global/api/v1/compositions?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64`
|
|
45
51
|
}
|
|
46
52
|
);
|
|
47
53
|
var CompositionChangedEventName = CompositionChangedDefinition["event"];
|
|
@@ -57,6 +63,7 @@ var CompositionDeletedDefinition = definition(
|
|
|
57
63
|
id: z2.string(),
|
|
58
64
|
state: z2.number().optional(),
|
|
59
65
|
name: z2.string(),
|
|
66
|
+
type: z2.string(),
|
|
60
67
|
slug: z2.string().optional(),
|
|
61
68
|
project: z2.object({
|
|
62
69
|
id: z2.string(),
|
|
@@ -68,6 +75,7 @@ var CompositionDeletedDefinition = definition(
|
|
|
68
75
|
id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
|
|
69
76
|
state: 64,
|
|
70
77
|
name: "About Us",
|
|
78
|
+
type: "page",
|
|
71
79
|
slug: "/about-us",
|
|
72
80
|
project: {
|
|
73
81
|
id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
|
|
@@ -89,28 +97,131 @@ var CompositionPublishedDefinition = definition(
|
|
|
89
97
|
id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
|
|
90
98
|
name: "About Us",
|
|
91
99
|
slug: "/about-us",
|
|
100
|
+
type: "page",
|
|
92
101
|
project: {
|
|
93
102
|
id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
|
|
94
103
|
url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
|
|
95
104
|
},
|
|
96
105
|
state: 64,
|
|
97
|
-
edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474
|
|
106
|
+
edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`,
|
|
107
|
+
api_url: `https://uniform.app/api/v1/canvas?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64`,
|
|
108
|
+
edge_url: `https://uniform.global/api/v1/compositions?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&compositionId=0b9d2118-f2d0-4fe6-9d46-7c661abaf474&state=64`
|
|
98
109
|
}
|
|
99
110
|
);
|
|
100
111
|
var CompositionPublishedEventName = CompositionPublishedDefinition["event"];
|
|
101
112
|
|
|
102
|
-
// src/
|
|
113
|
+
// src/entry/common.ts
|
|
103
114
|
import { z as z3 } from "zod";
|
|
115
|
+
var EntryPayloadSchema = z3.object({
|
|
116
|
+
id: z3.string(),
|
|
117
|
+
slug: z3.string().optional(),
|
|
118
|
+
state: z3.number(),
|
|
119
|
+
name: z3.string(),
|
|
120
|
+
type: z3.string(),
|
|
121
|
+
project: z3.object({
|
|
122
|
+
id: z3.string(),
|
|
123
|
+
url: z3.string()
|
|
124
|
+
}),
|
|
125
|
+
edit_url: z3.string(),
|
|
126
|
+
api_url: z3.string(),
|
|
127
|
+
edge_url: z3.string()
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
// src/entry/entry.changed.ts
|
|
131
|
+
var EntryChangedDefinition = definition(
|
|
132
|
+
{
|
|
133
|
+
event: "entry.changed",
|
|
134
|
+
name: "Entry Changed",
|
|
135
|
+
description: "Triggers when an entry has been changed.",
|
|
136
|
+
schema: EntryPayloadSchema
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
|
|
140
|
+
name: "About Us",
|
|
141
|
+
slug: "/about-us",
|
|
142
|
+
type: "page",
|
|
143
|
+
project: {
|
|
144
|
+
id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
|
|
145
|
+
url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
|
|
146
|
+
},
|
|
147
|
+
state: 64,
|
|
148
|
+
edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/entries/e5c95c60-314b-4700-9035-6f9c2a4ff800`,
|
|
149
|
+
api_url: `https://uniform.app/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64`,
|
|
150
|
+
edge_url: `https://uniform.global/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64`
|
|
151
|
+
}
|
|
152
|
+
);
|
|
153
|
+
var EntryChangedEventName = EntryChangedDefinition["event"];
|
|
154
|
+
|
|
155
|
+
// src/entry/entry.deleted.ts
|
|
156
|
+
import { z as z4 } from "zod";
|
|
157
|
+
var EntryDeletedDefinition = definition(
|
|
158
|
+
{
|
|
159
|
+
event: "entry.deleted",
|
|
160
|
+
name: "Entry Deleted",
|
|
161
|
+
description: "Triggers when an entry has been deleted.",
|
|
162
|
+
schema: z4.object({
|
|
163
|
+
id: z4.string(),
|
|
164
|
+
state: z4.number().optional(),
|
|
165
|
+
name: z4.string(),
|
|
166
|
+
type: z4.string(),
|
|
167
|
+
slug: z4.string().optional(),
|
|
168
|
+
project: z4.object({
|
|
169
|
+
id: z4.string(),
|
|
170
|
+
url: z4.string()
|
|
171
|
+
})
|
|
172
|
+
})
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
|
|
176
|
+
name: "About Us",
|
|
177
|
+
type: "page",
|
|
178
|
+
slug: "/about-us",
|
|
179
|
+
project: {
|
|
180
|
+
id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
|
|
181
|
+
url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
|
|
182
|
+
},
|
|
183
|
+
state: 64
|
|
184
|
+
}
|
|
185
|
+
);
|
|
186
|
+
var EntryDeletedEventName = EntryDeletedDefinition["event"];
|
|
187
|
+
|
|
188
|
+
// src/entry/entry.published.ts
|
|
189
|
+
var EntryPublishedDefinition = definition(
|
|
190
|
+
{
|
|
191
|
+
event: "entry.published",
|
|
192
|
+
name: "Entry Published",
|
|
193
|
+
description: "Triggers when an entry has been published.",
|
|
194
|
+
schema: EntryPayloadSchema
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
id: "e5c95c60-314b-4700-9035-6f9c2a4ff800",
|
|
198
|
+
name: "About Us",
|
|
199
|
+
slug: "/about-us",
|
|
200
|
+
type: "page",
|
|
201
|
+
project: {
|
|
202
|
+
id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
|
|
203
|
+
url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
|
|
204
|
+
},
|
|
205
|
+
state: 64,
|
|
206
|
+
edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/entries/e5c95c60-314b-4700-9035-6f9c2a4ff800`,
|
|
207
|
+
api_url: `https://uniform.app/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64`,
|
|
208
|
+
edge_url: `https://uniform.global/api/v1/entries?projectId=644ede73-d6aa-4159-bf98-14ad7fb4cb66&entryIDs=e5c95c60-314b-4700-9035-6f9c2a4ff800&state=64`
|
|
209
|
+
}
|
|
210
|
+
);
|
|
211
|
+
var EntryPublishedEventName = EntryPublishedDefinition["event"];
|
|
212
|
+
|
|
213
|
+
// src/manifest/manifest.published.ts
|
|
214
|
+
import { z as z5 } from "zod";
|
|
104
215
|
var ManifestPublishedDefinition = definition(
|
|
105
216
|
{
|
|
106
217
|
event: "manifest.published",
|
|
107
218
|
name: "Manifest Published",
|
|
108
219
|
description: "Triggers when a manifest has been published.",
|
|
109
|
-
schema:
|
|
110
|
-
timestamp:
|
|
111
|
-
site:
|
|
112
|
-
id:
|
|
113
|
-
name:
|
|
220
|
+
schema: z5.object({
|
|
221
|
+
timestamp: z5.number(),
|
|
222
|
+
site: z5.object({
|
|
223
|
+
id: z5.string(),
|
|
224
|
+
name: z5.string()
|
|
114
225
|
})
|
|
115
226
|
})
|
|
116
227
|
},
|
|
@@ -125,16 +236,16 @@ var ManifestPublishedDefinition = definition(
|
|
|
125
236
|
var ManifestPublishedEventName = ManifestPublishedDefinition["event"];
|
|
126
237
|
|
|
127
238
|
// src/project-map/projectMap.delete.ts
|
|
128
|
-
import { z as
|
|
239
|
+
import { z as z6 } from "zod";
|
|
129
240
|
var ProjectMapDeleteDefinition = definition(
|
|
130
241
|
{
|
|
131
242
|
event: "projectmap.delete",
|
|
132
243
|
name: "Project Map Deleted",
|
|
133
244
|
description: "Triggers when a project map is deleted.",
|
|
134
|
-
schema:
|
|
135
|
-
id:
|
|
136
|
-
base_url:
|
|
137
|
-
project_id:
|
|
245
|
+
schema: z6.object({
|
|
246
|
+
id: z6.string(),
|
|
247
|
+
base_url: z6.string().optional(),
|
|
248
|
+
project_id: z6.string()
|
|
138
249
|
})
|
|
139
250
|
},
|
|
140
251
|
{
|
|
@@ -146,18 +257,18 @@ var ProjectMapDeleteDefinition = definition(
|
|
|
146
257
|
var ProjectMapDeletedEventName = ProjectMapDeleteDefinition["event"];
|
|
147
258
|
|
|
148
259
|
// src/project-map/projectMap.node.delete.ts
|
|
149
|
-
import { z as
|
|
260
|
+
import { z as z7 } from "zod";
|
|
150
261
|
var ProjectMapNodeDeleteDefinition = definition(
|
|
151
262
|
{
|
|
152
263
|
event: "projectmap.node.delete",
|
|
153
264
|
name: "Project Map Node Deleted",
|
|
154
265
|
description: "Triggers when a project map node is deleted.",
|
|
155
|
-
schema:
|
|
156
|
-
project_id:
|
|
157
|
-
project_map_id:
|
|
158
|
-
id:
|
|
159
|
-
path:
|
|
160
|
-
composition_id:
|
|
266
|
+
schema: z7.object({
|
|
267
|
+
project_id: z7.string(),
|
|
268
|
+
project_map_id: z7.string(),
|
|
269
|
+
id: z7.string(),
|
|
270
|
+
path: z7.string(),
|
|
271
|
+
composition_id: z7.string().optional()
|
|
161
272
|
})
|
|
162
273
|
},
|
|
163
274
|
{
|
|
@@ -171,18 +282,18 @@ var ProjectMapNodeDeleteDefinition = definition(
|
|
|
171
282
|
var ProjectMapNodeDeletedEventName = ProjectMapNodeDeleteDefinition["event"];
|
|
172
283
|
|
|
173
284
|
// src/project-map/projectMap.node.insert.ts
|
|
174
|
-
import { z as
|
|
285
|
+
import { z as z8 } from "zod";
|
|
175
286
|
var ProjectMapNodeInsertDefinition = definition(
|
|
176
287
|
{
|
|
177
288
|
event: "projectmap.node.insert",
|
|
178
289
|
name: "Project Map Node Inserted",
|
|
179
290
|
description: "Triggers when a project map node is inserted.",
|
|
180
|
-
schema:
|
|
181
|
-
id:
|
|
182
|
-
project_map_id:
|
|
183
|
-
project_id:
|
|
184
|
-
path:
|
|
185
|
-
composition_id:
|
|
291
|
+
schema: z8.object({
|
|
292
|
+
id: z8.string(),
|
|
293
|
+
project_map_id: z8.string(),
|
|
294
|
+
project_id: z8.string(),
|
|
295
|
+
path: z8.string(),
|
|
296
|
+
composition_id: z8.string().optional()
|
|
186
297
|
})
|
|
187
298
|
},
|
|
188
299
|
{
|
|
@@ -196,19 +307,19 @@ var ProjectMapNodeInsertDefinition = definition(
|
|
|
196
307
|
var ProjectMapNodeInsertedEventName = ProjectMapNodeInsertDefinition["event"];
|
|
197
308
|
|
|
198
309
|
// src/project-map/projectMap.node.update.ts
|
|
199
|
-
import { z as
|
|
310
|
+
import { z as z9 } from "zod";
|
|
200
311
|
var ProjectMapNodeUpdateDefinition = definition(
|
|
201
312
|
{
|
|
202
313
|
event: "projectmap.node.update",
|
|
203
314
|
name: "Project Map Node Updated",
|
|
204
315
|
description: "Triggers when a project map node is updated.",
|
|
205
|
-
schema:
|
|
206
|
-
id:
|
|
207
|
-
project_map_id:
|
|
208
|
-
project_id:
|
|
209
|
-
path:
|
|
210
|
-
composition_id:
|
|
211
|
-
previous_path:
|
|
316
|
+
schema: z9.object({
|
|
317
|
+
id: z9.string(),
|
|
318
|
+
project_map_id: z9.string(),
|
|
319
|
+
project_id: z9.string(),
|
|
320
|
+
path: z9.string(),
|
|
321
|
+
composition_id: z9.string().optional(),
|
|
322
|
+
previous_path: z9.string()
|
|
212
323
|
})
|
|
213
324
|
},
|
|
214
325
|
{
|
|
@@ -223,16 +334,16 @@ var ProjectMapNodeUpdateDefinition = definition(
|
|
|
223
334
|
var ProjectMapNodeUpdatedEventName = ProjectMapNodeUpdateDefinition["event"];
|
|
224
335
|
|
|
225
336
|
// src/project-map/projectMap.update.ts
|
|
226
|
-
import { z as
|
|
337
|
+
import { z as z10 } from "zod";
|
|
227
338
|
var ProjectMapUpdateDefinition = definition(
|
|
228
339
|
{
|
|
229
340
|
event: "projectmap.update",
|
|
230
341
|
name: "Project Map Updated",
|
|
231
342
|
description: "Triggers when a project map is updated or created.",
|
|
232
|
-
schema:
|
|
233
|
-
id:
|
|
234
|
-
base_url:
|
|
235
|
-
project_id:
|
|
343
|
+
schema: z10.object({
|
|
344
|
+
id: z10.string(),
|
|
345
|
+
base_url: z10.string().optional(),
|
|
346
|
+
project_id: z10.string()
|
|
236
347
|
})
|
|
237
348
|
},
|
|
238
349
|
{
|
|
@@ -244,18 +355,18 @@ var ProjectMapUpdateDefinition = definition(
|
|
|
244
355
|
var ProjectMapUpdatedEventName = ProjectMapUpdateDefinition["event"];
|
|
245
356
|
|
|
246
357
|
// src/redirect/redirect.delete.ts
|
|
247
|
-
import { z as
|
|
358
|
+
import { z as z11 } from "zod";
|
|
248
359
|
var RedirectDeleteDefinition = definition(
|
|
249
360
|
{
|
|
250
361
|
event: "redirect.delete",
|
|
251
362
|
name: "Redirect Deleted",
|
|
252
363
|
description: "Triggers when a redirect is deleted.",
|
|
253
|
-
schema:
|
|
254
|
-
project_id:
|
|
255
|
-
id:
|
|
256
|
-
source_url:
|
|
257
|
-
target_url:
|
|
258
|
-
target_status_code:
|
|
364
|
+
schema: z11.object({
|
|
365
|
+
project_id: z11.string(),
|
|
366
|
+
id: z11.string(),
|
|
367
|
+
source_url: z11.string(),
|
|
368
|
+
target_url: z11.string(),
|
|
369
|
+
target_status_code: z11.number()
|
|
259
370
|
})
|
|
260
371
|
},
|
|
261
372
|
{
|
|
@@ -269,18 +380,18 @@ var RedirectDeleteDefinition = definition(
|
|
|
269
380
|
var RedirectDeletedEventName = RedirectDeleteDefinition["event"];
|
|
270
381
|
|
|
271
382
|
// src/redirect/redirect.insert.ts
|
|
272
|
-
import { z as
|
|
383
|
+
import { z as z12 } from "zod";
|
|
273
384
|
var RedirectInsertDefinition = definition(
|
|
274
385
|
{
|
|
275
386
|
event: "redirect.insert",
|
|
276
387
|
name: "Redirect Inserted",
|
|
277
388
|
description: "Triggers when a redirect is inserted.",
|
|
278
|
-
schema:
|
|
279
|
-
project_id:
|
|
280
|
-
id:
|
|
281
|
-
source_url:
|
|
282
|
-
target_url:
|
|
283
|
-
target_status_code:
|
|
389
|
+
schema: z12.object({
|
|
390
|
+
project_id: z12.string(),
|
|
391
|
+
id: z12.string(),
|
|
392
|
+
source_url: z12.string(),
|
|
393
|
+
target_url: z12.string(),
|
|
394
|
+
target_status_code: z12.number()
|
|
284
395
|
})
|
|
285
396
|
},
|
|
286
397
|
{
|
|
@@ -294,18 +405,18 @@ var RedirectInsertDefinition = definition(
|
|
|
294
405
|
var RedirectInsertedEventName = RedirectInsertDefinition["event"];
|
|
295
406
|
|
|
296
407
|
// src/redirect/redirect.update.ts
|
|
297
|
-
import { z as
|
|
408
|
+
import { z as z13 } from "zod";
|
|
298
409
|
var RedirectUpdateDefinition = definition(
|
|
299
410
|
{
|
|
300
411
|
event: "redirect.update",
|
|
301
412
|
name: "Redirect Updated",
|
|
302
413
|
description: "Triggers when a redirect is updated.",
|
|
303
|
-
schema:
|
|
304
|
-
project_id:
|
|
305
|
-
id:
|
|
306
|
-
source_url:
|
|
307
|
-
target_url:
|
|
308
|
-
target_status_code:
|
|
414
|
+
schema: z13.object({
|
|
415
|
+
project_id: z13.string(),
|
|
416
|
+
id: z13.string(),
|
|
417
|
+
source_url: z13.string(),
|
|
418
|
+
target_url: z13.string(),
|
|
419
|
+
target_status_code: z13.number()
|
|
309
420
|
})
|
|
310
421
|
},
|
|
311
422
|
{
|
|
@@ -325,6 +436,13 @@ export {
|
|
|
325
436
|
CompositionPayloadSchema,
|
|
326
437
|
CompositionPublishedDefinition,
|
|
327
438
|
CompositionPublishedEventName,
|
|
439
|
+
EntryChangedDefinition,
|
|
440
|
+
EntryChangedEventName,
|
|
441
|
+
EntryDeletedDefinition,
|
|
442
|
+
EntryDeletedEventName,
|
|
443
|
+
EntryPayloadSchema,
|
|
444
|
+
EntryPublishedDefinition,
|
|
445
|
+
EntryPublishedEventName,
|
|
328
446
|
ManifestPublishedDefinition,
|
|
329
447
|
ManifestPublishedEventName,
|
|
330
448
|
ProjectMapDeleteDefinition,
|