ce-storefront 0.3.4 → 0.3.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 +26 -37
- package/docs/sdks/{cestorefrontpayments → cestorefrontorderspayments}/README.md +1 -1
- package/docs/sdks/customers/README.md +236 -0
- package/docs/sdks/{paymentsapijuspay → juspay}/README.md +12 -12
- package/docs/sdks/orders/README.md +80 -1
- package/docs/sdks/payments/README.md +242 -2
- package/docs/sdks/products/README.md +1 -1
- package/esm/funcs/catalogProductsGet.d.ts +1 -1
- package/esm/funcs/catalogProductsGet.js +1 -1
- package/esm/funcs/{customersAPIGetCustomersId.d.ts → customersGetCustomersId.d.ts} +2 -2
- package/esm/funcs/customersGetCustomersId.d.ts.map +1 -0
- package/esm/funcs/{customersAPIGetCustomersId.js → customersGetCustomersId.js} +2 -2
- package/esm/funcs/customersGetCustomersId.js.map +1 -0
- package/esm/funcs/{customersAPIPostCustomers.d.ts → customersPostCustomers.d.ts} +2 -2
- package/esm/funcs/customersPostCustomers.d.ts.map +1 -0
- package/esm/funcs/{customersAPIPostCustomers.js → customersPostCustomers.js} +2 -2
- package/esm/funcs/customersPostCustomers.js.map +1 -0
- package/esm/funcs/{customersAPIPutCustomersId.d.ts → customersPutCustomersId.d.ts} +2 -2
- package/esm/funcs/customersPutCustomersId.d.ts.map +1 -0
- package/esm/funcs/{customersAPIPutCustomersId.js → customersPutCustomersId.js} +2 -2
- package/esm/funcs/{customersAPIPostCustomers.js.map → customersPutCustomersId.js.map} +1 -1
- package/esm/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.d.ts → juspayGetPaymentsJuspayCustomer.d.ts} +2 -2
- package/esm/funcs/juspayGetPaymentsJuspayCustomer.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.js → juspayGetPaymentsJuspayCustomer.js} +2 -2
- package/esm/funcs/juspayGetPaymentsJuspayCustomer.js.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.d.ts → juspayPostPaymentsJuspayCreateCustomer.d.ts} +2 -2
- package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.js → juspayPostPaymentsJuspayCreateCustomer.js} +2 -2
- package/esm/funcs/juspayPostPaymentsJuspayCreateCustomer.js.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.d.ts → juspayPostPaymentsJuspayCreateOrder.d.ts} +2 -2
- package/esm/funcs/juspayPostPaymentsJuspayCreateOrder.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.js → juspayPostPaymentsJuspayCreateOrder.js} +2 -2
- package/esm/funcs/juspayPostPaymentsJuspayCreateOrder.js.map +1 -0
- package/esm/funcs/{ordersAPIGetOrdersIdPaymentStatus.d.ts → ordersGetOrdersIdPaymentStatus.d.ts} +2 -2
- package/esm/funcs/ordersGetOrdersIdPaymentStatus.d.ts.map +1 -0
- package/esm/funcs/{ordersAPIGetOrdersIdPaymentStatus.js → ordersGetOrdersIdPaymentStatus.js} +2 -2
- package/esm/funcs/ordersGetOrdersIdPaymentStatus.js.map +1 -0
- package/esm/funcs/paymentsGetMethods.d.ts +1 -1
- package/esm/funcs/paymentsGetMethods.d.ts.map +1 -1
- package/esm/funcs/paymentsGetMethods.js +3 -3
- package/esm/funcs/paymentsGetMethods.js.map +1 -1
- package/esm/funcs/{paymentsAPIGetPaymentsCards.d.ts → paymentsGetPaymentsCards.d.ts} +2 -2
- package/esm/funcs/paymentsGetPaymentsCards.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIGetPaymentsCards.js → paymentsGetPaymentsCards.js} +2 -2
- package/esm/funcs/paymentsGetPaymentsCards.js.map +1 -0
- package/esm/funcs/{paymentsAPIGetPaymentsVerifyVpa.d.ts → paymentsGetPaymentsVerifyVpa.d.ts} +2 -2
- package/esm/funcs/paymentsGetPaymentsVerifyVpa.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIGetPaymentsVerifyVpa.js → paymentsGetPaymentsVerifyVpa.js} +2 -2
- package/esm/funcs/paymentsGetPaymentsVerifyVpa.js.map +1 -0
- package/esm/funcs/{paymentsAPIPostPaymentsCards.d.ts → paymentsPostPaymentsCards.d.ts} +2 -2
- package/esm/funcs/paymentsPostPaymentsCards.d.ts.map +1 -0
- package/esm/funcs/{paymentsAPIPostPaymentsCards.js → paymentsPostPaymentsCards.js} +2 -2
- package/esm/funcs/paymentsPostPaymentsCards.js.map +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/components/cart.d.ts +1 -1
- package/esm/models/components/cart.d.ts.map +1 -1
- package/esm/models/components/cart.js +1 -1
- package/esm/models/components/cart.js.map +1 -1
- package/esm/models/components/createcustomer.d.ts +1 -1
- package/esm/models/components/createcustomer.d.ts.map +1 -1
- package/esm/models/components/createcustomer.js +1 -1
- package/esm/models/components/createcustomer.js.map +1 -1
- package/esm/models/components/{customeraddressinput.d.ts → customeraddress.d.ts} +33 -33
- package/esm/models/components/customeraddress.d.ts.map +1 -0
- package/esm/models/components/{customeraddressinput.js → customeraddress.js} +37 -37
- package/esm/models/components/customeraddress.js.map +1 -0
- package/esm/models/components/freegoodspromotion.d.ts +2 -2
- package/esm/models/components/freegoodspromotion.d.ts.map +1 -1
- package/esm/models/components/freegoodspromotion.js +2 -2
- package/esm/models/components/freegoodspromotion.js.map +1 -1
- package/esm/models/components/index.d.ts +2 -3
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +2 -3
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/orderdetail.d.ts +1 -1
- package/esm/models/components/orderdetail.d.ts.map +1 -1
- package/esm/models/components/orderdetail.js +1 -1
- package/esm/models/components/orderdetail.js.map +1 -1
- package/esm/models/components/{productlist.d.ts → product.d.ts} +14 -16
- package/esm/models/components/product.d.ts.map +1 -0
- package/esm/models/components/{productlist.js → product.js} +16 -20
- package/esm/models/components/product.js.map +1 -0
- package/esm/models/components/productdetail.d.ts +4 -4
- package/esm/models/components/productdetail.d.ts.map +1 -1
- package/esm/models/components/productdetail.js +4 -4
- package/esm/models/components/productdetail.js.map +1 -1
- package/esm/models/components/productlistresponse.d.ts +3 -3
- package/esm/models/components/productlistresponse.d.ts.map +1 -1
- package/esm/models/components/productlistresponse.js +3 -3
- package/esm/models/components/productlistresponse.js.map +1 -1
- package/esm/models/components/productpromotion.d.ts +11 -5
- package/esm/models/components/productpromotion.d.ts.map +1 -1
- package/esm/models/operations/getpaymentmethods.d.ts +143 -0
- package/esm/models/operations/getpaymentmethods.d.ts.map +1 -0
- package/esm/models/operations/{getpaymentspaymentmethods.js → getpaymentmethods.js} +42 -44
- package/esm/models/operations/getpaymentmethods.js.map +1 -0
- package/esm/models/operations/getsimilar.d.ts +2 -27
- package/esm/models/operations/getsimilar.d.ts.map +1 -1
- package/esm/models/operations/getsimilar.js +2 -27
- package/esm/models/operations/getsimilar.js.map +1 -1
- package/esm/models/operations/index.d.ts +1 -2
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +1 -2
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/postcartitemid.d.ts +15 -15
- package/esm/models/operations/postcartitemid.d.ts.map +1 -1
- package/esm/models/operations/postcartitemid.js +15 -15
- package/esm/models/operations/postcartitemid.js.map +1 -1
- package/esm/sdk/{cestorefrontpayments.d.ts → cestorefrontorderspayments.d.ts} +2 -2
- package/esm/sdk/cestorefrontorderspayments.d.ts.map +1 -0
- package/esm/sdk/{cestorefrontpayments.js → cestorefrontorderspayments.js} +2 -2
- package/esm/sdk/cestorefrontorderspayments.js.map +1 -0
- package/esm/sdk/customers.d.ts +24 -1
- package/esm/sdk/customers.d.ts.map +1 -1
- package/esm/sdk/customers.js +31 -0
- package/esm/sdk/customers.js.map +1 -1
- package/esm/sdk/{paymentsapijuspay.d.ts → juspay.d.ts} +2 -2
- package/esm/sdk/juspay.d.ts.map +1 -0
- package/esm/sdk/{paymentsapijuspay.js → juspay.js} +8 -8
- package/esm/sdk/juspay.js.map +1 -0
- package/esm/sdk/orders.d.ts +9 -2
- package/esm/sdk/orders.d.ts.map +1 -1
- package/esm/sdk/orders.js +12 -2
- package/esm/sdk/orders.js.map +1 -1
- package/esm/sdk/payments.d.ts +23 -1
- package/esm/sdk/payments.d.ts.map +1 -1
- package/esm/sdk/payments.js +31 -0
- package/esm/sdk/payments.js.map +1 -1
- package/esm/sdk/products.d.ts +1 -1
- package/esm/sdk/products.js +1 -1
- package/esm/sdk/sdk.d.ts +3 -12
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +3 -15
- package/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/catalogProductsGet.ts +1 -1
- package/src/funcs/{customersAPIGetCustomersId.ts → customersGetCustomersId.ts} +1 -1
- package/src/funcs/{customersAPIPostCustomers.ts → customersPostCustomers.ts} +1 -1
- package/src/funcs/{customersAPIPutCustomersId.ts → customersPutCustomersId.ts} +1 -1
- package/src/funcs/{paymentsAPIJuspayGetPaymentsJuspayCustomer.ts → juspayGetPaymentsJuspayCustomer.ts} +1 -1
- package/src/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.ts → juspayPostPaymentsJuspayCreateCustomer.ts} +1 -1
- package/src/funcs/{paymentsAPIJuspayPostPaymentsJuspayCreateOrder.ts → juspayPostPaymentsJuspayCreateOrder.ts} +1 -1
- package/src/funcs/{ordersAPIGetOrdersIdPaymentStatus.ts → ordersGetOrdersIdPaymentStatus.ts} +1 -1
- package/src/funcs/paymentsGetMethods.ts +6 -7
- package/src/funcs/{paymentsAPIGetPaymentsCards.ts → paymentsGetPaymentsCards.ts} +1 -1
- package/src/funcs/{paymentsAPIGetPaymentsVerifyVpa.ts → paymentsGetPaymentsVerifyVpa.ts} +1 -1
- package/src/funcs/{paymentsAPIPostPaymentsCards.ts → paymentsPostPaymentsCards.ts} +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/cart.ts +1 -1
- package/src/models/components/createcustomer.ts +1 -1
- package/src/models/components/freegoodspromotion.ts +4 -4
- package/src/models/components/index.ts +2 -3
- package/src/models/components/orderdetail.ts +1 -1
- package/src/models/components/{productlist.ts → product.ts} +73 -78
- package/src/models/components/productdetail.ts +8 -8
- package/src/models/components/productlistresponse.ts +9 -9
- package/src/models/operations/{getpaymentspaymentmethods.ts → getpaymentmethods.ts} +68 -77
- package/src/models/operations/getsimilar.ts +4 -62
- package/src/models/operations/index.ts +1 -2
- package/src/models/operations/postcartitemid.ts +27 -25
- package/src/sdk/{cestorefrontpayments.ts → cestorefrontorderspayments.ts} +1 -1
- package/src/sdk/customers.ts +58 -1
- package/src/sdk/{paymentsapijuspay.ts → juspay.ts} +7 -7
- package/src/sdk/orders.ts +22 -4
- package/src/sdk/payments.ts +57 -2
- package/src/sdk/products.ts +1 -1
- package/src/sdk/sdk.ts +4 -22
- package/docs/sdks/customersapi/README.md +0 -321
- package/docs/sdks/ordersapi/README.md +0 -86
- package/docs/sdks/paymentsapi/README.md +0 -247
- package/esm/funcs/customersAPIGetCustomersId.d.ts.map +0 -1
- package/esm/funcs/customersAPIGetCustomersId.js.map +0 -1
- package/esm/funcs/customersAPIGetRecommendedProducts.d.ts +0 -16
- package/esm/funcs/customersAPIGetRecommendedProducts.d.ts.map +0 -1
- package/esm/funcs/customersAPIGetRecommendedProducts.js +0 -80
- package/esm/funcs/customersAPIGetRecommendedProducts.js.map +0 -1
- package/esm/funcs/customersAPIPostCustomers.d.ts.map +0 -1
- package/esm/funcs/customersAPIPutCustomersId.d.ts.map +0 -1
- package/esm/funcs/customersAPIPutCustomersId.js.map +0 -1
- package/esm/funcs/ordersAPIGetOrdersIdPaymentStatus.d.ts.map +0 -1
- package/esm/funcs/ordersAPIGetOrdersIdPaymentStatus.js.map +0 -1
- package/esm/funcs/paymentsAPIGetPaymentsCards.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIGetPaymentsCards.js.map +0 -1
- package/esm/funcs/paymentsAPIGetPaymentsVerifyVpa.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIGetPaymentsVerifyVpa.js.map +0 -1
- package/esm/funcs/paymentsAPIJuspayGetPaymentsJuspayCustomer.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIJuspayGetPaymentsJuspayCustomer.js.map +0 -1
- package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateCustomer.js.map +0 -1
- package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateOrder.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIJuspayPostPaymentsJuspayCreateOrder.js.map +0 -1
- package/esm/funcs/paymentsAPIPostPaymentsCards.d.ts.map +0 -1
- package/esm/funcs/paymentsAPIPostPaymentsCards.js.map +0 -1
- package/esm/models/components/customeraddressinput.d.ts.map +0 -1
- package/esm/models/components/customeraddressinput.js.map +0 -1
- package/esm/models/components/productlist.d.ts.map +0 -1
- package/esm/models/components/productlist.js.map +0 -1
- package/esm/models/components/recommendedproduct.d.ts +0 -155
- package/esm/models/components/recommendedproduct.d.ts.map +0 -1
- package/esm/models/components/recommendedproduct.js +0 -193
- package/esm/models/components/recommendedproduct.js.map +0 -1
- package/esm/models/operations/getpaymentspaymentmethods.d.ts +0 -143
- package/esm/models/operations/getpaymentspaymentmethods.d.ts.map +0 -1
- package/esm/models/operations/getpaymentspaymentmethods.js.map +0 -1
- package/esm/models/operations/getrecommendedproducts.d.ts +0 -90
- package/esm/models/operations/getrecommendedproducts.d.ts.map +0 -1
- package/esm/models/operations/getrecommendedproducts.js +0 -87
- package/esm/models/operations/getrecommendedproducts.js.map +0 -1
- package/esm/sdk/cestorefrontpayments.d.ts.map +0 -1
- package/esm/sdk/cestorefrontpayments.js.map +0 -1
- package/esm/sdk/customersapi.d.ts +0 -34
- package/esm/sdk/customersapi.d.ts.map +0 -1
- package/esm/sdk/customersapi.js +0 -48
- package/esm/sdk/customersapi.js.map +0 -1
- package/esm/sdk/ordersapi.d.ts +0 -12
- package/esm/sdk/ordersapi.d.ts.map +0 -1
- package/esm/sdk/ordersapi.js +0 -18
- package/esm/sdk/ordersapi.js.map +0 -1
- package/esm/sdk/paymentsapi.d.ts +0 -27
- package/esm/sdk/paymentsapi.d.ts.map +0 -1
- package/esm/sdk/paymentsapi.js +0 -39
- package/esm/sdk/paymentsapi.js.map +0 -1
- package/esm/sdk/paymentsapijuspay.d.ts.map +0 -1
- package/esm/sdk/paymentsapijuspay.js.map +0 -1
- package/src/funcs/customersAPIGetRecommendedProducts.ts +0 -144
- package/src/models/components/recommendedproduct.ts +0 -385
- package/src/models/operations/getrecommendedproducts.ts +0 -206
- package/src/sdk/customersapi.ts +0 -82
- package/src/sdk/ordersapi.ts +0 -27
- package/src/sdk/paymentsapi.ts +0 -64
- package/src/models/components/{customeraddressinput.ts → customeraddress.ts} +60 -60
|
@@ -1,87 +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 * as components from "../components/index.js";
|
|
7
|
-
/** @internal */
|
|
8
|
-
export const GetRecommendedProductsRequest$inboundSchema = z.object({
|
|
9
|
-
id: z.string(),
|
|
10
|
-
});
|
|
11
|
-
/** @internal */
|
|
12
|
-
export const GetRecommendedProductsRequest$outboundSchema = z.object({
|
|
13
|
-
id: z.string(),
|
|
14
|
-
});
|
|
15
|
-
/**
|
|
16
|
-
* @internal
|
|
17
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
18
|
-
*/
|
|
19
|
-
export var GetRecommendedProductsRequest$;
|
|
20
|
-
(function (GetRecommendedProductsRequest$) {
|
|
21
|
-
/** @deprecated use `GetRecommendedProductsRequest$inboundSchema` instead. */
|
|
22
|
-
GetRecommendedProductsRequest$.inboundSchema = GetRecommendedProductsRequest$inboundSchema;
|
|
23
|
-
/** @deprecated use `GetRecommendedProductsRequest$outboundSchema` instead. */
|
|
24
|
-
GetRecommendedProductsRequest$.outboundSchema = GetRecommendedProductsRequest$outboundSchema;
|
|
25
|
-
})(GetRecommendedProductsRequest$ || (GetRecommendedProductsRequest$ = {}));
|
|
26
|
-
export function getRecommendedProductsRequestToJSON(getRecommendedProductsRequest) {
|
|
27
|
-
return JSON.stringify(GetRecommendedProductsRequest$outboundSchema.parse(getRecommendedProductsRequest));
|
|
28
|
-
}
|
|
29
|
-
export function getRecommendedProductsRequestFromJSON(jsonString) {
|
|
30
|
-
return safeParse(jsonString, (x) => GetRecommendedProductsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetRecommendedProductsRequest' from JSON`);
|
|
31
|
-
}
|
|
32
|
-
/** @internal */
|
|
33
|
-
export const GetRecommendedProductsContent$inboundSchema = z.object({
|
|
34
|
-
products: z.array(components.RecommendedProduct$inboundSchema).optional(),
|
|
35
|
-
});
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const GetRecommendedProductsContent$outboundSchema = z.object({
|
|
38
|
-
products: z.array(components.RecommendedProduct$outboundSchema).optional(),
|
|
39
|
-
});
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
-
*/
|
|
44
|
-
export var GetRecommendedProductsContent$;
|
|
45
|
-
(function (GetRecommendedProductsContent$) {
|
|
46
|
-
/** @deprecated use `GetRecommendedProductsContent$inboundSchema` instead. */
|
|
47
|
-
GetRecommendedProductsContent$.inboundSchema = GetRecommendedProductsContent$inboundSchema;
|
|
48
|
-
/** @deprecated use `GetRecommendedProductsContent$outboundSchema` instead. */
|
|
49
|
-
GetRecommendedProductsContent$.outboundSchema = GetRecommendedProductsContent$outboundSchema;
|
|
50
|
-
})(GetRecommendedProductsContent$ || (GetRecommendedProductsContent$ = {}));
|
|
51
|
-
export function getRecommendedProductsContentToJSON(getRecommendedProductsContent) {
|
|
52
|
-
return JSON.stringify(GetRecommendedProductsContent$outboundSchema.parse(getRecommendedProductsContent));
|
|
53
|
-
}
|
|
54
|
-
export function getRecommendedProductsContentFromJSON(jsonString) {
|
|
55
|
-
return safeParse(jsonString, (x) => GetRecommendedProductsContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetRecommendedProductsContent' from JSON`);
|
|
56
|
-
}
|
|
57
|
-
/** @internal */
|
|
58
|
-
export const GetRecommendedProductsResponseBody$inboundSchema = z.object({
|
|
59
|
-
message: z.string().optional(),
|
|
60
|
-
success: z.boolean().optional(),
|
|
61
|
-
content: z.lazy(() => GetRecommendedProductsContent$inboundSchema).optional(),
|
|
62
|
-
});
|
|
63
|
-
/** @internal */
|
|
64
|
-
export const GetRecommendedProductsResponseBody$outboundSchema = z.object({
|
|
65
|
-
message: z.string().optional(),
|
|
66
|
-
success: z.boolean().optional(),
|
|
67
|
-
content: z.lazy(() => GetRecommendedProductsContent$outboundSchema)
|
|
68
|
-
.optional(),
|
|
69
|
-
});
|
|
70
|
-
/**
|
|
71
|
-
* @internal
|
|
72
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
-
*/
|
|
74
|
-
export var GetRecommendedProductsResponseBody$;
|
|
75
|
-
(function (GetRecommendedProductsResponseBody$) {
|
|
76
|
-
/** @deprecated use `GetRecommendedProductsResponseBody$inboundSchema` instead. */
|
|
77
|
-
GetRecommendedProductsResponseBody$.inboundSchema = GetRecommendedProductsResponseBody$inboundSchema;
|
|
78
|
-
/** @deprecated use `GetRecommendedProductsResponseBody$outboundSchema` instead. */
|
|
79
|
-
GetRecommendedProductsResponseBody$.outboundSchema = GetRecommendedProductsResponseBody$outboundSchema;
|
|
80
|
-
})(GetRecommendedProductsResponseBody$ || (GetRecommendedProductsResponseBody$ = {}));
|
|
81
|
-
export function getRecommendedProductsResponseBodyToJSON(getRecommendedProductsResponseBody) {
|
|
82
|
-
return JSON.stringify(GetRecommendedProductsResponseBody$outboundSchema.parse(getRecommendedProductsResponseBody));
|
|
83
|
-
}
|
|
84
|
-
export function getRecommendedProductsResponseBodyFromJSON(jsonString) {
|
|
85
|
-
return safeParse(jsonString, (x) => GetRecommendedProductsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetRecommendedProductsResponseBody' from JSON`);
|
|
86
|
-
}
|
|
87
|
-
//# sourceMappingURL=getrecommendedproducts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getrecommendedproducts.js","sourceRoot":"","sources":["../../../src/models/operations/getrecommendedproducts.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cestorefrontpayments.d.ts","sourceRoot":"","sources":["../../src/sdk/cestorefrontpayments.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,oBAAqB,SAAQ,SAAS;IACjD;;;;;OAKG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,+BAA+B,CAAC;CAOvD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cestorefrontpayments.js","sourceRoot":"","sources":["../../src/sdk/cestorefrontpayments.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,oBAAqB,SAAQ,SAAS;IACjD;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAA8C,EAC9C,OAAwB;QAExB,OAAO,WAAW,CAAC,kBAAkB,CACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as components from "../models/components/index.js";
|
|
3
|
-
import * as operations from "../models/operations/index.js";
|
|
4
|
-
export declare class CustomersAPI extends ClientSDK {
|
|
5
|
-
/**
|
|
6
|
-
* List all recommended products
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
* Retrieves a list of recommended products for a specified user based on their browsing history, past purchases, and indicated preferences. The recommended products are returned sorted by relevance, providing a personalized shopping experience for each user.
|
|
10
|
-
*/
|
|
11
|
-
getRecommendedProducts(request: operations.GetRecommendedProductsRequest, options?: RequestOptions): Promise<operations.GetRecommendedProductsResponseBody>;
|
|
12
|
-
/**
|
|
13
|
-
* Create customer
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* Create customer
|
|
17
|
-
*/
|
|
18
|
-
postCustomers(request: components.CreateCustomer, options?: RequestOptions): Promise<operations.PostCustomersResponseBody>;
|
|
19
|
-
/**
|
|
20
|
-
* Retrieve customer detail
|
|
21
|
-
*
|
|
22
|
-
* @remarks
|
|
23
|
-
* Retrieve customer detail.
|
|
24
|
-
*/
|
|
25
|
-
getCustomersId(request: operations.GetCustomersIdRequest, options?: RequestOptions): Promise<operations.GetCustomersIdResponseBody>;
|
|
26
|
-
/**
|
|
27
|
-
* Update customer detail
|
|
28
|
-
*
|
|
29
|
-
* @remarks
|
|
30
|
-
* Update customer detail
|
|
31
|
-
*/
|
|
32
|
-
putCustomersId(request: operations.PutCustomersIdRequest, options?: RequestOptions): Promise<operations.PutCustomersIdResponseBody>;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=customersapi.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"customersapi.d.ts","sourceRoot":"","sources":["../../src/sdk/customersapi.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,YAAa,SAAQ,SAAS;IACzC;;;;;OAKG;IACG,sBAAsB,CAC1B,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;IAQzD;;;;;OAKG;IACG,aAAa,CACjB,OAAO,EAAE,UAAU,CAAC,cAAc,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;IAQhD;;;;;OAKG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAQjD;;;;;OAKG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;CAOlD"}
|
package/esm/sdk/customersapi.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import { customersAPIGetCustomersId } from "../funcs/customersAPIGetCustomersId.js";
|
|
5
|
-
import { customersAPIGetRecommendedProducts } from "../funcs/customersAPIGetRecommendedProducts.js";
|
|
6
|
-
import { customersAPIPostCustomers } from "../funcs/customersAPIPostCustomers.js";
|
|
7
|
-
import { customersAPIPutCustomersId } from "../funcs/customersAPIPutCustomersId.js";
|
|
8
|
-
import { ClientSDK } from "../lib/sdks.js";
|
|
9
|
-
import { unwrapAsync } from "../types/fp.js";
|
|
10
|
-
export class CustomersAPI extends ClientSDK {
|
|
11
|
-
/**
|
|
12
|
-
* List all recommended products
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Retrieves a list of recommended products for a specified user based on their browsing history, past purchases, and indicated preferences. The recommended products are returned sorted by relevance, providing a personalized shopping experience for each user.
|
|
16
|
-
*/
|
|
17
|
-
async getRecommendedProducts(request, options) {
|
|
18
|
-
return unwrapAsync(customersAPIGetRecommendedProducts(this, request, options));
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Create customer
|
|
22
|
-
*
|
|
23
|
-
* @remarks
|
|
24
|
-
* Create customer
|
|
25
|
-
*/
|
|
26
|
-
async postCustomers(request, options) {
|
|
27
|
-
return unwrapAsync(customersAPIPostCustomers(this, request, options));
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Retrieve customer detail
|
|
31
|
-
*
|
|
32
|
-
* @remarks
|
|
33
|
-
* Retrieve customer detail.
|
|
34
|
-
*/
|
|
35
|
-
async getCustomersId(request, options) {
|
|
36
|
-
return unwrapAsync(customersAPIGetCustomersId(this, request, options));
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Update customer detail
|
|
40
|
-
*
|
|
41
|
-
* @remarks
|
|
42
|
-
* Update customer detail
|
|
43
|
-
*/
|
|
44
|
-
async putCustomersId(request, options) {
|
|
45
|
-
return unwrapAsync(customersAPIPutCustomersId(this, request, options));
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=customersapi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"customersapi.js","sourceRoot":"","sources":["../../src/sdk/customersapi.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AACpG,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,YAAa,SAAQ,SAAS;IACzC;;;;;OAKG;IACH,KAAK,CAAC,sBAAsB,CAC1B,OAAiD,EACjD,OAAwB;QAExB,OAAO,WAAW,CAAC,kCAAkC,CACnD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,aAAa,CACjB,OAAkC,EAClC,OAAwB;QAExB,OAAO,WAAW,CAAC,yBAAyB,CAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAAyC,EACzC,OAAwB;QAExB,OAAO,WAAW,CAAC,0BAA0B,CAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAClB,OAAyC,EACzC,OAAwB;QAExB,OAAO,WAAW,CAAC,0BAA0B,CAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/esm/sdk/ordersapi.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as operations from "../models/operations/index.js";
|
|
3
|
-
export declare class OrdersAPI extends ClientSDK {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieve payment status
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* Retrieve payment status of a paricular order.
|
|
9
|
-
*/
|
|
10
|
-
getOrdersIdPaymentStatus(request: operations.GetOrdersIdPaymentStatusRequest, options?: RequestOptions): Promise<operations.GetOrdersIdPaymentStatusResponseBody>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=ordersapi.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ordersapi.d.ts","sourceRoot":"","sources":["../../src/sdk/ordersapi.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,SAAU,SAAQ,SAAS;IACtC;;;;;OAKG;IACG,wBAAwB,CAC5B,OAAO,EAAE,UAAU,CAAC,+BAA+B,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oCAAoC,CAAC;CAO5D"}
|
package/esm/sdk/ordersapi.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import { ordersAPIGetOrdersIdPaymentStatus } from "../funcs/ordersAPIGetOrdersIdPaymentStatus.js";
|
|
5
|
-
import { ClientSDK } from "../lib/sdks.js";
|
|
6
|
-
import { unwrapAsync } from "../types/fp.js";
|
|
7
|
-
export class OrdersAPI extends ClientSDK {
|
|
8
|
-
/**
|
|
9
|
-
* Retrieve payment status
|
|
10
|
-
*
|
|
11
|
-
* @remarks
|
|
12
|
-
* Retrieve payment status of a paricular order.
|
|
13
|
-
*/
|
|
14
|
-
async getOrdersIdPaymentStatus(request, options) {
|
|
15
|
-
return unwrapAsync(ordersAPIGetOrdersIdPaymentStatus(this, request, options));
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=ordersapi.js.map
|
package/esm/sdk/ordersapi.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ordersapi.js","sourceRoot":"","sources":["../../src/sdk/ordersapi.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,iCAAiC,EAAE,MAAM,+CAA+C,CAAC;AAClG,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,SAAU,SAAQ,SAAS;IACtC;;;;;OAKG;IACH,KAAK,CAAC,wBAAwB,CAC5B,OAAmD,EACnD,OAAwB;QAExB,OAAO,WAAW,CAAC,iCAAiC,CAClD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/esm/sdk/paymentsapi.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as operations from "../models/operations/index.js";
|
|
3
|
-
export declare class PaymentsAPI extends ClientSDK {
|
|
4
|
-
/**
|
|
5
|
-
* List all saved cards
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* List all saved cards.
|
|
9
|
-
*/
|
|
10
|
-
getPaymentsCards(request: operations.GetPaymentsCardsRequest, options?: RequestOptions): Promise<operations.GetPaymentsCardsResponseBody>;
|
|
11
|
-
/**
|
|
12
|
-
* Add card
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Add a new card
|
|
16
|
-
*/
|
|
17
|
-
postPaymentsCards(request: operations.PostPaymentsCardsRequestBody, options?: RequestOptions): Promise<operations.PostPaymentsCardsResponseBody>;
|
|
18
|
-
/**
|
|
19
|
-
* Verify VPA
|
|
20
|
-
*
|
|
21
|
-
* @remarks
|
|
22
|
-
* The Virtual Payment Address or VPA is a unique ID given to an individual using the Unified Payment Interface (UPI) service to send or receive money. In the case of UPI collect VPA is the mandatory param and merchants are always advised to check if the VPA is valid or not.
|
|
23
|
-
* Validating the VPA will help in reducing the failure rate due to incorrect vpa.
|
|
24
|
-
*/
|
|
25
|
-
getPaymentsVerifyVpa(request: operations.GetPaymentsVerifyVpaRequest, options?: RequestOptions): Promise<operations.GetPaymentsVerifyVpaResponseBody>;
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=paymentsapi.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paymentsapi.d.ts","sourceRoot":"","sources":["../../src/sdk/paymentsapi.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,WAAY,SAAQ,SAAS;IACxC;;;;;OAKG;IACG,gBAAgB,CACpB,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC;IAQnD;;;;;OAKG;IACG,iBAAiB,CACrB,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQpD;;;;;;OAMG;IACG,oBAAoB,CACxB,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC;CAOxD"}
|
package/esm/sdk/paymentsapi.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import { paymentsAPIGetPaymentsCards } from "../funcs/paymentsAPIGetPaymentsCards.js";
|
|
5
|
-
import { paymentsAPIGetPaymentsVerifyVpa } from "../funcs/paymentsAPIGetPaymentsVerifyVpa.js";
|
|
6
|
-
import { paymentsAPIPostPaymentsCards } from "../funcs/paymentsAPIPostPaymentsCards.js";
|
|
7
|
-
import { ClientSDK } from "../lib/sdks.js";
|
|
8
|
-
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
-
export class PaymentsAPI extends ClientSDK {
|
|
10
|
-
/**
|
|
11
|
-
* List all saved cards
|
|
12
|
-
*
|
|
13
|
-
* @remarks
|
|
14
|
-
* List all saved cards.
|
|
15
|
-
*/
|
|
16
|
-
async getPaymentsCards(request, options) {
|
|
17
|
-
return unwrapAsync(paymentsAPIGetPaymentsCards(this, request, options));
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Add card
|
|
21
|
-
*
|
|
22
|
-
* @remarks
|
|
23
|
-
* Add a new card
|
|
24
|
-
*/
|
|
25
|
-
async postPaymentsCards(request, options) {
|
|
26
|
-
return unwrapAsync(paymentsAPIPostPaymentsCards(this, request, options));
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Verify VPA
|
|
30
|
-
*
|
|
31
|
-
* @remarks
|
|
32
|
-
* The Virtual Payment Address or VPA is a unique ID given to an individual using the Unified Payment Interface (UPI) service to send or receive money. In the case of UPI collect VPA is the mandatory param and merchants are always advised to check if the VPA is valid or not.
|
|
33
|
-
* Validating the VPA will help in reducing the failure rate due to incorrect vpa.
|
|
34
|
-
*/
|
|
35
|
-
async getPaymentsVerifyVpa(request, options) {
|
|
36
|
-
return unwrapAsync(paymentsAPIGetPaymentsVerifyVpa(this, request, options));
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=paymentsapi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paymentsapi.js","sourceRoot":"","sources":["../../src/sdk/paymentsapi.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,+BAA+B,EAAE,MAAM,6CAA6C,CAAC;AAC9F,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,WAAY,SAAQ,SAAS;IACxC;;;;;OAKG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAA2C,EAC3C,OAAwB;QAExB,OAAO,WAAW,CAAC,2BAA2B,CAC5C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAAgD,EAChD,OAAwB;QAExB,OAAO,WAAW,CAAC,4BAA4B,CAC7C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,oBAAoB,CACxB,OAA+C,EAC/C,OAAwB;QAExB,OAAO,WAAW,CAAC,+BAA+B,CAChD,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paymentsapijuspay.d.ts","sourceRoot":"","sources":["../../src/sdk/paymentsapijuspay.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,iBAAkB,SAAQ,SAAS;IAC9C;;;;;;OAMG;IACG,6BAA6B,CACjC,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yCAAyC,CAAC;IAQhE;;;;;OAKG;IACG,gCAAgC,CACpC,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4CAA4C,CAAC;IAQnE;;;;;OAKG;IACG,yBAAyB,CAC7B,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qCAAqC,CAAC;CAO7D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paymentsapijuspay.js","sourceRoot":"","sources":["../../src/sdk/paymentsapijuspay.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,0CAA0C,EAAE,MAAM,wDAAwD,CAAC;AACpH,OAAO,EAAE,iDAAiD,EAAE,MAAM,+DAA+D,CAAC;AAClI,OAAO,EAAE,8CAA8C,EAAE,MAAM,4DAA4D,CAAC;AAC5H,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAG3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IAC9C;;;;;;OAMG;IACH,KAAK,CAAC,6BAA6B,CACjC,OAA4C,EAC5C,OAAwB;QAExB,OAAO,WAAW,CAAC,8CAA8C,CAC/D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,gCAAgC,CACpC,OAA+C,EAC/C,OAAwB;QAExB,OAAO,WAAW,CAAC,iDAAiD,CAClE,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,yBAAyB,CAC7B,OAAoD,EACpD,OAAwB;QAExB,OAAO,WAAW,CAAC,0CAA0C,CAC3D,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { CeStorefrontCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
-
import * as M from "../lib/matchers.js";
|
|
8
|
-
import { compactMap } from "../lib/primitives.js";
|
|
9
|
-
import { safeParse } from "../lib/schemas.js";
|
|
10
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
-
import { pathToFunc } from "../lib/url.js";
|
|
13
|
-
import { CeError } from "../models/errors/ceerror.js";
|
|
14
|
-
import {
|
|
15
|
-
ConnectionError,
|
|
16
|
-
InvalidRequestError,
|
|
17
|
-
RequestAbortedError,
|
|
18
|
-
RequestTimeoutError,
|
|
19
|
-
UnexpectedClientError,
|
|
20
|
-
} from "../models/errors/httpclienterrors.js";
|
|
21
|
-
import * as errors from "../models/errors/index.js";
|
|
22
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
-
import * as operations from "../models/operations/index.js";
|
|
24
|
-
import { Result } from "../types/fp.js";
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* List all recommended products
|
|
28
|
-
*
|
|
29
|
-
* @remarks
|
|
30
|
-
* Retrieves a list of recommended products for a specified user based on their browsing history, past purchases, and indicated preferences. The recommended products are returned sorted by relevance, providing a personalized shopping experience for each user.
|
|
31
|
-
*/
|
|
32
|
-
export async function customersAPIGetRecommendedProducts(
|
|
33
|
-
client: CeStorefrontCore,
|
|
34
|
-
request: operations.GetRecommendedProductsRequest,
|
|
35
|
-
options?: RequestOptions,
|
|
36
|
-
): Promise<
|
|
37
|
-
Result<
|
|
38
|
-
operations.GetRecommendedProductsResponseBody,
|
|
39
|
-
| errors.Unauthorized
|
|
40
|
-
| errors.NotFound
|
|
41
|
-
| CeError
|
|
42
|
-
| SDKValidationError
|
|
43
|
-
| UnexpectedClientError
|
|
44
|
-
| InvalidRequestError
|
|
45
|
-
| RequestAbortedError
|
|
46
|
-
| RequestTimeoutError
|
|
47
|
-
| ConnectionError
|
|
48
|
-
>
|
|
49
|
-
> {
|
|
50
|
-
const parsed = safeParse(
|
|
51
|
-
request,
|
|
52
|
-
(value) =>
|
|
53
|
-
operations.GetRecommendedProductsRequest$outboundSchema.parse(value),
|
|
54
|
-
"Input validation failed",
|
|
55
|
-
);
|
|
56
|
-
if (!parsed.ok) {
|
|
57
|
-
return parsed;
|
|
58
|
-
}
|
|
59
|
-
const payload = parsed.value;
|
|
60
|
-
const body = null;
|
|
61
|
-
|
|
62
|
-
const pathParams = {
|
|
63
|
-
id: encodeSimple("id", payload.id, {
|
|
64
|
-
explode: false,
|
|
65
|
-
charEncoding: "percent",
|
|
66
|
-
}),
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
const path = pathToFunc("/customer/{id}/recommended-products")(pathParams);
|
|
70
|
-
|
|
71
|
-
const headers = new Headers(compactMap({
|
|
72
|
-
Accept: "application/json",
|
|
73
|
-
}));
|
|
74
|
-
|
|
75
|
-
const secConfig = await extractSecurity(client._options.authorization);
|
|
76
|
-
const securityInput = secConfig == null ? {} : { authorization: secConfig };
|
|
77
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
78
|
-
|
|
79
|
-
const context = {
|
|
80
|
-
operationID: "get-recommended-products",
|
|
81
|
-
oAuth2Scopes: [],
|
|
82
|
-
|
|
83
|
-
resolvedSecurity: requestSecurity,
|
|
84
|
-
|
|
85
|
-
securitySource: client._options.authorization,
|
|
86
|
-
retryConfig: options?.retries
|
|
87
|
-
|| client._options.retryConfig
|
|
88
|
-
|| { strategy: "none" },
|
|
89
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
const requestRes = client._createRequest(context, {
|
|
93
|
-
security: requestSecurity,
|
|
94
|
-
method: "GET",
|
|
95
|
-
baseURL: options?.serverURL,
|
|
96
|
-
path: path,
|
|
97
|
-
headers: headers,
|
|
98
|
-
body: body,
|
|
99
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
100
|
-
}, options);
|
|
101
|
-
if (!requestRes.ok) {
|
|
102
|
-
return requestRes;
|
|
103
|
-
}
|
|
104
|
-
const req = requestRes.value;
|
|
105
|
-
|
|
106
|
-
const doResult = await client._do(req, {
|
|
107
|
-
context,
|
|
108
|
-
errorCodes: ["401", "404", "4XX", "5XX"],
|
|
109
|
-
retryConfig: context.retryConfig,
|
|
110
|
-
retryCodes: context.retryCodes,
|
|
111
|
-
});
|
|
112
|
-
if (!doResult.ok) {
|
|
113
|
-
return doResult;
|
|
114
|
-
}
|
|
115
|
-
const response = doResult.value;
|
|
116
|
-
|
|
117
|
-
const responseFields = {
|
|
118
|
-
HttpMeta: { Response: response, Request: req },
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
const [result] = await M.match<
|
|
122
|
-
operations.GetRecommendedProductsResponseBody,
|
|
123
|
-
| errors.Unauthorized
|
|
124
|
-
| errors.NotFound
|
|
125
|
-
| CeError
|
|
126
|
-
| SDKValidationError
|
|
127
|
-
| UnexpectedClientError
|
|
128
|
-
| InvalidRequestError
|
|
129
|
-
| RequestAbortedError
|
|
130
|
-
| RequestTimeoutError
|
|
131
|
-
| ConnectionError
|
|
132
|
-
>(
|
|
133
|
-
M.json(200, operations.GetRecommendedProductsResponseBody$inboundSchema),
|
|
134
|
-
M.jsonErr(401, errors.Unauthorized$inboundSchema),
|
|
135
|
-
M.jsonErr(404, errors.NotFound$inboundSchema),
|
|
136
|
-
M.fail("4XX"),
|
|
137
|
-
M.fail("5XX"),
|
|
138
|
-
)(response, { extraFields: responseFields });
|
|
139
|
-
if (!result.ok) {
|
|
140
|
-
return result;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
return result;
|
|
144
|
-
}
|