ce-storefront 0.0.2 → 0.0.5
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 +50 -25
- package/docs/sdks/auth/README.md +75 -0
- package/docs/sdks/customers/README.md +1 -80
- package/docs/sdks/customersapi/README.md +322 -0
- package/funcs/authLoginAnonymously.d.ts +16 -0
- package/funcs/authLoginAnonymously.d.ts.map +1 -0
- package/funcs/authLoginAnonymously.js +88 -0
- package/funcs/authLoginAnonymously.js.map +1 -0
- package/funcs/{ordersReturnsList.d.ts → customersAPIGetCustomersId.d.ts} +4 -4
- package/funcs/customersAPIGetCustomersId.d.ts.map +1 -0
- package/funcs/{ordersReturnsList.js → customersAPIGetCustomersId.js} +10 -13
- package/funcs/customersAPIGetCustomersId.js.map +1 -0
- package/funcs/{customersGetRecommendedProducts.d.ts → customersAPIGetRecommendedProducts.d.ts} +3 -3
- package/funcs/customersAPIGetRecommendedProducts.d.ts.map +1 -0
- package/funcs/{customersGetRecommendedProducts.js → customersAPIGetRecommendedProducts.js} +20 -7
- package/funcs/customersAPIGetRecommendedProducts.js.map +1 -0
- package/funcs/customersAPIPostCustomers.d.ts +17 -0
- package/funcs/customersAPIPostCustomers.d.ts.map +1 -0
- package/funcs/customersAPIPostCustomers.js +96 -0
- package/funcs/customersAPIPostCustomers.js.map +1 -0
- package/funcs/customersAPIPutCustomersId.d.ts +16 -0
- package/funcs/customersAPIPutCustomersId.d.ts.map +1 -0
- package/funcs/customersAPIPutCustomersId.js +98 -0
- package/funcs/customersAPIPutCustomersId.js.map +1 -0
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/business.d.ts +31 -0
- package/models/components/business.d.ts.map +1 -0
- package/models/components/business.js +71 -0
- package/models/components/business.js.map +1 -0
- package/models/components/cart.d.ts +1 -1
- package/models/components/cart.d.ts.map +1 -1
- package/models/components/cart.js +5 -5
- package/models/components/cart.js.map +1 -1
- package/models/components/createcustomer.d.ts +29 -0
- package/models/components/createcustomer.d.ts.map +1 -0
- package/models/components/createcustomer.js +54 -0
- package/models/components/createcustomer.js.map +1 -0
- package/models/components/{customeraddress.d.ts → customeraddressinput.d.ts} +29 -29
- package/models/components/customeraddressinput.d.ts.map +1 -0
- package/models/components/{customeraddress.js → customeraddressinput.js} +30 -30
- package/models/components/customeraddressinput.js.map +1 -0
- package/models/components/customerdetail.d.ts +51 -0
- package/models/components/customerdetail.d.ts.map +1 -0
- package/models/components/customerdetail.js +88 -0
- package/models/components/customerdetail.js.map +1 -0
- package/models/components/index.d.ts +6 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +6 -3
- package/models/components/index.js.map +1 -1
- package/models/components/orderdetail.d.ts +1 -1
- package/models/components/orderdetail.d.ts.map +1 -1
- package/models/components/orderdetail.js +5 -5
- package/models/components/orderdetail.js.map +1 -1
- package/models/components/recommendedproduct.d.ts +149 -0
- package/models/components/recommendedproduct.d.ts.map +1 -0
- package/models/components/recommendedproduct.js +230 -0
- package/models/components/recommendedproduct.js.map +1 -0
- package/models/components/updatecustomer.d.ts +26 -0
- package/models/components/updatecustomer.d.ts.map +1 -0
- package/models/components/updatecustomer.js +51 -0
- package/models/components/updatecustomer.js.map +1 -0
- package/models/operations/getcustomersid.d.ts +82 -0
- package/models/operations/getcustomersid.d.ts.map +1 -0
- package/models/operations/getcustomersid.js +106 -0
- package/models/operations/getcustomersid.js.map +1 -0
- package/models/operations/getrecommendedproducts.d.ts +82 -0
- package/models/operations/getrecommendedproducts.d.ts.map +1 -0
- package/models/operations/getrecommendedproducts.js +93 -0
- package/models/operations/getrecommendedproducts.js.map +1 -0
- package/models/operations/index.d.ts +5 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -2
- package/models/operations/index.js.map +1 -1
- package/models/operations/postauthanonymous.d.ts +101 -0
- package/models/operations/postauthanonymous.d.ts.map +1 -0
- package/models/operations/postauthanonymous.js +124 -0
- package/models/operations/postauthanonymous.js.map +1 -0
- package/models/operations/postcustomers.d.ts +56 -0
- package/models/operations/postcustomers.d.ts.map +1 -0
- package/models/operations/postcustomers.js +87 -0
- package/models/operations/postcustomers.js.map +1 -0
- package/models/operations/putcustomersid.d.ts +84 -0
- package/models/operations/putcustomersid.d.ts.map +1 -0
- package/models/operations/putcustomersid.js +120 -0
- package/models/operations/putcustomersid.js.map +1 -0
- package/package.json +1 -1
- package/sdk/auth.d.ts +8 -0
- package/sdk/auth.d.ts.map +1 -1
- package/sdk/auth.js +11 -0
- package/sdk/auth.js.map +1 -1
- package/sdk/customers.d.ts +1 -9
- package/sdk/customers.d.ts.map +1 -1
- package/sdk/customers.js +0 -11
- package/sdk/customers.js.map +1 -1
- package/sdk/customersapi.d.ts +34 -0
- package/sdk/customersapi.d.ts.map +1 -0
- package/sdk/customersapi.js +52 -0
- package/sdk/customersapi.js.map +1 -0
- package/sdk/orders.d.ts +0 -3
- package/sdk/orders.d.ts.map +1 -1
- package/sdk/orders.js +0 -5
- package/sdk/orders.js.map +1 -1
- package/sdk/sdk.d.ts +5 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +7 -2
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/authLoginAnonymously.ts +112 -0
- package/src/funcs/{ordersReturnsList.ts → customersAPIGetCustomersId.ts} +11 -14
- package/src/funcs/{customersGetRecommendedProducts.ts → customersAPIGetRecommendedProducts.ts} +28 -7
- package/src/funcs/customersAPIPostCustomers.ts +133 -0
- package/src/funcs/customersAPIPutCustomersId.ts +136 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/business.ts +64 -0
- package/src/models/components/cart.ts +1 -1
- package/src/models/components/createcustomer.ts +58 -0
- package/src/models/components/customerdetail.ts +109 -0
- package/src/models/components/index.ts +6 -3
- package/src/models/components/orderdetail.ts +1 -1
- package/src/models/components/recommendedproduct.ts +359 -0
- package/src/models/components/updatecustomer.ts +48 -0
- package/src/models/operations/getcustomersid.ts +153 -0
- package/src/models/operations/getrecommendedproducts.ts +140 -0
- package/src/models/operations/index.ts +5 -2
- package/src/models/operations/postauthanonymous.ts +190 -0
- package/src/models/operations/postcustomers.ts +110 -0
- package/src/models/operations/putcustomersid.ts +169 -0
- package/src/sdk/auth.ts +15 -0
- package/src/sdk/customers.ts +1 -16
- package/src/sdk/customersapi.ts +66 -0
- package/src/sdk/orders.ts +0 -6
- package/src/sdk/sdk.ts +9 -3
- package/docs/sdks/returns/README.md +0 -84
- package/funcs/customersGetRecommendedProducts.d.ts.map +0 -1
- package/funcs/customersGetRecommendedProducts.js.map +0 -1
- package/funcs/ordersReturnsList.d.ts.map +0 -1
- package/funcs/ordersReturnsList.js.map +0 -1
- package/models/components/customeraddress.d.ts.map +0 -1
- package/models/components/customeraddress.js.map +0 -1
- package/models/components/orderreturn.d.ts +0 -59
- package/models/components/orderreturn.d.ts.map +0 -1
- package/models/components/orderreturn.js +0 -165
- package/models/components/orderreturn.js.map +0 -1
- package/models/components/orderreturnitem.d.ts +0 -91
- package/models/components/orderreturnitem.d.ts.map +0 -1
- package/models/components/orderreturnitem.js +0 -130
- package/models/components/orderreturnitem.js.map +0 -1
- package/models/operations/getordersordernumberreturn.d.ts +0 -59
- package/models/operations/getordersordernumberreturn.d.ts.map +0 -1
- package/models/operations/getordersordernumberreturn.js +0 -99
- package/models/operations/getordersordernumberreturn.js.map +0 -1
- package/models/operations/getrecommended.d.ts +0 -56
- package/models/operations/getrecommended.d.ts.map +0 -1
- package/models/operations/getrecommended.js +0 -74
- package/models/operations/getrecommended.js.map +0 -1
- package/sdk/returns.d.ts +0 -12
- package/sdk/returns.d.ts.map +0 -1
- package/sdk/returns.js +0 -22
- package/sdk/returns.js.map +0 -1
- package/src/models/components/orderreturn.ts +0 -198
- package/src/models/components/orderreturnitem.ts +0 -152
- package/src/models/operations/getordersordernumberreturn.ts +0 -125
- package/src/models/operations/getrecommended.ts +0 -97
- package/src/sdk/returns.ts +0 -23
- package/src/models/components/{customeraddress.ts → customeraddressinput.ts} +46 -46
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
+
import * as components from "../components/index.js";
|
|
7
|
+
import * as z from "zod";
|
|
8
|
+
|
|
9
|
+
export type GetCustomersIdRequest = {
|
|
10
|
+
/**
|
|
11
|
+
* Customer id
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type GetCustomersIdContent = {
|
|
17
|
+
customerDetail?: components.CustomerDetail | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* OK
|
|
22
|
+
*/
|
|
23
|
+
export type GetCustomersIdResponseBody = {
|
|
24
|
+
message?: string | undefined;
|
|
25
|
+
success?: boolean | undefined;
|
|
26
|
+
content?: GetCustomersIdContent | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const GetCustomersIdRequest$inboundSchema: z.ZodType<
|
|
31
|
+
GetCustomersIdRequest,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
unknown
|
|
34
|
+
> = z.object({
|
|
35
|
+
id: z.string(),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type GetCustomersIdRequest$Outbound = {
|
|
40
|
+
id: string;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const GetCustomersIdRequest$outboundSchema: z.ZodType<
|
|
45
|
+
GetCustomersIdRequest$Outbound,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
GetCustomersIdRequest
|
|
48
|
+
> = z.object({
|
|
49
|
+
id: z.string(),
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
+
*/
|
|
56
|
+
export namespace GetCustomersIdRequest$ {
|
|
57
|
+
/** @deprecated use `GetCustomersIdRequest$inboundSchema` instead. */
|
|
58
|
+
export const inboundSchema = GetCustomersIdRequest$inboundSchema;
|
|
59
|
+
/** @deprecated use `GetCustomersIdRequest$outboundSchema` instead. */
|
|
60
|
+
export const outboundSchema = GetCustomersIdRequest$outboundSchema;
|
|
61
|
+
/** @deprecated use `GetCustomersIdRequest$Outbound` instead. */
|
|
62
|
+
export type Outbound = GetCustomersIdRequest$Outbound;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
export const GetCustomersIdContent$inboundSchema: z.ZodType<
|
|
67
|
+
GetCustomersIdContent,
|
|
68
|
+
z.ZodTypeDef,
|
|
69
|
+
unknown
|
|
70
|
+
> = z
|
|
71
|
+
.object({
|
|
72
|
+
customer_detail: components.CustomerDetail$inboundSchema.optional(),
|
|
73
|
+
})
|
|
74
|
+
.transform((v) => {
|
|
75
|
+
return remap$(v, {
|
|
76
|
+
customer_detail: "customerDetail",
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export type GetCustomersIdContent$Outbound = {
|
|
82
|
+
customer_detail?: components.CustomerDetail$Outbound | undefined;
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
/** @internal */
|
|
86
|
+
export const GetCustomersIdContent$outboundSchema: z.ZodType<
|
|
87
|
+
GetCustomersIdContent$Outbound,
|
|
88
|
+
z.ZodTypeDef,
|
|
89
|
+
GetCustomersIdContent
|
|
90
|
+
> = z
|
|
91
|
+
.object({
|
|
92
|
+
customerDetail: components.CustomerDetail$outboundSchema.optional(),
|
|
93
|
+
})
|
|
94
|
+
.transform((v) => {
|
|
95
|
+
return remap$(v, {
|
|
96
|
+
customerDetail: "customer_detail",
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
103
|
+
*/
|
|
104
|
+
export namespace GetCustomersIdContent$ {
|
|
105
|
+
/** @deprecated use `GetCustomersIdContent$inboundSchema` instead. */
|
|
106
|
+
export const inboundSchema = GetCustomersIdContent$inboundSchema;
|
|
107
|
+
/** @deprecated use `GetCustomersIdContent$outboundSchema` instead. */
|
|
108
|
+
export const outboundSchema = GetCustomersIdContent$outboundSchema;
|
|
109
|
+
/** @deprecated use `GetCustomersIdContent$Outbound` instead. */
|
|
110
|
+
export type Outbound = GetCustomersIdContent$Outbound;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/** @internal */
|
|
114
|
+
export const GetCustomersIdResponseBody$inboundSchema: z.ZodType<
|
|
115
|
+
GetCustomersIdResponseBody,
|
|
116
|
+
z.ZodTypeDef,
|
|
117
|
+
unknown
|
|
118
|
+
> = z.object({
|
|
119
|
+
message: z.string().optional(),
|
|
120
|
+
success: z.boolean().optional(),
|
|
121
|
+
content: z.lazy(() => GetCustomersIdContent$inboundSchema).optional(),
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
/** @internal */
|
|
125
|
+
export type GetCustomersIdResponseBody$Outbound = {
|
|
126
|
+
message?: string | undefined;
|
|
127
|
+
success?: boolean | undefined;
|
|
128
|
+
content?: GetCustomersIdContent$Outbound | undefined;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
/** @internal */
|
|
132
|
+
export const GetCustomersIdResponseBody$outboundSchema: z.ZodType<
|
|
133
|
+
GetCustomersIdResponseBody$Outbound,
|
|
134
|
+
z.ZodTypeDef,
|
|
135
|
+
GetCustomersIdResponseBody
|
|
136
|
+
> = z.object({
|
|
137
|
+
message: z.string().optional(),
|
|
138
|
+
success: z.boolean().optional(),
|
|
139
|
+
content: z.lazy(() => GetCustomersIdContent$outboundSchema).optional(),
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* @internal
|
|
144
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
145
|
+
*/
|
|
146
|
+
export namespace GetCustomersIdResponseBody$ {
|
|
147
|
+
/** @deprecated use `GetCustomersIdResponseBody$inboundSchema` instead. */
|
|
148
|
+
export const inboundSchema = GetCustomersIdResponseBody$inboundSchema;
|
|
149
|
+
/** @deprecated use `GetCustomersIdResponseBody$outboundSchema` instead. */
|
|
150
|
+
export const outboundSchema = GetCustomersIdResponseBody$outboundSchema;
|
|
151
|
+
/** @deprecated use `GetCustomersIdResponseBody$Outbound` instead. */
|
|
152
|
+
export type Outbound = GetCustomersIdResponseBody$Outbound;
|
|
153
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as components from "../components/index.js";
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
|
|
8
|
+
export type GetRecommendedProductsRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* customer id
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type GetRecommendedProductsContent = {
|
|
16
|
+
products?: Array<components.RecommendedProduct> | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Success response
|
|
21
|
+
*/
|
|
22
|
+
export type GetRecommendedProductsResponseBody = {
|
|
23
|
+
message?: string | undefined;
|
|
24
|
+
success?: boolean | undefined;
|
|
25
|
+
content?: GetRecommendedProductsContent | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const GetRecommendedProductsRequest$inboundSchema: z.ZodType<
|
|
30
|
+
GetRecommendedProductsRequest,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
id: z.string(),
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type GetRecommendedProductsRequest$Outbound = {
|
|
39
|
+
id: string;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const GetRecommendedProductsRequest$outboundSchema: z.ZodType<
|
|
44
|
+
GetRecommendedProductsRequest$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
GetRecommendedProductsRequest
|
|
47
|
+
> = z.object({
|
|
48
|
+
id: z.string(),
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
54
|
+
*/
|
|
55
|
+
export namespace GetRecommendedProductsRequest$ {
|
|
56
|
+
/** @deprecated use `GetRecommendedProductsRequest$inboundSchema` instead. */
|
|
57
|
+
export const inboundSchema = GetRecommendedProductsRequest$inboundSchema;
|
|
58
|
+
/** @deprecated use `GetRecommendedProductsRequest$outboundSchema` instead. */
|
|
59
|
+
export const outboundSchema = GetRecommendedProductsRequest$outboundSchema;
|
|
60
|
+
/** @deprecated use `GetRecommendedProductsRequest$Outbound` instead. */
|
|
61
|
+
export type Outbound = GetRecommendedProductsRequest$Outbound;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const GetRecommendedProductsContent$inboundSchema: z.ZodType<
|
|
66
|
+
GetRecommendedProductsContent,
|
|
67
|
+
z.ZodTypeDef,
|
|
68
|
+
unknown
|
|
69
|
+
> = z.object({
|
|
70
|
+
products: z.array(components.RecommendedProduct$inboundSchema).optional(),
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
/** @internal */
|
|
74
|
+
export type GetRecommendedProductsContent$Outbound = {
|
|
75
|
+
products?: Array<components.RecommendedProduct$Outbound> | undefined;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const GetRecommendedProductsContent$outboundSchema: z.ZodType<
|
|
80
|
+
GetRecommendedProductsContent$Outbound,
|
|
81
|
+
z.ZodTypeDef,
|
|
82
|
+
GetRecommendedProductsContent
|
|
83
|
+
> = z.object({
|
|
84
|
+
products: z.array(components.RecommendedProduct$outboundSchema).optional(),
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
90
|
+
*/
|
|
91
|
+
export namespace GetRecommendedProductsContent$ {
|
|
92
|
+
/** @deprecated use `GetRecommendedProductsContent$inboundSchema` instead. */
|
|
93
|
+
export const inboundSchema = GetRecommendedProductsContent$inboundSchema;
|
|
94
|
+
/** @deprecated use `GetRecommendedProductsContent$outboundSchema` instead. */
|
|
95
|
+
export const outboundSchema = GetRecommendedProductsContent$outboundSchema;
|
|
96
|
+
/** @deprecated use `GetRecommendedProductsContent$Outbound` instead. */
|
|
97
|
+
export type Outbound = GetRecommendedProductsContent$Outbound;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/** @internal */
|
|
101
|
+
export const GetRecommendedProductsResponseBody$inboundSchema: z.ZodType<
|
|
102
|
+
GetRecommendedProductsResponseBody,
|
|
103
|
+
z.ZodTypeDef,
|
|
104
|
+
unknown
|
|
105
|
+
> = z.object({
|
|
106
|
+
message: z.string().optional(),
|
|
107
|
+
success: z.boolean().optional(),
|
|
108
|
+
content: z.lazy(() => GetRecommendedProductsContent$inboundSchema).optional(),
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
/** @internal */
|
|
112
|
+
export type GetRecommendedProductsResponseBody$Outbound = {
|
|
113
|
+
message?: string | undefined;
|
|
114
|
+
success?: boolean | undefined;
|
|
115
|
+
content?: GetRecommendedProductsContent$Outbound | undefined;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
/** @internal */
|
|
119
|
+
export const GetRecommendedProductsResponseBody$outboundSchema: z.ZodType<
|
|
120
|
+
GetRecommendedProductsResponseBody$Outbound,
|
|
121
|
+
z.ZodTypeDef,
|
|
122
|
+
GetRecommendedProductsResponseBody
|
|
123
|
+
> = z.object({
|
|
124
|
+
message: z.string().optional(),
|
|
125
|
+
success: z.boolean().optional(),
|
|
126
|
+
content: z.lazy(() => GetRecommendedProductsContent$outboundSchema).optional(),
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @internal
|
|
131
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
132
|
+
*/
|
|
133
|
+
export namespace GetRecommendedProductsResponseBody$ {
|
|
134
|
+
/** @deprecated use `GetRecommendedProductsResponseBody$inboundSchema` instead. */
|
|
135
|
+
export const inboundSchema = GetRecommendedProductsResponseBody$inboundSchema;
|
|
136
|
+
/** @deprecated use `GetRecommendedProductsResponseBody$outboundSchema` instead. */
|
|
137
|
+
export const outboundSchema = GetRecommendedProductsResponseBody$outboundSchema;
|
|
138
|
+
/** @deprecated use `GetRecommendedProductsResponseBody$Outbound` instead. */
|
|
139
|
+
export type Outbound = GetRecommendedProductsResponseBody$Outbound;
|
|
140
|
+
}
|
|
@@ -21,6 +21,7 @@ export * from "./getcommoncountriesisocodestates.js";
|
|
|
21
21
|
export * from "./getcoupons.js";
|
|
22
22
|
export * from "./getcrosssell.js";
|
|
23
23
|
export * from "./getcustomeraddressid.js";
|
|
24
|
+
export * from "./getcustomersid.js";
|
|
24
25
|
export * from "./getcustomersuseridreviews.js";
|
|
25
26
|
export * from "./getloyaltypoint.js";
|
|
26
27
|
export * from "./getloyaltypointactivity.js";
|
|
@@ -29,7 +30,6 @@ export * from "./getordersid.js";
|
|
|
29
30
|
export * from "./getordersidpayments.js";
|
|
30
31
|
export * from "./getordersidrefunds.js";
|
|
31
32
|
export * from "./getordersidshipments.js";
|
|
32
|
-
export * from "./getordersordernumberreturn.js";
|
|
33
33
|
export * from "./getpaymentspaymentmethods.js";
|
|
34
34
|
export * from "./getproductdetails.js";
|
|
35
35
|
export * from "./getproducts.js";
|
|
@@ -38,7 +38,7 @@ export * from "./getproductsidreviews.js";
|
|
|
38
38
|
export * from "./getproductvariantdetail.js";
|
|
39
39
|
export * from "./getproductvariants.js";
|
|
40
40
|
export * from "./getpromotions.js";
|
|
41
|
-
export * from "./
|
|
41
|
+
export * from "./getrecommendedproducts.js";
|
|
42
42
|
export * from "./getshipmentpincodeserviceability.js";
|
|
43
43
|
export * from "./getsimilar.js";
|
|
44
44
|
export * from "./getskus.js";
|
|
@@ -46,6 +46,7 @@ export * from "./getupsell.js";
|
|
|
46
46
|
export * from "./getwishtlist.js";
|
|
47
47
|
export * from "./postaddress.js";
|
|
48
48
|
export * from "./postapplycoupons.js";
|
|
49
|
+
export * from "./postauthanonymous.js";
|
|
49
50
|
export * from "./postauthchangepassword.js";
|
|
50
51
|
export * from "./postauthforgotpassword.js";
|
|
51
52
|
export * from "./postauthgenerateotp.js";
|
|
@@ -69,6 +70,7 @@ export * from "./postcartitemid.js";
|
|
|
69
70
|
export * from "./postcartsid.js";
|
|
70
71
|
export * from "./postcheckoutredeemgiftcard.js";
|
|
71
72
|
export * from "./postcreditbalance.js";
|
|
73
|
+
export * from "./postcustomers.js";
|
|
72
74
|
export * from "./postcustomersnewslettersubscription.js";
|
|
73
75
|
export * from "./postloyaltypoints.js";
|
|
74
76
|
export * from "./postorder.js";
|
|
@@ -82,3 +84,4 @@ export * from "./putauthuseriddeactivate.js";
|
|
|
82
84
|
export * from "./putauthuseridnotificationpreferences.js";
|
|
83
85
|
export * from "./putauthuseridprofileimage.js";
|
|
84
86
|
export * from "./putcustomeraddressid.js";
|
|
87
|
+
export * from "./putcustomersid.js";
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
+
import * as components from "../components/index.js";
|
|
7
|
+
import * as z from "zod";
|
|
8
|
+
|
|
9
|
+
export type PostAuthAnonymousSecurity = {
|
|
10
|
+
xApiKey: string;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* An object containing the response content.
|
|
15
|
+
*/
|
|
16
|
+
export type PostAuthAnonymousContent = {
|
|
17
|
+
user?: components.User | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* It is a string-based token utilized for authentication and authorization.
|
|
20
|
+
*/
|
|
21
|
+
accessToken?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* It is a string-based token designed for refreshing the user's access token.
|
|
24
|
+
*/
|
|
25
|
+
refreshToken?: string | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* OK
|
|
30
|
+
*/
|
|
31
|
+
export type PostAuthAnonymousResponseBody = {
|
|
32
|
+
/**
|
|
33
|
+
* A string containing a descriptive message related to the success or failure of the anonymous user creation or authentication.
|
|
34
|
+
*/
|
|
35
|
+
message?: string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* A boolean value indicates the success or failure of the anonymous user operation.`true` for success `false` for failure.
|
|
38
|
+
*/
|
|
39
|
+
success?: boolean | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* An object containing the response content.
|
|
42
|
+
*/
|
|
43
|
+
content?: PostAuthAnonymousContent | undefined;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export const PostAuthAnonymousSecurity$inboundSchema: z.ZodType<
|
|
48
|
+
PostAuthAnonymousSecurity,
|
|
49
|
+
z.ZodTypeDef,
|
|
50
|
+
unknown
|
|
51
|
+
> = z
|
|
52
|
+
.object({
|
|
53
|
+
"X-Api-Key": z.string(),
|
|
54
|
+
})
|
|
55
|
+
.transform((v) => {
|
|
56
|
+
return remap$(v, {
|
|
57
|
+
"X-Api-Key": "xApiKey",
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export type PostAuthAnonymousSecurity$Outbound = {
|
|
63
|
+
"X-Api-Key": string;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const PostAuthAnonymousSecurity$outboundSchema: z.ZodType<
|
|
68
|
+
PostAuthAnonymousSecurity$Outbound,
|
|
69
|
+
z.ZodTypeDef,
|
|
70
|
+
PostAuthAnonymousSecurity
|
|
71
|
+
> = z
|
|
72
|
+
.object({
|
|
73
|
+
xApiKey: z.string(),
|
|
74
|
+
})
|
|
75
|
+
.transform((v) => {
|
|
76
|
+
return remap$(v, {
|
|
77
|
+
xApiKey: "X-Api-Key",
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
84
|
+
*/
|
|
85
|
+
export namespace PostAuthAnonymousSecurity$ {
|
|
86
|
+
/** @deprecated use `PostAuthAnonymousSecurity$inboundSchema` instead. */
|
|
87
|
+
export const inboundSchema = PostAuthAnonymousSecurity$inboundSchema;
|
|
88
|
+
/** @deprecated use `PostAuthAnonymousSecurity$outboundSchema` instead. */
|
|
89
|
+
export const outboundSchema = PostAuthAnonymousSecurity$outboundSchema;
|
|
90
|
+
/** @deprecated use `PostAuthAnonymousSecurity$Outbound` instead. */
|
|
91
|
+
export type Outbound = PostAuthAnonymousSecurity$Outbound;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/** @internal */
|
|
95
|
+
export const PostAuthAnonymousContent$inboundSchema: z.ZodType<
|
|
96
|
+
PostAuthAnonymousContent,
|
|
97
|
+
z.ZodTypeDef,
|
|
98
|
+
unknown
|
|
99
|
+
> = z
|
|
100
|
+
.object({
|
|
101
|
+
user: components.User$inboundSchema.optional(),
|
|
102
|
+
access_token: z.string().optional(),
|
|
103
|
+
refresh_token: z.string().optional(),
|
|
104
|
+
})
|
|
105
|
+
.transform((v) => {
|
|
106
|
+
return remap$(v, {
|
|
107
|
+
access_token: "accessToken",
|
|
108
|
+
refresh_token: "refreshToken",
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
/** @internal */
|
|
113
|
+
export type PostAuthAnonymousContent$Outbound = {
|
|
114
|
+
user?: components.User$Outbound | undefined;
|
|
115
|
+
access_token?: string | undefined;
|
|
116
|
+
refresh_token?: string | undefined;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
/** @internal */
|
|
120
|
+
export const PostAuthAnonymousContent$outboundSchema: z.ZodType<
|
|
121
|
+
PostAuthAnonymousContent$Outbound,
|
|
122
|
+
z.ZodTypeDef,
|
|
123
|
+
PostAuthAnonymousContent
|
|
124
|
+
> = z
|
|
125
|
+
.object({
|
|
126
|
+
user: components.User$outboundSchema.optional(),
|
|
127
|
+
accessToken: z.string().optional(),
|
|
128
|
+
refreshToken: z.string().optional(),
|
|
129
|
+
})
|
|
130
|
+
.transform((v) => {
|
|
131
|
+
return remap$(v, {
|
|
132
|
+
accessToken: "access_token",
|
|
133
|
+
refreshToken: "refresh_token",
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @internal
|
|
139
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
140
|
+
*/
|
|
141
|
+
export namespace PostAuthAnonymousContent$ {
|
|
142
|
+
/** @deprecated use `PostAuthAnonymousContent$inboundSchema` instead. */
|
|
143
|
+
export const inboundSchema = PostAuthAnonymousContent$inboundSchema;
|
|
144
|
+
/** @deprecated use `PostAuthAnonymousContent$outboundSchema` instead. */
|
|
145
|
+
export const outboundSchema = PostAuthAnonymousContent$outboundSchema;
|
|
146
|
+
/** @deprecated use `PostAuthAnonymousContent$Outbound` instead. */
|
|
147
|
+
export type Outbound = PostAuthAnonymousContent$Outbound;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/** @internal */
|
|
151
|
+
export const PostAuthAnonymousResponseBody$inboundSchema: z.ZodType<
|
|
152
|
+
PostAuthAnonymousResponseBody,
|
|
153
|
+
z.ZodTypeDef,
|
|
154
|
+
unknown
|
|
155
|
+
> = z.object({
|
|
156
|
+
message: z.string().optional(),
|
|
157
|
+
success: z.boolean().optional(),
|
|
158
|
+
content: z.lazy(() => PostAuthAnonymousContent$inboundSchema).optional(),
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
/** @internal */
|
|
162
|
+
export type PostAuthAnonymousResponseBody$Outbound = {
|
|
163
|
+
message?: string | undefined;
|
|
164
|
+
success?: boolean | undefined;
|
|
165
|
+
content?: PostAuthAnonymousContent$Outbound | undefined;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
/** @internal */
|
|
169
|
+
export const PostAuthAnonymousResponseBody$outboundSchema: z.ZodType<
|
|
170
|
+
PostAuthAnonymousResponseBody$Outbound,
|
|
171
|
+
z.ZodTypeDef,
|
|
172
|
+
PostAuthAnonymousResponseBody
|
|
173
|
+
> = z.object({
|
|
174
|
+
message: z.string().optional(),
|
|
175
|
+
success: z.boolean().optional(),
|
|
176
|
+
content: z.lazy(() => PostAuthAnonymousContent$outboundSchema).optional(),
|
|
177
|
+
});
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @internal
|
|
181
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
182
|
+
*/
|
|
183
|
+
export namespace PostAuthAnonymousResponseBody$ {
|
|
184
|
+
/** @deprecated use `PostAuthAnonymousResponseBody$inboundSchema` instead. */
|
|
185
|
+
export const inboundSchema = PostAuthAnonymousResponseBody$inboundSchema;
|
|
186
|
+
/** @deprecated use `PostAuthAnonymousResponseBody$outboundSchema` instead. */
|
|
187
|
+
export const outboundSchema = PostAuthAnonymousResponseBody$outboundSchema;
|
|
188
|
+
/** @deprecated use `PostAuthAnonymousResponseBody$Outbound` instead. */
|
|
189
|
+
export type Outbound = PostAuthAnonymousResponseBody$Outbound;
|
|
190
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
+
import * as components from "../components/index.js";
|
|
7
|
+
import * as z from "zod";
|
|
8
|
+
|
|
9
|
+
export type PostCustomersContent = {
|
|
10
|
+
customerDetail?: components.CustomerDetail | undefined;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* OK
|
|
15
|
+
*/
|
|
16
|
+
export type PostCustomersResponseBody = {
|
|
17
|
+
message?: string | undefined;
|
|
18
|
+
success?: boolean | undefined;
|
|
19
|
+
content?: PostCustomersContent | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const PostCustomersContent$inboundSchema: z.ZodType<
|
|
24
|
+
PostCustomersContent,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = z
|
|
28
|
+
.object({
|
|
29
|
+
customer_detail: components.CustomerDetail$inboundSchema.optional(),
|
|
30
|
+
})
|
|
31
|
+
.transform((v) => {
|
|
32
|
+
return remap$(v, {
|
|
33
|
+
customer_detail: "customerDetail",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type PostCustomersContent$Outbound = {
|
|
39
|
+
customer_detail?: components.CustomerDetail$Outbound | undefined;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const PostCustomersContent$outboundSchema: z.ZodType<
|
|
44
|
+
PostCustomersContent$Outbound,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
PostCustomersContent
|
|
47
|
+
> = z
|
|
48
|
+
.object({
|
|
49
|
+
customerDetail: components.CustomerDetail$outboundSchema.optional(),
|
|
50
|
+
})
|
|
51
|
+
.transform((v) => {
|
|
52
|
+
return remap$(v, {
|
|
53
|
+
customerDetail: "customer_detail",
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
|
+
*/
|
|
61
|
+
export namespace PostCustomersContent$ {
|
|
62
|
+
/** @deprecated use `PostCustomersContent$inboundSchema` instead. */
|
|
63
|
+
export const inboundSchema = PostCustomersContent$inboundSchema;
|
|
64
|
+
/** @deprecated use `PostCustomersContent$outboundSchema` instead. */
|
|
65
|
+
export const outboundSchema = PostCustomersContent$outboundSchema;
|
|
66
|
+
/** @deprecated use `PostCustomersContent$Outbound` instead. */
|
|
67
|
+
export type Outbound = PostCustomersContent$Outbound;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** @internal */
|
|
71
|
+
export const PostCustomersResponseBody$inboundSchema: z.ZodType<
|
|
72
|
+
PostCustomersResponseBody,
|
|
73
|
+
z.ZodTypeDef,
|
|
74
|
+
unknown
|
|
75
|
+
> = z.object({
|
|
76
|
+
message: z.string().optional(),
|
|
77
|
+
success: z.boolean().optional(),
|
|
78
|
+
content: z.lazy(() => PostCustomersContent$inboundSchema).optional(),
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export type PostCustomersResponseBody$Outbound = {
|
|
83
|
+
message?: string | undefined;
|
|
84
|
+
success?: boolean | undefined;
|
|
85
|
+
content?: PostCustomersContent$Outbound | undefined;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const PostCustomersResponseBody$outboundSchema: z.ZodType<
|
|
90
|
+
PostCustomersResponseBody$Outbound,
|
|
91
|
+
z.ZodTypeDef,
|
|
92
|
+
PostCustomersResponseBody
|
|
93
|
+
> = z.object({
|
|
94
|
+
message: z.string().optional(),
|
|
95
|
+
success: z.boolean().optional(),
|
|
96
|
+
content: z.lazy(() => PostCustomersContent$outboundSchema).optional(),
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @internal
|
|
101
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
102
|
+
*/
|
|
103
|
+
export namespace PostCustomersResponseBody$ {
|
|
104
|
+
/** @deprecated use `PostCustomersResponseBody$inboundSchema` instead. */
|
|
105
|
+
export const inboundSchema = PostCustomersResponseBody$inboundSchema;
|
|
106
|
+
/** @deprecated use `PostCustomersResponseBody$outboundSchema` instead. */
|
|
107
|
+
export const outboundSchema = PostCustomersResponseBody$outboundSchema;
|
|
108
|
+
/** @deprecated use `PostCustomersResponseBody$Outbound` instead. */
|
|
109
|
+
export type Outbound = PostCustomersResponseBody$Outbound;
|
|
110
|
+
}
|