ce-storefront 0.4.1 → 0.4.3
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/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/components/index.d.ts +0 -1
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +0 -1
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/product.d.ts +2 -2
- package/esm/models/components/product.d.ts.map +1 -1
- package/esm/models/components/product.js +2 -2
- package/esm/models/components/product.js.map +1 -1
- package/esm/models/components/productbundleitem.d.ts +3 -28
- package/esm/models/components/productbundleitem.d.ts.map +1 -1
- package/esm/models/components/productbundleitem.js +2 -35
- package/esm/models/components/productbundleitem.js.map +1 -1
- package/esm/models/components/productdetail.d.ts +2 -2
- package/esm/models/components/productdetail.d.ts.map +1 -1
- package/esm/models/components/productdetail.js +2 -2
- package/esm/models/components/productdetail.js.map +1 -1
- package/esm/models/operations/getcrosssell.d.ts +32 -2
- package/esm/models/operations/getcrosssell.d.ts.map +1 -1
- package/esm/models/operations/getcrosssell.js +29 -2
- package/esm/models/operations/getcrosssell.js.map +1 -1
- package/esm/models/operations/getproducts.d.ts +4 -4
- package/esm/models/operations/getproducts.d.ts.map +1 -1
- package/esm/models/operations/getproducts.js +4 -4
- package/esm/models/operations/getproducts.js.map +1 -1
- package/esm/models/operations/getproductscategories.d.ts +5 -0
- package/esm/models/operations/getproductscategories.d.ts.map +1 -1
- package/esm/models/operations/getproductscategories.js +2 -0
- package/esm/models/operations/getproductscategories.js.map +1 -1
- package/esm/models/operations/getsimilar.d.ts +32 -2
- package/esm/models/operations/getsimilar.d.ts.map +1 -1
- package/esm/models/operations/getsimilar.js +29 -2
- package/esm/models/operations/getsimilar.js.map +1 -1
- package/esm/models/operations/getupsell.d.ts +32 -2
- package/esm/models/operations/getupsell.d.ts.map +1 -1
- package/esm/models/operations/getupsell.js +29 -2
- package/esm/models/operations/getupsell.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +0 -1
- package/src/models/components/product.ts +4 -4
- package/src/models/components/productbundleitem.ts +7 -73
- package/src/models/components/productdetail.ts +4 -4
- package/src/models/operations/getcrosssell.ts +69 -4
- package/src/models/operations/getproducts.ts +8 -8
- package/src/models/operations/getproductscategories.ts +7 -0
- package/src/models/operations/getsimilar.ts +69 -4
- package/src/models/operations/getupsell.ts +69 -4
- package/esm/models/components/productlist.d.ts +0 -36
- package/esm/models/components/productlist.d.ts.map +0 -1
- package/esm/models/components/productlist.js +0 -35
- package/esm/models/components/productlist.js.map +0 -1
- package/src/models/components/productlist.ts +0 -81
|
@@ -28,13 +28,21 @@ export type GetCrossSellRequest = {
|
|
|
28
28
|
sortBy?: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
+
export type GetCrossSellContent = {
|
|
32
|
+
products: Array<components.Product>;
|
|
33
|
+
/**
|
|
34
|
+
* pagination metadata structure
|
|
35
|
+
*/
|
|
36
|
+
pagination: components.Pagination;
|
|
37
|
+
};
|
|
38
|
+
|
|
31
39
|
/**
|
|
32
40
|
* Success response
|
|
33
41
|
*/
|
|
34
42
|
export type GetCrossSellResponseBody = {
|
|
35
43
|
message: string;
|
|
36
44
|
success: boolean;
|
|
37
|
-
content:
|
|
45
|
+
content: GetCrossSellContent;
|
|
38
46
|
};
|
|
39
47
|
|
|
40
48
|
/** @internal */
|
|
@@ -110,6 +118,63 @@ export function getCrossSellRequestFromJSON(
|
|
|
110
118
|
);
|
|
111
119
|
}
|
|
112
120
|
|
|
121
|
+
/** @internal */
|
|
122
|
+
export const GetCrossSellContent$inboundSchema: z.ZodType<
|
|
123
|
+
GetCrossSellContent,
|
|
124
|
+
z.ZodTypeDef,
|
|
125
|
+
unknown
|
|
126
|
+
> = z.object({
|
|
127
|
+
products: z.array(components.Product$inboundSchema),
|
|
128
|
+
pagination: components.Pagination$inboundSchema,
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
/** @internal */
|
|
132
|
+
export type GetCrossSellContent$Outbound = {
|
|
133
|
+
products: Array<components.Product$Outbound>;
|
|
134
|
+
pagination: components.Pagination$Outbound;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
/** @internal */
|
|
138
|
+
export const GetCrossSellContent$outboundSchema: z.ZodType<
|
|
139
|
+
GetCrossSellContent$Outbound,
|
|
140
|
+
z.ZodTypeDef,
|
|
141
|
+
GetCrossSellContent
|
|
142
|
+
> = z.object({
|
|
143
|
+
products: z.array(components.Product$outboundSchema),
|
|
144
|
+
pagination: components.Pagination$outboundSchema,
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* @internal
|
|
149
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
150
|
+
*/
|
|
151
|
+
export namespace GetCrossSellContent$ {
|
|
152
|
+
/** @deprecated use `GetCrossSellContent$inboundSchema` instead. */
|
|
153
|
+
export const inboundSchema = GetCrossSellContent$inboundSchema;
|
|
154
|
+
/** @deprecated use `GetCrossSellContent$outboundSchema` instead. */
|
|
155
|
+
export const outboundSchema = GetCrossSellContent$outboundSchema;
|
|
156
|
+
/** @deprecated use `GetCrossSellContent$Outbound` instead. */
|
|
157
|
+
export type Outbound = GetCrossSellContent$Outbound;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function getCrossSellContentToJSON(
|
|
161
|
+
getCrossSellContent: GetCrossSellContent,
|
|
162
|
+
): string {
|
|
163
|
+
return JSON.stringify(
|
|
164
|
+
GetCrossSellContent$outboundSchema.parse(getCrossSellContent),
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function getCrossSellContentFromJSON(
|
|
169
|
+
jsonString: string,
|
|
170
|
+
): SafeParseResult<GetCrossSellContent, SDKValidationError> {
|
|
171
|
+
return safeParse(
|
|
172
|
+
jsonString,
|
|
173
|
+
(x) => GetCrossSellContent$inboundSchema.parse(JSON.parse(x)),
|
|
174
|
+
`Failed to parse 'GetCrossSellContent' from JSON`,
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
|
|
113
178
|
/** @internal */
|
|
114
179
|
export const GetCrossSellResponseBody$inboundSchema: z.ZodType<
|
|
115
180
|
GetCrossSellResponseBody,
|
|
@@ -118,14 +183,14 @@ export const GetCrossSellResponseBody$inboundSchema: z.ZodType<
|
|
|
118
183
|
> = z.object({
|
|
119
184
|
message: z.string(),
|
|
120
185
|
success: z.boolean(),
|
|
121
|
-
content:
|
|
186
|
+
content: z.lazy(() => GetCrossSellContent$inboundSchema),
|
|
122
187
|
});
|
|
123
188
|
|
|
124
189
|
/** @internal */
|
|
125
190
|
export type GetCrossSellResponseBody$Outbound = {
|
|
126
191
|
message: string;
|
|
127
192
|
success: boolean;
|
|
128
|
-
content:
|
|
193
|
+
content: GetCrossSellContent$Outbound;
|
|
129
194
|
};
|
|
130
195
|
|
|
131
196
|
/** @internal */
|
|
@@ -136,7 +201,7 @@ export const GetCrossSellResponseBody$outboundSchema: z.ZodType<
|
|
|
136
201
|
> = z.object({
|
|
137
202
|
message: z.string(),
|
|
138
203
|
success: z.boolean(),
|
|
139
|
-
content:
|
|
204
|
+
content: z.lazy(() => GetCrossSellContent$outboundSchema),
|
|
140
205
|
});
|
|
141
206
|
|
|
142
207
|
/**
|
|
@@ -33,11 +33,11 @@ export type GetProductsRequest = {
|
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
export type Content = {
|
|
36
|
-
products
|
|
36
|
+
products: Array<components.Product>;
|
|
37
37
|
/**
|
|
38
38
|
* pagination metadata structure
|
|
39
39
|
*/
|
|
40
|
-
pagination
|
|
40
|
+
pagination: components.Pagination;
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
/**
|
|
@@ -130,14 +130,14 @@ export function getProductsRequestFromJSON(
|
|
|
130
130
|
/** @internal */
|
|
131
131
|
export const Content$inboundSchema: z.ZodType<Content, z.ZodTypeDef, unknown> =
|
|
132
132
|
z.object({
|
|
133
|
-
products: z.array(components.Product$inboundSchema)
|
|
134
|
-
pagination: components.Pagination$inboundSchema
|
|
133
|
+
products: z.array(components.Product$inboundSchema),
|
|
134
|
+
pagination: components.Pagination$inboundSchema,
|
|
135
135
|
});
|
|
136
136
|
|
|
137
137
|
/** @internal */
|
|
138
138
|
export type Content$Outbound = {
|
|
139
|
-
products
|
|
140
|
-
pagination
|
|
139
|
+
products: Array<components.Product$Outbound>;
|
|
140
|
+
pagination: components.Pagination$Outbound;
|
|
141
141
|
};
|
|
142
142
|
|
|
143
143
|
/** @internal */
|
|
@@ -146,8 +146,8 @@ export const Content$outboundSchema: z.ZodType<
|
|
|
146
146
|
z.ZodTypeDef,
|
|
147
147
|
Content
|
|
148
148
|
> = z.object({
|
|
149
|
-
products: z.array(components.Product$outboundSchema)
|
|
150
|
-
pagination: components.Pagination$outboundSchema
|
|
149
|
+
products: z.array(components.Product$outboundSchema),
|
|
150
|
+
pagination: components.Pagination$outboundSchema,
|
|
151
151
|
});
|
|
152
152
|
|
|
153
153
|
/**
|
|
@@ -30,6 +30,10 @@ export type GetProductsCategoriesRequest = {
|
|
|
30
30
|
|
|
31
31
|
export type GetProductsCategoriesContent = {
|
|
32
32
|
categories: Array<components.ProductCategory>;
|
|
33
|
+
/**
|
|
34
|
+
* pagination metadata structure
|
|
35
|
+
*/
|
|
36
|
+
pagination: components.Pagination;
|
|
33
37
|
};
|
|
34
38
|
|
|
35
39
|
/**
|
|
@@ -125,11 +129,13 @@ export const GetProductsCategoriesContent$inboundSchema: z.ZodType<
|
|
|
125
129
|
unknown
|
|
126
130
|
> = z.object({
|
|
127
131
|
categories: z.array(components.ProductCategory$inboundSchema),
|
|
132
|
+
pagination: components.Pagination$inboundSchema,
|
|
128
133
|
});
|
|
129
134
|
|
|
130
135
|
/** @internal */
|
|
131
136
|
export type GetProductsCategoriesContent$Outbound = {
|
|
132
137
|
categories: Array<components.ProductCategory$Outbound>;
|
|
138
|
+
pagination: components.Pagination$Outbound;
|
|
133
139
|
};
|
|
134
140
|
|
|
135
141
|
/** @internal */
|
|
@@ -139,6 +145,7 @@ export const GetProductsCategoriesContent$outboundSchema: z.ZodType<
|
|
|
139
145
|
GetProductsCategoriesContent
|
|
140
146
|
> = z.object({
|
|
141
147
|
categories: z.array(components.ProductCategory$outboundSchema),
|
|
148
|
+
pagination: components.Pagination$outboundSchema,
|
|
142
149
|
});
|
|
143
150
|
|
|
144
151
|
/**
|
|
@@ -28,13 +28,21 @@ export type GetSimilarRequest = {
|
|
|
28
28
|
sortBy?: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
+
export type GetSimilarContent = {
|
|
32
|
+
products: Array<components.Product>;
|
|
33
|
+
/**
|
|
34
|
+
* pagination metadata structure
|
|
35
|
+
*/
|
|
36
|
+
pagination: components.Pagination;
|
|
37
|
+
};
|
|
38
|
+
|
|
31
39
|
/**
|
|
32
40
|
* Success response
|
|
33
41
|
*/
|
|
34
42
|
export type GetSimilarResponseBody = {
|
|
35
43
|
message: string;
|
|
36
44
|
success: boolean;
|
|
37
|
-
content:
|
|
45
|
+
content: GetSimilarContent;
|
|
38
46
|
};
|
|
39
47
|
|
|
40
48
|
/** @internal */
|
|
@@ -110,6 +118,63 @@ export function getSimilarRequestFromJSON(
|
|
|
110
118
|
);
|
|
111
119
|
}
|
|
112
120
|
|
|
121
|
+
/** @internal */
|
|
122
|
+
export const GetSimilarContent$inboundSchema: z.ZodType<
|
|
123
|
+
GetSimilarContent,
|
|
124
|
+
z.ZodTypeDef,
|
|
125
|
+
unknown
|
|
126
|
+
> = z.object({
|
|
127
|
+
products: z.array(components.Product$inboundSchema),
|
|
128
|
+
pagination: components.Pagination$inboundSchema,
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
/** @internal */
|
|
132
|
+
export type GetSimilarContent$Outbound = {
|
|
133
|
+
products: Array<components.Product$Outbound>;
|
|
134
|
+
pagination: components.Pagination$Outbound;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
/** @internal */
|
|
138
|
+
export const GetSimilarContent$outboundSchema: z.ZodType<
|
|
139
|
+
GetSimilarContent$Outbound,
|
|
140
|
+
z.ZodTypeDef,
|
|
141
|
+
GetSimilarContent
|
|
142
|
+
> = z.object({
|
|
143
|
+
products: z.array(components.Product$outboundSchema),
|
|
144
|
+
pagination: components.Pagination$outboundSchema,
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* @internal
|
|
149
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
150
|
+
*/
|
|
151
|
+
export namespace GetSimilarContent$ {
|
|
152
|
+
/** @deprecated use `GetSimilarContent$inboundSchema` instead. */
|
|
153
|
+
export const inboundSchema = GetSimilarContent$inboundSchema;
|
|
154
|
+
/** @deprecated use `GetSimilarContent$outboundSchema` instead. */
|
|
155
|
+
export const outboundSchema = GetSimilarContent$outboundSchema;
|
|
156
|
+
/** @deprecated use `GetSimilarContent$Outbound` instead. */
|
|
157
|
+
export type Outbound = GetSimilarContent$Outbound;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function getSimilarContentToJSON(
|
|
161
|
+
getSimilarContent: GetSimilarContent,
|
|
162
|
+
): string {
|
|
163
|
+
return JSON.stringify(
|
|
164
|
+
GetSimilarContent$outboundSchema.parse(getSimilarContent),
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function getSimilarContentFromJSON(
|
|
169
|
+
jsonString: string,
|
|
170
|
+
): SafeParseResult<GetSimilarContent, SDKValidationError> {
|
|
171
|
+
return safeParse(
|
|
172
|
+
jsonString,
|
|
173
|
+
(x) => GetSimilarContent$inboundSchema.parse(JSON.parse(x)),
|
|
174
|
+
`Failed to parse 'GetSimilarContent' from JSON`,
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
|
|
113
178
|
/** @internal */
|
|
114
179
|
export const GetSimilarResponseBody$inboundSchema: z.ZodType<
|
|
115
180
|
GetSimilarResponseBody,
|
|
@@ -118,14 +183,14 @@ export const GetSimilarResponseBody$inboundSchema: z.ZodType<
|
|
|
118
183
|
> = z.object({
|
|
119
184
|
message: z.string(),
|
|
120
185
|
success: z.boolean(),
|
|
121
|
-
content:
|
|
186
|
+
content: z.lazy(() => GetSimilarContent$inboundSchema),
|
|
122
187
|
});
|
|
123
188
|
|
|
124
189
|
/** @internal */
|
|
125
190
|
export type GetSimilarResponseBody$Outbound = {
|
|
126
191
|
message: string;
|
|
127
192
|
success: boolean;
|
|
128
|
-
content:
|
|
193
|
+
content: GetSimilarContent$Outbound;
|
|
129
194
|
};
|
|
130
195
|
|
|
131
196
|
/** @internal */
|
|
@@ -136,7 +201,7 @@ export const GetSimilarResponseBody$outboundSchema: z.ZodType<
|
|
|
136
201
|
> = z.object({
|
|
137
202
|
message: z.string(),
|
|
138
203
|
success: z.boolean(),
|
|
139
|
-
content:
|
|
204
|
+
content: z.lazy(() => GetSimilarContent$outboundSchema),
|
|
140
205
|
});
|
|
141
206
|
|
|
142
207
|
/**
|
|
@@ -28,6 +28,14 @@ export type GetUpSellRequest = {
|
|
|
28
28
|
sortBy?: string | undefined;
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
+
export type GetUpSellContent = {
|
|
32
|
+
products: Array<components.Product>;
|
|
33
|
+
/**
|
|
34
|
+
* pagination metadata structure
|
|
35
|
+
*/
|
|
36
|
+
pagination: components.Pagination;
|
|
37
|
+
};
|
|
38
|
+
|
|
31
39
|
/**
|
|
32
40
|
* Success response
|
|
33
41
|
*/
|
|
@@ -37,7 +45,7 @@ export type GetUpSellResponseBody = {
|
|
|
37
45
|
*/
|
|
38
46
|
message: string;
|
|
39
47
|
success: boolean;
|
|
40
|
-
content:
|
|
48
|
+
content: GetUpSellContent;
|
|
41
49
|
};
|
|
42
50
|
|
|
43
51
|
/** @internal */
|
|
@@ -113,6 +121,63 @@ export function getUpSellRequestFromJSON(
|
|
|
113
121
|
);
|
|
114
122
|
}
|
|
115
123
|
|
|
124
|
+
/** @internal */
|
|
125
|
+
export const GetUpSellContent$inboundSchema: z.ZodType<
|
|
126
|
+
GetUpSellContent,
|
|
127
|
+
z.ZodTypeDef,
|
|
128
|
+
unknown
|
|
129
|
+
> = z.object({
|
|
130
|
+
products: z.array(components.Product$inboundSchema),
|
|
131
|
+
pagination: components.Pagination$inboundSchema,
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
/** @internal */
|
|
135
|
+
export type GetUpSellContent$Outbound = {
|
|
136
|
+
products: Array<components.Product$Outbound>;
|
|
137
|
+
pagination: components.Pagination$Outbound;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
/** @internal */
|
|
141
|
+
export const GetUpSellContent$outboundSchema: z.ZodType<
|
|
142
|
+
GetUpSellContent$Outbound,
|
|
143
|
+
z.ZodTypeDef,
|
|
144
|
+
GetUpSellContent
|
|
145
|
+
> = z.object({
|
|
146
|
+
products: z.array(components.Product$outboundSchema),
|
|
147
|
+
pagination: components.Pagination$outboundSchema,
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @internal
|
|
152
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
153
|
+
*/
|
|
154
|
+
export namespace GetUpSellContent$ {
|
|
155
|
+
/** @deprecated use `GetUpSellContent$inboundSchema` instead. */
|
|
156
|
+
export const inboundSchema = GetUpSellContent$inboundSchema;
|
|
157
|
+
/** @deprecated use `GetUpSellContent$outboundSchema` instead. */
|
|
158
|
+
export const outboundSchema = GetUpSellContent$outboundSchema;
|
|
159
|
+
/** @deprecated use `GetUpSellContent$Outbound` instead. */
|
|
160
|
+
export type Outbound = GetUpSellContent$Outbound;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export function getUpSellContentToJSON(
|
|
164
|
+
getUpSellContent: GetUpSellContent,
|
|
165
|
+
): string {
|
|
166
|
+
return JSON.stringify(
|
|
167
|
+
GetUpSellContent$outboundSchema.parse(getUpSellContent),
|
|
168
|
+
);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export function getUpSellContentFromJSON(
|
|
172
|
+
jsonString: string,
|
|
173
|
+
): SafeParseResult<GetUpSellContent, SDKValidationError> {
|
|
174
|
+
return safeParse(
|
|
175
|
+
jsonString,
|
|
176
|
+
(x) => GetUpSellContent$inboundSchema.parse(JSON.parse(x)),
|
|
177
|
+
`Failed to parse 'GetUpSellContent' from JSON`,
|
|
178
|
+
);
|
|
179
|
+
}
|
|
180
|
+
|
|
116
181
|
/** @internal */
|
|
117
182
|
export const GetUpSellResponseBody$inboundSchema: z.ZodType<
|
|
118
183
|
GetUpSellResponseBody,
|
|
@@ -121,14 +186,14 @@ export const GetUpSellResponseBody$inboundSchema: z.ZodType<
|
|
|
121
186
|
> = z.object({
|
|
122
187
|
message: z.string(),
|
|
123
188
|
success: z.boolean(),
|
|
124
|
-
content:
|
|
189
|
+
content: z.lazy(() => GetUpSellContent$inboundSchema),
|
|
125
190
|
});
|
|
126
191
|
|
|
127
192
|
/** @internal */
|
|
128
193
|
export type GetUpSellResponseBody$Outbound = {
|
|
129
194
|
message: string;
|
|
130
195
|
success: boolean;
|
|
131
|
-
content:
|
|
196
|
+
content: GetUpSellContent$Outbound;
|
|
132
197
|
};
|
|
133
198
|
|
|
134
199
|
/** @internal */
|
|
@@ -139,7 +204,7 @@ export const GetUpSellResponseBody$outboundSchema: z.ZodType<
|
|
|
139
204
|
> = z.object({
|
|
140
205
|
message: z.string(),
|
|
141
206
|
success: z.boolean(),
|
|
142
|
-
content:
|
|
207
|
+
content: z.lazy(() => GetUpSellContent$outboundSchema),
|
|
143
208
|
});
|
|
144
209
|
|
|
145
210
|
/**
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { Pagination, Pagination$Outbound } from "./pagination.js";
|
|
5
|
-
import { Product, Product$Outbound } from "./product.js";
|
|
6
|
-
export type ProductList = {
|
|
7
|
-
products: Product;
|
|
8
|
-
/**
|
|
9
|
-
* pagination metadata structure
|
|
10
|
-
*/
|
|
11
|
-
pagination: Pagination;
|
|
12
|
-
};
|
|
13
|
-
/** @internal */
|
|
14
|
-
export declare const ProductList$inboundSchema: z.ZodType<ProductList, z.ZodTypeDef, unknown>;
|
|
15
|
-
/** @internal */
|
|
16
|
-
export type ProductList$Outbound = {
|
|
17
|
-
products: Product$Outbound;
|
|
18
|
-
pagination: Pagination$Outbound;
|
|
19
|
-
};
|
|
20
|
-
/** @internal */
|
|
21
|
-
export declare const ProductList$outboundSchema: z.ZodType<ProductList$Outbound, z.ZodTypeDef, ProductList>;
|
|
22
|
-
/**
|
|
23
|
-
* @internal
|
|
24
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
25
|
-
*/
|
|
26
|
-
export declare namespace ProductList$ {
|
|
27
|
-
/** @deprecated use `ProductList$inboundSchema` instead. */
|
|
28
|
-
const inboundSchema: z.ZodType<ProductList, z.ZodTypeDef, unknown>;
|
|
29
|
-
/** @deprecated use `ProductList$outboundSchema` instead. */
|
|
30
|
-
const outboundSchema: z.ZodType<ProductList$Outbound, z.ZodTypeDef, ProductList>;
|
|
31
|
-
/** @deprecated use `ProductList$Outbound` instead. */
|
|
32
|
-
type Outbound = ProductList$Outbound;
|
|
33
|
-
}
|
|
34
|
-
export declare function productListToJSON(productList: ProductList): string;
|
|
35
|
-
export declare function productListFromJSON(jsonString: string): SafeParseResult<ProductList, SDKValidationError>;
|
|
36
|
-
//# sourceMappingURL=productlist.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"productlist.d.ts","sourceRoot":"","sources":["../../../src/models/components/productlist.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,UAAU,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,OAAO,EAEP,gBAAgB,EAEjB,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAC;CACxB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,WAAW,EACX,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,UAAU,EAAE,mBAAmB,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,WAAW,CAIX,CAAC;AAEH;;;GAGG;AACH,yBAAiB,YAAY,CAAC;IAC5B,2DAA2D;IACpD,MAAM,aAAa,+CAA4B,CAAC;IACvD,4DAA4D;IACrD,MAAM,cAAc,4DAA6B,CAAC;IACzD,sDAAsD;IACtD,KAAY,QAAQ,GAAG,oBAAoB,CAAC;CAC7C;AAED,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAElE;AAED,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod";
|
|
5
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
6
|
-
import { Pagination$inboundSchema, Pagination$outboundSchema, } from "./pagination.js";
|
|
7
|
-
import { Product$inboundSchema, Product$outboundSchema, } from "./product.js";
|
|
8
|
-
/** @internal */
|
|
9
|
-
export const ProductList$inboundSchema = z.object({
|
|
10
|
-
products: Product$inboundSchema,
|
|
11
|
-
pagination: Pagination$inboundSchema,
|
|
12
|
-
});
|
|
13
|
-
/** @internal */
|
|
14
|
-
export const ProductList$outboundSchema = z.object({
|
|
15
|
-
products: Product$outboundSchema,
|
|
16
|
-
pagination: Pagination$outboundSchema,
|
|
17
|
-
});
|
|
18
|
-
/**
|
|
19
|
-
* @internal
|
|
20
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
21
|
-
*/
|
|
22
|
-
export var ProductList$;
|
|
23
|
-
(function (ProductList$) {
|
|
24
|
-
/** @deprecated use `ProductList$inboundSchema` instead. */
|
|
25
|
-
ProductList$.inboundSchema = ProductList$inboundSchema;
|
|
26
|
-
/** @deprecated use `ProductList$outboundSchema` instead. */
|
|
27
|
-
ProductList$.outboundSchema = ProductList$outboundSchema;
|
|
28
|
-
})(ProductList$ || (ProductList$ = {}));
|
|
29
|
-
export function productListToJSON(productList) {
|
|
30
|
-
return JSON.stringify(ProductList$outboundSchema.parse(productList));
|
|
31
|
-
}
|
|
32
|
-
export function productListFromJSON(jsonString) {
|
|
33
|
-
return safeParse(jsonString, (x) => ProductList$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProductList' from JSON`);
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=productlist.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"productlist.js","sourceRoot":"","sources":["../../../src/models/components/productlist.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,wBAAwB,EAExB,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAEL,qBAAqB,EAErB,sBAAsB,GACvB,MAAM,cAAc,CAAC;AAUtB,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB,GAIlC,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,qBAAqB;IAC/B,UAAU,EAAE,wBAAwB;CACrC,CAAC,CAAC;AAQH,gBAAgB;AAChB,MAAM,CAAC,MAAM,0BAA0B,GAInC,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,sBAAsB;IAChC,UAAU,EAAE,yBAAyB;CACtC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,YAAY,CAO5B;AAPD,WAAiB,YAAY;IAC3B,2DAA2D;IAC9C,0BAAa,GAAG,yBAAyB,CAAC;IACvD,4DAA4D;IAC/C,2BAAc,GAAG,0BAA0B,CAAC;AAG3D,CAAC,EAPgB,YAAY,KAAZ,YAAY,QAO5B;AAED,MAAM,UAAU,iBAAiB,CAAC,WAAwB;IACxD,OAAO,IAAI,CAAC,SAAS,CAAC,0BAA0B,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,mBAAmB,CACjC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yBAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AACJ,CAAC"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import {
|
|
10
|
-
Pagination,
|
|
11
|
-
Pagination$inboundSchema,
|
|
12
|
-
Pagination$Outbound,
|
|
13
|
-
Pagination$outboundSchema,
|
|
14
|
-
} from "./pagination.js";
|
|
15
|
-
import {
|
|
16
|
-
Product,
|
|
17
|
-
Product$inboundSchema,
|
|
18
|
-
Product$Outbound,
|
|
19
|
-
Product$outboundSchema,
|
|
20
|
-
} from "./product.js";
|
|
21
|
-
|
|
22
|
-
export type ProductList = {
|
|
23
|
-
products: Product;
|
|
24
|
-
/**
|
|
25
|
-
* pagination metadata structure
|
|
26
|
-
*/
|
|
27
|
-
pagination: Pagination;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
/** @internal */
|
|
31
|
-
export const ProductList$inboundSchema: z.ZodType<
|
|
32
|
-
ProductList,
|
|
33
|
-
z.ZodTypeDef,
|
|
34
|
-
unknown
|
|
35
|
-
> = z.object({
|
|
36
|
-
products: Product$inboundSchema,
|
|
37
|
-
pagination: Pagination$inboundSchema,
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
/** @internal */
|
|
41
|
-
export type ProductList$Outbound = {
|
|
42
|
-
products: Product$Outbound;
|
|
43
|
-
pagination: Pagination$Outbound;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const ProductList$outboundSchema: z.ZodType<
|
|
48
|
-
ProductList$Outbound,
|
|
49
|
-
z.ZodTypeDef,
|
|
50
|
-
ProductList
|
|
51
|
-
> = z.object({
|
|
52
|
-
products: Product$outboundSchema,
|
|
53
|
-
pagination: Pagination$outboundSchema,
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
-
*/
|
|
60
|
-
export namespace ProductList$ {
|
|
61
|
-
/** @deprecated use `ProductList$inboundSchema` instead. */
|
|
62
|
-
export const inboundSchema = ProductList$inboundSchema;
|
|
63
|
-
/** @deprecated use `ProductList$outboundSchema` instead. */
|
|
64
|
-
export const outboundSchema = ProductList$outboundSchema;
|
|
65
|
-
/** @deprecated use `ProductList$Outbound` instead. */
|
|
66
|
-
export type Outbound = ProductList$Outbound;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export function productListToJSON(productList: ProductList): string {
|
|
70
|
-
return JSON.stringify(ProductList$outboundSchema.parse(productList));
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function productListFromJSON(
|
|
74
|
-
jsonString: string,
|
|
75
|
-
): SafeParseResult<ProductList, SDKValidationError> {
|
|
76
|
-
return safeParse(
|
|
77
|
-
jsonString,
|
|
78
|
-
(x) => ProductList$inboundSchema.parse(JSON.parse(x)),
|
|
79
|
-
`Failed to parse 'ProductList' from JSON`,
|
|
80
|
-
);
|
|
81
|
-
}
|