@unified-api/typescript-sdk 2.83.40 → 2.83.41
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/commonjs/funcs/accountingListAccountingInvoices.js +2 -0
- package/dist/commonjs/funcs/accountingListAccountingInvoices.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/sdk/models/operations/createhrisemployee.d.ts +2 -0
- package/dist/commonjs/sdk/models/operations/createhrisemployee.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/createhrisemployee.js +2 -0
- package/dist/commonjs/sdk/models/operations/createhrisemployee.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/gethrisemployee.d.ts +2 -0
- package/dist/commonjs/sdk/models/operations/gethrisemployee.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/gethrisemployee.js +2 -0
- package/dist/commonjs/sdk/models/operations/gethrisemployee.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listaccountinginvoices.d.ts +10 -0
- package/dist/commonjs/sdk/models/operations/listaccountinginvoices.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/listaccountinginvoices.js +4 -0
- package/dist/commonjs/sdk/models/operations/listaccountinginvoices.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listhrisemployees.d.ts +2 -0
- package/dist/commonjs/sdk/models/operations/listhrisemployees.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/listhrisemployees.js +2 -0
- package/dist/commonjs/sdk/models/operations/listhrisemployees.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchhrisemployee.d.ts +2 -0
- package/dist/commonjs/sdk/models/operations/patchhrisemployee.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchhrisemployee.js +2 -0
- package/dist/commonjs/sdk/models/operations/patchhrisemployee.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/updatehrisemployee.d.ts +2 -0
- package/dist/commonjs/sdk/models/operations/updatehrisemployee.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/updatehrisemployee.js +2 -0
- package/dist/commonjs/sdk/models/operations/updatehrisemployee.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/hrisemployee.d.ts +4 -0
- package/dist/commonjs/sdk/models/shared/hrisemployee.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/hrisemployee.js +8 -0
- package/dist/commonjs/sdk/models/shared/hrisemployee.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/hristimeoff.d.ts +2 -2
- package/dist/commonjs/sdk/models/shared/hristimeoff.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/hristimeoff.js +2 -3
- package/dist/commonjs/sdk/models/shared/hristimeoff.js.map +1 -1
- package/dist/esm/funcs/accountingListAccountingInvoices.js +2 -0
- package/dist/esm/funcs/accountingListAccountingInvoices.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/sdk/models/operations/createhrisemployee.d.ts +2 -0
- package/dist/esm/sdk/models/operations/createhrisemployee.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/createhrisemployee.js +2 -0
- package/dist/esm/sdk/models/operations/createhrisemployee.js.map +1 -1
- package/dist/esm/sdk/models/operations/gethrisemployee.d.ts +2 -0
- package/dist/esm/sdk/models/operations/gethrisemployee.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/gethrisemployee.js +2 -0
- package/dist/esm/sdk/models/operations/gethrisemployee.js.map +1 -1
- package/dist/esm/sdk/models/operations/listaccountinginvoices.d.ts +10 -0
- package/dist/esm/sdk/models/operations/listaccountinginvoices.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/listaccountinginvoices.js +4 -0
- package/dist/esm/sdk/models/operations/listaccountinginvoices.js.map +1 -1
- package/dist/esm/sdk/models/operations/listhrisemployees.d.ts +2 -0
- package/dist/esm/sdk/models/operations/listhrisemployees.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/listhrisemployees.js +2 -0
- package/dist/esm/sdk/models/operations/listhrisemployees.js.map +1 -1
- package/dist/esm/sdk/models/operations/patchhrisemployee.d.ts +2 -0
- package/dist/esm/sdk/models/operations/patchhrisemployee.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/patchhrisemployee.js +2 -0
- package/dist/esm/sdk/models/operations/patchhrisemployee.js.map +1 -1
- package/dist/esm/sdk/models/operations/updatehrisemployee.d.ts +2 -0
- package/dist/esm/sdk/models/operations/updatehrisemployee.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/updatehrisemployee.js +2 -0
- package/dist/esm/sdk/models/operations/updatehrisemployee.js.map +1 -1
- package/dist/esm/sdk/models/shared/hrisemployee.d.ts +4 -0
- package/dist/esm/sdk/models/shared/hrisemployee.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/hrisemployee.js +8 -0
- package/dist/esm/sdk/models/shared/hrisemployee.js.map +1 -1
- package/dist/esm/sdk/models/shared/hristimeoff.d.ts +2 -2
- package/dist/esm/sdk/models/shared/hristimeoff.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/hristimeoff.js +2 -3
- package/dist/esm/sdk/models/shared/hristimeoff.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/accountingListAccountingInvoices.ts +2 -0
- package/src/lib/config.ts +2 -2
- package/src/sdk/models/operations/createhrisemployee.ts +2 -0
- package/src/sdk/models/operations/gethrisemployee.ts +2 -0
- package/src/sdk/models/operations/listaccountinginvoices.ts +14 -0
- package/src/sdk/models/operations/listhrisemployees.ts +2 -0
- package/src/sdk/models/operations/patchhrisemployee.ts +2 -0
- package/src/sdk/models/operations/updatehrisemployee.ts +2 -0
- package/src/sdk/models/shared/hrisemployee.ts +12 -0
- package/src/sdk/models/shared/hristimeoff.ts +4 -5
package/src/lib/config.ts
CHANGED
|
@@ -73,8 +73,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
73
73
|
export const SDK_METADATA = {
|
|
74
74
|
language: "typescript",
|
|
75
75
|
openapiDocVersion: "1.0",
|
|
76
|
-
sdkVersion: "2.83.
|
|
76
|
+
sdkVersion: "2.83.41",
|
|
77
77
|
genVersion: "2.881.4",
|
|
78
78
|
userAgent:
|
|
79
|
-
"speakeasy-sdk/typescript 2.83.
|
|
79
|
+
"speakeasy-sdk/typescript 2.83.41 2.881.4 1.0 @unified-api/typescript-sdk",
|
|
80
80
|
} as const;
|
|
@@ -47,6 +47,8 @@ export const CreateHrisEmployeeQueryParamFields = {
|
|
|
47
47
|
StorageQuotaAvailable: "storage_quota_available",
|
|
48
48
|
Relationships: "relationships",
|
|
49
49
|
HasMfa: "has_mfa",
|
|
50
|
+
TimeoffDaysTotal: "timeoff_days_total",
|
|
51
|
+
TimeoffDaysUsed: "timeoff_days_used",
|
|
50
52
|
Raw: "raw",
|
|
51
53
|
} as const;
|
|
52
54
|
export type CreateHrisEmployeeQueryParamFields = ClosedEnum<
|
|
@@ -46,6 +46,8 @@ export const GetHrisEmployeeQueryParamFields = {
|
|
|
46
46
|
StorageQuotaAvailable: "storage_quota_available",
|
|
47
47
|
Relationships: "relationships",
|
|
48
48
|
HasMfa: "has_mfa",
|
|
49
|
+
TimeoffDaysTotal: "timeoff_days_total",
|
|
50
|
+
TimeoffDaysUsed: "timeoff_days_used",
|
|
49
51
|
Raw: "raw",
|
|
50
52
|
} as const;
|
|
51
53
|
export type GetHrisEmployeeQueryParamFields = ClosedEnum<
|
|
@@ -50,6 +50,10 @@ export type ListAccountingInvoicesRequest = {
|
|
|
50
50
|
* The contact ID to filter by (reference to AccountingContact)
|
|
51
51
|
*/
|
|
52
52
|
contactId?: string | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* The end date to filter by (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
|
|
55
|
+
*/
|
|
56
|
+
endLt?: string | undefined;
|
|
53
57
|
/**
|
|
54
58
|
* Fields to return
|
|
55
59
|
*/
|
|
@@ -70,6 +74,10 @@ export type ListAccountingInvoicesRequest = {
|
|
|
70
74
|
*/
|
|
71
75
|
raw?: string | undefined;
|
|
72
76
|
sort?: string | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* The start date to filter by (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
|
|
79
|
+
*/
|
|
80
|
+
startGte?: string | undefined;
|
|
73
81
|
type?: string | undefined;
|
|
74
82
|
/**
|
|
75
83
|
* Return only results whose updated date is equal or greater to this value (ISO-8601 / YYYY-MM-DDTHH:MM:SSZ format)
|
|
@@ -87,6 +95,7 @@ export const ListAccountingInvoicesQueryParamFields$outboundSchema:
|
|
|
87
95
|
export type ListAccountingInvoicesRequest$Outbound = {
|
|
88
96
|
connection_id: string;
|
|
89
97
|
contact_id?: string | undefined;
|
|
98
|
+
end_lt?: string | undefined;
|
|
90
99
|
fields?: Array<string> | undefined;
|
|
91
100
|
limit?: number | undefined;
|
|
92
101
|
offset?: number | undefined;
|
|
@@ -95,6 +104,7 @@ export type ListAccountingInvoicesRequest$Outbound = {
|
|
|
95
104
|
query?: string | undefined;
|
|
96
105
|
raw?: string | undefined;
|
|
97
106
|
sort?: string | undefined;
|
|
107
|
+
start_gte?: string | undefined;
|
|
98
108
|
type?: string | undefined;
|
|
99
109
|
updated_gte?: string | undefined;
|
|
100
110
|
};
|
|
@@ -107,6 +117,7 @@ export const ListAccountingInvoicesRequest$outboundSchema: z.ZodType<
|
|
|
107
117
|
> = z.object({
|
|
108
118
|
connectionId: z.string(),
|
|
109
119
|
contactId: z.string().optional(),
|
|
120
|
+
endLt: z.string().optional(),
|
|
110
121
|
fields: z.array(ListAccountingInvoicesQueryParamFields$outboundSchema)
|
|
111
122
|
.optional(),
|
|
112
123
|
limit: z.number().optional(),
|
|
@@ -116,13 +127,16 @@ export const ListAccountingInvoicesRequest$outboundSchema: z.ZodType<
|
|
|
116
127
|
query: z.string().optional(),
|
|
117
128
|
raw: z.string().optional(),
|
|
118
129
|
sort: z.string().optional(),
|
|
130
|
+
startGte: z.string().optional(),
|
|
119
131
|
type: z.string().optional(),
|
|
120
132
|
updatedGte: z.string().optional(),
|
|
121
133
|
}).transform((v) => {
|
|
122
134
|
return remap$(v, {
|
|
123
135
|
connectionId: "connection_id",
|
|
124
136
|
contactId: "contact_id",
|
|
137
|
+
endLt: "end_lt",
|
|
125
138
|
orgId: "org_id",
|
|
139
|
+
startGte: "start_gte",
|
|
126
140
|
updatedGte: "updated_gte",
|
|
127
141
|
});
|
|
128
142
|
});
|
|
@@ -46,6 +46,8 @@ export const ListHrisEmployeesQueryParamFields = {
|
|
|
46
46
|
StorageQuotaAvailable: "storage_quota_available",
|
|
47
47
|
Relationships: "relationships",
|
|
48
48
|
HasMfa: "has_mfa",
|
|
49
|
+
TimeoffDaysTotal: "timeoff_days_total",
|
|
50
|
+
TimeoffDaysUsed: "timeoff_days_used",
|
|
49
51
|
Raw: "raw",
|
|
50
52
|
} as const;
|
|
51
53
|
export type ListHrisEmployeesQueryParamFields = ClosedEnum<
|
|
@@ -47,6 +47,8 @@ export const PatchHrisEmployeeQueryParamFields = {
|
|
|
47
47
|
StorageQuotaAvailable: "storage_quota_available",
|
|
48
48
|
Relationships: "relationships",
|
|
49
49
|
HasMfa: "has_mfa",
|
|
50
|
+
TimeoffDaysTotal: "timeoff_days_total",
|
|
51
|
+
TimeoffDaysUsed: "timeoff_days_used",
|
|
50
52
|
Raw: "raw",
|
|
51
53
|
} as const;
|
|
52
54
|
export type PatchHrisEmployeeQueryParamFields = ClosedEnum<
|
|
@@ -47,6 +47,8 @@ export const UpdateHrisEmployeeQueryParamFields = {
|
|
|
47
47
|
StorageQuotaAvailable: "storage_quota_available",
|
|
48
48
|
Relationships: "relationships",
|
|
49
49
|
HasMfa: "has_mfa",
|
|
50
|
+
TimeoffDaysTotal: "timeoff_days_total",
|
|
51
|
+
TimeoffDaysUsed: "timeoff_days_used",
|
|
50
52
|
Raw: "raw",
|
|
51
53
|
} as const;
|
|
52
54
|
export type UpdateHrisEmployeeQueryParamFields = ClosedEnum<
|
|
@@ -144,6 +144,8 @@ export type HrisEmployee = {
|
|
|
144
144
|
telephones?: Array<HrisTelephone> | undefined;
|
|
145
145
|
terminatedAt?: Date | undefined;
|
|
146
146
|
terminationReason?: string | undefined;
|
|
147
|
+
timeoffDaysTotal?: number | undefined;
|
|
148
|
+
timeoffDaysUsed?: number | undefined;
|
|
147
149
|
timezone?: string | undefined;
|
|
148
150
|
title?: string | undefined;
|
|
149
151
|
updatedAt?: Date | undefined;
|
|
@@ -251,6 +253,8 @@ export const HrisEmployee$inboundSchema: z.ZodType<
|
|
|
251
253
|
new Date(v)
|
|
252
254
|
).optional(),
|
|
253
255
|
termination_reason: z.string().optional(),
|
|
256
|
+
timeoff_days_total: z.number().optional(),
|
|
257
|
+
timeoff_days_used: z.number().optional(),
|
|
254
258
|
timezone: z.string().optional(),
|
|
255
259
|
title: z.string().optional(),
|
|
256
260
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
@@ -278,6 +282,8 @@ export const HrisEmployee$inboundSchema: z.ZodType<
|
|
|
278
282
|
"storage_quota_used": "storageQuotaUsed",
|
|
279
283
|
"terminated_at": "terminatedAt",
|
|
280
284
|
"termination_reason": "terminationReason",
|
|
285
|
+
"timeoff_days_total": "timeoffDaysTotal",
|
|
286
|
+
"timeoff_days_used": "timeoffDaysUsed",
|
|
281
287
|
"updated_at": "updatedAt",
|
|
282
288
|
});
|
|
283
289
|
});
|
|
@@ -320,6 +326,8 @@ export type HrisEmployee$Outbound = {
|
|
|
320
326
|
telephones?: Array<HrisTelephone$Outbound> | undefined;
|
|
321
327
|
terminated_at?: string | undefined;
|
|
322
328
|
termination_reason?: string | undefined;
|
|
329
|
+
timeoff_days_total?: number | undefined;
|
|
330
|
+
timeoff_days_used?: number | undefined;
|
|
323
331
|
timezone?: string | undefined;
|
|
324
332
|
title?: string | undefined;
|
|
325
333
|
updated_at?: string | undefined;
|
|
@@ -369,6 +377,8 @@ export const HrisEmployee$outboundSchema: z.ZodType<
|
|
|
369
377
|
telephones: z.array(HrisTelephone$outboundSchema).optional(),
|
|
370
378
|
terminatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
371
379
|
terminationReason: z.string().optional(),
|
|
380
|
+
timeoffDaysTotal: z.number().optional(),
|
|
381
|
+
timeoffDaysUsed: z.number().optional(),
|
|
372
382
|
timezone: z.string().optional(),
|
|
373
383
|
title: z.string().optional(),
|
|
374
384
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
@@ -395,6 +405,8 @@ export const HrisEmployee$outboundSchema: z.ZodType<
|
|
|
395
405
|
storageQuotaUsed: "storage_quota_used",
|
|
396
406
|
terminatedAt: "terminated_at",
|
|
397
407
|
terminationReason: "termination_reason",
|
|
408
|
+
timeoffDaysTotal: "timeoff_days_total",
|
|
409
|
+
timeoffDaysUsed: "timeoff_days_used",
|
|
398
410
|
updatedAt: "updated_at",
|
|
399
411
|
});
|
|
400
412
|
});
|
|
@@ -28,7 +28,7 @@ export type HrisTimeoff = {
|
|
|
28
28
|
isPaid?: boolean | undefined;
|
|
29
29
|
raw?: { [k: string]: any } | undefined;
|
|
30
30
|
reason?: string | undefined;
|
|
31
|
-
startAt
|
|
31
|
+
startAt: Date;
|
|
32
32
|
status?: HrisTimeoffStatus | undefined;
|
|
33
33
|
updatedAt?: Date | undefined;
|
|
34
34
|
userId?: string | undefined;
|
|
@@ -66,8 +66,7 @@ export const HrisTimeoff$inboundSchema: z.ZodType<
|
|
|
66
66
|
is_paid: z.boolean().optional(),
|
|
67
67
|
raw: z.record(z.any()).optional(),
|
|
68
68
|
reason: z.string().optional(),
|
|
69
|
-
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
70
|
-
.optional(),
|
|
69
|
+
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
71
70
|
status: HrisTimeoffStatus$inboundSchema.optional(),
|
|
72
71
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
73
72
|
.optional(),
|
|
@@ -97,7 +96,7 @@ export type HrisTimeoff$Outbound = {
|
|
|
97
96
|
is_paid?: boolean | undefined;
|
|
98
97
|
raw?: { [k: string]: any } | undefined;
|
|
99
98
|
reason?: string | undefined;
|
|
100
|
-
start_at
|
|
99
|
+
start_at: string;
|
|
101
100
|
status?: string | undefined;
|
|
102
101
|
updated_at?: string | undefined;
|
|
103
102
|
user_id?: string | undefined;
|
|
@@ -119,7 +118,7 @@ export const HrisTimeoff$outboundSchema: z.ZodType<
|
|
|
119
118
|
isPaid: z.boolean().optional(),
|
|
120
119
|
raw: z.record(z.any()).optional(),
|
|
121
120
|
reason: z.string().optional(),
|
|
122
|
-
startAt: z.date().transform(v => v.toISOString())
|
|
121
|
+
startAt: z.date().transform(v => v.toISOString()),
|
|
123
122
|
status: HrisTimeoffStatus$outboundSchema.optional(),
|
|
124
123
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
125
124
|
userId: z.string().optional(),
|