@uniformdev/webhooks 18.1.2-alpha.4 → 18.1.2-alpha.7

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