@automate.ax/integration-contracts 0.152.4 → 0.152.5
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/calcom/schemas.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export type CalcomResponseData<TName extends CalcomSchemaName> = CalcomSchemaVal
|
|
|
17
17
|
*
|
|
18
18
|
* @param name OpenAPI component schema name.
|
|
19
19
|
*/
|
|
20
|
-
export declare function calcomSchema<TName extends CalcomSchemaName>(name: TName): z.ZodType<CalcomSchemaValue<TName>>;
|
|
20
|
+
export declare function calcomSchema<TName extends CalcomSchemaName>(name: TName): z.ZodType<CalcomSchemaValue<TName>, CalcomSchemaValue<TName>>;
|
|
21
21
|
/**
|
|
22
22
|
* Validates data after it has been removed from a Cal.com success envelope.
|
|
23
23
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/integration-contracts",
|
|
3
|
-
"version": "0.152.
|
|
3
|
+
"version": "0.152.5",
|
|
4
4
|
"description": "Shared integration payload contracts and provider primitives for Automate.ax.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@anthropic-ai/sdk": "0.123.0",
|
|
75
|
-
"@automate.ax/codec": "0.152.
|
|
75
|
+
"@automate.ax/codec": "0.152.5",
|
|
76
76
|
"@cfworker/json-schema": "^4.1.1",
|
|
77
77
|
"@googleapis/calendar": "^16.0.0",
|
|
78
78
|
"@googleapis/forms": "^6.0.1",
|
package/src/calcom/schemas.ts
CHANGED
|
@@ -55,7 +55,7 @@ const VALIDATOR = new Validator(
|
|
|
55
55
|
*/
|
|
56
56
|
export function calcomSchema<TName extends CalcomSchemaName>(
|
|
57
57
|
name: TName,
|
|
58
|
-
): z.ZodType<CalcomSchemaValue<TName>> {
|
|
58
|
+
): z.ZodType<CalcomSchemaValue<TName>, CalcomSchemaValue<TName>> {
|
|
59
59
|
return z.custom<CalcomSchemaValue<TName>>(
|
|
60
60
|
(value) => VALIDATOR.validate({ [name]: value }).valid,
|
|
61
61
|
)
|