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,340 +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 LoginPosDeviceWithPhoneSecurity = {
|
|
13
|
-
xApiKey: string;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export type LoginPosDeviceWithPhoneRequestBody = {
|
|
17
|
-
deviceId: string;
|
|
18
|
-
/**
|
|
19
|
-
* 10 digit phone number without country code.
|
|
20
|
-
*/
|
|
21
|
-
phone: string;
|
|
22
|
-
/**
|
|
23
|
-
* Two-letter code begin with a plus sign prefix that identifies different countries. By default it will be +91 if not provided.
|
|
24
|
-
*/
|
|
25
|
-
countryCode?: string | undefined;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export const LoginPosDeviceWithPhoneOtpAction = {
|
|
29
|
-
Login: "login",
|
|
30
|
-
} as const;
|
|
31
|
-
export type LoginPosDeviceWithPhoneOtpAction = ClosedEnum<
|
|
32
|
-
typeof LoginPosDeviceWithPhoneOtpAction
|
|
33
|
-
>;
|
|
34
|
-
|
|
35
|
-
export type LoginPosDeviceWithPhoneContent = {
|
|
36
|
-
otpToken: string;
|
|
37
|
-
otpAction: LoginPosDeviceWithPhoneOtpAction;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* OK
|
|
42
|
-
*/
|
|
43
|
-
export type LoginPosDeviceWithPhoneResponseBody = {
|
|
44
|
-
message: string;
|
|
45
|
-
success: string;
|
|
46
|
-
content: LoginPosDeviceWithPhoneContent;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
/** @internal */
|
|
50
|
-
export const LoginPosDeviceWithPhoneSecurity$inboundSchema: z.ZodType<
|
|
51
|
-
LoginPosDeviceWithPhoneSecurity,
|
|
52
|
-
z.ZodTypeDef,
|
|
53
|
-
unknown
|
|
54
|
-
> = z.object({
|
|
55
|
-
"X-Api-Key": z.string(),
|
|
56
|
-
}).transform((v) => {
|
|
57
|
-
return remap$(v, {
|
|
58
|
-
"X-Api-Key": "xApiKey",
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
/** @internal */
|
|
63
|
-
export type LoginPosDeviceWithPhoneSecurity$Outbound = {
|
|
64
|
-
"X-Api-Key": string;
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
/** @internal */
|
|
68
|
-
export const LoginPosDeviceWithPhoneSecurity$outboundSchema: z.ZodType<
|
|
69
|
-
LoginPosDeviceWithPhoneSecurity$Outbound,
|
|
70
|
-
z.ZodTypeDef,
|
|
71
|
-
LoginPosDeviceWithPhoneSecurity
|
|
72
|
-
> = z.object({
|
|
73
|
-
xApiKey: z.string(),
|
|
74
|
-
}).transform((v) => {
|
|
75
|
-
return remap$(v, {
|
|
76
|
-
xApiKey: "X-Api-Key",
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* @internal
|
|
82
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
83
|
-
*/
|
|
84
|
-
export namespace LoginPosDeviceWithPhoneSecurity$ {
|
|
85
|
-
/** @deprecated use `LoginPosDeviceWithPhoneSecurity$inboundSchema` instead. */
|
|
86
|
-
export const inboundSchema = LoginPosDeviceWithPhoneSecurity$inboundSchema;
|
|
87
|
-
/** @deprecated use `LoginPosDeviceWithPhoneSecurity$outboundSchema` instead. */
|
|
88
|
-
export const outboundSchema = LoginPosDeviceWithPhoneSecurity$outboundSchema;
|
|
89
|
-
/** @deprecated use `LoginPosDeviceWithPhoneSecurity$Outbound` instead. */
|
|
90
|
-
export type Outbound = LoginPosDeviceWithPhoneSecurity$Outbound;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export function loginPosDeviceWithPhoneSecurityToJSON(
|
|
94
|
-
loginPosDeviceWithPhoneSecurity: LoginPosDeviceWithPhoneSecurity,
|
|
95
|
-
): string {
|
|
96
|
-
return JSON.stringify(
|
|
97
|
-
LoginPosDeviceWithPhoneSecurity$outboundSchema.parse(
|
|
98
|
-
loginPosDeviceWithPhoneSecurity,
|
|
99
|
-
),
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export function loginPosDeviceWithPhoneSecurityFromJSON(
|
|
104
|
-
jsonString: string,
|
|
105
|
-
): SafeParseResult<LoginPosDeviceWithPhoneSecurity, SDKValidationError> {
|
|
106
|
-
return safeParse(
|
|
107
|
-
jsonString,
|
|
108
|
-
(x) => LoginPosDeviceWithPhoneSecurity$inboundSchema.parse(JSON.parse(x)),
|
|
109
|
-
`Failed to parse 'LoginPosDeviceWithPhoneSecurity' from JSON`,
|
|
110
|
-
);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/** @internal */
|
|
114
|
-
export const LoginPosDeviceWithPhoneRequestBody$inboundSchema: z.ZodType<
|
|
115
|
-
LoginPosDeviceWithPhoneRequestBody,
|
|
116
|
-
z.ZodTypeDef,
|
|
117
|
-
unknown
|
|
118
|
-
> = z.object({
|
|
119
|
-
device_id: z.string(),
|
|
120
|
-
phone: z.string(),
|
|
121
|
-
country_code: z.string().default("+91"),
|
|
122
|
-
}).transform((v) => {
|
|
123
|
-
return remap$(v, {
|
|
124
|
-
"device_id": "deviceId",
|
|
125
|
-
"country_code": "countryCode",
|
|
126
|
-
});
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
/** @internal */
|
|
130
|
-
export type LoginPosDeviceWithPhoneRequestBody$Outbound = {
|
|
131
|
-
device_id: string;
|
|
132
|
-
phone: string;
|
|
133
|
-
country_code: string;
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
/** @internal */
|
|
137
|
-
export const LoginPosDeviceWithPhoneRequestBody$outboundSchema: z.ZodType<
|
|
138
|
-
LoginPosDeviceWithPhoneRequestBody$Outbound,
|
|
139
|
-
z.ZodTypeDef,
|
|
140
|
-
LoginPosDeviceWithPhoneRequestBody
|
|
141
|
-
> = z.object({
|
|
142
|
-
deviceId: z.string(),
|
|
143
|
-
phone: z.string(),
|
|
144
|
-
countryCode: z.string().default("+91"),
|
|
145
|
-
}).transform((v) => {
|
|
146
|
-
return remap$(v, {
|
|
147
|
-
deviceId: "device_id",
|
|
148
|
-
countryCode: "country_code",
|
|
149
|
-
});
|
|
150
|
-
});
|
|
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 namespace LoginPosDeviceWithPhoneRequestBody$ {
|
|
157
|
-
/** @deprecated use `LoginPosDeviceWithPhoneRequestBody$inboundSchema` instead. */
|
|
158
|
-
export const inboundSchema = LoginPosDeviceWithPhoneRequestBody$inboundSchema;
|
|
159
|
-
/** @deprecated use `LoginPosDeviceWithPhoneRequestBody$outboundSchema` instead. */
|
|
160
|
-
export const outboundSchema =
|
|
161
|
-
LoginPosDeviceWithPhoneRequestBody$outboundSchema;
|
|
162
|
-
/** @deprecated use `LoginPosDeviceWithPhoneRequestBody$Outbound` instead. */
|
|
163
|
-
export type Outbound = LoginPosDeviceWithPhoneRequestBody$Outbound;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export function loginPosDeviceWithPhoneRequestBodyToJSON(
|
|
167
|
-
loginPosDeviceWithPhoneRequestBody: LoginPosDeviceWithPhoneRequestBody,
|
|
168
|
-
): string {
|
|
169
|
-
return JSON.stringify(
|
|
170
|
-
LoginPosDeviceWithPhoneRequestBody$outboundSchema.parse(
|
|
171
|
-
loginPosDeviceWithPhoneRequestBody,
|
|
172
|
-
),
|
|
173
|
-
);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
export function loginPosDeviceWithPhoneRequestBodyFromJSON(
|
|
177
|
-
jsonString: string,
|
|
178
|
-
): SafeParseResult<LoginPosDeviceWithPhoneRequestBody, SDKValidationError> {
|
|
179
|
-
return safeParse(
|
|
180
|
-
jsonString,
|
|
181
|
-
(x) =>
|
|
182
|
-
LoginPosDeviceWithPhoneRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
183
|
-
`Failed to parse 'LoginPosDeviceWithPhoneRequestBody' from JSON`,
|
|
184
|
-
);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/** @internal */
|
|
188
|
-
export const LoginPosDeviceWithPhoneOtpAction$inboundSchema: z.ZodNativeEnum<
|
|
189
|
-
typeof LoginPosDeviceWithPhoneOtpAction
|
|
190
|
-
> = z.nativeEnum(LoginPosDeviceWithPhoneOtpAction);
|
|
191
|
-
|
|
192
|
-
/** @internal */
|
|
193
|
-
export const LoginPosDeviceWithPhoneOtpAction$outboundSchema: z.ZodNativeEnum<
|
|
194
|
-
typeof LoginPosDeviceWithPhoneOtpAction
|
|
195
|
-
> = LoginPosDeviceWithPhoneOtpAction$inboundSchema;
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* @internal
|
|
199
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
200
|
-
*/
|
|
201
|
-
export namespace LoginPosDeviceWithPhoneOtpAction$ {
|
|
202
|
-
/** @deprecated use `LoginPosDeviceWithPhoneOtpAction$inboundSchema` instead. */
|
|
203
|
-
export const inboundSchema = LoginPosDeviceWithPhoneOtpAction$inboundSchema;
|
|
204
|
-
/** @deprecated use `LoginPosDeviceWithPhoneOtpAction$outboundSchema` instead. */
|
|
205
|
-
export const outboundSchema = LoginPosDeviceWithPhoneOtpAction$outboundSchema;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
/** @internal */
|
|
209
|
-
export const LoginPosDeviceWithPhoneContent$inboundSchema: z.ZodType<
|
|
210
|
-
LoginPosDeviceWithPhoneContent,
|
|
211
|
-
z.ZodTypeDef,
|
|
212
|
-
unknown
|
|
213
|
-
> = z.object({
|
|
214
|
-
otp_token: z.string(),
|
|
215
|
-
otp_action: LoginPosDeviceWithPhoneOtpAction$inboundSchema,
|
|
216
|
-
}).transform((v) => {
|
|
217
|
-
return remap$(v, {
|
|
218
|
-
"otp_token": "otpToken",
|
|
219
|
-
"otp_action": "otpAction",
|
|
220
|
-
});
|
|
221
|
-
});
|
|
222
|
-
|
|
223
|
-
/** @internal */
|
|
224
|
-
export type LoginPosDeviceWithPhoneContent$Outbound = {
|
|
225
|
-
otp_token: string;
|
|
226
|
-
otp_action: string;
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
/** @internal */
|
|
230
|
-
export const LoginPosDeviceWithPhoneContent$outboundSchema: z.ZodType<
|
|
231
|
-
LoginPosDeviceWithPhoneContent$Outbound,
|
|
232
|
-
z.ZodTypeDef,
|
|
233
|
-
LoginPosDeviceWithPhoneContent
|
|
234
|
-
> = z.object({
|
|
235
|
-
otpToken: z.string(),
|
|
236
|
-
otpAction: LoginPosDeviceWithPhoneOtpAction$outboundSchema,
|
|
237
|
-
}).transform((v) => {
|
|
238
|
-
return remap$(v, {
|
|
239
|
-
otpToken: "otp_token",
|
|
240
|
-
otpAction: "otp_action",
|
|
241
|
-
});
|
|
242
|
-
});
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* @internal
|
|
246
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
247
|
-
*/
|
|
248
|
-
export namespace LoginPosDeviceWithPhoneContent$ {
|
|
249
|
-
/** @deprecated use `LoginPosDeviceWithPhoneContent$inboundSchema` instead. */
|
|
250
|
-
export const inboundSchema = LoginPosDeviceWithPhoneContent$inboundSchema;
|
|
251
|
-
/** @deprecated use `LoginPosDeviceWithPhoneContent$outboundSchema` instead. */
|
|
252
|
-
export const outboundSchema = LoginPosDeviceWithPhoneContent$outboundSchema;
|
|
253
|
-
/** @deprecated use `LoginPosDeviceWithPhoneContent$Outbound` instead. */
|
|
254
|
-
export type Outbound = LoginPosDeviceWithPhoneContent$Outbound;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
export function loginPosDeviceWithPhoneContentToJSON(
|
|
258
|
-
loginPosDeviceWithPhoneContent: LoginPosDeviceWithPhoneContent,
|
|
259
|
-
): string {
|
|
260
|
-
return JSON.stringify(
|
|
261
|
-
LoginPosDeviceWithPhoneContent$outboundSchema.parse(
|
|
262
|
-
loginPosDeviceWithPhoneContent,
|
|
263
|
-
),
|
|
264
|
-
);
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
export function loginPosDeviceWithPhoneContentFromJSON(
|
|
268
|
-
jsonString: string,
|
|
269
|
-
): SafeParseResult<LoginPosDeviceWithPhoneContent, SDKValidationError> {
|
|
270
|
-
return safeParse(
|
|
271
|
-
jsonString,
|
|
272
|
-
(x) => LoginPosDeviceWithPhoneContent$inboundSchema.parse(JSON.parse(x)),
|
|
273
|
-
`Failed to parse 'LoginPosDeviceWithPhoneContent' from JSON`,
|
|
274
|
-
);
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
/** @internal */
|
|
278
|
-
export const LoginPosDeviceWithPhoneResponseBody$inboundSchema: z.ZodType<
|
|
279
|
-
LoginPosDeviceWithPhoneResponseBody,
|
|
280
|
-
z.ZodTypeDef,
|
|
281
|
-
unknown
|
|
282
|
-
> = z.object({
|
|
283
|
-
message: z.string(),
|
|
284
|
-
success: z.string(),
|
|
285
|
-
content: z.lazy(() => LoginPosDeviceWithPhoneContent$inboundSchema),
|
|
286
|
-
});
|
|
287
|
-
|
|
288
|
-
/** @internal */
|
|
289
|
-
export type LoginPosDeviceWithPhoneResponseBody$Outbound = {
|
|
290
|
-
message: string;
|
|
291
|
-
success: string;
|
|
292
|
-
content: LoginPosDeviceWithPhoneContent$Outbound;
|
|
293
|
-
};
|
|
294
|
-
|
|
295
|
-
/** @internal */
|
|
296
|
-
export const LoginPosDeviceWithPhoneResponseBody$outboundSchema: z.ZodType<
|
|
297
|
-
LoginPosDeviceWithPhoneResponseBody$Outbound,
|
|
298
|
-
z.ZodTypeDef,
|
|
299
|
-
LoginPosDeviceWithPhoneResponseBody
|
|
300
|
-
> = z.object({
|
|
301
|
-
message: z.string(),
|
|
302
|
-
success: z.string(),
|
|
303
|
-
content: z.lazy(() => LoginPosDeviceWithPhoneContent$outboundSchema),
|
|
304
|
-
});
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* @internal
|
|
308
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
309
|
-
*/
|
|
310
|
-
export namespace LoginPosDeviceWithPhoneResponseBody$ {
|
|
311
|
-
/** @deprecated use `LoginPosDeviceWithPhoneResponseBody$inboundSchema` instead. */
|
|
312
|
-
export const inboundSchema =
|
|
313
|
-
LoginPosDeviceWithPhoneResponseBody$inboundSchema;
|
|
314
|
-
/** @deprecated use `LoginPosDeviceWithPhoneResponseBody$outboundSchema` instead. */
|
|
315
|
-
export const outboundSchema =
|
|
316
|
-
LoginPosDeviceWithPhoneResponseBody$outboundSchema;
|
|
317
|
-
/** @deprecated use `LoginPosDeviceWithPhoneResponseBody$Outbound` instead. */
|
|
318
|
-
export type Outbound = LoginPosDeviceWithPhoneResponseBody$Outbound;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
export function loginPosDeviceWithPhoneResponseBodyToJSON(
|
|
322
|
-
loginPosDeviceWithPhoneResponseBody: LoginPosDeviceWithPhoneResponseBody,
|
|
323
|
-
): string {
|
|
324
|
-
return JSON.stringify(
|
|
325
|
-
LoginPosDeviceWithPhoneResponseBody$outboundSchema.parse(
|
|
326
|
-
loginPosDeviceWithPhoneResponseBody,
|
|
327
|
-
),
|
|
328
|
-
);
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
export function loginPosDeviceWithPhoneResponseBodyFromJSON(
|
|
332
|
-
jsonString: string,
|
|
333
|
-
): SafeParseResult<LoginPosDeviceWithPhoneResponseBody, SDKValidationError> {
|
|
334
|
-
return safeParse(
|
|
335
|
-
jsonString,
|
|
336
|
-
(x) =>
|
|
337
|
-
LoginPosDeviceWithPhoneResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
338
|
-
`Failed to parse 'LoginPosDeviceWithPhoneResponseBody' from JSON`,
|
|
339
|
-
);
|
|
340
|
-
}
|
|
@@ -1,347 +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 LoginPosDeviceWithWhatsappSecurity = {
|
|
13
|
-
xApiKey: string;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export type LoginPosDeviceWithWhatsappRequestBody = {
|
|
17
|
-
deviceId: string;
|
|
18
|
-
/**
|
|
19
|
-
* 10 digit phone number without country code linked with WhatsApp.
|
|
20
|
-
*/
|
|
21
|
-
phone: string;
|
|
22
|
-
/**
|
|
23
|
-
* Two-letter code begin with a plus sign prefix that identifies different countries. By default it will be +91 if not provided.
|
|
24
|
-
*/
|
|
25
|
-
countryCode?: string | undefined;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export const LoginPosDeviceWithWhatsappOtpAction = {
|
|
29
|
-
Login: "login",
|
|
30
|
-
} as const;
|
|
31
|
-
export type LoginPosDeviceWithWhatsappOtpAction = ClosedEnum<
|
|
32
|
-
typeof LoginPosDeviceWithWhatsappOtpAction
|
|
33
|
-
>;
|
|
34
|
-
|
|
35
|
-
export type LoginPosDeviceWithWhatsappContent = {
|
|
36
|
-
otpToken: string;
|
|
37
|
-
otpAction: LoginPosDeviceWithWhatsappOtpAction;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* OK
|
|
42
|
-
*/
|
|
43
|
-
export type LoginPosDeviceWithWhatsappResponseBody = {
|
|
44
|
-
message: string;
|
|
45
|
-
success: string;
|
|
46
|
-
content: LoginPosDeviceWithWhatsappContent;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
/** @internal */
|
|
50
|
-
export const LoginPosDeviceWithWhatsappSecurity$inboundSchema: z.ZodType<
|
|
51
|
-
LoginPosDeviceWithWhatsappSecurity,
|
|
52
|
-
z.ZodTypeDef,
|
|
53
|
-
unknown
|
|
54
|
-
> = z.object({
|
|
55
|
-
"X-Api-Key": z.string(),
|
|
56
|
-
}).transform((v) => {
|
|
57
|
-
return remap$(v, {
|
|
58
|
-
"X-Api-Key": "xApiKey",
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
|
|
62
|
-
/** @internal */
|
|
63
|
-
export type LoginPosDeviceWithWhatsappSecurity$Outbound = {
|
|
64
|
-
"X-Api-Key": string;
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
/** @internal */
|
|
68
|
-
export const LoginPosDeviceWithWhatsappSecurity$outboundSchema: z.ZodType<
|
|
69
|
-
LoginPosDeviceWithWhatsappSecurity$Outbound,
|
|
70
|
-
z.ZodTypeDef,
|
|
71
|
-
LoginPosDeviceWithWhatsappSecurity
|
|
72
|
-
> = z.object({
|
|
73
|
-
xApiKey: z.string(),
|
|
74
|
-
}).transform((v) => {
|
|
75
|
-
return remap$(v, {
|
|
76
|
-
xApiKey: "X-Api-Key",
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* @internal
|
|
82
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
83
|
-
*/
|
|
84
|
-
export namespace LoginPosDeviceWithWhatsappSecurity$ {
|
|
85
|
-
/** @deprecated use `LoginPosDeviceWithWhatsappSecurity$inboundSchema` instead. */
|
|
86
|
-
export const inboundSchema = LoginPosDeviceWithWhatsappSecurity$inboundSchema;
|
|
87
|
-
/** @deprecated use `LoginPosDeviceWithWhatsappSecurity$outboundSchema` instead. */
|
|
88
|
-
export const outboundSchema =
|
|
89
|
-
LoginPosDeviceWithWhatsappSecurity$outboundSchema;
|
|
90
|
-
/** @deprecated use `LoginPosDeviceWithWhatsappSecurity$Outbound` instead. */
|
|
91
|
-
export type Outbound = LoginPosDeviceWithWhatsappSecurity$Outbound;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export function loginPosDeviceWithWhatsappSecurityToJSON(
|
|
95
|
-
loginPosDeviceWithWhatsappSecurity: LoginPosDeviceWithWhatsappSecurity,
|
|
96
|
-
): string {
|
|
97
|
-
return JSON.stringify(
|
|
98
|
-
LoginPosDeviceWithWhatsappSecurity$outboundSchema.parse(
|
|
99
|
-
loginPosDeviceWithWhatsappSecurity,
|
|
100
|
-
),
|
|
101
|
-
);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export function loginPosDeviceWithWhatsappSecurityFromJSON(
|
|
105
|
-
jsonString: string,
|
|
106
|
-
): SafeParseResult<LoginPosDeviceWithWhatsappSecurity, SDKValidationError> {
|
|
107
|
-
return safeParse(
|
|
108
|
-
jsonString,
|
|
109
|
-
(x) =>
|
|
110
|
-
LoginPosDeviceWithWhatsappSecurity$inboundSchema.parse(JSON.parse(x)),
|
|
111
|
-
`Failed to parse 'LoginPosDeviceWithWhatsappSecurity' from JSON`,
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/** @internal */
|
|
116
|
-
export const LoginPosDeviceWithWhatsappRequestBody$inboundSchema: z.ZodType<
|
|
117
|
-
LoginPosDeviceWithWhatsappRequestBody,
|
|
118
|
-
z.ZodTypeDef,
|
|
119
|
-
unknown
|
|
120
|
-
> = z.object({
|
|
121
|
-
device_id: z.string(),
|
|
122
|
-
phone: z.string(),
|
|
123
|
-
country_code: z.string().default("+91"),
|
|
124
|
-
}).transform((v) => {
|
|
125
|
-
return remap$(v, {
|
|
126
|
-
"device_id": "deviceId",
|
|
127
|
-
"country_code": "countryCode",
|
|
128
|
-
});
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
/** @internal */
|
|
132
|
-
export type LoginPosDeviceWithWhatsappRequestBody$Outbound = {
|
|
133
|
-
device_id: string;
|
|
134
|
-
phone: string;
|
|
135
|
-
country_code: string;
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
/** @internal */
|
|
139
|
-
export const LoginPosDeviceWithWhatsappRequestBody$outboundSchema: z.ZodType<
|
|
140
|
-
LoginPosDeviceWithWhatsappRequestBody$Outbound,
|
|
141
|
-
z.ZodTypeDef,
|
|
142
|
-
LoginPosDeviceWithWhatsappRequestBody
|
|
143
|
-
> = z.object({
|
|
144
|
-
deviceId: z.string(),
|
|
145
|
-
phone: z.string(),
|
|
146
|
-
countryCode: z.string().default("+91"),
|
|
147
|
-
}).transform((v) => {
|
|
148
|
-
return remap$(v, {
|
|
149
|
-
deviceId: "device_id",
|
|
150
|
-
countryCode: "country_code",
|
|
151
|
-
});
|
|
152
|
-
});
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
* @internal
|
|
156
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
157
|
-
*/
|
|
158
|
-
export namespace LoginPosDeviceWithWhatsappRequestBody$ {
|
|
159
|
-
/** @deprecated use `LoginPosDeviceWithWhatsappRequestBody$inboundSchema` instead. */
|
|
160
|
-
export const inboundSchema =
|
|
161
|
-
LoginPosDeviceWithWhatsappRequestBody$inboundSchema;
|
|
162
|
-
/** @deprecated use `LoginPosDeviceWithWhatsappRequestBody$outboundSchema` instead. */
|
|
163
|
-
export const outboundSchema =
|
|
164
|
-
LoginPosDeviceWithWhatsappRequestBody$outboundSchema;
|
|
165
|
-
/** @deprecated use `LoginPosDeviceWithWhatsappRequestBody$Outbound` instead. */
|
|
166
|
-
export type Outbound = LoginPosDeviceWithWhatsappRequestBody$Outbound;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export function loginPosDeviceWithWhatsappRequestBodyToJSON(
|
|
170
|
-
loginPosDeviceWithWhatsappRequestBody: LoginPosDeviceWithWhatsappRequestBody,
|
|
171
|
-
): string {
|
|
172
|
-
return JSON.stringify(
|
|
173
|
-
LoginPosDeviceWithWhatsappRequestBody$outboundSchema.parse(
|
|
174
|
-
loginPosDeviceWithWhatsappRequestBody,
|
|
175
|
-
),
|
|
176
|
-
);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export function loginPosDeviceWithWhatsappRequestBodyFromJSON(
|
|
180
|
-
jsonString: string,
|
|
181
|
-
): SafeParseResult<LoginPosDeviceWithWhatsappRequestBody, SDKValidationError> {
|
|
182
|
-
return safeParse(
|
|
183
|
-
jsonString,
|
|
184
|
-
(x) =>
|
|
185
|
-
LoginPosDeviceWithWhatsappRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
186
|
-
`Failed to parse 'LoginPosDeviceWithWhatsappRequestBody' from JSON`,
|
|
187
|
-
);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/** @internal */
|
|
191
|
-
export const LoginPosDeviceWithWhatsappOtpAction$inboundSchema: z.ZodNativeEnum<
|
|
192
|
-
typeof LoginPosDeviceWithWhatsappOtpAction
|
|
193
|
-
> = z.nativeEnum(LoginPosDeviceWithWhatsappOtpAction);
|
|
194
|
-
|
|
195
|
-
/** @internal */
|
|
196
|
-
export const LoginPosDeviceWithWhatsappOtpAction$outboundSchema:
|
|
197
|
-
z.ZodNativeEnum<typeof LoginPosDeviceWithWhatsappOtpAction> =
|
|
198
|
-
LoginPosDeviceWithWhatsappOtpAction$inboundSchema;
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* @internal
|
|
202
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
203
|
-
*/
|
|
204
|
-
export namespace LoginPosDeviceWithWhatsappOtpAction$ {
|
|
205
|
-
/** @deprecated use `LoginPosDeviceWithWhatsappOtpAction$inboundSchema` instead. */
|
|
206
|
-
export const inboundSchema =
|
|
207
|
-
LoginPosDeviceWithWhatsappOtpAction$inboundSchema;
|
|
208
|
-
/** @deprecated use `LoginPosDeviceWithWhatsappOtpAction$outboundSchema` instead. */
|
|
209
|
-
export const outboundSchema =
|
|
210
|
-
LoginPosDeviceWithWhatsappOtpAction$outboundSchema;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/** @internal */
|
|
214
|
-
export const LoginPosDeviceWithWhatsappContent$inboundSchema: z.ZodType<
|
|
215
|
-
LoginPosDeviceWithWhatsappContent,
|
|
216
|
-
z.ZodTypeDef,
|
|
217
|
-
unknown
|
|
218
|
-
> = z.object({
|
|
219
|
-
otp_token: z.string(),
|
|
220
|
-
otp_action: LoginPosDeviceWithWhatsappOtpAction$inboundSchema,
|
|
221
|
-
}).transform((v) => {
|
|
222
|
-
return remap$(v, {
|
|
223
|
-
"otp_token": "otpToken",
|
|
224
|
-
"otp_action": "otpAction",
|
|
225
|
-
});
|
|
226
|
-
});
|
|
227
|
-
|
|
228
|
-
/** @internal */
|
|
229
|
-
export type LoginPosDeviceWithWhatsappContent$Outbound = {
|
|
230
|
-
otp_token: string;
|
|
231
|
-
otp_action: string;
|
|
232
|
-
};
|
|
233
|
-
|
|
234
|
-
/** @internal */
|
|
235
|
-
export const LoginPosDeviceWithWhatsappContent$outboundSchema: z.ZodType<
|
|
236
|
-
LoginPosDeviceWithWhatsappContent$Outbound,
|
|
237
|
-
z.ZodTypeDef,
|
|
238
|
-
LoginPosDeviceWithWhatsappContent
|
|
239
|
-
> = z.object({
|
|
240
|
-
otpToken: z.string(),
|
|
241
|
-
otpAction: LoginPosDeviceWithWhatsappOtpAction$outboundSchema,
|
|
242
|
-
}).transform((v) => {
|
|
243
|
-
return remap$(v, {
|
|
244
|
-
otpToken: "otp_token",
|
|
245
|
-
otpAction: "otp_action",
|
|
246
|
-
});
|
|
247
|
-
});
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* @internal
|
|
251
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
252
|
-
*/
|
|
253
|
-
export namespace LoginPosDeviceWithWhatsappContent$ {
|
|
254
|
-
/** @deprecated use `LoginPosDeviceWithWhatsappContent$inboundSchema` instead. */
|
|
255
|
-
export const inboundSchema = LoginPosDeviceWithWhatsappContent$inboundSchema;
|
|
256
|
-
/** @deprecated use `LoginPosDeviceWithWhatsappContent$outboundSchema` instead. */
|
|
257
|
-
export const outboundSchema =
|
|
258
|
-
LoginPosDeviceWithWhatsappContent$outboundSchema;
|
|
259
|
-
/** @deprecated use `LoginPosDeviceWithWhatsappContent$Outbound` instead. */
|
|
260
|
-
export type Outbound = LoginPosDeviceWithWhatsappContent$Outbound;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
export function loginPosDeviceWithWhatsappContentToJSON(
|
|
264
|
-
loginPosDeviceWithWhatsappContent: LoginPosDeviceWithWhatsappContent,
|
|
265
|
-
): string {
|
|
266
|
-
return JSON.stringify(
|
|
267
|
-
LoginPosDeviceWithWhatsappContent$outboundSchema.parse(
|
|
268
|
-
loginPosDeviceWithWhatsappContent,
|
|
269
|
-
),
|
|
270
|
-
);
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
export function loginPosDeviceWithWhatsappContentFromJSON(
|
|
274
|
-
jsonString: string,
|
|
275
|
-
): SafeParseResult<LoginPosDeviceWithWhatsappContent, SDKValidationError> {
|
|
276
|
-
return safeParse(
|
|
277
|
-
jsonString,
|
|
278
|
-
(x) => LoginPosDeviceWithWhatsappContent$inboundSchema.parse(JSON.parse(x)),
|
|
279
|
-
`Failed to parse 'LoginPosDeviceWithWhatsappContent' from JSON`,
|
|
280
|
-
);
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
/** @internal */
|
|
284
|
-
export const LoginPosDeviceWithWhatsappResponseBody$inboundSchema: z.ZodType<
|
|
285
|
-
LoginPosDeviceWithWhatsappResponseBody,
|
|
286
|
-
z.ZodTypeDef,
|
|
287
|
-
unknown
|
|
288
|
-
> = z.object({
|
|
289
|
-
message: z.string(),
|
|
290
|
-
success: z.string(),
|
|
291
|
-
content: z.lazy(() => LoginPosDeviceWithWhatsappContent$inboundSchema),
|
|
292
|
-
});
|
|
293
|
-
|
|
294
|
-
/** @internal */
|
|
295
|
-
export type LoginPosDeviceWithWhatsappResponseBody$Outbound = {
|
|
296
|
-
message: string;
|
|
297
|
-
success: string;
|
|
298
|
-
content: LoginPosDeviceWithWhatsappContent$Outbound;
|
|
299
|
-
};
|
|
300
|
-
|
|
301
|
-
/** @internal */
|
|
302
|
-
export const LoginPosDeviceWithWhatsappResponseBody$outboundSchema: z.ZodType<
|
|
303
|
-
LoginPosDeviceWithWhatsappResponseBody$Outbound,
|
|
304
|
-
z.ZodTypeDef,
|
|
305
|
-
LoginPosDeviceWithWhatsappResponseBody
|
|
306
|
-
> = z.object({
|
|
307
|
-
message: z.string(),
|
|
308
|
-
success: z.string(),
|
|
309
|
-
content: z.lazy(() => LoginPosDeviceWithWhatsappContent$outboundSchema),
|
|
310
|
-
});
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* @internal
|
|
314
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
315
|
-
*/
|
|
316
|
-
export namespace LoginPosDeviceWithWhatsappResponseBody$ {
|
|
317
|
-
/** @deprecated use `LoginPosDeviceWithWhatsappResponseBody$inboundSchema` instead. */
|
|
318
|
-
export const inboundSchema =
|
|
319
|
-
LoginPosDeviceWithWhatsappResponseBody$inboundSchema;
|
|
320
|
-
/** @deprecated use `LoginPosDeviceWithWhatsappResponseBody$outboundSchema` instead. */
|
|
321
|
-
export const outboundSchema =
|
|
322
|
-
LoginPosDeviceWithWhatsappResponseBody$outboundSchema;
|
|
323
|
-
/** @deprecated use `LoginPosDeviceWithWhatsappResponseBody$Outbound` instead. */
|
|
324
|
-
export type Outbound = LoginPosDeviceWithWhatsappResponseBody$Outbound;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
export function loginPosDeviceWithWhatsappResponseBodyToJSON(
|
|
328
|
-
loginPosDeviceWithWhatsappResponseBody:
|
|
329
|
-
LoginPosDeviceWithWhatsappResponseBody,
|
|
330
|
-
): string {
|
|
331
|
-
return JSON.stringify(
|
|
332
|
-
LoginPosDeviceWithWhatsappResponseBody$outboundSchema.parse(
|
|
333
|
-
loginPosDeviceWithWhatsappResponseBody,
|
|
334
|
-
),
|
|
335
|
-
);
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
export function loginPosDeviceWithWhatsappResponseBodyFromJSON(
|
|
339
|
-
jsonString: string,
|
|
340
|
-
): SafeParseResult<LoginPosDeviceWithWhatsappResponseBody, SDKValidationError> {
|
|
341
|
-
return safeParse(
|
|
342
|
-
jsonString,
|
|
343
|
-
(x) =>
|
|
344
|
-
LoginPosDeviceWithWhatsappResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
345
|
-
`Failed to parse 'LoginPosDeviceWithWhatsappResponseBody' from JSON`,
|
|
346
|
-
);
|
|
347
|
-
}
|