@uniformdev/webhooks 18.1.2-alpha.7 → 18.2.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.ts CHANGED
@@ -3,6 +3,23 @@ import { z, ZodTypeAny } from 'zod';
3
3
  declare const CompositionPayloadSchema: z.ZodObject<{
4
4
  id: z.ZodString;
5
5
  slug: z.ZodOptional<z.ZodString>;
6
+ project_map: z.ZodOptional<z.ZodObject<{
7
+ node: z.ZodObject<{
8
+ path: z.ZodString;
9
+ }, "strip", z.ZodTypeAny, {
10
+ path: string;
11
+ }, {
12
+ path: string;
13
+ }>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ node: {
16
+ path: string;
17
+ };
18
+ }, {
19
+ node: {
20
+ path: string;
21
+ };
22
+ }>>;
6
23
  state: z.ZodNumber;
7
24
  name: z.ZodString;
8
25
  project: z.ZodObject<{
@@ -15,9 +32,24 @@ declare const CompositionPayloadSchema: z.ZodObject<{
15
32
  id: string;
16
33
  url: string;
17
34
  }>;
35
+ user: z.ZodObject<{
36
+ name: z.ZodString;
37
+ email: z.ZodString;
38
+ }, "strip", z.ZodTypeAny, {
39
+ name: string;
40
+ email: string;
41
+ }, {
42
+ name: string;
43
+ email: string;
44
+ }>;
18
45
  edit_url: z.ZodString;
19
46
  }, "strip", z.ZodTypeAny, {
20
47
  slug?: string | undefined;
48
+ project_map?: {
49
+ node: {
50
+ path: string;
51
+ };
52
+ } | undefined;
21
53
  id: string;
22
54
  state: number;
23
55
  name: string;
@@ -25,9 +57,18 @@ declare const CompositionPayloadSchema: z.ZodObject<{
25
57
  id: string;
26
58
  url: string;
27
59
  };
60
+ user: {
61
+ name: string;
62
+ email: string;
63
+ };
28
64
  edit_url: string;
29
65
  }, {
30
66
  slug?: string | undefined;
67
+ project_map?: {
68
+ node: {
69
+ path: string;
70
+ };
71
+ } | undefined;
31
72
  id: string;
32
73
  state: number;
33
74
  name: string;
@@ -35,6 +76,10 @@ declare const CompositionPayloadSchema: z.ZodObject<{
35
76
  id: string;
36
77
  url: string;
37
78
  };
79
+ user: {
80
+ name: string;
81
+ email: string;
82
+ };
38
83
  edit_url: string;
39
84
  }>;
40
85
  type CompositionPayload = z.infer<typeof CompositionPayloadSchema>;
@@ -55,6 +100,23 @@ declare const definition: <TSchema extends z.ZodTypeAny = z.ZodTypeAny>(options:
55
100
  declare const CompositionChangedDefinition: Definition<z.ZodObject<{
56
101
  id: z.ZodString;
57
102
  slug: z.ZodOptional<z.ZodString>;
103
+ project_map: z.ZodOptional<z.ZodObject<{
104
+ node: z.ZodObject<{
105
+ path: z.ZodString;
106
+ }, "strip", z.ZodTypeAny, {
107
+ path: string;
108
+ }, {
109
+ path: string;
110
+ }>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ node: {
113
+ path: string;
114
+ };
115
+ }, {
116
+ node: {
117
+ path: string;
118
+ };
119
+ }>>;
58
120
  state: z.ZodNumber;
59
121
  name: z.ZodString;
60
122
  project: z.ZodObject<{
@@ -67,9 +129,24 @@ declare const CompositionChangedDefinition: Definition<z.ZodObject<{
67
129
  id: string;
68
130
  url: string;
69
131
  }>;
132
+ user: z.ZodObject<{
133
+ name: z.ZodString;
134
+ email: z.ZodString;
135
+ }, "strip", z.ZodTypeAny, {
136
+ name: string;
137
+ email: string;
138
+ }, {
139
+ name: string;
140
+ email: string;
141
+ }>;
70
142
  edit_url: z.ZodString;
71
143
  }, "strip", z.ZodTypeAny, {
72
144
  slug?: string | undefined;
145
+ project_map?: {
146
+ node: {
147
+ path: string;
148
+ };
149
+ } | undefined;
73
150
  id: string;
74
151
  state: number;
75
152
  name: string;
@@ -77,9 +154,18 @@ declare const CompositionChangedDefinition: Definition<z.ZodObject<{
77
154
  id: string;
78
155
  url: string;
79
156
  };
157
+ user: {
158
+ name: string;
159
+ email: string;
160
+ };
80
161
  edit_url: string;
81
162
  }, {
82
163
  slug?: string | undefined;
164
+ project_map?: {
165
+ node: {
166
+ path: string;
167
+ };
168
+ } | undefined;
83
169
  id: string;
84
170
  state: number;
85
171
  name: string;
@@ -87,6 +173,10 @@ declare const CompositionChangedDefinition: Definition<z.ZodObject<{
87
173
  id: string;
88
174
  url: string;
89
175
  };
176
+ user: {
177
+ name: string;
178
+ email: string;
179
+ };
90
180
  edit_url: string;
91
181
  }>>;
92
182
  type CompositionChangedPayload = z.infer<(typeof CompositionChangedDefinition)['schema']>;
@@ -95,8 +185,16 @@ declare const CompositionChangedEventName: string;
95
185
  declare const CompositionDeletedDefinition: Definition<z.ZodObject<{
96
186
  id: z.ZodString;
97
187
  state: z.ZodOptional<z.ZodNumber>;
98
- name: z.ZodString;
99
- slug: z.ZodOptional<z.ZodString>;
188
+ user: z.ZodObject<{
189
+ name: z.ZodString;
190
+ email: z.ZodString;
191
+ }, "strip", z.ZodTypeAny, {
192
+ name: string;
193
+ email: string;
194
+ }, {
195
+ name: string;
196
+ email: string;
197
+ }>;
100
198
  project: z.ZodObject<{
101
199
  id: z.ZodString;
102
200
  url: z.ZodString;
@@ -108,23 +206,27 @@ declare const CompositionDeletedDefinition: Definition<z.ZodObject<{
108
206
  url: string;
109
207
  }>;
110
208
  }, "strip", z.ZodTypeAny, {
111
- slug?: string | undefined;
112
209
  state?: number | undefined;
113
210
  id: string;
114
- name: string;
115
211
  project: {
116
212
  id: string;
117
213
  url: string;
118
214
  };
215
+ user: {
216
+ name: string;
217
+ email: string;
218
+ };
119
219
  }, {
120
- slug?: string | undefined;
121
220
  state?: number | undefined;
122
221
  id: string;
123
- name: string;
124
222
  project: {
125
223
  id: string;
126
224
  url: string;
127
225
  };
226
+ user: {
227
+ name: string;
228
+ email: string;
229
+ };
128
230
  }>>;
129
231
  type CompositionDeletedPayload = z.infer<(typeof CompositionDeletedDefinition)['schema']>;
130
232
  declare const CompositionDeletedEventName: string;
@@ -132,6 +234,23 @@ declare const CompositionDeletedEventName: string;
132
234
  declare const CompositionPublishedDefinition: Definition<z.ZodObject<{
133
235
  id: z.ZodString;
134
236
  slug: z.ZodOptional<z.ZodString>;
237
+ project_map: z.ZodOptional<z.ZodObject<{
238
+ node: z.ZodObject<{
239
+ path: z.ZodString;
240
+ }, "strip", z.ZodTypeAny, {
241
+ path: string;
242
+ }, {
243
+ path: string;
244
+ }>;
245
+ }, "strip", z.ZodTypeAny, {
246
+ node: {
247
+ path: string;
248
+ };
249
+ }, {
250
+ node: {
251
+ path: string;
252
+ };
253
+ }>>;
135
254
  state: z.ZodNumber;
136
255
  name: z.ZodString;
137
256
  project: z.ZodObject<{
@@ -144,9 +263,24 @@ declare const CompositionPublishedDefinition: Definition<z.ZodObject<{
144
263
  id: string;
145
264
  url: string;
146
265
  }>;
266
+ user: z.ZodObject<{
267
+ name: z.ZodString;
268
+ email: z.ZodString;
269
+ }, "strip", z.ZodTypeAny, {
270
+ name: string;
271
+ email: string;
272
+ }, {
273
+ name: string;
274
+ email: string;
275
+ }>;
147
276
  edit_url: z.ZodString;
148
277
  }, "strip", z.ZodTypeAny, {
149
278
  slug?: string | undefined;
279
+ project_map?: {
280
+ node: {
281
+ path: string;
282
+ };
283
+ } | undefined;
150
284
  id: string;
151
285
  state: number;
152
286
  name: string;
@@ -154,9 +288,18 @@ declare const CompositionPublishedDefinition: Definition<z.ZodObject<{
154
288
  id: string;
155
289
  url: string;
156
290
  };
291
+ user: {
292
+ name: string;
293
+ email: string;
294
+ };
157
295
  edit_url: string;
158
296
  }, {
159
297
  slug?: string | undefined;
298
+ project_map?: {
299
+ node: {
300
+ path: string;
301
+ };
302
+ } | undefined;
160
303
  id: string;
161
304
  state: number;
162
305
  name: string;
@@ -164,6 +307,10 @@ declare const CompositionPublishedDefinition: Definition<z.ZodObject<{
164
307
  id: string;
165
308
  url: string;
166
309
  };
310
+ user: {
311
+ name: string;
312
+ email: string;
313
+ };
167
314
  edit_url: string;
168
315
  }>>;
169
316
  type CompositionPublishedPayload = z.infer<(typeof CompositionPublishedDefinition)['schema']>;
@@ -172,25 +319,38 @@ declare const CompositionPublishedEventName: string;
172
319
  declare const ManifestPublishedDefinition: Definition<z.ZodObject<{
173
320
  timestamp: z.ZodNumber;
174
321
  site: z.ZodObject<{
175
- id: z.ZodString;
176
322
  name: z.ZodString;
177
323
  }, "strip", z.ZodTypeAny, {
178
- id: string;
179
324
  name: string;
180
325
  }, {
181
- id: string;
182
326
  name: string;
183
327
  }>;
328
+ user: z.ZodObject<{
329
+ name: z.ZodString;
330
+ email: z.ZodString;
331
+ }, "strip", z.ZodTypeAny, {
332
+ name: string;
333
+ email: string;
334
+ }, {
335
+ name: string;
336
+ email: string;
337
+ }>;
184
338
  }, "strip", z.ZodTypeAny, {
339
+ user: {
340
+ name: string;
341
+ email: string;
342
+ };
185
343
  timestamp: number;
186
344
  site: {
187
- id: string;
188
345
  name: string;
189
346
  };
190
347
  }, {
348
+ user: {
349
+ name: string;
350
+ email: string;
351
+ };
191
352
  timestamp: number;
192
353
  site: {
193
- id: string;
194
354
  name: string;
195
355
  };
196
356
  }>>;
package/dist/index.esm.js CHANGED
@@ -3,12 +3,21 @@ import { z } from "zod";
3
3
  var CompositionPayloadSchema = z.object({
4
4
  id: z.string(),
5
5
  slug: z.string().optional(),
6
+ project_map: z.object({
7
+ node: z.object({
8
+ path: z.string()
9
+ })
10
+ }).optional(),
6
11
  state: z.number(),
7
12
  name: z.string(),
8
13
  project: z.object({
9
14
  id: z.string(),
10
15
  url: z.string()
11
16
  }),
17
+ user: z.object({
18
+ name: z.string(),
19
+ email: z.string()
20
+ }),
12
21
  edit_url: z.string()
13
22
  });
14
23
 
@@ -33,15 +42,24 @@ var CompositionChangedDefinition = definition(
33
42
  schema: CompositionPayloadSchema
34
43
  },
35
44
  {
36
- id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
37
- name: "About Us",
38
- slug: "/about-us",
45
+ id: "id of composition",
46
+ name: "name of composition",
47
+ slug: "slug of composition",
39
48
  project: {
40
- id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
41
- url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
49
+ id: "id of the project this composition belongs to",
50
+ url: "link to project this composition belongs to"
51
+ },
52
+ state: 0,
53
+ user: {
54
+ email: "email of the user who performed this action",
55
+ name: "name of the user who performed this action"
56
+ },
57
+ project_map: {
58
+ node: {
59
+ path: "path that this composition is associated with"
60
+ }
42
61
  },
43
- state: 64,
44
- edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`
62
+ edit_url: "link to edit this composition"
45
63
  }
46
64
  );
47
65
  var CompositionChangedEventName = CompositionChangedDefinition["event"];
@@ -56,8 +74,10 @@ var CompositionDeletedDefinition = definition(
56
74
  schema: z2.object({
57
75
  id: z2.string(),
58
76
  state: z2.number().optional(),
59
- name: z2.string(),
60
- slug: z2.string().optional(),
77
+ user: z2.object({
78
+ name: z2.string(),
79
+ email: z2.string()
80
+ }),
61
81
  project: z2.object({
62
82
  id: z2.string(),
63
83
  url: z2.string()
@@ -65,13 +85,15 @@ var CompositionDeletedDefinition = definition(
65
85
  })
66
86
  },
67
87
  {
68
- id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
69
- state: 64,
70
- name: "About Us",
71
- slug: "/about-us",
88
+ id: "id of composition",
89
+ state: 0,
90
+ user: {
91
+ email: "email of the user who performed this action",
92
+ name: "name of the user who performed this action"
93
+ },
72
94
  project: {
73
- id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
74
- url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
95
+ id: "id of the project this composition belongs to",
96
+ url: "link to project this composition belongs to"
75
97
  }
76
98
  }
77
99
  );
@@ -86,15 +108,24 @@ var CompositionPublishedDefinition = definition(
86
108
  schema: CompositionPayloadSchema
87
109
  },
88
110
  {
89
- id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
90
- name: "About Us",
91
- slug: "/about-us",
111
+ id: "id of composition",
112
+ name: "name of composition",
113
+ slug: "slug of composition",
92
114
  project: {
93
- id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
94
- url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
115
+ id: "id of the project this composition belongs to",
116
+ url: "link to project this composition belongs to"
117
+ },
118
+ state: 0,
119
+ user: {
120
+ email: "email of the user who performed this action",
121
+ name: "name of the user who performed this action"
95
122
  },
96
- state: 64,
97
- edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`
123
+ project_map: {
124
+ node: {
125
+ path: "path that this composition is associated with"
126
+ }
127
+ },
128
+ edit_url: "link to edit this composition"
98
129
  }
99
130
  );
100
131
  var CompositionPublishedEventName = CompositionPublishedDefinition["event"];
@@ -109,16 +140,22 @@ var ManifestPublishedDefinition = definition(
109
140
  schema: z3.object({
110
141
  timestamp: z3.number(),
111
142
  site: z3.object({
112
- id: z3.string(),
113
143
  name: z3.string()
144
+ }),
145
+ user: z3.object({
146
+ name: z3.string(),
147
+ email: z3.string()
114
148
  })
115
149
  })
116
150
  },
117
151
  {
118
152
  timestamp: 1667425322407,
119
153
  site: {
120
- id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
121
154
  name: "My Site"
155
+ },
156
+ user: {
157
+ email: "email of the user who performed this action",
158
+ name: "name of the user who performed this action"
122
159
  }
123
160
  }
124
161
  );
package/dist/index.js CHANGED
@@ -39,12 +39,21 @@ var import_zod = require("zod");
39
39
  var CompositionPayloadSchema = import_zod.z.object({
40
40
  id: import_zod.z.string(),
41
41
  slug: import_zod.z.string().optional(),
42
+ project_map: import_zod.z.object({
43
+ node: import_zod.z.object({
44
+ path: import_zod.z.string()
45
+ })
46
+ }).optional(),
42
47
  state: import_zod.z.number(),
43
48
  name: import_zod.z.string(),
44
49
  project: import_zod.z.object({
45
50
  id: import_zod.z.string(),
46
51
  url: import_zod.z.string()
47
52
  }),
53
+ user: import_zod.z.object({
54
+ name: import_zod.z.string(),
55
+ email: import_zod.z.string()
56
+ }),
48
57
  edit_url: import_zod.z.string()
49
58
  });
50
59
 
@@ -69,15 +78,24 @@ var CompositionChangedDefinition = definition(
69
78
  schema: CompositionPayloadSchema
70
79
  },
71
80
  {
72
- id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
73
- name: "About Us",
74
- slug: "/about-us",
81
+ id: "id of composition",
82
+ name: "name of composition",
83
+ slug: "slug of composition",
75
84
  project: {
76
- id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
77
- url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
85
+ id: "id of the project this composition belongs to",
86
+ url: "link to project this composition belongs to"
87
+ },
88
+ state: 0,
89
+ user: {
90
+ email: "email of the user who performed this action",
91
+ name: "name of the user who performed this action"
92
+ },
93
+ project_map: {
94
+ node: {
95
+ path: "path that this composition is associated with"
96
+ }
78
97
  },
79
- state: 64,
80
- edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`
98
+ edit_url: "link to edit this composition"
81
99
  }
82
100
  );
83
101
  var CompositionChangedEventName = CompositionChangedDefinition["event"];
@@ -92,8 +110,10 @@ var CompositionDeletedDefinition = definition(
92
110
  schema: import_zod2.z.object({
93
111
  id: import_zod2.z.string(),
94
112
  state: import_zod2.z.number().optional(),
95
- name: import_zod2.z.string(),
96
- slug: import_zod2.z.string().optional(),
113
+ user: import_zod2.z.object({
114
+ name: import_zod2.z.string(),
115
+ email: import_zod2.z.string()
116
+ }),
97
117
  project: import_zod2.z.object({
98
118
  id: import_zod2.z.string(),
99
119
  url: import_zod2.z.string()
@@ -101,13 +121,15 @@ var CompositionDeletedDefinition = definition(
101
121
  })
102
122
  },
103
123
  {
104
- id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
105
- state: 64,
106
- name: "About Us",
107
- slug: "/about-us",
124
+ id: "id of composition",
125
+ state: 0,
126
+ user: {
127
+ email: "email of the user who performed this action",
128
+ name: "name of the user who performed this action"
129
+ },
108
130
  project: {
109
- id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
110
- url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
131
+ id: "id of the project this composition belongs to",
132
+ url: "link to project this composition belongs to"
111
133
  }
112
134
  }
113
135
  );
@@ -122,15 +144,24 @@ var CompositionPublishedDefinition = definition(
122
144
  schema: CompositionPayloadSchema
123
145
  },
124
146
  {
125
- id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
126
- name: "About Us",
127
- slug: "/about-us",
147
+ id: "id of composition",
148
+ name: "name of composition",
149
+ slug: "slug of composition",
128
150
  project: {
129
- id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
130
- url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
151
+ id: "id of the project this composition belongs to",
152
+ url: "link to project this composition belongs to"
153
+ },
154
+ state: 0,
155
+ user: {
156
+ email: "email of the user who performed this action",
157
+ name: "name of the user who performed this action"
131
158
  },
132
- state: 64,
133
- edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`
159
+ project_map: {
160
+ node: {
161
+ path: "path that this composition is associated with"
162
+ }
163
+ },
164
+ edit_url: "link to edit this composition"
134
165
  }
135
166
  );
136
167
  var CompositionPublishedEventName = CompositionPublishedDefinition["event"];
@@ -145,16 +176,22 @@ var ManifestPublishedDefinition = definition(
145
176
  schema: import_zod3.z.object({
146
177
  timestamp: import_zod3.z.number(),
147
178
  site: import_zod3.z.object({
148
- id: import_zod3.z.string(),
149
179
  name: import_zod3.z.string()
180
+ }),
181
+ user: import_zod3.z.object({
182
+ name: import_zod3.z.string(),
183
+ email: import_zod3.z.string()
150
184
  })
151
185
  })
152
186
  },
153
187
  {
154
188
  timestamp: 1667425322407,
155
189
  site: {
156
- id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
157
190
  name: "My Site"
191
+ },
192
+ user: {
193
+ email: "email of the user who performed this action",
194
+ name: "name of the user who performed this action"
158
195
  }
159
196
  }
160
197
  );
package/dist/index.mjs CHANGED
@@ -3,12 +3,21 @@ import { z } from "zod";
3
3
  var CompositionPayloadSchema = z.object({
4
4
  id: z.string(),
5
5
  slug: z.string().optional(),
6
+ project_map: z.object({
7
+ node: z.object({
8
+ path: z.string()
9
+ })
10
+ }).optional(),
6
11
  state: z.number(),
7
12
  name: z.string(),
8
13
  project: z.object({
9
14
  id: z.string(),
10
15
  url: z.string()
11
16
  }),
17
+ user: z.object({
18
+ name: z.string(),
19
+ email: z.string()
20
+ }),
12
21
  edit_url: z.string()
13
22
  });
14
23
 
@@ -33,15 +42,24 @@ var CompositionChangedDefinition = definition(
33
42
  schema: CompositionPayloadSchema
34
43
  },
35
44
  {
36
- id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
37
- name: "About Us",
38
- slug: "/about-us",
45
+ id: "id of composition",
46
+ name: "name of composition",
47
+ slug: "slug of composition",
39
48
  project: {
40
- id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
41
- url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
49
+ id: "id of the project this composition belongs to",
50
+ url: "link to project this composition belongs to"
51
+ },
52
+ state: 0,
53
+ user: {
54
+ email: "email of the user who performed this action",
55
+ name: "name of the user who performed this action"
56
+ },
57
+ project_map: {
58
+ node: {
59
+ path: "path that this composition is associated with"
60
+ }
42
61
  },
43
- state: 64,
44
- edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`
62
+ edit_url: "link to edit this composition"
45
63
  }
46
64
  );
47
65
  var CompositionChangedEventName = CompositionChangedDefinition["event"];
@@ -56,8 +74,10 @@ var CompositionDeletedDefinition = definition(
56
74
  schema: z2.object({
57
75
  id: z2.string(),
58
76
  state: z2.number().optional(),
59
- name: z2.string(),
60
- slug: z2.string().optional(),
77
+ user: z2.object({
78
+ name: z2.string(),
79
+ email: z2.string()
80
+ }),
61
81
  project: z2.object({
62
82
  id: z2.string(),
63
83
  url: z2.string()
@@ -65,13 +85,15 @@ var CompositionDeletedDefinition = definition(
65
85
  })
66
86
  },
67
87
  {
68
- id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
69
- state: 64,
70
- name: "About Us",
71
- slug: "/about-us",
88
+ id: "id of composition",
89
+ state: 0,
90
+ user: {
91
+ email: "email of the user who performed this action",
92
+ name: "name of the user who performed this action"
93
+ },
72
94
  project: {
73
- id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
74
- url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
95
+ id: "id of the project this composition belongs to",
96
+ url: "link to project this composition belongs to"
75
97
  }
76
98
  }
77
99
  );
@@ -86,15 +108,24 @@ var CompositionPublishedDefinition = definition(
86
108
  schema: CompositionPayloadSchema
87
109
  },
88
110
  {
89
- id: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
90
- name: "About Us",
91
- slug: "/about-us",
111
+ id: "id of composition",
112
+ name: "name of composition",
113
+ slug: "slug of composition",
92
114
  project: {
93
- id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
94
- url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66`
115
+ id: "id of the project this composition belongs to",
116
+ url: "link to project this composition belongs to"
117
+ },
118
+ state: 0,
119
+ user: {
120
+ email: "email of the user who performed this action",
121
+ name: "name of the user who performed this action"
95
122
  },
96
- state: 64,
97
- edit_url: `https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66/dashboards/canvas/edit/0b9d2118-f2d0-4fe6-9d46-7c661abaf474`
123
+ project_map: {
124
+ node: {
125
+ path: "path that this composition is associated with"
126
+ }
127
+ },
128
+ edit_url: "link to edit this composition"
98
129
  }
