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,269 +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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import * as components from "../components/index.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type PairPosDeviceSecurity = {
|
|
13
|
-
xApiKey: string;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export type PairPosDeviceRequestBody = {
|
|
17
|
-
pairingCode: string;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export type PairPosDeviceContent = {
|
|
21
|
-
device?: components.PosDevice | undefined;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* OK
|
|
26
|
-
*/
|
|
27
|
-
export type PairPosDeviceResponseBody = {
|
|
28
|
-
message?: string | undefined;
|
|
29
|
-
success?: string | undefined;
|
|
30
|
-
content?: PairPosDeviceContent | undefined;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
/** @internal */
|
|
34
|
-
export const PairPosDeviceSecurity$inboundSchema: z.ZodType<
|
|
35
|
-
PairPosDeviceSecurity,
|
|
36
|
-
z.ZodTypeDef,
|
|
37
|
-
unknown
|
|
38
|
-
> = z.object({
|
|
39
|
-
"X-Api-Key": z.string(),
|
|
40
|
-
}).transform((v) => {
|
|
41
|
-
return remap$(v, {
|
|
42
|
-
"X-Api-Key": "xApiKey",
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
/** @internal */
|
|
47
|
-
export type PairPosDeviceSecurity$Outbound = {
|
|
48
|
-
"X-Api-Key": string;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
/** @internal */
|
|
52
|
-
export const PairPosDeviceSecurity$outboundSchema: z.ZodType<
|
|
53
|
-
PairPosDeviceSecurity$Outbound,
|
|
54
|
-
z.ZodTypeDef,
|
|
55
|
-
PairPosDeviceSecurity
|
|
56
|
-
> = z.object({
|
|
57
|
-
xApiKey: z.string(),
|
|
58
|
-
}).transform((v) => {
|
|
59
|
-
return remap$(v, {
|
|
60
|
-
xApiKey: "X-Api-Key",
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
|
-
*/
|
|
68
|
-
export namespace PairPosDeviceSecurity$ {
|
|
69
|
-
/** @deprecated use `PairPosDeviceSecurity$inboundSchema` instead. */
|
|
70
|
-
export const inboundSchema = PairPosDeviceSecurity$inboundSchema;
|
|
71
|
-
/** @deprecated use `PairPosDeviceSecurity$outboundSchema` instead. */
|
|
72
|
-
export const outboundSchema = PairPosDeviceSecurity$outboundSchema;
|
|
73
|
-
/** @deprecated use `PairPosDeviceSecurity$Outbound` instead. */
|
|
74
|
-
export type Outbound = PairPosDeviceSecurity$Outbound;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export function pairPosDeviceSecurityToJSON(
|
|
78
|
-
pairPosDeviceSecurity: PairPosDeviceSecurity,
|
|
79
|
-
): string {
|
|
80
|
-
return JSON.stringify(
|
|
81
|
-
PairPosDeviceSecurity$outboundSchema.parse(pairPosDeviceSecurity),
|
|
82
|
-
);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export function pairPosDeviceSecurityFromJSON(
|
|
86
|
-
jsonString: string,
|
|
87
|
-
): SafeParseResult<PairPosDeviceSecurity, SDKValidationError> {
|
|
88
|
-
return safeParse(
|
|
89
|
-
jsonString,
|
|
90
|
-
(x) => PairPosDeviceSecurity$inboundSchema.parse(JSON.parse(x)),
|
|
91
|
-
`Failed to parse 'PairPosDeviceSecurity' from JSON`,
|
|
92
|
-
);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/** @internal */
|
|
96
|
-
export const PairPosDeviceRequestBody$inboundSchema: z.ZodType<
|
|
97
|
-
PairPosDeviceRequestBody,
|
|
98
|
-
z.ZodTypeDef,
|
|
99
|
-
unknown
|
|
100
|
-
> = z.object({
|
|
101
|
-
pairing_code: z.string(),
|
|
102
|
-
}).transform((v) => {
|
|
103
|
-
return remap$(v, {
|
|
104
|
-
"pairing_code": "pairingCode",
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
/** @internal */
|
|
109
|
-
export type PairPosDeviceRequestBody$Outbound = {
|
|
110
|
-
pairing_code: string;
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
/** @internal */
|
|
114
|
-
export const PairPosDeviceRequestBody$outboundSchema: z.ZodType<
|
|
115
|
-
PairPosDeviceRequestBody$Outbound,
|
|
116
|
-
z.ZodTypeDef,
|
|
117
|
-
PairPosDeviceRequestBody
|
|
118
|
-
> = z.object({
|
|
119
|
-
pairingCode: z.string(),
|
|
120
|
-
}).transform((v) => {
|
|
121
|
-
return remap$(v, {
|
|
122
|
-
pairingCode: "pairing_code",
|
|
123
|
-
});
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* @internal
|
|
128
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
129
|
-
*/
|
|
130
|
-
export namespace PairPosDeviceRequestBody$ {
|
|
131
|
-
/** @deprecated use `PairPosDeviceRequestBody$inboundSchema` instead. */
|
|
132
|
-
export const inboundSchema = PairPosDeviceRequestBody$inboundSchema;
|
|
133
|
-
/** @deprecated use `PairPosDeviceRequestBody$outboundSchema` instead. */
|
|
134
|
-
export const outboundSchema = PairPosDeviceRequestBody$outboundSchema;
|
|
135
|
-
/** @deprecated use `PairPosDeviceRequestBody$Outbound` instead. */
|
|
136
|
-
export type Outbound = PairPosDeviceRequestBody$Outbound;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export function pairPosDeviceRequestBodyToJSON(
|
|
140
|
-
pairPosDeviceRequestBody: PairPosDeviceRequestBody,
|
|
141
|
-
): string {
|
|
142
|
-
return JSON.stringify(
|
|
143
|
-
PairPosDeviceRequestBody$outboundSchema.parse(pairPosDeviceRequestBody),
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export function pairPosDeviceRequestBodyFromJSON(
|
|
148
|
-
jsonString: string,
|
|
149
|
-
): SafeParseResult<PairPosDeviceRequestBody, SDKValidationError> {
|
|
150
|
-
return safeParse(
|
|
151
|
-
jsonString,
|
|
152
|
-
(x) => PairPosDeviceRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
153
|
-
`Failed to parse 'PairPosDeviceRequestBody' from JSON`,
|
|
154
|
-
);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
/** @internal */
|
|
158
|
-
export const PairPosDeviceContent$inboundSchema: z.ZodType<
|
|
159
|
-
PairPosDeviceContent,
|
|
160
|
-
z.ZodTypeDef,
|
|
161
|
-
unknown
|
|
162
|
-
> = z.object({
|
|
163
|
-
device: components.PosDevice$inboundSchema.optional(),
|
|
164
|
-
});
|
|
165
|
-
|
|
166
|
-
/** @internal */
|
|
167
|
-
export type PairPosDeviceContent$Outbound = {
|
|
168
|
-
device?: components.PosDevice$Outbound | undefined;
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
/** @internal */
|
|
172
|
-
export const PairPosDeviceContent$outboundSchema: z.ZodType<
|
|
173
|
-
PairPosDeviceContent$Outbound,
|
|
174
|
-
z.ZodTypeDef,
|
|
175
|
-
PairPosDeviceContent
|
|
176
|
-
> = z.object({
|
|
177
|
-
device: components.PosDevice$outboundSchema.optional(),
|
|
178
|
-
});
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* @internal
|
|
182
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
183
|
-
*/
|
|
184
|
-
export namespace PairPosDeviceContent$ {
|
|
185
|
-
/** @deprecated use `PairPosDeviceContent$inboundSchema` instead. */
|
|
186
|
-
export const inboundSchema = PairPosDeviceContent$inboundSchema;
|
|
187
|
-
/** @deprecated use `PairPosDeviceContent$outboundSchema` instead. */
|
|
188
|
-
export const outboundSchema = PairPosDeviceContent$outboundSchema;
|
|
189
|
-
/** @deprecated use `PairPosDeviceContent$Outbound` instead. */
|
|
190
|
-
export type Outbound = PairPosDeviceContent$Outbound;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
export function pairPosDeviceContentToJSON(
|
|
194
|
-
pairPosDeviceContent: PairPosDeviceContent,
|
|
195
|
-
): string {
|
|
196
|
-
return JSON.stringify(
|
|
197
|
-
PairPosDeviceContent$outboundSchema.parse(pairPosDeviceContent),
|
|
198
|
-
);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
export function pairPosDeviceContentFromJSON(
|
|
202
|
-
jsonString: string,
|
|
203
|
-
): SafeParseResult<PairPosDeviceContent, SDKValidationError> {
|
|
204
|
-
return safeParse(
|
|
205
|
-
jsonString,
|
|
206
|
-
(x) => PairPosDeviceContent$inboundSchema.parse(JSON.parse(x)),
|
|
207
|
-
`Failed to parse 'PairPosDeviceContent' from JSON`,
|
|
208
|
-
);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
/** @internal */
|
|
212
|
-
export const PairPosDeviceResponseBody$inboundSchema: z.ZodType<
|
|
213
|
-
PairPosDeviceResponseBody,
|
|
214
|
-
z.ZodTypeDef,
|
|
215
|
-
unknown
|
|
216
|
-
> = z.object({
|
|
217
|
-
message: z.string().optional(),
|
|
218
|
-
success: z.string().optional(),
|
|
219
|
-
content: z.lazy(() => PairPosDeviceContent$inboundSchema).optional(),
|
|
220
|
-
});
|
|
221
|
-
|
|
222
|
-
/** @internal */
|
|
223
|
-
export type PairPosDeviceResponseBody$Outbound = {
|
|
224
|
-
message?: string | undefined;
|
|
225
|
-
success?: string | undefined;
|
|
226
|
-
content?: PairPosDeviceContent$Outbound | undefined;
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
/** @internal */
|
|
230
|
-
export const PairPosDeviceResponseBody$outboundSchema: z.ZodType<
|
|
231
|
-
PairPosDeviceResponseBody$Outbound,
|
|
232
|
-
z.ZodTypeDef,
|
|
233
|
-
PairPosDeviceResponseBody
|
|
234
|
-
> = z.object({
|
|
235
|
-
message: z.string().optional(),
|
|
236
|
-
success: z.string().optional(),
|
|
237
|
-
content: z.lazy(() => PairPosDeviceContent$outboundSchema).optional(),
|
|
238
|
-
});
|
|
239
|
-
|
|
240
|
-
/**
|
|
241
|
-
* @internal
|
|
242
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
243
|
-
*/
|
|
244
|
-
export namespace PairPosDeviceResponseBody$ {
|
|
245
|
-
/** @deprecated use `PairPosDeviceResponseBody$inboundSchema` instead. */
|
|
246
|
-
export const inboundSchema = PairPosDeviceResponseBody$inboundSchema;
|
|
247
|
-
/** @deprecated use `PairPosDeviceResponseBody$outboundSchema` instead. */
|
|
248
|
-
export const outboundSchema = PairPosDeviceResponseBody$outboundSchema;
|
|
249
|
-
/** @deprecated use `PairPosDeviceResponseBody$Outbound` instead. */
|
|
250
|
-
export type Outbound = PairPosDeviceResponseBody$Outbound;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
export function pairPosDeviceResponseBodyToJSON(
|
|
254
|
-
pairPosDeviceResponseBody: PairPosDeviceResponseBody,
|
|
255
|
-
): string {
|
|
256
|
-
return JSON.stringify(
|
|
257
|
-
PairPosDeviceResponseBody$outboundSchema.parse(pairPosDeviceResponseBody),
|
|
258
|
-
);
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
export function pairPosDeviceResponseBodyFromJSON(
|
|
262
|
-
jsonString: string,
|
|
263
|
-
): SafeParseResult<PairPosDeviceResponseBody, SDKValidationError> {
|
|
264
|
-
return safeParse(
|
|
265
|
-
jsonString,
|
|
266
|
-
(x) => PairPosDeviceResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
267
|
-
`Failed to parse 'PairPosDeviceResponseBody' from JSON`,
|
|
268
|
-
);
|
|
269
|
-
}
|
|
@@ -1,223 +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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
export type RefreshPosAccessTokenRequestBody = {
|
|
12
|
-
refreshToken: string;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export type RefreshPosAccessTokenContent = {
|
|
16
|
-
accessToken?: string | undefined;
|
|
17
|
-
refreshToken?: string | undefined;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* OK
|
|
22
|
-
*/
|
|
23
|
-
export type RefreshPosAccessTokenResponseBody = {
|
|
24
|
-
message?: string | undefined;
|
|
25
|
-
success?: string | undefined;
|
|
26
|
-
content?: RefreshPosAccessTokenContent | undefined;
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
/** @internal */
|
|
30
|
-
export const RefreshPosAccessTokenRequestBody$inboundSchema: z.ZodType<
|
|
31
|
-
RefreshPosAccessTokenRequestBody,
|
|
32
|
-
z.ZodTypeDef,
|
|
33
|
-
unknown
|
|
34
|
-
> = z.object({
|
|
35
|
-
refresh_token: z.string(),
|
|
36
|
-
}).transform((v) => {
|
|
37
|
-
return remap$(v, {
|
|
38
|
-
"refresh_token": "refreshToken",
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
/** @internal */
|
|
43
|
-
export type RefreshPosAccessTokenRequestBody$Outbound = {
|
|
44
|
-
refresh_token: string;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
/** @internal */
|
|
48
|
-
export const RefreshPosAccessTokenRequestBody$outboundSchema: z.ZodType<
|
|
49
|
-
RefreshPosAccessTokenRequestBody$Outbound,
|
|
50
|
-
z.ZodTypeDef,
|
|
51
|
-
RefreshPosAccessTokenRequestBody
|
|
52
|
-
> = z.object({
|
|
53
|
-
refreshToken: z.string(),
|
|
54
|
-
}).transform((v) => {
|
|
55
|
-
return remap$(v, {
|
|
56
|
-
refreshToken: "refresh_token",
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
|
|
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 namespace RefreshPosAccessTokenRequestBody$ {
|
|
65
|
-
/** @deprecated use `RefreshPosAccessTokenRequestBody$inboundSchema` instead. */
|
|
66
|
-
export const inboundSchema = RefreshPosAccessTokenRequestBody$inboundSchema;
|
|
67
|
-
/** @deprecated use `RefreshPosAccessTokenRequestBody$outboundSchema` instead. */
|
|
68
|
-
export const outboundSchema = RefreshPosAccessTokenRequestBody$outboundSchema;
|
|
69
|
-
/** @deprecated use `RefreshPosAccessTokenRequestBody$Outbound` instead. */
|
|
70
|
-
export type Outbound = RefreshPosAccessTokenRequestBody$Outbound;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function refreshPosAccessTokenRequestBodyToJSON(
|
|
74
|
-
refreshPosAccessTokenRequestBody: RefreshPosAccessTokenRequestBody,
|
|
75
|
-
): string {
|
|
76
|
-
return JSON.stringify(
|
|
77
|
-
RefreshPosAccessTokenRequestBody$outboundSchema.parse(
|
|
78
|
-
refreshPosAccessTokenRequestBody,
|
|
79
|
-
),
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export function refreshPosAccessTokenRequestBodyFromJSON(
|
|
84
|
-
jsonString: string,
|
|
85
|
-
): SafeParseResult<RefreshPosAccessTokenRequestBody, SDKValidationError> {
|
|
86
|
-
return safeParse(
|
|
87
|
-
jsonString,
|
|
88
|
-
(x) => RefreshPosAccessTokenRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
89
|
-
`Failed to parse 'RefreshPosAccessTokenRequestBody' from JSON`,
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/** @internal */
|
|
94
|
-
export const RefreshPosAccessTokenContent$inboundSchema: z.ZodType<
|
|
95
|
-
RefreshPosAccessTokenContent,
|
|
96
|
-
z.ZodTypeDef,
|
|
97
|
-
unknown
|
|
98
|
-
> = z.object({
|
|
99
|
-
access_token: z.string().optional(),
|
|
100
|
-
refresh_token: z.string().optional(),
|
|
101
|
-
}).transform((v) => {
|
|
102
|
-
return remap$(v, {
|
|
103
|
-
"access_token": "accessToken",
|
|
104
|
-
"refresh_token": "refreshToken",
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
/** @internal */
|
|
109
|
-
export type RefreshPosAccessTokenContent$Outbound = {
|
|
110
|
-
access_token?: string | undefined;
|
|
111
|
-
refresh_token?: string | undefined;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
/** @internal */
|
|
115
|
-
export const RefreshPosAccessTokenContent$outboundSchema: z.ZodType<
|
|
116
|
-
RefreshPosAccessTokenContent$Outbound,
|
|
117
|
-
z.ZodTypeDef,
|
|
118
|
-
RefreshPosAccessTokenContent
|
|
119
|
-
> = z.object({
|
|
120
|
-
accessToken: z.string().optional(),
|
|
121
|
-
refreshToken: z.string().optional(),
|
|
122
|
-
}).transform((v) => {
|
|
123
|
-
return remap$(v, {
|
|
124
|
-
accessToken: "access_token",
|
|
125
|
-
refreshToken: "refresh_token",
|
|
126
|
-
});
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* @internal
|
|
131
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
132
|
-
*/
|
|
133
|
-
export namespace RefreshPosAccessTokenContent$ {
|
|
134
|
-
/** @deprecated use `RefreshPosAccessTokenContent$inboundSchema` instead. */
|
|
135
|
-
export const inboundSchema = RefreshPosAccessTokenContent$inboundSchema;
|
|
136
|
-
/** @deprecated use `RefreshPosAccessTokenContent$outboundSchema` instead. */
|
|
137
|
-
export const outboundSchema = RefreshPosAccessTokenContent$outboundSchema;
|
|
138
|
-
/** @deprecated use `RefreshPosAccessTokenContent$Outbound` instead. */
|
|
139
|
-
export type Outbound = RefreshPosAccessTokenContent$Outbound;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export function refreshPosAccessTokenContentToJSON(
|
|
143
|
-
refreshPosAccessTokenContent: RefreshPosAccessTokenContent,
|
|
144
|
-
): string {
|
|
145
|
-
return JSON.stringify(
|
|
146
|
-
RefreshPosAccessTokenContent$outboundSchema.parse(
|
|
147
|
-
refreshPosAccessTokenContent,
|
|
148
|
-
),
|
|
149
|
-
);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export function refreshPosAccessTokenContentFromJSON(
|
|
153
|
-
jsonString: string,
|
|
154
|
-
): SafeParseResult<RefreshPosAccessTokenContent, SDKValidationError> {
|
|
155
|
-
return safeParse(
|
|
156
|
-
jsonString,
|
|
157
|
-
(x) => RefreshPosAccessTokenContent$inboundSchema.parse(JSON.parse(x)),
|
|
158
|
-
`Failed to parse 'RefreshPosAccessTokenContent' from JSON`,
|
|
159
|
-
);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/** @internal */
|
|
163
|
-
export const RefreshPosAccessTokenResponseBody$inboundSchema: z.ZodType<
|
|
164
|
-
RefreshPosAccessTokenResponseBody,
|
|
165
|
-
z.ZodTypeDef,
|
|
166
|
-
unknown
|
|
167
|
-
> = z.object({
|
|
168
|
-
message: z.string().optional(),
|
|
169
|
-
success: z.string().optional(),
|
|
170
|
-
content: z.lazy(() => RefreshPosAccessTokenContent$inboundSchema).optional(),
|
|
171
|
-
});
|
|
172
|
-
|
|
173
|
-
/** @internal */
|
|
174
|
-
export type RefreshPosAccessTokenResponseBody$Outbound = {
|
|
175
|
-
message?: string | undefined;
|
|
176
|
-
success?: string | undefined;
|
|
177
|
-
content?: RefreshPosAccessTokenContent$Outbound | undefined;
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
/** @internal */
|
|
181
|
-
export const RefreshPosAccessTokenResponseBody$outboundSchema: z.ZodType<
|
|
182
|
-
RefreshPosAccessTokenResponseBody$Outbound,
|
|
183
|
-
z.ZodTypeDef,
|
|
184
|
-
RefreshPosAccessTokenResponseBody
|
|
185
|
-
> = z.object({
|
|
186
|
-
message: z.string().optional(),
|
|
187
|
-
success: z.string().optional(),
|
|
188
|
-
content: z.lazy(() => RefreshPosAccessTokenContent$outboundSchema).optional(),
|
|
189
|
-
});
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* @internal
|
|
193
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
194
|
-
*/
|
|
195
|
-
export namespace RefreshPosAccessTokenResponseBody$ {
|
|
196
|
-
/** @deprecated use `RefreshPosAccessTokenResponseBody$inboundSchema` instead. */
|
|
197
|
-
export const inboundSchema = RefreshPosAccessTokenResponseBody$inboundSchema;
|
|
198
|
-
/** @deprecated use `RefreshPosAccessTokenResponseBody$outboundSchema` instead. */
|
|
199
|
-
export const outboundSchema =
|
|
200
|
-
RefreshPosAccessTokenResponseBody$outboundSchema;
|
|
201
|
-
/** @deprecated use `RefreshPosAccessTokenResponseBody$Outbound` instead. */
|
|
202
|
-
export type Outbound = RefreshPosAccessTokenResponseBody$Outbound;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
export function refreshPosAccessTokenResponseBodyToJSON(
|
|
206
|
-
refreshPosAccessTokenResponseBody: RefreshPosAccessTokenResponseBody,
|
|
207
|
-
): string {
|
|
208
|
-
return JSON.stringify(
|
|
209
|
-
RefreshPosAccessTokenResponseBody$outboundSchema.parse(
|
|
210
|
-
refreshPosAccessTokenResponseBody,
|
|
211
|
-
),
|
|
212
|
-
);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
export function refreshPosAccessTokenResponseBodyFromJSON(
|
|
216
|
-
jsonString: string,
|
|
217
|
-
): SafeParseResult<RefreshPosAccessTokenResponseBody, SDKValidationError> {
|
|
218
|
-
return safeParse(
|
|
219
|
-
jsonString,
|
|
220
|
-
(x) => RefreshPosAccessTokenResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
221
|
-
`Failed to parse 'RefreshPosAccessTokenResponseBody' from JSON`,
|
|
222
|
-
);
|
|
223
|
-
}
|