@uniformdev/webhooks 19.9.2-alpha.3 → 19.11.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 +67 -1
- package/dist/index.esm.js +81 -0
- package/dist/index.js +87 -0
- package/dist/index.mjs +81 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -298,4 +298,70 @@ declare const ProjectMapUpdateDefinition: Definition<z.ZodObject<{
|
|
|
298
298
|
type ProjectMapUpdatedPayload = z.infer<(typeof ProjectMapUpdateDefinition)['schema']>;
|
|
299
299
|
declare const ProjectMapUpdatedEventName: string;
|
|
300
300
|
|
|
301
|
-
|
|
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/dist/index.esm.js
CHANGED
|
@@ -242,6 +242,81 @@ var ProjectMapUpdateDefinition = definition(
|
|
|
242
242
|
}
|
|
243
243
|
);
|
|
244
244
|
var ProjectMapUpdatedEventName = ProjectMapUpdateDefinition["event"];
|
|
245
|
+
|
|
246
|
+
// src/redirect/redirect.delete.ts
|
|
247
|
+
import { z as z9 } from "zod";
|
|
248
|
+
var RedirectDeleteDefinition = definition(
|
|
249
|
+
{
|
|
250
|
+
event: "redirect.delete",
|
|
251
|
+
name: "Redirect Deleted",
|
|
252
|
+
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()
|
|
259
|
+
})
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
project_id: "bf978bb4-693b-4e75-9a57-8c89d27f4496",
|
|
263
|
+
id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
|
|
264
|
+
source_url: "/product-info",
|
|
265
|
+
target_url: "/product-details",
|
|
266
|
+
target_status_code: 301
|
|
267
|
+
}
|
|
268
|
+
);
|
|
269
|
+
var RedirectDeletedEventName = RedirectDeleteDefinition["event"];
|
|
270
|
+
|
|
271
|
+
// src/redirect/redirect.insert.ts
|
|
272
|
+
import { z as z10 } from "zod";
|
|
273
|
+
var RedirectInsertDefinition = definition(
|
|
274
|
+
{
|
|
275
|
+
event: "redirect.insert",
|
|
276
|
+
name: "Redirect Inserted",
|
|
277
|
+
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()
|
|
284
|
+
})
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
project_id: "bf978bb4-693b-4e75-9a57-8c89d27f4496",
|
|
288
|
+
id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
|
|
289
|
+
source_url: "/product-info",
|
|
290
|
+
target_url: "/product-details",
|
|
291
|
+
target_status_code: 301
|
|
292
|
+
}
|
|
293
|
+
);
|
|
294
|
+
var RedirectInsertedEventName = RedirectInsertDefinition["event"];
|
|
295
|
+
|
|
296
|
+
// src/redirect/redirect.update.ts
|
|
297
|
+
import { z as z11 } from "zod";
|
|
298
|
+
var RedirectUpdateDefinition = definition(
|
|
299
|
+
{
|
|
300
|
+
event: "redirect.update",
|
|
301
|
+
name: "Redirect Updated",
|
|
302
|
+
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()
|
|
309
|
+
})
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
project_id: "bf978bb4-693b-4e75-9a57-8c89d27f4496",
|
|
313
|
+
id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
|
|
314
|
+
source_url: "/product-info",
|
|
315
|
+
target_url: "/product-details",
|
|
316
|
+
target_status_code: 301
|
|
317
|
+
}
|
|
318
|
+
);
|
|
319
|
+
var RedirectUpdatedEventName = RedirectUpdateDefinition["event"];
|
|
245
320
|
export {
|
|
246
321
|
CompositionChangedDefinition,
|
|
247
322
|
CompositionChangedEventName,
|
|
@@ -262,6 +337,12 @@ export {
|
|
|
262
337
|
ProjectMapNodeUpdatedEventName,
|
|
263
338
|
ProjectMapUpdateDefinition,
|
|
264
339
|
ProjectMapUpdatedEventName,
|
|
340
|
+
RedirectDeleteDefinition,
|
|
341
|
+
RedirectDeletedEventName,
|
|
342
|
+
RedirectInsertDefinition,
|
|
343
|
+
RedirectInsertedEventName,
|
|
344
|
+
RedirectUpdateDefinition,
|
|
345
|
+
RedirectUpdatedEventName,
|
|
265
346
|
definition,
|
|
266
347
|
isDefinition
|
|
267
348
|
};
|
package/dist/index.js
CHANGED
|
@@ -39,6 +39,12 @@ __export(src_exports, {
|
|
|
39
39
|
ProjectMapNodeUpdatedEventName: () => ProjectMapNodeUpdatedEventName,
|
|
40
40
|
ProjectMapUpdateDefinition: () => ProjectMapUpdateDefinition,
|
|
41
41
|
ProjectMapUpdatedEventName: () => ProjectMapUpdatedEventName,
|
|
42
|
+
RedirectDeleteDefinition: () => RedirectDeleteDefinition,
|
|
43
|
+
RedirectDeletedEventName: () => RedirectDeletedEventName,
|
|
44
|
+
RedirectInsertDefinition: () => RedirectInsertDefinition,
|
|
45
|
+
RedirectInsertedEventName: () => RedirectInsertedEventName,
|
|
46
|
+
RedirectUpdateDefinition: () => RedirectUpdateDefinition,
|
|
47
|
+
RedirectUpdatedEventName: () => RedirectUpdatedEventName,
|
|
42
48
|
definition: () => definition,
|
|
43
49
|
isDefinition: () => isDefinition
|
|
44
50
|
});
|
|
@@ -288,6 +294,81 @@ var ProjectMapUpdateDefinition = definition(
|
|
|
288
294
|
}
|
|
289
295
|
);
|
|
290
296
|
var ProjectMapUpdatedEventName = ProjectMapUpdateDefinition["event"];
|
|
297
|
+
|
|
298
|
+
// src/redirect/redirect.delete.ts
|
|
299
|
+
var import_zod9 = require("zod");
|
|
300
|
+
var RedirectDeleteDefinition = definition(
|
|
301
|
+
{
|
|
302
|
+
event: "redirect.delete",
|
|
303
|
+
name: "Redirect Deleted",
|
|
304
|
+
description: "Triggers when a redirect is deleted.",
|
|
305
|
+
schema: import_zod9.z.object({
|
|
306
|
+
project_id: import_zod9.z.string(),
|
|
307
|
+
id: import_zod9.z.string(),
|
|
308
|
+
source_url: import_zod9.z.string(),
|
|
309
|
+
target_url: import_zod9.z.string(),
|
|
310
|
+
target_status_code: import_zod9.z.number()
|
|
311
|
+
})
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
project_id: "bf978bb4-693b-4e75-9a57-8c89d27f4496",
|
|
315
|
+
id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
|
|
316
|
+
source_url: "/product-info",
|
|
317
|
+
target_url: "/product-details",
|
|
318
|
+
target_status_code: 301
|
|
319
|
+
}
|
|
320
|
+
);
|
|
321
|
+
var RedirectDeletedEventName = RedirectDeleteDefinition["event"];
|
|
322
|
+
|
|
323
|
+
// src/redirect/redirect.insert.ts
|
|
324
|
+
var import_zod10 = require("zod");
|
|
325
|
+
var RedirectInsertDefinition = definition(
|
|
326
|
+
{
|
|
327
|
+
event: "redirect.insert",
|
|
328
|
+
name: "Redirect Inserted",
|
|
329
|
+
description: "Triggers when a redirect is inserted.",
|
|
330
|
+
schema: import_zod10.z.object({
|
|
331
|
+
project_id: import_zod10.z.string(),
|
|
332
|
+
id: import_zod10.z.string(),
|
|
333
|
+
source_url: import_zod10.z.string(),
|
|
334
|
+
target_url: import_zod10.z.string(),
|
|
335
|
+
target_status_code: import_zod10.z.number()
|
|
336
|
+
})
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
project_id: "bf978bb4-693b-4e75-9a57-8c89d27f4496",
|
|
340
|
+
id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
|
|
341
|
+
source_url: "/product-info",
|
|
342
|
+
target_url: "/product-details",
|
|
343
|
+
target_status_code: 301
|
|
344
|
+
}
|
|
345
|
+
);
|
|
346
|
+
var RedirectInsertedEventName = RedirectInsertDefinition["event"];
|
|
347
|
+
|
|
348
|
+
// src/redirect/redirect.update.ts
|
|
349
|
+
var import_zod11 = require("zod");
|
|
350
|
+
var RedirectUpdateDefinition = definition(
|
|
351
|
+
{
|
|
352
|
+
event: "redirect.update",
|
|
353
|
+
name: "Redirect Updated",
|
|
354
|
+
description: "Triggers when a redirect is updated.",
|
|
355
|
+
schema: import_zod11.z.object({
|
|
356
|
+
project_id: import_zod11.z.string(),
|
|
357
|
+
id: import_zod11.z.string(),
|
|
358
|
+
source_url: import_zod11.z.string(),
|
|
359
|
+
target_url: import_zod11.z.string(),
|
|
360
|
+
target_status_code: import_zod11.z.number()
|
|
361
|
+
})
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
project_id: "bf978bb4-693b-4e75-9a57-8c89d27f4496",
|
|
365
|
+
id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
|
|
366
|
+
source_url: "/product-info",
|
|
367
|
+
target_url: "/product-details",
|
|
368
|
+
target_status_code: 301
|
|
369
|
+
}
|
|
370
|
+
);
|
|
371
|
+
var RedirectUpdatedEventName = RedirectUpdateDefinition["event"];
|
|
291
372
|
// Annotate the CommonJS export names for ESM import in node:
|
|
292
373
|
0 && (module.exports = {
|
|
293
374
|
CompositionChangedDefinition,
|
|
@@ -309,6 +390,12 @@ var ProjectMapUpdatedEventName = ProjectMapUpdateDefinition["event"];
|
|
|
309
390
|
ProjectMapNodeUpdatedEventName,
|
|
310
391
|
ProjectMapUpdateDefinition,
|
|
311
392
|
ProjectMapUpdatedEventName,
|
|
393
|
+
RedirectDeleteDefinition,
|
|
394
|
+
RedirectDeletedEventName,
|
|
395
|
+
RedirectInsertDefinition,
|
|
396
|
+
RedirectInsertedEventName,
|
|
397
|
+
RedirectUpdateDefinition,
|
|
398
|
+
RedirectUpdatedEventName,
|
|
312
399
|
definition,
|
|
313
400
|
isDefinition
|
|
314
401
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -242,6 +242,81 @@ var ProjectMapUpdateDefinition = definition(
|
|
|
242
242
|
}
|
|
243
243
|
);
|
|
244
244
|
var ProjectMapUpdatedEventName = ProjectMapUpdateDefinition["event"];
|
|
245
|
+
|
|
246
|
+
// src/redirect/redirect.delete.ts
|
|
247
|
+
import { z as z9 } from "zod";
|
|
248
|
+
var RedirectDeleteDefinition = definition(
|
|
249
|
+
{
|
|
250
|
+
event: "redirect.delete",
|
|
251
|
+
name: "Redirect Deleted",
|
|
252
|
+
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()
|
|
259
|
+
})
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
project_id: "bf978bb4-693b-4e75-9a57-8c89d27f4496",
|
|
263
|
+
id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
|
|
264
|
+
source_url: "/product-info",
|
|
265
|
+
target_url: "/product-details",
|
|
266
|
+
target_status_code: 301
|
|
267
|
+
}
|
|
268
|
+
);
|
|
269
|
+
var RedirectDeletedEventName = RedirectDeleteDefinition["event"];
|
|
270
|
+
|
|
271
|
+
// src/redirect/redirect.insert.ts
|
|
272
|
+
import { z as z10 } from "zod";
|
|
273
|
+
var RedirectInsertDefinition = definition(
|
|
274
|
+
{
|
|
275
|
+
event: "redirect.insert",
|
|
276
|
+
name: "Redirect Inserted",
|
|
277
|
+
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()
|
|
284
|
+
})
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
project_id: "bf978bb4-693b-4e75-9a57-8c89d27f4496",
|
|
288
|
+
id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
|
|
289
|
+
source_url: "/product-info",
|
|
290
|
+
target_url: "/product-details",
|
|
291
|
+
target_status_code: 301
|
|
292
|
+
}
|
|
293
|
+
);
|
|
294
|
+
var RedirectInsertedEventName = RedirectInsertDefinition["event"];
|
|
295
|
+
|
|
296
|
+
// src/redirect/redirect.update.ts
|
|
297
|
+
import { z as z11 } from "zod";
|
|
298
|
+
var RedirectUpdateDefinition = definition(
|
|
299
|
+
{
|
|
300
|
+
event: "redirect.update",
|
|
301
|
+
name: "Redirect Updated",
|
|
302
|
+
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()
|
|
309
|
+
})
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
project_id: "bf978bb4-693b-4e75-9a57-8c89d27f4496",
|
|
313
|
+
id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
|
|
314
|
+
source_url: "/product-info",
|
|
315
|
+
target_url: "/product-details",
|
|
316
|
+
target_status_code: 301
|
|
317
|
+
}
|
|
318
|
+
);
|
|
319
|
+
var RedirectUpdatedEventName = RedirectUpdateDefinition["event"];
|
|
245
320
|
export {
|
|
246
321
|
CompositionChangedDefinition,
|
|
247
322
|
CompositionChangedEventName,
|
|
@@ -262,6 +337,12 @@ export {
|
|
|
262
337
|
ProjectMapNodeUpdatedEventName,
|
|
263
338
|
ProjectMapUpdateDefinition,
|
|
264
339
|
ProjectMapUpdatedEventName,
|
|
340
|
+
RedirectDeleteDefinition,
|
|
341
|
+
RedirectDeletedEventName,
|
|
342
|
+
RedirectInsertDefinition,
|
|
343
|
+
RedirectInsertedEventName,
|
|
344
|
+
RedirectUpdateDefinition,
|
|
345
|
+
RedirectUpdatedEventName,
|
|
265
346
|
definition,
|
|
266
347
|
isDefinition
|
|
267
348
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/webhooks",
|
|
3
|
-
"version": "19.
|
|
3
|
+
"version": "19.11.0",
|
|
4
4
|
"description": "Uniform Webhooks",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"dotenv": "^16.0.3",
|
|
36
36
|
"npm-run-all": "4.1.5",
|
|
37
37
|
"svix": "^0.84.0",
|
|
38
|
-
"zod-to-json-schema": "3.21.
|
|
38
|
+
"zod-to-json-schema": "3.21.1"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "25d492fe923f313b517cbc70d3ff13fdcf97fa34"
|
|
44
44
|
}
|