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.
Files changed (118) hide show
  1. package/README.md +2 -21
  2. package/esm/lib/config.d.ts +2 -2
  3. package/esm/lib/config.js +2 -2
  4. package/esm/models/components/index.d.ts +0 -2
  5. package/esm/models/components/index.d.ts.map +1 -1
  6. package/esm/models/components/index.js +0 -2
  7. package/esm/models/components/index.js.map +1 -1
  8. package/esm/models/operations/index.d.ts +0 -8
  9. package/esm/models/operations/index.d.ts.map +1 -1
  10. package/esm/models/operations/index.js +0 -8
  11. package/esm/models/operations/index.js.map +1 -1
  12. package/esm/sdk/sdk.d.ts +0 -3
  13. package/esm/sdk/sdk.d.ts.map +1 -1
  14. package/esm/sdk/sdk.js +0 -4
  15. package/esm/sdk/sdk.js.map +1 -1
  16. package/examples/package-lock.json +1 -1
  17. package/jsr.json +1 -1
  18. package/package.json +1 -1
  19. package/src/lib/config.ts +2 -2
  20. package/src/models/components/index.ts +0 -2
  21. package/src/models/operations/index.ts +0 -8
  22. package/src/sdk/sdk.ts +0 -6
  23. package/docs/sdks/pos/README.md +0 -610
  24. package/esm/funcs/posCreatePosCart.d.ts +0 -17
  25. package/esm/funcs/posCreatePosCart.d.ts.map +0 -1
  26. package/esm/funcs/posCreatePosCart.js +0 -80
  27. package/esm/funcs/posCreatePosCart.js.map +0 -1
  28. package/esm/funcs/posLoginPosDeviceWithEmail.d.ts +0 -17
  29. package/esm/funcs/posLoginPosDeviceWithEmail.d.ts.map +0 -1
  30. package/esm/funcs/posLoginPosDeviceWithEmail.js +0 -85
  31. package/esm/funcs/posLoginPosDeviceWithEmail.js.map +0 -1
  32. package/esm/funcs/posLoginPosDeviceWithPhone.d.ts +0 -17
  33. package/esm/funcs/posLoginPosDeviceWithPhone.d.ts.map +0 -1
  34. package/esm/funcs/posLoginPosDeviceWithPhone.js +0 -85
  35. package/esm/funcs/posLoginPosDeviceWithPhone.js.map +0 -1
  36. package/esm/funcs/posLoginPosDeviceWithWhatsapp.d.ts +0 -17
  37. package/esm/funcs/posLoginPosDeviceWithWhatsapp.d.ts.map +0 -1
  38. package/esm/funcs/posLoginPosDeviceWithWhatsapp.js +0 -85
  39. package/esm/funcs/posLoginPosDeviceWithWhatsapp.js.map +0 -1
  40. package/esm/funcs/posPairPosDevice.d.ts +0 -17
  41. package/esm/funcs/posPairPosDevice.d.ts.map +0 -1
  42. package/esm/funcs/posPairPosDevice.js +0 -84
  43. package/esm/funcs/posPairPosDevice.js.map +0 -1
  44. package/esm/funcs/posRefreshPosAccessToken.d.ts +0 -17
  45. package/esm/funcs/posRefreshPosAccessToken.d.ts.map +0 -1
  46. package/esm/funcs/posRefreshPosAccessToken.js +0 -81
  47. package/esm/funcs/posRefreshPosAccessToken.js.map +0 -1
  48. package/esm/funcs/posUpdatePosCart.d.ts +0 -17
  49. package/esm/funcs/posUpdatePosCart.d.ts.map +0 -1
  50. package/esm/funcs/posUpdatePosCart.js +0 -84
  51. package/esm/funcs/posUpdatePosCart.js.map +0 -1
  52. package/esm/funcs/posVerifyPosLoginOtp.d.ts +0 -17
  53. package/esm/funcs/posVerifyPosLoginOtp.d.ts.map +0 -1
  54. package/esm/funcs/posVerifyPosLoginOtp.js +0 -84
  55. package/esm/funcs/posVerifyPosLoginOtp.js.map +0 -1
  56. package/esm/models/components/posdevice.d.ts +0 -71
  57. package/esm/models/components/posdevice.d.ts.map +0 -1
  58. package/esm/models/components/posdevice.js +0 -85
  59. package/esm/models/components/posdevice.js.map +0 -1
  60. package/esm/models/components/posuser.d.ts +0 -124
  61. package/esm/models/components/posuser.d.ts.map +0 -1
  62. package/esm/models/components/posuser.js +0 -139
  63. package/esm/models/components/posuser.js.map +0 -1
  64. package/esm/models/operations/createposcart.d.ts +0 -90
  65. package/esm/models/operations/createposcart.d.ts.map +0 -1
  66. package/esm/models/operations/createposcart.js +0 -86
  67. package/esm/models/operations/createposcart.js.map +0 -1
  68. package/esm/models/operations/loginposdevicewithemail.d.ts +0 -138
  69. package/esm/models/operations/loginposdevicewithemail.d.ts.map +0 -1
  70. package/esm/models/operations/loginposdevicewithemail.js +0 -159
  71. package/esm/models/operations/loginposdevicewithemail.js.map +0 -1
  72. package/esm/models/operations/loginposdevicewithphone.d.ts +0 -146
  73. package/esm/models/operations/loginposdevicewithphone.d.ts.map +0 -1
  74. package/esm/models/operations/loginposdevicewithphone.js +0 -163
  75. package/esm/models/operations/loginposdevicewithphone.js.map +0 -1
  76. package/esm/models/operations/loginposdevicewithwhatsapp.d.ts +0 -146
  77. package/esm/models/operations/loginposdevicewithwhatsapp.d.ts.map +0 -1
  78. package/esm/models/operations/loginposdevicewithwhatsapp.js +0 -163
  79. package/esm/models/operations/loginposdevicewithwhatsapp.js.map +0 -1
  80. package/esm/models/operations/pairposdevice.d.ts +0 -112
  81. package/esm/models/operations/pairposdevice.d.ts.map +0 -1
  82. package/esm/models/operations/pairposdevice.js +0 -128
  83. package/esm/models/operations/pairposdevice.js.map +0 -1
  84. package/esm/models/operations/refreshposaccesstoken.d.ts +0 -88
  85. package/esm/models/operations/refreshposaccesstoken.d.ts.map +0 -1
  86. package/esm/models/operations/refreshposaccesstoken.js +0 -106
  87. package/esm/models/operations/refreshposaccesstoken.js.map +0 -1
  88. package/esm/models/operations/updateposcart.d.ts +0 -120
  89. package/esm/models/operations/updateposcart.d.ts.map +0 -1
  90. package/esm/models/operations/updateposcart.js +0 -122
  91. package/esm/models/operations/updateposcart.js.map +0 -1
  92. package/esm/models/operations/verifyposloginotp.d.ts +0 -158
  93. package/esm/models/operations/verifyposloginotp.d.ts.map +0 -1
  94. package/esm/models/operations/verifyposloginotp.js +0 -169
  95. package/esm/models/operations/verifyposloginotp.js.map +0 -1
  96. package/esm/sdk/pos.d.ts +0 -61
  97. package/esm/sdk/pos.d.ts.map +0 -1
  98. package/esm/sdk/pos.js +0 -88
  99. package/esm/sdk/pos.js.map +0 -1
  100. package/src/funcs/posCreatePosCart.ts +0 -165
  101. package/src/funcs/posLoginPosDeviceWithEmail.ts +0 -173
  102. package/src/funcs/posLoginPosDeviceWithPhone.ts +0 -173
  103. package/src/funcs/posLoginPosDeviceWithWhatsapp.ts +0 -176
  104. package/src/funcs/posPairPosDevice.ts +0 -174
  105. package/src/funcs/posRefreshPosAccessToken.ts +0 -164
  106. package/src/funcs/posUpdatePosCart.ts +0 -167
  107. package/src/funcs/posVerifyPosLoginOtp.ts +0 -174
  108. package/src/models/components/posdevice.ts +0 -141
  109. package/src/models/components/posuser.ts +0 -263
  110. package/src/models/operations/createposcart.ts +0 -197
  111. package/src/models/operations/loginposdevicewithemail.ts +0 -328
  112. package/src/models/operations/loginposdevicewithphone.ts +0 -340
  113. package/src/models/operations/loginposdevicewithwhatsapp.ts +0 -347
  114. package/src/models/operations/pairposdevice.ts +0 -269
  115. package/src/models/operations/refreshposaccesstoken.ts +0 -223
  116. package/src/models/operations/updateposcart.ts +0 -271
  117. package/src/models/operations/verifyposloginotp.ts +0 -345
  118. package/src/sdk/pos.ts +0 -163
