@unified-api/typescript-sdk 2.83.26 → 2.83.28
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 +8 -0
- package/dist/commonjs/funcs/hrisCreateHrisTimeoff.d.ts +15 -0
- package/dist/commonjs/funcs/hrisCreateHrisTimeoff.d.ts.map +1 -0
- package/dist/commonjs/funcs/hrisCreateHrisTimeoff.js +122 -0
- package/dist/commonjs/funcs/hrisCreateHrisTimeoff.js.map +1 -0
- package/dist/commonjs/funcs/hrisPatchHrisTimeoff.d.ts +15 -0
- package/dist/commonjs/funcs/hrisPatchHrisTimeoff.d.ts.map +1 -0
- package/dist/commonjs/funcs/hrisPatchHrisTimeoff.js +126 -0
- package/dist/commonjs/funcs/hrisPatchHrisTimeoff.js.map +1 -0
- package/dist/commonjs/funcs/hrisRemoveHrisTimeoff.d.ts +14 -0
- package/dist/commonjs/funcs/hrisRemoveHrisTimeoff.d.ts.map +1 -0
- package/dist/commonjs/funcs/hrisRemoveHrisTimeoff.js +122 -0
- package/dist/commonjs/funcs/hrisRemoveHrisTimeoff.js.map +1 -0
- package/dist/commonjs/funcs/hrisUpdateHrisTimeoff.d.ts +15 -0
- package/dist/commonjs/funcs/hrisUpdateHrisTimeoff.d.ts.map +1 -0
- package/dist/commonjs/funcs/hrisUpdateHrisTimeoff.js +126 -0
- package/dist/commonjs/funcs/hrisUpdateHrisTimeoff.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/encodings.d.ts.map +1 -1
- package/dist/commonjs/lib/encodings.js +20 -5
- package/dist/commonjs/lib/encodings.js.map +1 -1
- package/dist/commonjs/sdk/hris.d.ts +16 -0
- package/dist/commonjs/sdk/hris.d.ts.map +1 -1
- package/dist/commonjs/sdk/hris.js +28 -0
- package/dist/commonjs/sdk/hris.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/createhristimeoff.d.ts +48 -0
- package/dist/commonjs/sdk/models/operations/createhristimeoff.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/createhristimeoff.js +77 -0
- package/dist/commonjs/sdk/models/operations/createhristimeoff.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/createucrecording.d.ts +2 -1
- package/dist/commonjs/sdk/models/operations/createucrecording.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/createucrecording.js +2 -1
- package/dist/commonjs/sdk/models/operations/createucrecording.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getuccall.d.ts +2 -1
- package/dist/commonjs/sdk/models/operations/getuccall.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getuccall.js +2 -1
- package/dist/commonjs/sdk/models/operations/getuccall.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getucrecording.d.ts +2 -1
- package/dist/commonjs/sdk/models/operations/getucrecording.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getucrecording.js +2 -1
- package/dist/commonjs/sdk/models/operations/getucrecording.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/index.d.ts +4 -0
- package/dist/commonjs/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/index.js +4 -0
- package/dist/commonjs/sdk/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listuccalls.d.ts +2 -1
- package/dist/commonjs/sdk/models/operations/listuccalls.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/listuccalls.js +2 -1
- package/dist/commonjs/sdk/models/operations/listuccalls.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listucrecordings.d.ts +2 -1
- package/dist/commonjs/sdk/models/operations/listucrecordings.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/listucrecordings.js +2 -1
- package/dist/commonjs/sdk/models/operations/listucrecordings.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchhristimeoff.d.ts +53 -0
- package/dist/commonjs/sdk/models/operations/patchhristimeoff.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/patchhristimeoff.js +78 -0
- package/dist/commonjs/sdk/models/operations/patchhristimeoff.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/patchucrecording.d.ts +2 -1
- package/dist/commonjs/sdk/models/operations/patchucrecording.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/patchucrecording.js +2 -1
- package/dist/commonjs/sdk/models/operations/patchucrecording.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/removehristimeoff.d.ts +30 -0
- package/dist/commonjs/sdk/models/operations/removehristimeoff.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/removehristimeoff.js +68 -0
- package/dist/commonjs/sdk/models/operations/removehristimeoff.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/updatehristimeoff.d.ts +53 -0
- package/dist/commonjs/sdk/models/operations/updatehristimeoff.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/updatehristimeoff.js +78 -0
- package/dist/commonjs/sdk/models/operations/updatehristimeoff.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/updateucrecording.d.ts +2 -1
- package/dist/commonjs/sdk/models/operations/updateucrecording.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/updateucrecording.js +2 -1
- package/dist/commonjs/sdk/models/operations/updateucrecording.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/hristimeoff.d.ts +25 -1
- package/dist/commonjs/sdk/models/shared/hristimeoff.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/hristimeoff.js +38 -2
- package/dist/commonjs/sdk/models/shared/hristimeoff.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/uccall.d.ts +9 -0
- package/dist/commonjs/sdk/models/shared/uccall.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/uccall.js +9 -1
- package/dist/commonjs/sdk/models/shared/uccall.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/ucrecording.d.ts +12 -0
- package/dist/commonjs/sdk/models/shared/ucrecording.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/ucrecording.js +12 -1
- package/dist/commonjs/sdk/models/shared/ucrecording.js.map +1 -1
- package/dist/commonjs/sdk/timeoff.d.ts +16 -0
- package/dist/commonjs/sdk/timeoff.d.ts.map +1 -1
- package/dist/commonjs/sdk/timeoff.js +28 -0
- package/dist/commonjs/sdk/timeoff.js.map +1 -1
- package/dist/esm/funcs/hrisCreateHrisTimeoff.d.ts +15 -0
- package/dist/esm/funcs/hrisCreateHrisTimeoff.d.ts.map +1 -0
- package/dist/esm/funcs/hrisCreateHrisTimeoff.js +86 -0
- package/dist/esm/funcs/hrisCreateHrisTimeoff.js.map +1 -0
- package/dist/esm/funcs/hrisPatchHrisTimeoff.d.ts +15 -0
- package/dist/esm/funcs/hrisPatchHrisTimeoff.d.ts.map +1 -0
- package/dist/esm/funcs/hrisPatchHrisTimeoff.js +90 -0
- package/dist/esm/funcs/hrisPatchHrisTimeoff.js.map +1 -0
- package/dist/esm/funcs/hrisRemoveHrisTimeoff.d.ts +14 -0
- package/dist/esm/funcs/hrisRemoveHrisTimeoff.d.ts.map +1 -0
- package/dist/esm/funcs/hrisRemoveHrisTimeoff.js +86 -0
- package/dist/esm/funcs/hrisRemoveHrisTimeoff.js.map +1 -0
- package/dist/esm/funcs/hrisUpdateHrisTimeoff.d.ts +15 -0
- package/dist/esm/funcs/hrisUpdateHrisTimeoff.d.ts.map +1 -0
- package/dist/esm/funcs/hrisUpdateHrisTimeoff.js +90 -0
- package/dist/esm/funcs/hrisUpdateHrisTimeoff.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/encodings.d.ts.map +1 -1
- package/dist/esm/lib/encodings.js +20 -5
- package/dist/esm/lib/encodings.js.map +1 -1
- package/dist/esm/sdk/hris.d.ts +16 -0
- package/dist/esm/sdk/hris.d.ts.map +1 -1
- package/dist/esm/sdk/hris.js +28 -0
- package/dist/esm/sdk/hris.js.map +1 -1
- package/dist/esm/sdk/models/operations/createhristimeoff.d.ts +48 -0
- package/dist/esm/sdk/models/operations/createhristimeoff.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/createhristimeoff.js +40 -0
- package/dist/esm/sdk/models/operations/createhristimeoff.js.map +1 -0
- package/dist/esm/sdk/models/operations/createucrecording.d.ts +2 -1
- package/dist/esm/sdk/models/operations/createucrecording.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/createucrecording.js +2 -1
- package/dist/esm/sdk/models/operations/createucrecording.js.map +1 -1
- package/dist/esm/sdk/models/operations/getuccall.d.ts +2 -1
- package/dist/esm/sdk/models/operations/getuccall.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getuccall.js +2 -1
- package/dist/esm/sdk/models/operations/getuccall.js.map +1 -1
- package/dist/esm/sdk/models/operations/getucrecording.d.ts +2 -1
- package/dist/esm/sdk/models/operations/getucrecording.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getucrecording.js +2 -1
- package/dist/esm/sdk/models/operations/getucrecording.js.map +1 -1
- package/dist/esm/sdk/models/operations/index.d.ts +4 -0
- package/dist/esm/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/index.js +4 -0
- package/dist/esm/sdk/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/models/operations/listuccalls.d.ts +2 -1
- package/dist/esm/sdk/models/operations/listuccalls.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/listuccalls.js +2 -1
- package/dist/esm/sdk/models/operations/listuccalls.js.map +1 -1
- package/dist/esm/sdk/models/operations/listucrecordings.d.ts +2 -1
- package/dist/esm/sdk/models/operations/listucrecordings.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/listucrecordings.js +2 -1
- package/dist/esm/sdk/models/operations/listucrecordings.js.map +1 -1
- package/dist/esm/sdk/models/operations/patchhristimeoff.d.ts +53 -0
- package/dist/esm/sdk/models/operations/patchhristimeoff.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/patchhristimeoff.js +41 -0
- package/dist/esm/sdk/models/operations/patchhristimeoff.js.map +1 -0
- package/dist/esm/sdk/models/operations/patchucrecording.d.ts +2 -1
- package/dist/esm/sdk/models/operations/patchucrecording.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/patchucrecording.js +2 -1
- package/dist/esm/sdk/models/operations/patchucrecording.js.map +1 -1
- package/dist/esm/sdk/models/operations/removehristimeoff.d.ts +30 -0
- package/dist/esm/sdk/models/operations/removehristimeoff.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/removehristimeoff.js +30 -0
- package/dist/esm/sdk/models/operations/removehristimeoff.js.map +1 -0
- package/dist/esm/sdk/models/operations/updatehristimeoff.d.ts +53 -0
- package/dist/esm/sdk/models/operations/updatehristimeoff.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/updatehristimeoff.js +41 -0
- package/dist/esm/sdk/models/operations/updatehristimeoff.js.map +1 -0
- package/dist/esm/sdk/models/operations/updateucrecording.d.ts +2 -1
- package/dist/esm/sdk/models/operations/updateucrecording.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/updateucrecording.js +2 -1
- package/dist/esm/sdk/models/operations/updateucrecording.js.map +1 -1
- package/dist/esm/sdk/models/shared/hristimeoff.d.ts +25 -1
- package/dist/esm/sdk/models/shared/hristimeoff.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/hristimeoff.js +36 -1
- package/dist/esm/sdk/models/shared/hristimeoff.js.map +1 -1
- package/dist/esm/sdk/models/shared/uccall.d.ts +9 -0
- package/dist/esm/sdk/models/shared/uccall.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/uccall.js +8 -0
- package/dist/esm/sdk/models/shared/uccall.js.map +1 -1
- package/dist/esm/sdk/models/shared/ucrecording.d.ts +12 -0
- package/dist/esm/sdk/models/shared/ucrecording.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/ucrecording.js +11 -0
- package/dist/esm/sdk/models/shared/ucrecording.js.map +1 -1
- package/dist/esm/sdk/timeoff.d.ts +16 -0
- package/dist/esm/sdk/timeoff.d.ts.map +1 -1
- package/dist/esm/sdk/timeoff.js +28 -0
- package/dist/esm/sdk/timeoff.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/hrisCreateHrisTimeoff.ts +169 -0
- package/src/funcs/hrisPatchHrisTimeoff.ts +173 -0
- package/src/funcs/hrisRemoveHrisTimeoff.ts +174 -0
- package/src/funcs/hrisUpdateHrisTimeoff.ts +173 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +23 -4
- package/src/sdk/hris.ts +60 -0
- package/src/sdk/models/operations/createhristimeoff.ts +82 -0
- package/src/sdk/models/operations/createucrecording.ts +2 -1
- package/src/sdk/models/operations/getuccall.ts +2 -1
- package/src/sdk/models/operations/getucrecording.ts +2 -1
- package/src/sdk/models/operations/index.ts +4 -0
- package/src/sdk/models/operations/listuccalls.ts +2 -1
- package/src/sdk/models/operations/listucrecordings.ts +2 -1
- package/src/sdk/models/operations/patchhristimeoff.ts +88 -0
- package/src/sdk/models/operations/patchucrecording.ts +2 -1
- package/src/sdk/models/operations/removehristimeoff.ts +75 -0
- package/src/sdk/models/operations/updatehristimeoff.ts +88 -0
- package/src/sdk/models/operations/updateucrecording.ts +2 -1
- package/src/sdk/models/shared/hristimeoff.ts +63 -2
- package/src/sdk/models/shared/uccall.ts +17 -0
- package/src/sdk/models/shared/ucrecording.ts +25 -0
- package/src/sdk/timeoff.ts +60 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import * as shared from "../shared/index.js";
|
|
9
|
+
|
|
10
|
+
export const CreateHrisTimeoffQueryParamFields = {
|
|
11
|
+
Id: "id",
|
|
12
|
+
CreatedAt: "created_at",
|
|
13
|
+
UpdatedAt: "updated_at",
|
|
14
|
+
UserId: "user_id",
|
|
15
|
+
CompanyId: "company_id",
|
|
16
|
+
StartAt: "start_at",
|
|
17
|
+
EndAt: "end_at",
|
|
18
|
+
IsPaid: "is_paid",
|
|
19
|
+
Status: "status",
|
|
20
|
+
ApproverUserId: "approver_user_id",
|
|
21
|
+
ApprovedAt: "approved_at",
|
|
22
|
+
Comments: "comments",
|
|
23
|
+
Raw: "raw",
|
|
24
|
+
Reason: "reason",
|
|
25
|
+
} as const;
|
|
26
|
+
export type CreateHrisTimeoffQueryParamFields = ClosedEnum<
|
|
27
|
+
typeof CreateHrisTimeoffQueryParamFields
|
|
28
|
+
>;
|
|
29
|
+
|
|
30
|
+
export type CreateHrisTimeoffRequest = {
|
|
31
|
+
hrisTimeoff: shared.HrisTimeoff;
|
|
32
|
+
/**
|
|
33
|
+
* ID of the connection
|
|
34
|
+
*/
|
|
35
|
+
connectionId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Fields to return
|
|
38
|
+
*/
|
|
39
|
+
fields?: Array<CreateHrisTimeoffQueryParamFields> | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
42
|
+
*/
|
|
43
|
+
raw?: string | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const CreateHrisTimeoffQueryParamFields$outboundSchema: z.ZodNativeEnum<
|
|
48
|
+
typeof CreateHrisTimeoffQueryParamFields
|
|
49
|
+
> = z.nativeEnum(CreateHrisTimeoffQueryParamFields);
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export type CreateHrisTimeoffRequest$Outbound = {
|
|
53
|
+
HrisTimeoff: shared.HrisTimeoff$Outbound;
|
|
54
|
+
connection_id: string;
|
|
55
|
+
fields?: Array<string> | undefined;
|
|
56
|
+
raw?: string | undefined;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/** @internal */
|
|
60
|
+
export const CreateHrisTimeoffRequest$outboundSchema: z.ZodType<
|
|
61
|
+
CreateHrisTimeoffRequest$Outbound,
|
|
62
|
+
z.ZodTypeDef,
|
|
63
|
+
CreateHrisTimeoffRequest
|
|
64
|
+
> = z.object({
|
|
65
|
+
hrisTimeoff: shared.HrisTimeoff$outboundSchema,
|
|
66
|
+
connectionId: z.string(),
|
|
67
|
+
fields: z.array(CreateHrisTimeoffQueryParamFields$outboundSchema).optional(),
|
|
68
|
+
raw: z.string().optional(),
|
|
69
|
+
}).transform((v) => {
|
|
70
|
+
return remap$(v, {
|
|
71
|
+
hrisTimeoff: "HrisTimeoff",
|
|
72
|
+
connectionId: "connection_id",
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
export function createHrisTimeoffRequestToJSON(
|
|
77
|
+
createHrisTimeoffRequest: CreateHrisTimeoffRequest,
|
|
78
|
+
): string {
|
|
79
|
+
return JSON.stringify(
|
|
80
|
+
CreateHrisTimeoffRequest$outboundSchema.parse(createHrisTimeoffRequest),
|
|
81
|
+
);
|
|
82
|
+
}
|
|
@@ -21,9 +21,10 @@ export const CreateUcRecordingQueryParamFields = {
|
|
|
21
21
|
ContactPhone: "contact_phone",
|
|
22
22
|
UserId: "user_id",
|
|
23
23
|
Media: "media",
|
|
24
|
-
Raw: "raw",
|
|
25
24
|
UserName: "user_name",
|
|
26
25
|
UserPhone: "user_phone",
|
|
26
|
+
Type: "type",
|
|
27
|
+
Raw: "raw",
|
|
27
28
|
} as const;
|
|
28
29
|
export type CreateUcRecordingQueryParamFields = ClosedEnum<
|
|
29
30
|
typeof CreateUcRecordingQueryParamFields
|
|
@@ -17,9 +17,10 @@ export const GetUcCallQueryParamFields = {
|
|
|
17
17
|
UserId: "user_id",
|
|
18
18
|
Contacts: "contacts",
|
|
19
19
|
IsPrivate: "is_private",
|
|
20
|
-
Raw: "raw",
|
|
21
20
|
UserName: "user_name",
|
|
22
21
|
UserPhone: "user_phone",
|
|
22
|
+
Type: "type",
|
|
23
|
+
Raw: "raw",
|
|
23
24
|
} as const;
|
|
24
25
|
export type GetUcCallQueryParamFields = ClosedEnum<
|
|
25
26
|
typeof GetUcCallQueryParamFields
|
|
@@ -20,9 +20,10 @@ export const GetUcRecordingQueryParamFields = {
|
|
|
20
20
|
ContactPhone: "contact_phone",
|
|
21
21
|
UserId: "user_id",
|
|
22
22
|
Media: "media",
|
|
23
|
-
Raw: "raw",
|
|
24
23
|
UserName: "user_name",
|
|
25
24
|
UserPhone: "user_phone",
|
|
25
|
+
Type: "type",
|
|
26
|
+
Raw: "raw",
|
|
26
27
|
} as const;
|
|
27
28
|
export type GetUcRecordingQueryParamFields = ClosedEnum<
|
|
28
29
|
typeof GetUcRecordingQueryParamFields
|
|
@@ -59,6 +59,7 @@ export * from "./createhrisdevice.js";
|
|
|
59
59
|
export * from "./createhrisemployee.js";
|
|
60
60
|
export * from "./createhrisgroup.js";
|
|
61
61
|
export * from "./createhrislocation.js";
|
|
62
|
+
export * from "./createhristimeoff.js";
|
|
62
63
|
export * from "./createhristimeshift.js";
|
|
63
64
|
export * from "./createkmscomment.js";
|
|
64
65
|
export * from "./createkmspage.js";
|
|
@@ -408,6 +409,7 @@ export * from "./patchhrisdevice.js";
|
|
|
408
409
|
export * from "./patchhrisemployee.js";
|
|
409
410
|
export * from "./patchhrisgroup.js";
|
|
410
411
|
export * from "./patchhrislocation.js";
|
|
412
|
+
export * from "./patchhristimeoff.js";
|
|
411
413
|
export * from "./patchhristimeshift.js";
|
|
412
414
|
export * from "./patchkmscomment.js";
|
|
413
415
|
export * from "./patchkmspage.js";
|
|
@@ -509,6 +511,7 @@ export * from "./removehrisdevice.js";
|
|
|
509
511
|
export * from "./removehrisemployee.js";
|
|
510
512
|
export * from "./removehrisgroup.js";
|
|
511
513
|
export * from "./removehrislocation.js";
|
|
514
|
+
export * from "./removehristimeoff.js";
|
|
512
515
|
export * from "./removehristimeshift.js";
|
|
513
516
|
export * from "./removekmscomment.js";
|
|
514
517
|
export * from "./removekmspage.js";
|
|
@@ -609,6 +612,7 @@ export * from "./updatehrisdevice.js";
|
|
|
609
612
|
export * from "./updatehrisemployee.js";
|
|
610
613
|
export * from "./updatehrisgroup.js";
|
|
611
614
|
export * from "./updatehrislocation.js";
|
|
615
|
+
export * from "./updatehristimeoff.js";
|
|
612
616
|
export * from "./updatehristimeshift.js";
|
|
613
617
|
export * from "./updatekmscomment.js";
|
|
614
618
|
export * from "./updatekmspage.js";
|
|
@@ -17,9 +17,10 @@ export const ListUcCallsQueryParamFields = {
|
|
|
17
17
|
UserId: "user_id",
|
|
18
18
|
Contacts: "contacts",
|
|
19
19
|
IsPrivate: "is_private",
|
|
20
|
-
Raw: "raw",
|
|
21
20
|
UserName: "user_name",
|
|
22
21
|
UserPhone: "user_phone",
|
|
22
|
+
Type: "type",
|
|
23
|
+
Raw: "raw",
|
|
23
24
|
} as const;
|
|
24
25
|
export type ListUcCallsQueryParamFields = ClosedEnum<
|
|
25
26
|
typeof ListUcCallsQueryParamFields
|
|
@@ -20,9 +20,10 @@ export const ListUcRecordingsQueryParamFields = {
|
|
|
20
20
|
ContactPhone: "contact_phone",
|
|
21
21
|
UserId: "user_id",
|
|
22
22
|
Media: "media",
|
|
23
|
-
Raw: "raw",
|
|
24
23
|
UserName: "user_name",
|
|
25
24
|
UserPhone: "user_phone",
|
|
25
|
+
Type: "type",
|
|
26
|
+
Raw: "raw",
|
|
26
27
|
} as const;
|
|
27
28
|
export type ListUcRecordingsQueryParamFields = ClosedEnum<
|
|
28
29
|
typeof ListUcRecordingsQueryParamFields
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import * as shared from "../shared/index.js";
|
|
9
|
+
|
|
10
|
+
export const PatchHrisTimeoffQueryParamFields = {
|
|
11
|
+
Id: "id",
|
|
12
|
+
CreatedAt: "created_at",
|
|
13
|
+
UpdatedAt: "updated_at",
|
|
14
|
+
UserId: "user_id",
|
|
15
|
+
CompanyId: "company_id",
|
|
16
|
+
StartAt: "start_at",
|
|
17
|
+
EndAt: "end_at",
|
|
18
|
+
IsPaid: "is_paid",
|
|
19
|
+
Status: "status",
|
|
20
|
+
ApproverUserId: "approver_user_id",
|
|
21
|
+
ApprovedAt: "approved_at",
|
|
22
|
+
Comments: "comments",
|
|
23
|
+
Raw: "raw",
|
|
24
|
+
Reason: "reason",
|
|
25
|
+
} as const;
|
|
26
|
+
export type PatchHrisTimeoffQueryParamFields = ClosedEnum<
|
|
27
|
+
typeof PatchHrisTimeoffQueryParamFields
|
|
28
|
+
>;
|
|
29
|
+
|
|
30
|
+
export type PatchHrisTimeoffRequest = {
|
|
31
|
+
hrisTimeoff: shared.HrisTimeoff;
|
|
32
|
+
/**
|
|
33
|
+
* ID of the connection
|
|
34
|
+
*/
|
|
35
|
+
connectionId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Fields to return
|
|
38
|
+
*/
|
|
39
|
+
fields?: Array<PatchHrisTimeoffQueryParamFields> | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* ID of the Timeoff
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
/**
|
|
45
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
46
|
+
*/
|
|
47
|
+
raw?: string | undefined;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const PatchHrisTimeoffQueryParamFields$outboundSchema: z.ZodNativeEnum<
|
|
52
|
+
typeof PatchHrisTimeoffQueryParamFields
|
|
53
|
+
> = z.nativeEnum(PatchHrisTimeoffQueryParamFields);
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export type PatchHrisTimeoffRequest$Outbound = {
|
|
57
|
+
HrisTimeoff: shared.HrisTimeoff$Outbound;
|
|
58
|
+
connection_id: string;
|
|
59
|
+
fields?: Array<string> | undefined;
|
|
60
|
+
id: string;
|
|
61
|
+
raw?: string | undefined;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const PatchHrisTimeoffRequest$outboundSchema: z.ZodType<
|
|
66
|
+
PatchHrisTimeoffRequest$Outbound,
|
|
67
|
+
z.ZodTypeDef,
|
|
68
|
+
PatchHrisTimeoffRequest
|
|
69
|
+
> = z.object({
|
|
70
|
+
hrisTimeoff: shared.HrisTimeoff$outboundSchema,
|
|
71
|
+
connectionId: z.string(),
|
|
72
|
+
fields: z.array(PatchHrisTimeoffQueryParamFields$outboundSchema).optional(),
|
|
73
|
+
id: z.string(),
|
|
74
|
+
raw: z.string().optional(),
|
|
75
|
+
}).transform((v) => {
|
|
76
|
+
return remap$(v, {
|
|
77
|
+
hrisTimeoff: "HrisTimeoff",
|
|
78
|
+
connectionId: "connection_id",
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
export function patchHrisTimeoffRequestToJSON(
|
|
83
|
+
patchHrisTimeoffRequest: PatchHrisTimeoffRequest,
|
|
84
|
+
): string {
|
|
85
|
+
return JSON.stringify(
|
|
86
|
+
PatchHrisTimeoffRequest$outboundSchema.parse(patchHrisTimeoffRequest),
|
|
87
|
+
);
|
|
88
|
+
}
|
|
@@ -21,9 +21,10 @@ export const PatchUcRecordingQueryParamFields = {
|
|
|
21
21
|
ContactPhone: "contact_phone",
|
|
22
22
|
UserId: "user_id",
|
|
23
23
|
Media: "media",
|
|
24
|
-
Raw: "raw",
|
|
25
24
|
UserName: "user_name",
|
|
26
25
|
UserPhone: "user_phone",
|
|
26
|
+
Type: "type",
|
|
27
|
+
Raw: "raw",
|
|
27
28
|
} as const;
|
|
28
29
|
export type PatchUcRecordingQueryParamFields = ClosedEnum<
|
|
29
30
|
typeof PatchUcRecordingQueryParamFields
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
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 RemoveHrisTimeoffRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* ID of the connection
|
|
14
|
+
*/
|
|
15
|
+
connectionId: string;
|
|
16
|
+
/**
|
|
17
|
+
* ID of the Timeoff
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export type RemoveHrisTimeoffResponse = {
|
|
23
|
+
headers: { [k: string]: Array<string> };
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type RemoveHrisTimeoffRequest$Outbound = {
|
|
28
|
+
connection_id: string;
|
|
29
|
+
id: string;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const RemoveHrisTimeoffRequest$outboundSchema: z.ZodType<
|
|
34
|
+
RemoveHrisTimeoffRequest$Outbound,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
RemoveHrisTimeoffRequest
|
|
37
|
+
> = z.object({
|
|
38
|
+
connectionId: z.string(),
|
|
39
|
+
id: z.string(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
connectionId: "connection_id",
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export function removeHrisTimeoffRequestToJSON(
|
|
47
|
+
removeHrisTimeoffRequest: RemoveHrisTimeoffRequest,
|
|
48
|
+
): string {
|
|
49
|
+
return JSON.stringify(
|
|
50
|
+
RemoveHrisTimeoffRequest$outboundSchema.parse(removeHrisTimeoffRequest),
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const RemoveHrisTimeoffResponse$inboundSchema: z.ZodType<
|
|
56
|
+
RemoveHrisTimeoffResponse,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
unknown
|
|
59
|
+
> = z.object({
|
|
60
|
+
Headers: z.record(z.array(z.string())).default({}),
|
|
61
|
+
}).transform((v) => {
|
|
62
|
+
return remap$(v, {
|
|
63
|
+
"Headers": "headers",
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
export function removeHrisTimeoffResponseFromJSON(
|
|
68
|
+
jsonString: string,
|
|
69
|
+
): SafeParseResult<RemoveHrisTimeoffResponse, SDKValidationError> {
|
|
70
|
+
return safeParse(
|
|
71
|
+
jsonString,
|
|
72
|
+
(x) => RemoveHrisTimeoffResponse$inboundSchema.parse(JSON.parse(x)),
|
|
73
|
+
`Failed to parse 'RemoveHrisTimeoffResponse' from JSON`,
|
|
74
|
+
);
|
|
75
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import * as shared from "../shared/index.js";
|
|
9
|
+
|
|
10
|
+
export const UpdateHrisTimeoffQueryParamFields = {
|
|
11
|
+
Id: "id",
|
|
12
|
+
CreatedAt: "created_at",
|
|
13
|
+
UpdatedAt: "updated_at",
|
|
14
|
+
UserId: "user_id",
|
|
15
|
+
CompanyId: "company_id",
|
|
16
|
+
StartAt: "start_at",
|
|
17
|
+
EndAt: "end_at",
|
|
18
|
+
IsPaid: "is_paid",
|
|
19
|
+
Status: "status",
|
|
20
|
+
ApproverUserId: "approver_user_id",
|
|
21
|
+
ApprovedAt: "approved_at",
|
|
22
|
+
Comments: "comments",
|
|
23
|
+
Raw: "raw",
|
|
24
|
+
Reason: "reason",
|
|
25
|
+
} as const;
|
|
26
|
+
export type UpdateHrisTimeoffQueryParamFields = ClosedEnum<
|
|
27
|
+
typeof UpdateHrisTimeoffQueryParamFields
|
|
28
|
+
>;
|
|
29
|
+
|
|
30
|
+
export type UpdateHrisTimeoffRequest = {
|
|
31
|
+
hrisTimeoff: shared.HrisTimeoff;
|
|
32
|
+
/**
|
|
33
|
+
* ID of the connection
|
|
34
|
+
*/
|
|
35
|
+
connectionId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Fields to return
|
|
38
|
+
*/
|
|
39
|
+
fields?: Array<UpdateHrisTimeoffQueryParamFields> | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* ID of the Timeoff
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
/**
|
|
45
|
+
* Raw parameters to include in the 3rd-party request. Encoded as a URL component. eg. raw parameters: foo=bar&zoo=bar -> raw=foo%3Dbar%26zoo%3Dbar
|
|
46
|
+
*/
|
|
47
|
+
raw?: string | undefined;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const UpdateHrisTimeoffQueryParamFields$outboundSchema: z.ZodNativeEnum<
|
|
52
|
+
typeof UpdateHrisTimeoffQueryParamFields
|
|
53
|
+
> = z.nativeEnum(UpdateHrisTimeoffQueryParamFields);
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export type UpdateHrisTimeoffRequest$Outbound = {
|
|
57
|
+
HrisTimeoff: shared.HrisTimeoff$Outbound;
|
|
58
|
+
connection_id: string;
|
|
59
|
+
fields?: Array<string> | undefined;
|
|
60
|
+
id: string;
|
|
61
|
+
raw?: string | undefined;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const UpdateHrisTimeoffRequest$outboundSchema: z.ZodType<
|
|
66
|
+
UpdateHrisTimeoffRequest$Outbound,
|
|
67
|
+
z.ZodTypeDef,
|
|
68
|
+
UpdateHrisTimeoffRequest
|
|
69
|
+
> = z.object({
|
|
70
|
+
hrisTimeoff: shared.HrisTimeoff$outboundSchema,
|
|
71
|
+
connectionId: z.string(),
|
|
72
|
+
fields: z.array(UpdateHrisTimeoffQueryParamFields$outboundSchema).optional(),
|
|
73
|
+
id: z.string(),
|
|
74
|
+
raw: z.string().optional(),
|
|
75
|
+
}).transform((v) => {
|
|
76
|
+
return remap$(v, {
|
|
77
|
+
hrisTimeoff: "HrisTimeoff",
|
|
78
|
+
connectionId: "connection_id",
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
export function updateHrisTimeoffRequestToJSON(
|
|
83
|
+
updateHrisTimeoffRequest: UpdateHrisTimeoffRequest,
|
|
84
|
+
): string {
|
|
85
|
+
return JSON.stringify(
|
|
86
|
+
UpdateHrisTimeoffRequest$outboundSchema.parse(updateHrisTimeoffRequest),
|
|
87
|
+
);
|
|
88
|
+
}
|
|
@@ -21,9 +21,10 @@ export const UpdateUcRecordingQueryParamFields = {
|
|
|
21
21
|
ContactPhone: "contact_phone",
|
|
22
22
|
UserId: "user_id",
|
|
23
23
|
Media: "media",
|
|
24
|
-
Raw: "raw",
|
|
25
24
|
UserName: "user_name",
|
|
26
25
|
UserPhone: "user_phone",
|
|
26
|
+
Type: "type",
|
|
27
|
+
Raw: "raw",
|
|
27
28
|
} as const;
|
|
28
29
|
export type UpdateUcRecordingQueryParamFields = ClosedEnum<
|
|
29
30
|
typeof UpdateUcRecordingQueryParamFields
|
|
@@ -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 | undefined;
|
|
32
32
|
status?: HrisTimeoffStatus | undefined;
|
|
33
33
|
updatedAt?: Date | undefined;
|
|
34
34
|
userId?: string | undefined;
|
|
@@ -40,6 +40,12 @@ export const HrisTimeoffStatus$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = openEnums.inboundSchema(HrisTimeoffStatus);
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const HrisTimeoffStatus$outboundSchema: z.ZodType<
|
|
45
|
+
string,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
HrisTimeoffStatus
|
|
48
|
+
> = openEnums.outboundSchema(HrisTimeoffStatus);
|
|
43
49
|
|
|
44
50
|
/** @internal */
|
|
45
51
|
export const HrisTimeoff$inboundSchema: z.ZodType<
|
|
@@ -60,7 +66,8 @@ export const HrisTimeoff$inboundSchema: z.ZodType<
|
|
|
60
66
|
is_paid: z.boolean().optional(),
|
|
61
67
|
raw: z.record(z.any()).optional(),
|
|
62
68
|
reason: z.string().optional(),
|
|
63
|
-
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
69
|
+
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
70
|
+
.optional(),
|
|
64
71
|
status: HrisTimeoffStatus$inboundSchema.optional(),
|
|
65
72
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
66
73
|
.optional(),
|
|
@@ -78,7 +85,61 @@ export const HrisTimeoff$inboundSchema: z.ZodType<
|
|
|
78
85
|
"user_id": "userId",
|
|
79
86
|
});
|
|
80
87
|
});
|
|
88
|
+
/** @internal */
|
|
89
|
+
export type HrisTimeoff$Outbound = {
|
|
90
|
+
approved_at?: string | undefined;
|
|
91
|
+
approver_user_id?: string | undefined;
|
|
92
|
+
comments?: string | undefined;
|
|
93
|
+
company_id?: string | undefined;
|
|
94
|
+
created_at?: string | undefined;
|
|
95
|
+
end_at?: string | undefined;
|
|
96
|
+
id?: string | undefined;
|
|
97
|
+
is_paid?: boolean | undefined;
|
|
98
|
+
raw?: { [k: string]: any } | undefined;
|
|
99
|
+
reason?: string | undefined;
|
|
100
|
+
start_at?: string | undefined;
|
|
101
|
+
status?: string | undefined;
|
|
102
|
+
updated_at?: string | undefined;
|
|
103
|
+
user_id?: string | undefined;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const HrisTimeoff$outboundSchema: z.ZodType<
|
|
108
|
+
HrisTimeoff$Outbound,
|
|
109
|
+
z.ZodTypeDef,
|
|
110
|
+
HrisTimeoff
|
|
111
|
+
> = z.object({
|
|
112
|
+
approvedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
113
|
+
approverUserId: z.string().optional(),
|
|
114
|
+
comments: z.string().optional(),
|
|
115
|
+
companyId: z.string().optional(),
|
|
116
|
+
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
117
|
+
endAt: z.date().transform(v => v.toISOString()).optional(),
|
|
118
|
+
id: z.string().optional(),
|
|
119
|
+
isPaid: z.boolean().optional(),
|
|
120
|
+
raw: z.record(z.any()).optional(),
|
|
121
|
+
reason: z.string().optional(),
|
|
122
|
+
startAt: z.date().transform(v => v.toISOString()).optional(),
|
|
123
|
+
status: HrisTimeoffStatus$outboundSchema.optional(),
|
|
124
|
+
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
125
|
+
userId: z.string().optional(),
|
|
126
|
+
}).transform((v) => {
|
|
127
|
+
return remap$(v, {
|
|
128
|
+
approvedAt: "approved_at",
|
|
129
|
+
approverUserId: "approver_user_id",
|
|
130
|
+
companyId: "company_id",
|
|
131
|
+
createdAt: "created_at",
|
|
132
|
+
endAt: "end_at",
|
|
133
|
+
isPaid: "is_paid",
|
|
134
|
+
startAt: "start_at",
|
|
135
|
+
updatedAt: "updated_at",
|
|
136
|
+
userId: "user_id",
|
|
137
|
+
});
|
|
138
|
+
});
|
|
81
139
|
|
|
140
|
+
export function hrisTimeoffToJSON(hrisTimeoff: HrisTimeoff): string {
|
|
141
|
+
return JSON.stringify(HrisTimeoff$outboundSchema.parse(hrisTimeoff));
|
|
142
|
+
}
|
|
82
143
|
export function hrisTimeoffFromJSON(
|
|
83
144
|
jsonString: string,
|
|
84
145
|
): SafeParseResult<HrisTimeoff, SDKValidationError> {
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
10
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
12
|
import {
|
|
@@ -13,6 +15,12 @@ import {
|
|
|
13
15
|
} from "./propertyuccalltelephone.js";
|
|
14
16
|
import { UcContact, UcContact$inboundSchema } from "./uccontact.js";
|
|
15
17
|
|
|
18
|
+
export const UcCallType = {
|
|
19
|
+
Inbound: "INBOUND",
|
|
20
|
+
Outbound: "OUTBOUND",
|
|
21
|
+
} as const;
|
|
22
|
+
export type UcCallType = OpenEnum<typeof UcCallType>;
|
|
23
|
+
|
|
16
24
|
export type UcCall = {
|
|
17
25
|
contactId?: string | undefined;
|
|
18
26
|
contacts?: Array<UcContact> | undefined;
|
|
@@ -26,12 +34,20 @@ export type UcCall = {
|
|
|
26
34
|
* The telephone number called
|
|
27
35
|
*/
|
|
28
36
|
telephone?: PropertyUcCallTelephone | undefined;
|
|
37
|
+
type?: UcCallType | undefined;
|
|
29
38
|
updatedAt?: Date | undefined;
|
|
30
39
|
userId?: string | undefined;
|
|
31
40
|
userName?: string | undefined;
|
|
32
41
|
userPhone?: string | undefined;
|
|
33
42
|
};
|
|
34
43
|
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const UcCallType$inboundSchema: z.ZodType<
|
|
46
|
+
UcCallType,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
unknown
|
|
49
|
+
> = openEnums.inboundSchema(UcCallType);
|
|
50
|
+
|
|
35
51
|
/** @internal */
|
|
36
52
|
export const UcCall$inboundSchema: z.ZodType<UcCall, z.ZodTypeDef, unknown> = z
|
|
37
53
|
.object({
|
|
@@ -48,6 +64,7 @@ export const UcCall$inboundSchema: z.ZodType<UcCall, z.ZodTypeDef, unknown> = z
|
|
|
48
64
|
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
49
65
|
.optional(),
|
|
50
66
|
telephone: PropertyUcCallTelephone$inboundSchema.optional(),
|
|
67
|
+
type: UcCallType$inboundSchema.optional(),
|
|
51
68
|
updated_at: z.string().datetime({ offset: true }).transform(v =>
|
|
52
69
|
new Date(v)
|
|
53
70
|
).optional(),
|
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
8
10
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
12
|
import {
|
|
@@ -14,6 +16,12 @@ import {
|
|
|
14
16
|
UcRecordingMedia$outboundSchema,
|
|
15
17
|
} from "./ucrecordingmedia.js";
|
|
16
18
|
|
|
19
|
+
export const UcRecordingType = {
|
|
20
|
+
Inbound: "INBOUND",
|
|
21
|
+
Outbound: "OUTBOUND",
|
|
22
|
+
} as const;
|
|
23
|
+
export type UcRecordingType = OpenEnum<typeof UcRecordingType>;
|
|
24
|
+
|
|
17
25
|
export type UcRecording = {
|
|
18
26
|
callId?: string | undefined;
|
|
19
27
|
contactId?: string | undefined;
|
|
@@ -26,6 +34,7 @@ export type UcRecording = {
|
|
|
26
34
|
media?: Array<UcRecordingMedia> | undefined;
|
|
27
35
|
raw?: { [k: string]: any } | undefined;
|
|
28
36
|
startAt?: Date | undefined;
|
|
37
|
+
type?: UcRecordingType | undefined;
|
|
29
38
|
updatedAt?: Date | undefined;
|
|
30
39
|
userId?: string | undefined;
|
|
31
40
|
userName?: string | undefined;
|
|
@@ -33,6 +42,19 @@ export type UcRecording = {
|
|
|
33
42
|
webUrl?: string | undefined;
|
|
34
43
|
};
|
|
35
44
|
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const UcRecordingType$inboundSchema: z.ZodType<
|
|
47
|
+
UcRecordingType,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
unknown
|
|
50
|
+
> = openEnums.inboundSchema(UcRecordingType);
|
|
51
|
+
/** @internal */
|
|
52
|
+
export const UcRecordingType$outboundSchema: z.ZodType<
|
|
53
|
+
string,
|
|
54
|
+
z.ZodTypeDef,
|
|
55
|
+
UcRecordingType
|
|
56
|
+
> = openEnums.outboundSchema(UcRecordingType);
|
|
57
|
+
|
|
36
58
|
/** @internal */
|
|
37
59
|
export const UcRecording$inboundSchema: z.ZodType<
|
|
38
60
|
UcRecording,
|
|
@@ -54,6 +76,7 @@ export const UcRecording$inboundSchema: z.ZodType<
|
|
|
54
76
|
raw: z.record(z.any()).optional(),
|
|
55
77
|
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
56
78
|
.optional(),
|
|
79
|
+
type: UcRecordingType$inboundSchema.optional(),
|
|
57
80
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
58
81
|
.optional(),
|
|
59
82
|
user_id: z.string().optional(),
|
|
@@ -90,6 +113,7 @@ export type UcRecording$Outbound = {
|
|
|
90
113
|
media?: Array<UcRecordingMedia$Outbound> | undefined;
|
|
91
114
|
raw?: { [k: string]: any } | undefined;
|
|
92
115
|
start_at?: string | undefined;
|
|
116
|
+
type?: string | undefined;
|
|
93
117
|
updated_at?: string | undefined;
|
|
94
118
|
user_id?: string | undefined;
|
|
95
119
|
user_name?: string | undefined;
|
|
@@ -114,6 +138,7 @@ export const UcRecording$outboundSchema: z.ZodType<
|
|
|
114
138
|
media: z.array(UcRecordingMedia$outboundSchema).optional(),
|
|
115
139
|
raw: z.record(z.any()).optional(),
|
|
116
140
|
startAt: z.date().transform(v => v.toISOString()).optional(),
|
|
141
|
+
type: UcRecordingType$outboundSchema.optional(),
|
|
117
142
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
118
143
|
userId: z.string().optional(),
|
|
119
144
|
userName: z.string().optional(),
|