@unified-api/typescript-sdk 2.82.24 → 2.82.25
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/dist/commonjs/funcs/calendarCreateCalendarWebinar.d.ts +15 -0
- package/dist/commonjs/funcs/calendarCreateCalendarWebinar.d.ts.map +1 -0
- package/dist/commonjs/funcs/calendarCreateCalendarWebinar.js +122 -0
- package/dist/commonjs/funcs/calendarCreateCalendarWebinar.js.map +1 -0
- package/dist/commonjs/funcs/calendarGetCalendarWebinar.d.ts +15 -0
- package/dist/commonjs/funcs/calendarGetCalendarWebinar.d.ts.map +1 -0
- package/dist/commonjs/funcs/calendarGetCalendarWebinar.js +125 -0
- package/dist/commonjs/funcs/calendarGetCalendarWebinar.js.map +1 -0
- package/dist/commonjs/funcs/calendarListCalendarWebinars.d.ts +15 -0
- package/dist/commonjs/funcs/calendarListCalendarWebinars.d.ts.map +1 -0
- package/dist/commonjs/funcs/calendarListCalendarWebinars.js +131 -0
- package/dist/commonjs/funcs/calendarListCalendarWebinars.js.map +1 -0
- package/dist/commonjs/funcs/calendarPatchCalendarWebinar.d.ts +15 -0
- package/dist/commonjs/funcs/calendarPatchCalendarWebinar.d.ts.map +1 -0
- package/dist/commonjs/funcs/calendarPatchCalendarWebinar.js +126 -0
- package/dist/commonjs/funcs/calendarPatchCalendarWebinar.js.map +1 -0
- package/dist/commonjs/funcs/calendarRemoveCalendarWebinar.d.ts +14 -0
- package/dist/commonjs/funcs/calendarRemoveCalendarWebinar.d.ts.map +1 -0
- package/dist/commonjs/funcs/calendarRemoveCalendarWebinar.js +122 -0
- package/dist/commonjs/funcs/calendarRemoveCalendarWebinar.js.map +1 -0
- package/dist/commonjs/funcs/calendarUpdateCalendarWebinar.d.ts +15 -0
- package/dist/commonjs/funcs/calendarUpdateCalendarWebinar.d.ts.map +1 -0
- package/dist/commonjs/funcs/calendarUpdateCalendarWebinar.js +126 -0
- package/dist/commonjs/funcs/calendarUpdateCalendarWebinar.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/sdk/calendar.d.ts +24 -0
- package/dist/commonjs/sdk/calendar.d.ts.map +1 -1
- package/dist/commonjs/sdk/calendar.js +42 -0
- package/dist/commonjs/sdk/calendar.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/createcalendarwebinar.d.ts +68 -0
- package/dist/commonjs/sdk/models/operations/createcalendarwebinar.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/createcalendarwebinar.js +98 -0
- package/dist/commonjs/sdk/models/operations/createcalendarwebinar.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/getcalendarwebinar.d.ts +70 -0
- package/dist/commonjs/sdk/models/operations/getcalendarwebinar.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getcalendarwebinar.js +95 -0
- package/dist/commonjs/sdk/models/operations/getcalendarwebinar.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/index.d.ts +6 -0
- package/dist/commonjs/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/index.js +6 -0
- package/dist/commonjs/sdk/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listcalendarwebinars.d.ts +98 -0
- package/dist/commonjs/sdk/models/operations/listcalendarwebinars.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/listcalendarwebinars.js +108 -0
- package/dist/commonjs/sdk/models/operations/listcalendarwebinars.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/patchcalendarwebinar.d.ts +73 -0
- package/dist/commonjs/sdk/models/operations/patchcalendarwebinar.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/patchcalendarwebinar.js +99 -0
- package/dist/commonjs/sdk/models/operations/patchcalendarwebinar.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/removecalendarwebinar.d.ts +30 -0
- package/dist/commonjs/sdk/models/operations/removecalendarwebinar.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/removecalendarwebinar.js +68 -0
- package/dist/commonjs/sdk/models/operations/removecalendarwebinar.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/updatecalendarwebinar.d.ts +73 -0
- package/dist/commonjs/sdk/models/operations/updatecalendarwebinar.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/updatecalendarwebinar.js +99 -0
- package/dist/commonjs/sdk/models/operations/updatecalendarwebinar.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/calendarwebinar.d.ts +103 -0
- package/dist/commonjs/sdk/models/shared/calendarwebinar.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/calendarwebinar.js +194 -0
- package/dist/commonjs/sdk/models/shared/calendarwebinar.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/calendarwebinarpanelist.d.ts +38 -0
- package/dist/commonjs/sdk/models/shared/calendarwebinarpanelist.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/calendarwebinarpanelist.js +91 -0
- package/dist/commonjs/sdk/models/shared/calendarwebinarpanelist.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/calendarwebinarregistrant.d.ts +37 -0
- package/dist/commonjs/sdk/models/shared/calendarwebinarregistrant.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/calendarwebinarregistrant.js +90 -0
- package/dist/commonjs/sdk/models/shared/calendarwebinarregistrant.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts +4 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/index.js +4 -0
- package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertycalendarwebinarorganizer.d.ts +38 -0
- package/dist/commonjs/sdk/models/shared/propertycalendarwebinarorganizer.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/propertycalendarwebinarorganizer.js +89 -0
- package/dist/commonjs/sdk/models/shared/propertycalendarwebinarorganizer.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/propertyconnectionpermissions.d.ts +2 -0
- package/dist/commonjs/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyconnectionpermissions.js +2 -0
- package/dist/commonjs/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/webhook.d.ts +1 -0
- package/dist/commonjs/sdk/models/shared/webhook.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/webhook.js +1 -0
- package/dist/commonjs/sdk/models/shared/webhook.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/webinar.d.ts +30 -0
- package/dist/commonjs/sdk/webinar.d.ts.map +1 -0
- package/dist/commonjs/sdk/webinar.js +54 -0
- package/dist/commonjs/sdk/webinar.js.map +1 -0
- package/dist/esm/funcs/calendarCreateCalendarWebinar.d.ts +15 -0
- package/dist/esm/funcs/calendarCreateCalendarWebinar.d.ts.map +1 -0
- package/dist/esm/funcs/calendarCreateCalendarWebinar.js +86 -0
- package/dist/esm/funcs/calendarCreateCalendarWebinar.js.map +1 -0
- package/dist/esm/funcs/calendarGetCalendarWebinar.d.ts +15 -0
- package/dist/esm/funcs/calendarGetCalendarWebinar.d.ts.map +1 -0
- package/dist/esm/funcs/calendarGetCalendarWebinar.js +89 -0
- package/dist/esm/funcs/calendarGetCalendarWebinar.js.map +1 -0
- package/dist/esm/funcs/calendarListCalendarWebinars.d.ts +15 -0
- package/dist/esm/funcs/calendarListCalendarWebinars.d.ts.map +1 -0
- package/dist/esm/funcs/calendarListCalendarWebinars.js +95 -0
- package/dist/esm/funcs/calendarListCalendarWebinars.js.map +1 -0
- package/dist/esm/funcs/calendarPatchCalendarWebinar.d.ts +15 -0
- package/dist/esm/funcs/calendarPatchCalendarWebinar.d.ts.map +1 -0
- package/dist/esm/funcs/calendarPatchCalendarWebinar.js +90 -0
- package/dist/esm/funcs/calendarPatchCalendarWebinar.js.map +1 -0
- package/dist/esm/funcs/calendarRemoveCalendarWebinar.d.ts +14 -0
- package/dist/esm/funcs/calendarRemoveCalendarWebinar.d.ts.map +1 -0
- package/dist/esm/funcs/calendarRemoveCalendarWebinar.js +86 -0
- package/dist/esm/funcs/calendarRemoveCalendarWebinar.js.map +1 -0
- package/dist/esm/funcs/calendarUpdateCalendarWebinar.d.ts +15 -0
- package/dist/esm/funcs/calendarUpdateCalendarWebinar.d.ts.map +1 -0
- package/dist/esm/funcs/calendarUpdateCalendarWebinar.js +90 -0
- package/dist/esm/funcs/calendarUpdateCalendarWebinar.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/sdk/calendar.d.ts +24 -0
- package/dist/esm/sdk/calendar.d.ts.map +1 -1
- package/dist/esm/sdk/calendar.js +42 -0
- package/dist/esm/sdk/calendar.js.map +1 -1
- package/dist/esm/sdk/models/operations/createcalendarwebinar.d.ts +68 -0
- package/dist/esm/sdk/models/operations/createcalendarwebinar.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/createcalendarwebinar.js +61 -0
- package/dist/esm/sdk/models/operations/createcalendarwebinar.js.map +1 -0
- package/dist/esm/sdk/models/operations/getcalendarwebinar.d.ts +70 -0
- package/dist/esm/sdk/models/operations/getcalendarwebinar.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getcalendarwebinar.js +58 -0
- package/dist/esm/sdk/models/operations/getcalendarwebinar.js.map +1 -0
- package/dist/esm/sdk/models/operations/index.d.ts +6 -0
- package/dist/esm/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/index.js +6 -0
- package/dist/esm/sdk/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/models/operations/listcalendarwebinars.d.ts +98 -0
- package/dist/esm/sdk/models/operations/listcalendarwebinars.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/listcalendarwebinars.js +71 -0
- package/dist/esm/sdk/models/operations/listcalendarwebinars.js.map +1 -0
- package/dist/esm/sdk/models/operations/patchcalendarwebinar.d.ts +73 -0
- package/dist/esm/sdk/models/operations/patchcalendarwebinar.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/patchcalendarwebinar.js +62 -0
- package/dist/esm/sdk/models/operations/patchcalendarwebinar.js.map +1 -0
- package/dist/esm/sdk/models/operations/removecalendarwebinar.d.ts +30 -0
- package/dist/esm/sdk/models/operations/removecalendarwebinar.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/removecalendarwebinar.js +30 -0
- package/dist/esm/sdk/models/operations/removecalendarwebinar.js.map +1 -0
- package/dist/esm/sdk/models/operations/updatecalendarwebinar.d.ts +73 -0
- package/dist/esm/sdk/models/operations/updatecalendarwebinar.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/updatecalendarwebinar.js +62 -0
- package/dist/esm/sdk/models/operations/updatecalendarwebinar.js.map +1 -0
- package/dist/esm/sdk/models/shared/calendarwebinar.d.ts +103 -0
- package/dist/esm/sdk/models/shared/calendarwebinar.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/calendarwebinar.js +156 -0
- package/dist/esm/sdk/models/shared/calendarwebinar.js.map +1 -0
- package/dist/esm/sdk/models/shared/calendarwebinarpanelist.d.ts +38 -0
- package/dist/esm/sdk/models/shared/calendarwebinarpanelist.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/calendarwebinarpanelist.js +53 -0
- package/dist/esm/sdk/models/shared/calendarwebinarpanelist.js.map +1 -0
- package/dist/esm/sdk/models/shared/calendarwebinarregistrant.d.ts +37 -0
- package/dist/esm/sdk/models/shared/calendarwebinarregistrant.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/calendarwebinarregistrant.js +52 -0
- package/dist/esm/sdk/models/shared/calendarwebinarregistrant.js.map +1 -0
- package/dist/esm/sdk/models/shared/index.d.ts +4 -0
- package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/index.js +4 -0
- package/dist/esm/sdk/models/shared/index.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertycalendarwebinarorganizer.d.ts +38 -0
- package/dist/esm/sdk/models/shared/propertycalendarwebinarorganizer.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/propertycalendarwebinarorganizer.js +51 -0
- package/dist/esm/sdk/models/shared/propertycalendarwebinarorganizer.js.map +1 -0
- package/dist/esm/sdk/models/shared/propertyconnectionpermissions.d.ts +2 -0
- package/dist/esm/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertyconnectionpermissions.js +2 -0
- package/dist/esm/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
- package/dist/esm/sdk/models/shared/webhook.d.ts +1 -0
- package/dist/esm/sdk/models/shared/webhook.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/webhook.js +1 -0
- package/dist/esm/sdk/models/shared/webhook.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/webinar.d.ts +30 -0
- package/dist/esm/sdk/webinar.d.ts.map +1 -0
- package/dist/esm/sdk/webinar.js +50 -0
- package/dist/esm/sdk/webinar.js.map +1 -0
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/calendarCreateCalendarWebinar.ts +171 -0
- package/src/funcs/calendarGetCalendarWebinar.ts +173 -0
- package/src/funcs/calendarListCalendarWebinars.ts +180 -0
- package/src/funcs/calendarPatchCalendarWebinar.ts +175 -0
- package/src/funcs/calendarRemoveCalendarWebinar.ts +179 -0
- package/src/funcs/calendarUpdateCalendarWebinar.ts +175 -0
- package/src/lib/config.ts +2 -2
- package/src/sdk/calendar.ts +90 -0
- package/src/sdk/models/operations/createcalendarwebinar.ts +106 -0
- package/src/sdk/models/operations/getcalendarwebinar.ts +103 -0
- package/src/sdk/models/operations/index.ts +6 -0
- package/src/sdk/models/operations/listcalendarwebinars.ts +147 -0
- package/src/sdk/models/operations/patchcalendarwebinar.ts +112 -0
- package/src/sdk/models/operations/removecalendarwebinar.ts +77 -0
- package/src/sdk/models/operations/updatecalendarwebinar.ts +112 -0
- package/src/sdk/models/shared/calendarwebinar.ts +288 -0
- package/src/sdk/models/shared/calendarwebinarpanelist.ts +108 -0
- package/src/sdk/models/shared/calendarwebinarregistrant.ts +105 -0
- package/src/sdk/models/shared/index.ts +4 -0
- package/src/sdk/models/shared/propertycalendarwebinarorganizer.ts +108 -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
- package/src/sdk/webinar.ts +100 -0
|
@@ -0,0 +1,77 @@
|
|
|
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 RemoveCalendarWebinarRequest = {
|
|
12
|
+
/**
|
|
13
|
+
* ID of the connection
|
|
14
|
+
*/
|
|
15
|
+
connectionId: string;
|
|
16
|
+
/**
|
|
17
|
+
* ID of the Webinar
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export type RemoveCalendarWebinarResponse = {
|
|
23
|
+
headers: { [k: string]: Array<string> };
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type RemoveCalendarWebinarRequest$Outbound = {
|
|
28
|
+
connection_id: string;
|
|
29
|
+
id: string;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const RemoveCalendarWebinarRequest$outboundSchema: z.ZodType<
|
|
34
|
+
RemoveCalendarWebinarRequest$Outbound,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
RemoveCalendarWebinarRequest
|
|
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 removeCalendarWebinarRequestToJSON(
|
|
47
|
+
removeCalendarWebinarRequest: RemoveCalendarWebinarRequest,
|
|
48
|
+
): string {
|
|
49
|
+
return JSON.stringify(
|
|
50
|
+
RemoveCalendarWebinarRequest$outboundSchema.parse(
|
|
51
|
+
removeCalendarWebinarRequest,
|
|
52
|
+
),
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const RemoveCalendarWebinarResponse$inboundSchema: z.ZodType<
|
|
58
|
+
RemoveCalendarWebinarResponse,
|
|
59
|
+
z.ZodTypeDef,
|
|
60
|
+
unknown
|
|
61
|
+
> = z.object({
|
|
62
|
+
Headers: z.record(z.array(z.string())).default({}),
|
|
63
|
+
}).transform((v) => {
|
|
64
|
+
return remap$(v, {
|
|
65
|
+
"Headers": "headers",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
export function removeCalendarWebinarResponseFromJSON(
|
|
70
|
+
jsonString: string,
|
|
71
|
+
): SafeParseResult<RemoveCalendarWebinarResponse, SDKValidationError> {
|
|
72
|
+
return safeParse(
|
|
73
|
+
jsonString,
|
|
74
|
+
(x) => RemoveCalendarWebinarResponse$inboundSchema.parse(JSON.parse(x)),
|
|
75
|
+
`Failed to parse 'RemoveCalendarWebinarResponse' from JSON`,
|
|
76
|
+
);
|
|
77
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
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 UpdateCalendarWebinarQueryParamFields = {
|
|
11
|
+
Id: "id",
|
|
12
|
+
CreatedAt: "created_at",
|
|
13
|
+
UpdatedAt: "updated_at",
|
|
14
|
+
CalendarId: "calendar_id",
|
|
15
|
+
Subject: "subject",
|
|
16
|
+
StartAt: "start_at",
|
|
17
|
+
EndAt: "end_at",
|
|
18
|
+
Timezone: "timezone",
|
|
19
|
+
Notes: "notes",
|
|
20
|
+
Status: "status",
|
|
21
|
+
Organizer: "organizer",
|
|
22
|
+
JoinUrl: "join_url",
|
|
23
|
+
WebUrl: "web_url",
|
|
24
|
+
Panelists: "panelists",
|
|
25
|
+
Registrants: "registrants",
|
|
26
|
+
PanelistPassword: "panelist_password",
|
|
27
|
+
RegistrantPassword: "registrant_password",
|
|
28
|
+
Conference: "conference",
|
|
29
|
+
Recurrence: "recurrence",
|
|
30
|
+
Capacity: "capacity",
|
|
31
|
+
IsWebcast: "is_webcast",
|
|
32
|
+
IsEnabled: "is_enabled",
|
|
33
|
+
IsAutoApprove: "is_auto_approve",
|
|
34
|
+
RequireFirstName: "require_first_name",
|
|
35
|
+
RequireLastName: "require_last_name",
|
|
36
|
+
RequireEmail: "require_email",
|
|
37
|
+
RequireCompany: "require_company",
|
|
38
|
+
RequireJobTitle: "require_job_title",
|
|
39
|
+
RequireAddress: "require_address",
|
|
40
|
+
RequirePhone: "require_phone",
|
|
41
|
+
HasQa: "has_qa",
|
|
42
|
+
HasPolls: "has_polls",
|
|
43
|
+
HasRecording: "has_recording",
|
|
44
|
+
Raw: "raw",
|
|
45
|
+
} as const;
|
|
46
|
+
export type UpdateCalendarWebinarQueryParamFields = ClosedEnum<
|
|
47
|
+
typeof UpdateCalendarWebinarQueryParamFields
|
|
48
|
+
>;
|
|
49
|
+
|
|
50
|
+
export type UpdateCalendarWebinarRequest = {
|
|
51
|
+
calendarWebinar: shared.CalendarWebinar;
|
|
52
|
+
/**
|
|
53
|
+
* ID of the connection
|
|
54
|
+
*/
|
|
55
|
+
connectionId: string;
|
|
56
|
+
/**
|
|
57
|
+
* Fields to return
|
|
58
|
+
*/
|
|
59
|
+
fields?: Array<UpdateCalendarWebinarQueryParamFields> | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* ID of the Webinar
|
|
62
|
+
*/
|
|
63
|
+
id: string;
|
|
64
|
+
/**
|
|
65
|
+
* 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
|
|
66
|
+
*/
|
|
67
|
+
raw?: string | undefined;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const UpdateCalendarWebinarQueryParamFields$outboundSchema:
|
|
72
|
+
z.ZodNativeEnum<typeof UpdateCalendarWebinarQueryParamFields> = z.nativeEnum(
|
|
73
|
+
UpdateCalendarWebinarQueryParamFields,
|
|
74
|
+
);
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export type UpdateCalendarWebinarRequest$Outbound = {
|
|
78
|
+
CalendarWebinar: shared.CalendarWebinar$Outbound;
|
|
79
|
+
connection_id: string;
|
|
80
|
+
fields?: Array<string> | undefined;
|
|
81
|
+
id: string;
|
|
82
|
+
raw?: string | undefined;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export const UpdateCalendarWebinarRequest$outboundSchema: z.ZodType<
|
|
87
|
+
UpdateCalendarWebinarRequest$Outbound,
|
|
88
|
+
z.ZodTypeDef,
|
|
89
|
+
UpdateCalendarWebinarRequest
|
|
90
|
+
> = z.object({
|
|
91
|
+
calendarWebinar: shared.CalendarWebinar$outboundSchema,
|
|
92
|
+
connectionId: z.string(),
|
|
93
|
+
fields: z.array(UpdateCalendarWebinarQueryParamFields$outboundSchema)
|
|
94
|
+
.optional(),
|
|
95
|
+
id: z.string(),
|
|
96
|
+
raw: z.string().optional(),
|
|
97
|
+
}).transform((v) => {
|
|
98
|
+
return remap$(v, {
|
|
99
|
+
calendarWebinar: "CalendarWebinar",
|
|
100
|
+
connectionId: "connection_id",
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
export function updateCalendarWebinarRequestToJSON(
|
|
105
|
+
updateCalendarWebinarRequest: UpdateCalendarWebinarRequest,
|
|
106
|
+
): string {
|
|
107
|
+
return JSON.stringify(
|
|
108
|
+
UpdateCalendarWebinarRequest$outboundSchema.parse(
|
|
109
|
+
updateCalendarWebinarRequest,
|
|
110
|
+
),
|
|
111
|
+
);
|
|
112
|
+
}
|
|
@@ -0,0 +1,288 @@
|
|
|
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 * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
10
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
+
import {
|
|
13
|
+
CalendarConference,
|
|
14
|
+
CalendarConference$inboundSchema,
|
|
15
|
+
CalendarConference$Outbound,
|
|
16
|
+
CalendarConference$outboundSchema,
|
|
17
|
+
} from "./calendarconference.js";
|
|
18
|
+
import {
|
|
19
|
+
CalendarEventRecurrence,
|
|
20
|
+
CalendarEventRecurrence$inboundSchema,
|
|
21
|
+
CalendarEventRecurrence$Outbound,
|
|
22
|
+
CalendarEventRecurrence$outboundSchema,
|
|
23
|
+
} from "./calendareventrecurrence.js";
|
|
24
|
+
import {
|
|
25
|
+
CalendarWebinarPanelist,
|
|
26
|
+
CalendarWebinarPanelist$inboundSchema,
|
|
27
|
+
CalendarWebinarPanelist$Outbound,
|
|
28
|
+
CalendarWebinarPanelist$outboundSchema,
|
|
29
|
+
} from "./calendarwebinarpanelist.js";
|
|
30
|
+
import {
|
|
31
|
+
CalendarWebinarRegistrant,
|
|
32
|
+
CalendarWebinarRegistrant$inboundSchema,
|
|
33
|
+
CalendarWebinarRegistrant$Outbound,
|
|
34
|
+
CalendarWebinarRegistrant$outboundSchema,
|
|
35
|
+
} from "./calendarwebinarregistrant.js";
|
|
36
|
+
import {
|
|
37
|
+
PropertyCalendarWebinarOrganizer,
|
|
38
|
+
PropertyCalendarWebinarOrganizer$inboundSchema,
|
|
39
|
+
PropertyCalendarWebinarOrganizer$Outbound,
|
|
40
|
+
PropertyCalendarWebinarOrganizer$outboundSchema,
|
|
41
|
+
} from "./propertycalendarwebinarorganizer.js";
|
|
42
|
+
|
|
43
|
+
export const CalendarWebinarStatus = {
|
|
44
|
+
Canceled: "CANCELED",
|
|
45
|
+
Confirmed: "CONFIRMED",
|
|
46
|
+
Tentative: "TENTATIVE",
|
|
47
|
+
} as const;
|
|
48
|
+
export type CalendarWebinarStatus = OpenEnum<typeof CalendarWebinarStatus>;
|
|
49
|
+
|
|
50
|
+
export type CalendarWebinar = {
|
|
51
|
+
calendarId?: string | undefined;
|
|
52
|
+
capacity?: number | undefined;
|
|
53
|
+
conference?: Array<CalendarConference> | undefined;
|
|
54
|
+
createdAt?: Date | undefined;
|
|
55
|
+
endAt?: Date | undefined;
|
|
56
|
+
hasPolls?: boolean | undefined;
|
|
57
|
+
hasQa?: boolean | undefined;
|
|
58
|
+
hasRecording?: boolean | undefined;
|
|
59
|
+
id?: string | undefined;
|
|
60
|
+
isAutoApprove?: boolean | undefined;
|
|
61
|
+
isEnabled?: boolean | undefined;
|
|
62
|
+
isWebcast?: boolean | undefined;
|
|
63
|
+
joinUrl?: string | undefined;
|
|
64
|
+
notes?: string | undefined;
|
|
65
|
+
organizer?: PropertyCalendarWebinarOrganizer | undefined;
|
|
66
|
+
panelistPassword?: string | undefined;
|
|
67
|
+
panelists?: Array<CalendarWebinarPanelist> | undefined;
|
|
68
|
+
raw?: { [k: string]: any } | undefined;
|
|
69
|
+
recurrence?: Array<CalendarEventRecurrence> | undefined;
|
|
70
|
+
registrantPassword?: string | undefined;
|
|
71
|
+
registrants?: Array<CalendarWebinarRegistrant> | undefined;
|
|
72
|
+
requireAddress?: boolean | undefined;
|
|
73
|
+
requireCompany?: boolean | undefined;
|
|
74
|
+
requireEmail?: boolean | undefined;
|
|
75
|
+
requireFirstName?: boolean | undefined;
|
|
76
|
+
requireJobTitle?: boolean | undefined;
|
|
77
|
+
requireLastName?: boolean | undefined;
|
|
78
|
+
requirePhone?: boolean | undefined;
|
|
79
|
+
startAt?: Date | undefined;
|
|
80
|
+
status?: CalendarWebinarStatus | undefined;
|
|
81
|
+
subject?: string | undefined;
|
|
82
|
+
timezone?: string | undefined;
|
|
83
|
+
updatedAt?: Date | undefined;
|
|
84
|
+
webUrl?: string | undefined;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/** @internal */
|
|
88
|
+
export const CalendarWebinarStatus$inboundSchema: z.ZodType<
|
|
89
|
+
CalendarWebinarStatus,
|
|
90
|
+
z.ZodTypeDef,
|
|
91
|
+
unknown
|
|
92
|
+
> = openEnums.inboundSchema(CalendarWebinarStatus);
|
|
93
|
+
/** @internal */
|
|
94
|
+
export const CalendarWebinarStatus$outboundSchema: z.ZodType<
|
|
95
|
+
string,
|
|
96
|
+
z.ZodTypeDef,
|
|
97
|
+
CalendarWebinarStatus
|
|
98
|
+
> = openEnums.outboundSchema(CalendarWebinarStatus);
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export const CalendarWebinar$inboundSchema: z.ZodType<
|
|
102
|
+
CalendarWebinar,
|
|
103
|
+
z.ZodTypeDef,
|
|
104
|
+
unknown
|
|
105
|
+
> = z.object({
|
|
106
|
+
calendar_id: z.string().optional(),
|
|
107
|
+
capacity: z.number().optional(),
|
|
108
|
+
conference: z.array(CalendarConference$inboundSchema).optional(),
|
|
109
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
110
|
+
.optional(),
|
|
111
|
+
end_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
112
|
+
.optional(),
|
|
113
|
+
has_polls: z.boolean().optional(),
|
|
114
|
+
has_qa: z.boolean().optional(),
|
|
115
|
+
has_recording: z.boolean().optional(),
|
|
116
|
+
id: z.string().optional(),
|
|
117
|
+
is_auto_approve: z.boolean().optional(),
|
|
118
|
+
is_enabled: z.boolean().optional(),
|
|
119
|
+
is_webcast: z.boolean().optional(),
|
|
120
|
+
join_url: z.string().optional(),
|
|
121
|
+
notes: z.string().optional(),
|
|
122
|
+
organizer: PropertyCalendarWebinarOrganizer$inboundSchema.optional(),
|
|
123
|
+
panelist_password: z.string().optional(),
|
|
124
|
+
panelists: z.array(CalendarWebinarPanelist$inboundSchema).optional(),
|
|
125
|
+
raw: z.record(z.any()).optional(),
|
|
126
|
+
recurrence: z.array(CalendarEventRecurrence$inboundSchema).optional(),
|
|
127
|
+
registrant_password: z.string().optional(),
|
|
128
|
+
registrants: z.array(CalendarWebinarRegistrant$inboundSchema).optional(),
|
|
129
|
+
require_address: z.boolean().optional(),
|
|
130
|
+
require_company: z.boolean().optional(),
|
|
131
|
+
require_email: z.boolean().optional(),
|
|
132
|
+
require_first_name: z.boolean().optional(),
|
|
133
|
+
require_job_title: z.boolean().optional(),
|
|
134
|
+
require_last_name: z.boolean().optional(),
|
|
135
|
+
require_phone: z.boolean().optional(),
|
|
136
|
+
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
137
|
+
.optional(),
|
|
138
|
+
status: CalendarWebinarStatus$inboundSchema.optional(),
|
|
139
|
+
subject: z.string().optional(),
|
|
140
|
+
timezone: z.string().optional(),
|
|
141
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
142
|
+
.optional(),
|
|
143
|
+
web_url: z.string().optional(),
|
|
144
|
+
}).transform((v) => {
|
|
145
|
+
return remap$(v, {
|
|
146
|
+
"calendar_id": "calendarId",
|
|
147
|
+
"created_at": "createdAt",
|
|
148
|
+
"end_at": "endAt",
|
|
149
|
+
"has_polls": "hasPolls",
|
|
150
|
+
"has_qa": "hasQa",
|
|
151
|
+
"has_recording": "hasRecording",
|
|
152
|
+
"is_auto_approve": "isAutoApprove",
|
|
153
|
+
"is_enabled": "isEnabled",
|
|
154
|
+
"is_webcast": "isWebcast",
|
|
155
|
+
"join_url": "joinUrl",
|
|
156
|
+
"panelist_password": "panelistPassword",
|
|
157
|
+
"registrant_password": "registrantPassword",
|
|
158
|
+
"require_address": "requireAddress",
|
|
159
|
+
"require_company": "requireCompany",
|
|
160
|
+
"require_email": "requireEmail",
|
|
161
|
+
"require_first_name": "requireFirstName",
|
|
162
|
+
"require_job_title": "requireJobTitle",
|
|
163
|
+
"require_last_name": "requireLastName",
|
|
164
|
+
"require_phone": "requirePhone",
|
|
165
|
+
"start_at": "startAt",
|
|
166
|
+
"updated_at": "updatedAt",
|
|
167
|
+
"web_url": "webUrl",
|
|
168
|
+
});
|
|
169
|
+
});
|
|
170
|
+
/** @internal */
|
|
171
|
+
export type CalendarWebinar$Outbound = {
|
|
172
|
+
calendar_id?: string | undefined;
|
|
173
|
+
capacity?: number | undefined;
|
|
174
|
+
conference?: Array<CalendarConference$Outbound> | undefined;
|
|
175
|
+
created_at?: string | undefined;
|
|
176
|
+
end_at?: string | undefined;
|
|
177
|
+
has_polls?: boolean | undefined;
|
|
178
|
+
has_qa?: boolean | undefined;
|
|
179
|
+
has_recording?: boolean | undefined;
|
|
180
|
+
id?: string | undefined;
|
|
181
|
+
is_auto_approve?: boolean | undefined;
|
|
182
|
+
is_enabled?: boolean | undefined;
|
|
183
|
+
is_webcast?: boolean | undefined;
|
|
184
|
+
join_url?: string | undefined;
|
|
185
|
+
notes?: string | undefined;
|
|
186
|
+
organizer?: PropertyCalendarWebinarOrganizer$Outbound | undefined;
|
|
187
|
+
panelist_password?: string | undefined;
|
|
188
|
+
panelists?: Array<CalendarWebinarPanelist$Outbound> | undefined;
|
|
189
|
+
raw?: { [k: string]: any } | undefined;
|
|
190
|
+
recurrence?: Array<CalendarEventRecurrence$Outbound> | undefined;
|
|
191
|
+
registrant_password?: string | undefined;
|
|
192
|
+
registrants?: Array<CalendarWebinarRegistrant$Outbound> | undefined;
|
|
193
|
+
require_address?: boolean | undefined;
|
|
194
|
+
require_company?: boolean | undefined;
|
|
195
|
+
require_email?: boolean | undefined;
|
|
196
|
+
require_first_name?: boolean | undefined;
|
|
197
|
+
require_job_title?: boolean | undefined;
|
|
198
|
+
require_last_name?: boolean | undefined;
|
|
199
|
+
require_phone?: boolean | undefined;
|
|
200
|
+
start_at?: string | undefined;
|
|
201
|
+
status?: string | undefined;
|
|
202
|
+
subject?: string | undefined;
|
|
203
|
+
timezone?: string | undefined;
|
|
204
|
+
updated_at?: string | undefined;
|
|
205
|
+
web_url?: string | undefined;
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
/** @internal */
|
|
209
|
+
export const CalendarWebinar$outboundSchema: z.ZodType<
|
|
210
|
+
CalendarWebinar$Outbound,
|
|
211
|
+
z.ZodTypeDef,
|
|
212
|
+
CalendarWebinar
|
|
213
|
+
> = z.object({
|
|
214
|
+
calendarId: z.string().optional(),
|
|
215
|
+
capacity: z.number().optional(),
|
|
216
|
+
conference: z.array(CalendarConference$outboundSchema).optional(),
|
|
217
|
+
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
218
|
+
endAt: z.date().transform(v => v.toISOString()).optional(),
|
|
219
|
+
hasPolls: z.boolean().optional(),
|
|
220
|
+
hasQa: z.boolean().optional(),
|
|
221
|
+
hasRecording: z.boolean().optional(),
|
|
222
|
+
id: z.string().optional(),
|
|
223
|
+
isAutoApprove: z.boolean().optional(),
|
|
224
|
+
isEnabled: z.boolean().optional(),
|
|
225
|
+
isWebcast: z.boolean().optional(),
|
|
226
|
+
joinUrl: z.string().optional(),
|
|
227
|
+
notes: z.string().optional(),
|
|
228
|
+
organizer: PropertyCalendarWebinarOrganizer$outboundSchema.optional(),
|
|
229
|
+
panelistPassword: z.string().optional(),
|
|
230
|
+
panelists: z.array(CalendarWebinarPanelist$outboundSchema).optional(),
|
|
231
|
+
raw: z.record(z.any()).optional(),
|
|
232
|
+
recurrence: z.array(CalendarEventRecurrence$outboundSchema).optional(),
|
|
233
|
+
registrantPassword: z.string().optional(),
|
|
234
|
+
registrants: z.array(CalendarWebinarRegistrant$outboundSchema).optional(),
|
|
235
|
+
requireAddress: z.boolean().optional(),
|
|
236
|
+
requireCompany: z.boolean().optional(),
|
|
237
|
+
requireEmail: z.boolean().optional(),
|
|
238
|
+
requireFirstName: z.boolean().optional(),
|
|
239
|
+
requireJobTitle: z.boolean().optional(),
|
|
240
|
+
requireLastName: z.boolean().optional(),
|
|
241
|
+
requirePhone: z.boolean().optional(),
|
|
242
|
+
startAt: z.date().transform(v => v.toISOString()).optional(),
|
|
243
|
+
status: CalendarWebinarStatus$outboundSchema.optional(),
|
|
244
|
+
subject: z.string().optional(),
|
|
245
|
+
timezone: z.string().optional(),
|
|
246
|
+
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
247
|
+
webUrl: z.string().optional(),
|
|
248
|
+
}).transform((v) => {
|
|
249
|
+
return remap$(v, {
|
|
250
|
+
calendarId: "calendar_id",
|
|
251
|
+
createdAt: "created_at",
|
|
252
|
+
endAt: "end_at",
|
|
253
|
+
hasPolls: "has_polls",
|
|
254
|
+
hasQa: "has_qa",
|
|
255
|
+
hasRecording: "has_recording",
|
|
256
|
+
isAutoApprove: "is_auto_approve",
|
|
257
|
+
isEnabled: "is_enabled",
|
|
258
|
+
isWebcast: "is_webcast",
|
|
259
|
+
joinUrl: "join_url",
|
|
260
|
+
panelistPassword: "panelist_password",
|
|
261
|
+
registrantPassword: "registrant_password",
|
|
262
|
+
requireAddress: "require_address",
|
|
263
|
+
requireCompany: "require_company",
|
|
264
|
+
requireEmail: "require_email",
|
|
265
|
+
requireFirstName: "require_first_name",
|
|
266
|
+
requireJobTitle: "require_job_title",
|
|
267
|
+
requireLastName: "require_last_name",
|
|
268
|
+
requirePhone: "require_phone",
|
|
269
|
+
startAt: "start_at",
|
|
270
|
+
updatedAt: "updated_at",
|
|
271
|
+
webUrl: "web_url",
|
|
272
|
+
});
|
|
273
|
+
});
|
|
274
|
+
|
|
275
|
+
export function calendarWebinarToJSON(
|
|
276
|
+
calendarWebinar: CalendarWebinar,
|
|
277
|
+
): string {
|
|
278
|
+
return JSON.stringify(CalendarWebinar$outboundSchema.parse(calendarWebinar));
|
|
279
|
+
}
|
|
280
|
+
export function calendarWebinarFromJSON(
|
|
281
|
+
jsonString: string,
|
|
282
|
+
): SafeParseResult<CalendarWebinar, SDKValidationError> {
|
|
283
|
+
return safeParse(
|
|
284
|
+
jsonString,
|
|
285
|
+
(x) => CalendarWebinar$inboundSchema.parse(JSON.parse(x)),
|
|
286
|
+
`Failed to parse 'CalendarWebinar' from JSON`,
|
|
287
|
+
);
|
|
288
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
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 * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
10
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
+
|
|
13
|
+
export const CalendarWebinarPanelistStatus = {
|
|
14
|
+
Accepted: "ACCEPTED",
|
|
15
|
+
Rejected: "REJECTED",
|
|
16
|
+
Tentative: "TENTATIVE",
|
|
17
|
+
} as const;
|
|
18
|
+
export type CalendarWebinarPanelistStatus = OpenEnum<
|
|
19
|
+
typeof CalendarWebinarPanelistStatus
|
|
20
|
+
>;
|
|
21
|
+
|
|
22
|
+
export type CalendarWebinarPanelist = {
|
|
23
|
+
email?: string | undefined;
|
|
24
|
+
isRequired?: boolean | undefined;
|
|
25
|
+
joinPassword?: string | undefined;
|
|
26
|
+
joinUrl?: string | undefined;
|
|
27
|
+
name?: string | undefined;
|
|
28
|
+
status?: CalendarWebinarPanelistStatus | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const CalendarWebinarPanelistStatus$inboundSchema: z.ZodType<
|
|
33
|
+
CalendarWebinarPanelistStatus,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
unknown
|
|
36
|
+
> = openEnums.inboundSchema(CalendarWebinarPanelistStatus);
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const CalendarWebinarPanelistStatus$outboundSchema: z.ZodType<
|
|
39
|
+
string,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
CalendarWebinarPanelistStatus
|
|
42
|
+
> = openEnums.outboundSchema(CalendarWebinarPanelistStatus);
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const CalendarWebinarPanelist$inboundSchema: z.ZodType<
|
|
46
|
+
CalendarWebinarPanelist,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
unknown
|
|
49
|
+
> = z.object({
|
|
50
|
+
email: z.string().optional(),
|
|
51
|
+
is_required: z.boolean().optional(),
|
|
52
|
+
join_password: z.string().optional(),
|
|
53
|
+
join_url: z.string().optional(),
|
|
54
|
+
name: z.string().optional(),
|
|
55
|
+
status: CalendarWebinarPanelistStatus$inboundSchema.optional(),
|
|
56
|
+
}).transform((v) => {
|
|
57
|
+
return remap$(v, {
|
|
58
|
+
"is_required": "isRequired",
|
|
59
|
+
"join_password": "joinPassword",
|
|
60
|
+
"join_url": "joinUrl",
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
/** @internal */
|
|
64
|
+
export type CalendarWebinarPanelist$Outbound = {
|
|
65
|
+
email?: string | undefined;
|
|
66
|
+
is_required?: boolean | undefined;
|
|
67
|
+
join_password?: string | undefined;
|
|
68
|
+
join_url?: string | undefined;
|
|
69
|
+
name?: string | undefined;
|
|
70
|
+
status?: string | undefined;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export const CalendarWebinarPanelist$outboundSchema: z.ZodType<
|
|
75
|
+
CalendarWebinarPanelist$Outbound,
|
|
76
|
+
z.ZodTypeDef,
|
|
77
|
+
CalendarWebinarPanelist
|
|
78
|
+
> = z.object({
|
|
79
|
+
email: z.string().optional(),
|
|
80
|
+
isRequired: z.boolean().optional(),
|
|
81
|
+
joinPassword: z.string().optional(),
|
|
82
|
+
joinUrl: z.string().optional(),
|
|
83
|
+
name: z.string().optional(),
|
|
84
|
+
status: CalendarWebinarPanelistStatus$outboundSchema.optional(),
|
|
85
|
+
}).transform((v) => {
|
|
86
|
+
return remap$(v, {
|
|
87
|
+
isRequired: "is_required",
|
|
88
|
+
joinPassword: "join_password",
|
|
89
|
+
joinUrl: "join_url",
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
export function calendarWebinarPanelistToJSON(
|
|
94
|
+
calendarWebinarPanelist: CalendarWebinarPanelist,
|
|
95
|
+
): string {
|
|
96
|
+
return JSON.stringify(
|
|
97
|
+
CalendarWebinarPanelist$outboundSchema.parse(calendarWebinarPanelist),
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
export function calendarWebinarPanelistFromJSON(
|
|
101
|
+
jsonString: string,
|
|
102
|
+
): SafeParseResult<CalendarWebinarPanelist, SDKValidationError> {
|
|
103
|
+
return safeParse(
|
|
104
|
+
jsonString,
|
|
105
|
+
(x) => CalendarWebinarPanelist$inboundSchema.parse(JSON.parse(x)),
|
|
106
|
+
`Failed to parse 'CalendarWebinarPanelist' from JSON`,
|
|
107
|
+
);
|
|
108
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
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 * as openEnums from "../../types/enums.js";
|
|
9
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
10
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
+
|
|
13
|
+
export const RegistrationStatus = {
|
|
14
|
+
Pending: "PENDING",
|
|
15
|
+
Approved: "APPROVED",
|
|
16
|
+
Rejected: "REJECTED",
|
|
17
|
+
Cancelled: "CANCELLED",
|
|
18
|
+
} as const;
|
|
19
|
+
export type RegistrationStatus = OpenEnum<typeof RegistrationStatus>;
|
|
20
|
+
|
|
21
|
+
export type CalendarWebinarRegistrant = {
|
|
22
|
+
email?: string | undefined;
|
|
23
|
+
name?: string | undefined;
|
|
24
|
+
registeredAt?: Date | undefined;
|
|
25
|
+
registrationReference?: string | undefined;
|
|
26
|
+
registrationStatus?: RegistrationStatus | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const RegistrationStatus$inboundSchema: z.ZodType<
|
|
31
|
+
RegistrationStatus,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
unknown
|
|
34
|
+
> = openEnums.inboundSchema(RegistrationStatus);
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const RegistrationStatus$outboundSchema: z.ZodType<
|
|
37
|
+
string,
|
|
38
|
+
z.ZodTypeDef,
|
|
39
|
+
RegistrationStatus
|
|
40
|
+
> = openEnums.outboundSchema(RegistrationStatus);
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const CalendarWebinarRegistrant$inboundSchema: z.ZodType<
|
|
44
|
+
CalendarWebinarRegistrant,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
unknown
|
|
47
|
+
> = z.object({
|
|
48
|
+
email: z.string().optional(),
|
|
49
|
+
name: z.string().optional(),
|
|
50
|
+
registered_at: z.string().datetime({ offset: true }).transform(v =>
|
|
51
|
+
new Date(v)
|
|
52
|
+
).optional(),
|
|
53
|
+
registration_reference: z.string().optional(),
|
|
54
|
+
registration_status: RegistrationStatus$inboundSchema.optional(),
|
|
55
|
+
}).transform((v) => {
|
|
56
|
+
return remap$(v, {
|
|
57
|
+
"registered_at": "registeredAt",
|
|
58
|
+
"registration_reference": "registrationReference",
|
|
59
|
+
"registration_status": "registrationStatus",
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
/** @internal */
|
|
63
|
+
export type CalendarWebinarRegistrant$Outbound = {
|
|
64
|
+
email?: string | undefined;
|
|
65
|
+
name?: string | undefined;
|
|
66
|
+
registered_at?: string | undefined;
|
|
67
|
+
registration_reference?: string | undefined;
|
|
68
|
+
registration_status?: string | undefined;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const CalendarWebinarRegistrant$outboundSchema: z.ZodType<
|
|
73
|
+
CalendarWebinarRegistrant$Outbound,
|
|
74
|
+
z.ZodTypeDef,
|
|
75
|
+
CalendarWebinarRegistrant
|
|
76
|
+
> = z.object({
|
|
77
|
+
email: z.string().optional(),
|
|
78
|
+
name: z.string().optional(),
|
|
79
|
+
registeredAt: z.date().transform(v => v.toISOString()).optional(),
|
|
80
|
+
registrationReference: z.string().optional(),
|
|
81
|
+
registrationStatus: RegistrationStatus$outboundSchema.optional(),
|
|
82
|
+
}).transform((v) => {
|
|
83
|
+
return remap$(v, {
|
|
84
|
+
registeredAt: "registered_at",
|
|
85
|
+
registrationReference: "registration_reference",
|
|
86
|
+
registrationStatus: "registration_status",
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
export function calendarWebinarRegistrantToJSON(
|
|
91
|
+
calendarWebinarRegistrant: CalendarWebinarRegistrant,
|
|
92
|
+
): string {
|
|
93
|
+
return JSON.stringify(
|
|
94
|
+
CalendarWebinarRegistrant$outboundSchema.parse(calendarWebinarRegistrant),
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
export function calendarWebinarRegistrantFromJSON(
|
|
98
|
+
jsonString: string,
|
|
99
|
+
): SafeParseResult<CalendarWebinarRegistrant, SDKValidationError> {
|
|
100
|
+
return safeParse(
|
|
101
|
+
jsonString,
|
|
102
|
+
(x) => CalendarWebinarRegistrant$inboundSchema.parse(JSON.parse(x)),
|
|
103
|
+
`Failed to parse 'CalendarWebinarRegistrant' from JSON`,
|
|
104
|
+
);
|
|
105
|
+
}
|