@unified-api/typescript-sdk 2.9.26 → 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/package.json +1 -1
- 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/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/sdk/models/operations/listhrispayslips.ts +6 -0
- package/src/sdk/models/operations/listhristimeoffs.ts +6 -0
- 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
|
@@ -8,6 +8,7 @@ export declare const Event: {
|
|
|
8
8
|
readonly Deleted: "deleted";
|
|
9
9
|
};
|
|
10
10
|
export type Event = ClosedEnum<typeof Event>;
|
|
11
|
+
export type Meta = {};
|
|
11
12
|
export declare const ObjectType: {
|
|
12
13
|
readonly AccountingAccount: "accounting_account";
|
|
13
14
|
readonly AccountingTransaction: "accounting_transaction";
|
|
@@ -105,9 +106,7 @@ export type Webhook = {
|
|
|
105
106
|
integrationType?: string | undefined;
|
|
106
107
|
interval?: number | undefined;
|
|
107
108
|
isHealthy?: boolean | undefined;
|
|
108
|
-
meta?:
|
|
109
|
-
[k: string]: any;
|
|
110
|
-
} | undefined;
|
|
109
|
+
meta?: Meta | undefined;
|
|
111
110
|
objectType: ObjectType;
|
|
112
111
|
pageMaxLimit?: number | undefined;
|
|
113
112
|
/**
|
|
@@ -141,6 +140,26 @@ export declare namespace Event$ {
|
|
|
141
140
|
}>;
|
|
142
141
|
}
|
|
143
142
|
/** @internal */
|
|
143
|
+
export declare const Meta$inboundSchema: z.ZodType<Meta, z.ZodTypeDef, unknown>;
|
|
144
|
+
/** @internal */
|
|
145
|
+
export type Meta$Outbound = {};
|
|
146
|
+
/** @internal */
|
|
147
|
+
export declare const Meta$outboundSchema: z.ZodType<Meta$Outbound, z.ZodTypeDef, Meta>;
|
|
148
|
+
/**
|
|
149
|
+
* @internal
|
|
150
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
151
|
+
*/
|
|
152
|
+
export declare namespace Meta$ {
|
|
153
|
+
/** @deprecated use `Meta$inboundSchema` instead. */
|
|
154
|
+
const inboundSchema: z.ZodType<Meta, z.ZodTypeDef, unknown>;
|
|
155
|
+
/** @deprecated use `Meta$outboundSchema` instead. */
|
|
156
|
+
const outboundSchema: z.ZodType<Meta$Outbound, z.ZodTypeDef, Meta>;
|
|
157
|
+
/** @deprecated use `Meta$Outbound` instead. */
|
|
158
|
+
type Outbound = Meta$Outbound;
|
|
159
|
+
}
|
|
160
|
+
export declare function metaToJSON(meta: Meta): string;
|
|
161
|
+
export declare function metaFromJSON(jsonString: string): SafeParseResult<Meta, SDKValidationError>;
|
|
162
|
+
/** @internal */
|
|
144
163
|
export declare const ObjectType$inboundSchema: z.ZodNativeEnum<typeof ObjectType>;
|
|
145
164
|
/** @internal */
|
|
146
165
|
export declare const ObjectType$outboundSchema: z.ZodNativeEnum<typeof ObjectType>;
|
|
@@ -336,9 +355,7 @@ export type Webhook$Outbound = {
|
|
|
336
355
|
integration_type?: string | undefined;
|
|
337
356
|
interval?: number | undefined;
|
|
338
357
|
is_healthy?: boolean | undefined;
|
|
339
|
-
meta?:
|
|
340
|
-
[k: string]: any;
|
|
341
|
-
} | undefined;
|
|
358
|
+
meta?: Meta$Outbound | undefined;
|
|
342
359
|
object_type: string;
|
|
343
360
|
page_max_limit?: number | undefined;
|
|
344
361
|
runs?: Array<string> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/sh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;IACjD,MAAM,cAAc,oDAAyB,CAAC;IACrD,kDAAkD;IAClD,KAAY,QAAQ,GAAG,gBAAgB,CAAC;CACzC;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAEtD;AAED,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAM9C"}
|
|
@@ -26,7 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.Webhook$ = exports.Webhook$outboundSchema = exports.Webhook$inboundSchema = exports.WebhookType$ = exports.WebhookType$outboundSchema = exports.WebhookType$inboundSchema = exports.ObjectType$ = exports.ObjectType$outboundSchema = exports.ObjectType$inboundSchema = exports.Event$ = exports.Event$outboundSchema = exports.Event$inboundSchema = exports.WebhookType = exports.ObjectType = exports.Event = void 0;
|
|
29
|
+
exports.Webhook$ = exports.Webhook$outboundSchema = exports.Webhook$inboundSchema = exports.WebhookType$ = exports.WebhookType$outboundSchema = exports.WebhookType$inboundSchema = exports.ObjectType$ = exports.ObjectType$outboundSchema = exports.ObjectType$inboundSchema = exports.Meta$ = exports.Meta$outboundSchema = exports.Meta$inboundSchema = exports.Event$ = exports.Event$outboundSchema = exports.Event$inboundSchema = exports.WebhookType = exports.ObjectType = exports.Event = void 0;
|
|
30
|
+
exports.metaToJSON = metaToJSON;
|
|
31
|
+
exports.metaFromJSON = metaFromJSON;
|
|
30
32
|
exports.webhookToJSON = webhookToJSON;
|
|
31
33
|
exports.webhookFromJSON = webhookFromJSON;
|
|
32
34
|
const z = __importStar(require("zod"));
|
|
@@ -130,6 +132,28 @@ var Event$;
|
|
|
130
132
|
Event$.outboundSchema = exports.Event$outboundSchema;
|
|
131
133
|
})(Event$ || (exports.Event$ = Event$ = {}));
|
|
132
134
|
/** @internal */
|
|
135
|
+
exports.Meta$inboundSchema = z
|
|
136
|
+
.object({});
|
|
137
|
+
/** @internal */
|
|
138
|
+
exports.Meta$outboundSchema = z.object({});
|
|
139
|
+
/**
|
|
140
|
+
* @internal
|
|
141
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
142
|
+
*/
|
|
143
|
+
var Meta$;
|
|
144
|
+
(function (Meta$) {
|
|
145
|
+
/** @deprecated use `Meta$inboundSchema` instead. */
|
|
146
|
+
Meta$.inboundSchema = exports.Meta$inboundSchema;
|
|
147
|
+
/** @deprecated use `Meta$outboundSchema` instead. */
|
|
148
|
+
Meta$.outboundSchema = exports.Meta$outboundSchema;
|
|
149
|
+
})(Meta$ || (exports.Meta$ = Meta$ = {}));
|
|
150
|
+
function metaToJSON(meta) {
|
|
151
|
+
return JSON.stringify(exports.Meta$outboundSchema.parse(meta));
|
|
152
|
+
}
|
|
153
|
+
function metaFromJSON(jsonString) {
|
|
154
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Meta$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Meta' from JSON`);
|
|
155
|
+
}
|
|
156
|
+
/** @internal */
|
|
133
157
|
exports.ObjectType$inboundSchema = z
|
|
134
158
|
.nativeEnum(exports.ObjectType);
|
|
135
159
|
/** @internal */
|
|
@@ -175,7 +199,7 @@ exports.Webhook$inboundSchema = z.object({
|
|
|
175
199
|
integration_type: z.string().optional(),
|
|
176
200
|
interval: z.number().optional(),
|
|
177
201
|
is_healthy: z.boolean().optional(),
|
|
178
|
-
meta: z.
|
|
202
|
+
meta: z.lazy(() => exports.Meta$inboundSchema).optional(),
|
|
179
203
|
object_type: exports.ObjectType$inboundSchema,
|
|
180
204
|
page_max_limit: z.number().optional(),
|
|
181
205
|
runs: z.array(z.string()).optional(),
|
|
@@ -211,7 +235,7 @@ exports.Webhook$outboundSchema = z.object({
|
|
|
211
235
|
integrationType: z.string().optional(),
|
|
212
236
|
interval: z.number().optional(),
|
|
213
237
|
isHealthy: z.boolean().optional(),
|
|
214
|
-
meta: z.
|
|
238
|
+
meta: z.lazy(() => exports.Meta$outboundSchema).optional(),
|
|
215
239
|
objectType: exports.ObjectType$outboundSchema,
|
|
216
240
|
pageMaxLimit: z.number().optional(),
|
|
217
241
|
runs: z.array(z.string()).optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../../src/sdk/models/shared/webhook.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../../src/sdk/models/shared/webhook.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA2KH,gCAEC;AAED,oCAQC;AAiKD,sCAEC;AAED,0CAQC;AAlWD,uCAAyB;AACzB,8DAA6D;AAC7D,wDAAoD;AAKvC,QAAA,KAAK,GAAG;IACnB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACV,CAAC;AAKE,QAAA,UAAU,GAAG;IACxB,iBAAiB,EAAE,oBAAoB;IACvC,qBAAqB,EAAE,wBAAwB;IAC/C,iBAAiB,EAAE,oBAAoB;IACvC,iBAAiB,EAAE,oBAAoB;IACvC,iBAAiB,EAAE,oBAAoB;IACvC,iBAAiB,EAAE,oBAAoB;IACvC,sBAAsB,EAAE,yBAAyB;IACjD,eAAe,EAAE,kBAAkB;IACnC,cAAc,EAAE,iBAAiB;IACjC,WAAW,EAAE,cAAc;IAC3B,aAAa,EAAE,gBAAgB;IAC/B,aAAa,EAAE,gBAAgB;IAC/B,mBAAmB,EAAE,sBAAsB;IAC3C,YAAY,EAAE,eAAe;IAC7B,kBAAkB,EAAE,qBAAqB;IACzC,iBAAiB,EAAE,oBAAoB;IACvC,gBAAgB,EAAE,mBAAmB;IACrC,WAAW,EAAE,cAAc;IAC3B,cAAc,EAAE,iBAA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ED,SAAgB,eAAe,CAC7B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6BAAqB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjD,qCAAqC,CACtC,CAAC;AACJ,CAAC"}
|
|
@@ -64,6 +64,7 @@ export async function hrisListHrisPayslips(
|
|
|
64
64
|
const path = pathToFunc("/hris/{connection_id}/payslip")(pathParams);
|
|
65
65
|
|
|
66
66
|
const query = encodeFormQuery({
|
|
67
|
+
"company_id": payload.company_id,
|
|
67
68
|
"fields": payload.fields,
|
|
68
69
|
"limit": payload.limit,
|
|
69
70
|
"offset": payload.offset,
|
|
@@ -64,6 +64,7 @@ export async function hrisListHrisTimeoffs(
|
|
|
64
64
|
const path = pathToFunc("/hris/{connection_id}/timeoff")(pathParams);
|
|
65
65
|
|
|
66
66
|
const query = encodeFormQuery({
|
|
67
|
+
"company_id": payload.company_id,
|
|
67
68
|
"fields": payload.fields,
|
|
68
69
|
"limit": payload.limit,
|
|
69
70
|
"offset": payload.offset,
|
|
@@ -64,6 +64,7 @@ export async function payslipListHrisPayslips(
|
|
|
64
64
|
const path = pathToFunc("/hris/{connection_id}/payslip")(pathParams);
|
|
65
65
|
|
|
66
66
|
const query = encodeFormQuery({
|
|
67
|
+
"company_id": payload.company_id,
|
|
67
68
|
"fields": payload.fields,
|
|
68
69
|
"limit": payload.limit,
|
|
69
70
|
"offset": payload.offset,
|
|
@@ -64,6 +64,7 @@ export async function timeoffListHrisTimeoffs(
|
|
|
64
64
|
const path = pathToFunc("/hris/{connection_id}/timeoff")(pathParams);
|
|
65
65
|
|
|
66
66
|
const query = encodeFormQuery({
|
|
67
|
+
"company_id": payload.company_id,
|
|
67
68
|
"fields": payload.fields,
|
|
68
69
|
"limit": payload.limit,
|
|
69
70
|
"offset": payload.offset,
|
package/src/lib/config.ts
CHANGED
|
@@ -65,8 +65,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.0",
|
|
68
|
-
sdkVersion: "2.9.
|
|
69
|
-
genVersion: "2.
|
|
68
|
+
sdkVersion: "2.9.27",
|
|
69
|
+
genVersion: "2.503.2",
|
|
70
70
|
userAgent:
|
|
71
|
-
"speakeasy-sdk/typescript 2.9.
|
|
71
|
+
"speakeasy-sdk/typescript 2.9.27 2.503.2 1.0 @unified-api/typescript-sdk",
|
|
72
72
|
} as const;
|
|
@@ -9,6 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type ListHrisPayslipsRequest = {
|
|
12
|
+
companyId?: string | undefined;
|
|
12
13
|
/**
|
|
13
14
|
* ID of the connection
|
|
14
15
|
*/
|
|
@@ -38,6 +39,7 @@ export const ListHrisPayslipsRequest$inboundSchema: z.ZodType<
|
|
|
38
39
|
z.ZodTypeDef,
|
|
39
40
|
unknown
|
|
40
41
|
> = z.object({
|
|
42
|
+
company_id: z.string().optional(),
|
|
41
43
|
connection_id: z.string(),
|
|
42
44
|
fields: z.array(z.string()).optional(),
|
|
43
45
|
limit: z.number().optional(),
|
|
@@ -50,6 +52,7 @@ export const ListHrisPayslipsRequest$inboundSchema: z.ZodType<
|
|
|
50
52
|
user_id: z.string().optional(),
|
|
51
53
|
}).transform((v) => {
|
|
52
54
|
return remap$(v, {
|
|
55
|
+
"company_id": "companyId",
|
|
53
56
|
"connection_id": "connectionId",
|
|
54
57
|
"updated_gte": "updatedGte",
|
|
55
58
|
"user_id": "userId",
|
|
@@ -58,6 +61,7 @@ export const ListHrisPayslipsRequest$inboundSchema: z.ZodType<
|
|
|
58
61
|
|
|
59
62
|
/** @internal */
|
|
60
63
|
export type ListHrisPayslipsRequest$Outbound = {
|
|
64
|
+
company_id?: string | undefined;
|
|
61
65
|
connection_id: string;
|
|
62
66
|
fields?: Array<string> | undefined;
|
|
63
67
|
limit?: number | undefined;
|
|
@@ -75,6 +79,7 @@ export const ListHrisPayslipsRequest$outboundSchema: z.ZodType<
|
|
|
75
79
|
z.ZodTypeDef,
|
|
76
80
|
ListHrisPayslipsRequest
|
|
77
81
|
> = z.object({
|
|
82
|
+
companyId: z.string().optional(),
|
|
78
83
|
connectionId: z.string(),
|
|
79
84
|
fields: z.array(z.string()).optional(),
|
|
80
85
|
limit: z.number().optional(),
|
|
@@ -86,6 +91,7 @@ export const ListHrisPayslipsRequest$outboundSchema: z.ZodType<
|
|
|
86
91
|
userId: z.string().optional(),
|
|
87
92
|
}).transform((v) => {
|
|
88
93
|
return remap$(v, {
|
|
94
|
+
companyId: "company_id",
|
|
89
95
|
connectionId: "connection_id",
|
|
90
96
|
updatedGte: "updated_gte",
|
|
91
97
|
userId: "user_id",
|
|
@@ -9,6 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type ListHrisTimeoffsRequest = {
|
|
12
|
+
companyId?: string | undefined;
|
|
12
13
|
/**
|
|
13
14
|
* ID of the connection
|
|
14
15
|
*/
|
|
@@ -38,6 +39,7 @@ export const ListHrisTimeoffsRequest$inboundSchema: z.ZodType<
|
|
|
38
39
|
z.ZodTypeDef,
|
|
39
40
|
unknown
|
|
40
41
|
> = z.object({
|
|
42
|
+
company_id: z.string().optional(),
|
|
41
43
|
connection_id: z.string(),
|
|
42
44
|
fields: z.array(z.string()).optional(),
|
|
43
45
|
limit: z.number().optional(),
|
|
@@ -50,6 +52,7 @@ export const ListHrisTimeoffsRequest$inboundSchema: z.ZodType<
|
|
|
50
52
|
user_id: z.string().optional(),
|
|
51
53
|
}).transform((v) => {
|
|
52
54
|
return remap$(v, {
|
|
55
|
+
"company_id": "companyId",
|
|
53
56
|
"connection_id": "connectionId",
|
|
54
57
|
"updated_gte": "updatedGte",
|
|
55
58
|
"user_id": "userId",
|
|
@@ -58,6 +61,7 @@ export const ListHrisTimeoffsRequest$inboundSchema: z.ZodType<
|
|
|
58
61
|
|
|
59
62
|
/** @internal */
|
|
60
63
|
export type ListHrisTimeoffsRequest$Outbound = {
|
|
64
|
+
company_id?: string | undefined;
|
|
61
65
|
connection_id: string;
|
|
62
66
|
fields?: Array<string> | undefined;
|
|
63
67
|
limit?: number | undefined;
|
|
@@ -75,6 +79,7 @@ export const ListHrisTimeoffsRequest$outboundSchema: z.ZodType<
|
|
|
75
79
|
z.ZodTypeDef,
|
|
76
80
|
ListHrisTimeoffsRequest
|
|
77
81
|
> = z.object({
|
|
82
|
+
companyId: z.string().optional(),
|
|
78
83
|
connectionId: z.string(),
|
|
79
84
|
fields: z.array(z.string()).optional(),
|
|
80
85
|
limit: z.number().optional(),
|
|
@@ -86,6 +91,7 @@ export const ListHrisTimeoffsRequest$outboundSchema: z.ZodType<
|
|
|
86
91
|
userId: z.string().optional(),
|
|
87
92
|
}).transform((v) => {
|
|
88
93
|
return remap$(v, {
|
|
94
|
+
companyId: "company_id",
|
|
89
95
|
connectionId: "connection_id",
|
|
90
96
|
updatedGte: "updated_gte",
|
|
91
97
|
userId: "user_id",
|
|
@@ -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(),
|