@unified-api/typescript-sdk 2.42.0 → 2.48.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/kmscomment.d.ts +3 -3
- package/sdk/models/shared/kmscomment.js +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/kmscomment.ts +1 -1
- package/src/sdk/models/shared/metadatametadata.ts +4 -54
|
@@ -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(),
|
|
@@ -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 CommerceInventoryRaw = {};
|
|
12
|
-
|
|
13
11
|
export type CommerceInventory = {
|
|
14
12
|
available: number;
|
|
15
13
|
id?: string | undefined;
|
|
@@ -17,58 +15,10 @@ export type CommerceInventory = {
|
|
|
17
15
|
itemOptionId?: string | undefined;
|
|
18
16
|
itemVariantId?: string | undefined;
|
|
19
17
|
locationId?: string | undefined;
|
|
20
|
-
raw?:
|
|
18
|
+
raw?: { [k: string]: any } | undefined;
|
|
21
19
|
updatedAt?: Date | undefined;
|
|
22
20
|
};
|
|
23
21
|
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const CommerceInventoryRaw$inboundSchema: z.ZodType<
|
|
26
|
-
CommerceInventoryRaw,
|
|
27
|
-
z.ZodTypeDef,
|
|
28
|
-
unknown
|
|
29
|
-
> = z.object({});
|
|
30
|
-
|
|
31
|
-
/** @internal */
|
|
32
|
-
export type CommerceInventoryRaw$Outbound = {};
|
|
33
|
-
|
|
34
|
-
/** @internal */
|
|
35
|
-
export const CommerceInventoryRaw$outboundSchema: z.ZodType<
|
|
36
|
-
CommerceInventoryRaw$Outbound,
|
|
37
|
-
z.ZodTypeDef,
|
|
38
|
-
CommerceInventoryRaw
|
|
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 CommerceInventoryRaw$ {
|
|
46
|
-
/** @deprecated use `CommerceInventoryRaw$inboundSchema` instead. */
|
|
47
|
-
export const inboundSchema = CommerceInventoryRaw$inboundSchema;
|
|
48
|
-
/** @deprecated use `CommerceInventoryRaw$outboundSchema` instead. */
|
|
49
|
-
export const outboundSchema = CommerceInventoryRaw$outboundSchema;
|
|
50
|
-
/** @deprecated use `CommerceInventoryRaw$Outbound` instead. */
|
|
51
|
-
export type Outbound = CommerceInventoryRaw$Outbound;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export function commerceInventoryRawToJSON(
|
|
55
|
-
commerceInventoryRaw: CommerceInventoryRaw,
|
|
56
|
-
): string {
|
|
57
|
-
return JSON.stringify(
|
|
58
|
-
CommerceInventoryRaw$outboundSchema.parse(commerceInventoryRaw),
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function commerceInventoryRawFromJSON(
|
|
63
|
-
jsonString: string,
|
|
64
|
-
): SafeParseResult<CommerceInventoryRaw, SDKValidationError> {
|
|
65
|
-
return safeParse(
|
|
66
|
-
jsonString,
|
|
67
|
-
(x) => CommerceInventoryRaw$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
-
`Failed to parse 'CommerceInventoryRaw' from JSON`,
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
22
|
/** @internal */
|
|
73
23
|
export const CommerceInventory$inboundSchema: z.ZodType<
|
|
74
24
|
CommerceInventory,
|
|
@@ -81,7 +31,7 @@ export const CommerceInventory$inboundSchema: z.ZodType<
|
|
|
81
31
|
item_option_id: z.string().optional(),
|
|
82
32
|
item_variant_id: z.string().optional(),
|
|
83
33
|
location_id: z.string().optional(),
|
|
84
|
-
raw: z.
|
|
34
|
+
raw: z.record(z.any()).optional(),
|
|
85
35
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
86
36
|
.optional(),
|
|
87
37
|
}).transform((v) => {
|
|
@@ -102,7 +52,7 @@ export type CommerceInventory$Outbound = {
|
|
|
102
52
|
item_option_id?: string | undefined;
|
|
103
53
|
item_variant_id?: string | undefined;
|
|
104
54
|
location_id?: string | undefined;
|
|
105
|
-
raw?:
|
|
55
|
+
raw?: { [k: string]: any } | undefined;
|
|
106
56
|
updated_at?: string | undefined;
|
|
107
57
|
};
|
|
108
58
|
|
|
@@ -118,7 +68,7 @@ export const CommerceInventory$outboundSchema: z.ZodType<
|
|
|
118
68
|
itemOptionId: z.string().optional(),
|
|
119
69
|
itemVariantId: z.string().optional(),
|
|
120
70
|
locationId: z.string().optional(),
|
|
121
|
-
raw: z.
|
|
71
|
+
raw: z.record(z.any()).optional(),
|
|
122
72
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
123
73
|
}).transform((v) => {
|
|
124
74
|
return remap$(v, {
|
|
@@ -26,8 +26,6 @@ import {
|
|
|
26
26
|
CommerceMetadata$outboundSchema,
|
|
27
27
|
} from "./commercemetadata.js";
|
|
28
28
|
|
|
29
|
-
export type CommerceItemRaw = {};
|
|
30
|
-
|
|
31
29
|
export type CommerceItem = {
|
|
32
30
|
accountId?: string | undefined;
|
|
33
31
|
collectionIds?: Array<string> | undefined;
|
|
@@ -41,7 +39,7 @@ export type CommerceItem = {
|
|
|
41
39
|
name?: string | undefined;
|
|
42
40
|
publicDescription?: string | undefined;
|
|
43
41
|
publicName?: string | undefined;
|
|
44
|
-
raw?:
|
|
42
|
+
raw?: { [k: string]: any } | undefined;
|
|
45
43
|
slug?: string | undefined;
|
|
46
44
|
tags?: Array<string> | undefined;
|
|
47
45
|
type?: string | undefined;
|
|
@@ -53,52 +51,6 @@ export type CommerceItem = {
|
|
|
53
51
|
vendorName?: string | undefined;
|
|
54
52
|
};
|
|
55
53
|
|
|
56
|
-
/** @internal */
|
|
57
|
-
export const CommerceItemRaw$inboundSchema: z.ZodType<
|
|
58
|
-
CommerceItemRaw,
|
|
59
|
-
z.ZodTypeDef,
|
|
60
|
-
unknown
|
|
61
|
-
> = z.object({});
|
|
62
|
-
|
|
63
|
-
/** @internal */
|
|
64
|
-
export type CommerceItemRaw$Outbound = {};
|
|
65
|
-
|
|
66
|
-
/** @internal */
|
|
67
|
-
export const CommerceItemRaw$outboundSchema: z.ZodType<
|
|
68
|
-
CommerceItemRaw$Outbound,
|
|
69
|
-
z.ZodTypeDef,
|
|
70
|
-
CommerceItemRaw
|
|
71
|
-
> = z.object({});
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* @internal
|
|
75
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
76
|
-
*/
|
|
77
|
-
export namespace CommerceItemRaw$ {
|
|
78
|
-
/** @deprecated use `CommerceItemRaw$inboundSchema` instead. */
|
|
79
|
-
export const inboundSchema = CommerceItemRaw$inboundSchema;
|
|
80
|
-
/** @deprecated use `CommerceItemRaw$outboundSchema` instead. */
|
|
81
|
-
export const outboundSchema = CommerceItemRaw$outboundSchema;
|
|
82
|
-
/** @deprecated use `CommerceItemRaw$Outbound` instead. */
|
|
83
|
-
export type Outbound = CommerceItemRaw$Outbound;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export function commerceItemRawToJSON(
|
|
87
|
-
commerceItemRaw: CommerceItemRaw,
|
|
88
|
-
): string {
|
|
89
|
-
return JSON.stringify(CommerceItemRaw$outboundSchema.parse(commerceItemRaw));
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
export function commerceItemRawFromJSON(
|
|
93
|
-
jsonString: string,
|
|
94
|
-
): SafeParseResult<CommerceItemRaw, SDKValidationError> {
|
|
95
|
-
return safeParse(
|
|
96
|
-
jsonString,
|
|
97
|
-
(x) => CommerceItemRaw$inboundSchema.parse(JSON.parse(x)),
|
|
98
|
-
`Failed to parse 'CommerceItemRaw' from JSON`,
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
54
|
/** @internal */
|
|
103
55
|
export const CommerceItem$inboundSchema: z.ZodType<
|
|
104
56
|
CommerceItem,
|
|
@@ -118,7 +70,7 @@ export const CommerceItem$inboundSchema: z.ZodType<
|
|
|
118
70
|
name: z.string().optional(),
|
|
119
71
|
public_description: z.string().optional(),
|
|
120
72
|
public_name: z.string().optional(),
|
|
121
|
-
raw: z.
|
|
73
|
+
raw: z.record(z.any()).optional(),
|
|
122
74
|
slug: z.string().optional(),
|
|
123
75
|
tags: z.array(z.string()).optional(),
|
|
124
76
|
type: z.string().optional(),
|
|
@@ -154,7 +106,7 @@ export type CommerceItem$Outbound = {
|
|
|
154
106
|
name?: string | undefined;
|
|
155
107
|
public_description?: string | undefined;
|
|
156
108
|
public_name?: string | undefined;
|
|
157
|
-
raw?:
|
|
109
|
+
raw?: { [k: string]: any } | undefined;
|
|
158
110
|
slug?: string | undefined;
|
|
159
111
|
tags?: Array<string> | undefined;
|
|
160
112
|
type?: string | undefined;
|
|
@@ -181,7 +133,7 @@ export const CommerceItem$outboundSchema: z.ZodType<
|
|
|
181
133
|
name: z.string().optional(),
|
|
182
134
|
publicDescription: z.string().optional(),
|
|
183
135
|
publicName: z.string().optional(),
|
|
184
|
-
raw: z.
|
|
136
|
+
raw: z.record(z.any()).optional(),
|
|
185
137
|
slug: z.string().optional(),
|
|
186
138
|
tags: z.array(z.string()).optional(),
|
|
187
139
|
type: z.string().optional(),
|
|
@@ -14,8 +14,6 @@ import {
|
|
|
14
14
|
PropertyCommerceLocationAddress$outboundSchema,
|
|
15
15
|
} from "./propertycommercelocationaddress.js";
|
|
16
16
|
|
|
17
|
-
export type CommerceLocationRaw = {};
|
|
18
|
-
|
|
19
17
|
export type CommerceLocation = {
|
|
20
18
|
address?: PropertyCommerceLocationAddress | undefined;
|
|
21
19
|
createdAt?: Date | undefined;
|
|
@@ -23,58 +21,10 @@ export type CommerceLocation = {
|
|
|
23
21
|
id?: string | undefined;
|
|
24
22
|
isActive?: boolean | undefined;
|
|
25
23
|
name: string;
|
|
26
|
-
raw?:
|
|
24
|
+
raw?: { [k: string]: any } | undefined;
|
|
27
25
|
updatedAt?: Date | undefined;
|
|
28
26
|
};
|
|
29
27
|
|
|
30
|
-
/** @internal */
|
|
31
|
-
export const CommerceLocationRaw$inboundSchema: z.ZodType<
|
|
32
|
-
CommerceLocationRaw,
|
|
33
|
-
z.ZodTypeDef,
|
|
34
|
-
unknown
|
|
35
|
-
> = z.object({});
|
|
36
|
-
|
|
37
|
-
/** @internal */
|
|
38
|
-
export type CommerceLocationRaw$Outbound = {};
|
|
39
|
-
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const CommerceLocationRaw$outboundSchema: z.ZodType<
|
|
42
|
-
CommerceLocationRaw$Outbound,
|
|
43
|
-
z.ZodTypeDef,
|
|
44
|
-
CommerceLocationRaw
|
|
45
|
-
> = z.object({});
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @internal
|
|
49
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
-
*/
|
|
51
|
-
export namespace CommerceLocationRaw$ {
|
|
52
|
-
/** @deprecated use `CommerceLocationRaw$inboundSchema` instead. */
|
|
53
|
-
export const inboundSchema = CommerceLocationRaw$inboundSchema;
|
|
54
|
-
/** @deprecated use `CommerceLocationRaw$outboundSchema` instead. */
|
|
55
|
-
export const outboundSchema = CommerceLocationRaw$outboundSchema;
|
|
56
|
-
/** @deprecated use `CommerceLocationRaw$Outbound` instead. */
|
|
57
|
-
export type Outbound = CommerceLocationRaw$Outbound;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function commerceLocationRawToJSON(
|
|
61
|
-
commerceLocationRaw: CommerceLocationRaw,
|
|
62
|
-
): string {
|
|
63
|
-
return JSON.stringify(
|
|
64
|
-
CommerceLocationRaw$outboundSchema.parse(commerceLocationRaw),
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export function commerceLocationRawFromJSON(
|
|
69
|
-
jsonString: string,
|
|
70
|
-
): SafeParseResult<CommerceLocationRaw, SDKValidationError> {
|
|
71
|
-
return safeParse(
|
|
72
|
-
jsonString,
|
|
73
|
-
(x) => CommerceLocationRaw$inboundSchema.parse(JSON.parse(x)),
|
|
74
|
-
`Failed to parse 'CommerceLocationRaw' from JSON`,
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
28
|
/** @internal */
|
|
79
29
|
export const CommerceLocation$inboundSchema: z.ZodType<
|
|
80
30
|
CommerceLocation,
|
|
@@ -88,7 +38,7 @@ export const CommerceLocation$inboundSchema: z.ZodType<
|
|
|
88
38
|
id: z.string().optional(),
|
|
89
39
|
is_active: z.boolean().optional(),
|
|
90
40
|
name: z.string(),
|
|
91
|
-
raw: z.
|
|
41
|
+
raw: z.record(z.any()).optional(),
|
|
92
42
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
93
43
|
.optional(),
|
|
94
44
|
}).transform((v) => {
|
|
@@ -107,7 +57,7 @@ export type CommerceLocation$Outbound = {
|
|
|
107
57
|
id?: string | undefined;
|
|
108
58
|
is_active?: boolean | undefined;
|
|
109
59
|
name: string;
|
|
110
|
-
raw?:
|
|
60
|
+
raw?: { [k: string]: any } | undefined;
|
|
111
61
|
updated_at?: string | undefined;
|
|
112
62
|
};
|
|
113
63
|
|
|
@@ -123,7 +73,7 @@ export const CommerceLocation$outboundSchema: z.ZodType<
|
|
|
123
73
|
id: z.string().optional(),
|
|
124
74
|
isActive: z.boolean().optional(),
|
|
125
75
|
name: z.string(),
|
|
126
|
-
raw: z.
|
|
76
|
+
raw: z.record(z.any()).optional(),
|
|
127
77
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
128
78
|
}).transform((v) => {
|
|
129
79
|
return remap$(v, {
|
|
@@ -32,8 +32,6 @@ import {
|
|
|
32
32
|
PropertyCrmCompanyAddress$outboundSchema,
|
|
33
33
|
} from "./propertycrmcompanyaddress.js";
|
|
34
34
|
|
|
35
|
-
export type CrmCompanyRaw = {};
|
|
36
|
-
|
|
37
35
|
/**
|
|
38
36
|
* A company represents an organization that optionally is associated with a deal and/or contacts
|
|
39
37
|
*/
|
|
@@ -60,7 +58,7 @@ export type CrmCompany = {
|
|
|
60
58
|
linkUrls?: Array<string> | undefined;
|
|
61
59
|
metadata?: Array<CrmMetadata> | undefined;
|
|
62
60
|
name?: string | undefined;
|
|
63
|
-
raw?:
|
|
61
|
+
raw?: { [k: string]: any } | undefined;
|
|
64
62
|
tags?: Array<string> | undefined;
|
|
65
63
|
telephones?: Array<CrmTelephone> | undefined;
|
|
66
64
|
timezone?: string | undefined;
|
|
@@ -69,50 +67,6 @@ export type CrmCompany = {
|
|
|
69
67
|
websites?: Array<string> | undefined;
|
|
70
68
|
};
|
|
71
69
|
|
|
72
|
-
/** @internal */
|
|
73
|
-
export const CrmCompanyRaw$inboundSchema: z.ZodType<
|
|
74
|
-
CrmCompanyRaw,
|
|
75
|
-
z.ZodTypeDef,
|
|
76
|
-
unknown
|
|
77
|
-
> = z.object({});
|
|
78
|
-
|
|
79
|
-
/** @internal */
|
|
80
|
-
export type CrmCompanyRaw$Outbound = {};
|
|
81
|
-
|
|
82
|
-
/** @internal */
|
|
83
|
-
export const CrmCompanyRaw$outboundSchema: z.ZodType<
|
|
84
|
-
CrmCompanyRaw$Outbound,
|
|
85
|
-
z.ZodTypeDef,
|
|
86
|
-
CrmCompanyRaw
|
|
87
|
-
> = z.object({});
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* @internal
|
|
91
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
92
|
-
*/
|
|
93
|
-
export namespace CrmCompanyRaw$ {
|
|
94
|
-
/** @deprecated use `CrmCompanyRaw$inboundSchema` instead. */
|
|
95
|
-
export const inboundSchema = CrmCompanyRaw$inboundSchema;
|
|
96
|
-
/** @deprecated use `CrmCompanyRaw$outboundSchema` instead. */
|
|
97
|
-
export const outboundSchema = CrmCompanyRaw$outboundSchema;
|
|
98
|
-
/** @deprecated use `CrmCompanyRaw$Outbound` instead. */
|
|
99
|
-
export type Outbound = CrmCompanyRaw$Outbound;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
export function crmCompanyRawToJSON(crmCompanyRaw: CrmCompanyRaw): string {
|
|
103
|
-
return JSON.stringify(CrmCompanyRaw$outboundSchema.parse(crmCompanyRaw));
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export function crmCompanyRawFromJSON(
|
|
107
|
-
jsonString: string,
|
|
108
|
-
): SafeParseResult<CrmCompanyRaw, SDKValidationError> {
|
|
109
|
-
return safeParse(
|
|
110
|
-
jsonString,
|
|
111
|
-
(x) => CrmCompanyRaw$inboundSchema.parse(JSON.parse(x)),
|
|
112
|
-
`Failed to parse 'CrmCompanyRaw' from JSON`,
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
70
|
/** @internal */
|
|
117
71
|
export const CrmCompany$inboundSchema: z.ZodType<
|
|
118
72
|
CrmCompany,
|
|
@@ -133,7 +87,7 @@ export const CrmCompany$inboundSchema: z.ZodType<
|
|
|
133
87
|
link_urls: z.array(z.string()).optional(),
|
|
134
88
|
metadata: z.array(CrmMetadata$inboundSchema).optional(),
|
|
135
89
|
name: z.string().optional(),
|
|
136
|
-
raw: z.
|
|
90
|
+
raw: z.record(z.any()).optional(),
|
|
137
91
|
tags: z.array(z.string()).optional(),
|
|
138
92
|
telephones: z.array(CrmTelephone$inboundSchema).optional(),
|
|
139
93
|
timezone: z.string().optional(),
|
|
@@ -168,7 +122,7 @@ export type CrmCompany$Outbound = {
|
|
|
168
122
|
link_urls?: Array<string> | undefined;
|
|
169
123
|
metadata?: Array<CrmMetadata$Outbound> | undefined;
|
|
170
124
|
name?: string | undefined;
|
|
171
|
-
raw?:
|
|
125
|
+
raw?: { [k: string]: any } | undefined;
|
|
172
126
|
tags?: Array<string> | undefined;
|
|
173
127
|
telephones?: Array<CrmTelephone$Outbound> | undefined;
|
|
174
128
|
timezone?: string | undefined;
|
|
@@ -196,7 +150,7 @@ export const CrmCompany$outboundSchema: z.ZodType<
|
|
|
196
150
|
linkUrls: z.array(z.string()).optional(),
|
|
197
151
|
metadata: z.array(CrmMetadata$outboundSchema).optional(),
|
|
198
152
|
name: z.string().optional(),
|
|
199
|
-
raw: z.
|
|
153
|
+
raw: z.record(z.any()).optional(),
|
|
200
154
|
tags: z.array(z.string()).optional(),
|
|
201
155
|
telephones: z.array(CrmTelephone$outboundSchema).optional(),
|
|
202
156
|
timezone: z.string().optional(),
|
|
@@ -32,8 +32,6 @@ import {
|
|
|
32
32
|
PropertyCrmContactAddress$outboundSchema,
|
|
33
33
|
} from "./propertycrmcontactaddress.js";
|
|
34
34
|
|
|
35
|
-
export type CrmContactRaw = {};
|
|
36
|
-
|
|
37
35
|
/**
|
|
38
36
|
* A contact represents a person that optionally is associated with a deal and/or a company
|
|
39
37
|
*/
|
|
@@ -60,7 +58,7 @@ export type CrmContact = {
|
|
|
60
58
|
linkUrls?: Array<string> | undefined;
|
|
61
59
|
metadata?: Array<CrmMetadata> | undefined;
|
|
62
60
|
name?: string | undefined;
|
|
63
|
-
raw?:
|
|
61
|
+
raw?: { [k: string]: any } | undefined;
|
|
64
62
|
/**
|
|
65
63
|
* An array of telephones for this contact
|
|
66
64
|
*/
|
|
@@ -70,50 +68,6 @@ export type CrmContact = {
|
|
|
70
68
|
userId?: string | undefined;
|
|
71
69
|
};
|
|
72
70
|
|
|
73
|
-
/** @internal */
|
|
74
|
-
export const CrmContactRaw$inboundSchema: z.ZodType<
|
|
75
|
-
CrmContactRaw,
|
|
76
|
-
z.ZodTypeDef,
|
|
77
|
-
unknown
|
|
78
|
-
> = z.object({});
|
|
79
|
-
|
|
80
|
-
/** @internal */
|
|
81
|
-
export type CrmContactRaw$Outbound = {};
|
|
82
|
-
|
|
83
|
-
/** @internal */
|
|
84
|
-
export const CrmContactRaw$outboundSchema: z.ZodType<
|
|
85
|
-
CrmContactRaw$Outbound,
|
|
86
|
-
z.ZodTypeDef,
|
|
87
|
-
CrmContactRaw
|
|
88
|
-
> = z.object({});
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* @internal
|
|
92
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
93
|
-
*/
|
|
94
|
-
export namespace CrmContactRaw$ {
|
|
95
|
-
/** @deprecated use `CrmContactRaw$inboundSchema` instead. */
|
|
96
|
-
export const inboundSchema = CrmContactRaw$inboundSchema;
|
|
97
|
-
/** @deprecated use `CrmContactRaw$outboundSchema` instead. */
|
|
98
|
-
export const outboundSchema = CrmContactRaw$outboundSchema;
|
|
99
|
-
/** @deprecated use `CrmContactRaw$Outbound` instead. */
|
|
100
|
-
export type Outbound = CrmContactRaw$Outbound;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export function crmContactRawToJSON(crmContactRaw: CrmContactRaw): string {
|
|
104
|
-
return JSON.stringify(CrmContactRaw$outboundSchema.parse(crmContactRaw));
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export function crmContactRawFromJSON(
|
|
108
|
-
jsonString: string,
|
|
109
|
-
): SafeParseResult<CrmContactRaw, SDKValidationError> {
|
|
110
|
-
return safeParse(
|
|
111
|
-
jsonString,
|
|
112
|
-
(x) => CrmContactRaw$inboundSchema.parse(JSON.parse(x)),
|
|
113
|
-
`Failed to parse 'CrmContactRaw' from JSON`,
|
|
114
|
-
);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
71
|
/** @internal */
|
|
118
72
|
export const CrmContact$inboundSchema: z.ZodType<
|
|
119
73
|
CrmContact,
|
|
@@ -131,7 +85,7 @@ export const CrmContact$inboundSchema: z.ZodType<
|
|
|
131
85
|
link_urls: z.array(z.string()).optional(),
|
|
132
86
|
metadata: z.array(CrmMetadata$inboundSchema).optional(),
|
|
133
87
|
name: z.string().optional(),
|
|
134
|
-
raw: z.
|
|
88
|
+
raw: z.record(z.any()).optional(),
|
|
135
89
|
telephones: z.array(CrmTelephone$inboundSchema).optional(),
|
|
136
90
|
title: z.string().optional(),
|
|
137
91
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
@@ -160,7 +114,7 @@ export type CrmContact$Outbound = {
|
|
|
160
114
|
link_urls?: Array<string> | undefined;
|
|
161
115
|
metadata?: Array<CrmMetadata$Outbound> | undefined;
|
|
162
116
|
name?: string | undefined;
|
|
163
|
-
raw?:
|
|
117
|
+
raw?: { [k: string]: any } | undefined;
|
|
164
118
|
telephones?: Array<CrmTelephone$Outbound> | undefined;
|
|
165
119
|
title?: string | undefined;
|
|
166
120
|
updated_at?: string | undefined;
|
|
@@ -183,7 +137,7 @@ export const CrmContact$outboundSchema: z.ZodType<
|
|
|
183
137
|
linkUrls: z.array(z.string()).optional(),
|
|
184
138
|
metadata: z.array(CrmMetadata$outboundSchema).optional(),
|
|
185
139
|
name: z.string().optional(),
|
|
186
|
-
raw: z.
|
|
140
|
+
raw: z.record(z.any()).optional(),
|
|
187
141
|
telephones: z.array(CrmTelephone$outboundSchema).optional(),
|
|
188
142
|
title: z.string().optional(),
|
|
189
143
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
@@ -14,8 +14,6 @@ import {
|
|
|
14
14
|
CrmMetadata$outboundSchema,
|
|
15
15
|
} from "./crmmetadata.js";
|
|
16
16
|
|
|
17
|
-
export type CrmDealRaw = {};
|
|
18
|
-
|
|
19
17
|
/**
|
|
20
18
|
* A deal represents an opportunity with companies and/or contacts
|
|
21
19
|
*/
|
|
@@ -33,7 +31,7 @@ export type CrmDeal = {
|
|
|
33
31
|
pipeline?: string | undefined;
|
|
34
32
|
pipelineId?: string | undefined;
|
|
35
33
|
probability?: number | undefined;
|
|
36
|
-
raw?:
|
|
34
|
+
raw?: { [k: string]: any } | undefined;
|
|
37
35
|
source?: string | undefined;
|
|
38
36
|
stage?: string | undefined;
|
|
39
37
|
stageId?: string | undefined;
|
|
@@ -43,50 +41,6 @@ export type CrmDeal = {
|
|
|
43
41
|
wonReason?: string | undefined;
|
|
44
42
|
};
|
|
45
43
|
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const CrmDealRaw$inboundSchema: z.ZodType<
|
|
48
|
-
CrmDealRaw,
|
|
49
|
-
z.ZodTypeDef,
|
|
50
|
-
unknown
|
|
51
|
-
> = z.object({});
|
|
52
|
-
|
|
53
|
-
/** @internal */
|
|
54
|
-
export type CrmDealRaw$Outbound = {};
|
|
55
|
-
|
|
56
|
-
/** @internal */
|
|
57
|
-
export const CrmDealRaw$outboundSchema: z.ZodType<
|
|
58
|
-
CrmDealRaw$Outbound,
|
|
59
|
-
z.ZodTypeDef,
|
|
60
|
-
CrmDealRaw
|
|
61
|
-
> = z.object({});
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* @internal
|
|
65
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
|
-
*/
|
|
67
|
-
export namespace CrmDealRaw$ {
|
|
68
|
-
/** @deprecated use `CrmDealRaw$inboundSchema` instead. */
|
|
69
|
-
export const inboundSchema = CrmDealRaw$inboundSchema;
|
|
70
|
-
/** @deprecated use `CrmDealRaw$outboundSchema` instead. */
|
|
71
|
-
export const outboundSchema = CrmDealRaw$outboundSchema;
|
|
72
|
-
/** @deprecated use `CrmDealRaw$Outbound` instead. */
|
|
73
|
-
export type Outbound = CrmDealRaw$Outbound;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function crmDealRawToJSON(crmDealRaw: CrmDealRaw): string {
|
|
77
|
-
return JSON.stringify(CrmDealRaw$outboundSchema.parse(crmDealRaw));
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export function crmDealRawFromJSON(
|
|
81
|
-
jsonString: string,
|
|
82
|
-
): SafeParseResult<CrmDealRaw, SDKValidationError> {
|
|
83
|
-
return safeParse(
|
|
84
|
-
jsonString,
|
|
85
|
-
(x) => CrmDealRaw$inboundSchema.parse(JSON.parse(x)),
|
|
86
|
-
`Failed to parse 'CrmDealRaw' from JSON`,
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
44
|
/** @internal */
|
|
91
45
|
export const CrmDeal$inboundSchema: z.ZodType<CrmDeal, z.ZodTypeDef, unknown> =
|
|
92
46
|
z.object({
|
|
@@ -106,7 +60,7 @@ export const CrmDeal$inboundSchema: z.ZodType<CrmDeal, z.ZodTypeDef, unknown> =
|
|
|
106
60
|
pipeline: z.string().optional(),
|
|
107
61
|
pipeline_id: z.string().optional(),
|
|
108
62
|
probability: z.number().optional(),
|
|
109
|
-
raw: z.
|
|
63
|
+
raw: z.record(z.any()).optional(),
|
|
110
64
|
source: z.string().optional(),
|
|
111
65
|
stage: z.string().optional(),
|
|
112
66
|
stage_id: z.string().optional(),
|
|
@@ -146,7 +100,7 @@ export type CrmDeal$Outbound = {
|
|
|
146
100
|
pipeline?: string | undefined;
|
|
147
101
|
pipeline_id?: string | undefined;
|
|
148
102
|
probability?: number | undefined;
|
|
149
|
-
raw?:
|
|
103
|
+
raw?: { [k: string]: any } | undefined;
|
|
150
104
|
source?: string | undefined;
|
|
151
105
|
stage?: string | undefined;
|
|
152
106
|
stage_id?: string | undefined;
|
|
@@ -175,7 +129,7 @@ export const CrmDeal$outboundSchema: z.ZodType<
|
|
|
175
129
|
pipeline: z.string().optional(),
|
|
176
130
|
pipelineId: z.string().optional(),
|
|
177
131
|
probability: z.number().optional(),
|
|
178
|
-
raw: z.
|
|
132
|
+
raw: z.record(z.any()).optional(),
|
|
179
133
|
source: z.string().optional(),
|
|
180
134
|
stage: z.string().optional(),
|
|
181
135
|
stageId: z.string().optional(),
|