@automate.ax/integration-contracts 0.119.7 → 0.119.8

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.
@@ -86,11 +86,11 @@ export declare const TIDYCAL_BOOKING_TYPE_SCHEMA: z.ZodObject<{
86
86
  latestAvailabilityDays: z.ZodNumber;
87
87
  maxBookings: z.ZodNumber;
88
88
  paddingMinutes: z.ZodNumber;
89
- paymentPlatform: z.ZodNullable<z.ZodEnum<{
89
+ paymentPlatform: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
90
90
  tidycal: "tidycal";
91
91
  paypal: "paypal";
92
92
  stripe: "stripe";
93
- }>>;
93
+ }>>>;
94
94
  paymentPlatformId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
95
95
  price: z.ZodPipe<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodNumber>;
96
96
  private: z.ZodBoolean;
@@ -114,8 +114,20 @@ export declare const TIDYCAL_TEAM_SCHEMA: z.ZodObject<{
114
114
  }, z.core.$strip>;
115
115
  export declare const TIDYCAL_TEAM_USER_SCHEMA: z.ZodObject<{
116
116
  createdAt: z.ZodISODateTime;
117
- email: z.ZodEmail;
118
117
  id: z.ZodNumber;
119
- name: z.ZodString;
118
+ invitationAcceptedAt: z.ZodNullable<z.ZodISODateTime>;
119
+ invitationEmail: z.ZodEmail;
120
+ role: z.ZodObject<{
121
+ id: z.ZodString;
122
+ name: z.ZodString;
123
+ }, z.core.$strip>;
124
+ roleId: z.ZodString;
125
+ teamId: z.ZodNumber;
120
126
  updatedAt: z.ZodISODateTime;
127
+ user: z.ZodNullable<z.ZodObject<{
128
+ email: z.ZodEmail;
129
+ id: z.ZodNumber;
130
+ name: z.ZodString;
131
+ }, z.core.$strip>>;
132
+ userId: z.ZodNullable<z.ZodNumber>;
121
133
  }, z.core.$strip>;
@@ -73,7 +73,10 @@ export const TIDYCAL_BOOKING_TYPE_SCHEMA = z.object({
73
73
  latestAvailabilityDays: z.number().int().min(0),
74
74
  maxBookings: z.number().int().positive(),
75
75
  paddingMinutes: z.number().int().min(0),
76
- paymentPlatform: z.enum(["paypal", "stripe", "tidycal"]).nullable(),
76
+ paymentPlatform: z
77
+ .enum(["paypal", "stripe", "tidycal"])
78
+ .nullable()
79
+ .optional(),
77
80
  paymentPlatformId: z.string().nullable().optional(),
78
81
  price: TIDYCAL_PRICE_SCHEMA,
79
82
  private: z.boolean(),
@@ -97,8 +100,15 @@ export const TIDYCAL_TEAM_SCHEMA = z.object({
97
100
  });
98
101
  export const TIDYCAL_TEAM_USER_SCHEMA = z.object({
99
102
  createdAt: DATE_TIME_SCHEMA,
100
- email: z.email(),
101
103
  id: ID_SCHEMA,
102
- name: z.string(),
104
+ invitationAcceptedAt: DATE_TIME_SCHEMA.nullable(),
105
+ invitationEmail: z.email(),
106
+ role: z.object({ id: z.string(), name: z.string() }),
107
+ roleId: z.string(),
108
+ teamId: ID_SCHEMA,
103
109
  updatedAt: DATE_TIME_SCHEMA,
110
+ user: z
111
+ .object({ email: z.email(), id: ID_SCHEMA, name: z.string() })
112
+ .nullable(),
113
+ userId: ID_SCHEMA.nullable(),
104
114
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@automate.ax/integration-contracts",
3
- "version": "0.119.7",
3
+ "version": "0.119.8",
4
4
  "description": "Shared integration payload contracts and provider primitives for Automate.ax.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -53,7 +53,7 @@
53
53
  }
54
54
  },
55
55
  "dependencies": {
56
- "@automate.ax/codec": "0.119.7",
56
+ "@automate.ax/codec": "0.119.8",
57
57
  "@cfworker/json-schema": "^4.1.1",
58
58
  "@googleapis/calendar": "^15.0.0",
59
59
  "@googleapis/forms": "^6.0.1",
@@ -80,7 +80,10 @@ export const TIDYCAL_BOOKING_TYPE_SCHEMA = z.object({
80
80
  latestAvailabilityDays: z.number().int().min(0),
81
81
  maxBookings: z.number().int().positive(),
82
82
  paddingMinutes: z.number().int().min(0),
83
- paymentPlatform: z.enum(["paypal", "stripe", "tidycal"]).nullable(),
83
+ paymentPlatform: z
84
+ .enum(["paypal", "stripe", "tidycal"])
85
+ .nullable()
86
+ .optional(),
84
87
  paymentPlatformId: z.string().nullable().optional(),
85
88
  price: TIDYCAL_PRICE_SCHEMA,
86
89
  private: z.boolean(),
@@ -107,8 +110,15 @@ export const TIDYCAL_TEAM_SCHEMA = z.object({
107
110
 
108
111
  export const TIDYCAL_TEAM_USER_SCHEMA = z.object({
109
112
  createdAt: DATE_TIME_SCHEMA,
110
- email: z.email(),
111
113
  id: ID_SCHEMA,
112
- name: z.string(),
114
+ invitationAcceptedAt: DATE_TIME_SCHEMA.nullable(),
115
+ invitationEmail: z.email(),
116
+ role: z.object({ id: z.string(), name: z.string() }),
117
+ roleId: z.string(),
118
+ teamId: ID_SCHEMA,
113
119
  updatedAt: DATE_TIME_SCHEMA,
120
+ user: z
121
+ .object({ email: z.email(), id: ID_SCHEMA, name: z.string() })
122
+ .nullable(),
123
+ userId: ID_SCHEMA.nullable(),
114
124
  })