@automate.ax/integration-contracts 0.112.0 → 0.112.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.
- package/dist/asana/schemas.d.ts +6 -6
- package/dist/asana/schemas.js +10 -6
- package/package.json +2 -2
- package/src/asana/schemas.ts +10 -6
package/dist/asana/schemas.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ export declare const ASANA_WORKSPACE_SCHEMA: z.ZodObject<{
|
|
|
3
3
|
id: z.ZodString;
|
|
4
4
|
name: z.ZodOptional<z.ZodString>;
|
|
5
5
|
type: z.ZodOptional<z.ZodString>;
|
|
6
|
-
emailDomains: z.ZodArray<z.ZodString
|
|
7
|
-
isOrganization: z.ZodBoolean
|
|
6
|
+
emailDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
isOrganization: z.ZodOptional<z.ZodBoolean>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
export declare const ASANA_USER_SCHEMA: z.ZodObject<{
|
|
10
10
|
id: z.ZodString;
|
|
@@ -613,8 +613,8 @@ export declare const ASANA_PROVIDER_WORKSPACE_SCHEMA: z.ZodObject<{
|
|
|
613
613
|
name: z.ZodOptional<z.ZodString>;
|
|
614
614
|
resource_subtype: z.ZodOptional<z.ZodString>;
|
|
615
615
|
resource_type: z.ZodOptional<z.ZodString>;
|
|
616
|
-
email_domains: z.ZodArray<z.ZodString
|
|
617
|
-
is_organization: z.ZodBoolean
|
|
616
|
+
email_domains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
617
|
+
is_organization: z.ZodOptional<z.ZodBoolean>;
|
|
618
618
|
}, z.core.$loose>;
|
|
619
619
|
export declare const ASANA_PROVIDER_USER_SCHEMA: z.ZodObject<{
|
|
620
620
|
gid: z.ZodString;
|
|
@@ -871,8 +871,8 @@ export declare const ASANA_PROVIDER_EVENT_SCHEMA: z.ZodObject<{
|
|
|
871
871
|
* @param value - Provider-native workspace.
|
|
872
872
|
*/
|
|
873
873
|
export declare function toAsanaWorkspace(value: z.output<typeof ASANA_PROVIDER_WORKSPACE_SCHEMA>): {
|
|
874
|
-
|
|
875
|
-
|
|
874
|
+
isOrganization?: boolean | undefined;
|
|
875
|
+
emailDomains?: string[] | undefined;
|
|
876
876
|
id: string;
|
|
877
877
|
name: string | undefined;
|
|
878
878
|
type: string | undefined;
|
package/dist/asana/schemas.js
CHANGED
|
@@ -3,9 +3,9 @@ import { ASANA_PROVIDER_RESOURCE_SCHEMA, ASANA_RESOURCE_SCHEMA, toAsanaResource,
|
|
|
3
3
|
import { ASANA_CUSTOM_FIELD_VALUE_SCHEMA, ASANA_PROVIDER_CUSTOM_FIELD_VALUE_SCHEMA, toAsanaCustomFieldValue, } from "./resources.js";
|
|
4
4
|
export const ASANA_WORKSPACE_SCHEMA = ASANA_RESOURCE_SCHEMA.extend({
|
|
5
5
|
/** Domains associated with this workspace. */
|
|
6
|
-
emailDomains: z.string().array(),
|
|
6
|
+
emailDomains: z.string().array().optional(),
|
|
7
7
|
/** Whether the workspace is an Asana organization. */
|
|
8
|
-
isOrganization: z.boolean(),
|
|
8
|
+
isOrganization: z.boolean().optional(),
|
|
9
9
|
});
|
|
10
10
|
export const ASANA_USER_SCHEMA = ASANA_RESOURCE_SCHEMA.extend({
|
|
11
11
|
/** User email when the caller can access it. */
|
|
@@ -226,8 +226,8 @@ const ASANA_PROVIDER_MEMBERSHIP_SCHEMA = z.looseObject({
|
|
|
226
226
|
section: ASANA_PROVIDER_RESOURCE_SCHEMA.nullish(),
|
|
227
227
|
});
|
|
228
228
|
export const ASANA_PROVIDER_WORKSPACE_SCHEMA = ASANA_PROVIDER_RESOURCE_SCHEMA.extend({
|
|
229
|
-
email_domains: z.string().array(),
|
|
230
|
-
is_organization: z.boolean(),
|
|
229
|
+
email_domains: z.string().array().optional(),
|
|
230
|
+
is_organization: z.boolean().optional(),
|
|
231
231
|
});
|
|
232
232
|
export const ASANA_PROVIDER_USER_SCHEMA = ASANA_PROVIDER_RESOURCE_SCHEMA.extend({
|
|
233
233
|
email: z.string().optional(),
|
|
@@ -315,8 +315,12 @@ export const ASANA_PROVIDER_EVENT_SCHEMA = z.looseObject({
|
|
|
315
315
|
export function toAsanaWorkspace(value) {
|
|
316
316
|
return {
|
|
317
317
|
...toAsanaResource(value),
|
|
318
|
-
|
|
319
|
-
|
|
318
|
+
...(value.email_domains !== undefined && {
|
|
319
|
+
emailDomains: value.email_domains,
|
|
320
|
+
}),
|
|
321
|
+
...(value.is_organization !== undefined && {
|
|
322
|
+
isOrganization: value.is_organization,
|
|
323
|
+
}),
|
|
320
324
|
};
|
|
321
325
|
}
|
|
322
326
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/integration-contracts",
|
|
3
|
-
"version": "0.112.
|
|
3
|
+
"version": "0.112.4",
|
|
4
4
|
"description": "Shared integration payload contracts and provider primitives for Automate.ax.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@automate.ax/codec": "0.112.
|
|
53
|
+
"@automate.ax/codec": "0.112.4",
|
|
54
54
|
"@cfworker/json-schema": "^4.1.1",
|
|
55
55
|
"@googleapis/calendar": "^15.0.0",
|
|
56
56
|
"@googleapis/forms": "^6.0.1",
|
package/src/asana/schemas.ts
CHANGED
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
|
|
13
13
|
export const ASANA_WORKSPACE_SCHEMA = ASANA_RESOURCE_SCHEMA.extend({
|
|
14
14
|
/** Domains associated with this workspace. */
|
|
15
|
-
emailDomains: z.string().array(),
|
|
15
|
+
emailDomains: z.string().array().optional(),
|
|
16
16
|
|
|
17
17
|
/** Whether the workspace is an Asana organization. */
|
|
18
|
-
isOrganization: z.boolean(),
|
|
18
|
+
isOrganization: z.boolean().optional(),
|
|
19
19
|
})
|
|
20
20
|
|
|
21
21
|
export const ASANA_USER_SCHEMA = ASANA_RESOURCE_SCHEMA.extend({
|
|
@@ -326,8 +326,8 @@ const ASANA_PROVIDER_MEMBERSHIP_SCHEMA = z.looseObject({
|
|
|
326
326
|
|
|
327
327
|
export const ASANA_PROVIDER_WORKSPACE_SCHEMA =
|
|
328
328
|
ASANA_PROVIDER_RESOURCE_SCHEMA.extend({
|
|
329
|
-
email_domains: z.string().array(),
|
|
330
|
-
is_organization: z.boolean(),
|
|
329
|
+
email_domains: z.string().array().optional(),
|
|
330
|
+
is_organization: z.boolean().optional(),
|
|
331
331
|
})
|
|
332
332
|
|
|
333
333
|
export const ASANA_PROVIDER_USER_SCHEMA = ASANA_PROVIDER_RESOURCE_SCHEMA.extend(
|
|
@@ -432,8 +432,12 @@ export function toAsanaWorkspace(
|
|
|
432
432
|
) {
|
|
433
433
|
return {
|
|
434
434
|
...toAsanaResource(value),
|
|
435
|
-
|
|
436
|
-
|
|
435
|
+
...(value.email_domains !== undefined && {
|
|
436
|
+
emailDomains: value.email_domains,
|
|
437
|
+
}),
|
|
438
|
+
...(value.is_organization !== undefined && {
|
|
439
|
+
isOrganization: value.is_organization,
|
|
440
|
+
}),
|
|
437
441
|
}
|
|
438
442
|
}
|
|
439
443
|
|