@unified-api/typescript-sdk 2.9.24 → 2.9.26
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/funcs/messageListMessagingMessages.d.ts.map +1 -1
- package/funcs/messageListMessagingMessages.js +0 -1
- package/funcs/messageListMessagingMessages.js.map +1 -1
- package/funcs/messagingListMessagingMessages.d.ts.map +1 -1
- package/funcs/messagingListMessagingMessages.js +0 -1
- package/funcs/messagingListMessagingMessages.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/retries.js +0 -1
- package/lib/retries.js.map +1 -1
- package/package.json +6 -7
- package/sdk/models/operations/listmessagingmessages.d.ts +0 -2
- package/sdk/models/operations/listmessagingmessages.d.ts.map +1 -1
- package/sdk/models/operations/listmessagingmessages.js +0 -4
- package/sdk/models/operations/listmessagingmessages.js.map +1 -1
- package/sdk/models/shared/commercecollection.d.ts +23 -6
- package/sdk/models/shared/commercecollection.d.ts.map +1 -1
- package/sdk/models/shared/commercecollection.js +28 -3
- package/sdk/models/shared/commercecollection.js.map +1 -1
- package/sdk/models/shared/commerceinventory.d.ts +23 -6
- package/sdk/models/shared/commerceinventory.d.ts.map +1 -1
- package/sdk/models/shared/commerceinventory.js +26 -3
- package/sdk/models/shared/commerceinventory.js.map +1 -1
- package/sdk/models/shared/commerceitem.d.ts +23 -6
- package/sdk/models/shared/commerceitem.d.ts.map +1 -1
- package/sdk/models/shared/commerceitem.js +26 -3
- package/sdk/models/shared/commerceitem.js.map +1 -1
- package/sdk/models/shared/commerceitemmetadata.d.ts +46 -12
- package/sdk/models/shared/commerceitemmetadata.d.ts.map +1 -1
- package/sdk/models/shared/commerceitemmetadata.js +52 -5
- package/sdk/models/shared/commerceitemmetadata.js.map +1 -1
- package/sdk/models/shared/commercelocation.d.ts +23 -6
- package/sdk/models/shared/commercelocation.d.ts.map +1 -1
- package/sdk/models/shared/commercelocation.js +26 -3
- package/sdk/models/shared/commercelocation.js.map +1 -1
- package/sdk/models/shared/integrationsupport.d.ts +0 -30
- package/sdk/models/shared/integrationsupport.d.ts.map +1 -1
- package/sdk/models/shared/integrationsupport.js +5 -30
- package/sdk/models/shared/integrationsupport.js.map +1 -1
- package/src/funcs/messageListMessagingMessages.ts +0 -1
- package/src/funcs/messagingListMessagingMessages.ts +0 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/retries.ts +0 -1
- package/src/sdk/models/operations/listmessagingmessages.ts +0 -6
- package/src/sdk/models/shared/commercecollection.ts +44 -4
- package/src/sdk/models/shared/commerceinventory.ts +54 -4
- package/src/sdk/models/shared/commerceitem.ts +52 -4
- package/src/sdk/models/shared/commerceitemmetadata.ts +97 -8
- package/src/sdk/models/shared/commercelocation.ts +54 -4
- package/src/sdk/models/shared/integrationsupport.ts +0 -32
|
@@ -8,6 +8,8 @@ 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
|
+
|
|
11
13
|
export type CommerceInventory = {
|
|
12
14
|
available: number;
|
|
13
15
|
id?: string | undefined;
|
|
@@ -15,10 +17,58 @@ export type CommerceInventory = {
|
|
|
15
17
|
itemOptionId?: string | undefined;
|
|
16
18
|
itemVariantId?: string | undefined;
|
|
17
19
|
locationId?: string | undefined;
|
|
18
|
-
raw?:
|
|
20
|
+
raw?: CommerceInventoryRaw | undefined;
|
|
19
21
|
updatedAt?: Date | undefined;
|
|
20
22
|
};
|
|
21
23
|
|
|
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
|
+
|
|
22
72
|
/** @internal */
|
|
23
73
|
export const CommerceInventory$inboundSchema: z.ZodType<
|
|
24
74
|
CommerceInventory,
|
|
@@ -31,7 +81,7 @@ export const CommerceInventory$inboundSchema: z.ZodType<
|
|
|
31
81
|
item_option_id: z.string().optional(),
|
|
32
82
|
item_variant_id: z.string().optional(),
|
|
33
83
|
location_id: z.string().optional(),
|
|
34
|
-
raw: z.
|
|
84
|
+
raw: z.lazy(() => CommerceInventoryRaw$inboundSchema).optional(),
|
|
35
85
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
36
86
|
.optional(),
|
|
37
87
|
}).transform((v) => {
|
|
@@ -52,7 +102,7 @@ export type CommerceInventory$Outbound = {
|
|
|
52
102
|
item_option_id?: string | undefined;
|
|
53
103
|
item_variant_id?: string | undefined;
|
|
54
104
|
location_id?: string | undefined;
|
|
55
|
-
raw?:
|
|
105
|
+
raw?: CommerceInventoryRaw$Outbound | undefined;
|
|
56
106
|
updated_at?: string | undefined;
|
|
57
107
|
};
|
|
58
108
|
|
|
@@ -68,7 +118,7 @@ export const CommerceInventory$outboundSchema: z.ZodType<
|
|
|
68
118
|
itemOptionId: z.string().optional(),
|
|
69
119
|
itemVariantId: z.string().optional(),
|
|
70
120
|
locationId: z.string().optional(),
|
|
71
|
-
raw: z.
|
|
121
|
+
raw: z.lazy(() => CommerceInventoryRaw$outboundSchema).optional(),
|
|
72
122
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
73
123
|
}).transform((v) => {
|
|
74
124
|
return remap$(v, {
|
|
@@ -26,6 +26,8 @@ import {
|
|
|
26
26
|
CommerceItemVariant$outboundSchema,
|
|
27
27
|
} from "./commerceitemvariant.js";
|
|
28
28
|
|
|
29
|
+
export type CommerceItemRaw = {};
|
|
30
|
+
|
|
29
31
|
export type CommerceItem = {
|
|
30
32
|
accountId?: string | undefined;
|
|
31
33
|
collectionIds?: Array<string> | undefined;
|
|
@@ -39,7 +41,7 @@ export type CommerceItem = {
|
|
|
39
41
|
name?: string | undefined;
|
|
40
42
|
publicDescription?: string | undefined;
|
|
41
43
|
publicName?: string | undefined;
|
|
42
|
-
raw?:
|
|
44
|
+
raw?: CommerceItemRaw | undefined;
|
|
43
45
|
slug?: string | undefined;
|
|
44
46
|
tags?: Array<string> | undefined;
|
|
45
47
|
type?: string | undefined;
|
|
@@ -51,6 +53,52 @@ export type CommerceItem = {
|
|
|
51
53
|
vendorName?: string | undefined;
|
|
52
54
|
};
|
|
53
55
|
|
|
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
|
+
|
|
54
102
|
/** @internal */
|
|
55
103
|
export const CommerceItem$inboundSchema: z.ZodType<
|
|
56
104
|
CommerceItem,
|
|
@@ -70,7 +118,7 @@ export const CommerceItem$inboundSchema: z.ZodType<
|
|
|
70
118
|
name: z.string().optional(),
|
|
71
119
|
public_description: z.string().optional(),
|
|
72
120
|
public_name: z.string().optional(),
|
|
73
|
-
raw: z.
|
|
121
|
+
raw: z.lazy(() => CommerceItemRaw$inboundSchema).optional(),
|
|
74
122
|
slug: z.string().optional(),
|
|
75
123
|
tags: z.array(z.string()).optional(),
|
|
76
124
|
type: z.string().optional(),
|
|
@@ -106,7 +154,7 @@ export type CommerceItem$Outbound = {
|
|
|
106
154
|
name?: string | undefined;
|
|
107
155
|
public_description?: string | undefined;
|
|
108
156
|
public_name?: string | undefined;
|
|
109
|
-
raw?:
|
|
157
|
+
raw?: CommerceItemRaw$Outbound | undefined;
|
|
110
158
|
slug?: string | undefined;
|
|
111
159
|
tags?: Array<string> | undefined;
|
|
112
160
|
type?: string | undefined;
|
|
@@ -133,7 +181,7 @@ export const CommerceItem$outboundSchema: z.ZodType<
|
|
|
133
181
|
name: z.string().optional(),
|
|
134
182
|
publicDescription: z.string().optional(),
|
|
135
183
|
publicName: z.string().optional(),
|
|
136
|
-
raw: z.
|
|
184
|
+
raw: z.lazy(() => CommerceItemRaw$outboundSchema).optional(),
|
|
137
185
|
slug: z.string().optional(),
|
|
138
186
|
tags: z.array(z.string()).optional(),
|
|
139
187
|
type: z.string().optional(),
|
|
@@ -8,27 +8,116 @@ 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 ExtraData = {};
|
|
12
|
+
|
|
13
|
+
export type Value = {};
|
|
14
|
+
|
|
11
15
|
export type CommerceItemMetadata = {
|
|
12
|
-
extraData?:
|
|
16
|
+
extraData?: ExtraData | undefined;
|
|
13
17
|
id?: string | undefined;
|
|
14
18
|
key: string;
|
|
15
19
|
namespace?: string | undefined;
|
|
16
20
|
type?: string | undefined;
|
|
17
|
-
value?:
|
|
21
|
+
value?: Value | undefined;
|
|
18
22
|
};
|
|
19
23
|
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ExtraData$inboundSchema: z.ZodType<
|
|
26
|
+
ExtraData,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({});
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export type ExtraData$Outbound = {};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const ExtraData$outboundSchema: z.ZodType<
|
|
36
|
+
ExtraData$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
ExtraData
|
|
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 ExtraData$ {
|
|
46
|
+
/** @deprecated use `ExtraData$inboundSchema` instead. */
|
|
47
|
+
export const inboundSchema = ExtraData$inboundSchema;
|
|
48
|
+
/** @deprecated use `ExtraData$outboundSchema` instead. */
|
|
49
|
+
export const outboundSchema = ExtraData$outboundSchema;
|
|
50
|
+
/** @deprecated use `ExtraData$Outbound` instead. */
|
|
51
|
+
export type Outbound = ExtraData$Outbound;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function extraDataToJSON(extraData: ExtraData): string {
|
|
55
|
+
return JSON.stringify(ExtraData$outboundSchema.parse(extraData));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function extraDataFromJSON(
|
|
59
|
+
jsonString: string,
|
|
60
|
+
): SafeParseResult<ExtraData, SDKValidationError> {
|
|
61
|
+
return safeParse(
|
|
62
|
+
jsonString,
|
|
63
|
+
(x) => ExtraData$inboundSchema.parse(JSON.parse(x)),
|
|
64
|
+
`Failed to parse 'ExtraData' from JSON`,
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const Value$inboundSchema: z.ZodType<Value, z.ZodTypeDef, unknown> = z
|
|
70
|
+
.object({});
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export type Value$Outbound = {};
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const Value$outboundSchema: z.ZodType<
|
|
77
|
+
Value$Outbound,
|
|
78
|
+
z.ZodTypeDef,
|
|
79
|
+
Value
|
|
80
|
+
> = z.object({});
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @internal
|
|
84
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
85
|
+
*/
|
|
86
|
+
export namespace Value$ {
|
|
87
|
+
/** @deprecated use `Value$inboundSchema` instead. */
|
|
88
|
+
export const inboundSchema = Value$inboundSchema;
|
|
89
|
+
/** @deprecated use `Value$outboundSchema` instead. */
|
|
90
|
+
export const outboundSchema = Value$outboundSchema;
|
|
91
|
+
/** @deprecated use `Value$Outbound` instead. */
|
|
92
|
+
export type Outbound = Value$Outbound;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function valueToJSON(value: Value): string {
|
|
96
|
+
return JSON.stringify(Value$outboundSchema.parse(value));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function valueFromJSON(
|
|
100
|
+
jsonString: string,
|
|
101
|
+
): SafeParseResult<Value, SDKValidationError> {
|
|
102
|
+
return safeParse(
|
|
103
|
+
jsonString,
|
|
104
|
+
(x) => Value$inboundSchema.parse(JSON.parse(x)),
|
|
105
|
+
`Failed to parse 'Value' from JSON`,
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
|
|
20
109
|
/** @internal */
|
|
21
110
|
export const CommerceItemMetadata$inboundSchema: z.ZodType<
|
|
22
111
|
CommerceItemMetadata,
|
|
23
112
|
z.ZodTypeDef,
|
|
24
113
|
unknown
|
|
25
114
|
> = z.object({
|
|
26
|
-
extra_data: z.
|
|
115
|
+
extra_data: z.lazy(() => ExtraData$inboundSchema).optional(),
|
|
27
116
|
id: z.string().optional(),
|
|
28
117
|
key: z.string(),
|
|
29
118
|
namespace: z.string().optional(),
|
|
30
119
|
type: z.string().optional(),
|
|
31
|
-
value: z.
|
|
120
|
+
value: z.lazy(() => Value$inboundSchema).optional(),
|
|
32
121
|
}).transform((v) => {
|
|
33
122
|
return remap$(v, {
|
|
34
123
|
"extra_data": "extraData",
|
|
@@ -37,12 +126,12 @@ export const CommerceItemMetadata$inboundSchema: z.ZodType<
|
|
|
37
126
|
|
|
38
127
|
/** @internal */
|
|
39
128
|
export type CommerceItemMetadata$Outbound = {
|
|
40
|
-
extra_data?:
|
|
129
|
+
extra_data?: ExtraData$Outbound | undefined;
|
|
41
130
|
id?: string | undefined;
|
|
42
131
|
key: string;
|
|
43
132
|
namespace?: string | undefined;
|
|
44
133
|
type?: string | undefined;
|
|
45
|
-
value?:
|
|
134
|
+
value?: Value$Outbound | undefined;
|
|
46
135
|
};
|
|
47
136
|
|
|
48
137
|
/** @internal */
|
|
@@ -51,12 +140,12 @@ export const CommerceItemMetadata$outboundSchema: z.ZodType<
|
|
|
51
140
|
z.ZodTypeDef,
|
|
52
141
|
CommerceItemMetadata
|
|
53
142
|
> = z.object({
|
|
54
|
-
extraData: z.
|
|
143
|
+
extraData: z.lazy(() => ExtraData$outboundSchema).optional(),
|
|
55
144
|
id: z.string().optional(),
|
|
56
145
|
key: z.string(),
|
|
57
146
|
namespace: z.string().optional(),
|
|
58
147
|
type: z.string().optional(),
|
|
59
|
-
value: z.
|
|
148
|
+
value: z.lazy(() => Value$outboundSchema).optional(),
|
|
60
149
|
}).transform((v) => {
|
|
61
150
|
return remap$(v, {
|
|
62
151
|
extraData: "extra_data",
|
|
@@ -14,6 +14,8 @@ import {
|
|
|
14
14
|
PropertyCommerceLocationAddress$outboundSchema,
|
|
15
15
|
} from "./propertycommercelocationaddress.js";
|
|
16
16
|
|
|
17
|
+
export type CommerceLocationRaw = {};
|
|
18
|
+
|
|
17
19
|
export type CommerceLocation = {
|
|
18
20
|
address?: PropertyCommerceLocationAddress | undefined;
|
|
19
21
|
createdAt?: Date | undefined;
|
|
@@ -21,10 +23,58 @@ export type CommerceLocation = {
|
|
|
21
23
|
id?: string | undefined;
|
|
22
24
|
isActive?: boolean | undefined;
|
|
23
25
|
name: string;
|
|
24
|
-
raw?:
|
|
26
|
+
raw?: CommerceLocationRaw | undefined;
|
|
25
27
|
updatedAt?: Date | undefined;
|
|
26
28
|
};
|
|
27
29
|
|
|
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
|
+
|
|
28
78
|
/** @internal */
|
|
29
79
|
export const CommerceLocation$inboundSchema: z.ZodType<
|
|
30
80
|
CommerceLocation,
|
|
@@ -38,7 +88,7 @@ export const CommerceLocation$inboundSchema: z.ZodType<
|
|
|
38
88
|
id: z.string().optional(),
|
|
39
89
|
is_active: z.boolean().optional(),
|
|
40
90
|
name: z.string(),
|
|
41
|
-
raw: z.
|
|
91
|
+
raw: z.lazy(() => CommerceLocationRaw$inboundSchema).optional(),
|
|
42
92
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
43
93
|
.optional(),
|
|
44
94
|
}).transform((v) => {
|
|
@@ -57,7 +107,7 @@ export type CommerceLocation$Outbound = {
|
|
|
57
107
|
id?: string | undefined;
|
|
58
108
|
is_active?: boolean | undefined;
|
|
59
109
|
name: string;
|
|
60
|
-
raw?:
|
|
110
|
+
raw?: CommerceLocationRaw$Outbound | undefined;
|
|
61
111
|
updated_at?: string | undefined;
|
|
62
112
|
};
|
|
63
113
|
|
|
@@ -73,7 +123,7 @@ export const CommerceLocation$outboundSchema: z.ZodType<
|
|
|
73
123
|
id: z.string().optional(),
|
|
74
124
|
isActive: z.boolean().optional(),
|
|
75
125
|
name: z.string(),
|
|
76
|
-
raw: z.
|
|
126
|
+
raw: z.lazy(() => CommerceLocationRaw$outboundSchema).optional(),
|
|
77
127
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
78
128
|
}).transform((v) => {
|
|
79
129
|
return remap$(v, {
|
|
@@ -232,13 +232,6 @@ export const ListRepoId = {
|
|
|
232
232
|
} as const;
|
|
233
233
|
export type ListRepoId = ClosedEnum<typeof ListRepoId>;
|
|
234
234
|
|
|
235
|
-
export const ListRootId = {
|
|
236
|
-
SupportedRequired: "supported-required",
|
|
237
|
-
Supported: "supported",
|
|
238
|
-
NotSupported: "not-supported",
|
|
239
|
-
} as const;
|
|
240
|
-
export type ListRootId = ClosedEnum<typeof ListRootId>;
|
|
241
|
-
|
|
242
235
|
export const ListSortByCreatedAt = {
|
|
243
236
|
SupportedRequired: "supported-required",
|
|
244
237
|
Supported: "supported",
|
|
@@ -476,7 +469,6 @@ export type IntegrationSupport = {
|
|
|
476
469
|
listQuery?: ListQuery | undefined;
|
|
477
470
|
listRawFields?: ListRawFields | undefined;
|
|
478
471
|
listRepoId?: ListRepoId | undefined;
|
|
479
|
-
listRootId?: ListRootId | undefined;
|
|
480
472
|
listSortByCreatedAt?: ListSortByCreatedAt | undefined;
|
|
481
473
|
listSortByName?: ListSortByName | undefined;
|
|
482
474
|
listSortByUpdatedAt?: ListSortByUpdatedAt | undefined;
|
|
@@ -1134,25 +1126,6 @@ export namespace ListRepoId$ {
|
|
|
1134
1126
|
export const outboundSchema = ListRepoId$outboundSchema;
|
|
1135
1127
|
}
|
|
1136
1128
|
|
|
1137
|
-
/** @internal */
|
|
1138
|
-
export const ListRootId$inboundSchema: z.ZodNativeEnum<typeof ListRootId> = z
|
|
1139
|
-
.nativeEnum(ListRootId);
|
|
1140
|
-
|
|
1141
|
-
/** @internal */
|
|
1142
|
-
export const ListRootId$outboundSchema: z.ZodNativeEnum<typeof ListRootId> =
|
|
1143
|
-
ListRootId$inboundSchema;
|
|
1144
|
-
|
|
1145
|
-
/**
|
|
1146
|
-
* @internal
|
|
1147
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1148
|
-
*/
|
|
1149
|
-
export namespace ListRootId$ {
|
|
1150
|
-
/** @deprecated use `ListRootId$inboundSchema` instead. */
|
|
1151
|
-
export const inboundSchema = ListRootId$inboundSchema;
|
|
1152
|
-
/** @deprecated use `ListRootId$outboundSchema` instead. */
|
|
1153
|
-
export const outboundSchema = ListRootId$outboundSchema;
|
|
1154
|
-
}
|
|
1155
|
-
|
|
1156
1129
|
/** @internal */
|
|
1157
1130
|
export const ListSortByCreatedAt$inboundSchema: z.ZodNativeEnum<
|
|
1158
1131
|
typeof ListSortByCreatedAt
|
|
@@ -1763,7 +1736,6 @@ export const IntegrationSupport$inboundSchema: z.ZodType<
|
|
|
1763
1736
|
list_query: ListQuery$inboundSchema.optional(),
|
|
1764
1737
|
list_raw_fields: ListRawFields$inboundSchema.optional(),
|
|
1765
1738
|
list_repo_id: ListRepoId$inboundSchema.optional(),
|
|
1766
|
-
list_root_id: ListRootId$inboundSchema.optional(),
|
|
1767
1739
|
list_sort_by_created_at: ListSortByCreatedAt$inboundSchema.optional(),
|
|
1768
1740
|
list_sort_by_name: ListSortByName$inboundSchema.optional(),
|
|
1769
1741
|
list_sort_by_updated_at: ListSortByUpdatedAt$inboundSchema.optional(),
|
|
@@ -1833,7 +1805,6 @@ export const IntegrationSupport$inboundSchema: z.ZodType<
|
|
|
1833
1805
|
"list_query": "listQuery",
|
|
1834
1806
|
"list_raw_fields": "listRawFields",
|
|
1835
1807
|
"list_repo_id": "listRepoId",
|
|
1836
|
-
"list_root_id": "listRootId",
|
|
1837
1808
|
"list_sort_by_created_at": "listSortByCreatedAt",
|
|
1838
1809
|
"list_sort_by_name": "listSortByName",
|
|
1839
1810
|
"list_sort_by_updated_at": "listSortByUpdatedAt",
|
|
@@ -1903,7 +1874,6 @@ export type IntegrationSupport$Outbound = {
|
|
|
1903
1874
|
list_query?: string | undefined;
|
|
1904
1875
|
list_raw_fields?: string | undefined;
|
|
1905
1876
|
list_repo_id?: string | undefined;
|
|
1906
|
-
list_root_id?: string | undefined;
|
|
1907
1877
|
list_sort_by_created_at?: string | undefined;
|
|
1908
1878
|
list_sort_by_name?: string | undefined;
|
|
1909
1879
|
list_sort_by_updated_at?: string | undefined;
|
|
@@ -1977,7 +1947,6 @@ export const IntegrationSupport$outboundSchema: z.ZodType<
|
|
|
1977
1947
|
listQuery: ListQuery$outboundSchema.optional(),
|
|
1978
1948
|
listRawFields: ListRawFields$outboundSchema.optional(),
|
|
1979
1949
|
listRepoId: ListRepoId$outboundSchema.optional(),
|
|
1980
|
-
listRootId: ListRootId$outboundSchema.optional(),
|
|
1981
1950
|
listSortByCreatedAt: ListSortByCreatedAt$outboundSchema.optional(),
|
|
1982
1951
|
listSortByName: ListSortByName$outboundSchema.optional(),
|
|
1983
1952
|
listSortByUpdatedAt: ListSortByUpdatedAt$outboundSchema.optional(),
|
|
@@ -2046,7 +2015,6 @@ export const IntegrationSupport$outboundSchema: z.ZodType<
|
|
|
2046
2015
|
listQuery: "list_query",
|
|
2047
2016
|
listRawFields: "list_raw_fields",
|
|
2048
2017
|
listRepoId: "list_repo_id",
|
|
2049
|
-
listRootId: "list_root_id",
|
|
2050
2018
|
listSortByCreatedAt: "list_sort_by_created_at",
|
|
2051
2019
|
listSortByName: "list_sort_by_name",
|
|
2052
2020
|
listSortByUpdatedAt: "list_sort_by_updated_at",
|