@automate.ax/integration-contracts 0.99.2 → 0.99.4

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.
@@ -40,11 +40,24 @@ export declare const RESEND_EVENT_MUTATION_RESPONSE_SCHEMA: z.ZodObject<{
40
40
  id: z.ZodString;
41
41
  object: z.ZodLiteral<"event">;
42
42
  }, z.core.$strip>;
43
- export declare const RESEND_CONTACT_DELETE_RESPONSE_SCHEMA: z.ZodObject<{
44
- id: z.ZodString;
45
- object: z.ZodLiteral<"contact">;
43
+ export declare const RESEND_CONTACT_DELETE_WIRE_SCHEMA: z.ZodObject<{
44
+ contact: z.ZodString;
46
45
  deleted: z.ZodBoolean;
46
+ object: z.ZodLiteral<"contact">;
47
47
  }, z.core.$strip>;
48
+ export declare const RESEND_CONTACT_DELETE_RESPONSE_SCHEMA: z.ZodPipe<z.ZodObject<{
49
+ contact: z.ZodString;
50
+ deleted: z.ZodBoolean;
51
+ object: z.ZodLiteral<"contact">;
52
+ }, z.core.$strip>, z.ZodTransform<{
53
+ id: string;
54
+ deleted: boolean;
55
+ object: "contact";
56
+ }, {
57
+ contact: string;
58
+ deleted: boolean;
59
+ object: "contact";
60
+ }>>;
48
61
  export declare const RESEND_EVENT_DELETE_RESPONSE_SCHEMA: z.ZodObject<{
49
62
  id: z.ZodString;
50
63
  object: z.ZodLiteral<"event">;
@@ -38,7 +38,15 @@ export const RESEND_EVENT_MUTATION_RESPONSE_SCHEMA = z.object({
38
38
  id: z.string().min(1),
39
39
  object: z.literal("event"),
40
40
  });
41
- export const RESEND_CONTACT_DELETE_RESPONSE_SCHEMA = RESEND_CONTACT_MUTATION_RESPONSE_SCHEMA.extend({ deleted: z.boolean() });
41
+ export const RESEND_CONTACT_DELETE_WIRE_SCHEMA = z.object({
42
+ contact: z.string().min(1),
43
+ deleted: z.boolean(),
44
+ object: z.literal("contact"),
45
+ });
46
+ export const RESEND_CONTACT_DELETE_RESPONSE_SCHEMA = RESEND_CONTACT_DELETE_WIRE_SCHEMA.transform(({ contact: id, ...result }) => ({
47
+ ...result,
48
+ id,
49
+ }));
42
50
  export const RESEND_EVENT_DELETE_RESPONSE_SCHEMA = RESEND_EVENT_MUTATION_RESPONSE_SCHEMA.extend({ deleted: z.boolean() });
43
51
  export const RESEND_DELETE_RESPONSE_SCHEMA = RESEND_MUTATION_RESPONSE_SCHEMA.extend({ deleted: z.boolean() });
44
52
  export const RESEND_EMAIL_SUMMARY_WIRE_SCHEMA = z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/integration-contracts",
3
- "version": "0.99.2",
3
+ "version": "0.99.4",
4
4
  "description": "Shared integration payload contracts and provider primitives for Automate.ax.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -48,7 +48,7 @@
48
48
  }
49
49
  },
50
50
  "dependencies": {
51
- "@automate.ax/codec": "0.99.2",
51
+ "@automate.ax/codec": "0.99.4",
52
52
  "@cfworker/json-schema": "^4.1.1",
53
53
  "@googleapis/calendar": "^15.0.0",
54
54
  "@googleapis/forms": "^6.0.1",
@@ -47,8 +47,17 @@ export const RESEND_EVENT_MUTATION_RESPONSE_SCHEMA = z.object({
47
47
  object: z.literal("event"),
48
48
  })
49
49
 
50
+ export const RESEND_CONTACT_DELETE_WIRE_SCHEMA = z.object({
51
+ contact: z.string().min(1),
52
+ deleted: z.boolean(),
53
+ object: z.literal("contact"),
54
+ })
55
+
50
56
  export const RESEND_CONTACT_DELETE_RESPONSE_SCHEMA =
51
- RESEND_CONTACT_MUTATION_RESPONSE_SCHEMA.extend({ deleted: z.boolean() })
57
+ RESEND_CONTACT_DELETE_WIRE_SCHEMA.transform(({ contact: id, ...result }) => ({
58
+ ...result,
59
+ id,
60
+ }))
52
61
 
53
62
  export const RESEND_EVENT_DELETE_RESPONSE_SCHEMA =
54
63
  RESEND_EVENT_MUTATION_RESPONSE_SCHEMA.extend({ deleted: z.boolean() })