ce-storefront 0.15.30 → 0.15.31
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 +6 -7
- package/docs/sdks/auth/README.md +32 -16
- package/esm/funcs/authGenerateOtp.d.ts +1 -1
- package/esm/funcs/authGenerateOtp.d.ts.map +1 -1
- package/esm/funcs/authGenerateOtp.js +7 -3
- package/esm/funcs/authGenerateOtp.js.map +1 -1
- package/esm/funcs/authLoginWithEmail.d.ts +1 -1
- package/esm/funcs/authLoginWithEmail.d.ts.map +1 -1
- package/esm/funcs/authLoginWithEmail.js +7 -3
- package/esm/funcs/authLoginWithEmail.js.map +1 -1
- package/esm/funcs/authLoginWithPhone.d.ts +1 -1
- package/esm/funcs/authLoginWithPhone.d.ts.map +1 -1
- package/esm/funcs/authLoginWithPhone.js +7 -3
- package/esm/funcs/authLoginWithPhone.js.map +1 -1
- package/esm/funcs/authLoginWithWhatsapp.d.ts +1 -1
- package/esm/funcs/authLoginWithWhatsapp.d.ts.map +1 -1
- package/esm/funcs/authLoginWithWhatsapp.js +7 -3
- package/esm/funcs/authLoginWithWhatsapp.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/url.js +1 -1
- package/esm/lib/url.js.map +1 -1
- package/esm/models/components/cartitem.d.ts +0 -5
- package/esm/models/components/cartitem.d.ts.map +1 -1
- package/esm/models/components/cartitem.js +0 -4
- package/esm/models/components/cartitem.js.map +1 -1
- package/esm/models/components/item.d.ts +0 -5
- package/esm/models/components/item.d.ts.map +1 -1
- package/esm/models/components/item.js +0 -4
- package/esm/models/components/item.js.map +1 -1
- package/esm/models/components/orderitem.d.ts +0 -2
- package/esm/models/components/orderitem.d.ts.map +1 -1
- package/esm/models/components/orderitem.js +0 -4
- package/esm/models/components/orderitem.js.map +1 -1
- package/esm/models/components/product.d.ts +0 -5
- package/esm/models/components/product.d.ts.map +1 -1
- package/esm/models/components/product.js +0 -4
- package/esm/models/components/product.js.map +1 -1
- package/esm/models/components/productbundleitem.d.ts +0 -5
- package/esm/models/components/productbundleitem.d.ts.map +1 -1
- package/esm/models/components/productbundleitem.js +0 -4
- package/esm/models/components/productbundleitem.js.map +1 -1
- package/esm/models/components/productdetail.d.ts +0 -5
- package/esm/models/components/productdetail.d.ts.map +1 -1
- package/esm/models/components/productdetail.js +0 -4
- package/esm/models/components/productdetail.js.map +1 -1
- package/esm/models/components/variant.d.ts +0 -5
- package/esm/models/components/variant.d.ts.map +1 -1
- package/esm/models/components/variant.js +0 -4
- package/esm/models/components/variant.js.map +1 -1
- package/esm/models/components/variantdetail.d.ts +0 -5
- package/esm/models/components/variantdetail.d.ts.map +1 -1
- package/esm/models/components/variantdetail.js +0 -4
- package/esm/models/components/variantdetail.js.map +1 -1
- package/esm/models/operations/generateotp.d.ts +30 -0
- package/esm/models/operations/generateotp.d.ts.map +1 -1
- package/esm/models/operations/generateotp.js +43 -0
- package/esm/models/operations/generateotp.js.map +1 -1
- package/esm/models/operations/loginwithemail.d.ts +30 -0
- package/esm/models/operations/loginwithemail.d.ts.map +1 -1
- package/esm/models/operations/loginwithemail.js +37 -0
- package/esm/models/operations/loginwithemail.js.map +1 -1
- package/esm/models/operations/loginwithphone.d.ts +30 -0
- package/esm/models/operations/loginwithphone.d.ts.map +1 -1
- package/esm/models/operations/loginwithphone.js +37 -0
- package/esm/models/operations/loginwithphone.js.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.d.ts +30 -0
- package/esm/models/operations/loginwithwhatsapp.d.ts.map +1 -1
- package/esm/models/operations/loginwithwhatsapp.js +37 -0
- package/esm/models/operations/loginwithwhatsapp.js.map +1 -1
- package/esm/sdk/auth.d.ts +4 -4
- package/esm/sdk/auth.d.ts.map +1 -1
- package/esm/sdk/auth.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/authGenerateOtp.ts +9 -5
- package/src/funcs/authLoginWithEmail.ts +9 -5
- package/src/funcs/authLoginWithPhone.ts +9 -5
- package/src/funcs/authLoginWithWhatsapp.ts +9 -6
- package/src/lib/config.ts +3 -3
- package/src/lib/url.ts +1 -1
- package/src/models/components/cartitem.ts +0 -9
- package/src/models/components/item.ts +0 -9
- package/src/models/components/orderitem.ts +0 -6
- package/src/models/components/product.ts +0 -9
- package/src/models/components/productbundleitem.ts +0 -9
- package/src/models/components/productdetail.ts +0 -9
- package/src/models/components/variant.ts +0 -9
- package/src/models/components/variantdetail.ts +0 -9
- package/src/models/operations/generateotp.ts +85 -0
- package/src/models/operations/loginwithemail.ts +75 -0
- package/src/models/operations/loginwithphone.ts +75 -0
- package/src/models/operations/loginwithwhatsapp.ts +75 -0
- package/src/sdk/auth.ts +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loginwithwhatsapp.js","sourceRoot":"","sources":["../../../src/models/operations/loginwithwhatsapp.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"loginwithwhatsapp.js","sourceRoot":"","sources":["../../../src/models/operations/loginwithwhatsapp.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AA+DjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;IACxD,KAAK,EA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AC,CAAC,CAAC,CAAC,EACvE,2DAA2D,CAC5D,CAAC;AACJ,CAAC"}
|
package/esm/sdk/auth.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare class Auth extends ClientSDK {
|
|
|
19
19
|
*
|
|
20
20
|
* @see {@link https://llm-docs.commercengine.io/operations/generate-otp} - API reference for the generate-otp operation
|
|
21
21
|
*/
|
|
22
|
-
generateOtp(request: operations.
|
|
22
|
+
generateOtp(request: operations.GenerateOtpRequest, options?: RequestOptions): Promise<operations.GenerateOtpResponseBody>;
|
|
23
23
|
/**
|
|
24
24
|
* Login with email
|
|
25
25
|
*
|
|
@@ -28,7 +28,7 @@ export declare class Auth extends ClientSDK {
|
|
|
28
28
|
*
|
|
29
29
|
* @see {@link https://llm-docs.commercengine.io/operations/login-with-email} - API reference for the login-with-email operation
|
|
30
30
|
*/
|
|
31
|
-
loginWithEmail(request: operations.
|
|
31
|
+
loginWithEmail(request: operations.LoginWithEmailRequest, options?: RequestOptions): Promise<operations.LoginWithEmailResponseBody>;
|
|
32
32
|
/**
|
|
33
33
|
* Login with phone
|
|
34
34
|
*
|
|
@@ -37,7 +37,7 @@ export declare class Auth extends ClientSDK {
|
|
|
37
37
|
*
|
|
38
38
|
* @see {@link https://llm-docs.commercengine.io/operations/login-with-phone} - API reference for the login-with-phone operation
|
|
39
39
|
*/
|
|
40
|
-
loginWithPhone(request: operations.
|
|
40
|
+
loginWithPhone(request: operations.LoginWithPhoneRequest, options?: RequestOptions): Promise<operations.LoginWithPhoneResponseBody>;
|
|
41
41
|
/**
|
|
42
42
|
* Login with whatsapp
|
|
43
43
|
*
|
|
@@ -46,7 +46,7 @@ export declare class Auth extends ClientSDK {
|
|
|
46
46
|
*
|
|
47
47
|
* @see {@link https://llm-docs.commercengine.io/operations/login-with-whatsapp} - API reference for the login-with-whatsapp operation
|
|
48
48
|
*/
|
|
49
|
-
loginWithWhatsapp(request: operations.
|
|
49
|
+
loginWithWhatsapp(request: operations.LoginWithWhatsappRequest, options?: RequestOptions): Promise<operations.LoginWithWhatsappResponseBody>;
|
|
50
50
|
/**
|
|
51
51
|
* Logout user
|
|
52
52
|
*
|
package/esm/sdk/auth.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/sdk/auth.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,IAAK,SAAQ,SAAS;IACjC;;;;;;;;OAQG;IACG,iBAAiB,CACrB,QAAQ,EAAE,UAAU,CAAC,yBAAyB,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQpD;;;;;;;OAOG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/sdk/auth.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,IAAK,SAAQ,SAAS;IACjC;;;;;;;;OAQG;IACG,iBAAiB,CACrB,QAAQ,EAAE,UAAU,CAAC,yBAAyB,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQpD;;;;;;;OAOG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC;IAQ9C;;;;;;;OAOG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,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AO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,YAAY,CAChB,OAA2C,EAC3C,OAAwB;QAExB,OAAO,WAAW,CAAC,gBAAgB,CACjC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,aAAa,CACjB,OAAwC,EACxC,OAAwB;QAExB,OAAO,WAAW,CAAC,iBAAiB,CAClC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,UAAU,CACd,OAAqC,EACrC,OAAwB;QAExB,OAAO,WAAW,CAAC,cAAc,CAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,SAAS,CACb,OAAwC,EACxC,OAAwB;QAExB,OAAO,WAAW,CAAC,aAAa,CAC9B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { CeStorefrontCore } from "../core.js";
|
|
6
|
-
import { encodeJSON } from "../lib/encodings.js";
|
|
6
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -35,7 +35,7 @@ import { Result } from "../types/fp.js";
|
|
|
35
35
|
*/
|
|
36
36
|
export function authGenerateOtp(
|
|
37
37
|
client: CeStorefrontCore,
|
|
38
|
-
request: operations.
|
|
38
|
+
request: operations.GenerateOtpRequest,
|
|
39
39
|
options?: RequestOptions,
|
|
40
40
|
): APIPromise<
|
|
41
41
|
Result<
|
|
@@ -61,7 +61,7 @@ export function authGenerateOtp(
|
|
|
61
61
|
|
|
62
62
|
async function $do(
|
|
63
63
|
client: CeStorefrontCore,
|
|
64
|
-
request: operations.
|
|
64
|
+
request: operations.GenerateOtpRequest,
|
|
65
65
|
options?: RequestOptions,
|
|
66
66
|
): Promise<
|
|
67
67
|
[
|
|
@@ -83,20 +83,24 @@ async function $do(
|
|
|
83
83
|
> {
|
|
84
84
|
const parsed = safeParse(
|
|
85
85
|
request,
|
|
86
|
-
(value) => operations.
|
|
86
|
+
(value) => operations.GenerateOtpRequest$outboundSchema.parse(value),
|
|
87
87
|
"Input validation failed",
|
|
88
88
|
);
|
|
89
89
|
if (!parsed.ok) {
|
|
90
90
|
return [parsed, { status: "invalid" }];
|
|
91
91
|
}
|
|
92
92
|
const payload = parsed.value;
|
|
93
|
-
const body = encodeJSON("body", payload, { explode: true });
|
|
93
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
94
94
|
|
|
95
95
|
const path = pathToFunc("/auth/generate-otp")();
|
|
96
96
|
|
|
97
97
|
const headers = new Headers(compactMap({
|
|
98
98
|
"Content-Type": "application/json",
|
|
99
99
|
Accept: "application/json",
|
|
100
|
+
"x-debug-mode": encodeSimple("x-debug-mode", payload["x-debug-mode"], {
|
|
101
|
+
explode: false,
|
|
102
|
+
charEncoding: "none",
|
|
103
|
+
}),
|
|
100
104
|
}));
|
|
101
105
|
|
|
102
106
|
const secConfig = await extractSecurity(client._options.authorization);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { CeStorefrontCore } from "../core.js";
|
|
6
|
-
import { encodeJSON } from "../lib/encodings.js";
|
|
6
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -35,7 +35,7 @@ import { Result } from "../types/fp.js";
|
|
|
35
35
|
*/
|
|
36
36
|
export function authLoginWithEmail(
|
|
37
37
|
client: CeStorefrontCore,
|
|
38
|
-
request: operations.
|
|
38
|
+
request: operations.LoginWithEmailRequest,
|
|
39
39
|
options?: RequestOptions,
|
|
40
40
|
): APIPromise<
|
|
41
41
|
Result<
|
|
@@ -62,7 +62,7 @@ export function authLoginWithEmail(
|
|
|
62
62
|
|
|
63
63
|
async function $do(
|
|
64
64
|
client: CeStorefrontCore,
|
|
65
|
-
request: operations.
|
|
65
|
+
request: operations.LoginWithEmailRequest,
|
|
66
66
|
options?: RequestOptions,
|
|
67
67
|
): Promise<
|
|
68
68
|
[
|
|
@@ -85,20 +85,24 @@ async function $do(
|
|
|
85
85
|
> {
|
|
86
86
|
const parsed = safeParse(
|
|
87
87
|
request,
|
|
88
|
-
(value) => operations.
|
|
88
|
+
(value) => operations.LoginWithEmailRequest$outboundSchema.parse(value),
|
|
89
89
|
"Input validation failed",
|
|
90
90
|
);
|
|
91
91
|
if (!parsed.ok) {
|
|
92
92
|
return [parsed, { status: "invalid" }];
|
|
93
93
|
}
|
|
94
94
|
const payload = parsed.value;
|
|
95
|
-
const body = encodeJSON("body", payload, { explode: true });
|
|
95
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
96
96
|
|
|
97
97
|
const path = pathToFunc("/auth/login/email")();
|
|
98
98
|
|
|
99
99
|
const headers = new Headers(compactMap({
|
|
100
100
|
"Content-Type": "application/json",
|
|
101
101
|
Accept: "application/json",
|
|
102
|
+
"x-debug-mode": encodeSimple("x-debug-mode", payload["x-debug-mode"], {
|
|
103
|
+
explode: false,
|
|
104
|
+
charEncoding: "none",
|
|
105
|
+
}),
|
|
102
106
|
}));
|
|
103
107
|
|
|
104
108
|
const secConfig = await extractSecurity(client._options.authorization);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { CeStorefrontCore } from "../core.js";
|
|
6
|
-
import { encodeJSON } from "../lib/encodings.js";
|
|
6
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -35,7 +35,7 @@ import { Result } from "../types/fp.js";
|
|
|
35
35
|
*/
|
|
36
36
|
export function authLoginWithPhone(
|
|
37
37
|
client: CeStorefrontCore,
|
|
38
|
-
request: operations.
|
|
38
|
+
request: operations.LoginWithPhoneRequest,
|
|
39
39
|
options?: RequestOptions,
|
|
40
40
|
): APIPromise<
|
|
41
41
|
Result<
|
|
@@ -62,7 +62,7 @@ export function authLoginWithPhone(
|
|
|
62
62
|
|
|
63
63
|
async function $do(
|
|
64
64
|
client: CeStorefrontCore,
|
|
65
|
-
request: operations.
|
|
65
|
+
request: operations.LoginWithPhoneRequest,
|
|
66
66
|
options?: RequestOptions,
|
|
67
67
|
): Promise<
|
|
68
68
|
[
|
|
@@ -85,20 +85,24 @@ async function $do(
|
|
|
85
85
|
> {
|
|
86
86
|
const parsed = safeParse(
|
|
87
87
|
request,
|
|
88
|
-
(value) => operations.
|
|
88
|
+
(value) => operations.LoginWithPhoneRequest$outboundSchema.parse(value),
|
|
89
89
|
"Input validation failed",
|
|
90
90
|
);
|
|
91
91
|
if (!parsed.ok) {
|
|
92
92
|
return [parsed, { status: "invalid" }];
|
|
93
93
|
}
|
|
94
94
|
const payload = parsed.value;
|
|
95
|
-
const body = encodeJSON("body", payload, { explode: true });
|
|
95
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
96
96
|
|
|
97
97
|
const path = pathToFunc("/auth/login/phone")();
|
|
98
98
|
|
|
99
99
|
const headers = new Headers(compactMap({
|
|
100
100
|
"Content-Type": "application/json",
|
|
101
101
|
Accept: "application/json",
|
|
102
|
+
"x-debug-mode": encodeSimple("x-debug-mode", payload["x-debug-mode"], {
|
|
103
|
+
explode: false,
|
|
104
|
+
charEncoding: "none",
|
|
105
|
+
}),
|
|
102
106
|
}));
|
|
103
107
|
|
|
104
108
|
const secConfig = await extractSecurity(client._options.authorization);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { CeStorefrontCore } from "../core.js";
|
|
6
|
-
import { encodeJSON } from "../lib/encodings.js";
|
|
6
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -35,7 +35,7 @@ import { Result } from "../types/fp.js";
|
|
|
35
35
|
*/
|
|
36
36
|
export function authLoginWithWhatsapp(
|
|
37
37
|
client: CeStorefrontCore,
|
|
38
|
-
request: operations.
|
|
38
|
+
request: operations.LoginWithWhatsappRequest,
|
|
39
39
|
options?: RequestOptions,
|
|
40
40
|
): APIPromise<
|
|
41
41
|
Result<
|
|
@@ -61,7 +61,7 @@ export function authLoginWithWhatsapp(
|
|
|
61
61
|
|
|
62
62
|
async function $do(
|
|
63
63
|
client: CeStorefrontCore,
|
|
64
|
-
request: operations.
|
|
64
|
+
request: operations.LoginWithWhatsappRequest,
|
|
65
65
|
options?: RequestOptions,
|
|
66
66
|
): Promise<
|
|
67
67
|
[
|
|
@@ -83,21 +83,24 @@ async function $do(
|
|
|
83
83
|
> {
|
|
84
84
|
const parsed = safeParse(
|
|
85
85
|
request,
|
|
86
|
-
(value) =>
|
|
87
|
-
operations.LoginWithWhatsappRequestBody$outboundSchema.parse(value),
|
|
86
|
+
(value) => operations.LoginWithWhatsappRequest$outboundSchema.parse(value),
|
|
88
87
|
"Input validation failed",
|
|
89
88
|
);
|
|
90
89
|
if (!parsed.ok) {
|
|
91
90
|
return [parsed, { status: "invalid" }];
|
|
92
91
|
}
|
|
93
92
|
const payload = parsed.value;
|
|
94
|
-
const body = encodeJSON("body", payload, { explode: true });
|
|
93
|
+
const body = encodeJSON("body", payload.RequestBody, { explode: true });
|
|
95
94
|
|
|
96
95
|
const path = pathToFunc("/auth/login/whatsapp")();
|
|
97
96
|
|
|
98
97
|
const headers = new Headers(compactMap({
|
|
99
98
|
"Content-Type": "application/json",
|
|
100
99
|
Accept: "application/json",
|
|
100
|
+
"x-debug-mode": encodeSimple("x-debug-mode", payload["x-debug-mode"], {
|
|
101
|
+
explode: false,
|
|
102
|
+
charEncoding: "none",
|
|
103
|
+
}),
|
|
101
104
|
}));
|
|
102
105
|
|
|
103
106
|
const secConfig = await extractSecurity(client._options.authorization);
|
package/src/lib/config.ts
CHANGED
|
@@ -80,7 +80,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
80
80
|
export const SDK_METADATA = {
|
|
81
81
|
language: "typescript",
|
|
82
82
|
openapiDocVersion: "1.0",
|
|
83
|
-
sdkVersion: "0.15.
|
|
84
|
-
genVersion: "2.
|
|
85
|
-
userAgent: "speakeasy-sdk/typescript 0.15.
|
|
83
|
+
sdkVersion: "0.15.31",
|
|
84
|
+
genVersion: "2.715.0",
|
|
85
|
+
userAgent: "speakeasy-sdk/typescript 0.15.31 2.715.0 1.0 ce-storefront",
|
|
86
86
|
} as const;
|
package/src/lib/url.ts
CHANGED
|
@@ -10,7 +10,7 @@ export function pathToFunc(
|
|
|
10
10
|
pathPattern: string,
|
|
11
11
|
options?: { charEncoding?: "percent" | "none" },
|
|
12
12
|
): (params?: Params) => string {
|
|
13
|
-
const paramRE = /\{([a-zA-Z0-9_]
|
|
13
|
+
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
14
14
|
|
|
15
15
|
return function buildURLPath(params: Record<string, unknown> = {}): string {
|
|
16
16
|
return pathPattern.replace(paramRE, function (_, placeholder) {
|
|
@@ -77,10 +77,6 @@ export type CartItem = {
|
|
|
77
77
|
* Indicates whether the item is being fulfilled as a backorder. When true, the item is not currently in stock and will ship later once inventory is available. This may result in the order being split into multiple shipments, with delays for the backordered portion.
|
|
78
78
|
*/
|
|
79
79
|
backorder: boolean;
|
|
80
|
-
/**
|
|
81
|
-
* Indicates whether the product is currently on offer.
|
|
82
|
-
*/
|
|
83
|
-
onOffer: boolean;
|
|
84
80
|
/**
|
|
85
81
|
* Indicates whether the product is currently on a subscription.
|
|
86
82
|
*/
|
|
@@ -180,7 +176,6 @@ export const CartItem$inboundSchema: z.ZodType<
|
|
|
180
176
|
product_image_url: z.string(),
|
|
181
177
|
stock_available: z.boolean(),
|
|
182
178
|
backorder: z.boolean(),
|
|
183
|
-
on_offer: z.boolean(),
|
|
184
179
|
on_subscription: z.boolean(),
|
|
185
180
|
on_promotion: z.boolean(),
|
|
186
181
|
quantity: z.number().int(),
|
|
@@ -213,7 +208,6 @@ export const CartItem$inboundSchema: z.ZodType<
|
|
|
213
208
|
"product_type": "productType",
|
|
214
209
|
"product_image_url": "productImageUrl",
|
|
215
210
|
"stock_available": "stockAvailable",
|
|
216
|
-
"on_offer": "onOffer",
|
|
217
211
|
"on_subscription": "onSubscription",
|
|
218
212
|
"on_promotion": "onPromotion",
|
|
219
213
|
"is_free_item": "isFreeItem",
|
|
@@ -249,7 +243,6 @@ export type CartItem$Outbound = {
|
|
|
249
243
|
product_image_url: string;
|
|
250
244
|
stock_available: boolean;
|
|
251
245
|
backorder: boolean;
|
|
252
|
-
on_offer: boolean;
|
|
253
246
|
on_subscription: boolean;
|
|
254
247
|
on_promotion: boolean;
|
|
255
248
|
quantity: number;
|
|
@@ -291,7 +284,6 @@ export const CartItem$outboundSchema: z.ZodType<
|
|
|
291
284
|
productImageUrl: z.string(),
|
|
292
285
|
stockAvailable: z.boolean(),
|
|
293
286
|
backorder: z.boolean(),
|
|
294
|
-
onOffer: z.boolean(),
|
|
295
287
|
onSubscription: z.boolean(),
|
|
296
288
|
onPromotion: z.boolean(),
|
|
297
289
|
quantity: z.number().int(),
|
|
@@ -324,7 +316,6 @@ export const CartItem$outboundSchema: z.ZodType<
|
|
|
324
316
|
productType: "product_type",
|
|
325
317
|
productImageUrl: "product_image_url",
|
|
326
318
|
stockAvailable: "stock_available",
|
|
327
|
-
onOffer: "on_offer",
|
|
328
319
|
onSubscription: "on_subscription",
|
|
329
320
|
onPromotion: "on_promotion",
|
|
330
321
|
isFreeItem: "is_free_item",
|
|
@@ -82,10 +82,6 @@ export type Item = {
|
|
|
82
82
|
* Indicates whether the item is being fulfilled as a backorder. When true, the item is not currently in stock and will ship later once inventory is available. This may result in the order being split into multiple shipments, with delays for the backordered portion.
|
|
83
83
|
*/
|
|
84
84
|
backorder?: boolean | undefined;
|
|
85
|
-
/**
|
|
86
|
-
* Indicates whether this item is associated with any active (product-specific) coupons
|
|
87
|
-
*/
|
|
88
|
-
onOffer: boolean;
|
|
89
85
|
onSubscription: boolean;
|
|
90
86
|
onPromotion: boolean;
|
|
91
87
|
categoryIds: Array<string>;
|
|
@@ -137,7 +133,6 @@ export const Item$inboundSchema: z.ZodType<Item, z.ZodTypeDef, unknown> = z
|
|
|
137
133
|
active: z.boolean(),
|
|
138
134
|
stock_available: z.boolean(),
|
|
139
135
|
backorder: z.boolean().optional(),
|
|
140
|
-
on_offer: z.boolean(),
|
|
141
136
|
on_subscription: z.boolean(),
|
|
142
137
|
on_promotion: z.boolean(),
|
|
143
138
|
category_ids: z.array(z.string()),
|
|
@@ -161,7 +156,6 @@ export const Item$inboundSchema: z.ZodType<Item, z.ZodTypeDef, unknown> = z
|
|
|
161
156
|
"product_type": "productType",
|
|
162
157
|
"short_description": "shortDescription",
|
|
163
158
|
"stock_available": "stockAvailable",
|
|
164
|
-
"on_offer": "onOffer",
|
|
165
159
|
"on_subscription": "onSubscription",
|
|
166
160
|
"on_promotion": "onPromotion",
|
|
167
161
|
"category_ids": "categoryIds",
|
|
@@ -184,7 +178,6 @@ export type Item$Outbound = {
|
|
|
184
178
|
active: boolean;
|
|
185
179
|
stock_available: boolean;
|
|
186
180
|
backorder?: boolean | undefined;
|
|
187
|
-
on_offer: boolean;
|
|
188
181
|
on_subscription: boolean;
|
|
189
182
|
on_promotion: boolean;
|
|
190
183
|
category_ids: Array<string>;
|
|
@@ -215,7 +208,6 @@ export const Item$outboundSchema: z.ZodType<Item$Outbound, z.ZodTypeDef, Item> =
|
|
|
215
208
|
active: z.boolean(),
|
|
216
209
|
stockAvailable: z.boolean(),
|
|
217
210
|
backorder: z.boolean().optional(),
|
|
218
|
-
onOffer: z.boolean(),
|
|
219
211
|
onSubscription: z.boolean(),
|
|
220
212
|
onPromotion: z.boolean(),
|
|
221
213
|
categoryIds: z.array(z.string()),
|
|
@@ -239,7 +231,6 @@ export const Item$outboundSchema: z.ZodType<Item$Outbound, z.ZodTypeDef, Item> =
|
|
|
239
231
|
productType: "product_type",
|
|
240
232
|
shortDescription: "short_description",
|
|
241
233
|
stockAvailable: "stock_available",
|
|
242
|
-
onOffer: "on_offer",
|
|
243
234
|
onSubscription: "on_subscription",
|
|
244
235
|
onPromotion: "on_promotion",
|
|
245
236
|
categoryIds: "category_ids",
|
|
@@ -48,7 +48,6 @@ export type OrderItem = {
|
|
|
48
48
|
* Indicates whether the item is being fulfilled as a backorder. When true, the item is not currently in stock and will ship later once inventory is available. This may result in the order being split into multiple shipments, with delays for the backordered portion.
|
|
49
49
|
*/
|
|
50
50
|
backorder: boolean;
|
|
51
|
-
onOffer: boolean;
|
|
52
51
|
onPromotion: boolean;
|
|
53
52
|
onSubscription: boolean;
|
|
54
53
|
subscriptionPlan: string | null;
|
|
@@ -109,7 +108,6 @@ export const OrderItem$inboundSchema: z.ZodType<
|
|
|
109
108
|
variant_id: z.nullable(z.string()),
|
|
110
109
|
variant_name: z.nullable(z.string()),
|
|
111
110
|
backorder: z.boolean(),
|
|
112
|
-
on_offer: z.boolean(),
|
|
113
111
|
on_promotion: z.boolean(),
|
|
114
112
|
on_subscription: z.boolean(),
|
|
115
113
|
subscription_plan: z.nullable(z.string()),
|
|
@@ -141,7 +139,6 @@ export const OrderItem$inboundSchema: z.ZodType<
|
|
|
141
139
|
"product_type": "productType",
|
|
142
140
|
"variant_id": "variantId",
|
|
143
141
|
"variant_name": "variantName",
|
|
144
|
-
"on_offer": "onOffer",
|
|
145
142
|
"on_promotion": "onPromotion",
|
|
146
143
|
"on_subscription": "onSubscription",
|
|
147
144
|
"subscription_plan": "subscriptionPlan",
|
|
@@ -176,7 +173,6 @@ export type OrderItem$Outbound = {
|
|
|
176
173
|
variant_id: string | null;
|
|
177
174
|
variant_name: string | null;
|
|
178
175
|
backorder: boolean;
|
|
179
|
-
on_offer: boolean;
|
|
180
176
|
on_promotion: boolean;
|
|
181
177
|
on_subscription: boolean;
|
|
182
178
|
subscription_plan: string | null;
|
|
@@ -219,7 +215,6 @@ export const OrderItem$outboundSchema: z.ZodType<
|
|
|
219
215
|
variantId: z.nullable(z.string()),
|
|
220
216
|
variantName: z.nullable(z.string()),
|
|
221
217
|
backorder: z.boolean(),
|
|
222
|
-
onOffer: z.boolean(),
|
|
223
218
|
onPromotion: z.boolean(),
|
|
224
219
|
onSubscription: z.boolean(),
|
|
225
220
|
subscriptionPlan: z.nullable(z.string()),
|
|
@@ -251,7 +246,6 @@ export const OrderItem$outboundSchema: z.ZodType<
|
|
|
251
246
|
productType: "product_type",
|
|
252
247
|
variantId: "variant_id",
|
|
253
248
|
variantName: "variant_name",
|
|
254
|
-
onOffer: "on_offer",
|
|
255
249
|
onPromotion: "on_promotion",
|
|
256
250
|
onSubscription: "on_subscription",
|
|
257
251
|
subscriptionPlan: "subscription_plan",
|
|
@@ -98,10 +98,6 @@ export type Product = {
|
|
|
98
98
|
* Indicates whether the item is being fulfilled as a backorder. When true, the item is not currently in stock and will ship later once inventory is available. This may result in the order being split into multiple shipments, with delays for the backordered portion.
|
|
99
99
|
*/
|
|
100
100
|
backorder?: boolean | undefined;
|
|
101
|
-
/**
|
|
102
|
-
* Indicates whether this item is associated with any active (product-specific) coupons
|
|
103
|
-
*/
|
|
104
|
-
onOffer: boolean;
|
|
105
101
|
/**
|
|
106
102
|
* Indicates whether the product has any subscription plans avaialble
|
|
107
103
|
*/
|
|
@@ -166,7 +162,6 @@ export const Product$inboundSchema: z.ZodType<Product, z.ZodTypeDef, unknown> =
|
|
|
166
162
|
active: z.boolean(),
|
|
167
163
|
stock_available: z.boolean(),
|
|
168
164
|
backorder: z.boolean().optional(),
|
|
169
|
-
on_offer: z.boolean(),
|
|
170
165
|
on_subscription: z.boolean(),
|
|
171
166
|
on_promotion: z.boolean(),
|
|
172
167
|
has_variant: z.boolean(),
|
|
@@ -189,7 +184,6 @@ export const Product$inboundSchema: z.ZodType<Product, z.ZodTypeDef, unknown> =
|
|
|
189
184
|
"short_description": "shortDescription",
|
|
190
185
|
"product_type": "productType",
|
|
191
186
|
"stock_available": "stockAvailable",
|
|
192
|
-
"on_offer": "onOffer",
|
|
193
187
|
"on_subscription": "onSubscription",
|
|
194
188
|
"on_promotion": "onPromotion",
|
|
195
189
|
"has_variant": "hasVariant",
|
|
@@ -212,7 +206,6 @@ export type Product$Outbound = {
|
|
|
212
206
|
active: boolean;
|
|
213
207
|
stock_available: boolean;
|
|
214
208
|
backorder?: boolean | undefined;
|
|
215
|
-
on_offer: boolean;
|
|
216
209
|
on_subscription: boolean;
|
|
217
210
|
on_promotion: boolean;
|
|
218
211
|
has_variant: boolean;
|
|
@@ -247,7 +240,6 @@ export const Product$outboundSchema: z.ZodType<
|
|
|
247
240
|
active: z.boolean(),
|
|
248
241
|
stockAvailable: z.boolean(),
|
|
249
242
|
backorder: z.boolean().optional(),
|
|
250
|
-
onOffer: z.boolean(),
|
|
251
243
|
onSubscription: z.boolean(),
|
|
252
244
|
onPromotion: z.boolean(),
|
|
253
245
|
hasVariant: z.boolean(),
|
|
@@ -270,7 +262,6 @@ export const Product$outboundSchema: z.ZodType<
|
|
|
270
262
|
shortDescription: "short_description",
|
|
271
263
|
productType: "product_type",
|
|
272
264
|
stockAvailable: "stock_available",
|
|
273
|
-
onOffer: "on_offer",
|
|
274
265
|
onSubscription: "on_subscription",
|
|
275
266
|
onPromotion: "on_promotion",
|
|
276
267
|
hasVariant: "has_variant",
|
|
@@ -85,10 +85,6 @@ export type ProductBundleItem = {
|
|
|
85
85
|
* Indicates whether the item is being fulfilled as a backorder. When true, the item is not currently in stock and will ship later once inventory is available. This may result in the order being split into multiple shipments, with delays for the backordered portion.
|
|
86
86
|
*/
|
|
87
87
|
backorder?: boolean | undefined;
|
|
88
|
-
/**
|
|
89
|
-
* Indicates whether this item is associated with any active (product-specific) coupons
|
|
90
|
-
*/
|
|
91
|
-
onOffer: boolean;
|
|
92
88
|
onSubscription: boolean;
|
|
93
89
|
onPromotion: boolean;
|
|
94
90
|
categoryIds: Array<string>;
|
|
@@ -144,7 +140,6 @@ export const ProductBundleItem$inboundSchema: z.ZodType<
|
|
|
144
140
|
active: z.boolean(),
|
|
145
141
|
stock_available: z.boolean(),
|
|
146
142
|
backorder: z.boolean().optional(),
|
|
147
|
-
on_offer: z.boolean(),
|
|
148
143
|
on_subscription: z.boolean(),
|
|
149
144
|
on_promotion: z.boolean(),
|
|
150
145
|
category_ids: z.array(z.string()),
|
|
@@ -168,7 +163,6 @@ export const ProductBundleItem$inboundSchema: z.ZodType<
|
|
|
168
163
|
"product_type": "productType",
|
|
169
164
|
"short_description": "shortDescription",
|
|
170
165
|
"stock_available": "stockAvailable",
|
|
171
|
-
"on_offer": "onOffer",
|
|
172
166
|
"on_subscription": "onSubscription",
|
|
173
167
|
"on_promotion": "onPromotion",
|
|
174
168
|
"category_ids": "categoryIds",
|
|
@@ -192,7 +186,6 @@ export type ProductBundleItem$Outbound = {
|
|
|
192
186
|
active: boolean;
|
|
193
187
|
stock_available: boolean;
|
|
194
188
|
backorder?: boolean | undefined;
|
|
195
|
-
on_offer: boolean;
|
|
196
189
|
on_subscription: boolean;
|
|
197
190
|
on_promotion: boolean;
|
|
198
191
|
category_ids: Array<string>;
|
|
@@ -227,7 +220,6 @@ export const ProductBundleItem$outboundSchema: z.ZodType<
|
|
|
227
220
|
active: z.boolean(),
|
|
228
221
|
stockAvailable: z.boolean(),
|
|
229
222
|
backorder: z.boolean().optional(),
|
|
230
|
-
onOffer: z.boolean(),
|
|
231
223
|
onSubscription: z.boolean(),
|
|
232
224
|
onPromotion: z.boolean(),
|
|
233
225
|
categoryIds: z.array(z.string()),
|
|
@@ -251,7 +243,6 @@ export const ProductBundleItem$outboundSchema: z.ZodType<
|
|
|
251
243
|
productType: "product_type",
|
|
252
244
|
shortDescription: "short_description",
|
|
253
245
|
stockAvailable: "stock_available",
|
|
254
|
-
onOffer: "on_offer",
|
|
255
246
|
onSubscription: "on_subscription",
|
|
256
247
|
onPromotion: "on_promotion",
|
|
257
248
|
categoryIds: "category_ids",
|
|
@@ -118,10 +118,6 @@ export type ProductDetail = {
|
|
|
118
118
|
* Indicates whether the item is being fulfilled as a backorder. When true, the item is not currently in stock and will ship later once inventory is available. This may result in the order being split into multiple shipments, with delays for the backordered portion.
|
|
119
119
|
*/
|
|
120
120
|
backorder?: boolean | undefined;
|
|
121
|
-
/**
|
|
122
|
-
* Indicates whether this item is associated with any active (product-specific) coupons
|
|
123
|
-
*/
|
|
124
|
-
onOffer: boolean;
|
|
125
121
|
/**
|
|
126
122
|
* Indicates whether the product has any subscription plans avaialble
|
|
127
123
|
*/
|
|
@@ -203,7 +199,6 @@ export const ProductDetail$inboundSchema: z.ZodType<
|
|
|
203
199
|
active: z.boolean(),
|
|
204
200
|
stock_available: z.boolean(),
|
|
205
201
|
backorder: z.boolean().optional(),
|
|
206
|
-
on_offer: z.boolean(),
|
|
207
202
|
on_subscription: z.boolean(),
|
|
208
203
|
on_promotion: z.boolean(),
|
|
209
204
|
has_variant: z.boolean(),
|
|
@@ -234,7 +229,6 @@ export const ProductDetail$inboundSchema: z.ZodType<
|
|
|
234
229
|
"short_description": "shortDescription",
|
|
235
230
|
"product_type": "productType",
|
|
236
231
|
"stock_available": "stockAvailable",
|
|
237
|
-
"on_offer": "onOffer",
|
|
238
232
|
"on_subscription": "onSubscription",
|
|
239
233
|
"on_promotion": "onPromotion",
|
|
240
234
|
"has_variant": "hasVariant",
|
|
@@ -260,7 +254,6 @@ export type ProductDetail$Outbound = {
|
|
|
260
254
|
active: boolean;
|
|
261
255
|
stock_available: boolean;
|
|
262
256
|
backorder?: boolean | undefined;
|
|
263
|
-
on_offer: boolean;
|
|
264
257
|
on_subscription: boolean;
|
|
265
258
|
on_promotion: boolean;
|
|
266
259
|
has_variant: boolean;
|
|
@@ -303,7 +296,6 @@ export const ProductDetail$outboundSchema: z.ZodType<
|
|
|
303
296
|
active: z.boolean(),
|
|
304
297
|
stockAvailable: z.boolean(),
|
|
305
298
|
backorder: z.boolean().optional(),
|
|
306
|
-
onOffer: z.boolean(),
|
|
307
299
|
onSubscription: z.boolean(),
|
|
308
300
|
onPromotion: z.boolean(),
|
|
309
301
|
hasVariant: z.boolean(),
|
|
@@ -334,7 +326,6 @@ export const ProductDetail$outboundSchema: z.ZodType<
|
|
|
334
326
|
shortDescription: "short_description",
|
|
335
327
|
productType: "product_type",
|
|
336
328
|
stockAvailable: "stock_available",
|
|
337
|
-
onOffer: "on_offer",
|
|
338
329
|
onSubscription: "on_subscription",
|
|
339
330
|
onPromotion: "on_promotion",
|
|
340
331
|
hasVariant: "has_variant",
|