ce-storefront 0.15.7 → 0.15.8
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 +2 -21
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/components/index.d.ts +0 -2
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +0 -2
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/operations/index.d.ts +0 -8
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +0 -8
- package/esm/models/operations/index.js.map +1 -1
- package/esm/sdk/sdk.d.ts +0 -3
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +0 -4
- package/esm/sdk/sdk.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +0 -2
- package/src/models/operations/index.ts +0 -8
- package/src/sdk/sdk.ts +0 -6
- package/docs/sdks/pos/README.md +0 -610
- package/esm/funcs/posCreatePosCart.d.ts +0 -17
- package/esm/funcs/posCreatePosCart.d.ts.map +0 -1
- package/esm/funcs/posCreatePosCart.js +0 -80
- package/esm/funcs/posCreatePosCart.js.map +0 -1
- package/esm/funcs/posLoginPosDeviceWithEmail.d.ts +0 -17
- package/esm/funcs/posLoginPosDeviceWithEmail.d.ts.map +0 -1
- package/esm/funcs/posLoginPosDeviceWithEmail.js +0 -85
- package/esm/funcs/posLoginPosDeviceWithEmail.js.map +0 -1
- package/esm/funcs/posLoginPosDeviceWithPhone.d.ts +0 -17
- package/esm/funcs/posLoginPosDeviceWithPhone.d.ts.map +0 -1
- package/esm/funcs/posLoginPosDeviceWithPhone.js +0 -85
- package/esm/funcs/posLoginPosDeviceWithPhone.js.map +0 -1
- package/esm/funcs/posLoginPosDeviceWithWhatsapp.d.ts +0 -17
- package/esm/funcs/posLoginPosDeviceWithWhatsapp.d.ts.map +0 -1
- package/esm/funcs/posLoginPosDeviceWithWhatsapp.js +0 -85
- package/esm/funcs/posLoginPosDeviceWithWhatsapp.js.map +0 -1
- package/esm/funcs/posPairPosDevice.d.ts +0 -17
- package/esm/funcs/posPairPosDevice.d.ts.map +0 -1
- package/esm/funcs/posPairPosDevice.js +0 -84
- package/esm/funcs/posPairPosDevice.js.map +0 -1
- package/esm/funcs/posRefreshPosAccessToken.d.ts +0 -17
- package/esm/funcs/posRefreshPosAccessToken.d.ts.map +0 -1
- package/esm/funcs/posRefreshPosAccessToken.js +0 -81
- package/esm/funcs/posRefreshPosAccessToken.js.map +0 -1
- package/esm/funcs/posUpdatePosCart.d.ts +0 -17
- package/esm/funcs/posUpdatePosCart.d.ts.map +0 -1
- package/esm/funcs/posUpdatePosCart.js +0 -84
- package/esm/funcs/posUpdatePosCart.js.map +0 -1
- package/esm/funcs/posVerifyPosLoginOtp.d.ts +0 -17
- package/esm/funcs/posVerifyPosLoginOtp.d.ts.map +0 -1
- package/esm/funcs/posVerifyPosLoginOtp.js +0 -84
- package/esm/funcs/posVerifyPosLoginOtp.js.map +0 -1
- package/esm/models/components/posdevice.d.ts +0 -71
- package/esm/models/components/posdevice.d.ts.map +0 -1
- package/esm/models/components/posdevice.js +0 -85
- package/esm/models/components/posdevice.js.map +0 -1
- package/esm/models/components/posuser.d.ts +0 -124
- package/esm/models/components/posuser.d.ts.map +0 -1
- package/esm/models/components/posuser.js +0 -139
- package/esm/models/components/posuser.js.map +0 -1
- package/esm/models/operations/createposcart.d.ts +0 -90
- package/esm/models/operations/createposcart.d.ts.map +0 -1
- package/esm/models/operations/createposcart.js +0 -86
- package/esm/models/operations/createposcart.js.map +0 -1
- package/esm/models/operations/loginposdevicewithemail.d.ts +0 -138
- package/esm/models/operations/loginposdevicewithemail.d.ts.map +0 -1
- package/esm/models/operations/loginposdevicewithemail.js +0 -159
- package/esm/models/operations/loginposdevicewithemail.js.map +0 -1
- package/esm/models/operations/loginposdevicewithphone.d.ts +0 -146
- package/esm/models/operations/loginposdevicewithphone.d.ts.map +0 -1
- package/esm/models/operations/loginposdevicewithphone.js +0 -163
- package/esm/models/operations/loginposdevicewithphone.js.map +0 -1
- package/esm/models/operations/loginposdevicewithwhatsapp.d.ts +0 -146
- package/esm/models/operations/loginposdevicewithwhatsapp.d.ts.map +0 -1
- package/esm/models/operations/loginposdevicewithwhatsapp.js +0 -163
- package/esm/models/operations/loginposdevicewithwhatsapp.js.map +0 -1
- package/esm/models/operations/pairposdevice.d.ts +0 -112
- package/esm/models/operations/pairposdevice.d.ts.map +0 -1
- package/esm/models/operations/pairposdevice.js +0 -128
- package/esm/models/operations/pairposdevice.js.map +0 -1
- package/esm/models/operations/refreshposaccesstoken.d.ts +0 -88
- package/esm/models/operations/refreshposaccesstoken.d.ts.map +0 -1
- package/esm/models/operations/refreshposaccesstoken.js +0 -106
- package/esm/models/operations/refreshposaccesstoken.js.map +0 -1
- package/esm/models/operations/updateposcart.d.ts +0 -120
- package/esm/models/operations/updateposcart.d.ts.map +0 -1
- package/esm/models/operations/updateposcart.js +0 -122
- package/esm/models/operations/updateposcart.js.map +0 -1
- package/esm/models/operations/verifyposloginotp.d.ts +0 -158
- package/esm/models/operations/verifyposloginotp.d.ts.map +0 -1
- package/esm/models/operations/verifyposloginotp.js +0 -169
- package/esm/models/operations/verifyposloginotp.js.map +0 -1
- package/esm/sdk/pos.d.ts +0 -61
- package/esm/sdk/pos.d.ts.map +0 -1
- package/esm/sdk/pos.js +0 -88
- package/esm/sdk/pos.js.map +0 -1
- package/src/funcs/posCreatePosCart.ts +0 -165
- package/src/funcs/posLoginPosDeviceWithEmail.ts +0 -173
- package/src/funcs/posLoginPosDeviceWithPhone.ts +0 -173
- package/src/funcs/posLoginPosDeviceWithWhatsapp.ts +0 -176
- package/src/funcs/posPairPosDevice.ts +0 -174
- package/src/funcs/posRefreshPosAccessToken.ts +0 -164
- package/src/funcs/posUpdatePosCart.ts +0 -167
- package/src/funcs/posVerifyPosLoginOtp.ts +0 -174
- package/src/models/components/posdevice.ts +0 -141
- package/src/models/components/posuser.ts +0 -263
- package/src/models/operations/createposcart.ts +0 -197
- package/src/models/operations/loginposdevicewithemail.ts +0 -328
- package/src/models/operations/loginposdevicewithphone.ts +0 -340
- package/src/models/operations/loginposdevicewithwhatsapp.ts +0 -347
- package/src/models/operations/pairposdevice.ts +0 -269
- package/src/models/operations/refreshposaccesstoken.ts +0 -223
- package/src/models/operations/updateposcart.ts +0 -271
- package/src/models/operations/verifyposloginotp.ts +0 -345
- package/src/sdk/pos.ts +0 -163
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import * as components from "../components/index.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
export type UpdatePosCartRequestBody = {
|
|
6
|
-
items?: Array<components.UpdateCartItem> | undefined;
|
|
7
|
-
};
|
|
8
|
-
export type UpdatePosCartRequest = {
|
|
9
|
-
/**
|
|
10
|
-
* cart id
|
|
11
|
-
*/
|
|
12
|
-
id: string;
|
|
13
|
-
requestBody?: UpdatePosCartRequestBody | undefined;
|
|
14
|
-
};
|
|
15
|
-
export type UpdatePosCartContent = {
|
|
16
|
-
/**
|
|
17
|
-
* This cart model is structured to capture a wide range of details, facilitating accurate representation and management of user shopping carts in an e-commerce platform.
|
|
18
|
-
*/
|
|
19
|
-
cart?: components.Cart | undefined;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* OK
|
|
23
|
-
*/
|
|
24
|
-
export type UpdatePosCartResponseBody = {
|
|
25
|
-
message?: string | undefined;
|
|
26
|
-
success?: string | undefined;
|
|
27
|
-
content?: UpdatePosCartContent | undefined;
|
|
28
|
-
};
|
|
29
|
-
/** @internal */
|
|
30
|
-
export declare const UpdatePosCartRequestBody$inboundSchema: z.ZodType<UpdatePosCartRequestBody, z.ZodTypeDef, unknown>;
|
|
31
|
-
/** @internal */
|
|
32
|
-
export type UpdatePosCartRequestBody$Outbound = {
|
|
33
|
-
items?: Array<components.UpdateCartItem$Outbound> | undefined;
|
|
34
|
-
};
|
|
35
|
-
/** @internal */
|
|
36
|
-
export declare const UpdatePosCartRequestBody$outboundSchema: z.ZodType<UpdatePosCartRequestBody$Outbound, z.ZodTypeDef, UpdatePosCartRequestBody>;
|
|
37
|
-
/**
|
|
38
|
-
* @internal
|
|
39
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
40
|
-
*/
|
|
41
|
-
export declare namespace UpdatePosCartRequestBody$ {
|
|
42
|
-
/** @deprecated use `UpdatePosCartRequestBody$inboundSchema` instead. */
|
|
43
|
-
const inboundSchema: z.ZodType<UpdatePosCartRequestBody, z.ZodTypeDef, unknown>;
|
|
44
|
-
/** @deprecated use `UpdatePosCartRequestBody$outboundSchema` instead. */
|
|
45
|
-
const outboundSchema: z.ZodType<UpdatePosCartRequestBody$Outbound, z.ZodTypeDef, UpdatePosCartRequestBody>;
|
|
46
|
-
/** @deprecated use `UpdatePosCartRequestBody$Outbound` instead. */
|
|
47
|
-
type Outbound = UpdatePosCartRequestBody$Outbound;
|
|
48
|
-
}
|
|
49
|
-
export declare function updatePosCartRequestBodyToJSON(updatePosCartRequestBody: UpdatePosCartRequestBody): string;
|
|
50
|
-
export declare function updatePosCartRequestBodyFromJSON(jsonString: string): SafeParseResult<UpdatePosCartRequestBody, SDKValidationError>;
|
|
51
|
-
/** @internal */
|
|
52
|
-
export declare const UpdatePosCartRequest$inboundSchema: z.ZodType<UpdatePosCartRequest, z.ZodTypeDef, unknown>;
|
|
53
|
-
/** @internal */
|
|
54
|
-
export type UpdatePosCartRequest$Outbound = {
|
|
55
|
-
id: string;
|
|
56
|
-
RequestBody?: UpdatePosCartRequestBody$Outbound | undefined;
|
|
57
|
-
};
|
|
58
|
-
/** @internal */
|
|
59
|
-
export declare const UpdatePosCartRequest$outboundSchema: z.ZodType<UpdatePosCartRequest$Outbound, z.ZodTypeDef, UpdatePosCartRequest>;
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
-
*/
|
|
64
|
-
export declare namespace UpdatePosCartRequest$ {
|
|
65
|
-
/** @deprecated use `UpdatePosCartRequest$inboundSchema` instead. */
|
|
66
|
-
const inboundSchema: z.ZodType<UpdatePosCartRequest, z.ZodTypeDef, unknown>;
|
|
67
|
-
/** @deprecated use `UpdatePosCartRequest$outboundSchema` instead. */
|
|
68
|
-
const outboundSchema: z.ZodType<UpdatePosCartRequest$Outbound, z.ZodTypeDef, UpdatePosCartRequest>;
|
|
69
|
-
/** @deprecated use `UpdatePosCartRequest$Outbound` instead. */
|
|
70
|
-
type Outbound = UpdatePosCartRequest$Outbound;
|
|
71
|
-
}
|
|
72
|
-
export declare function updatePosCartRequestToJSON(updatePosCartRequest: UpdatePosCartRequest): string;
|
|
73
|
-
export declare function updatePosCartRequestFromJSON(jsonString: string): SafeParseResult<UpdatePosCartRequest, SDKValidationError>;
|
|
74
|
-
/** @internal */
|
|
75
|
-
export declare const UpdatePosCartContent$inboundSchema: z.ZodType<UpdatePosCartContent, z.ZodTypeDef, unknown>;
|
|
76
|
-
/** @internal */
|
|
77
|
-
export type UpdatePosCartContent$Outbound = {
|
|
78
|
-
cart?: components.Cart$Outbound | undefined;
|
|
79
|
-
};
|
|
80
|
-
/** @internal */
|
|
81
|
-
export declare const UpdatePosCartContent$outboundSchema: z.ZodType<UpdatePosCartContent$Outbound, z.ZodTypeDef, UpdatePosCartContent>;
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
85
|
-
*/
|
|
86
|
-
export declare namespace UpdatePosCartContent$ {
|
|
87
|
-
/** @deprecated use `UpdatePosCartContent$inboundSchema` instead. */
|
|
88
|
-
const inboundSchema: z.ZodType<UpdatePosCartContent, z.ZodTypeDef, unknown>;
|
|
89
|
-
/** @deprecated use `UpdatePosCartContent$outboundSchema` instead. */
|
|
90
|
-
const outboundSchema: z.ZodType<UpdatePosCartContent$Outbound, z.ZodTypeDef, UpdatePosCartContent>;
|
|
91
|
-
/** @deprecated use `UpdatePosCartContent$Outbound` instead. */
|
|
92
|
-
type Outbound = UpdatePosCartContent$Outbound;
|
|
93
|
-
}
|
|
94
|
-
export declare function updatePosCartContentToJSON(updatePosCartContent: UpdatePosCartContent): string;
|
|
95
|
-
export declare function updatePosCartContentFromJSON(jsonString: string): SafeParseResult<UpdatePosCartContent, SDKValidationError>;
|
|
96
|
-
/** @internal */
|
|
97
|
-
export declare const UpdatePosCartResponseBody$inboundSchema: z.ZodType<UpdatePosCartResponseBody, z.ZodTypeDef, unknown>;
|
|
98
|
-
/** @internal */
|
|
99
|
-
export type UpdatePosCartResponseBody$Outbound = {
|
|
100
|
-
message?: string | undefined;
|
|
101
|
-
success?: string | undefined;
|
|
102
|
-
content?: UpdatePosCartContent$Outbound | undefined;
|
|
103
|
-
};
|
|
104
|
-
/** @internal */
|
|
105
|
-
export declare const UpdatePosCartResponseBody$outboundSchema: z.ZodType<UpdatePosCartResponseBody$Outbound, z.ZodTypeDef, UpdatePosCartResponseBody>;
|
|
106
|
-
/**
|
|
107
|
-
* @internal
|
|
108
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
109
|
-
*/
|
|
110
|
-
export declare namespace UpdatePosCartResponseBody$ {
|
|
111
|
-
/** @deprecated use `UpdatePosCartResponseBody$inboundSchema` instead. */
|
|
112
|
-
const inboundSchema: z.ZodType<UpdatePosCartResponseBody, z.ZodTypeDef, unknown>;
|
|
113
|
-
/** @deprecated use `UpdatePosCartResponseBody$outboundSchema` instead. */
|
|
114
|
-
const outboundSchema: z.ZodType<UpdatePosCartResponseBody$Outbound, z.ZodTypeDef, UpdatePosCartResponseBody>;
|
|
115
|
-
/** @deprecated use `UpdatePosCartResponseBody$Outbound` instead. */
|
|
116
|
-
type Outbound = UpdatePosCartResponseBody$Outbound;
|
|
117
|
-
}
|
|
118
|
-
export declare function updatePosCartResponseBodyToJSON(updatePosCartResponseBody: UpdatePosCartResponseBody): string;
|
|
119
|
-
export declare function updatePosCartResponseBodyFromJSON(jsonString: string): SafeParseResult<UpdatePosCartResponseBody, SDKValidationError>;
|
|
120
|
-
//# sourceMappingURL=updateposcart.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateposcart.d.ts","sourceRoot":"","sources":["../../../src/models/operations/updateposcart.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;CACtD,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;CACpD,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC,IAAI,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;CAC5C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC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C7B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,6BAA6B,GAAG,SAAS,CAAC;CACrD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,kCAAkC,EAClC,CAAC,CAAC,UAAU,EACZ,yBAAyB,CAKzB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,0BAA0B,CAAC;IAC1C,yEAAyE;IAClE,MAAM,aAAa,6DAA0C,CAAC;IACrE,0EAA0E;IACnE,MAAM,cAAc,wFAA2C,CAAC;IACvE,oEAAoE;IACpE,KAAY,QAAQ,GAAG,kCAAkC,CAAC;CAC3D;AAED,wBAAgB,+BAA+B,CAC7C,yBAAyB,EAAE,yBAAyB,GACnD,MAAM,CAIR;AAED,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAMhE"}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod";
|
|
5
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import * as components from "../components/index.js";
|
|
8
|
-
/** @internal */
|
|
9
|
-
export const UpdatePosCartRequestBody$inboundSchema = z.object({
|
|
10
|
-
items: z.array(components.UpdateCartItem$inboundSchema).optional(),
|
|
11
|
-
});
|
|
12
|
-
/** @internal */
|
|
13
|
-
export const UpdatePosCartRequestBody$outboundSchema = z.object({
|
|
14
|
-
items: z.array(components.UpdateCartItem$outboundSchema).optional(),
|
|
15
|
-
});
|
|
16
|
-
/**
|
|
17
|
-
* @internal
|
|
18
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
19
|
-
*/
|
|
20
|
-
export var UpdatePosCartRequestBody$;
|
|
21
|
-
(function (UpdatePosCartRequestBody$) {
|
|
22
|
-
/** @deprecated use `UpdatePosCartRequestBody$inboundSchema` instead. */
|
|
23
|
-
UpdatePosCartRequestBody$.inboundSchema = UpdatePosCartRequestBody$inboundSchema;
|
|
24
|
-
/** @deprecated use `UpdatePosCartRequestBody$outboundSchema` instead. */
|
|
25
|
-
UpdatePosCartRequestBody$.outboundSchema = UpdatePosCartRequestBody$outboundSchema;
|
|
26
|
-
})(UpdatePosCartRequestBody$ || (UpdatePosCartRequestBody$ = {}));
|
|
27
|
-
export function updatePosCartRequestBodyToJSON(updatePosCartRequestBody) {
|
|
28
|
-
return JSON.stringify(UpdatePosCartRequestBody$outboundSchema.parse(updatePosCartRequestBody));
|
|
29
|
-
}
|
|
30
|
-
export function updatePosCartRequestBodyFromJSON(jsonString) {
|
|
31
|
-
return safeParse(jsonString, (x) => UpdatePosCartRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePosCartRequestBody' from JSON`);
|
|
32
|
-
}
|
|
33
|
-
/** @internal */
|
|
34
|
-
export const UpdatePosCartRequest$inboundSchema = z.object({
|
|
35
|
-
id: z.string(),
|
|
36
|
-
RequestBody: z.lazy(() => UpdatePosCartRequestBody$inboundSchema).optional(),
|
|
37
|
-
}).transform((v) => {
|
|
38
|
-
return remap$(v, {
|
|
39
|
-
"RequestBody": "requestBody",
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
/** @internal */
|
|
43
|
-
export const UpdatePosCartRequest$outboundSchema = z.object({
|
|
44
|
-
id: z.string(),
|
|
45
|
-
requestBody: z.lazy(() => UpdatePosCartRequestBody$outboundSchema).optional(),
|
|
46
|
-
}).transform((v) => {
|
|
47
|
-
return remap$(v, {
|
|
48
|
-
requestBody: "RequestBody",
|
|
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 var UpdatePosCartRequest$;
|
|
56
|
-
(function (UpdatePosCartRequest$) {
|
|
57
|
-
/** @deprecated use `UpdatePosCartRequest$inboundSchema` instead. */
|
|
58
|
-
UpdatePosCartRequest$.inboundSchema = UpdatePosCartRequest$inboundSchema;
|
|
59
|
-
/** @deprecated use `UpdatePosCartRequest$outboundSchema` instead. */
|
|
60
|
-
UpdatePosCartRequest$.outboundSchema = UpdatePosCartRequest$outboundSchema;
|
|
61
|
-
})(UpdatePosCartRequest$ || (UpdatePosCartRequest$ = {}));
|
|
62
|
-
export function updatePosCartRequestToJSON(updatePosCartRequest) {
|
|
63
|
-
return JSON.stringify(UpdatePosCartRequest$outboundSchema.parse(updatePosCartRequest));
|
|
64
|
-
}
|
|
65
|
-
export function updatePosCartRequestFromJSON(jsonString) {
|
|
66
|
-
return safeParse(jsonString, (x) => UpdatePosCartRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePosCartRequest' from JSON`);
|
|
67
|
-
}
|
|
68
|
-
/** @internal */
|
|
69
|
-
export const UpdatePosCartContent$inboundSchema = z.object({
|
|
70
|
-
cart: components.Cart$inboundSchema.optional(),
|
|
71
|
-
});
|
|
72
|
-
/** @internal */
|
|
73
|
-
export const UpdatePosCartContent$outboundSchema = z.object({
|
|
74
|
-
cart: components.Cart$outboundSchema.optional(),
|
|
75
|
-
});
|
|
76
|
-
/**
|
|
77
|
-
* @internal
|
|
78
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
79
|
-
*/
|
|
80
|
-
export var UpdatePosCartContent$;
|
|
81
|
-
(function (UpdatePosCartContent$) {
|
|
82
|
-
/** @deprecated use `UpdatePosCartContent$inboundSchema` instead. */
|
|
83
|
-
UpdatePosCartContent$.inboundSchema = UpdatePosCartContent$inboundSchema;
|
|
84
|
-
/** @deprecated use `UpdatePosCartContent$outboundSchema` instead. */
|
|
85
|
-
UpdatePosCartContent$.outboundSchema = UpdatePosCartContent$outboundSchema;
|
|
86
|
-
})(UpdatePosCartContent$ || (UpdatePosCartContent$ = {}));
|
|
87
|
-
export function updatePosCartContentToJSON(updatePosCartContent) {
|
|
88
|
-
return JSON.stringify(UpdatePosCartContent$outboundSchema.parse(updatePosCartContent));
|
|
89
|
-
}
|
|
90
|
-
export function updatePosCartContentFromJSON(jsonString) {
|
|
91
|
-
return safeParse(jsonString, (x) => UpdatePosCartContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePosCartContent' from JSON`);
|
|
92
|
-
}
|
|
93
|
-
/** @internal */
|
|
94
|
-
export const UpdatePosCartResponseBody$inboundSchema = z.object({
|
|
95
|
-
message: z.string().optional(),
|
|
96
|
-
success: z.string().optional(),
|
|
97
|
-
content: z.lazy(() => UpdatePosCartContent$inboundSchema).optional(),
|
|
98
|
-
});
|
|
99
|
-
/** @internal */
|
|
100
|
-
export const UpdatePosCartResponseBody$outboundSchema = z.object({
|
|
101
|
-
message: z.string().optional(),
|
|
102
|
-
success: z.string().optional(),
|
|
103
|
-
content: z.lazy(() => UpdatePosCartContent$outboundSchema).optional(),
|
|
104
|
-
});
|
|
105
|
-
/**
|
|
106
|
-
* @internal
|
|
107
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
108
|
-
*/
|
|
109
|
-
export var UpdatePosCartResponseBody$;
|
|
110
|
-
(function (UpdatePosCartResponseBody$) {
|
|
111
|
-
/** @deprecated use `UpdatePosCartResponseBody$inboundSchema` instead. */
|
|
112
|
-
UpdatePosCartResponseBody$.inboundSchema = UpdatePosCartResponseBody$inboundSchema;
|
|
113
|
-
/** @deprecated use `UpdatePosCartResponseBody$outboundSchema` instead. */
|
|
114
|
-
UpdatePosCartResponseBody$.outboundSchema = UpdatePosCartResponseBody$outboundSchema;
|
|
115
|
-
})(UpdatePosCartResponseBody$ || (UpdatePosCartResponseBody$ = {}));
|
|
116
|
-
export function updatePosCartResponseBodyToJSON(updatePosCartResponseBody) {
|
|
117
|
-
return JSON.stringify(UpdatePosCartResponseBody$outboundSchema.parse(updatePosCartResponseBody));
|
|
118
|
-
}
|
|
119
|
-
export function updatePosCartResponseBodyFromJSON(jsonString) {
|
|
120
|
-
return safeParse(jsonString, (x) => UpdatePosCartResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdatePosCartResponseBody' from JSON`);
|
|
121
|
-
}
|
|
122
|
-
//# sourceMappingURL=updateposcart.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateposcart.js","sourceRoot":"","sources":["../../../src/models/operations/updateposcart.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;AAEjD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AA+BrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,4BAA4B,CAAC,CAAC,QAAQ,EAAE;CACnE,CAAC,CAAC;AAOH,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,6BAA6B,CAAC,CAAC,QAAQ,EAAE;CACpE,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,yBAAyB,CAOzC;AAPD,WAAiB,yBAAyB;IACxC,wEAAwE;IAC3D,uCAAa,GAAG,sCAAsC,CAAC;IACpE,yEAAyE;IAC5D,wCAAc,GAAG,uCAAuC,CAAC;AAGxE,CAAC,EAPgB,yBAAyB,KAAzB,yBAAyB,QAOzC;AAED,MAAM,UAAU,8BAA8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AACJ,CAAC"}
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
-
import * as components from "../components/index.js";
|
|
5
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
6
|
-
export type VerifyPosLoginOtpSecurity = {
|
|
7
|
-
xApiKey: string;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* A string indicating the action to be performed.
|
|
11
|
-
*/
|
|
12
|
-
export declare const VerifyPosLoginOtpOtpAction: {
|
|
13
|
-
readonly Login: "login";
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* A string indicating the action to be performed.
|
|
17
|
-
*/
|
|
18
|
-
export type VerifyPosLoginOtpOtpAction = ClosedEnum<typeof VerifyPosLoginOtpOtpAction>;
|
|
19
|
-
export type VerifyPosLoginOtpRequestBody = {
|
|
20
|
-
/**
|
|
21
|
-
* A string representing the one-time password.
|
|
22
|
-
*/
|
|
23
|
-
otp: string;
|
|
24
|
-
/**
|
|
25
|
-
* A string representing the OTP token.
|
|
26
|
-
*/
|
|
27
|
-
otpToken: string;
|
|
28
|
-
/**
|
|
29
|
-
* A string indicating the action to be performed.
|
|
30
|
-
*/
|
|
31
|
-
otpAction: VerifyPosLoginOtpOtpAction;
|
|
32
|
-
};
|
|
33
|
-
export type VerifyPosLoginOtpContent = {
|
|
34
|
-
user: components.PosUser;
|
|
35
|
-
accessToken: string;
|
|
36
|
-
refreshToken: string;
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* OK
|
|
40
|
-
*/
|
|
41
|
-
export type VerifyPosLoginOtpResponseBody = {
|
|
42
|
-
message: string;
|
|
43
|
-
success: string;
|
|
44
|
-
content: VerifyPosLoginOtpContent;
|
|
45
|
-
};
|
|
46
|
-
/** @internal */
|
|
47
|
-
export declare const VerifyPosLoginOtpSecurity$inboundSchema: z.ZodType<VerifyPosLoginOtpSecurity, z.ZodTypeDef, unknown>;
|
|
48
|
-
/** @internal */
|
|
49
|
-
export type VerifyPosLoginOtpSecurity$Outbound = {
|
|
50
|
-
"X-Api-Key": string;
|
|
51
|
-
};
|
|
52
|
-
/** @internal */
|
|
53
|
-
export declare const VerifyPosLoginOtpSecurity$outboundSchema: z.ZodType<VerifyPosLoginOtpSecurity$Outbound, z.ZodTypeDef, VerifyPosLoginOtpSecurity>;
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
-
*/
|
|
58
|
-
export declare namespace VerifyPosLoginOtpSecurity$ {
|
|
59
|
-
/** @deprecated use `VerifyPosLoginOtpSecurity$inboundSchema` instead. */
|
|
60
|
-
const inboundSchema: z.ZodType<VerifyPosLoginOtpSecurity, z.ZodTypeDef, unknown>;
|
|
61
|
-
/** @deprecated use `VerifyPosLoginOtpSecurity$outboundSchema` instead. */
|
|
62
|
-
const outboundSchema: z.ZodType<VerifyPosLoginOtpSecurity$Outbound, z.ZodTypeDef, VerifyPosLoginOtpSecurity>;
|
|
63
|
-
/** @deprecated use `VerifyPosLoginOtpSecurity$Outbound` instead. */
|
|
64
|
-
type Outbound = VerifyPosLoginOtpSecurity$Outbound;
|
|
65
|
-
}
|
|
66
|
-
export declare function verifyPosLoginOtpSecurityToJSON(verifyPosLoginOtpSecurity: VerifyPosLoginOtpSecurity): string;
|
|
67
|
-
export declare function verifyPosLoginOtpSecurityFromJSON(jsonString: string): SafeParseResult<VerifyPosLoginOtpSecurity, SDKValidationError>;
|
|
68
|
-
/** @internal */
|
|
69
|
-
export declare const VerifyPosLoginOtpOtpAction$inboundSchema: z.ZodNativeEnum<typeof VerifyPosLoginOtpOtpAction>;
|
|
70
|
-
/** @internal */
|
|
71
|
-
export declare const VerifyPosLoginOtpOtpAction$outboundSchema: z.ZodNativeEnum<typeof VerifyPosLoginOtpOtpAction>;
|
|
72
|
-
/**
|
|
73
|
-
* @internal
|
|
74
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
75
|
-
*/
|
|
76
|
-
export declare namespace VerifyPosLoginOtpOtpAction$ {
|
|
77
|
-
/** @deprecated use `VerifyPosLoginOtpOtpAction$inboundSchema` instead. */
|
|
78
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
79
|
-
readonly Login: "login";
|
|
80
|
-
}>;
|
|
81
|
-
/** @deprecated use `VerifyPosLoginOtpOtpAction$outboundSchema` instead. */
|
|
82
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
83
|
-
readonly Login: "login";
|
|
84
|
-
}>;
|
|
85
|
-
}
|
|
86
|
-
/** @internal */
|
|
87
|
-
export declare const VerifyPosLoginOtpRequestBody$inboundSchema: z.ZodType<VerifyPosLoginOtpRequestBody, z.ZodTypeDef, unknown>;
|
|
88
|
-
/** @internal */
|
|
89
|
-
export type VerifyPosLoginOtpRequestBody$Outbound = {
|
|
90
|
-
otp: string;
|
|
91
|
-
otp_token: string;
|
|
92
|
-
otp_action: string;
|
|
93
|
-
};
|
|
94
|
-
/** @internal */
|
|
95
|
-
export declare const VerifyPosLoginOtpRequestBody$outboundSchema: z.ZodType<VerifyPosLoginOtpRequestBody$Outbound, z.ZodTypeDef, VerifyPosLoginOtpRequestBody>;
|
|
96
|
-
/**
|
|
97
|
-
* @internal
|
|
98
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
99
|
-
*/
|
|
100
|
-
export declare namespace VerifyPosLoginOtpRequestBody$ {
|
|
101
|
-
/** @deprecated use `VerifyPosLoginOtpRequestBody$inboundSchema` instead. */
|
|
102
|
-
const inboundSchema: z.ZodType<VerifyPosLoginOtpRequestBody, z.ZodTypeDef, unknown>;
|
|
103
|
-
/** @deprecated use `VerifyPosLoginOtpRequestBody$outboundSchema` instead. */
|
|
104
|
-
const outboundSchema: z.ZodType<VerifyPosLoginOtpRequestBody$Outbound, z.ZodTypeDef, VerifyPosLoginOtpRequestBody>;
|
|
105
|
-
/** @deprecated use `VerifyPosLoginOtpRequestBody$Outbound` instead. */
|
|
106
|
-
type Outbound = VerifyPosLoginOtpRequestBody$Outbound;
|
|
107
|
-
}
|
|
108
|
-
export declare function verifyPosLoginOtpRequestBodyToJSON(verifyPosLoginOtpRequestBody: VerifyPosLoginOtpRequestBody): string;
|
|
109
|
-
export declare function verifyPosLoginOtpRequestBodyFromJSON(jsonString: string): SafeParseResult<VerifyPosLoginOtpRequestBody, SDKValidationError>;
|
|
110
|
-
/** @internal */
|
|
111
|
-
export declare const VerifyPosLoginOtpContent$inboundSchema: z.ZodType<VerifyPosLoginOtpContent, z.ZodTypeDef, unknown>;
|
|
112
|
-
/** @internal */
|
|
113
|
-
export type VerifyPosLoginOtpContent$Outbound = {
|
|
114
|
-
user: components.PosUser$Outbound;
|
|
115
|
-
access_token: string;
|
|
116
|
-
refresh_token: string;
|
|
117
|
-
};
|
|
118
|
-
/** @internal */
|
|
119
|
-
export declare const VerifyPosLoginOtpContent$outboundSchema: z.ZodType<VerifyPosLoginOtpContent$Outbound, z.ZodTypeDef, VerifyPosLoginOtpContent>;
|
|
120
|
-
/**
|
|
121
|
-
* @internal
|
|
122
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
123
|
-
*/
|
|
124
|
-
export declare namespace VerifyPosLoginOtpContent$ {
|
|
125
|
-
/** @deprecated use `VerifyPosLoginOtpContent$inboundSchema` instead. */
|
|
126
|
-
const inboundSchema: z.ZodType<VerifyPosLoginOtpContent, z.ZodTypeDef, unknown>;
|
|
127
|
-
/** @deprecated use `VerifyPosLoginOtpContent$outboundSchema` instead. */
|
|
128
|
-
const outboundSchema: z.ZodType<VerifyPosLoginOtpContent$Outbound, z.ZodTypeDef, VerifyPosLoginOtpContent>;
|
|
129
|
-
/** @deprecated use `VerifyPosLoginOtpContent$Outbound` instead. */
|
|
130
|
-
type Outbound = VerifyPosLoginOtpContent$Outbound;
|
|
131
|
-
}
|
|
132
|
-
export declare function verifyPosLoginOtpContentToJSON(verifyPosLoginOtpContent: VerifyPosLoginOtpContent): string;
|
|
133
|
-
export declare function verifyPosLoginOtpContentFromJSON(jsonString: string): SafeParseResult<VerifyPosLoginOtpContent, SDKValidationError>;
|
|
134
|
-
/** @internal */
|
|
135
|
-
export declare const VerifyPosLoginOtpResponseBody$inboundSchema: z.ZodType<VerifyPosLoginOtpResponseBody, z.ZodTypeDef, unknown>;
|
|
136
|
-
/** @internal */
|
|
137
|
-
export type VerifyPosLoginOtpResponseBody$Outbound = {
|
|
138
|
-
message: string;
|
|
139
|
-
success: string;
|
|
140
|
-
content: VerifyPosLoginOtpContent$Outbound;
|
|
141
|
-
};
|
|
142
|
-
/** @internal */
|
|
143
|
-
export declare const VerifyPosLoginOtpResponseBody$outboundSchema: z.ZodType<VerifyPosLoginOtpResponseBody$Outbound, z.ZodTypeDef, VerifyPosLoginOtpResponseBody>;
|
|
144
|
-
/**
|
|
145
|
-
* @internal
|
|
146
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
147
|
-
*/
|
|
148
|
-
export declare namespace VerifyPosLoginOtpResponseBody$ {
|
|
149
|
-
/** @deprecated use `VerifyPosLoginOtpResponseBody$inboundSchema` instead. */
|
|
150
|
-
const inboundSchema: z.ZodType<VerifyPosLoginOtpResponseBody, z.ZodTypeDef, unknown>;
|
|
151
|
-
/** @deprecated use `VerifyPosLoginOtpResponseBody$outboundSchema` instead. */
|
|
152
|
-
const outboundSchema: z.ZodType<VerifyPosLoginOtpResponseBody$Outbound, z.ZodTypeDef, VerifyPosLoginOtpResponseBody>;
|
|
153
|
-
/** @deprecated use `VerifyPosLoginOtpResponseBody$Outbound` instead. */
|
|
154
|
-
type Outbound = VerifyPosLoginOtpResponseBody$Outbound;
|
|
155
|
-
}
|
|
156
|
-
export declare function verifyPosLoginOtpResponseBodyToJSON(verifyPosLoginOtpResponseBody: VerifyPosLoginOtpResponseBody): string;
|
|
157
|
-
export declare function verifyPosLoginOtpResponseBodyFromJSON(jsonString: string): SafeParseResult<VerifyPosLoginOtpResponseBody, SDKValidationError>;
|
|
158
|
-
//# sourceMappingURL=verifyposloginotp.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"verifyposloginotp.d.ts","sourceRoot":"","sources":["../../../src/models/operations/verifyposloginotp.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,yBAAyB,GAAG;IACtC,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0BAA0B;;CAE7B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,UAAU,CACjD,OAAO,0BAA0B,CAClC,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,EAAE,0BAA0B,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,UAAU,CAAC,OAAO,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,wBAAwB,CAAC;CACnC,CAAC;AAEF,g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AA8B,CAC5C,wBAAwB,EAAE,wBAAwB,GACjD,MAAM,CAIR;AAED,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D;AAED,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,sCAAsC,GAAG;IACnD,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,iCAAiC,CAAC;CAC5C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,OAAO,CAClE,sCAAsC,EACtC,CAAC,CAAC,UAAU,EACZ,6BAA6B,CAK7B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,8BAA8B,CAAC;IAC9C,6EAA6E;IACtE,MAAM,aAAa,iEAA8C,CAAC;IACzE,8EAA8E;IACvE,MAAM,cAAc,gGAA+C,CAAC;IAC3E,wEAAwE;IACxE,KAAY,QAAQ,GAAG,sCAAsC,CAAC;CAC/D;AAED,wBAAgB,mCAAmC,CACjD,6BAA6B,EAAE,6BAA6B,GAC3D,MAAM,CAMR;AAED,wBAAgB,qCAAqC,CACnD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,6BAA6B,EAAE,kBAAkB,CAAC,CAMpE"}
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod";
|
|
5
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import * as components from "../components/index.js";
|
|
8
|
-
/**
|
|
9
|
-
* A string indicating the action to be performed.
|
|
10
|
-
*/
|
|
11
|
-
export const VerifyPosLoginOtpOtpAction = {
|
|
12
|
-
Login: "login",
|
|
13
|
-
};
|
|
14
|
-
/** @internal */
|
|
15
|
-
export const VerifyPosLoginOtpSecurity$inboundSchema = z.object({
|
|
16
|
-
"X-Api-Key": z.string(),
|
|
17
|
-
}).transform((v) => {
|
|
18
|
-
return remap$(v, {
|
|
19
|
-
"X-Api-Key": "xApiKey",
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
/** @internal */
|
|
23
|
-
export const VerifyPosLoginOtpSecurity$outboundSchema = z.object({
|
|
24
|
-
xApiKey: z.string(),
|
|
25
|
-
}).transform((v) => {
|
|
26
|
-
return remap$(v, {
|
|
27
|
-
xApiKey: "X-Api-Key",
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
/**
|
|
31
|
-
* @internal
|
|
32
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
33
|
-
*/
|
|
34
|
-
export var VerifyPosLoginOtpSecurity$;
|
|
35
|
-
(function (VerifyPosLoginOtpSecurity$) {
|
|
36
|
-
/** @deprecated use `VerifyPosLoginOtpSecurity$inboundSchema` instead. */
|
|
37
|
-
VerifyPosLoginOtpSecurity$.inboundSchema = VerifyPosLoginOtpSecurity$inboundSchema;
|
|
38
|
-
/** @deprecated use `VerifyPosLoginOtpSecurity$outboundSchema` instead. */
|
|
39
|
-
VerifyPosLoginOtpSecurity$.outboundSchema = VerifyPosLoginOtpSecurity$outboundSchema;
|
|
40
|
-
})(VerifyPosLoginOtpSecurity$ || (VerifyPosLoginOtpSecurity$ = {}));
|
|
41
|
-
export function verifyPosLoginOtpSecurityToJSON(verifyPosLoginOtpSecurity) {
|
|
42
|
-
return JSON.stringify(VerifyPosLoginOtpSecurity$outboundSchema.parse(verifyPosLoginOtpSecurity));
|
|
43
|
-
}
|
|
44
|
-
export function verifyPosLoginOtpSecurityFromJSON(jsonString) {
|
|
45
|
-
return safeParse(jsonString, (x) => VerifyPosLoginOtpSecurity$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VerifyPosLoginOtpSecurity' from JSON`);
|
|
46
|
-
}
|
|
47
|
-
/** @internal */
|
|
48
|
-
export const VerifyPosLoginOtpOtpAction$inboundSchema = z.nativeEnum(VerifyPosLoginOtpOtpAction);
|
|
49
|
-
/** @internal */
|
|
50
|
-
export const VerifyPosLoginOtpOtpAction$outboundSchema = VerifyPosLoginOtpOtpAction$inboundSchema;
|
|
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 var VerifyPosLoginOtpOtpAction$;
|
|
56
|
-
(function (VerifyPosLoginOtpOtpAction$) {
|
|
57
|
-
/** @deprecated use `VerifyPosLoginOtpOtpAction$inboundSchema` instead. */
|
|
58
|
-
VerifyPosLoginOtpOtpAction$.inboundSchema = VerifyPosLoginOtpOtpAction$inboundSchema;
|
|
59
|
-
/** @deprecated use `VerifyPosLoginOtpOtpAction$outboundSchema` instead. */
|
|
60
|
-
VerifyPosLoginOtpOtpAction$.outboundSchema = VerifyPosLoginOtpOtpAction$outboundSchema;
|
|
61
|
-
})(VerifyPosLoginOtpOtpAction$ || (VerifyPosLoginOtpOtpAction$ = {}));
|
|
62
|
-
/** @internal */
|
|
63
|
-
export const VerifyPosLoginOtpRequestBody$inboundSchema = z.object({
|
|
64
|
-
otp: z.string(),
|
|
65
|
-
otp_token: z.string(),
|
|
66
|
-
otp_action: VerifyPosLoginOtpOtpAction$inboundSchema,
|
|
67
|
-
}).transform((v) => {
|
|
68
|
-
return remap$(v, {
|
|
69
|
-
"otp_token": "otpToken",
|
|
70
|
-
"otp_action": "otpAction",
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
/** @internal */
|
|
74
|
-
export const VerifyPosLoginOtpRequestBody$outboundSchema = z.object({
|
|
75
|
-
otp: z.string(),
|
|
76
|
-
otpToken: z.string(),
|
|
77
|
-
otpAction: VerifyPosLoginOtpOtpAction$outboundSchema,
|
|
78
|
-
}).transform((v) => {
|
|
79
|
-
return remap$(v, {
|
|
80
|
-
otpToken: "otp_token",
|
|
81
|
-
otpAction: "otp_action",
|
|
82
|
-
});
|
|
83
|
-
});
|
|
84
|
-
/**
|
|
85
|
-
* @internal
|
|
86
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
87
|
-
*/
|
|
88
|
-
export var VerifyPosLoginOtpRequestBody$;
|
|
89
|
-
(function (VerifyPosLoginOtpRequestBody$) {
|
|
90
|
-
/** @deprecated use `VerifyPosLoginOtpRequestBody$inboundSchema` instead. */
|
|
91
|
-
VerifyPosLoginOtpRequestBody$.inboundSchema = VerifyPosLoginOtpRequestBody$inboundSchema;
|
|
92
|
-
/** @deprecated use `VerifyPosLoginOtpRequestBody$outboundSchema` instead. */
|
|
93
|
-
VerifyPosLoginOtpRequestBody$.outboundSchema = VerifyPosLoginOtpRequestBody$outboundSchema;
|
|
94
|
-
})(VerifyPosLoginOtpRequestBody$ || (VerifyPosLoginOtpRequestBody$ = {}));
|
|
95
|
-
export function verifyPosLoginOtpRequestBodyToJSON(verifyPosLoginOtpRequestBody) {
|
|
96
|
-
return JSON.stringify(VerifyPosLoginOtpRequestBody$outboundSchema.parse(verifyPosLoginOtpRequestBody));
|
|
97
|
-
}
|
|
98
|
-
export function verifyPosLoginOtpRequestBodyFromJSON(jsonString) {
|
|
99
|
-
return safeParse(jsonString, (x) => VerifyPosLoginOtpRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VerifyPosLoginOtpRequestBody' from JSON`);
|
|
100
|
-
}
|
|
101
|
-
/** @internal */
|
|
102
|
-
export const VerifyPosLoginOtpContent$inboundSchema = z.object({
|
|
103
|
-
user: components.PosUser$inboundSchema,
|
|
104
|
-
access_token: z.string(),
|
|
105
|
-
refresh_token: z.string(),
|
|
106
|
-
}).transform((v) => {
|
|
107
|
-
return remap$(v, {
|
|
108
|
-
"access_token": "accessToken",
|
|
109
|
-
"refresh_token": "refreshToken",
|
|
110
|
-
});
|
|
111
|
-
});
|
|
112
|
-
/** @internal */
|
|
113
|
-
export const VerifyPosLoginOtpContent$outboundSchema = z.object({
|
|
114
|
-
user: components.PosUser$outboundSchema,
|
|
115
|
-
accessToken: z.string(),
|
|
116
|
-
refreshToken: z.string(),
|
|
117
|
-
}).transform((v) => {
|
|
118
|
-
return remap$(v, {
|
|
119
|
-
accessToken: "access_token",
|
|
120
|
-
refreshToken: "refresh_token",
|
|
121
|
-
});
|
|
122
|
-
});
|
|
123
|
-
/**
|
|
124
|
-
* @internal
|
|
125
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
126
|
-
*/
|
|
127
|
-
export var VerifyPosLoginOtpContent$;
|
|
128
|
-
(function (VerifyPosLoginOtpContent$) {
|
|
129
|
-
/** @deprecated use `VerifyPosLoginOtpContent$inboundSchema` instead. */
|
|
130
|
-
VerifyPosLoginOtpContent$.inboundSchema = VerifyPosLoginOtpContent$inboundSchema;
|
|
131
|
-
/** @deprecated use `VerifyPosLoginOtpContent$outboundSchema` instead. */
|
|
132
|
-
VerifyPosLoginOtpContent$.outboundSchema = VerifyPosLoginOtpContent$outboundSchema;
|
|
133
|
-
})(VerifyPosLoginOtpContent$ || (VerifyPosLoginOtpContent$ = {}));
|
|
134
|
-
export function verifyPosLoginOtpContentToJSON(verifyPosLoginOtpContent) {
|
|
135
|
-
return JSON.stringify(VerifyPosLoginOtpContent$outboundSchema.parse(verifyPosLoginOtpContent));
|
|
136
|
-
}
|
|
137
|
-
export function verifyPosLoginOtpContentFromJSON(jsonString) {
|
|
138
|
-
return safeParse(jsonString, (x) => VerifyPosLoginOtpContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VerifyPosLoginOtpContent' from JSON`);
|
|
139
|
-
}
|
|
140
|
-
/** @internal */
|
|
141
|
-
export const VerifyPosLoginOtpResponseBody$inboundSchema = z.object({
|
|
142
|
-
message: z.string(),
|
|
143
|
-
success: z.string(),
|
|
144
|
-
content: z.lazy(() => VerifyPosLoginOtpContent$inboundSchema),
|
|
145
|
-
});
|
|
146
|
-
/** @internal */
|
|
147
|
-
export const VerifyPosLoginOtpResponseBody$outboundSchema = z.object({
|
|
148
|
-
message: z.string(),
|
|
149
|
-
success: z.string(),
|
|
150
|
-
content: z.lazy(() => VerifyPosLoginOtpContent$outboundSchema),
|
|
151
|
-
});
|
|
152
|
-
/**
|
|
153
|
-
* @internal
|
|
154
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
155
|
-
*/
|
|
156
|
-
export var VerifyPosLoginOtpResponseBody$;
|
|
157
|
-
(function (VerifyPosLoginOtpResponseBody$) {
|
|
158
|
-
/** @deprecated use `VerifyPosLoginOtpResponseBody$inboundSchema` instead. */
|
|
159
|
-
VerifyPosLoginOtpResponseBody$.inboundSchema = VerifyPosLoginOtpResponseBody$inboundSchema;
|
|
160
|
-
/** @deprecated use `VerifyPosLoginOtpResponseBody$outboundSchema` instead. */
|
|
161
|
-
VerifyPosLoginOtpResponseBody$.outboundSchema = VerifyPosLoginOtpResponseBody$outboundSchema;
|
|
162
|
-
})(VerifyPosLoginOtpResponseBody$ || (VerifyPosLoginOtpResponseBody$ = {}));
|
|
163
|
-
export function verifyPosLoginOtpResponseBodyToJSON(verifyPosLoginOtpResponseBody) {
|
|
164
|
-
return JSON.stringify(VerifyPosLoginOtpResponseBody$outboundSchema.parse(verifyPosLoginOtpResponseBody));
|
|
165
|
-
}
|
|
166
|
-
export function verifyPosLoginOtpResponseBodyFromJSON(jsonString) {
|
|
167
|
-
return safeParse(jsonString, (x) => VerifyPosLoginOtpResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VerifyPosLoginOtpResponseBody' from JSON`);
|
|
168
|
-
}
|
|
169
|
-
//# sourceMappingURL=verifyposloginotp.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"verifyposloginotp.js","sourceRoot":"","sources":["../../../src/models/operations/verifyposloginotp.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;AAGjD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAOrD;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,KAAK,EAAE,OAAO;CACN,CAAC;AAsCX,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,WAAW,EAAE,SAAS;KACvB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAOH,gBAAgB;AAChB,MAAM,CAAC,MAAM,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,OAAO,EAAE,WAAW;KACrB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,0BAA0B,CAO1C;AAPD,WAAiB,0BAA0B;IACzC,yEAAyE;IAC5D,wCAAa,GAAG,uCAAuC,CAAC;IACrE,0EAA0E;IAC7D,yCAAc,GAAG,wCAAwC,CAAC;AAGzE,CAAC,EAPgB,0BAA0B,KAA1B,0BAA0B,QAO1C;AAED,MAAM,UAAU,+BAA+B,CAC7C,yBAAoD;IAEpD,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAw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