99
130
  );
100
131
  var CompositionPublishedEventName = CompositionPublishedDefinition["event"];
@@ -109,16 +140,22 @@ var ManifestPublishedDefinition = definition(
109
140
  schema: z3.object({
110
141
  timestamp: z3.number(),
111
142
  site: z3.object({
112
- id: z3.string(),
113
143
  name: z3.string()
144
+ }),
145
+ user: z3.object({
146
+ name: z3.string(),
147
+ email: z3.string()
114
148
  })
115
149
  })
116
150
  },
117
151
  {
118
152
  timestamp: 1667425322407,
119
153
  site: {
120
- id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
121
154
  name: "My Site"
155
+ },
156
+ user: {
157
+ email: "email of the user who performed this action",
158
+ name: "name of the user who performed this action"
122
159
  }
123
160
  }
124
161
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/webhooks",
3
- "version": "18.1.2-alpha.7+682b9aac6",
3
+ "version": "18.2.0",
4
4
  "description": "Uniform Webhooks",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -22,7 +22,7 @@
22
22
  "lint": "eslint \"src/**/*.{js,ts,tsx}\"",
23
23
  "format": "prettier --write \"src/**/*.{js,ts,tsx}\"",
24
24
  "migrate:svix": "tsx ./scripts/sync-svix-schemas.ts",
25
- "deploy": "run-s migrate:svix"
25
+ "postinstall": "run-s migrate:svix"
26
26
  },
27
27
  "files": [
28
28
  "/dist"
@@ -39,5 +39,5 @@
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "682b9aac6143d5f462a7126f4ceab55a7c7d0c09"
42
+ "gitHead": "946d96f5a3ebd69cfc1b4fcc003dea75af4480af"
43
43
  }