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,139 +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
|
-
/** @internal */
|
|
8
|
-
export const Device$inboundSchema = z
|
|
9
|
-
.object({
|
|
10
|
-
id: z.string().optional(),
|
|
11
|
-
name: z.string().optional(),
|
|
12
|
-
});
|
|
13
|
-
/** @internal */
|
|
14
|
-
export const Device$outboundSchema = z.object({
|
|
15
|
-
id: z.string().optional(),
|
|
16
|
-
name: z.string().optional(),
|
|
17
|
-
});
|
|
18
|
-
/**
|
|
19
|
-
* @internal
|
|
20
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
21
|
-
*/
|
|
22
|
-
export var Device$;
|
|
23
|
-
(function (Device$) {
|
|
24
|
-
/** @deprecated use `Device$inboundSchema` instead. */
|
|
25
|
-
Device$.inboundSchema = Device$inboundSchema;
|
|
26
|
-
/** @deprecated use `Device$outboundSchema` instead. */
|
|
27
|
-
Device$.outboundSchema = Device$outboundSchema;
|
|
28
|
-
})(Device$ || (Device$ = {}));
|
|
29
|
-
export function deviceToJSON(device) {
|
|
30
|
-
return JSON.stringify(Device$outboundSchema.parse(device));
|
|
31
|
-
}
|
|
32
|
-
export function deviceFromJSON(jsonString) {
|
|
33
|
-
return safeParse(jsonString, (x) => Device$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Device' from JSON`);
|
|
34
|
-
}
|
|
35
|
-
/** @internal */
|
|
36
|
-
export const Location$inboundSchema = z.object({
|
|
37
|
-
id: z.string().optional(),
|
|
38
|
-
name: z.string().optional(),
|
|
39
|
-
});
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const Location$outboundSchema = z.object({
|
|
42
|
-
id: z.string().optional(),
|
|
43
|
-
name: z.string().optional(),
|
|
44
|
-
});
|
|
45
|
-
/**
|
|
46
|
-
* @internal
|
|
47
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
48
|
-
*/
|
|
49
|
-
export var Location$;
|
|
50
|
-
(function (Location$) {
|
|
51
|
-
/** @deprecated use `Location$inboundSchema` instead. */
|
|
52
|
-
Location$.inboundSchema = Location$inboundSchema;
|
|
53
|
-
/** @deprecated use `Location$outboundSchema` instead. */
|
|
54
|
-
Location$.outboundSchema = Location$outboundSchema;
|
|
55
|
-
})(Location$ || (Location$ = {}));
|
|
56
|
-
export function locationToJSON(location) {
|
|
57
|
-
return JSON.stringify(Location$outboundSchema.parse(location));
|
|
58
|
-
}
|
|
59
|
-
export function locationFromJSON(jsonString) {
|
|
60
|
-
return safeParse(jsonString, (x) => Location$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Location' from JSON`);
|
|
61
|
-
}
|
|
62
|
-
/** @internal */
|
|
63
|
-
export const Role$inboundSchema = z
|
|
64
|
-
.object({
|
|
65
|
-
id: z.string().optional(),
|
|
66
|
-
name: z.string().optional(),
|
|
67
|
-
});
|
|
68
|
-
/** @internal */
|
|
69
|
-
export const Role$outboundSchema = z.object({
|
|
70
|
-
id: z.string().optional(),
|
|
71
|
-
name: z.string().optional(),
|
|
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 var Role$;
|
|
78
|
-
(function (Role$) {
|
|
79
|
-
/** @deprecated use `Role$inboundSchema` instead. */
|
|
80
|
-
Role$.inboundSchema = Role$inboundSchema;
|
|
81
|
-
/** @deprecated use `Role$outboundSchema` instead. */
|
|
82
|
-
Role$.outboundSchema = Role$outboundSchema;
|
|
83
|
-
})(Role$ || (Role$ = {}));
|
|
84
|
-
export function roleToJSON(role) {
|
|
85
|
-
return JSON.stringify(Role$outboundSchema.parse(role));
|
|
86
|
-
}
|
|
87
|
-
export function roleFromJSON(jsonString) {
|
|
88
|
-
return safeParse(jsonString, (x) => Role$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Role' from JSON`);
|
|
89
|
-
}
|
|
90
|
-
/** @internal */
|
|
91
|
-
export const PosUser$inboundSchema = z.object({
|
|
92
|
-
id: z.string().optional(),
|
|
93
|
-
first_name: z.string().optional(),
|
|
94
|
-
last_name: z.nullable(z.string()).optional(),
|
|
95
|
-
phone: z.string().optional(),
|
|
96
|
-
email: z.string().optional(),
|
|
97
|
-
device: z.lazy(() => Device$inboundSchema).optional(),
|
|
98
|
-
location: z.lazy(() => Location$inboundSchema).optional(),
|
|
99
|
-
role: z.lazy(() => Role$inboundSchema).optional(),
|
|
100
|
-
}).transform((v) => {
|
|
101
|
-
return remap$(v, {
|
|
102
|
-
"first_name": "firstName",
|
|
103
|
-
"last_name": "lastName",
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
/** @internal */
|
|
107
|
-
export const PosUser$outboundSchema = z.object({
|
|
108
|
-
id: z.string().optional(),
|
|
109
|
-
firstName: z.string().optional(),
|
|
110
|
-
lastName: z.nullable(z.string()).optional(),
|
|
111
|
-
phone: z.string().optional(),
|
|
112
|
-
email: z.string().optional(),
|
|
113
|
-
device: z.lazy(() => Device$outboundSchema).optional(),
|
|
114
|
-
location: z.lazy(() => Location$outboundSchema).optional(),
|
|
115
|
-
role: z.lazy(() => Role$outboundSchema).optional(),
|
|
116
|
-
}).transform((v) => {
|
|
117
|
-
return remap$(v, {
|
|
118
|
-
firstName: "first_name",
|
|
119
|
-
lastName: "last_name",
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
/**
|
|
123
|
-
* @internal
|
|
124
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
125
|
-
*/
|
|
126
|
-
export var PosUser$;
|
|
127
|
-
(function (PosUser$) {
|
|
128
|
-
/** @deprecated use `PosUser$inboundSchema` instead. */
|
|
129
|
-
PosUser$.inboundSchema = PosUser$inboundSchema;
|
|
130
|
-
/** @deprecated use `PosUser$outboundSchema` instead. */
|
|
131
|
-
PosUser$.outboundSchema = PosUser$outboundSchema;
|
|
132
|
-
})(PosUser$ || (PosUser$ = {}));
|
|
133
|
-
export function posUserToJSON(posUser) {
|
|
134
|
-
return JSON.stringify(PosUser$outboundSchema.parse(posUser));
|
|
135
|
-
}
|
|
136
|
-
export function posUserFromJSON(jsonString) {
|
|
137
|
-
return safeParse(jsonString, (x) => PosUser$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PosUser' from JSON`);
|
|
138
|
-
}
|
|
139
|
-
//# sourceMappingURL=posuser.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"posuser.js","sourceRoot":"","sources":["../../../src/models/components/posuser.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;AA8BjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,oBAAoB,GAA6C,CAAC;KAC5E,MAAM,CAAC;IACN,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,IAAI,EAAE,CAAC,CAAC,MAAM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C7B,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qBAAqB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjD,qCAAqC,CACtC,CAAC;AACJ,CAAC"}
|
|
@@ -1,90 +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 CreatePosCartRequestBody = {
|
|
6
|
-
items?: Array<components.UpdateCartItem> | undefined;
|
|
7
|
-
};
|
|
8
|
-
export type CreatePosCartContent = {
|
|
9
|
-
/**
|
|
10
|
-
* 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.
|
|
11
|
-
*/
|
|
12
|
-
cart?: components.Cart | undefined;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* OK
|
|
16
|
-
*/
|
|
17
|
-
export type CreatePosCartResponseBody = {
|
|
18
|
-
message?: string | undefined;
|
|
19
|
-
success?: string | undefined;
|
|
20
|
-
content?: CreatePosCartContent | undefined;
|
|
21
|
-
};
|
|
22
|
-
/** @internal */
|
|
23
|
-
export declare const CreatePosCartRequestBody$inboundSchema: z.ZodType<CreatePosCartRequestBody, z.ZodTypeDef, unknown>;
|
|
24
|
-
/** @internal */
|
|
25
|
-
export type CreatePosCartRequestBody$Outbound = {
|
|
26
|
-
items?: Array<components.UpdateCartItem$Outbound> | undefined;
|
|
27
|
-
};
|
|
28
|
-
/** @internal */
|
|
29
|
-
export declare const CreatePosCartRequestBody$outboundSchema: z.ZodType<CreatePosCartRequestBody$Outbound, z.ZodTypeDef, CreatePosCartRequestBody>;
|
|
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 declare namespace CreatePosCartRequestBody$ {
|
|
35
|
-
/** @deprecated use `CreatePosCartRequestBody$inboundSchema` instead. */
|
|
36
|
-
const inboundSchema: z.ZodType<CreatePosCartRequestBody, z.ZodTypeDef, unknown>;
|
|
37
|
-
/** @deprecated use `CreatePosCartRequestBody$outboundSchema` instead. */
|
|
38
|
-
const outboundSchema: z.ZodType<CreatePosCartRequestBody$Outbound, z.ZodTypeDef, CreatePosCartRequestBody>;
|
|
39
|
-
/** @deprecated use `CreatePosCartRequestBody$Outbound` instead. */
|
|
40
|
-
type Outbound = CreatePosCartRequestBody$Outbound;
|
|
41
|
-
}
|
|
42
|
-
export declare function createPosCartRequestBodyToJSON(createPosCartRequestBody: CreatePosCartRequestBody): string;
|
|
43
|
-
export declare function createPosCartRequestBodyFromJSON(jsonString: string): SafeParseResult<CreatePosCartRequestBody, SDKValidationError>;
|
|
44
|
-
/** @internal */
|
|
45
|
-
export declare const CreatePosCartContent$inboundSchema: z.ZodType<CreatePosCartContent, z.ZodTypeDef, unknown>;
|
|
46
|
-
/** @internal */
|
|
47
|
-
export type CreatePosCartContent$Outbound = {
|
|
48
|
-
cart?: components.Cart$Outbound | undefined;
|
|
49
|
-
};
|
|
50
|
-
/** @internal */
|
|
51
|
-
export declare const CreatePosCartContent$outboundSchema: z.ZodType<CreatePosCartContent$Outbound, z.ZodTypeDef, CreatePosCartContent>;
|
|
52
|
-
/**
|
|
53
|
-
* @internal
|
|
54
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
-
*/
|
|
56
|
-
export declare namespace CreatePosCartContent$ {
|
|
57
|
-
/** @deprecated use `CreatePosCartContent$inboundSchema` instead. */
|
|
58
|
-
const inboundSchema: z.ZodType<CreatePosCartContent, z.ZodTypeDef, unknown>;
|
|
59
|
-
/** @deprecated use `CreatePosCartContent$outboundSchema` instead. */
|
|
60
|
-
const outboundSchema: z.ZodType<CreatePosCartContent$Outbound, z.ZodTypeDef, CreatePosCartContent>;
|
|
61
|
-
/** @deprecated use `CreatePosCartContent$Outbound` instead. */
|
|
62
|
-
type Outbound = CreatePosCartContent$Outbound;
|
|
63
|
-
}
|
|
64
|
-
export declare function createPosCartContentToJSON(createPosCartContent: CreatePosCartContent): string;
|
|
65
|
-
export declare function createPosCartContentFromJSON(jsonString: string): SafeParseResult<CreatePosCartContent, SDKValidationError>;
|
|
66
|
-
/** @internal */
|
|
67
|
-
export declare const CreatePosCartResponseBody$inboundSchema: z.ZodType<CreatePosCartResponseBody, z.ZodTypeDef, unknown>;
|
|
68
|
-
/** @internal */
|
|
69
|
-
export type CreatePosCartResponseBody$Outbound = {
|
|
70
|
-
message?: string | undefined;
|
|
71
|
-
success?: string | undefined;
|
|
72
|
-
content?: CreatePosCartContent$Outbound | undefined;
|
|
73
|
-
};
|
|
74
|
-
/** @internal */
|
|
75
|
-
export declare const CreatePosCartResponseBody$outboundSchema: z.ZodType<CreatePosCartResponseBody$Outbound, z.ZodTypeDef, CreatePosCartResponseBody>;
|
|
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 declare namespace CreatePosCartResponseBody$ {
|
|
81
|
-
/** @deprecated use `CreatePosCartResponseBody$inboundSchema` instead. */
|
|
82
|
-
const inboundSchema: z.ZodType<CreatePosCartResponseBody, z.ZodTypeDef, unknown>;
|
|
83
|
-
/** @deprecated use `CreatePosCartResponseBody$outboundSchema` instead. */
|
|
84
|
-
const outboundSchema: z.ZodType<CreatePosCartResponseBody$Outbound, z.ZodTypeDef, CreatePosCartResponseBody>;
|
|
85
|
-
/** @deprecated use `CreatePosCartResponseBody$Outbound` instead. */
|
|
86
|
-
type Outbound = CreatePosCartResponseBody$Outbound;
|
|
87
|
-
}
|
|
88
|
-
export declare function createPosCartResponseBodyToJSON(createPosCartResponseBody: CreatePosCartResponseBody): string;
|
|
89
|
-
export declare function createPosCartResponseBodyFromJSON(jsonString: string): SafeParseResult<CreatePosCartResponseBody, SDKValidationError>;
|
|
90
|
-
//# sourceMappingURL=createposcart.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createposcart.d.ts","sourceRoot":"","sources":["../../../src/models/operations/createposcart.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,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,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,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,iCAAiC,GAAG;IAC9C,KAAK,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,uBAAuB,CAAC,GAAG,SAAS,CAAC;CAC/D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,iCAAiC,EACjC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7D,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,kCAAkC,GAAG;IAC/C,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,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,86 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod";
|
|
5
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
6
|
-
import * as components from "../components/index.js";
|
|
7
|
-
/** @internal */
|
|
8
|
-
export const CreatePosCartRequestBody$inboundSchema = z.object({
|
|
9
|
-
items: z.array(components.UpdateCartItem$inboundSchema).optional(),
|
|
10
|
-
});
|
|
11
|
-
/** @internal */
|
|
12
|
-
export const CreatePosCartRequestBody$outboundSchema = z.object({
|
|
13
|
-
items: z.array(components.UpdateCartItem$outboundSchema).optional(),
|
|
14
|
-
});
|
|
15
|
-
/**
|
|
16
|
-
* @internal
|
|
17
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
18
|
-
*/
|
|
19
|
-
export var CreatePosCartRequestBody$;
|
|
20
|
-
(function (CreatePosCartRequestBody$) {
|
|
21
|
-
/** @deprecated use `CreatePosCartRequestBody$inboundSchema` instead. */
|
|
22
|
-
CreatePosCartRequestBody$.inboundSchema = CreatePosCartRequestBody$inboundSchema;
|
|
23
|
-
/** @deprecated use `CreatePosCartRequestBody$outboundSchema` instead. */
|
|
24
|
-
CreatePosCartRequestBody$.outboundSchema = CreatePosCartRequestBody$outboundSchema;
|
|
25
|
-
})(CreatePosCartRequestBody$ || (CreatePosCartRequestBody$ = {}));
|
|
26
|
-
export function createPosCartRequestBodyToJSON(createPosCartRequestBody) {
|
|
27
|
-
return JSON.stringify(CreatePosCartRequestBody$outboundSchema.parse(createPosCartRequestBody));
|
|
28
|
-
}
|
|
29
|
-
export function createPosCartRequestBodyFromJSON(jsonString) {
|
|
30
|
-
return safeParse(jsonString, (x) => CreatePosCartRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreatePosCartRequestBody' from JSON`);
|
|
31
|
-
}
|
|
32
|
-
/** @internal */
|
|
33
|
-
export const CreatePosCartContent$inboundSchema = z.object({
|
|
34
|
-
cart: components.Cart$inboundSchema.optional(),
|
|
35
|
-
});
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const CreatePosCartContent$outboundSchema = z.object({
|
|
38
|
-
cart: components.Cart$outboundSchema.optional(),
|
|
39
|
-
});
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
-
*/
|
|
44
|
-
export var CreatePosCartContent$;
|
|
45
|
-
(function (CreatePosCartContent$) {
|
|
46
|
-
/** @deprecated use `CreatePosCartContent$inboundSchema` instead. */
|
|
47
|
-
CreatePosCartContent$.inboundSchema = CreatePosCartContent$inboundSchema;
|
|
48
|
-
/** @deprecated use `CreatePosCartContent$outboundSchema` instead. */
|
|
49
|
-
CreatePosCartContent$.outboundSchema = CreatePosCartContent$outboundSchema;
|
|
50
|
-
})(CreatePosCartContent$ || (CreatePosCartContent$ = {}));
|
|
51
|
-
export function createPosCartContentToJSON(createPosCartContent) {
|
|
52
|
-
return JSON.stringify(CreatePosCartContent$outboundSchema.parse(createPosCartContent));
|
|
53
|
-
}
|
|
54
|
-
export function createPosCartContentFromJSON(jsonString) {
|
|
55
|
-
return safeParse(jsonString, (x) => CreatePosCartContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreatePosCartContent' from JSON`);
|
|
56
|
-
}
|
|
57
|
-
/** @internal */
|
|
58
|
-
export const CreatePosCartResponseBody$inboundSchema = z.object({
|
|
59
|
-
message: z.string().optional(),
|
|
60
|
-
success: z.string().optional(),
|
|
61
|
-
content: z.lazy(() => CreatePosCartContent$inboundSchema).optional(),
|
|
62
|
-
});
|
|
63
|
-
/** @internal */
|
|
64
|
-
export const CreatePosCartResponseBody$outboundSchema = z.object({
|
|
65
|
-
message: z.string().optional(),
|
|
66
|
-
success: z.string().optional(),
|
|
67
|
-
content: z.lazy(() => CreatePosCartContent$outboundSchema).optional(),
|
|
68
|
-
});
|
|
69
|
-
/**
|
|
70
|
-
* @internal
|
|
71
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
|
-
*/
|
|
73
|
-
export var CreatePosCartResponseBody$;
|
|
74
|
-
(function (CreatePosCartResponseBody$) {
|
|
75
|
-
/** @deprecated use `CreatePosCartResponseBody$inboundSchema` instead. */
|
|
76
|
-
CreatePosCartResponseBody$.inboundSchema = CreatePosCartResponseBody$inboundSchema;
|
|
77
|
-
/** @deprecated use `CreatePosCartResponseBody$outboundSchema` instead. */
|
|
78
|
-
CreatePosCartResponseBody$.outboundSchema = CreatePosCartResponseBody$outboundSchema;
|
|
79
|
-
})(CreatePosCartResponseBody$ || (CreatePosCartResponseBody$ = {}));
|
|
80
|
-
export function createPosCartResponseBodyToJSON(createPosCartResponseBody) {
|
|
81
|
-
return JSON.stringify(CreatePosCartResponseBody$outboundSchema.parse(createPosCartResponseBody));
|
|
82
|
-
}
|
|
83
|
-
export function createPosCartResponseBodyFromJSON(jsonString) {
|
|
84
|
-
return safeParse(jsonString, (x) => CreatePosCartResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreatePosCartResponseBody' from JSON`);
|
|
85
|
-
}
|
|
86
|
-
//# sourceMappingURL=createposcart.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createposcart.js","sourceRoot":"","sources":["../../../src/models/operations/createposcart.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAuBrD,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,8BAA8B,CAC5C,wBAAk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} from "../../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
export type LoginPosDeviceWithEmailSecurity = {
|
|
6
|
-
xApiKey: string;
|
|
7
|
-
};
|
|
8
|
-
export type LoginPosDeviceWithEmailRequestBody = {
|
|
9
|
-
deviceId: string;
|
|
10
|
-
email: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const LoginPosDeviceWithEmailOtpAction: {
|
|
13
|
-
readonly Login: "login";
|
|
14
|
-
};
|
|
15
|
-
export type LoginPosDeviceWithEmailOtpAction = ClosedEnum<typeof LoginPosDeviceWithEmailOtpAction>;
|
|
16
|
-
export type LoginPosDeviceWithEmailContent = {
|
|
17
|
-
otpToken: string;
|
|
18
|
-
otpAction: LoginPosDeviceWithEmailOtpAction;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* OK
|
|
22
|
-
*/
|
|
23
|
-
export type LoginPosDeviceWithEmailResponseBody = {
|
|
24
|
-
message: string;
|
|
25
|
-
success: string;
|
|
26
|
-
content: LoginPosDeviceWithEmailContent;
|
|
27
|
-
};
|
|
28
|
-
/** @internal */
|
|
29
|
-
export declare const LoginPosDeviceWithEmailSecurity$inboundSchema: z.ZodType<LoginPosDeviceWithEmailSecurity, z.ZodTypeDef, unknown>;
|
|
30
|
-
/** @internal */
|
|
31
|
-
export type LoginPosDeviceWithEmailSecurity$Outbound = {
|
|
32
|
-
"X-Api-Key": string;
|
|
33
|
-
};
|
|
34
|
-
/** @internal */
|
|
35
|
-
export declare const LoginPosDeviceWithEmailSecurity$outboundSchema: z.ZodType<LoginPosDeviceWithEmailSecurity$Outbound, z.ZodTypeDef, LoginPosDeviceWithEmailSecurity>;
|
|
36
|
-
/**
|
|
37
|
-
* @internal
|
|
38
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
39
|
-
*/
|
|
40
|
-
export declare namespace LoginPosDeviceWithEmailSecurity$ {
|
|
41
|
-
/** @deprecated use `LoginPosDeviceWithEmailSecurity$inboundSchema` instead. */
|
|
42
|
-
const inboundSchema: z.ZodType<LoginPosDeviceWithEmailSecurity, z.ZodTypeDef, unknown>;
|
|
43
|
-
/** @deprecated use `LoginPosDeviceWithEmailSecurity$outboundSchema` instead. */
|
|
44
|
-
const outboundSchema: z.ZodType<LoginPosDeviceWithEmailSecurity$Outbound, z.ZodTypeDef, LoginPosDeviceWithEmailSecurity>;
|
|
45
|
-
/** @deprecated use `LoginPosDeviceWithEmailSecurity$Outbound` instead. */
|
|
46
|
-
type Outbound = LoginPosDeviceWithEmailSecurity$Outbound;
|
|
47
|
-
}
|
|
48
|
-
export declare function loginPosDeviceWithEmailSecurityToJSON(loginPosDeviceWithEmailSecurity: LoginPosDeviceWithEmailSecurity): string;
|
|
49
|
-
export declare function loginPosDeviceWithEmailSecurityFromJSON(jsonString: string): SafeParseResult<LoginPosDeviceWithEmailSecurity, SDKValidationError>;
|
|
50
|
-
/** @internal */
|
|
51
|
-
export declare const LoginPosDeviceWithEmailRequestBody$inboundSchema: z.ZodType<LoginPosDeviceWithEmailRequestBody, z.ZodTypeDef, unknown>;
|
|
52
|
-
/** @internal */
|
|
53
|
-
export type LoginPosDeviceWithEmailRequestBody$Outbound = {
|
|
54
|
-
device_id: string;
|
|
55
|
-
email: string;
|
|
56
|
-
};
|
|
57
|
-
/** @internal */
|
|
58
|
-
export declare const LoginPosDeviceWithEmailRequestBody$outboundSchema: z.ZodType<LoginPosDeviceWithEmailRequestBody$Outbound, z.ZodTypeDef, LoginPosDeviceWithEmailRequestBody>;
|
|
59
|
-
/**
|
|
60
|
-
* @internal
|
|
61
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
62
|
-
*/
|
|
63
|
-
export declare namespace LoginPosDeviceWithEmailRequestBody$ {
|
|
64
|
-
/** @deprecated use `LoginPosDeviceWithEmailRequestBody$inboundSchema` instead. */
|
|
65
|
-
const inboundSchema: z.ZodType<LoginPosDeviceWithEmailRequestBody, z.ZodTypeDef, unknown>;
|
|
66
|
-
/** @deprecated use `LoginPosDeviceWithEmailRequestBody$outboundSchema` instead. */
|
|
67
|
-
const outboundSchema: z.ZodType<LoginPosDeviceWithEmailRequestBody$Outbound, z.ZodTypeDef, LoginPosDeviceWithEmailRequestBody>;
|
|
68
|
-
/** @deprecated use `LoginPosDeviceWithEmailRequestBody$Outbound` instead. */
|
|
69
|
-
type Outbound = LoginPosDeviceWithEmailRequestBody$Outbound;
|
|
70
|
-
}
|
|
71
|
-
export declare function loginPosDeviceWithEmailRequestBodyToJSON(loginPosDeviceWithEmailRequestBody: LoginPosDeviceWithEmailRequestBody): string;
|
|
72
|
-
export declare function loginPosDeviceWithEmailRequestBodyFromJSON(jsonString: string): SafeParseResult<LoginPosDeviceWithEmailRequestBody, SDKValidationError>;
|
|
73
|
-
/** @internal */
|
|
74
|
-
export declare const LoginPosDeviceWithEmailOtpAction$inboundSchema: z.ZodNativeEnum<typeof LoginPosDeviceWithEmailOtpAction>;
|
|
75
|
-
/** @internal */
|
|
76
|
-
export declare const LoginPosDeviceWithEmailOtpAction$outboundSchema: z.ZodNativeEnum<typeof LoginPosDeviceWithEmailOtpAction>;
|
|
77
|
-
/**
|
|
78
|
-
* @internal
|
|
79
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
80
|
-
*/
|
|
81
|
-
export declare namespace LoginPosDeviceWithEmailOtpAction$ {
|
|
82
|
-
/** @deprecated use `LoginPosDeviceWithEmailOtpAction$inboundSchema` instead. */
|
|
83
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
84
|
-
readonly Login: "login";
|
|
85
|
-
}>;
|
|
86
|
-
/** @deprecated use `LoginPosDeviceWithEmailOtpAction$outboundSchema` instead. */
|
|
87
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
88
|
-
readonly Login: "login";
|
|
89
|
-
}>;
|
|
90
|
-
}
|
|
91
|
-
/** @internal */
|
|
92
|
-
export declare const LoginPosDeviceWithEmailContent$inboundSchema: z.ZodType<LoginPosDeviceWithEmailContent, z.ZodTypeDef, unknown>;
|
|
93
|
-
/** @internal */
|
|
94
|
-
export type LoginPosDeviceWithEmailContent$Outbound = {
|
|
95
|
-
otp_token: string;
|
|
96
|
-
otp_action: string;
|
|
97
|
-
};
|
|
98
|
-
/** @internal */
|
|
99
|
-
export declare const LoginPosDeviceWithEmailContent$outboundSchema: z.ZodType<LoginPosDeviceWithEmailContent$Outbound, z.ZodTypeDef, LoginPosDeviceWithEmailContent>;
|
|
100
|
-
/**
|
|
101
|
-
* @internal
|
|
102
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
103
|
-
*/
|
|
104
|
-
export declare namespace LoginPosDeviceWithEmailContent$ {
|
|
105
|
-
/** @deprecated use `LoginPosDeviceWithEmailContent$inboundSchema` instead. */
|
|
106
|
-
const inboundSchema: z.ZodType<LoginPosDeviceWithEmailContent, z.ZodTypeDef, unknown>;
|
|
107
|
-
/** @deprecated use `LoginPosDeviceWithEmailContent$outboundSchema` instead. */
|
|
108
|
-
const outboundSchema: z.ZodType<LoginPosDeviceWithEmailContent$Outbound, z.ZodTypeDef, LoginPosDeviceWithEmailContent>;
|
|
109
|
-
/** @deprecated use `LoginPosDeviceWithEmailContent$Outbound` instead. */
|
|
110
|
-
type Outbound = LoginPosDeviceWithEmailContent$Outbound;
|
|
111
|
-
}
|
|
112
|
-
export declare function loginPosDeviceWithEmailContentToJSON(loginPosDeviceWithEmailContent: LoginPosDeviceWithEmailContent): string;
|
|
113
|
-
export declare function loginPosDeviceWithEmailContentFromJSON(jsonString: string): SafeParseResult<LoginPosDeviceWithEmailContent, SDKValidationError>;
|
|
114
|
-
/** @internal */
|
|
115
|
-
export declare const LoginPosDeviceWithEmailResponseBody$inboundSchema: z.ZodType<LoginPosDeviceWithEmailResponseBody, z.ZodTypeDef, unknown>;
|
|
116
|
-
/** @internal */
|
|
117
|
-
export type LoginPosDeviceWithEmailResponseBody$Outbound = {
|
|
118
|
-
message: string;
|
|
119
|
-
success: string;
|
|
120
|
-
content: LoginPosDeviceWithEmailContent$Outbound;
|
|
121
|
-
};
|
|
122
|
-
/** @internal */
|
|
123
|
-
export declare const LoginPosDeviceWithEmailResponseBody$outboundSchema: z.ZodType<LoginPosDeviceWithEmailResponseBody$Outbound, z.ZodTypeDef, LoginPosDeviceWithEmailResponseBody>;
|
|
124
|
-
/**
|
|
125
|
-
* @internal
|
|
126
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
127
|
-
*/
|
|
128
|
-
export declare namespace LoginPosDeviceWithEmailResponseBody$ {
|
|
129
|
-
/** @deprecated use `LoginPosDeviceWithEmailResponseBody$inboundSchema` instead. */
|
|
130
|
-
const inboundSchema: z.ZodType<LoginPosDeviceWithEmailResponseBody, z.ZodTypeDef, unknown>;
|
|
131
|
-
/** @deprecated use `LoginPosDeviceWithEmailResponseBody$outboundSchema` instead. */
|
|
132
|
-
const outboundSchema: z.ZodType<LoginPosDeviceWithEmailResponseBody$Outbound, z.ZodTypeDef, LoginPosDeviceWithEmailResponseBody>;
|
|
133
|
-
/** @deprecated use `LoginPosDeviceWithEmailResponseBody$Outbound` instead. */
|
|
134
|
-
type Outbound = LoginPosDeviceWithEmailResponseBody$Outbound;
|
|
135
|
-
}
|
|
136
|
-
export declare function loginPosDeviceWithEmailResponseBodyToJSON(loginPosDeviceWithEmailResponseBody: LoginPosDeviceWithEmailResponseBody): string;
|
|
137
|
-
export declare function loginPosDeviceWithEmailResponseBodyFromJSON(jsonString: string): SafeParseResult<LoginPosDeviceWithEmailResponseBody, SDKValidationError>;
|
|
138
|
-
//# sourceMappingURL=loginposdevicewithemail.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loginposdevicewithemail.d.ts","sourceRoot":"","sources":["../../../src/models/operations/loginposdevicewithemail.ts"],"names":[],"m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AAU,EACZ,mCAAmC,CAKnC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,oCAAoC,CAAC;IACpD,mFAAmF;IAC5E,MAAM,aAAa,uEACyB,CAAC;IACpD,oFAAoF;IAC7E,MAAM,cAAc,4GACyB,CAAC;IACrD,8EAA8E;IAC9E,KAAY,QAAQ,GAAG,4CAA4C,CAAC;CACrE;AAED,wBAAgB,yCAAyC,CACvD,mCAAmC,EAAE,mCAAmC,GACvE,MAAM,CAMR;AAED,wBAAgB,2CAA2C,CACzD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mCAAmC,EAAE,kBAAkB,CAAC,CAO1E"}
|
|
@@ -1,159 +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
|
-
export const LoginPosDeviceWithEmailOtpAction = {
|
|
8
|
-
Login: "login",
|
|
9
|
-
};
|
|
10
|
-
/** @internal */
|
|
11
|
-
export const LoginPosDeviceWithEmailSecurity$inboundSchema = z.object({
|
|
12
|
-
"X-Api-Key": z.string(),
|
|
13
|
-
}).transform((v) => {
|
|
14
|
-
return remap$(v, {
|
|
15
|
-
"X-Api-Key": "xApiKey",
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
/** @internal */
|
|
19
|
-
export const LoginPosDeviceWithEmailSecurity$outboundSchema = z.object({
|
|
20
|
-
xApiKey: z.string(),
|
|
21
|
-
}).transform((v) => {
|
|
22
|
-
return remap$(v, {
|
|
23
|
-
xApiKey: "X-Api-Key",
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
/**
|
|
27
|
-
* @internal
|
|
28
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
29
|
-
*/
|
|
30
|
-
export var LoginPosDeviceWithEmailSecurity$;
|
|
31
|
-
(function (LoginPosDeviceWithEmailSecurity$) {
|
|
32
|
-
/** @deprecated use `LoginPosDeviceWithEmailSecurity$inboundSchema` instead. */
|
|
33
|
-
LoginPosDeviceWithEmailSecurity$.inboundSchema = LoginPosDeviceWithEmailSecurity$inboundSchema;
|
|
34
|
-
/** @deprecated use `LoginPosDeviceWithEmailSecurity$outboundSchema` instead. */
|
|
35
|
-
LoginPosDeviceWithEmailSecurity$.outboundSchema = LoginPosDeviceWithEmailSecurity$outboundSchema;
|
|
36
|
-
})(LoginPosDeviceWithEmailSecurity$ || (LoginPosDeviceWithEmailSecurity$ = {}));
|
|
37
|
-
export function loginPosDeviceWithEmailSecurityToJSON(loginPosDeviceWithEmailSecurity) {
|
|
38
|
-
return JSON.stringify(LoginPosDeviceWithEmailSecurity$outboundSchema.parse(loginPosDeviceWithEmailSecurity));
|
|
39
|
-
}
|
|
40
|
-
export function loginPosDeviceWithEmailSecurityFromJSON(jsonString) {
|
|
41
|
-
return safeParse(jsonString, (x) => LoginPosDeviceWithEmailSecurity$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LoginPosDeviceWithEmailSecurity' from JSON`);
|
|
42
|
-
}
|
|
43
|
-
/** @internal */
|
|
44
|
-
export const LoginPosDeviceWithEmailRequestBody$inboundSchema = z.object({
|
|
45
|
-
device_id: z.string(),
|
|
46
|
-
email: z.string(),
|
|
47
|
-
}).transform((v) => {
|
|
48
|
-
return remap$(v, {
|
|
49
|
-
"device_id": "deviceId",
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
/** @internal */
|
|
53
|
-
export const LoginPosDeviceWithEmailRequestBody$outboundSchema = z.object({
|
|
54
|
-
deviceId: z.string(),
|
|
55
|
-
email: z.string(),
|
|
56
|
-
}).transform((v) => {
|
|
57
|
-
return remap$(v, {
|
|
58
|
-
deviceId: "device_id",
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
-
*/
|
|
65
|
-
export var LoginPosDeviceWithEmailRequestBody$;
|
|
66
|
-
(function (LoginPosDeviceWithEmailRequestBody$) {
|
|
67
|
-
/** @deprecated use `LoginPosDeviceWithEmailRequestBody$inboundSchema` instead. */
|
|
68
|
-
LoginPosDeviceWithEmailRequestBody$.inboundSchema = LoginPosDeviceWithEmailRequestBody$inboundSchema;
|
|
69
|
-
/** @deprecated use `LoginPosDeviceWithEmailRequestBody$outboundSchema` instead. */
|
|
70
|
-
LoginPosDeviceWithEmailRequestBody$.outboundSchema = LoginPosDeviceWithEmailRequestBody$outboundSchema;
|
|
71
|
-
})(LoginPosDeviceWithEmailRequestBody$ || (LoginPosDeviceWithEmailRequestBody$ = {}));
|
|
72
|
-
export function loginPosDeviceWithEmailRequestBodyToJSON(loginPosDeviceWithEmailRequestBody) {
|
|
73
|
-
return JSON.stringify(LoginPosDeviceWithEmailRequestBody$outboundSchema.parse(loginPosDeviceWithEmailRequestBody));
|
|
74
|
-
}
|
|
75
|
-
export function loginPosDeviceWithEmailRequestBodyFromJSON(jsonString) {
|
|
76
|
-
return safeParse(jsonString, (x) => LoginPosDeviceWithEmailRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LoginPosDeviceWithEmailRequestBody' from JSON`);
|
|
77
|
-
}
|
|
78
|
-
/** @internal */
|
|
79
|
-
export const LoginPosDeviceWithEmailOtpAction$inboundSchema = z.nativeEnum(LoginPosDeviceWithEmailOtpAction);
|
|
80
|
-
/** @internal */
|
|
81
|
-
export const LoginPosDeviceWithEmailOtpAction$outboundSchema = LoginPosDeviceWithEmailOtpAction$inboundSchema;
|
|
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 var LoginPosDeviceWithEmailOtpAction$;
|
|
87
|
-
(function (LoginPosDeviceWithEmailOtpAction$) {
|
|
88
|
-
/** @deprecated use `LoginPosDeviceWithEmailOtpAction$inboundSchema` instead. */
|
|
89
|
-
LoginPosDeviceWithEmailOtpAction$.inboundSchema = LoginPosDeviceWithEmailOtpAction$inboundSchema;
|
|
90
|
-
/** @deprecated use `LoginPosDeviceWithEmailOtpAction$outboundSchema` instead. */
|
|
91
|
-
LoginPosDeviceWithEmailOtpAction$.outboundSchema = LoginPosDeviceWithEmailOtpAction$outboundSchema;
|
|
92
|
-
})(LoginPosDeviceWithEmailOtpAction$ || (LoginPosDeviceWithEmailOtpAction$ = {}));
|
|
93
|
-
/** @internal */
|
|
94
|
-
export const LoginPosDeviceWithEmailContent$inboundSchema = z.object({
|
|
95
|
-
otp_token: z.string(),
|
|
96
|
-
otp_action: LoginPosDeviceWithEmailOtpAction$inboundSchema,
|
|
97
|
-
}).transform((v) => {
|
|
98
|
-
return remap$(v, {
|
|
99
|
-
"otp_token": "otpToken",
|
|
100
|
-
"otp_action": "otpAction",
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
/** @internal */
|
|
104
|
-
export const LoginPosDeviceWithEmailContent$outboundSchema = z.object({
|
|
105
|
-
otpToken: z.string(),
|
|
106
|
-
otpAction: LoginPosDeviceWithEmailOtpAction$outboundSchema,
|
|
107
|
-
}).transform((v) => {
|
|
108
|
-
return remap$(v, {
|
|
109
|
-
otpToken: "otp_token",
|
|
110
|
-
otpAction: "otp_action",
|
|
111
|
-
});
|
|
112
|
-
});
|
|
113
|
-
/**
|
|
114
|
-
* @internal
|
|
115
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
116
|
-
*/
|
|
117
|
-
export var LoginPosDeviceWithEmailContent$;
|
|
118
|
-
(function (LoginPosDeviceWithEmailContent$) {
|
|
119
|
-
/** @deprecated use `LoginPosDeviceWithEmailContent$inboundSchema` instead. */
|
|
120
|
-
LoginPosDeviceWithEmailContent$.inboundSchema = LoginPosDeviceWithEmailContent$inboundSchema;
|
|
121
|
-
/** @deprecated use `LoginPosDeviceWithEmailContent$outboundSchema` instead. */
|
|
122
|
-
LoginPosDeviceWithEmailContent$.outboundSchema = LoginPosDeviceWithEmailContent$outboundSchema;
|
|
123
|
-
})(LoginPosDeviceWithEmailContent$ || (LoginPosDeviceWithEmailContent$ = {}));
|
|
124
|
-
export function loginPosDeviceWithEmailContentToJSON(loginPosDeviceWithEmailContent) {
|
|
125
|
-
return JSON.stringify(LoginPosDeviceWithEmailContent$outboundSchema.parse(loginPosDeviceWithEmailContent));
|
|
126
|
-
}
|
|
127
|
-
export function loginPosDeviceWithEmailContentFromJSON(jsonString) {
|
|
128
|
-
return safeParse(jsonString, (x) => LoginPosDeviceWithEmailContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LoginPosDeviceWithEmailContent' from JSON`);
|
|
129
|
-
}
|
|
130
|
-
/** @internal */
|
|
131
|
-
export const LoginPosDeviceWithEmailResponseBody$inboundSchema = z.object({
|
|
132
|
-
message: z.string(),
|
|
133
|
-
success: z.string(),
|
|
134
|
-
content: z.lazy(() => LoginPosDeviceWithEmailContent$inboundSchema),
|
|
135
|
-
});
|
|
136
|
-
/** @internal */
|
|
137
|
-
export const LoginPosDeviceWithEmailResponseBody$outboundSchema = z.object({
|
|
138
|
-
message: z.string(),
|
|
139
|
-
success: z.string(),
|
|
140
|
-
content: z.lazy(() => LoginPosDeviceWithEmailContent$outboundSchema),
|
|
141
|
-
});
|
|
142
|
-
/**
|
|
143
|
-
* @internal
|
|
144
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
145
|
-
*/
|
|
146
|
-
export var LoginPosDeviceWithEmailResponseBody$;
|
|
147
|
-
(function (LoginPosDeviceWithEmailResponseBody$) {
|
|
148
|
-
/** @deprecated use `LoginPosDeviceWithEmailResponseBody$inboundSchema` instead. */
|
|
149
|
-
LoginPosDeviceWithEmailResponseBody$.inboundSchema = LoginPosDeviceWithEmailResponseBody$inboundSchema;
|
|
150
|
-
/** @deprecated use `LoginPosDeviceWithEmailResponseBody$outboundSchema` instead. */
|
|
151
|
-
LoginPosDeviceWithEmailResponseBody$.outboundSchema = LoginPosDeviceWithEmailResponseBody$outboundSchema;
|
|
152
|
-
})(LoginPosDeviceWithEmailResponseBody$ || (LoginPosDeviceWithEmailResponseBody$ = {}));
|
|
153
|
-
export function loginPosDeviceWithEmailResponseBodyToJSON(loginPosDeviceWithEmailResponseBody) {
|
|
154
|
-
return JSON.stringify(LoginPosDeviceWithEmailResponseBody$outboundSchema.parse(loginPosDeviceWithEmailResponseBody));
|
|
155
|
-
}
|
|
156
|
-
export function loginPosDeviceWithEmailResponseBodyFromJSON(jsonString) {
|
|
157
|
-
return safeParse(jsonString, (x) => LoginPosDeviceWithEmailResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LoginPosDeviceWithEmailResponseBody' from JSON`);
|
|
158
|
-
}
|
|
159
|
-
//# sourceMappingURL=loginposdevicewithemail.js.map
|