@unified-api/typescript-sdk 2.42.0 → 2.46.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 +2 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +6 -2
- package/lib/config.js.map +1 -1
- package/package.json +1 -1
- package/sdk/models/shared/accountingaccount.d.ts +6 -23
- package/sdk/models/shared/accountingaccount.d.ts.map +1 -1
- package/sdk/models/shared/accountingaccount.js +3 -28
- package/sdk/models/shared/accountingaccount.js.map +1 -1
- package/sdk/models/shared/accountingcontact.d.ts +6 -23
- package/sdk/models/shared/accountingcontact.d.ts.map +1 -1
- package/sdk/models/shared/accountingcontact.js +3 -26
- package/sdk/models/shared/accountingcontact.js.map +1 -1
- package/sdk/models/shared/accountinginvoice.d.ts +6 -23
- package/sdk/models/shared/accountinginvoice.d.ts.map +1 -1
- package/sdk/models/shared/accountinginvoice.js +3 -26
- package/sdk/models/shared/accountinginvoice.js.map +1 -1
- package/sdk/models/shared/accountingjournal.d.ts +6 -23
- package/sdk/models/shared/accountingjournal.d.ts.map +1 -1
- package/sdk/models/shared/accountingjournal.js +3 -26
- package/sdk/models/shared/accountingjournal.js.map +1 -1
- package/sdk/models/shared/accountingorder.d.ts +6 -23
- package/sdk/models/shared/accountingorder.d.ts.map +1 -1
- package/sdk/models/shared/accountingorder.js +3 -26
- package/sdk/models/shared/accountingorder.js.map +1 -1
- package/sdk/models/shared/accountingorganization.d.ts +6 -23
- package/sdk/models/shared/accountingorganization.d.ts.map +1 -1
- package/sdk/models/shared/accountingorganization.js +3 -26
- package/sdk/models/shared/accountingorganization.js.map +1 -1
- package/sdk/models/shared/accountingreport.d.ts +6 -23
- package/sdk/models/shared/accountingreport.d.ts.map +1 -1
- package/sdk/models/shared/accountingreport.js +3 -26
- package/sdk/models/shared/accountingreport.js.map +1 -1
- package/sdk/models/shared/accountingtaxrate.d.ts +6 -23
- package/sdk/models/shared/accountingtaxrate.d.ts.map +1 -1
- package/sdk/models/shared/accountingtaxrate.js +3 -26
- package/sdk/models/shared/accountingtaxrate.js.map +1 -1
- package/sdk/models/shared/accountingtransaction.d.ts +6 -23
- package/sdk/models/shared/accountingtransaction.d.ts.map +1 -1
- package/sdk/models/shared/accountingtransaction.js +3 -26
- package/sdk/models/shared/accountingtransaction.js.map +1 -1
- package/sdk/models/shared/atsactivity.d.ts +6 -23
- package/sdk/models/shared/atsactivity.d.ts.map +1 -1
- package/sdk/models/shared/atsactivity.js +3 -26
- package/sdk/models/shared/atsactivity.js.map +1 -1
- package/sdk/models/shared/atsapplication.d.ts +6 -23
- package/sdk/models/shared/atsapplication.d.ts.map +1 -1
- package/sdk/models/shared/atsapplication.js +3 -26
- package/sdk/models/shared/atsapplication.js.map +1 -1
- package/sdk/models/shared/atscandidate.d.ts +6 -23
- package/sdk/models/shared/atscandidate.d.ts.map +1 -1
- package/sdk/models/shared/atscandidate.js +3 -26
- package/sdk/models/shared/atscandidate.js.map +1 -1
- package/sdk/models/shared/atscompany.d.ts +6 -23
- package/sdk/models/shared/atscompany.d.ts.map +1 -1
- package/sdk/models/shared/atscompany.js +3 -26
- package/sdk/models/shared/atscompany.js.map +1 -1
- package/sdk/models/shared/atsdocument.d.ts +6 -23
- package/sdk/models/shared/atsdocument.d.ts.map +1 -1
- package/sdk/models/shared/atsdocument.js +3 -26
- package/sdk/models/shared/atsdocument.js.map +1 -1
- package/sdk/models/shared/atsinterview.d.ts +6 -23
- package/sdk/models/shared/atsinterview.d.ts.map +1 -1
- package/sdk/models/shared/atsinterview.js +3 -26
- package/sdk/models/shared/atsinterview.js.map +1 -1
- package/sdk/models/shared/atsjob.d.ts +6 -23
- package/sdk/models/shared/atsjob.d.ts.map +1 -1
- package/sdk/models/shared/atsjob.js +3 -26
- package/sdk/models/shared/atsjob.js.map +1 -1
- package/sdk/models/shared/atsoffer.d.ts +6 -23
- package/sdk/models/shared/atsoffer.d.ts.map +1 -1
- package/sdk/models/shared/atsoffer.js +3 -26
- package/sdk/models/shared/atsoffer.js.map +1 -1
- package/sdk/models/shared/atsscorecard.d.ts +6 -23
- package/sdk/models/shared/atsscorecard.d.ts.map +1 -1
- package/sdk/models/shared/atsscorecard.js +3 -26
- package/sdk/models/shared/atsscorecard.js.map +1 -1
- package/sdk/models/shared/atsstatus.d.ts +6 -23
- package/sdk/models/shared/atsstatus.d.ts.map +1 -1
- package/sdk/models/shared/atsstatus.js +3 -26
- package/sdk/models/shared/atsstatus.js.map +1 -1
- package/sdk/models/shared/calendarbusy.d.ts +6 -23
- package/sdk/models/shared/calendarbusy.d.ts.map +1 -1
- package/sdk/models/shared/calendarbusy.js +3 -26
- package/sdk/models/shared/calendarbusy.js.map +1 -1
- package/sdk/models/shared/calendarcalendar.d.ts +6 -23
- package/sdk/models/shared/calendarcalendar.d.ts.map +1 -1
- package/sdk/models/shared/calendarcalendar.js +3 -26
- package/sdk/models/shared/calendarcalendar.js.map +1 -1
- package/sdk/models/shared/calendarevent.d.ts +6 -23
- package/sdk/models/shared/calendarevent.d.ts.map +1 -1
- package/sdk/models/shared/calendarevent.js +3 -26
- package/sdk/models/shared/calendarevent.js.map +1 -1
- package/sdk/models/shared/calendarlink.d.ts +6 -23
- package/sdk/models/shared/calendarlink.d.ts.map +1 -1
- package/sdk/models/shared/calendarlink.js +3 -26
- package/sdk/models/shared/calendarlink.js.map +1 -1
- package/sdk/models/shared/calendarrecording.d.ts +6 -23
- package/sdk/models/shared/calendarrecording.d.ts.map +1 -1
- package/sdk/models/shared/calendarrecording.js +3 -26
- package/sdk/models/shared/calendarrecording.js.map +1 -1
- package/sdk/models/shared/commercecollection.d.ts +6 -23
- package/sdk/models/shared/commercecollection.d.ts.map +1 -1
- package/sdk/models/shared/commercecollection.js +3 -26
- package/sdk/models/shared/commercecollection.js.map +1 -1
- package/sdk/models/shared/commerceinventory.d.ts +6 -23
- package/sdk/models/shared/commerceinventory.d.ts.map +1 -1
- package/sdk/models/shared/commerceinventory.js +3 -26
- package/sdk/models/shared/commerceinventory.js.map +1 -1
- package/sdk/models/shared/commerceitem.d.ts +6 -23
- package/sdk/models/shared/commerceitem.d.ts.map +1 -1
- package/sdk/models/shared/commerceitem.js +3 -26
- package/sdk/models/shared/commerceitem.js.map +1 -1
- package/sdk/models/shared/commercelocation.d.ts +6 -23
- package/sdk/models/shared/commercelocation.d.ts.map +1 -1
- package/sdk/models/shared/commercelocation.js +3 -26
- package/sdk/models/shared/commercelocation.js.map +1 -1
- package/sdk/models/shared/crmcompany.d.ts +6 -23
- package/sdk/models/shared/crmcompany.d.ts.map +1 -1
- package/sdk/models/shared/crmcompany.js +3 -26
- package/sdk/models/shared/crmcompany.js.map +1 -1
- package/sdk/models/shared/crmcontact.d.ts +6 -23
- package/sdk/models/shared/crmcontact.d.ts.map +1 -1
- package/sdk/models/shared/crmcontact.js +3 -26
- package/sdk/models/shared/crmcontact.js.map +1 -1
- package/sdk/models/shared/crmdeal.d.ts +6 -23
- package/sdk/models/shared/crmdeal.d.ts.map +1 -1
- package/sdk/models/shared/crmdeal.js +3 -26
- package/sdk/models/shared/crmdeal.js.map +1 -1
- package/sdk/models/shared/crmevent.d.ts +6 -23
- package/sdk/models/shared/crmevent.d.ts.map +1 -1
- package/sdk/models/shared/crmevent.js +3 -26
- package/sdk/models/shared/crmevent.js.map +1 -1
- package/sdk/models/shared/crmlead.d.ts +6 -23
- package/sdk/models/shared/crmlead.d.ts.map +1 -1
- package/sdk/models/shared/crmlead.js +3 -26
- package/sdk/models/shared/crmlead.js.map +1 -1
- package/sdk/models/shared/crmpipeline.d.ts +6 -23
- package/sdk/models/shared/crmpipeline.d.ts.map +1 -1
- package/sdk/models/shared/crmpipeline.js +3 -26
- package/sdk/models/shared/crmpipeline.js.map +1 -1
- package/sdk/models/shared/hriscompany.d.ts +6 -23
- package/sdk/models/shared/hriscompany.d.ts.map +1 -1
- package/sdk/models/shared/hriscompany.js +3 -26
- package/sdk/models/shared/hriscompany.js.map +1 -1
- package/sdk/models/shared/hrisemployee.d.ts +6 -23
- package/sdk/models/shared/hrisemployee.d.ts.map +1 -1
- package/sdk/models/shared/hrisemployee.js +3 -26
- package/sdk/models/shared/hrisemployee.js.map +1 -1
- package/sdk/models/shared/hrisgroup.d.ts +6 -23
- package/sdk/models/shared/hrisgroup.d.ts.map +1 -1
- package/sdk/models/shared/hrisgroup.js +3 -26
- package/sdk/models/shared/hrisgroup.js.map +1 -1
- package/sdk/models/shared/hrislocation.d.ts +6 -23
- package/sdk/models/shared/hrislocation.d.ts.map +1 -1
- package/sdk/models/shared/hrislocation.js +3 -26
- package/sdk/models/shared/hrislocation.js.map +1 -1
- package/sdk/models/shared/hrispayslip.d.ts +6 -23
- package/sdk/models/shared/hrispayslip.d.ts.map +1 -1
- package/sdk/models/shared/hrispayslip.js +3 -26
- package/sdk/models/shared/hrispayslip.js.map +1 -1
- package/sdk/models/shared/hristimeoff.d.ts +6 -23
- package/sdk/models/shared/hristimeoff.d.ts.map +1 -1
- package/sdk/models/shared/hristimeoff.js +3 -26
- package/sdk/models/shared/hristimeoff.js.map +1 -1
- package/sdk/models/shared/metadatametadata.d.ts +6 -23
- package/sdk/models/shared/metadatametadata.d.ts.map +1 -1
- package/sdk/models/shared/metadatametadata.js +3 -26
- package/sdk/models/shared/metadatametadata.js.map +1 -1
- package/src/lib/config.ts +6 -2
- package/src/sdk/models/shared/accountingaccount.ts +4 -44
- package/src/sdk/models/shared/accountingcontact.ts +4 -54
- package/src/sdk/models/shared/accountinginvoice.ts +4 -54
- package/src/sdk/models/shared/accountingjournal.ts +4 -54
- package/src/sdk/models/shared/accountingorder.ts +4 -54
- package/src/sdk/models/shared/accountingorganization.ts +4 -54
- package/src/sdk/models/shared/accountingreport.ts +4 -54
- package/src/sdk/models/shared/accountingtaxrate.ts +4 -54
- package/src/sdk/models/shared/accountingtransaction.ts +4 -54
- package/src/sdk/models/shared/atsactivity.ts +4 -50
- package/src/sdk/models/shared/atsapplication.ts +4 -54
- package/src/sdk/models/shared/atscandidate.ts +4 -52
- package/src/sdk/models/shared/atscompany.ts +4 -50
- package/src/sdk/models/shared/atsdocument.ts +4 -50
- package/src/sdk/models/shared/atsinterview.ts +4 -52
- package/src/sdk/models/shared/atsjob.ts +4 -50
- package/src/sdk/models/shared/atsoffer.ts +4 -50
- package/src/sdk/models/shared/atsscorecard.ts +4 -52
- package/src/sdk/models/shared/atsstatus.ts +4 -50
- package/src/sdk/models/shared/calendarbusy.ts +4 -52
- package/src/sdk/models/shared/calendarcalendar.ts +4 -54
- package/src/sdk/models/shared/calendarevent.ts +4 -54
- package/src/sdk/models/shared/calendarlink.ts +4 -52
- package/src/sdk/models/shared/calendarrecording.ts +4 -54
- package/src/sdk/models/shared/commercecollection.ts +4 -54
- package/src/sdk/models/shared/commerceinventory.ts +4 -54
- package/src/sdk/models/shared/commerceitem.ts +4 -52
- package/src/sdk/models/shared/commercelocation.ts +4 -54
- package/src/sdk/models/shared/crmcompany.ts +4 -50
- package/src/sdk/models/shared/crmcontact.ts +4 -50
- package/src/sdk/models/shared/crmdeal.ts +4 -50
- package/src/sdk/models/shared/crmevent.ts +4 -50
- package/src/sdk/models/shared/crmlead.ts +4 -50
- package/src/sdk/models/shared/crmpipeline.ts +4 -50
- package/src/sdk/models/shared/hriscompany.ts +4 -50
- package/src/sdk/models/shared/hrisemployee.ts +4 -52
- package/src/sdk/models/shared/hrisgroup.ts +4 -50
- package/src/sdk/models/shared/hrislocation.ts +4 -52
- package/src/sdk/models/shared/hrispayslip.ts +4 -50
- package/src/sdk/models/shared/hristimeoff.ts +4 -50
- package/src/sdk/models/shared/metadatametadata.ts +4 -54
|
@@ -9,8 +9,6 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export type AtsStatusRaw = {};
|
|
13
|
-
|
|
14
12
|
export const AtsStatusStatus = {
|
|
15
13
|
New: "NEW",
|
|
16
14
|
Reviewing: "REVIEWING",
|
|
@@ -33,54 +31,10 @@ export type AtsStatus = {
|
|
|
33
31
|
description?: string | undefined;
|
|
34
32
|
id?: string | undefined;
|
|
35
33
|
originalStatus?: string | undefined;
|
|
36
|
-
raw?:
|
|
34
|
+
raw?: { [k: string]: any } | undefined;
|
|
37
35
|
status?: AtsStatusStatus | undefined;
|
|
38
36
|
};
|
|
39
37
|
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const AtsStatusRaw$inboundSchema: z.ZodType<
|
|
42
|
-
AtsStatusRaw,
|
|
43
|
-
z.ZodTypeDef,
|
|
44
|
-
unknown
|
|
45
|
-
> = z.object({});
|
|
46
|
-
|
|
47
|
-
/** @internal */
|
|
48
|
-
export type AtsStatusRaw$Outbound = {};
|
|
49
|
-
|
|
50
|
-
/** @internal */
|
|
51
|
-
export const AtsStatusRaw$outboundSchema: z.ZodType<
|
|
52
|
-
AtsStatusRaw$Outbound,
|
|
53
|
-
z.ZodTypeDef,
|
|
54
|
-
AtsStatusRaw
|
|
55
|
-
> = z.object({});
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
|
-
*/
|
|
61
|
-
export namespace AtsStatusRaw$ {
|
|
62
|
-
/** @deprecated use `AtsStatusRaw$inboundSchema` instead. */
|
|
63
|
-
export const inboundSchema = AtsStatusRaw$inboundSchema;
|
|
64
|
-
/** @deprecated use `AtsStatusRaw$outboundSchema` instead. */
|
|
65
|
-
export const outboundSchema = AtsStatusRaw$outboundSchema;
|
|
66
|
-
/** @deprecated use `AtsStatusRaw$Outbound` instead. */
|
|
67
|
-
export type Outbound = AtsStatusRaw$Outbound;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function atsStatusRawToJSON(atsStatusRaw: AtsStatusRaw): string {
|
|
71
|
-
return JSON.stringify(AtsStatusRaw$outboundSchema.parse(atsStatusRaw));
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function atsStatusRawFromJSON(
|
|
75
|
-
jsonString: string,
|
|
76
|
-
): SafeParseResult<AtsStatusRaw, SDKValidationError> {
|
|
77
|
-
return safeParse(
|
|
78
|
-
jsonString,
|
|
79
|
-
(x) => AtsStatusRaw$inboundSchema.parse(JSON.parse(x)),
|
|
80
|
-
`Failed to parse 'AtsStatusRaw' from JSON`,
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
38
|
/** @internal */
|
|
85
39
|
export const AtsStatusStatus$inboundSchema: z.ZodNativeEnum<
|
|
86
40
|
typeof AtsStatusStatus
|
|
@@ -111,7 +65,7 @@ export const AtsStatus$inboundSchema: z.ZodType<
|
|
|
111
65
|
description: z.string().optional(),
|
|
112
66
|
id: z.string().optional(),
|
|
113
67
|
original_status: z.string().optional(),
|
|
114
|
-
raw: z.
|
|
68
|
+
raw: z.record(z.any()).optional(),
|
|
115
69
|
status: AtsStatusStatus$inboundSchema.optional(),
|
|
116
70
|
}).transform((v) => {
|
|
117
71
|
return remap$(v, {
|
|
@@ -124,7 +78,7 @@ export type AtsStatus$Outbound = {
|
|
|
124
78
|
description?: string | undefined;
|
|
125
79
|
id?: string | undefined;
|
|
126
80
|
original_status?: string | undefined;
|
|
127
|
-
raw?:
|
|
81
|
+
raw?: { [k: string]: any } | undefined;
|
|
128
82
|
status?: string | undefined;
|
|
129
83
|
};
|
|
130
84
|
|
|
@@ -137,7 +91,7 @@ export const AtsStatus$outboundSchema: z.ZodType<
|
|
|
137
91
|
description: z.string().optional(),
|
|
138
92
|
id: z.string().optional(),
|
|
139
93
|
originalStatus: z.string().optional(),
|
|
140
|
-
raw: z.
|
|
94
|
+
raw: z.record(z.any()).optional(),
|
|
141
95
|
status: AtsStatusStatus$outboundSchema.optional(),
|
|
142
96
|
}).transform((v) => {
|
|
143
97
|
return remap$(v, {
|
|
@@ -8,63 +8,15 @@ import { safeParse } from "../../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
export type CalendarBusyRaw = {};
|
|
12
|
-
|
|
13
11
|
export type CalendarBusy = {
|
|
14
12
|
description?: string | undefined;
|
|
15
13
|
endAt: Date;
|
|
16
14
|
id?: string | undefined;
|
|
17
|
-
raw?:
|
|
15
|
+
raw?: { [k: string]: any } | undefined;
|
|
18
16
|
startAt: Date;
|
|
19
17
|
timezone?: string | undefined;
|
|
20
18
|
};
|
|
21
19
|
|
|
22
|
-
/** @internal */
|
|
23
|
-
export const CalendarBusyRaw$inboundSchema: z.ZodType<
|
|
24
|
-
CalendarBusyRaw,
|
|
25
|
-
z.ZodTypeDef,
|
|
26
|
-
unknown
|
|
27
|
-
> = z.object({});
|
|
28
|
-
|
|
29
|
-
/** @internal */
|
|
30
|
-
export type CalendarBusyRaw$Outbound = {};
|
|
31
|
-
|
|
32
|
-
/** @internal */
|
|
33
|
-
export const CalendarBusyRaw$outboundSchema: z.ZodType<
|
|
34
|
-
CalendarBusyRaw$Outbound,
|
|
35
|
-
z.ZodTypeDef,
|
|
36
|
-
CalendarBusyRaw
|
|
37
|
-
> = z.object({});
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
42
|
-
*/
|
|
43
|
-
export namespace CalendarBusyRaw$ {
|
|
44
|
-
/** @deprecated use `CalendarBusyRaw$inboundSchema` instead. */
|
|
45
|
-
export const inboundSchema = CalendarBusyRaw$inboundSchema;
|
|
46
|
-
/** @deprecated use `CalendarBusyRaw$outboundSchema` instead. */
|
|
47
|
-
export const outboundSchema = CalendarBusyRaw$outboundSchema;
|
|
48
|
-
/** @deprecated use `CalendarBusyRaw$Outbound` instead. */
|
|
49
|
-
export type Outbound = CalendarBusyRaw$Outbound;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function calendarBusyRawToJSON(
|
|
53
|
-
calendarBusyRaw: CalendarBusyRaw,
|
|
54
|
-
): string {
|
|
55
|
-
return JSON.stringify(CalendarBusyRaw$outboundSchema.parse(calendarBusyRaw));
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function calendarBusyRawFromJSON(
|
|
59
|
-
jsonString: string,
|
|
60
|
-
): SafeParseResult<CalendarBusyRaw, SDKValidationError> {
|
|
61
|
-
return safeParse(
|
|
62
|
-
jsonString,
|
|
63
|
-
(x) => CalendarBusyRaw$inboundSchema.parse(JSON.parse(x)),
|
|
64
|
-
`Failed to parse 'CalendarBusyRaw' from JSON`,
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
20
|
/** @internal */
|
|
69
21
|
export const CalendarBusy$inboundSchema: z.ZodType<
|
|
70
22
|
CalendarBusy,
|
|
@@ -74,7 +26,7 @@ export const CalendarBusy$inboundSchema: z.ZodType<
|
|
|
74
26
|
description: z.string().optional(),
|
|
75
27
|
end_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
76
28
|
id: z.string().optional(),
|
|
77
|
-
raw: z.
|
|
29
|
+
raw: z.record(z.any()).optional(),
|
|
78
30
|
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
79
31
|
timezone: z.string().optional(),
|
|
80
32
|
}).transform((v) => {
|
|
@@ -89,7 +41,7 @@ export type CalendarBusy$Outbound = {
|
|
|
89
41
|
description?: string | undefined;
|
|
90
42
|
end_at: string;
|
|
91
43
|
id?: string | undefined;
|
|
92
|
-
raw?:
|
|
44
|
+
raw?: { [k: string]: any } | undefined;
|
|
93
45
|
start_at: string;
|
|
94
46
|
timezone?: string | undefined;
|
|
95
47
|
};
|
|
@@ -103,7 +55,7 @@ export const CalendarBusy$outboundSchema: z.ZodType<
|
|
|
103
55
|
description: z.string().optional(),
|
|
104
56
|
endAt: z.date().transform(v => v.toISOString()),
|
|
105
57
|
id: z.string().optional(),
|
|
106
|
-
raw: z.
|
|
58
|
+
raw: z.record(z.any()).optional(),
|
|
107
59
|
startAt: z.date().transform(v => v.toISOString()),
|
|
108
60
|
timezone: z.string().optional(),
|
|
109
61
|
}).transform((v) => {
|
|
@@ -8,67 +8,17 @@ import { safeParse } from "../../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
export type CalendarCalendarRaw = {};
|
|
12
|
-
|
|
13
11
|
export type CalendarCalendar = {
|
|
14
12
|
createdAt?: Date | undefined;
|
|
15
13
|
description?: string | undefined;
|
|
16
14
|
id?: string | undefined;
|
|
17
15
|
name: string;
|
|
18
16
|
primary?: boolean | undefined;
|
|
19
|
-
raw?:
|
|
17
|
+
raw?: { [k: string]: any } | undefined;
|
|
20
18
|
timezone?: string | undefined;
|
|
21
19
|
updatedAt?: Date | undefined;
|
|
22
20
|
};
|
|
23
21
|
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const CalendarCalendarRaw$inboundSchema: z.ZodType<
|
|
26
|
-
CalendarCalendarRaw,
|
|
27
|
-
z.ZodTypeDef,
|
|
28
|
-
unknown
|
|
29
|
-
> = z.object({});
|
|
30
|
-
|
|
31
|
-
/** @internal */
|
|
32
|
-
export type CalendarCalendarRaw$Outbound = {};
|
|
33
|
-
|
|
34
|
-
/** @internal */
|
|
35
|
-
export const CalendarCalendarRaw$outboundSchema: z.ZodType<
|
|
36
|
-
CalendarCalendarRaw$Outbound,
|
|
37
|
-
z.ZodTypeDef,
|
|
38
|
-
CalendarCalendarRaw
|
|
39
|
-
> = z.object({});
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @internal
|
|
43
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
-
*/
|
|
45
|
-
export namespace CalendarCalendarRaw$ {
|
|
46
|
-
/** @deprecated use `CalendarCalendarRaw$inboundSchema` instead. */
|
|
47
|
-
export const inboundSchema = CalendarCalendarRaw$inboundSchema;
|
|
48
|
-
/** @deprecated use `CalendarCalendarRaw$outboundSchema` instead. */
|
|
49
|
-
export const outboundSchema = CalendarCalendarRaw$outboundSchema;
|
|
50
|
-
/** @deprecated use `CalendarCalendarRaw$Outbound` instead. */
|
|
51
|
-
export type Outbound = CalendarCalendarRaw$Outbound;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export function calendarCalendarRawToJSON(
|
|
55
|
-
calendarCalendarRaw: CalendarCalendarRaw,
|
|
56
|
-
): string {
|
|
57
|
-
return JSON.stringify(
|
|
58
|
-
CalendarCalendarRaw$outboundSchema.parse(calendarCalendarRaw),
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function calendarCalendarRawFromJSON(
|
|
63
|
-
jsonString: string,
|
|
64
|
-
): SafeParseResult<CalendarCalendarRaw, SDKValidationError> {
|
|
65
|
-
return safeParse(
|
|
66
|
-
jsonString,
|
|
67
|
-
(x) => CalendarCalendarRaw$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
-
`Failed to parse 'CalendarCalendarRaw' from JSON`,
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
22
|
/** @internal */
|
|
73
23
|
export const CalendarCalendar$inboundSchema: z.ZodType<
|
|
74
24
|
CalendarCalendar,
|
|
@@ -81,7 +31,7 @@ export const CalendarCalendar$inboundSchema: z.ZodType<
|
|
|
81
31
|
id: z.string().optional(),
|
|
82
32
|
name: z.string(),
|
|
83
33
|
primary: z.boolean().optional(),
|
|
84
|
-
raw: z.
|
|
34
|
+
raw: z.record(z.any()).optional(),
|
|
85
35
|
timezone: z.string().optional(),
|
|
86
36
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
87
37
|
.optional(),
|
|
@@ -99,7 +49,7 @@ export type CalendarCalendar$Outbound = {
|
|
|
99
49
|
id?: string | undefined;
|
|
100
50
|
name: string;
|
|
101
51
|
primary?: boolean | undefined;
|
|
102
|
-
raw?:
|
|
52
|
+
raw?: { [k: string]: any } | undefined;
|
|
103
53
|
timezone?: string | undefined;
|
|
104
54
|
updated_at?: string | undefined;
|
|
105
55
|
};
|
|
@@ -115,7 +65,7 @@ export const CalendarCalendar$outboundSchema: z.ZodType<
|
|
|
115
65
|
id: z.string().optional(),
|
|
116
66
|
name: z.string(),
|
|
117
67
|
primary: z.boolean().optional(),
|
|
118
|
-
raw: z.
|
|
68
|
+
raw: z.record(z.any()).optional(),
|
|
119
69
|
timezone: z.string().optional(),
|
|
120
70
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
121
71
|
}).transform((v) => {
|
|
@@ -21,8 +21,6 @@ import {
|
|
|
21
21
|
PropertyCalendarEventOrganizer$outboundSchema,
|
|
22
22
|
} from "./propertycalendareventorganizer.js";
|
|
23
23
|
|
|
24
|
-
export type CalendarEventRaw = {};
|
|
25
|
-
|
|
26
24
|
export const CalendarEventStatus = {
|
|
27
25
|
Canceled: "CANCELED",
|
|
28
26
|
Confirmed: "CONFIRMED",
|
|
@@ -42,7 +40,7 @@ export type CalendarEvent = {
|
|
|
42
40
|
location?: string | undefined;
|
|
43
41
|
notes?: string | undefined;
|
|
44
42
|
organizer?: PropertyCalendarEventOrganizer | undefined;
|
|
45
|
-
raw?:
|
|
43
|
+
raw?: { [k: string]: any } | undefined;
|
|
46
44
|
startAt: string;
|
|
47
45
|
status?: CalendarEventStatus | undefined;
|
|
48
46
|
subject: string;
|
|
@@ -51,54 +49,6 @@ export type CalendarEvent = {
|
|
|
51
49
|
webUrl?: string | undefined;
|
|
52
50
|
};
|
|
53
51
|
|
|
54
|
-
/** @internal */
|
|
55
|
-
export const CalendarEventRaw$inboundSchema: z.ZodType<
|
|
56
|
-
CalendarEventRaw,
|
|
57
|
-
z.ZodTypeDef,
|
|
58
|
-
unknown
|
|
59
|
-
> = z.object({});
|
|
60
|
-
|
|
61
|
-
/** @internal */
|
|
62
|
-
export type CalendarEventRaw$Outbound = {};
|
|
63
|
-
|
|
64
|
-
/** @internal */
|
|
65
|
-
export const CalendarEventRaw$outboundSchema: z.ZodType<
|
|
66
|
-
CalendarEventRaw$Outbound,
|
|
67
|
-
z.ZodTypeDef,
|
|
68
|
-
CalendarEventRaw
|
|
69
|
-
> = z.object({});
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* @internal
|
|
73
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
74
|
-
*/
|
|
75
|
-
export namespace CalendarEventRaw$ {
|
|
76
|
-
/** @deprecated use `CalendarEventRaw$inboundSchema` instead. */
|
|
77
|
-
export const inboundSchema = CalendarEventRaw$inboundSchema;
|
|
78
|
-
/** @deprecated use `CalendarEventRaw$outboundSchema` instead. */
|
|
79
|
-
export const outboundSchema = CalendarEventRaw$outboundSchema;
|
|
80
|
-
/** @deprecated use `CalendarEventRaw$Outbound` instead. */
|
|
81
|
-
export type Outbound = CalendarEventRaw$Outbound;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export function calendarEventRawToJSON(
|
|
85
|
-
calendarEventRaw: CalendarEventRaw,
|
|
86
|
-
): string {
|
|
87
|
-
return JSON.stringify(
|
|
88
|
-
CalendarEventRaw$outboundSchema.parse(calendarEventRaw),
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export function calendarEventRawFromJSON(
|
|
93
|
-
jsonString: string,
|
|
94
|
-
): SafeParseResult<CalendarEventRaw, SDKValidationError> {
|
|
95
|
-
return safeParse(
|
|
96
|
-
jsonString,
|
|
97
|
-
(x) => CalendarEventRaw$inboundSchema.parse(JSON.parse(x)),
|
|
98
|
-
`Failed to parse 'CalendarEventRaw' from JSON`,
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
52
|
/** @internal */
|
|
103
53
|
export const CalendarEventStatus$inboundSchema: z.ZodNativeEnum<
|
|
104
54
|
typeof CalendarEventStatus
|
|
@@ -137,7 +87,7 @@ export const CalendarEvent$inboundSchema: z.ZodType<
|
|
|
137
87
|
location: z.string().optional(),
|
|
138
88
|
notes: z.string().optional(),
|
|
139
89
|
organizer: PropertyCalendarEventOrganizer$inboundSchema.optional(),
|
|
140
|
-
raw: z.
|
|
90
|
+
raw: z.record(z.any()).optional(),
|
|
141
91
|
start_at: z.string(),
|
|
142
92
|
status: CalendarEventStatus$inboundSchema.optional(),
|
|
143
93
|
subject: z.string(),
|
|
@@ -171,7 +121,7 @@ export type CalendarEvent$Outbound = {
|
|
|
171
121
|
location?: string | undefined;
|
|
172
122
|
notes?: string | undefined;
|
|
173
123
|
organizer?: PropertyCalendarEventOrganizer$Outbound | undefined;
|
|
174
|
-
raw?:
|
|
124
|
+
raw?: { [k: string]: any } | undefined;
|
|
175
125
|
start_at: string;
|
|
176
126
|
status?: string | undefined;
|
|
177
127
|
subject: string;
|
|
@@ -197,7 +147,7 @@ export const CalendarEvent$outboundSchema: z.ZodType<
|
|
|
197
147
|
location: z.string().optional(),
|
|
198
148
|
notes: z.string().optional(),
|
|
199
149
|
organizer: PropertyCalendarEventOrganizer$outboundSchema.optional(),
|
|
200
|
-
raw: z.
|
|
150
|
+
raw: z.record(z.any()).optional(),
|
|
201
151
|
startAt: z.string(),
|
|
202
152
|
status: CalendarEventStatus$outboundSchema.optional(),
|
|
203
153
|
subject: z.string(),
|
|
@@ -8,8 +8,6 @@ import { safeParse } from "../../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
export type CalendarLinkRaw = {};
|
|
12
|
-
|
|
13
11
|
export type CalendarLink = {
|
|
14
12
|
createdAt?: string | undefined;
|
|
15
13
|
description?: string | undefined;
|
|
@@ -19,57 +17,11 @@ export type CalendarLink = {
|
|
|
19
17
|
name?: string | undefined;
|
|
20
18
|
priceAmount?: number | undefined;
|
|
21
19
|
priceCurrency?: string | undefined;
|
|
22
|
-
raw?:
|
|
20
|
+
raw?: { [k: string]: any } | undefined;
|
|
23
21
|
updatedAt?: string | undefined;
|
|
24
22
|
url: string;
|
|
25
23
|
};
|
|
26
24
|
|
|
27
|
-
/** @internal */
|
|
28
|
-
export const CalendarLinkRaw$inboundSchema: z.ZodType<
|
|
29
|
-
CalendarLinkRaw,
|
|
30
|
-
z.ZodTypeDef,
|
|
31
|
-
unknown
|
|
32
|
-
> = z.object({});
|
|
33
|
-
|
|
34
|
-
/** @internal */
|
|
35
|
-
export type CalendarLinkRaw$Outbound = {};
|
|
36
|
-
|
|
37
|
-
/** @internal */
|
|
38
|
-
export const CalendarLinkRaw$outboundSchema: z.ZodType<
|
|
39
|
-
CalendarLinkRaw$Outbound,
|
|
40
|
-
z.ZodTypeDef,
|
|
41
|
-
CalendarLinkRaw
|
|
42
|
-
> = z.object({});
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @internal
|
|
46
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
|
-
*/
|
|
48
|
-
export namespace CalendarLinkRaw$ {
|
|
49
|
-
/** @deprecated use `CalendarLinkRaw$inboundSchema` instead. */
|
|
50
|
-
export const inboundSchema = CalendarLinkRaw$inboundSchema;
|
|
51
|
-
/** @deprecated use `CalendarLinkRaw$outboundSchema` instead. */
|
|
52
|
-
export const outboundSchema = CalendarLinkRaw$outboundSchema;
|
|
53
|
-
/** @deprecated use `CalendarLinkRaw$Outbound` instead. */
|
|
54
|
-
export type Outbound = CalendarLinkRaw$Outbound;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export function calendarLinkRawToJSON(
|
|
58
|
-
calendarLinkRaw: CalendarLinkRaw,
|
|
59
|
-
): string {
|
|
60
|
-
return JSON.stringify(CalendarLinkRaw$outboundSchema.parse(calendarLinkRaw));
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function calendarLinkRawFromJSON(
|
|
64
|
-
jsonString: string,
|
|
65
|
-
): SafeParseResult<CalendarLinkRaw, SDKValidationError> {
|
|
66
|
-
return safeParse(
|
|
67
|
-
jsonString,
|
|
68
|
-
(x) => CalendarLinkRaw$inboundSchema.parse(JSON.parse(x)),
|
|
69
|
-
`Failed to parse 'CalendarLinkRaw' from JSON`,
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
25
|
/** @internal */
|
|
74
26
|
export const CalendarLink$inboundSchema: z.ZodType<
|
|
75
27
|
CalendarLink,
|
|
@@ -84,7 +36,7 @@ export const CalendarLink$inboundSchema: z.ZodType<
|
|
|
84
36
|
name: z.string().optional(),
|
|
85
37
|
price_amount: z.number().optional(),
|
|
86
38
|
price_currency: z.string().optional(),
|
|
87
|
-
raw: z.
|
|
39
|
+
raw: z.record(z.any()).optional(),
|
|
88
40
|
updated_at: z.string().optional(),
|
|
89
41
|
url: z.string(),
|
|
90
42
|
}).transform((v) => {
|
|
@@ -107,7 +59,7 @@ export type CalendarLink$Outbound = {
|
|
|
107
59
|
name?: string | undefined;
|
|
108
60
|
price_amount?: number | undefined;
|
|
109
61
|
price_currency?: string | undefined;
|
|
110
|
-
raw?:
|
|
62
|
+
raw?: { [k: string]: any } | undefined;
|
|
111
63
|
updated_at?: string | undefined;
|
|
112
64
|
url: string;
|
|
113
65
|
};
|
|
@@ -126,7 +78,7 @@ export const CalendarLink$outboundSchema: z.ZodType<
|
|
|
126
78
|
name: z.string().optional(),
|
|
127
79
|
priceAmount: z.number().optional(),
|
|
128
80
|
priceCurrency: z.string().optional(),
|
|
129
|
-
raw: z.
|
|
81
|
+
raw: z.record(z.any()).optional(),
|
|
130
82
|
updatedAt: z.string().optional(),
|
|
131
83
|
url: z.string(),
|
|
132
84
|
}).transform((v) => {
|
|
@@ -14,8 +14,6 @@ import {
|
|
|
14
14
|
CalendarRecordingMedia$outboundSchema,
|
|
15
15
|
} from "./calendarrecordingmedia.js";
|
|
16
16
|
|
|
17
|
-
export type CalendarRecordingRaw = {};
|
|
18
|
-
|
|
19
17
|
export type CalendarRecording = {
|
|
20
18
|
createdAt?: Date | undefined;
|
|
21
19
|
endAt?: Date | undefined;
|
|
@@ -23,60 +21,12 @@ export type CalendarRecording = {
|
|
|
23
21
|
expiresAt?: Date | undefined;
|
|
24
22
|
id?: string | undefined;
|
|
25
23
|
media?: Array<CalendarRecordingMedia> | undefined;
|
|
26
|
-
raw?:
|
|
24
|
+
raw?: { [k: string]: any } | undefined;
|
|
27
25
|
startAt?: Date | undefined;
|
|
28
26
|
updatedAt?: Date | undefined;
|
|
29
27
|
webUrl?: string | undefined;
|
|
30
28
|
};
|
|
31
29
|
|
|
32
|
-
/** @internal */
|
|
33
|
-
export const CalendarRecordingRaw$inboundSchema: z.ZodType<
|
|
34
|
-
CalendarRecordingRaw,
|
|
35
|
-
z.ZodTypeDef,
|
|
36
|
-
unknown
|
|
37
|
-
> = z.object({});
|
|
38
|
-
|
|
39
|
-
/** @internal */
|
|
40
|
-
export type CalendarRecordingRaw$Outbound = {};
|
|
41
|
-
|
|
42
|
-
/** @internal */
|
|
43
|
-
export const CalendarRecordingRaw$outboundSchema: z.ZodType<
|
|
44
|
-
CalendarRecordingRaw$Outbound,
|
|
45
|
-
z.ZodTypeDef,
|
|
46
|
-
CalendarRecordingRaw
|
|
47
|
-
> = z.object({});
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @internal
|
|
51
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
-
*/
|
|
53
|
-
export namespace CalendarRecordingRaw$ {
|
|
54
|
-
/** @deprecated use `CalendarRecordingRaw$inboundSchema` instead. */
|
|
55
|
-
export const inboundSchema = CalendarRecordingRaw$inboundSchema;
|
|
56
|
-
/** @deprecated use `CalendarRecordingRaw$outboundSchema` instead. */
|
|
57
|
-
export const outboundSchema = CalendarRecordingRaw$outboundSchema;
|
|
58
|
-
/** @deprecated use `CalendarRecordingRaw$Outbound` instead. */
|
|
59
|
-
export type Outbound = CalendarRecordingRaw$Outbound;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function calendarRecordingRawToJSON(
|
|
63
|
-
calendarRecordingRaw: CalendarRecordingRaw,
|
|
64
|
-
): string {
|
|
65
|
-
return JSON.stringify(
|
|
66
|
-
CalendarRecordingRaw$outboundSchema.parse(calendarRecordingRaw),
|
|
67
|
-
);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function calendarRecordingRawFromJSON(
|
|
71
|
-
jsonString: string,
|
|
72
|
-
): SafeParseResult<CalendarRecordingRaw, SDKValidationError> {
|
|
73
|
-
return safeParse(
|
|
74
|
-
jsonString,
|
|
75
|
-
(x) => CalendarRecordingRaw$inboundSchema.parse(JSON.parse(x)),
|
|
76
|
-
`Failed to parse 'CalendarRecordingRaw' from JSON`,
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
30
|
/** @internal */
|
|
81
31
|
export const CalendarRecording$inboundSchema: z.ZodType<
|
|
82
32
|
CalendarRecording,
|
|
@@ -92,7 +42,7 @@ export const CalendarRecording$inboundSchema: z.ZodType<
|
|
|
92
42
|
.optional(),
|
|
93
43
|
id: z.string().optional(),
|
|
94
44
|
media: z.array(CalendarRecordingMedia$inboundSchema).optional(),
|
|
95
|
-
raw: z.
|
|
45
|
+
raw: z.record(z.any()).optional(),
|
|
96
46
|
start_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
97
47
|
.optional(),
|
|
98
48
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
@@ -118,7 +68,7 @@ export type CalendarRecording$Outbound = {
|
|
|
118
68
|
expires_at?: string | undefined;
|
|
119
69
|
id?: string | undefined;
|
|
120
70
|
media?: Array<CalendarRecordingMedia$Outbound> | undefined;
|
|
121
|
-
raw?:
|
|
71
|
+
raw?: { [k: string]: any } | undefined;
|
|
122
72
|
start_at?: string | undefined;
|
|
123
73
|
updated_at?: string | undefined;
|
|
124
74
|
web_url?: string | undefined;
|
|
@@ -136,7 +86,7 @@ export const CalendarRecording$outboundSchema: z.ZodType<
|
|
|
136
86
|
expiresAt: z.date().transform(v => v.toISOString()).optional(),
|
|
137
87
|
id: z.string().optional(),
|
|
138
88
|
media: z.array(CalendarRecordingMedia$outboundSchema).optional(),
|
|
139
|
-
raw: z.
|
|
89
|
+
raw: z.record(z.any()).optional(),
|
|
140
90
|
startAt: z.date().transform(v => v.toISOString()).optional(),
|
|
141
91
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
142
92
|
webUrl: z.string().optional(),
|
|
@@ -21,8 +21,6 @@ import {
|
|
|
21
21
|
CommerceMetadata$outboundSchema,
|
|
22
22
|
} from "./commercemetadata.js";
|
|
23
23
|
|
|
24
|
-
export type CommerceCollectionRaw = {};
|
|
25
|
-
|
|
26
24
|
export const CommerceCollectionType = {
|
|
27
25
|
Collection: "COLLECTION",
|
|
28
26
|
SavedSearch: "SAVED_SEARCH",
|
|
@@ -46,60 +44,12 @@ export type CommerceCollection = {
|
|
|
46
44
|
parentId?: string | undefined;
|
|
47
45
|
publicDescription?: string | undefined;
|
|
48
46
|
publicName?: string | undefined;
|
|
49
|
-
raw?:
|
|
47
|
+
raw?: { [k: string]: any } | undefined;
|
|
50
48
|
tags?: Array<string> | undefined;
|
|
51
49
|
type?: CommerceCollectionType | undefined;
|
|
52
50
|
updatedAt?: Date | undefined;
|
|
53
51
|
};
|
|
54
52
|
|
|
55
|
-
/** @internal */
|
|
56
|
-
export const CommerceCollectionRaw$inboundSchema: z.ZodType<
|
|
57
|
-
CommerceCollectionRaw,
|
|
58
|
-
z.ZodTypeDef,
|
|
59
|
-
unknown
|
|
60
|
-
> = z.object({});
|
|
61
|
-
|
|
62
|
-
/** @internal */
|
|
63
|
-
export type CommerceCollectionRaw$Outbound = {};
|
|
64
|
-
|
|
65
|
-
/** @internal */
|
|
66
|
-
export const CommerceCollectionRaw$outboundSchema: z.ZodType<
|
|
67
|
-
CommerceCollectionRaw$Outbound,
|
|
68
|
-
z.ZodTypeDef,
|
|
69
|
-
CommerceCollectionRaw
|
|
70
|
-
> = z.object({});
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* @internal
|
|
74
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
75
|
-
*/
|
|
76
|
-
export namespace CommerceCollectionRaw$ {
|
|
77
|
-
/** @deprecated use `CommerceCollectionRaw$inboundSchema` instead. */
|
|
78
|
-
export const inboundSchema = CommerceCollectionRaw$inboundSchema;
|
|
79
|
-
/** @deprecated use `CommerceCollectionRaw$outboundSchema` instead. */
|
|
80
|
-
export const outboundSchema = CommerceCollectionRaw$outboundSchema;
|
|
81
|
-
/** @deprecated use `CommerceCollectionRaw$Outbound` instead. */
|
|
82
|
-
export type Outbound = CommerceCollectionRaw$Outbound;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export function commerceCollectionRawToJSON(
|
|
86
|
-
commerceCollectionRaw: CommerceCollectionRaw,
|
|
87
|
-
): string {
|
|
88
|
-
return JSON.stringify(
|
|
89
|
-
CommerceCollectionRaw$outboundSchema.parse(commerceCollectionRaw),
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export function commerceCollectionRawFromJSON(
|
|
94
|
-
jsonString: string,
|
|
95
|
-
): SafeParseResult<CommerceCollectionRaw, SDKValidationError> {
|
|
96
|
-
return safeParse(
|
|
97
|
-
jsonString,
|
|
98
|
-
(x) => CommerceCollectionRaw$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
-
`Failed to parse 'CommerceCollectionRaw' from JSON`,
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
53
|
/** @internal */
|
|
104
54
|
export const CommerceCollectionType$inboundSchema: z.ZodNativeEnum<
|
|
105
55
|
typeof CommerceCollectionType
|
|
@@ -140,7 +90,7 @@ export const CommerceCollection$inboundSchema: z.ZodType<
|
|
|
140
90
|
parent_id: z.string().optional(),
|
|
141
91
|
public_description: z.string().optional(),
|
|
142
92
|
public_name: z.string().optional(),
|
|
143
|
-
raw: z.
|
|
93
|
+
raw: z.record(z.any()).optional(),
|
|
144
94
|
tags: z.array(z.string()).optional(),
|
|
145
95
|
type: CommerceCollectionType$inboundSchema.optional(),
|
|
146
96
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
@@ -172,7 +122,7 @@ export type CommerceCollection$Outbound = {
|
|
|
172
122
|
parent_id?: string | undefined;
|
|
173
123
|
public_description?: string | undefined;
|
|
174
124
|
public_name?: string | undefined;
|
|
175
|
-
raw?:
|
|
125
|
+
raw?: { [k: string]: any } | undefined;
|
|
176
126
|
tags?: Array<string> | undefined;
|
|
177
127
|
type?: string | undefined;
|
|
178
128
|
updated_at?: string | undefined;
|
|
@@ -196,7 +146,7 @@ export const CommerceCollection$outboundSchema: z.ZodType<
|
|
|
196
146
|
parentId: z.string().optional(),
|
|
197
147
|
publicDescription: z.string().optional(),
|
|
198
148
|
publicName: z.string().optional(),
|
|
199
|
-
raw: z.
|
|
149
|
+
raw: z.record(z.any()).optional(),
|
|
200
150
|
tags: z.array(z.string()).optional(),
|
|
201
151
|
type: CommerceCollectionType$outboundSchema.optional(),
|
|
202
152
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|