@uniformdev/webhooks 19.35.2 → 19.35.3-alpha.82
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 +367 -0
- package/package.json +2 -2
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
import { z, ZodTypeAny } from 'zod';
|
|
2
|
+
|
|
3
|
+
declare const CompositionPayloadSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
6
|
+
state: z.ZodNumber;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
project: z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
url: z.ZodString;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
id: string;
|
|
13
|
+
url: string;
|
|
14
|
+
}, {
|
|
15
|
+
id: string;
|
|
16
|
+
url: string;
|
|
17
|
+
}>;
|
|
18
|
+
edit_url: z.ZodString;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
id: string;
|
|
21
|
+
state: number;
|
|
22
|
+
name: string;
|
|
23
|
+
project: {
|
|
24
|
+
id: string;
|
|
25
|
+
url: string;
|
|
26
|
+
};
|
|
27
|
+
edit_url: string;
|
|
28
|
+
slug?: string | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
id: string;
|
|
31
|
+
state: number;
|
|
32
|
+
name: string;
|
|
33
|
+
project: {
|
|
34
|
+
id: string;
|
|
35
|
+
url: string;
|
|
36
|
+
};
|
|
37
|
+
edit_url: string;
|
|
38
|
+
slug?: string | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
type CompositionPayload = z.infer<typeof CompositionPayloadSchema>;
|
|
41
|
+
|
|
42
|
+
type DefinitionOptions<TSchema> = {
|
|
43
|
+
event: string;
|
|
44
|
+
name: string;
|
|
45
|
+
description: string;
|
|
46
|
+
schema: TSchema;
|
|
47
|
+
};
|
|
48
|
+
type Definition<TSchema extends ZodTypeAny = ZodTypeAny> = DefinitionOptions<TSchema> & {
|
|
49
|
+
_definition: true;
|
|
50
|
+
example: z.TypeOf<TSchema>;
|
|
51
|
+
};
|
|
52
|
+
declare const isDefinition: (obj: any) => obj is Definition<z.ZodTypeAny>;
|
|
53
|
+
declare const definition: <TSchema extends z.ZodTypeAny = z.ZodTypeAny>(options: DefinitionOptions<TSchema>, example: z.TypeOf<TSchema>) => Definition<TSchema>;
|
|
54
|
+
|
|
55
|
+
declare const CompositionChangedDefinition: Definition<z.ZodObject<{
|
|
56
|
+
id: z.ZodString;
|
|
57
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
58
|
+
state: z.ZodNumber;
|
|
59
|
+
name: z.ZodString;
|
|
60
|
+
project: z.ZodObject<{
|
|
61
|
+
id: z.ZodString;
|
|
62
|
+
url: z.ZodString;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
id: string;
|
|
65
|
+
url: string;
|
|
66
|
+
}, {
|
|
67
|
+
id: string;
|
|
68
|
+
url: string;
|
|
69
|
+
}>;
|
|
70
|
+
edit_url: z.ZodString;
|
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
|
72
|
+
id: string;
|
|
73
|
+
state: number;
|
|
74
|
+
name: string;
|
|
75
|
+
project: {
|
|
76
|
+
id: string;
|
|
77
|
+
url: string;
|
|
78
|
+
};
|
|
79
|
+
edit_url: string;
|
|
80
|
+
slug?: string | undefined;
|
|
81
|
+
}, {
|
|
82
|
+
id: string;
|
|
83
|
+
state: number;
|
|
84
|
+
name: string;
|
|
85
|
+
project: {
|
|
86
|
+
id: string;
|
|
87
|
+
url: string;
|
|
88
|
+
};
|
|
89
|
+
edit_url: string;
|
|
90
|
+
slug?: string | undefined;
|
|
91
|
+
}>>;
|
|
92
|
+
type CompositionChangedPayload = z.infer<(typeof CompositionChangedDefinition)['schema']>;
|
|
93
|
+
declare const CompositionChangedEventName: string;
|
|
94
|
+
|
|
95
|
+
declare const CompositionDeletedDefinition: Definition<z.ZodObject<{
|
|
96
|
+
id: z.ZodString;
|
|
97
|
+
state: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
name: z.ZodString;
|
|
99
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
100
|
+
project: z.ZodObject<{
|
|
101
|
+
id: z.ZodString;
|
|
102
|
+
url: z.ZodString;
|
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
id: string;
|
|
105
|
+
url: string;
|
|
106
|
+
}, {
|
|
107
|
+
id: string;
|
|
108
|
+
url: string;
|
|
109
|
+
}>;
|
|
110
|
+
}, "strip", z.ZodTypeAny, {
|
|
111
|
+
id: string;
|
|
112
|
+
name: string;
|
|
113
|
+
project: {
|
|
114
|
+
id: string;
|
|
115
|
+
url: string;
|
|
116
|
+
};
|
|
117
|
+
state?: number | undefined;
|
|
118
|
+
slug?: string | undefined;
|
|
119
|
+
}, {
|
|
120
|
+
id: string;
|
|
121
|
+
name: string;
|
|
122
|
+
project: {
|
|
123
|
+
id: string;
|
|
124
|
+
url: string;
|
|
125
|
+
};
|
|
126
|
+
state?: number | undefined;
|
|
127
|
+
slug?: string | undefined;
|
|
128
|
+
}>>;
|
|
129
|
+
type CompositionDeletedPayload = z.infer<(typeof CompositionDeletedDefinition)['schema']>;
|
|
130
|
+
declare const CompositionDeletedEventName: string;
|
|
131
|
+
|
|
132
|
+
declare const CompositionPublishedDefinition: Definition<z.ZodObject<{
|
|
133
|
+
id: z.ZodString;
|
|
134
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
135
|
+
state: z.ZodNumber;
|
|
136
|
+
name: z.ZodString;
|
|
137
|
+
project: z.ZodObject<{
|
|
138
|
+
id: z.ZodString;
|
|
139
|
+
url: z.ZodString;
|
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
id: string;
|
|
142
|
+
url: string;
|
|
143
|
+
}, {
|
|
144
|
+
id: string;
|
|
145
|
+
url: string;
|
|
146
|
+
}>;
|
|
147
|
+
edit_url: z.ZodString;
|
|
148
|
+
}, "strip", z.ZodTypeAny, {
|
|
149
|
+
id: string;
|
|
150
|
+
state: number;
|
|
151
|
+
name: string;
|
|
152
|
+
project: {
|
|
153
|
+
id: string;
|
|
154
|
+
url: string;
|
|
155
|
+
};
|
|
156
|
+
edit_url: string;
|
|
157
|
+
slug?: string | undefined;
|
|
158
|
+
}, {
|
|
159
|
+
id: string;
|
|
160
|
+
state: number;
|
|
161
|
+
name: string;
|
|
162
|
+
project: {
|
|
163
|
+
id: string;
|
|
164
|
+
url: string;
|
|
165
|
+
};
|
|
166
|
+
edit_url: string;
|
|
167
|
+
slug?: string | undefined;
|
|
168
|
+
}>>;
|
|
169
|
+
type CompositionPublishedPayload = z.infer<(typeof CompositionPublishedDefinition)['schema']>;
|
|
170
|
+
declare const CompositionPublishedEventName: string;
|
|
171
|
+
|
|
172
|
+
declare const ManifestPublishedDefinition: Definition<z.ZodObject<{
|
|
173
|
+
timestamp: z.ZodNumber;
|
|
174
|
+
site: z.ZodObject<{
|
|
175
|
+
id: z.ZodString;
|
|
176
|
+
name: z.ZodString;
|
|
177
|
+
}, "strip", z.ZodTypeAny, {
|
|
178
|
+
id: string;
|
|
179
|
+
name: string;
|
|
180
|
+
}, {
|
|
181
|
+
id: string;
|
|
182
|
+
name: string;
|
|
183
|
+
}>;
|
|
184
|
+
}, "strip", z.ZodTypeAny, {
|
|
185
|
+
timestamp: number;
|
|
186
|
+
site: {
|
|
187
|
+
id: string;
|
|
188
|
+
name: string;
|
|
189
|
+
};
|
|
190
|
+
}, {
|
|
191
|
+
timestamp: number;
|
|
192
|
+
site: {
|
|
193
|
+
id: string;
|
|
194
|
+
name: string;
|
|
195
|
+
};
|
|
196
|
+
}>>;
|
|
197
|
+
type ManifestPublishedPayload = z.infer<(typeof ManifestPublishedDefinition)['schema']>;
|
|
198
|
+
declare const ManifestPublishedEventName: string;
|
|
199
|
+
|
|
200
|
+
declare const ProjectMapDeleteDefinition: Definition<z.ZodObject<{
|
|
201
|
+
id: z.ZodString;
|
|
202
|
+
base_url: z.ZodOptional<z.ZodString>;
|
|
203
|
+
project_id: z.ZodString;
|
|
204
|
+
}, "strip", z.ZodTypeAny, {
|
|
205
|
+
id: string;
|
|
206
|
+
project_id: string;
|
|
207
|
+
base_url?: string | undefined;
|
|
208
|
+
}, {
|
|
209
|
+
id: string;
|
|
210
|
+
project_id: string;
|
|
211
|
+
base_url?: string | undefined;
|
|
212
|
+
}>>;
|
|
213
|
+
type ProjectMapDeletedPayload = z.infer<(typeof ProjectMapDeleteDefinition)['schema']>;
|
|
214
|
+
declare const ProjectMapDeletedEventName: string;
|
|
215
|
+
|
|
216
|
+
declare const ProjectMapNodeDeleteDefinition: Definition<z.ZodObject<{
|
|
217
|
+
project_id: z.ZodString;
|
|
218
|
+
project_map_id: z.ZodString;
|
|
219
|
+
id: z.ZodString;
|
|
220
|
+
path: z.ZodString;
|
|
221
|
+
composition_id: z.ZodOptional<z.ZodString>;
|
|
222
|
+
}, "strip", z.ZodTypeAny, {
|
|
223
|
+
id: string;
|
|
224
|
+
path: string;
|
|
225
|
+
project_id: string;
|
|
226
|
+
project_map_id: string;
|
|
227
|
+
composition_id?: string | undefined;
|
|
228
|
+
}, {
|
|
229
|
+
id: string;
|
|
230
|
+
path: string;
|
|
231
|
+
project_id: string;
|
|
232
|
+
project_map_id: string;
|
|
233
|
+
composition_id?: string | undefined;
|
|
234
|
+
}>>;
|
|
235
|
+
type ProjectMapNodeDeletedPayload = z.infer<(typeof ProjectMapNodeDeleteDefinition)['schema']>;
|
|
236
|
+
declare const ProjectMapNodeDeletedEventName: string;
|
|
237
|
+
|
|
238
|
+
declare const ProjectMapNodeInsertDefinition: Definition<z.ZodObject<{
|
|
239
|
+
id: z.ZodString;
|
|
240
|
+
project_map_id: z.ZodString;
|
|
241
|
+
project_id: z.ZodString;
|
|
242
|
+
path: z.ZodString;
|
|
243
|
+
composition_id: z.ZodOptional<z.ZodString>;
|
|
244
|
+
}, "strip", z.ZodTypeAny, {
|
|
245
|
+
id: string;
|
|
246
|
+
path: string;
|
|
247
|
+
project_id: string;
|
|
248
|
+
project_map_id: string;
|
|
249
|
+
composition_id?: string | undefined;
|
|
250
|
+
}, {
|
|
251
|
+
id: string;
|
|
252
|
+
path: string;
|
|
253
|
+
project_id: string;
|
|
254
|
+
project_map_id: string;
|
|
255
|
+
composition_id?: string | undefined;
|
|
256
|
+
}>>;
|
|
257
|
+
type ProjectMapNodeInsertedPayload = z.infer<(typeof ProjectMapNodeInsertDefinition)['schema']>;
|
|
258
|
+
declare const ProjectMapNodeInsertedEventName: string;
|
|
259
|
+
|
|
260
|
+
declare const ProjectMapNodeUpdateDefinition: Definition<z.ZodObject<{
|
|
261
|
+
id: z.ZodString;
|
|
262
|
+
project_map_id: z.ZodString;
|
|
263
|
+
project_id: z.ZodString;
|
|
264
|
+
path: z.ZodString;
|
|
265
|
+
composition_id: z.ZodOptional<z.ZodString>;
|
|
266
|
+
previous_path: z.ZodString;
|
|
267
|
+
}, "strip", z.ZodTypeAny, {
|
|
268
|
+
id: string;
|
|
269
|
+
path: string;
|
|
270
|
+
project_id: string;
|
|
271
|
+
project_map_id: string;
|
|
272
|
+
previous_path: string;
|
|
273
|
+
composition_id?: string | undefined;
|
|
274
|
+
}, {
|
|
275
|
+
id: string;
|
|
276
|
+
path: string;
|
|
277
|
+
project_id: string;
|
|
278
|
+
project_map_id: string;
|
|
279
|
+
previous_path: string;
|
|
280
|
+
composition_id?: string | undefined;
|
|
281
|
+
}>>;
|
|
282
|
+
type ProjectMapNodeUpdatedPayload = z.infer<(typeof ProjectMapNodeUpdateDefinition)['schema']>;
|
|
283
|
+
declare const ProjectMapNodeUpdatedEventName: string;
|
|
284
|
+
|
|
285
|
+
declare const ProjectMapUpdateDefinition: Definition<z.ZodObject<{
|
|
286
|
+
id: z.ZodString;
|
|
287
|
+
base_url: z.ZodOptional<z.ZodString>;
|
|
288
|
+
project_id: z.ZodString;
|
|
289
|
+
}, "strip", z.ZodTypeAny, {
|
|
290
|
+
id: string;
|
|
291
|
+
project_id: string;
|
|
292
|
+
base_url?: string | undefined;
|
|
293
|
+
}, {
|
|
294
|
+
id: string;
|
|
295
|
+
project_id: string;
|
|
296
|
+
base_url?: string | undefined;
|
|
297
|
+
}>>;
|
|
298
|
+
type ProjectMapUpdatedPayload = z.infer<(typeof ProjectMapUpdateDefinition)['schema']>;
|
|
299
|
+
declare const ProjectMapUpdatedEventName: string;
|
|
300
|
+
|
|
301
|
+
declare const RedirectDeleteDefinition: Definition<z.ZodObject<{
|
|
302
|
+
project_id: z.ZodString;
|
|
303
|
+
id: z.ZodString;
|
|
304
|
+
source_url: z.ZodString;
|
|
305
|
+
target_url: z.ZodString;
|
|
306
|
+
target_status_code: z.ZodNumber;
|
|
307
|
+
}, "strip", z.ZodTypeAny, {
|
|
308
|
+
id: string;
|
|
309
|
+
project_id: string;
|
|
310
|
+
source_url: string;
|
|
311
|
+
target_url: string;
|
|
312
|
+
target_status_code: number;
|
|
313
|
+
}, {
|
|
314
|
+
id: string;
|
|
315
|
+
project_id: string;
|
|
316
|
+
source_url: string;
|
|
317
|
+
target_url: string;
|
|
318
|
+
target_status_code: number;
|
|
319
|
+
}>>;
|
|
320
|
+
type RedirectDeletedPayload = z.infer<(typeof RedirectDeleteDefinition)['schema']>;
|
|
321
|
+
declare const RedirectDeletedEventName: string;
|
|
322
|
+
|
|
323
|
+
declare const RedirectInsertDefinition: Definition<z.ZodObject<{
|
|
324
|
+
project_id: z.ZodString;
|
|
325
|
+
id: z.ZodString;
|
|
326
|
+
source_url: z.ZodString;
|
|
327
|
+
target_url: z.ZodString;
|
|
328
|
+
target_status_code: z.ZodNumber;
|
|
329
|
+
}, "strip", z.ZodTypeAny, {
|
|
330
|
+
id: string;
|
|
331
|
+
project_id: string;
|
|
332
|
+
source_url: string;
|
|
333
|
+
target_url: string;
|
|
334
|
+
target_status_code: number;
|
|
335
|
+
}, {
|
|
336
|
+
id: string;
|
|
337
|
+
project_id: string;
|
|
338
|
+
source_url: string;
|
|
339
|
+
target_url: string;
|
|
340
|
+
target_status_code: number;
|
|
341
|
+
}>>;
|
|
342
|
+
type RedirectInsertedPayload = z.infer<(typeof RedirectInsertDefinition)['schema']>;
|
|
343
|
+
declare const RedirectInsertedEventName: string;
|
|
344
|
+
|
|
345
|
+
declare const RedirectUpdateDefinition: Definition<z.ZodObject<{
|
|
346
|
+
project_id: z.ZodString;
|
|
347
|
+
id: z.ZodString;
|
|
348
|
+
source_url: z.ZodString;
|
|
349
|
+
target_url: z.ZodString;
|
|
350
|
+
target_status_code: z.ZodNumber;
|
|
351
|
+
}, "strip", z.ZodTypeAny, {
|
|
352
|
+
id: string;
|
|
353
|
+
project_id: string;
|
|
354
|
+
source_url: string;
|
|
355
|
+
target_url: string;
|
|
356
|
+
target_status_code: number;
|
|
357
|
+
}, {
|
|
358
|
+
id: string;
|
|
359
|
+
project_id: string;
|
|
360
|
+
source_url: string;
|
|
361
|
+
target_url: string;
|
|
362
|
+
target_status_code: number;
|
|
363
|
+
}>>;
|
|
364
|
+
type RedirectUpdatedPayload = z.infer<(typeof RedirectUpdateDefinition)['schema']>;
|
|
365
|
+
declare const RedirectUpdatedEventName: string;
|
|
366
|
+
|
|
367
|
+
export { CompositionChangedDefinition, CompositionChangedEventName, CompositionChangedPayload, CompositionDeletedDefinition, CompositionDeletedEventName, CompositionDeletedPayload, CompositionPayload, CompositionPayloadSchema, CompositionPublishedDefinition, CompositionPublishedEventName, CompositionPublishedPayload, Definition, DefinitionOptions, ManifestPublishedDefinition, ManifestPublishedEventName, ManifestPublishedPayload, ProjectMapDeleteDefinition, ProjectMapDeletedEventName, ProjectMapDeletedPayload, ProjectMapNodeDeleteDefinition, ProjectMapNodeDeletedEventName, ProjectMapNodeDeletedPayload, ProjectMapNodeInsertDefinition, ProjectMapNodeInsertedEventName, ProjectMapNodeInsertedPayload, ProjectMapNodeUpdateDefinition, ProjectMapNodeUpdatedEventName, ProjectMapNodeUpdatedPayload, ProjectMapUpdateDefinition, ProjectMapUpdatedEventName, ProjectMapUpdatedPayload, RedirectDeleteDefinition, RedirectDeletedEventName, RedirectDeletedPayload, RedirectInsertDefinition, RedirectInsertedEventName, RedirectInsertedPayload, RedirectUpdateDefinition, RedirectUpdatedEventName, RedirectUpdatedPayload, definition, isDefinition };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/webhooks",
|
|
3
|
-
"version": "19.35.
|
|
3
|
+
"version": "19.35.3-alpha.82+4bc341093",
|
|
4
4
|
"description": "Uniform Webhooks",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "4bc341093bc946900df2646fe53eca4bcddc693c"
|
|
44
44
|
}
|