@unified-api/typescript-sdk 2.9.25 → 2.9.27
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/funcs/hrisListHrisPayslips.d.ts.map +1 -1
- package/funcs/hrisListHrisPayslips.js +1 -0
- package/funcs/hrisListHrisPayslips.js.map +1 -1
- package/funcs/hrisListHrisTimeoffs.d.ts.map +1 -1
- package/funcs/hrisListHrisTimeoffs.js +1 -0
- package/funcs/hrisListHrisTimeoffs.js.map +1 -1
- package/funcs/payslipListHrisPayslips.d.ts.map +1 -1
- package/funcs/payslipListHrisPayslips.js +1 -0
- package/funcs/payslipListHrisPayslips.js.map +1 -1
- package/funcs/timeoffListHrisTimeoffs.d.ts.map +1 -1
- package/funcs/timeoffListHrisTimeoffs.js +1 -0
- package/funcs/timeoffListHrisTimeoffs.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/retries.js +0 -1
- package/lib/retries.js.map +1 -1
- package/package.json +6 -7
- package/sdk/models/operations/listhrispayslips.d.ts +2 -0
- package/sdk/models/operations/listhrispayslips.d.ts.map +1 -1
- package/sdk/models/operations/listhrispayslips.js +4 -0
- package/sdk/models/operations/listhrispayslips.js.map +1 -1
- package/sdk/models/operations/listhristimeoffs.d.ts +2 -0
- package/sdk/models/operations/listhristimeoffs.d.ts.map +1 -1
- package/sdk/models/operations/listhristimeoffs.js +4 -0
- package/sdk/models/operations/listhristimeoffs.js.map +1 -1
- package/sdk/models/shared/commercecollection.d.ts +23 -6
- package/sdk/models/shared/commercecollection.d.ts.map +1 -1
- package/sdk/models/shared/commercecollection.js +28 -3
- package/sdk/models/shared/commercecollection.js.map +1 -1
- package/sdk/models/shared/commerceinventory.d.ts +23 -6
- package/sdk/models/shared/commerceinventory.d.ts.map +1 -1
- package/sdk/models/shared/commerceinventory.js +26 -3
- package/sdk/models/shared/commerceinventory.js.map +1 -1
- package/sdk/models/shared/commerceitem.d.ts +23 -6
- package/sdk/models/shared/commerceitem.d.ts.map +1 -1
- package/sdk/models/shared/commerceitem.js +26 -3
- package/sdk/models/shared/commerceitem.js.map +1 -1
- package/sdk/models/shared/commerceitemmetadata.d.ts +46 -12
- package/sdk/models/shared/commerceitemmetadata.d.ts.map +1 -1
- package/sdk/models/shared/commerceitemmetadata.js +52 -5
- package/sdk/models/shared/commerceitemmetadata.js.map +1 -1
- package/sdk/models/shared/commercelocation.d.ts +23 -6
- package/sdk/models/shared/commercelocation.d.ts.map +1 -1
- package/sdk/models/shared/commercelocation.js +26 -3
- package/sdk/models/shared/commercelocation.js.map +1 -1
- package/sdk/models/shared/connection.d.ts +2 -0
- package/sdk/models/shared/connection.d.ts.map +1 -1
- package/sdk/models/shared/connection.js +4 -0
- package/sdk/models/shared/connection.js.map +1 -1
- package/sdk/models/shared/integrationsupport.d.ts +30 -0
- package/sdk/models/shared/integrationsupport.d.ts.map +1 -1
- package/sdk/models/shared/integrationsupport.js +30 -5
- package/sdk/models/shared/integrationsupport.js.map +1 -1
- package/sdk/models/shared/propertyconnectionauth.d.ts +23 -6
- package/sdk/models/shared/propertyconnectionauth.d.ts.map +1 -1
- package/sdk/models/shared/propertyconnectionauth.js +26 -3
- package/sdk/models/shared/propertyconnectionauth.js.map +1 -1
- package/sdk/models/shared/webhook.d.ts +23 -6
- package/sdk/models/shared/webhook.d.ts.map +1 -1
- package/sdk/models/shared/webhook.js +27 -3
- package/sdk/models/shared/webhook.js.map +1 -1
- package/src/funcs/hrisListHrisPayslips.ts +1 -0
- package/src/funcs/hrisListHrisTimeoffs.ts +1 -0
- package/src/funcs/payslipListHrisPayslips.ts +1 -0
- package/src/funcs/timeoffListHrisTimeoffs.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/retries.ts +0 -1
- package/src/sdk/models/operations/listhrispayslips.ts +6 -0
- package/src/sdk/models/operations/listhristimeoffs.ts +6 -0
- package/src/sdk/models/shared/commercecollection.ts +44 -4
- package/src/sdk/models/shared/commerceinventory.ts +54 -4
- package/src/sdk/models/shared/commerceitem.ts +52 -4
- package/src/sdk/models/shared/commerceitemmetadata.ts +97 -8
- package/src/sdk/models/shared/commercelocation.ts +54 -4
- package/src/sdk/models/shared/connection.ts +6 -0
- package/src/sdk/models/shared/integrationsupport.ts +32 -0
- package/src/sdk/models/shared/propertyconnectionauth.ts +54 -4
- package/src/sdk/models/shared/webhook.ts +44 -4
|
@@ -26,6 +26,8 @@ import {
|
|
|
26
26
|
CommerceItemVariant$outboundSchema,
|
|
27
27
|
} from "./commerceitemvariant.js";
|
|
28
28
|
|
|
29
|
+
export type CommerceItemRaw = {};
|
|
30
|
+
|
|
29
31
|
export type CommerceItem = {
|
|
30
32
|
accountId?: string | undefined;
|
|
31
33
|
collectionIds?: Array<string> | undefined;
|
|
@@ -39,7 +41,7 @@ export type CommerceItem = {
|
|
|
39
41
|
name?: string | undefined;
|
|
40
42
|
publicDescription?: string | undefined;
|
|
41
43
|
publicName?: string | undefined;
|
|
42
|
-
raw?:
|
|
44
|
+
raw?: CommerceItemRaw | undefined;
|
|
43
45
|
slug?: string | undefined;
|
|
44
46
|
tags?: Array<string> | undefined;
|
|
45
47
|
type?: string | undefined;
|
|
@@ -51,6 +53,52 @@ export type CommerceItem = {
|
|
|
51
53
|
vendorName?: string | undefined;
|
|
52
54
|
};
|
|
53
55
|
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const CommerceItemRaw$inboundSchema: z.ZodType<
|
|
58
|
+
CommerceItemRaw,
|
|
59
|
+
z.ZodTypeDef,
|
|
60
|
+
unknown
|
|
61
|
+
> = z.object({});
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export type CommerceItemRaw$Outbound = {};
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const CommerceItemRaw$outboundSchema: z.ZodType<
|
|
68
|
+
CommerceItemRaw$Outbound,
|
|
69
|
+
z.ZodTypeDef,
|
|
70
|
+
CommerceItemRaw
|
|
71
|
+
> = z.object({});
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @internal
|
|
75
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
76
|
+
*/
|
|
77
|
+
export namespace CommerceItemRaw$ {
|
|
78
|
+
/** @deprecated use `CommerceItemRaw$inboundSchema` instead. */
|
|
79
|
+
export const inboundSchema = CommerceItemRaw$inboundSchema;
|
|
80
|
+
/** @deprecated use `CommerceItemRaw$outboundSchema` instead. */
|
|
81
|
+
export const outboundSchema = CommerceItemRaw$outboundSchema;
|
|
82
|
+
/** @deprecated use `CommerceItemRaw$Outbound` instead. */
|
|
83
|
+
export type Outbound = CommerceItemRaw$Outbound;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function commerceItemRawToJSON(
|
|
87
|
+
commerceItemRaw: CommerceItemRaw,
|
|
88
|
+
): string {
|
|
89
|
+
return JSON.stringify(CommerceItemRaw$outboundSchema.parse(commerceItemRaw));
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function commerceItemRawFromJSON(
|
|
93
|
+
jsonString: string,
|
|
94
|
+
): SafeParseResult<CommerceItemRaw, SDKValidationError> {
|
|
95
|
+
return safeParse(
|
|
96
|
+
jsonString,
|
|
97
|
+
(x) => CommerceItemRaw$inboundSchema.parse(JSON.parse(x)),
|
|
98
|
+
`Failed to parse 'CommerceItemRaw' from JSON`,
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
|
|
54
102
|
/** @internal */
|
|
55
103
|
export const CommerceItem$inboundSchema: z.ZodType<
|
|
56
104
|
CommerceItem,
|
|
@@ -70,7 +118,7 @@ export const CommerceItem$inboundSchema: z.ZodType<
|
|
|
70
118
|
name: z.string().optional(),
|
|
71
119
|
public_description: z.string().optional(),
|
|
72
120
|
public_name: z.string().optional(),
|
|
73
|
-
raw: z.
|
|
121
|
+
raw: z.lazy(() => CommerceItemRaw$inboundSchema).optional(),
|
|
74
122
|
slug: z.string().optional(),
|
|
75
123
|
tags: z.array(z.string()).optional(),
|
|
76
124
|
type: z.string().optional(),
|
|
@@ -106,7 +154,7 @@ export type CommerceItem$Outbound = {
|
|
|
106
154
|
name?: string | undefined;
|
|
107
155
|
public_description?: string | undefined;
|
|
108
156
|
public_name?: string | undefined;
|
|
109
|
-
raw?:
|
|
157
|
+
raw?: CommerceItemRaw$Outbound | undefined;
|
|
110
158
|
slug?: string | undefined;
|
|
111
159
|
tags?: Array<string> | undefined;
|
|
112
160
|
type?: string | undefined;
|
|
@@ -133,7 +181,7 @@ export const CommerceItem$outboundSchema: z.ZodType<
|
|
|
133
181
|
name: z.string().optional(),
|
|
134
182
|
publicDescription: z.string().optional(),
|
|
135
183
|
publicName: z.string().optional(),
|
|
136
|
-
raw: z.
|
|
184
|
+
raw: z.lazy(() => CommerceItemRaw$outboundSchema).optional(),
|
|
137
185
|
slug: z.string().optional(),
|
|
138
186
|
tags: z.array(z.string()).optional(),
|
|
139
187
|
type: z.string().optional(),
|
|
@@ -8,27 +8,116 @@ import { safeParse } from "../../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
+
export type ExtraData = {};
|
|
12
|
+
|
|
13
|
+
export type Value = {};
|
|
14
|
+
|
|
11
15
|
export type CommerceItemMetadata = {
|
|
12
|
-
extraData?:
|
|
16
|
+
extraData?: ExtraData | undefined;
|
|
13
17
|
id?: string | undefined;
|
|
14
18
|
key: string;
|
|
15
19
|
namespace?: string | undefined;
|
|
16
20
|
type?: string | undefined;
|
|
17
|
-
value?:
|
|
21
|
+
value?: Value | undefined;
|
|
18
22
|
};
|
|
19
23
|
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ExtraData$inboundSchema: z.ZodType<
|
|
26
|
+
ExtraData,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type ExtraData$Outbound = {};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const ExtraData$outboundSchema: z.ZodType<
|
|
36
|
+
ExtraData$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
ExtraData
|
|
39
|
+
> = z.object({});
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
+
*/
|
|
45
|
+
export namespace ExtraData$ {
|
|
46
|
+
/** @deprecated use `ExtraData$inboundSchema` instead. */
|
|
47
|
+
export const inboundSchema = ExtraData$inboundSchema;
|
|
48
|
+
/** @deprecated use `ExtraData$outboundSchema` instead. */
|
|
49
|
+
export const outboundSchema = ExtraData$outboundSchema;
|
|
50
|
+
/** @deprecated use `ExtraData$Outbound` instead. */
|
|
51
|
+
export type Outbound = ExtraData$Outbound;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function extraDataToJSON(extraData: ExtraData): string {
|
|
55
|
+
return JSON.stringify(ExtraData$outboundSchema.parse(extraData));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function extraDataFromJSON(
|
|
59
|
+
jsonString: string,
|
|
60
|
+
): SafeParseResult<ExtraData, SDKValidationError> {
|
|
61
|
+
return safeParse(
|
|
62
|
+
jsonString,
|
|
63
|
+
(x) => ExtraData$inboundSchema.parse(JSON.parse(x)),
|
|
64
|
+
`Failed to parse 'ExtraData' from JSON`,
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const Value$inboundSchema: z.ZodType<Value, z.ZodTypeDef, unknown> = z
|
|
70
|
+
.object({});
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export type Value$Outbound = {};
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const Value$outboundSchema: z.ZodType<
|
|
77
|
+
Value$Outbound,
|
|
78
|
+
z.ZodTypeDef,
|
|
79
|
+
Value
|
|
80
|
+
> = z.object({});
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @internal
|
|
84
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
85
|
+
*/
|
|
86
|
+
export namespace Value$ {
|
|
87
|
+
/** @deprecated use `Value$inboundSchema` instead. */
|
|
88
|
+
export const inboundSchema = Value$inboundSchema;
|
|
89
|
+
/** @deprecated use `Value$outboundSchema` instead. */
|
|
90
|
+
export const outboundSchema = Value$outboundSchema;
|
|
91
|
+
/** @deprecated use `Value$Outbound` instead. */
|
|
92
|
+
export type Outbound = Value$Outbound;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function valueToJSON(value: Value): string {
|
|
96
|
+
return JSON.stringify(Value$outboundSchema.parse(value));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function valueFromJSON(
|
|
100
|
+
jsonString: string,
|
|
101
|
+
): SafeParseResult<Value, SDKValidationError> {
|
|
102
|
+
return safeParse(
|
|
103
|
+
jsonString,
|
|
104
|
+
(x) => Value$inboundSchema.parse(JSON.parse(x)),
|
|
105
|
+
`Failed to parse 'Value' from JSON`,
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
|
|
20
109
|
/** @internal */
|
|
21
110
|
export const CommerceItemMetadata$inboundSchema: z.ZodType<
|
|
22
111
|
CommerceItemMetadata,
|
|
23
112
|
z.ZodTypeDef,
|
|
24
113
|
unknown
|
|
25
114
|
> = z.object({
|
|
26
|
-
extra_data: z.
|
|
115
|
+
extra_data: z.lazy(() => ExtraData$inboundSchema).optional(),
|
|
27
116
|
id: z.string().optional(),
|
|
28
117
|
key: z.string(),
|
|
29
118
|
namespace: z.string().optional(),
|
|
30
119
|
type: z.string().optional(),
|
|
31
|
-
value: z.
|
|
120
|
+
value: z.lazy(() => Value$inboundSchema).optional(),
|
|
32
121
|
}).transform((v) => {
|
|
33
122
|
return remap$(v, {
|
|
34
123
|
"extra_data": "extraData",
|
|
@@ -37,12 +126,12 @@ export const CommerceItemMetadata$inboundSchema: z.ZodType<
|
|
|
37
126
|
|
|
38
127
|
/** @internal */
|
|
39
128
|
export type CommerceItemMetadata$Outbound = {
|
|
40
|
-
extra_data?:
|
|
129
|
+
extra_data?: ExtraData$Outbound | undefined;
|
|
41
130
|
id?: string | undefined;
|
|
42
131
|
key: string;
|
|
43
132
|
namespace?: string | undefined;
|
|
44
133
|
type?: string | undefined;
|
|
45
|
-
value?:
|
|
134
|
+
value?: Value$Outbound | undefined;
|
|
46
135
|
};
|
|
47
136
|
|
|
48
137
|
/** @internal */
|
|
@@ -51,12 +140,12 @@ export const CommerceItemMetadata$outboundSchema: z.ZodType<
|
|
|
51
140
|
z.ZodTypeDef,
|
|
52
141
|
CommerceItemMetadata
|
|
53
142
|
> = z.object({
|
|
54
|
-
extraData: z.
|
|
143
|
+
extraData: z.lazy(() => ExtraData$outboundSchema).optional(),
|
|
55
144
|
id: z.string().optional(),
|
|
56
145
|
key: z.string(),
|
|
57
146
|
namespace: z.string().optional(),
|
|
58
147
|
type: z.string().optional(),
|
|
59
|
-
value: z.
|
|
148
|
+
value: z.lazy(() => Value$outboundSchema).optional(),
|
|
60
149
|
}).transform((v) => {
|
|
61
150
|
return remap$(v, {
|
|
62
151
|
extraData: "extra_data",
|
|
@@ -14,6 +14,8 @@ import {
|
|
|
14
14
|
PropertyCommerceLocationAddress$outboundSchema,
|
|
15
15
|
} from "./propertycommercelocationaddress.js";
|
|
16
16
|
|
|
17
|
+
export type CommerceLocationRaw = {};
|
|
18
|
+
|
|
17
19
|
export type CommerceLocation = {
|
|
18
20
|
address?: PropertyCommerceLocationAddress | undefined;
|
|
19
21
|
createdAt?: Date | undefined;
|
|
@@ -21,10 +23,58 @@ export type CommerceLocation = {
|
|
|
21
23
|
id?: string | undefined;
|
|
22
24
|
isActive?: boolean | undefined;
|
|
23
25
|
name: string;
|
|
24
|
-
raw?:
|
|
26
|
+
raw?: CommerceLocationRaw | undefined;
|
|
25
27
|
updatedAt?: Date | undefined;
|
|
26
28
|
};
|
|
27
29
|
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const CommerceLocationRaw$inboundSchema: z.ZodType<
|
|
32
|
+
CommerceLocationRaw,
|
|
33
|
+
z.ZodTypeDef,
|
|
34
|
+
unknown
|
|
35
|
+
> = z.object({});
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type CommerceLocationRaw$Outbound = {};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const CommerceLocationRaw$outboundSchema: z.ZodType<
|
|
42
|
+
CommerceLocationRaw$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
CommerceLocationRaw
|
|
45
|
+
> = z.object({});
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
+
*/
|
|
51
|
+
export namespace CommerceLocationRaw$ {
|
|
52
|
+
/** @deprecated use `CommerceLocationRaw$inboundSchema` instead. */
|
|
53
|
+
export const inboundSchema = CommerceLocationRaw$inboundSchema;
|
|
54
|
+
/** @deprecated use `CommerceLocationRaw$outboundSchema` instead. */
|
|
55
|
+
export const outboundSchema = CommerceLocationRaw$outboundSchema;
|
|
56
|
+
/** @deprecated use `CommerceLocationRaw$Outbound` instead. */
|
|
57
|
+
export type Outbound = CommerceLocationRaw$Outbound;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function commerceLocationRawToJSON(
|
|
61
|
+
commerceLocationRaw: CommerceLocationRaw,
|
|
62
|
+
): string {
|
|
63
|
+
return JSON.stringify(
|
|
64
|
+
CommerceLocationRaw$outboundSchema.parse(commerceLocationRaw),
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function commerceLocationRawFromJSON(
|
|
69
|
+
jsonString: string,
|
|
70
|
+
): SafeParseResult<CommerceLocationRaw, SDKValidationError> {
|
|
71
|
+
return safeParse(
|
|
72
|
+
jsonString,
|
|
73
|
+
(x) => CommerceLocationRaw$inboundSchema.parse(JSON.parse(x)),
|
|
74
|
+
`Failed to parse 'CommerceLocationRaw' from JSON`,
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
28
78
|
/** @internal */
|
|
29
79
|
export const CommerceLocation$inboundSchema: z.ZodType<
|
|
30
80
|
CommerceLocation,
|
|
@@ -38,7 +88,7 @@ export const CommerceLocation$inboundSchema: z.ZodType<
|
|
|
38
88
|
id: z.string().optional(),
|
|
39
89
|
is_active: z.boolean().optional(),
|
|
40
90
|
name: z.string(),
|
|
41
|
-
raw: z.
|
|
91
|
+
raw: z.lazy(() => CommerceLocationRaw$inboundSchema).optional(),
|
|
42
92
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
43
93
|
.optional(),
|
|
44
94
|
}).transform((v) => {
|
|
@@ -57,7 +107,7 @@ export type CommerceLocation$Outbound = {
|
|
|
57
107
|
id?: string | undefined;
|
|
58
108
|
is_active?: boolean | undefined;
|
|
59
109
|
name: string;
|
|
60
|
-
raw?:
|
|
110
|
+
raw?: CommerceLocationRaw$Outbound | undefined;
|
|
61
111
|
updated_at?: string | undefined;
|
|
62
112
|
};
|
|
63
113
|
|
|
@@ -73,7 +123,7 @@ export const CommerceLocation$outboundSchema: z.ZodType<
|
|
|
73
123
|
id: z.string().optional(),
|
|
74
124
|
isActive: z.boolean().optional(),
|
|
75
125
|
name: z.string(),
|
|
76
|
-
raw: z.
|
|
126
|
+
raw: z.lazy(() => CommerceLocationRaw$outboundSchema).optional(),
|
|
77
127
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
78
128
|
}).transform((v) => {
|
|
79
129
|
return remap$(v, {
|
|
@@ -41,6 +41,7 @@ export type Connection = {
|
|
|
41
41
|
environment?: string | undefined;
|
|
42
42
|
externalXref?: string | undefined;
|
|
43
43
|
id?: string | undefined;
|
|
44
|
+
integrationName: string;
|
|
44
45
|
integrationType: string;
|
|
45
46
|
isPaused?: boolean | undefined;
|
|
46
47
|
lastHealthyAt?: Date | undefined;
|
|
@@ -64,6 +65,7 @@ export const Connection$inboundSchema: z.ZodType<
|
|
|
64
65
|
environment: z.string().default("Production"),
|
|
65
66
|
external_xref: z.string().optional(),
|
|
66
67
|
id: z.string().optional(),
|
|
68
|
+
integration_name: z.string(),
|
|
67
69
|
integration_type: z.string(),
|
|
68
70
|
is_paused: z.boolean().optional(),
|
|
69
71
|
last_healthy_at: z.string().datetime({ offset: true }).transform(v =>
|
|
@@ -81,6 +83,7 @@ export const Connection$inboundSchema: z.ZodType<
|
|
|
81
83
|
"auth_aws_arn": "authAwsArn",
|
|
82
84
|
"created_at": "createdAt",
|
|
83
85
|
"external_xref": "externalXref",
|
|
86
|
+
"integration_name": "integrationName",
|
|
84
87
|
"integration_type": "integrationType",
|
|
85
88
|
"is_paused": "isPaused",
|
|
86
89
|
"last_healthy_at": "lastHealthyAt",
|
|
@@ -99,6 +102,7 @@ export type Connection$Outbound = {
|
|
|
99
102
|
environment: string;
|
|
100
103
|
external_xref?: string | undefined;
|
|
101
104
|
id?: string | undefined;
|
|
105
|
+
integration_name: string;
|
|
102
106
|
integration_type: string;
|
|
103
107
|
is_paused?: boolean | undefined;
|
|
104
108
|
last_healthy_at?: string | undefined;
|
|
@@ -121,6 +125,7 @@ export const Connection$outboundSchema: z.ZodType<
|
|
|
121
125
|
environment: z.string().default("Production"),
|
|
122
126
|
externalXref: z.string().optional(),
|
|
123
127
|
id: z.string().optional(),
|
|
128
|
+
integrationName: z.string(),
|
|
124
129
|
integrationType: z.string(),
|
|
125
130
|
isPaused: z.boolean().optional(),
|
|
126
131
|
lastHealthyAt: z.date().transform(v => v.toISOString()).optional(),
|
|
@@ -133,6 +138,7 @@ export const Connection$outboundSchema: z.ZodType<
|
|
|
133
138
|
authAwsArn: "auth_aws_arn",
|
|
134
139
|
createdAt: "created_at",
|
|
135
140
|
externalXref: "external_xref",
|
|
141
|
+
integrationName: "integration_name",
|
|
136
142
|
integrationType: "integration_type",
|
|
137
143
|
isPaused: "is_paused",
|
|
138
144
|
lastHealthyAt: "last_healthy_at",
|
|
@@ -232,6 +232,13 @@ export const ListRepoId = {
|
|
|
232
232
|
} as const;
|
|
233
233
|
export type ListRepoId = ClosedEnum<typeof ListRepoId>;
|
|
234
234
|
|
|
235
|
+
export const ListRootId = {
|
|
236
|
+
SupportedRequired: "supported-required",
|
|
237
|
+
Supported: "supported",
|
|
238
|
+
NotSupported: "not-supported",
|
|
239
|
+
} as const;
|
|
240
|
+
export type ListRootId = ClosedEnum<typeof ListRootId>;
|
|
241
|
+
|
|
235
242
|
export const ListSortByCreatedAt = {
|
|
236
243
|
SupportedRequired: "supported-required",
|
|
237
244
|
Supported: "supported",
|
|
@@ -469,6 +476,7 @@ export type IntegrationSupport = {
|
|
|
469
476
|
listQuery?: ListQuery | undefined;
|
|
470
477
|
listRawFields?: ListRawFields | undefined;
|
|
471
478
|
listRepoId?: ListRepoId | undefined;
|
|
479
|
+
listRootId?: ListRootId | undefined;
|
|
472
480
|
listSortByCreatedAt?: ListSortByCreatedAt | undefined;
|
|
473
481
|
listSortByName?: ListSortByName | undefined;
|
|
474
482
|
listSortByUpdatedAt?: ListSortByUpdatedAt | undefined;
|
|
@@ -1126,6 +1134,25 @@ export namespace ListRepoId$ {
|
|
|
1126
1134
|
export const outboundSchema = ListRepoId$outboundSchema;
|
|
1127
1135
|
}
|
|
1128
1136
|
|
|
1137
|
+
/** @internal */
|
|
1138
|
+
export const ListRootId$inboundSchema: z.ZodNativeEnum<typeof ListRootId> = z
|
|
1139
|
+
.nativeEnum(ListRootId);
|
|
1140
|
+
|
|
1141
|
+
/** @internal */
|
|
1142
|
+
export const ListRootId$outboundSchema: z.ZodNativeEnum<typeof ListRootId> =
|
|
1143
|
+
ListRootId$inboundSchema;
|
|
1144
|
+
|
|
1145
|
+
/**
|
|
1146
|
+
* @internal
|
|
1147
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1148
|
+
*/
|
|
1149
|
+
export namespace ListRootId$ {
|
|
1150
|
+
/** @deprecated use `ListRootId$inboundSchema` instead. */
|
|
1151
|
+
export const inboundSchema = ListRootId$inboundSchema;
|
|
1152
|
+
/** @deprecated use `ListRootId$outboundSchema` instead. */
|
|
1153
|
+
export const outboundSchema = ListRootId$outboundSchema;
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1129
1156
|
/** @internal */
|
|
1130
1157
|
export const ListSortByCreatedAt$inboundSchema: z.ZodNativeEnum<
|
|
1131
1158
|
typeof ListSortByCreatedAt
|
|
@@ -1736,6 +1763,7 @@ export const IntegrationSupport$inboundSchema: z.ZodType<
|
|
|
1736
1763
|
list_query: ListQuery$inboundSchema.optional(),
|
|
1737
1764
|
list_raw_fields: ListRawFields$inboundSchema.optional(),
|
|
1738
1765
|
list_repo_id: ListRepoId$inboundSchema.optional(),
|
|
1766
|
+
list_root_id: ListRootId$inboundSchema.optional(),
|
|
1739
1767
|
list_sort_by_created_at: ListSortByCreatedAt$inboundSchema.optional(),
|
|
1740
1768
|
list_sort_by_name: ListSortByName$inboundSchema.optional(),
|
|
1741
1769
|
list_sort_by_updated_at: ListSortByUpdatedAt$inboundSchema.optional(),
|
|
@@ -1805,6 +1833,7 @@ export const IntegrationSupport$inboundSchema: z.ZodType<
|
|
|
1805
1833
|
"list_query": "listQuery",
|
|
1806
1834
|
"list_raw_fields": "listRawFields",
|
|
1807
1835
|
"list_repo_id": "listRepoId",
|
|
1836
|
+
"list_root_id": "listRootId",
|
|
1808
1837
|
"list_sort_by_created_at": "listSortByCreatedAt",
|
|
1809
1838
|
"list_sort_by_name": "listSortByName",
|
|
1810
1839
|
"list_sort_by_updated_at": "listSortByUpdatedAt",
|
|
@@ -1874,6 +1903,7 @@ export type IntegrationSupport$Outbound = {
|
|
|
1874
1903
|
list_query?: string | undefined;
|
|
1875
1904
|
list_raw_fields?: string | undefined;
|
|
1876
1905
|
list_repo_id?: string | undefined;
|
|
1906
|
+
list_root_id?: string | undefined;
|
|
1877
1907
|
list_sort_by_created_at?: string | undefined;
|
|
1878
1908
|
list_sort_by_name?: string | undefined;
|
|
1879
1909
|
list_sort_by_updated_at?: string | undefined;
|
|
@@ -1947,6 +1977,7 @@ export const IntegrationSupport$outboundSchema: z.ZodType<
|
|
|
1947
1977
|
listQuery: ListQuery$outboundSchema.optional(),
|
|
1948
1978
|
listRawFields: ListRawFields$outboundSchema.optional(),
|
|
1949
1979
|
listRepoId: ListRepoId$outboundSchema.optional(),
|
|
1980
|
+
listRootId: ListRootId$outboundSchema.optional(),
|
|
1950
1981
|
listSortByCreatedAt: ListSortByCreatedAt$outboundSchema.optional(),
|
|
1951
1982
|
listSortByName: ListSortByName$outboundSchema.optional(),
|
|
1952
1983
|
listSortByUpdatedAt: ListSortByUpdatedAt$outboundSchema.optional(),
|
|
@@ -2015,6 +2046,7 @@ export const IntegrationSupport$outboundSchema: z.ZodType<
|
|
|
2015
2046
|
listQuery: "list_query",
|
|
2016
2047
|
listRawFields: "list_raw_fields",
|
|
2017
2048
|
listRepoId: "list_repo_id",
|
|
2049
|
+
listRootId: "list_root_id",
|
|
2018
2050
|
listSortByCreatedAt: "list_sort_by_created_at",
|
|
2019
2051
|
listSortByName: "list_sort_by_name",
|
|
2020
2052
|
listSortByUpdatedAt: "list_sort_by_updated_at",
|
|
@@ -8,6 +8,8 @@ import { safeParse } from "../../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
+
export type PropertyConnectionAuthMeta = {};
|
|
12
|
+
|
|
11
13
|
/**
|
|
12
14
|
* An authentication object that represents a specific authorized user's connection to an integration.
|
|
13
15
|
*/
|
|
@@ -25,7 +27,7 @@ export type PropertyConnectionAuth = {
|
|
|
25
27
|
expiresIn?: number | undefined;
|
|
26
28
|
expiryDate?: Date | undefined;
|
|
27
29
|
key?: string | undefined;
|
|
28
|
-
meta?:
|
|
30
|
+
meta?: PropertyConnectionAuthMeta | undefined;
|
|
29
31
|
name?: string | undefined;
|
|
30
32
|
/**
|
|
31
33
|
* When integration.auth_type = "other", this field contains the authentication credentials in the same order as token_names
|
|
@@ -40,6 +42,54 @@ export type PropertyConnectionAuth = {
|
|
|
40
42
|
tokenUrl?: string | undefined;
|
|
41
43
|
};
|
|
42
44
|
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const PropertyConnectionAuthMeta$inboundSchema: z.ZodType<
|
|
47
|
+
PropertyConnectionAuthMeta,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
unknown
|
|
50
|
+
> = z.object({});
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type PropertyConnectionAuthMeta$Outbound = {};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const PropertyConnectionAuthMeta$outboundSchema: z.ZodType<
|
|
57
|
+
PropertyConnectionAuthMeta$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
PropertyConnectionAuthMeta
|
|
60
|
+
> = z.object({});
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
65
|
+
*/
|
|
66
|
+
export namespace PropertyConnectionAuthMeta$ {
|
|
67
|
+
/** @deprecated use `PropertyConnectionAuthMeta$inboundSchema` instead. */
|
|
68
|
+
export const inboundSchema = PropertyConnectionAuthMeta$inboundSchema;
|
|
69
|
+
/** @deprecated use `PropertyConnectionAuthMeta$outboundSchema` instead. */
|
|
70
|
+
export const outboundSchema = PropertyConnectionAuthMeta$outboundSchema;
|
|
71
|
+
/** @deprecated use `PropertyConnectionAuthMeta$Outbound` instead. */
|
|
72
|
+
export type Outbound = PropertyConnectionAuthMeta$Outbound;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function propertyConnectionAuthMetaToJSON(
|
|
76
|
+
propertyConnectionAuthMeta: PropertyConnectionAuthMeta,
|
|
77
|
+
): string {
|
|
78
|
+
return JSON.stringify(
|
|
79
|
+
PropertyConnectionAuthMeta$outboundSchema.parse(propertyConnectionAuthMeta),
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function propertyConnectionAuthMetaFromJSON(
|
|
84
|
+
jsonString: string,
|
|
85
|
+
): SafeParseResult<PropertyConnectionAuthMeta, SDKValidationError> {
|
|
86
|
+
return safeParse(
|
|
87
|
+
jsonString,
|
|
88
|
+
(x) => PropertyConnectionAuthMeta$inboundSchema.parse(JSON.parse(x)),
|
|
89
|
+
`Failed to parse 'PropertyConnectionAuthMeta' from JSON`,
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
43
93
|
/** @internal */
|
|
44
94
|
export const PropertyConnectionAuth$inboundSchema: z.ZodType<
|
|
45
95
|
PropertyConnectionAuth,
|
|
@@ -60,7 +110,7 @@ export const PropertyConnectionAuth$inboundSchema: z.ZodType<
|
|
|
60
110
|
expiry_date: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
61
111
|
.optional(),
|
|
62
112
|
key: z.string().optional(),
|
|
63
|
-
meta: z.
|
|
113
|
+
meta: z.lazy(() => PropertyConnectionAuthMeta$inboundSchema).optional(),
|
|
64
114
|
name: z.string().optional(),
|
|
65
115
|
other_auth_info: z.array(z.string()).optional(),
|
|
66
116
|
pem: z.string().optional(),
|
|
@@ -108,7 +158,7 @@ export type PropertyConnectionAuth$Outbound = {
|
|
|
108
158
|
expires_in?: number | undefined;
|
|
109
159
|
expiry_date?: string | undefined;
|
|
110
160
|
key?: string | undefined;
|
|
111
|
-
meta?:
|
|
161
|
+
meta?: PropertyConnectionAuthMeta$Outbound | undefined;
|
|
112
162
|
name?: string | undefined;
|
|
113
163
|
other_auth_info?: Array<string> | undefined;
|
|
114
164
|
pem?: string | undefined;
|
|
@@ -139,7 +189,7 @@ export const PropertyConnectionAuth$outboundSchema: z.ZodType<
|
|
|
139
189
|
expiresIn: z.number().optional(),
|
|
140
190
|
expiryDate: z.date().transform(v => v.toISOString()).optional(),
|
|
141
191
|
key: z.string().optional(),
|
|
142
|
-
meta: z.
|
|
192
|
+
meta: z.lazy(() => PropertyConnectionAuthMeta$outboundSchema).optional(),
|
|
143
193
|
name: z.string().optional(),
|
|
144
194
|
otherAuthInfo: z.array(z.string()).optional(),
|
|
145
195
|
pem: z.string().optional(),
|
|
@@ -16,6 +16,8 @@ export const Event = {
|
|
|
16
16
|
} as const;
|
|
17
17
|
export type Event = ClosedEnum<typeof Event>;
|
|
18
18
|
|
|
19
|
+
export type Meta = {};
|
|
20
|
+
|
|
19
21
|
export const ObjectType = {
|
|
20
22
|
AccountingAccount: "accounting_account",
|
|
21
23
|
AccountingTransaction: "accounting_transaction",
|
|
@@ -113,7 +115,7 @@ export type Webhook = {
|
|
|
113
115
|
integrationType?: string | undefined;
|
|
114
116
|
interval?: number | undefined;
|
|
115
117
|
isHealthy?: boolean | undefined;
|
|
116
|
-
meta?:
|
|
118
|
+
meta?: Meta | undefined;
|
|
117
119
|
objectType: ObjectType;
|
|
118
120
|
pageMaxLimit?: number | undefined;
|
|
119
121
|
/**
|
|
@@ -145,6 +147,44 @@ export namespace Event$ {
|
|
|
145
147
|
export const outboundSchema = Event$outboundSchema;
|
|
146
148
|
}
|
|
147
149
|
|
|
150
|
+
/** @internal */
|
|
151
|
+
export const Meta$inboundSchema: z.ZodType<Meta, z.ZodTypeDef, unknown> = z
|
|
152
|
+
.object({});
|
|
153
|
+
|
|
154
|
+
/** @internal */
|
|
155
|
+
export type Meta$Outbound = {};
|
|
156
|
+
|
|
157
|
+
/** @internal */
|
|
158
|
+
export const Meta$outboundSchema: z.ZodType<Meta$Outbound, z.ZodTypeDef, Meta> =
|
|
159
|
+
z.object({});
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* @internal
|
|
163
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
164
|
+
*/
|
|
165
|
+
export namespace Meta$ {
|
|
166
|
+
/** @deprecated use `Meta$inboundSchema` instead. */
|
|
167
|
+
export const inboundSchema = Meta$inboundSchema;
|
|
168
|
+
/** @deprecated use `Meta$outboundSchema` instead. */
|
|
169
|
+
export const outboundSchema = Meta$outboundSchema;
|
|
170
|
+
/** @deprecated use `Meta$Outbound` instead. */
|
|
171
|
+
export type Outbound = Meta$Outbound;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export function metaToJSON(meta: Meta): string {
|
|
175
|
+
return JSON.stringify(Meta$outboundSchema.parse(meta));
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export function metaFromJSON(
|
|
179
|
+
jsonString: string,
|
|
180
|
+
): SafeParseResult<Meta, SDKValidationError> {
|
|
181
|
+
return safeParse(
|
|
182
|
+
jsonString,
|
|
183
|
+
(x) => Meta$inboundSchema.parse(JSON.parse(x)),
|
|
184
|
+
`Failed to parse 'Meta' from JSON`,
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
|
|
148
188
|
/** @internal */
|
|
149
189
|
export const ObjectType$inboundSchema: z.ZodNativeEnum<typeof ObjectType> = z
|
|
150
190
|
.nativeEnum(ObjectType);
|
|
@@ -202,7 +242,7 @@ export const Webhook$inboundSchema: z.ZodType<Webhook, z.ZodTypeDef, unknown> =
|
|
|
202
242
|
integration_type: z.string().optional(),
|
|
203
243
|
interval: z.number().optional(),
|
|
204
244
|
is_healthy: z.boolean().optional(),
|
|
205
|
-
meta: z.
|
|
245
|
+
meta: z.lazy(() => Meta$inboundSchema).optional(),
|
|
206
246
|
object_type: ObjectType$inboundSchema,
|
|
207
247
|
page_max_limit: z.number().optional(),
|
|
208
248
|
runs: z.array(z.string()).optional(),
|
|
@@ -241,7 +281,7 @@ export type Webhook$Outbound = {
|
|
|
241
281
|
integration_type?: string | undefined;
|
|
242
282
|
interval?: number | undefined;
|
|
243
283
|
is_healthy?: boolean | undefined;
|
|
244
|
-
meta?:
|
|
284
|
+
meta?: Meta$Outbound | undefined;
|
|
245
285
|
object_type: string;
|
|
246
286
|
page_max_limit?: number | undefined;
|
|
247
287
|
runs?: Array<string> | undefined;
|
|
@@ -268,7 +308,7 @@ export const Webhook$outboundSchema: z.ZodType<
|
|
|
268
308
|
integrationType: z.string().optional(),
|
|
269
309
|
interval: z.number().optional(),
|
|
270
310
|
isHealthy: z.boolean().optional(),
|
|
271
|
-
meta: z.
|
|
311
|
+
meta: z.lazy(() => Meta$outboundSchema).optional(),
|
|
272
312
|
objectType: ObjectType$outboundSchema,
|
|
273
313
|
pageMaxLimit: z.number().optional(),
|
|
274
314
|
runs: z.array(z.string()).optional(),
|