@@ -1,197 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../../types/fp.js";
8
- import * as components from "../components/index.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
-
11
- export type CreatePosCartRequestBody = {
12
- items?: Array<components.UpdateCartItem> | undefined;
13
- };
14
-
15
- export type CreatePosCartContent = {
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
- /**
23
- * OK
24
- */
25
- export type CreatePosCartResponseBody = {
26
- message?: string | undefined;
27
- success?: string | undefined;
28
- content?: CreatePosCartContent | undefined;
29
- };
30
-
31
- /** @internal */
32
- export const CreatePosCartRequestBody$inboundSchema: z.ZodType<
33
- CreatePosCartRequestBody,
34
- z.ZodTypeDef,
35
- unknown
36
- > = z.object({
37
- items: z.array(components.UpdateCartItem$inboundSchema).optional(),
38
- });
39
-
40
- /** @internal */
41
- export type CreatePosCartRequestBody$Outbound = {
42
- items?: Array<components.UpdateCartItem$Outbound> | undefined;
43
- };
44
-
45
- /** @internal */
46
- export const CreatePosCartRequestBody$outboundSchema: z.ZodType<
47
- CreatePosCartRequestBody$Outbound,
48
- z.ZodTypeDef,
49
- CreatePosCartRequestBody
50
- > = z.object({
51
- items: z.array(components.UpdateCartItem$outboundSchema).optional(),
52
- });
53
-
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 namespace CreatePosCartRequestBody$ {
59
- /** @deprecated use `CreatePosCartRequestBody$inboundSchema` instead. */
60
- export const inboundSchema = CreatePosCartRequestBody$inboundSchema;
61
- /** @deprecated use `CreatePosCartRequestBody$outboundSchema` instead. */
62
- export const outboundSchema = CreatePosCartRequestBody$outboundSchema;
63
- /** @deprecated use `CreatePosCartRequestBody$Outbound` instead. */
64
- export type Outbound = CreatePosCartRequestBody$Outbound;
65
- }
66
-
67
- export function createPosCartRequestBodyToJSON(
68
- createPosCartRequestBody: CreatePosCartRequestBody,
69
- ): string {
70
- return JSON.stringify(
71
- CreatePosCartRequestBody$outboundSchema.parse(createPosCartRequestBody),
72
- );
73
- }
74
-
75
- export function createPosCartRequestBodyFromJSON(
76
- jsonString: string,
77
- ): SafeParseResult<CreatePosCartRequestBody, SDKValidationError> {
78
- return safeParse(
79
- jsonString,
80
- (x) => CreatePosCartRequestBody$inboundSchema.parse(JSON.parse(x)),
81
- `Failed to parse 'CreatePosCartRequestBody' from JSON`,
82
- );
83
- }
84
-
85
- /** @internal */
86
- export const CreatePosCartContent$inboundSchema: z.ZodType<
87
- CreatePosCartContent,
88
- z.ZodTypeDef,
89
- unknown
90
- > = z.object({
91
- cart: components.Cart$inboundSchema.optional(),
92
- });
93
-
94
- /** @internal */
95
- export type CreatePosCartContent$Outbound = {
96
- cart?: components.Cart$Outbound | undefined;
97
- };
98
-
99
- /** @internal */
100
- export const CreatePosCartContent$outboundSchema: z.ZodType<
101
- CreatePosCartContent$Outbound,
102
- z.ZodTypeDef,
103
- CreatePosCartContent
104
- > = z.object({
105
- cart: components.Cart$outboundSchema.optional(),
106
- });
107
-
108
- /**
109
- * @internal
110
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
111
- */
112
- export namespace CreatePosCartContent$ {
113
- /** @deprecated use `CreatePosCartContent$inboundSchema` instead. */
114
- export const inboundSchema = CreatePosCartContent$inboundSchema;
115
- /** @deprecated use `CreatePosCartContent$outboundSchema` instead. */
116
- export const outboundSchema = CreatePosCartContent$outboundSchema;
117
- /** @deprecated use `CreatePosCartContent$Outbound` instead. */
118
- export type Outbound = CreatePosCartContent$Outbound;
119
- }
120
-
121
- export function createPosCartContentToJSON(
122
- createPosCartContent: CreatePosCartContent,
123
- ): string {
124
- return JSON.stringify(
125
- CreatePosCartContent$outboundSchema.parse(createPosCartContent),
126
- );
127
- }
128
-
129
- export function createPosCartContentFromJSON(
130
- jsonString: string,
131
- ): SafeParseResult<CreatePosCartContent, SDKValidationError> {
132
- return safeParse(
133
- jsonString,
134
- (x) => CreatePosCartContent$inboundSchema.parse(JSON.parse(x)),
135
- `Failed to parse 'CreatePosCartContent' from JSON`,
136
- );
137
- }
138
-
139
- /** @internal */
140
- export const CreatePosCartResponseBody$inboundSchema: z.ZodType<
141
- CreatePosCartResponseBody,
142
- z.ZodTypeDef,
143
- unknown
144
- > = z.object({
145
- message: z.string().optional(),
146
- success: z.string().optional(),
147
- content: z.lazy(() => CreatePosCartContent$inboundSchema).optional(),
148
- });
149
-
150
- /** @internal */
151
- export type CreatePosCartResponseBody$Outbound = {
152
- message?: string | undefined;
153
- success?: string | undefined;
154
- content?: CreatePosCartContent$Outbound | undefined;
155
- };
156
-
157
- /** @internal */
158
- export const CreatePosCartResponseBody$outboundSchema: z.ZodType<
159
- CreatePosCartResponseBody$Outbound,
160
- z.ZodTypeDef,
161
- CreatePosCartResponseBody
162
- > = z.object({
163
- message: z.string().optional(),
164
- success: z.string().optional(),
165
- content: z.lazy(() => CreatePosCartContent$outboundSchema).optional(),
166
- });
167
-
168
- /**
169
- * @internal
170
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
171
- */
172
- export namespace CreatePosCartResponseBody$ {
173
- /** @deprecated use `CreatePosCartResponseBody$inboundSchema` instead. */
174
- export const inboundSchema = CreatePosCartResponseBody$inboundSchema;
175
- /** @deprecated use `CreatePosCartResponseBody$outboundSchema` instead. */
176
- export const outboundSchema = CreatePosCartResponseBody$outboundSchema;
177
- /** @deprecated use `CreatePosCartResponseBody$Outbound` instead. */
178
- export type Outbound = CreatePosCartResponseBody$Outbound;
179
- }
180
-
181
- export function createPosCartResponseBodyToJSON(
182
- createPosCartResponseBody: CreatePosCartResponseBody,
183
- ): string {
184
- return JSON.stringify(
185
- CreatePosCartResponseBody$outboundSchema.parse(createPosCartResponseBody),
186
- );
187
- }
188
-
189
- export function createPosCartResponseBodyFromJSON(
190
- jsonString: string,
191
- ): SafeParseResult<CreatePosCartResponseBody, SDKValidationError> {
192
- return safeParse(
193
- jsonString,
194
- (x) => CreatePosCartResponseBody$inboundSchema.parse(JSON.parse(x)),
195
- `Failed to parse 'CreatePosCartResponseBody' from JSON`,
196
- );
197
- }
@@ -1,328 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
- import { Result as SafeParseResult } from "../../types/fp.js";
10
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
-
12
- export type LoginPosDeviceWithEmailSecurity = {
13
- xApiKey: string;
14
- };
15
-
16
- export type LoginPosDeviceWithEmailRequestBody = {
17
- deviceId: string;
18
- email: string;
19
- };
20
-
21
- export const LoginPosDeviceWithEmailOtpAction = {
22
- Login: "login",
23
- } as const;
24
- export type LoginPosDeviceWithEmailOtpAction = ClosedEnum<
25
- typeof LoginPosDeviceWithEmailOtpAction
26
- >;
27
-
28
- export type LoginPosDeviceWithEmailContent = {
29
- otpToken: string;
30
- otpAction: LoginPosDeviceWithEmailOtpAction;
31
- };
32
-
33
- /**
34
- * OK
35
- */
36
- export type LoginPosDeviceWithEmailResponseBody = {
37
- message: string;
38
- success: string;
39
- content: LoginPosDeviceWithEmailContent;
40
- };
41
-
42
- /** @internal */
43
- export const LoginPosDeviceWithEmailSecurity$inboundSchema: z.ZodType<
44
- LoginPosDeviceWithEmailSecurity,
45
- z.ZodTypeDef,
46
- unknown
47
- > = z.object({
48
- "X-Api-Key": z.string(),
49
- }).transform((v) => {
50
- return remap$(v, {
51
- "X-Api-Key": "xApiKey",
52
- });
53
- });
54
-
55
- /** @internal */
56
- export type LoginPosDeviceWithEmailSecurity$Outbound = {
57
- "X-Api-Key": string;
58
- };
59
-
60
- /** @internal */
61
- export const LoginPosDeviceWithEmailSecurity$outboundSchema: z.ZodType<
62
- LoginPosDeviceWithEmailSecurity$Outbound,
63
- z.ZodTypeDef,
64
- LoginPosDeviceWithEmailSecurity
65
- > = z.object({
66
- xApiKey: z.string(),
67
- }).transform((v) => {
68
- return remap$(v, {
69
- xApiKey: "X-Api-Key",
70
- });
71
- });
72
-
73
- /**
74
- * @internal
75
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
76
- */
77
- export namespace LoginPosDeviceWithEmailSecurity$ {
78
- /** @deprecated use `LoginPosDeviceWithEmailSecurity$inboundSchema` instead. */
79
- export const inboundSchema = LoginPosDeviceWithEmailSecurity$inboundSchema;
80
- /** @deprecated use `LoginPosDeviceWithEmailSecurity$outboundSchema` instead. */
81
- export const outboundSchema = LoginPosDeviceWithEmailSecurity$outboundSchema;
82
- /** @deprecated use `LoginPosDeviceWithEmailSecurity$Outbound` instead. */
83
- export type Outbound = LoginPosDeviceWithEmailSecurity$Outbound;
84
- }
85
-
86
- export function loginPosDeviceWithEmailSecurityToJSON(
87
- loginPosDeviceWithEmailSecurity: LoginPosDeviceWithEmailSecurity,
88
- ): string {
89
- return JSON.stringify(
90
- LoginPosDeviceWithEmailSecurity$outboundSchema.parse(
91
- loginPosDeviceWithEmailSecurity,
92
- ),
93
- );
94
- }
95
-
96
- export function loginPosDeviceWithEmailSecurityFromJSON(
97
- jsonString: string,
98
- ): SafeParseResult<LoginPosDeviceWithEmailSecurity, SDKValidationError> {
99
- return safeParse(
100
- jsonString,
101
- (x) => LoginPosDeviceWithEmailSecurity$inboundSchema.parse(JSON.parse(x)),
102
- `Failed to parse 'LoginPosDeviceWithEmailSecurity' from JSON`,
103
- );
104
- }
105
-
106
- /** @internal */
107
- export const LoginPosDeviceWithEmailRequestBody$inboundSchema: z.ZodType<
108
- LoginPosDeviceWithEmailRequestBody,
109
- z.ZodTypeDef,
110
- unknown
111
- > = z.object({
112
- device_id: z.string(),
113
- email: z.string(),
114
- }).transform((v) => {
115
- return remap$(v, {
116
- "device_id": "deviceId",
117
- });
118
- });
119
-
120
- /** @internal */
121
- export type LoginPosDeviceWithEmailRequestBody$Outbound = {
122
- device_id: string;
123
- email: string;
124
- };
125
-
126
- /** @internal */
127
- export const LoginPosDeviceWithEmailRequestBody$outboundSchema: z.ZodType<
128
- LoginPosDeviceWithEmailRequestBody$Outbound,
129
- z.ZodTypeDef,
130
- LoginPosDeviceWithEmailRequestBody
131
- > = z.object({
132
- deviceId: z.string(),
133
- email: z.string(),
134
- }).transform((v) => {
135
- return remap$(v, {
136
- deviceId: "device_id",
137
- });
138
- });
139
-
140
- /**
141
- * @internal
142
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
143
- */
144
- export namespace LoginPosDeviceWithEmailRequestBody$ {
145
- /** @deprecated use `LoginPosDeviceWithEmailRequestBody$inboundSchema` instead. */
146
- export const inboundSchema = LoginPosDeviceWithEmailRequestBody$inboundSchema;
147
- /** @deprecated use `LoginPosDeviceWithEmailRequestBody$outboundSchema` instead. */
148
- export const outboundSchema =
149
- LoginPosDeviceWithEmailRequestBody$outboundSchema;
150
- /** @deprecated use `LoginPosDeviceWithEmailRequestBody$Outbound` instead. */
151
- export type Outbound = LoginPosDeviceWithEmailRequestBody$Outbound;
152
- }
153
-
154
- export function loginPosDeviceWithEmailRequestBodyToJSON(
155
- loginPosDeviceWithEmailRequestBody: LoginPosDeviceWithEmailRequestBody,
156
- ): string {
157
- return JSON.stringify(
158
- LoginPosDeviceWithEmailRequestBody$outboundSchema.parse(
159
- loginPosDeviceWithEmailRequestBody,
160
- ),
161
- );
162
- }
163
-
164
- export function loginPosDeviceWithEmailRequestBodyFromJSON(
165
- jsonString: string,
166
- ): SafeParseResult<LoginPosDeviceWithEmailRequestBody, SDKValidationError> {
167
- return safeParse(
168
- jsonString,
169
- (x) =>
170
- LoginPosDeviceWithEmailRequestBody$inboundSchema.parse(JSON.parse(x)),
171
- `Failed to parse 'LoginPosDeviceWithEmailRequestBody' from JSON`,
172
- );
173
- }
174
-
175
- /** @internal */
176
- export const LoginPosDeviceWithEmailOtpAction$inboundSchema: z.ZodNativeEnum<
177
- typeof LoginPosDeviceWithEmailOtpAction
178
- > = z.nativeEnum(LoginPosDeviceWithEmailOtpAction);
179
-
180
- /** @internal */
181
- export const LoginPosDeviceWithEmailOtpAction$outboundSchema: z.ZodNativeEnum<
182
- typeof LoginPosDeviceWithEmailOtpAction
183
- > = LoginPosDeviceWithEmailOtpAction$inboundSchema;
184
-
185
- /**
186
- * @internal
187
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
188
- */
189
- export namespace LoginPosDeviceWithEmailOtpAction$ {
190
- /** @deprecated use `LoginPosDeviceWithEmailOtpAction$inboundSchema` instead. */
191
- export const inboundSchema = LoginPosDeviceWithEmailOtpAction$inboundSchema;
192
- /** @deprecated use `LoginPosDeviceWithEmailOtpAction$outboundSchema` instead. */
193
- export const outboundSchema = LoginPosDeviceWithEmailOtpAction$outboundSchema;
194
- }
195
-
196
- /** @internal */
197
- export const LoginPosDeviceWithEmailContent$inboundSchema: z.ZodType<
198
- LoginPosDeviceWithEmailContent,
199
- z.ZodTypeDef,
200
- unknown
201
- > = z.object({
202
- otp_token: z.string(),
203
- otp_action: LoginPosDeviceWithEmailOtpAction$inboundSchema,
204
- }).transform((v) => {
205
- return remap$(v, {
206
- "otp_token": "otpToken",
207
- "otp_action": "otpAction",
208
- });
209
- });
210
-
211
- /** @internal */
212
- export type LoginPosDeviceWithEmailContent$Outbound = {
213
- otp_token: string;
214
- otp_action: string;
215
- };
216
-
217
- /** @internal */
218
- export const LoginPosDeviceWithEmailContent$outboundSchema: z.ZodType<
219
- LoginPosDeviceWithEmailContent$Outbound,
220
- z.ZodTypeDef,
221
- LoginPosDeviceWithEmailContent
222
- > = z.object({
223
- otpToken: z.string(),
224
- otpAction: LoginPosDeviceWithEmailOtpAction$outboundSchema,
225
- }).transform((v) => {
226
- return remap$(v, {
227
- otpToken: "otp_token",
228
- otpAction: "otp_action",
229
- });
230
- });
231
-
232
- /**
233
- * @internal
234
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
235
- */
236
- export namespace LoginPosDeviceWithEmailContent$ {
237
- /** @deprecated use `LoginPosDeviceWithEmailContent$inboundSchema` instead. */
238
- export const inboundSchema = LoginPosDeviceWithEmailContent$inboundSchema;
239
- /** @deprecated use `LoginPosDeviceWithEmailContent$outboundSchema` instead. */
240
- export const outboundSchema = LoginPosDeviceWithEmailContent$outboundSchema;
241
- /** @deprecated use `LoginPosDeviceWithEmailContent$Outbound` instead. */
242
- export type Outbound = LoginPosDeviceWithEmailContent$Outbound;
243
- }
244
-
245
- export function loginPosDeviceWithEmailContentToJSON(
246
- loginPosDeviceWithEmailContent: LoginPosDeviceWithEmailContent,
247
- ): string {
248
- return JSON.stringify(
249
- LoginPosDeviceWithEmailContent$outboundSchema.parse(
250
- loginPosDeviceWithEmailContent,
251
- ),
252
- );
253
- }
254
-
255
- export function loginPosDeviceWithEmailContentFromJSON(
256
- jsonString: string,
257
- ): SafeParseResult<LoginPosDeviceWithEmailContent, SDKValidationError> {
258
- return safeParse(
259
- jsonString,
260
- (x) => LoginPosDeviceWithEmailContent$inboundSchema.parse(JSON.parse(x)),
261
- `Failed to parse 'LoginPosDeviceWithEmailContent' from JSON`,
262
- );
263
- }
264
-
265
- /** @internal */
266
- export const LoginPosDeviceWithEmailResponseBody$inboundSchema: z.ZodType<
267
- LoginPosDeviceWithEmailResponseBody,
268
- z.ZodTypeDef,
269
- unknown
270
- > = z.object({
271
- message: z.string(),
272
- success: z.string(),
273
- content: z.lazy(() => LoginPosDeviceWithEmailContent$inboundSchema),
274
- });
275
-
276
- /** @internal */
277
- export type LoginPosDeviceWithEmailResponseBody$Outbound = {
278
- message: string;
279
- success: string;
280
- content: LoginPosDeviceWithEmailContent$Outbound;
281
- };
282
-
283
- /** @internal */
284
- export const LoginPosDeviceWithEmailResponseBody$outboundSchema: z.ZodType<
285
- LoginPosDeviceWithEmailResponseBody$Outbound,
286
- z.ZodTypeDef,
287
- LoginPosDeviceWithEmailResponseBody
288
- > = z.object({
289
- message: z.string(),
290
- success: z.string(),
291
- content: z.lazy(() => LoginPosDeviceWithEmailContent$outboundSchema),
292
- });
293
-
294
- /**
295
- * @internal
296
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
297
- */
298
- export namespace LoginPosDeviceWithEmailResponseBody$ {
299
- /** @deprecated use `LoginPosDeviceWithEmailResponseBody$inboundSchema` instead. */
300
- export const inboundSchema =
301
- LoginPosDeviceWithEmailResponseBody$inboundSchema;
302
- /** @deprecated use `LoginPosDeviceWithEmailResponseBody$outboundSchema` instead. */
303
- export const outboundSchema =
304
- LoginPosDeviceWithEmailResponseBody$outboundSchema;
305
- /** @deprecated use `LoginPosDeviceWithEmailResponseBody$Outbound` instead. */
306
- export type Outbound = LoginPosDeviceWithEmailResponseBody$Outbound;
307
- }
308
-
309
- export function loginPosDeviceWithEmailResponseBodyToJSON(
310
- loginPosDeviceWithEmailResponseBody: LoginPosDeviceWithEmailResponseBody,
311
- ): string {
312
- return JSON.stringify(
313
- LoginPosDeviceWithEmailResponseBody$outboundSchema.parse(
314
- loginPosDeviceWithEmailResponseBody,
315
- ),
316
- );
317
- }
318
-
319
- export function loginPosDeviceWithEmailResponseBodyFromJSON(
320
- jsonString: string,
321
- ): SafeParseResult<LoginPosDeviceWithEmailResponseBody, SDKValidationError> {
322
- return safeParse(
323
- jsonString,
324
- (x) =>
325
- LoginPosDeviceWithEmailResponseBody$inboundSchema.parse(JSON.parse(x)),
326
- `Failed to parse 'LoginPosDeviceWithEmailResponseBody' from JSON`,
327
- );
328
- }