@unified-api/typescript-sdk 2.52.0 → 2.54.0
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/README.md +12 -0
- package/docs/sdks/device/README.md +519 -0
- package/docs/sdks/hris/README.md +512 -0
- package/funcs/deviceCreateHrisDevice.d.ts +14 -0
- package/funcs/deviceCreateHrisDevice.d.ts.map +1 -0
- package/funcs/deviceCreateHrisDevice.js +109 -0
- package/funcs/deviceCreateHrisDevice.js.map +1 -0
- package/funcs/deviceGetHrisDevice.d.ts +14 -0
- package/funcs/deviceGetHrisDevice.d.ts.map +1 -0
- package/funcs/deviceGetHrisDevice.js +112 -0
- package/funcs/deviceGetHrisDevice.js.map +1 -0
- package/funcs/deviceListHrisDevices.d.ts +14 -0
- package/funcs/deviceListHrisDevices.d.ts.map +1 -0
- package/funcs/deviceListHrisDevices.js +116 -0
- package/funcs/deviceListHrisDevices.js.map +1 -0
- package/funcs/devicePatchHrisDevice.d.ts +14 -0
- package/funcs/devicePatchHrisDevice.d.ts.map +1 -0
- package/funcs/devicePatchHrisDevice.js +113 -0
- package/funcs/devicePatchHrisDevice.js.map +1 -0
- package/funcs/deviceRemoveHrisDevice.d.ts +13 -0
- package/funcs/deviceRemoveHrisDevice.d.ts.map +1 -0
- package/funcs/deviceRemoveHrisDevice.js +110 -0
- package/funcs/deviceRemoveHrisDevice.js.map +1 -0
- package/funcs/deviceUpdateHrisDevice.d.ts +14 -0
- package/funcs/deviceUpdateHrisDevice.d.ts.map +1 -0
- package/funcs/deviceUpdateHrisDevice.js +113 -0
- package/funcs/deviceUpdateHrisDevice.js.map +1 -0
- package/funcs/fileListStorageFiles.js +1 -0
- package/funcs/fileListStorageFiles.js.map +1 -1
- package/funcs/hrisCreateHrisDevice.d.ts +14 -0
- package/funcs/hrisCreateHrisDevice.d.ts.map +1 -0
- package/funcs/hrisCreateHrisDevice.js +109 -0
- package/funcs/hrisCreateHrisDevice.js.map +1 -0
- package/funcs/hrisGetHrisDevice.d.ts +14 -0
- package/funcs/hrisGetHrisDevice.d.ts.map +1 -0
- package/funcs/hrisGetHrisDevice.js +112 -0
- package/funcs/hrisGetHrisDevice.js.map +1 -0
- package/funcs/hrisListHrisDevices.d.ts +14 -0
- package/funcs/hrisListHrisDevices.d.ts.map +1 -0
- package/funcs/hrisListHrisDevices.js +116 -0
- package/funcs/hrisListHrisDevices.js.map +1 -0
- package/funcs/hrisPatchHrisDevice.d.ts +14 -0
- package/funcs/hrisPatchHrisDevice.d.ts.map +1 -0
- package/funcs/hrisPatchHrisDevice.js +113 -0
- package/funcs/hrisPatchHrisDevice.js.map +1 -0
- package/funcs/hrisRemoveHrisDevice.d.ts +13 -0
- package/funcs/hrisRemoveHrisDevice.d.ts.map +1 -0
- package/funcs/hrisRemoveHrisDevice.js +110 -0
- package/funcs/hrisRemoveHrisDevice.js.map +1 -0
- package/funcs/hrisUpdateHrisDevice.d.ts +14 -0
- package/funcs/hrisUpdateHrisDevice.d.ts.map +1 -0
- package/funcs/hrisUpdateHrisDevice.js +113 -0
- package/funcs/hrisUpdateHrisDevice.js.map +1 -0
- package/funcs/storageListStorageFiles.js +1 -0
- package/funcs/storageListStorageFiles.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/package.json +1 -1
- package/sdk/device.d.ts +30 -0
- package/sdk/device.d.ts.map +1 -0
- package/sdk/device.js +54 -0
- package/sdk/device.js.map +1 -0
- package/sdk/hris.d.ts +24 -0
- package/sdk/hris.d.ts.map +1 -1
- package/sdk/hris.js +42 -0
- package/sdk/hris.js.map +1 -1
- package/sdk/models/operations/createhrisdevice.d.ts +40 -0
- package/sdk/models/operations/createhrisdevice.d.ts.map +1 -0
- package/sdk/models/operations/createhrisdevice.js +75 -0
- package/sdk/models/operations/createhrisdevice.js.map +1 -0
- package/sdk/models/operations/gethrisdevice.d.ts +42 -0
- package/sdk/models/operations/gethrisdevice.d.ts.map +1 -0
- package/sdk/models/operations/gethrisdevice.js +72 -0
- package/sdk/models/operations/gethrisdevice.js.map +1 -0
- package/sdk/models/operations/index.d.ts +6 -0
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +6 -0
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/listhrisdevices.d.ts +57 -0
- package/sdk/models/operations/listhrisdevices.d.ts.map +1 -0
- package/sdk/models/operations/listhrisdevices.js +89 -0
- package/sdk/models/operations/listhrisdevices.js.map +1 -0
- package/sdk/models/operations/liststoragefiles.d.ts +2 -0
- package/sdk/models/operations/liststoragefiles.d.ts.map +1 -1
- package/sdk/models/operations/liststoragefiles.js +2 -0
- package/sdk/models/operations/liststoragefiles.js.map +1 -1
- package/sdk/models/operations/patchhrisdevice.d.ts +45 -0
- package/sdk/models/operations/patchhrisdevice.d.ts.map +1 -0
- package/sdk/models/operations/patchhrisdevice.js +77 -0
- package/sdk/models/operations/patchhrisdevice.js.map +1 -0
- package/sdk/models/operations/removehrisdevice.d.ts +66 -0
- package/sdk/models/operations/removehrisdevice.d.ts.map +1 -0
- package/sdk/models/operations/removehrisdevice.js +105 -0
- package/sdk/models/operations/removehrisdevice.js.map +1 -0
- package/sdk/models/operations/updatehrisdevice.d.ts +45 -0
- package/sdk/models/operations/updatehrisdevice.d.ts.map +1 -0
- package/sdk/models/operations/updatehrisdevice.js +77 -0
- package/sdk/models/operations/updatehrisdevice.js.map +1 -0
- package/sdk/models/shared/accountingassociatedcontact.d.ts +34 -0
- package/sdk/models/shared/accountingassociatedcontact.d.ts.map +1 -0
- package/sdk/models/shared/accountingassociatedcontact.js +64 -0
- package/sdk/models/shared/accountingassociatedcontact.js.map +1 -0
- package/sdk/models/shared/accountingcontact.d.ts +3 -0
- package/sdk/models/shared/accountingcontact.d.ts.map +1 -1
- package/sdk/models/shared/accountingcontact.js +7 -0
- package/sdk/models/shared/accountingcontact.js.map +1 -1
- package/sdk/models/shared/accountinginvoice.d.ts +2 -0
- package/sdk/models/shared/accountinginvoice.d.ts.map +1 -1
- package/sdk/models/shared/accountinginvoice.js +2 -0
- package/sdk/models/shared/accountinginvoice.js.map +1 -1
- package/sdk/models/shared/atsjob.d.ts +3 -0
- package/sdk/models/shared/atsjob.d.ts.map +1 -1
- package/sdk/models/shared/atsjob.js +3 -0
- package/sdk/models/shared/atsjob.js.map +1 -1
- package/sdk/models/shared/atsjobopening.d.ts +63 -0
- package/sdk/models/shared/atsjobopening.d.ts.map +1 -0
- package/sdk/models/shared/atsjobopening.js +103 -0
- package/sdk/models/shared/atsjobopening.js.map +1 -0
- package/sdk/models/shared/hrisdevice.d.ts +74 -0
- package/sdk/models/shared/hrisdevice.d.ts.map +1 -0
- package/sdk/models/shared/hrisdevice.js +132 -0
- package/sdk/models/shared/hrisdevice.js.map +1 -0
- package/sdk/models/shared/index.d.ts +3 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +3 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.d.ts +6 -0
- package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.js +2 -0
- package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
- package/sdk/models/shared/webhook.d.ts +3 -0
- package/sdk/models/shared/webhook.d.ts.map +1 -1
- package/sdk/models/shared/webhook.js +1 -0
- package/sdk/models/shared/webhook.js.map +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/deviceCreateHrisDevice.ts +163 -0
- package/src/funcs/deviceGetHrisDevice.ts +166 -0
- package/src/funcs/deviceListHrisDevices.ts +170 -0
- package/src/funcs/devicePatchHrisDevice.ts +167 -0
- package/src/funcs/deviceRemoveHrisDevice.ts +169 -0
- package/src/funcs/deviceUpdateHrisDevice.ts +167 -0
- package/src/funcs/fileListStorageFiles.ts +1 -0
- package/src/funcs/hrisCreateHrisDevice.ts +163 -0
- package/src/funcs/hrisGetHrisDevice.ts +166 -0
- package/src/funcs/hrisListHrisDevices.ts +170 -0
- package/src/funcs/hrisPatchHrisDevice.ts +167 -0
- package/src/funcs/hrisRemoveHrisDevice.ts +169 -0
- package/src/funcs/hrisUpdateHrisDevice.ts +167 -0
- package/src/funcs/storageListStorageFiles.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/sdk/device.ts +100 -0
- package/src/sdk/hris.ts +90 -0
- package/src/sdk/models/operations/createhrisdevice.ts +92 -0
- package/src/sdk/models/operations/gethrisdevice.ts +92 -0
- package/src/sdk/models/operations/index.ts +6 -0
- package/src/sdk/models/operations/listhrisdevices.ts +124 -0
- package/src/sdk/models/operations/liststoragefiles.ts +4 -0
- package/src/sdk/models/operations/patchhrisdevice.ts +99 -0
- package/src/sdk/models/operations/removehrisdevice.ts +151 -0
- package/src/sdk/models/operations/updatehrisdevice.ts +99 -0
- package/src/sdk/models/shared/accountingassociatedcontact.ts +82 -0
- package/src/sdk/models/shared/accountingcontact.ts +14 -0
- package/src/sdk/models/shared/accountinginvoice.ts +4 -0
- package/src/sdk/models/shared/atsjob.ts +10 -0
- package/src/sdk/models/shared/atsjobopening.ts +123 -0
- package/src/sdk/models/shared/hrisdevice.ts +176 -0
- package/src/sdk/models/shared/index.ts +3 -0
- package/src/sdk/models/shared/propertyconnectionpermissions.ts +2 -0
- package/src/sdk/models/shared/webhook.ts +1 -0
- package/src/sdk/sdk.ts +6 -0
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type GetHrisDeviceRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* ID of the connection
|
|
14
|
+
*/
|
|
15
|
+
connectionId: string;
|
|
16
|
+
/**
|
|
17
|
+
* Comma-delimited fields to return
|
|
18
|
+
*/
|
|
19
|
+
fields?: Array<string> | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* ID of the Device
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const GetHrisDeviceRequest$inboundSchema: z.ZodType<
|
|
28
|
+
GetHrisDeviceRequest,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
connection_id: z.string(),
|
|
33
|
+
fields: z.array(z.string()).optional(),
|
|
34
|
+
id: z.string(),
|
|
35
|
+
}).transform((v) => {
|
|
36
|
+
return remap$(v, {
|
|
37
|
+
"connection_id": "connectionId",
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export type GetHrisDeviceRequest$Outbound = {
|
|
43
|
+
connection_id: string;
|
|
44
|
+
fields?: Array<string> | undefined;
|
|
45
|
+
id: string;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
/** @internal */
|
|
49
|
+
export const GetHrisDeviceRequest$outboundSchema: z.ZodType<
|
|
50
|
+
GetHrisDeviceRequest$Outbound,
|
|
51
|
+
z.ZodTypeDef,
|
|
52
|
+
GetHrisDeviceRequest
|
|
53
|
+
> = z.object({
|
|
54
|
+
connectionId: z.string(),
|
|
55
|
+
fields: z.array(z.string()).optional(),
|
|
56
|
+
id: z.string(),
|
|
57
|
+
}).transform((v) => {
|
|
58
|
+
return remap$(v, {
|
|
59
|
+
connectionId: "connection_id",
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @internal
|
|
65
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
|
+
*/
|
|
67
|
+
export namespace GetHrisDeviceRequest$ {
|
|
68
|
+
/** @deprecated use `GetHrisDeviceRequest$inboundSchema` instead. */
|
|
69
|
+
export const inboundSchema = GetHrisDeviceRequest$inboundSchema;
|
|
70
|
+
/** @deprecated use `GetHrisDeviceRequest$outboundSchema` instead. */
|
|
71
|
+
export const outboundSchema = GetHrisDeviceRequest$outboundSchema;
|
|
72
|
+
/** @deprecated use `GetHrisDeviceRequest$Outbound` instead. */
|
|
73
|
+
export type Outbound = GetHrisDeviceRequest$Outbound;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function getHrisDeviceRequestToJSON(
|
|
77
|
+
getHrisDeviceRequest: GetHrisDeviceRequest,
|
|
78
|
+
): string {
|
|
79
|
+
return JSON.stringify(
|
|
80
|
+
GetHrisDeviceRequest$outboundSchema.parse(getHrisDeviceRequest),
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function getHrisDeviceRequestFromJSON(
|
|
85
|
+
jsonString: string,
|
|
86
|
+
): SafeParseResult<GetHrisDeviceRequest, SDKValidationError> {
|
|
87
|
+
return safeParse(
|
|
88
|
+
jsonString,
|
|
89
|
+
(x) => GetHrisDeviceRequest$inboundSchema.parse(JSON.parse(x)),
|
|
90
|
+
`Failed to parse 'GetHrisDeviceRequest' from JSON`,
|
|
91
|
+
);
|
|
92
|
+
}
|
|
@@ -31,6 +31,7 @@ export * from "./createcrmlead.js";
|
|
|
31
31
|
export * from "./createcrmpipeline.js";
|
|
32
32
|
export * from "./creategenaiprompt.js";
|
|
33
33
|
export * from "./createhriscompany.js";
|
|
34
|
+
export * from "./createhrisdevice.js";
|
|
34
35
|
export * from "./createhrisemployee.js";
|
|
35
36
|
export * from "./createhrisgroup.js";
|
|
36
37
|
export * from "./createhrislocation.js";
|
|
@@ -98,6 +99,7 @@ export * from "./getcrmevent.js";
|
|
|
98
99
|
export * from "./getcrmlead.js";
|
|
99
100
|
export * from "./getcrmpipeline.js";
|
|
100
101
|
export * from "./gethriscompany.js";
|
|
102
|
+
export * from "./gethrisdevice.js";
|
|
101
103
|
export * from "./gethrisemployee.js";
|
|
102
104
|
export * from "./gethrisgroup.js";
|
|
103
105
|
export * from "./gethrislocation.js";
|
|
@@ -177,6 +179,7 @@ export * from "./listenrichcompanies.js";
|
|
|
177
179
|
export * from "./listenrichpeople.js";
|
|
178
180
|
export * from "./listgenaimodels.js";
|
|
179
181
|
export * from "./listhriscompanies.js";
|
|
182
|
+
export * from "./listhrisdevices.js";
|
|
180
183
|
export * from "./listhrisemployees.js";
|
|
181
184
|
export * from "./listhrisgroups.js";
|
|
182
185
|
export * from "./listhrislocations.js";
|
|
@@ -250,6 +253,7 @@ export * from "./patchcrmevent.js";
|
|
|
250
253
|
export * from "./patchcrmlead.js";
|
|
251
254
|
export * from "./patchcrmpipeline.js";
|
|
252
255
|
export * from "./patchhriscompany.js";
|
|
256
|
+
export * from "./patchhrisdevice.js";
|
|
253
257
|
export * from "./patchhrisemployee.js";
|
|
254
258
|
export * from "./patchhrisgroup.js";
|
|
255
259
|
export * from "./patchhrislocation.js";
|
|
@@ -315,6 +319,7 @@ export * from "./removecrmevent.js";
|
|
|
315
319
|
export * from "./removecrmlead.js";
|
|
316
320
|
export * from "./removecrmpipeline.js";
|
|
317
321
|
export * from "./removehriscompany.js";
|
|
322
|
+
export * from "./removehrisdevice.js";
|
|
318
323
|
export * from "./removehrisemployee.js";
|
|
319
324
|
export * from "./removehrisgroup.js";
|
|
320
325
|
export * from "./removehrislocation.js";
|
|
@@ -378,6 +383,7 @@ export * from "./updatecrmevent.js";
|
|
|
378
383
|
export * from "./updatecrmlead.js";
|
|
379
384
|
export * from "./updatecrmpipeline.js";
|
|
380
385
|
export * from "./updatehriscompany.js";
|
|
386
|
+
export * from "./updatehrisdevice.js";
|
|
381
387
|
export * from "./updatehrisemployee.js";
|
|
382
388
|
export * from "./updatehrisgroup.js";
|
|
383
389
|
export * from "./updatehrislocation.js";
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type ListHrisDevicesRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* ID of the connection
|
|
14
|
+
*/
|
|
15
|
+
connectionId: string;
|
|
16
|
+
/**
|
|
17
|
+
* Comma-delimited fields to return
|
|
18
|
+
*/
|
|
19
|
+
fields?: Array<string> | undefined;
|
|
20
|
+
limit?: number | undefined;
|
|
21
|
+
offset?: number | undefined;
|
|
22
|
+
order?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Query string to search. eg. email address or name
|
|
25
|
+
*/
|
|
26
|
+
query?: string | undefined;
|
|
27
|
+
sort?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Return only results whose updated date is equal or greater to this value
|
|
30
|
+
*/
|
|
31
|
+
updatedGte?: Date | undefined;
|
|
32
|
+
userId?: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const ListHrisDevicesRequest$inboundSchema: z.ZodType<
|
|
37
|
+
ListHrisDevicesRequest,
|
|
38
|
+
z.ZodTypeDef,
|
|
39
|
+
unknown
|
|
40
|
+
> = z.object({
|
|
41
|
+
connection_id: z.string(),
|
|
42
|
+
fields: z.array(z.string()).optional(),
|
|
43
|
+
limit: z.number().optional(),
|
|
44
|
+
offset: z.number().optional(),
|
|
45
|
+
order: z.string().optional(),
|
|
46
|
+
query: z.string().optional(),
|
|
47
|
+
sort: z.string().optional(),
|
|
48
|
+
updated_gte: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
49
|
+
.optional(),
|
|
50
|
+
user_id: z.string().optional(),
|
|
51
|
+
}).transform((v) => {
|
|
52
|
+
return remap$(v, {
|
|
53
|
+
"connection_id": "connectionId",
|
|
54
|
+
"updated_gte": "updatedGte",
|
|
55
|
+
"user_id": "userId",
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export type ListHrisDevicesRequest$Outbound = {
|
|
61
|
+
connection_id: string;
|
|
62
|
+
fields?: Array<string> | undefined;
|
|
63
|
+
limit?: number | undefined;
|
|
64
|
+
offset?: number | undefined;
|
|
65
|
+
order?: string | undefined;
|
|
66
|
+
query?: string | undefined;
|
|
67
|
+
sort?: string | undefined;
|
|
68
|
+
updated_gte?: string | undefined;
|
|
69
|
+
user_id?: string | undefined;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const ListHrisDevicesRequest$outboundSchema: z.ZodType<
|
|
74
|
+
ListHrisDevicesRequest$Outbound,
|
|
75
|
+
z.ZodTypeDef,
|
|
76
|
+
ListHrisDevicesRequest
|
|
77
|
+
> = z.object({
|
|
78
|
+
connectionId: z.string(),
|
|
79
|
+
fields: z.array(z.string()).optional(),
|
|
80
|
+
limit: z.number().optional(),
|
|
81
|
+
offset: z.number().optional(),
|
|
82
|
+
order: z.string().optional(),
|
|
83
|
+
query: z.string().optional(),
|
|
84
|
+
sort: z.string().optional(),
|
|
85
|
+
updatedGte: z.date().transform(v => v.toISOString()).optional(),
|
|
86
|
+
userId: z.string().optional(),
|
|
87
|
+
}).transform((v) => {
|
|
88
|
+
return remap$(v, {
|
|
89
|
+
connectionId: "connection_id",
|
|
90
|
+
updatedGte: "updated_gte",
|
|
91
|
+
userId: "user_id",
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
98
|
+
*/
|
|
99
|
+
export namespace ListHrisDevicesRequest$ {
|
|
100
|
+
/** @deprecated use `ListHrisDevicesRequest$inboundSchema` instead. */
|
|
101
|
+
export const inboundSchema = ListHrisDevicesRequest$inboundSchema;
|
|
102
|
+
/** @deprecated use `ListHrisDevicesRequest$outboundSchema` instead. */
|
|
103
|
+
export const outboundSchema = ListHrisDevicesRequest$outboundSchema;
|
|
104
|
+
/** @deprecated use `ListHrisDevicesRequest$Outbound` instead. */
|
|
105
|
+
export type Outbound = ListHrisDevicesRequest$Outbound;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function listHrisDevicesRequestToJSON(
|
|
109
|
+
listHrisDevicesRequest: ListHrisDevicesRequest,
|
|
110
|
+
): string {
|
|
111
|
+
return JSON.stringify(
|
|
112
|
+
ListHrisDevicesRequest$outboundSchema.parse(listHrisDevicesRequest),
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function listHrisDevicesRequestFromJSON(
|
|
117
|
+
jsonString: string,
|
|
118
|
+
): SafeParseResult<ListHrisDevicesRequest, SDKValidationError> {
|
|
119
|
+
return safeParse(
|
|
120
|
+
jsonString,
|
|
121
|
+
(x) => ListHrisDevicesRequest$inboundSchema.parse(JSON.parse(x)),
|
|
122
|
+
`Failed to parse 'ListHrisDevicesRequest' from JSON`,
|
|
123
|
+
);
|
|
124
|
+
}
|
|
@@ -26,6 +26,7 @@ export type ListStorageFilesRequest = {
|
|
|
26
26
|
*/
|
|
27
27
|
query?: string | undefined;
|
|
28
28
|
sort?: string | undefined;
|
|
29
|
+
type?: string | undefined;
|
|
29
30
|
/**
|
|
30
31
|
* Return only results whose updated date is equal or greater to this value
|
|
31
32
|
*/
|
|
@@ -46,6 +47,7 @@ export const ListStorageFilesRequest$inboundSchema: z.ZodType<
|
|
|
46
47
|
parent_id: z.string().optional(),
|
|
47
48
|
query: z.string().optional(),
|
|
48
49
|
sort: z.string().optional(),
|
|
50
|
+
type: z.string().optional(),
|
|
49
51
|
updated_gte: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
50
52
|
.optional(),
|
|
51
53
|
}).transform((v) => {
|
|
@@ -66,6 +68,7 @@ export type ListStorageFilesRequest$Outbound = {
|
|
|
66
68
|
parent_id?: string | undefined;
|
|
67
69
|
query?: string | undefined;
|
|
68
70
|
sort?: string | undefined;
|
|
71
|
+
type?: string | undefined;
|
|
69
72
|
updated_gte?: string | undefined;
|
|
70
73
|
};
|
|
71
74
|
|
|
@@ -83,6 +86,7 @@ export const ListStorageFilesRequest$outboundSchema: z.ZodType<
|
|
|
83
86
|
parentId: z.string().optional(),
|
|
84
87
|
query: z.string().optional(),
|
|
85
88
|
sort: z.string().optional(),
|
|
89
|
+
type: z.string().optional(),
|
|
86
90
|
updatedGte: z.date().transform(v => v.toISOString()).optional(),
|
|
87
91
|
}).transform((v) => {
|
|
88
92
|
return remap$(v, {
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import * as shared from "../shared/index.js";
|
|
11
|
+
|
|
12
|
+
export type PatchHrisDeviceRequest = {
|
|
13
|
+
hrisDevice: shared.HrisDevice;
|
|
14
|
+
/**
|
|
15
|
+
* ID of the connection
|
|
16
|
+
*/
|
|
17
|
+
connectionId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Comma-delimited fields to return
|
|
20
|
+
*/
|
|
21
|
+
fields?: Array<string> | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* ID of the Device
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const PatchHrisDeviceRequest$inboundSchema: z.ZodType<
|
|
30
|
+
PatchHrisDeviceRequest,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
HrisDevice: shared.HrisDevice$inboundSchema,
|
|
35
|
+
connection_id: z.string(),
|
|
36
|
+
fields: z.array(z.string()).optional(),
|
|
37
|
+
id: z.string(),
|
|
38
|
+
}).transform((v) => {
|
|
39
|
+
return remap$(v, {
|
|
40
|
+
"HrisDevice": "hrisDevice",
|
|
41
|
+
"connection_id": "connectionId",
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type PatchHrisDeviceRequest$Outbound = {
|
|
47
|
+
HrisDevice: shared.HrisDevice$Outbound;
|
|
48
|
+
connection_id: string;
|
|
49
|
+
fields?: Array<string> | undefined;
|
|
50
|
+
id: string;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const PatchHrisDeviceRequest$outboundSchema: z.ZodType<
|
|
55
|
+
PatchHrisDeviceRequest$Outbound,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
PatchHrisDeviceRequest
|
|
58
|
+
> = z.object({
|
|
59
|
+
hrisDevice: shared.HrisDevice$outboundSchema,
|
|
60
|
+
connectionId: z.string(),
|
|
61
|
+
fields: z.array(z.string()).optional(),
|
|
62
|
+
id: z.string(),
|
|
63
|
+
}).transform((v) => {
|
|
64
|
+
return remap$(v, {
|
|
65
|
+
hrisDevice: "HrisDevice",
|
|
66
|
+
connectionId: "connection_id",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
+
*/
|
|
74
|
+
export namespace PatchHrisDeviceRequest$ {
|
|
75
|
+
/** @deprecated use `PatchHrisDeviceRequest$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema = PatchHrisDeviceRequest$inboundSchema;
|
|
77
|
+
/** @deprecated use `PatchHrisDeviceRequest$outboundSchema` instead. */
|
|
78
|
+
export const outboundSchema = PatchHrisDeviceRequest$outboundSchema;
|
|
79
|
+
/** @deprecated use `PatchHrisDeviceRequest$Outbound` instead. */
|
|
80
|
+
export type Outbound = PatchHrisDeviceRequest$Outbound;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function patchHrisDeviceRequestToJSON(
|
|
84
|
+
patchHrisDeviceRequest: PatchHrisDeviceRequest,
|
|
85
|
+
): string {
|
|
86
|
+
return JSON.stringify(
|
|
87
|
+
PatchHrisDeviceRequest$outboundSchema.parse(patchHrisDeviceRequest),
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function patchHrisDeviceRequestFromJSON(
|
|
92
|
+
jsonString: string,
|
|
93
|
+
): SafeParseResult<PatchHrisDeviceRequest, SDKValidationError> {
|
|
94
|
+
return safeParse(
|
|
95
|
+
jsonString,
|
|
96
|
+
(x) => PatchHrisDeviceRequest$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'PatchHrisDeviceRequest' from JSON`,
|
|
98
|
+
);
|
|
99
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type RemoveHrisDeviceRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* ID of the connection
|
|
14
|
+
*/
|
|
15
|
+
connectionId: string;
|
|
16
|
+
/**
|
|
17
|
+
* ID of the Device
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export type RemoveHrisDeviceResponse = {
|
|
23
|
+
headers: { [k: string]: Array<string> };
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const RemoveHrisDeviceRequest$inboundSchema: z.ZodType<
|
|
28
|
+
RemoveHrisDeviceRequest,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
connection_id: z.string(),
|
|
33
|
+
id: z.string(),
|
|
34
|
+
}).transform((v) => {
|
|
35
|
+
return remap$(v, {
|
|
36
|
+
"connection_id": "connectionId",
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export type RemoveHrisDeviceRequest$Outbound = {
|
|
42
|
+
connection_id: string;
|
|
43
|
+
id: string;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const RemoveHrisDeviceRequest$outboundSchema: z.ZodType<
|
|
48
|
+
RemoveHrisDeviceRequest$Outbound,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
RemoveHrisDeviceRequest
|
|
51
|
+
> = z.object({
|
|
52
|
+
connectionId: z.string(),
|
|
53
|
+
id: z.string(),
|
|
54
|
+
}).transform((v) => {
|
|
55
|
+
return remap$(v, {
|
|
56
|
+
connectionId: "connection_id",
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
+
*/
|
|
64
|
+
export namespace RemoveHrisDeviceRequest$ {
|
|
65
|
+
/** @deprecated use `RemoveHrisDeviceRequest$inboundSchema` instead. */
|
|
66
|
+
export const inboundSchema = RemoveHrisDeviceRequest$inboundSchema;
|
|
67
|
+
/** @deprecated use `RemoveHrisDeviceRequest$outboundSchema` instead. */
|
|
68
|
+
export const outboundSchema = RemoveHrisDeviceRequest$outboundSchema;
|
|
69
|
+
/** @deprecated use `RemoveHrisDeviceRequest$Outbound` instead. */
|
|
70
|
+
export type Outbound = RemoveHrisDeviceRequest$Outbound;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function removeHrisDeviceRequestToJSON(
|
|
74
|
+
removeHrisDeviceRequest: RemoveHrisDeviceRequest,
|
|
75
|
+
): string {
|
|
76
|
+
return JSON.stringify(
|
|
77
|
+
RemoveHrisDeviceRequest$outboundSchema.parse(removeHrisDeviceRequest),
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function removeHrisDeviceRequestFromJSON(
|
|
82
|
+
jsonString: string,
|
|
83
|
+
): SafeParseResult<RemoveHrisDeviceRequest, SDKValidationError> {
|
|
84
|
+
return safeParse(
|
|
85
|
+
jsonString,
|
|
86
|
+
(x) => RemoveHrisDeviceRequest$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
+
`Failed to parse 'RemoveHrisDeviceRequest' from JSON`,
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const RemoveHrisDeviceResponse$inboundSchema: z.ZodType<
|
|
93
|
+
RemoveHrisDeviceResponse,
|
|
94
|
+
z.ZodTypeDef,
|
|
95
|
+
unknown
|
|
96
|
+
> = z.object({
|
|
97
|
+
Headers: z.record(z.array(z.string())),
|
|
98
|
+
}).transform((v) => {
|
|
99
|
+
return remap$(v, {
|
|
100
|
+
"Headers": "headers",
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
/** @internal */
|
|
105
|
+
export type RemoveHrisDeviceResponse$Outbound = {
|
|
106
|
+
Headers: { [k: string]: Array<string> };
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
/** @internal */
|
|
110
|
+
export const RemoveHrisDeviceResponse$outboundSchema: z.ZodType<
|
|
111
|
+
RemoveHrisDeviceResponse$Outbound,
|
|
112
|
+
z.ZodTypeDef,
|
|
113
|
+
RemoveHrisDeviceResponse
|
|
114
|
+
> = z.object({
|
|
115
|
+
headers: z.record(z.array(z.string())),
|
|
116
|
+
}).transform((v) => {
|
|
117
|
+
return remap$(v, {
|
|
118
|
+
headers: "Headers",
|
|
119
|
+
});
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @internal
|
|
124
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
125
|
+
*/
|
|
126
|
+
export namespace RemoveHrisDeviceResponse$ {
|
|
127
|
+
/** @deprecated use `RemoveHrisDeviceResponse$inboundSchema` instead. */
|
|
128
|
+
export const inboundSchema = RemoveHrisDeviceResponse$inboundSchema;
|
|
129
|
+
/** @deprecated use `RemoveHrisDeviceResponse$outboundSchema` instead. */
|
|
130
|
+
export const outboundSchema = RemoveHrisDeviceResponse$outboundSchema;
|
|
131
|
+
/** @deprecated use `RemoveHrisDeviceResponse$Outbound` instead. */
|
|
132
|
+
export type Outbound = RemoveHrisDeviceResponse$Outbound;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export function removeHrisDeviceResponseToJSON(
|
|
136
|
+
removeHrisDeviceResponse: RemoveHrisDeviceResponse,
|
|
137
|
+
): string {
|
|
138
|
+
return JSON.stringify(
|
|
139
|
+
RemoveHrisDeviceResponse$outboundSchema.parse(removeHrisDeviceResponse),
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function removeHrisDeviceResponseFromJSON(
|
|
144
|
+
jsonString: string,
|
|
145
|
+
): SafeParseResult<RemoveHrisDeviceResponse, SDKValidationError> {
|
|
146
|
+
return safeParse(
|
|
147
|
+
jsonString,
|
|
148
|
+
(x) => RemoveHrisDeviceResponse$inboundSchema.parse(JSON.parse(x)),
|
|
149
|
+
`Failed to parse 'RemoveHrisDeviceResponse' from JSON`,
|
|
150
|
+
);
|
|
151
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import * as shared from "../shared/index.js";
|
|
11
|
+
|
|
12
|
+
export type UpdateHrisDeviceRequest = {
|
|
13
|
+
hrisDevice: shared.HrisDevice;
|
|
14
|
+
/**
|
|
15
|
+
* ID of the connection
|
|
16
|
+
*/
|
|
17
|
+
connectionId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Comma-delimited fields to return
|
|
20
|
+
*/
|
|
21
|
+
fields?: Array<string> | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* ID of the Device
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const UpdateHrisDeviceRequest$inboundSchema: z.ZodType<
|
|
30
|
+
UpdateHrisDeviceRequest,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
HrisDevice: shared.HrisDevice$inboundSchema,
|
|
35
|
+
connection_id: z.string(),
|
|
36
|
+
fields: z.array(z.string()).optional(),
|
|
37
|
+
id: z.string(),
|
|
38
|
+
}).transform((v) => {
|
|
39
|
+
return remap$(v, {
|
|
40
|
+
"HrisDevice": "hrisDevice",
|
|
41
|
+
"connection_id": "connectionId",
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type UpdateHrisDeviceRequest$Outbound = {
|
|
47
|
+
HrisDevice: shared.HrisDevice$Outbound;
|
|
48
|
+
connection_id: string;
|
|
49
|
+
fields?: Array<string> | undefined;
|
|
50
|
+
id: string;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export const UpdateHrisDeviceRequest$outboundSchema: z.ZodType<
|
|
55
|
+
UpdateHrisDeviceRequest$Outbound,
|
|
56
|
+
z.ZodTypeDef,
|
|
57
|
+
UpdateHrisDeviceRequest
|
|
58
|
+
> = z.object({
|
|
59
|
+
hrisDevice: shared.HrisDevice$outboundSchema,
|
|
60
|
+
connectionId: z.string(),
|
|
61
|
+
fields: z.array(z.string()).optional(),
|
|
62
|
+
id: z.string(),
|
|
63
|
+
}).transform((v) => {
|
|
64
|
+
return remap$(v, {
|
|
65
|
+
hrisDevice: "HrisDevice",
|
|
66
|
+
connectionId: "connection_id",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
+
*/
|
|
74
|
+
export namespace UpdateHrisDeviceRequest$ {
|
|
75
|
+
/** @deprecated use `UpdateHrisDeviceRequest$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema = UpdateHrisDeviceRequest$inboundSchema;
|
|
77
|
+
/** @deprecated use `UpdateHrisDeviceRequest$outboundSchema` instead. */
|
|
78
|
+
export const outboundSchema = UpdateHrisDeviceRequest$outboundSchema;
|
|
79
|
+
/** @deprecated use `UpdateHrisDeviceRequest$Outbound` instead. */
|
|
80
|
+
export type Outbound = UpdateHrisDeviceRequest$Outbound;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function updateHrisDeviceRequestToJSON(
|
|
84
|
+
updateHrisDeviceRequest: UpdateHrisDeviceRequest,
|
|
85
|
+
): string {
|
|
86
|
+
return JSON.stringify(
|
|
87
|
+
UpdateHrisDeviceRequest$outboundSchema.parse(updateHrisDeviceRequest),
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function updateHrisDeviceRequestFromJSON(
|
|
92
|
+
jsonString: string,
|
|
93
|
+
): SafeParseResult<UpdateHrisDeviceRequest, SDKValidationError> {
|
|
94
|
+
return safeParse(
|
|
95
|
+
jsonString,
|
|
96
|
+
(x) => UpdateHrisDeviceRequest$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'UpdateHrisDeviceRequest' from JSON`,
|
|
98
|
+
);
|
|
99
|
+
}
|