bitsnap-react 1.4.7 → 1.4.9
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/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +12 -24
- package/dist/errors.d.mts +0 -2
- package/dist/errors.d.ts +0 -2
- package/dist/index.d.mts +0 -369
- package/dist/index.d.ts +0 -369
- package/dist/internal.d.mts +0 -2
- package/dist/internal.d.ts +0 -2
- package/dist/models.d.mts +0 -231
- package/dist/models.d.ts +0 -231
package/dist/index.d.ts
DELETED
|
@@ -1,369 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import z__default from 'zod';
|
|
4
|
-
|
|
5
|
-
type AppleButtonType = "plain" | "add-money" | "book" | "buy" | "check-out" | "continue" | "contribute" | "donate" | "order" | "pay" | "reload" | "rent" | "set-up" | "subscribe" | "support" | "tip" | "top-up";
|
|
6
|
-
type ColorType = "black" | "white" | "white-outline";
|
|
7
|
-
type Props$3 = {
|
|
8
|
-
style?: {
|
|
9
|
-
width?: string;
|
|
10
|
-
height?: string;
|
|
11
|
-
borderRadius?: string;
|
|
12
|
-
padding?: string;
|
|
13
|
-
boxSizing?: string;
|
|
14
|
-
};
|
|
15
|
-
buttonType?: AppleButtonType;
|
|
16
|
-
colorType?: ColorType;
|
|
17
|
-
items: {
|
|
18
|
-
name: string;
|
|
19
|
-
id: string;
|
|
20
|
-
price: number;
|
|
21
|
-
quantity: number;
|
|
22
|
-
isDeliverable?: boolean;
|
|
23
|
-
metadata?: {
|
|
24
|
-
[key: string]: string | undefined;
|
|
25
|
-
};
|
|
26
|
-
}[];
|
|
27
|
-
onClick?: () => Promise<void>;
|
|
28
|
-
};
|
|
29
|
-
declare function Wrapper$2(props: Props$3): react_jsx_runtime.JSX.Element;
|
|
30
|
-
|
|
31
|
-
type BitsnapCartProps = {
|
|
32
|
-
projectID: string;
|
|
33
|
-
children?: React.ReactNode;
|
|
34
|
-
onVisibleChange?: (isVisible: boolean) => void;
|
|
35
|
-
className?: string;
|
|
36
|
-
numberOfProductsInCartOptions?: {
|
|
37
|
-
style?: React.CSSProperties;
|
|
38
|
-
isVisible?: boolean;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
declare function BitsnapCart({ projectID, children, onVisibleChange, className, numberOfProductsInCartOptions, }: BitsnapCartProps): react_jsx_runtime.JSX.Element;
|
|
42
|
-
|
|
43
|
-
type Props$2 = {
|
|
44
|
-
test?: boolean;
|
|
45
|
-
buttonSizeMode?: "static" | "fill";
|
|
46
|
-
buttonColor?: "white" | "black";
|
|
47
|
-
style?: {
|
|
48
|
-
width?: string;
|
|
49
|
-
};
|
|
50
|
-
items: {
|
|
51
|
-
name: string;
|
|
52
|
-
id: string;
|
|
53
|
-
price: number;
|
|
54
|
-
quantity: number;
|
|
55
|
-
isDeliverable?: boolean;
|
|
56
|
-
metadata?: {
|
|
57
|
-
[key: string]: string | undefined;
|
|
58
|
-
};
|
|
59
|
-
}[];
|
|
60
|
-
};
|
|
61
|
-
declare function Wrapper$1(props: Props$2): react_jsx_runtime.JSX.Element;
|
|
62
|
-
|
|
63
|
-
type PublicNotificationGroup = {
|
|
64
|
-
id: string;
|
|
65
|
-
isOn?: boolean;
|
|
66
|
-
};
|
|
67
|
-
type NotificationGroup = {
|
|
68
|
-
id: string;
|
|
69
|
-
name: string;
|
|
70
|
-
description?: string;
|
|
71
|
-
howOften?: string;
|
|
72
|
-
isOn?: boolean;
|
|
73
|
-
};
|
|
74
|
-
interface CustomizationTexts {
|
|
75
|
-
title?: string | null;
|
|
76
|
-
description?: string | null;
|
|
77
|
-
managingDescription?: string;
|
|
78
|
-
formTitle?: string;
|
|
79
|
-
formEmailLabel?: string;
|
|
80
|
-
formPhoneLabel?: string;
|
|
81
|
-
formPhoneOptional?: string;
|
|
82
|
-
formEmailPlaceholder?: string;
|
|
83
|
-
formPhonePlaceholder?: string;
|
|
84
|
-
formSubmitButton?: string;
|
|
85
|
-
formSuccessMessage?: string;
|
|
86
|
-
agreementText?: string | ReactNode;
|
|
87
|
-
qrCodeTitle?: string;
|
|
88
|
-
qrCodeSubtitle?: string;
|
|
89
|
-
qrCodeScanText?: string;
|
|
90
|
-
groupsNoSelectionWarning?: string;
|
|
91
|
-
groupsTitle?: string;
|
|
92
|
-
groupsSelectAllButton?: string;
|
|
93
|
-
groupsUpdateButton?: string;
|
|
94
|
-
groupsUpdateSuccess?: string;
|
|
95
|
-
manageDataTitle?: string;
|
|
96
|
-
manageDataDescription?: string;
|
|
97
|
-
manageDataUnsubscribeButton?: string;
|
|
98
|
-
manageDataUnsubscribeDescription?: string;
|
|
99
|
-
manageDataUpdatedMessage?: string;
|
|
100
|
-
loginEmailLabel?: string;
|
|
101
|
-
loginEmailPlaceholder?: string;
|
|
102
|
-
loginSendCodeButton?: string;
|
|
103
|
-
loginIHaveCode?: string;
|
|
104
|
-
loginSendingButton?: string;
|
|
105
|
-
loginCodeLabel?: string;
|
|
106
|
-
loginCodeSentMessage?: string;
|
|
107
|
-
loginChangeEmailButton?: string;
|
|
108
|
-
loginResendCodeButton?: string;
|
|
109
|
-
loginInvalidEmailError?: string;
|
|
110
|
-
loginSlugRequiredError?: string;
|
|
111
|
-
loginVerificationFailedError?: string;
|
|
112
|
-
loginInvalidCodeError?: string;
|
|
113
|
-
loginSendEmailError?: string;
|
|
114
|
-
loginVerifyCodeError?: string;
|
|
115
|
-
loginResendEmailError?: string;
|
|
116
|
-
loginTitle?: string;
|
|
117
|
-
loginDescription?: string;
|
|
118
|
-
}
|
|
119
|
-
interface ComponentClassNames {
|
|
120
|
-
container?: string;
|
|
121
|
-
header?: string;
|
|
122
|
-
headerTitle?: string;
|
|
123
|
-
headerLogo?: string;
|
|
124
|
-
headerDescription?: string;
|
|
125
|
-
groupsContainer?: string;
|
|
126
|
-
groupsList?: string;
|
|
127
|
-
groupItem?: string;
|
|
128
|
-
qrCodeSection?: string;
|
|
129
|
-
qrCodeTitle?: string;
|
|
130
|
-
qrCodeContainer?: string;
|
|
131
|
-
formSection?: string;
|
|
132
|
-
formTitle?: string;
|
|
133
|
-
formContainer?: string;
|
|
134
|
-
manageDataSection?: string;
|
|
135
|
-
manageDataTitle?: string;
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* Props for the NotificationsComponentPublic component.
|
|
139
|
-
*/
|
|
140
|
-
interface NotificationsComponentPublicProps {
|
|
141
|
-
/**
|
|
142
|
-
* Unique identifier for the project (if not provided, productID will be used via CartProvider).
|
|
143
|
-
*/
|
|
144
|
-
slug?: string;
|
|
145
|
-
/**
|
|
146
|
-
* Unique identifier for the user.
|
|
147
|
-
*/
|
|
148
|
-
userID?: string;
|
|
149
|
-
/**
|
|
150
|
-
* Project ID (alternative to slug, used if slug is not provided).
|
|
151
|
-
*/
|
|
152
|
-
productID?: string;
|
|
153
|
-
/**
|
|
154
|
-
* Name of the project, displayed in the component.
|
|
155
|
-
*/
|
|
156
|
-
projectName?: string;
|
|
157
|
-
/**
|
|
158
|
-
* URL or path to the project's logo (light mode).
|
|
159
|
-
*/
|
|
160
|
-
projectLogo?: string;
|
|
161
|
-
/**
|
|
162
|
-
* URL or path to the project's logo (dark mode).
|
|
163
|
-
*/
|
|
164
|
-
projectLogoDark?: string;
|
|
165
|
-
/**
|
|
166
|
-
* Array of notification groups that the user can subscribe to. If you will provide group, we will not show all possible public groups from dashboard.
|
|
167
|
-
*/
|
|
168
|
-
groups?: PublicNotificationGroup[];
|
|
169
|
-
/**
|
|
170
|
-
* If true, the component is rendered in "manage my notifications" mode.
|
|
171
|
-
*/
|
|
172
|
-
isManaging?: boolean;
|
|
173
|
-
/**
|
|
174
|
-
* Custom texts used throughout the component for i18n or personalisation.
|
|
175
|
-
*/
|
|
176
|
-
texts?: CustomizationTexts;
|
|
177
|
-
/**
|
|
178
|
-
* If true, show the QR code section that allows users to get a mobile app.
|
|
179
|
-
*/
|
|
180
|
-
showQRCode?: boolean;
|
|
181
|
-
/**
|
|
182
|
-
* If true, show the phone input in the notification form.
|
|
183
|
-
*/
|
|
184
|
-
showPhoneInput?: boolean;
|
|
185
|
-
/**
|
|
186
|
-
* List of group IDs to hide from the selection interface.
|
|
187
|
-
*/
|
|
188
|
-
hiddenGroupIds?: string[];
|
|
189
|
-
/**
|
|
190
|
-
* Custom CSS class names for various component sections (for easier styling).
|
|
191
|
-
*/
|
|
192
|
-
className?: ComponentClassNames;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
type Props$1 = NotificationsComponentPublicProps;
|
|
196
|
-
declare function Wrapper({ slug, userID, productID, projectName, projectLogo, projectLogoDark, groups, isManaging, texts, showQRCode, showPhoneInput, hiddenGroupIds, className, }: Props$1): react_jsx_runtime.JSX.Element;
|
|
197
|
-
|
|
198
|
-
type ErrTypes = "internal" | "badInput" | "notFound";
|
|
199
|
-
type Err = {
|
|
200
|
-
ERR: true;
|
|
201
|
-
error: unknown;
|
|
202
|
-
type?: ErrTypes;
|
|
203
|
-
data?: unknown;
|
|
204
|
-
};
|
|
205
|
-
declare function Err(message: string, type?: ErrTypes, data?: unknown): Err;
|
|
206
|
-
|
|
207
|
-
declare function setProjectID$1(projectID: string): void;
|
|
208
|
-
|
|
209
|
-
declare function setCustomHost(host: string): void;
|
|
210
|
-
|
|
211
|
-
declare enum BillingPeriod {
|
|
212
|
-
DAILY = "daily",
|
|
213
|
-
WEEKLY = "weekly",
|
|
214
|
-
MONTHLY = "monthly",
|
|
215
|
-
QUARTERLY = "quarterly",
|
|
216
|
-
SEMI_ANNUALLY = "semi-annually",
|
|
217
|
-
ANNUALLY = "annually"
|
|
218
|
-
}
|
|
219
|
-
type LinkRequest = z__default.infer<typeof linkRequestSchema>;
|
|
220
|
-
declare const linkRequestSchema: z__default.ZodObject<{
|
|
221
|
-
askForAddress: z__default.ZodOptional<z__default.ZodBoolean>;
|
|
222
|
-
askForPhone: z__default.ZodOptional<z__default.ZodBoolean>;
|
|
223
|
-
askForNote: z__default.ZodOptional<z__default.ZodBoolean>;
|
|
224
|
-
askForNip: z__default.ZodOptional<z__default.ZodBoolean>;
|
|
225
|
-
delivery: z__default.ZodOptional<z__default.ZodArray<z__default.ZodObject<{
|
|
226
|
-
name: z__default.ZodString;
|
|
227
|
-
desc: z__default.ZodOptional<z__default.ZodString>;
|
|
228
|
-
min: z__default.ZodNumber;
|
|
229
|
-
max: z__default.ZodNumber;
|
|
230
|
-
price: z__default.ZodPipe<z__default.ZodNumber, z__default.ZodTransform<number, number>>;
|
|
231
|
-
}, z__default.core.$strip>>>;
|
|
232
|
-
deliveryMethod: z__default.ZodOptional<z__default.ZodString>;
|
|
233
|
-
details: z__default.ZodOptional<z__default.ZodObject<{
|
|
234
|
-
email: z__default.ZodOptional<z__default.ZodString>;
|
|
235
|
-
name: z__default.ZodOptional<z__default.ZodString>;
|
|
236
|
-
lastName: z__default.ZodOptional<z__default.ZodString>;
|
|
237
|
-
phone: z__default.ZodOptional<z__default.ZodString>;
|
|
238
|
-
address: z__default.ZodOptional<z__default.ZodObject<{
|
|
239
|
-
name: z__default.ZodOptional<z__default.ZodString>;
|
|
240
|
-
line1: z__default.ZodOptional<z__default.ZodString>;
|
|
241
|
-
line2: z__default.ZodOptional<z__default.ZodString>;
|
|
242
|
-
city: z__default.ZodOptional<z__default.ZodString>;
|
|
243
|
-
zipCode: z__default.ZodOptional<z__default.ZodString>;
|
|
244
|
-
country: z__default.ZodOptional<z__default.ZodString>;
|
|
245
|
-
}, z__default.core.$strip>>;
|
|
246
|
-
billingAddress: z__default.ZodOptional<z__default.ZodObject<{
|
|
247
|
-
nip: z__default.ZodOptional<z__default.ZodString>;
|
|
248
|
-
name: z__default.ZodOptional<z__default.ZodString>;
|
|
249
|
-
line1: z__default.ZodOptional<z__default.ZodString>;
|
|
250
|
-
line2: z__default.ZodOptional<z__default.ZodString>;
|
|
251
|
-
city: z__default.ZodOptional<z__default.ZodString>;
|
|
252
|
-
zipCode: z__default.ZodOptional<z__default.ZodString>;
|
|
253
|
-
}, z__default.core.$strip>>;
|
|
254
|
-
}, z__default.core.$strip>>;
|
|
255
|
-
countries: z__default.ZodOptional<z__default.ZodArray<z__default.ZodString>>;
|
|
256
|
-
items: z__default.ZodArray<z__default.ZodObject<{
|
|
257
|
-
id: z__default.ZodString;
|
|
258
|
-
quantity: z__default.ZodNumber;
|
|
259
|
-
name: z__default.ZodOptional<z__default.ZodString>;
|
|
260
|
-
description: z__default.ZodOptional<z__default.ZodString>;
|
|
261
|
-
imageURL: z__default.ZodOptional<z__default.ZodString>;
|
|
262
|
-
price: z__default.ZodOptional<z__default.ZodNumber>;
|
|
263
|
-
currency: z__default.ZodOptional<z__default.ZodString>;
|
|
264
|
-
recurring: z__default.ZodOptional<z__default.ZodObject<{
|
|
265
|
-
billingPeriod: z__default.ZodEnum<{
|
|
266
|
-
daily: BillingPeriod.DAILY;
|
|
267
|
-
weekly: BillingPeriod.WEEKLY;
|
|
268
|
-
monthly: BillingPeriod.MONTHLY;
|
|
269
|
-
quarterly: BillingPeriod.QUARTERLY;
|
|
270
|
-
"semi-annually": BillingPeriod.SEMI_ANNUALLY;
|
|
271
|
-
annually: BillingPeriod.ANNUALLY;
|
|
272
|
-
}>;
|
|
273
|
-
trialDays: z__default.ZodOptional<z__default.ZodNumber>;
|
|
274
|
-
subscriptionSchedule: z__default.ZodOptional<z__default.ZodNumber>;
|
|
275
|
-
}, z__default.core.$strip>>;
|
|
276
|
-
}, z__default.core.$strip>>;
|
|
277
|
-
metadata: z__default.ZodOptional<z__default.ZodRecord<z__default.ZodString, z__default.ZodString>>;
|
|
278
|
-
additionalAgreements: z__default.ZodOptional<z__default.ZodArray<z__default.ZodObject<{
|
|
279
|
-
id: z__default.ZodOptional<z__default.ZodString>;
|
|
280
|
-
name: z__default.ZodString;
|
|
281
|
-
description: z__default.ZodOptional<z__default.ZodString>;
|
|
282
|
-
required: z__default.ZodDefault<z__default.ZodBoolean>;
|
|
283
|
-
answer: z__default.ZodOptional<z__default.ZodBoolean>;
|
|
284
|
-
}, z__default.core.$strip>>>;
|
|
285
|
-
blikCode: z__default.ZodOptional<z__default.ZodString>;
|
|
286
|
-
couponCode: z__default.ZodOptional<z__default.ZodString>;
|
|
287
|
-
redirect: z__default.ZodOptional<z__default.ZodObject<{
|
|
288
|
-
successURL: z__default.ZodOptional<z__default.ZodString>;
|
|
289
|
-
cancelURL: z__default.ZodOptional<z__default.ZodString>;
|
|
290
|
-
}, z__default.core.$strip>>;
|
|
291
|
-
}, z__default.core.$strip>;
|
|
292
|
-
|
|
293
|
-
declare namespace Bitsnap {
|
|
294
|
-
function addProductToCart(id: string, quantity?: number, metadata?: Record<string, string | undefined>, args?: {
|
|
295
|
-
name?: string;
|
|
296
|
-
price?: number;
|
|
297
|
-
currency?: string;
|
|
298
|
-
}): Promise<Err | undefined>;
|
|
299
|
-
function showCart(): void;
|
|
300
|
-
function hideCart(): void;
|
|
301
|
-
}
|
|
302
|
-
declare function createPaymentURL(request: LinkRequest): Promise<Err | {
|
|
303
|
-
url: string;
|
|
304
|
-
}>;
|
|
305
|
-
declare function createCheckout(request: LinkRequest & {
|
|
306
|
-
apiKey?: string;
|
|
307
|
-
testMode?: boolean;
|
|
308
|
-
}): Promise<{
|
|
309
|
-
status: string;
|
|
310
|
-
redirectURL: string;
|
|
311
|
-
}>;
|
|
312
|
-
declare function getReferenceIfPossible(): string | undefined;
|
|
313
|
-
declare function injectReferenceToRequestIfNeeded(request: LinkRequest): LinkRequest;
|
|
314
|
-
|
|
315
|
-
declare const PanelLogin: () => react_jsx_runtime.JSX.Element;
|
|
316
|
-
|
|
317
|
-
declare const PanelPage: () => react_jsx_runtime.JSX.Element;
|
|
318
|
-
|
|
319
|
-
interface Props {
|
|
320
|
-
orderID: string;
|
|
321
|
-
initialEmail?: string;
|
|
322
|
-
accessToken?: string;
|
|
323
|
-
onBack?: () => void;
|
|
324
|
-
}
|
|
325
|
-
declare function PublicOrderPage(props: Props): react_jsx_runtime.JSX.Element;
|
|
326
|
-
|
|
327
|
-
interface GetThemeOutput {
|
|
328
|
-
logoURL?: string;
|
|
329
|
-
logoDarkURL?: string;
|
|
330
|
-
colors?: {
|
|
331
|
-
brand?: string;
|
|
332
|
-
brandDark?: string;
|
|
333
|
-
};
|
|
334
|
-
}
|
|
335
|
-
type PanelScreen = "products" | "notifications" | "profile" | "plans" | "orders" | "order-details";
|
|
336
|
-
type PanelSearchParamsType = {
|
|
337
|
-
product?: string;
|
|
338
|
-
state: PanelScreen;
|
|
339
|
-
orderId?: string;
|
|
340
|
-
};
|
|
341
|
-
interface PanelProps {
|
|
342
|
-
projectID: string;
|
|
343
|
-
theme?: GetThemeOutput;
|
|
344
|
-
loginURL: string;
|
|
345
|
-
}
|
|
346
|
-
interface PanelLoginProps {
|
|
347
|
-
projectID: string;
|
|
348
|
-
theme?: GetThemeOutput;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
interface PanelConfig {
|
|
352
|
-
projectID?: string;
|
|
353
|
-
loginURL?: string;
|
|
354
|
-
theme?: GetThemeOutput;
|
|
355
|
-
host?: string;
|
|
356
|
-
}
|
|
357
|
-
declare function setPanelConfig(newConfig: Partial<PanelConfig>): void;
|
|
358
|
-
declare function getPanelConfig(): PanelConfig;
|
|
359
|
-
declare function setProjectID(projectID: string): void;
|
|
360
|
-
declare function setTheme(theme: GetThemeOutput): void;
|
|
361
|
-
declare function setLoginURL(loginURL: string): void;
|
|
362
|
-
declare function setHost(host: string): void;
|
|
363
|
-
|
|
364
|
-
declare const PanelProvider: React.FC<{
|
|
365
|
-
children: React.ReactNode;
|
|
366
|
-
}>;
|
|
367
|
-
declare const usePanelConfig: () => PanelConfig;
|
|
368
|
-
|
|
369
|
-
export { Wrapper$2 as ApplePayButton, type Props$3 as ApplePayButtonProps, Bitsnap, type BitsnapCartProps, BitsnapCart as BitsnapCheckout, type ComponentClassNames, type CustomizationTexts, type GetThemeOutput, Wrapper$1 as GooglePayButton, type Props$2 as GooglePayButtonProps, type LinkRequest, type NotificationGroup, Wrapper as NotificationsComponent, type Props$1 as NotificationsComponentProps, type NotificationsComponentPublicProps, PanelPage as Panel, type PanelConfig, PanelLogin, type PanelLoginProps, type PanelProps, PanelProvider, type PanelScreen, type PanelSearchParamsType, type PublicNotificationGroup, PublicOrderPage, createCheckout, createPaymentURL, getPanelConfig, getReferenceIfPossible, injectReferenceToRequestIfNeeded, setCustomHost, setHost, setLoginURL, setPanelConfig, setProjectID as setPanelProjectID, setProjectID$1 as setProjectID, setTheme, usePanelConfig };
|
package/dist/internal.d.mts
DELETED
package/dist/internal.d.ts
DELETED
package/dist/models.d.mts
DELETED
|
@@ -1,231 +0,0 @@
|
|
|
1
|
-
import * as z from 'zod';
|
|
2
|
-
|
|
3
|
-
declare namespace BitsnapModels {
|
|
4
|
-
const BaselinkerFieldsSchema: z.ZodObject<{
|
|
5
|
-
storageID: z.ZodOptional<z.ZodString>;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
type BaselinkerFields = z.infer<typeof BaselinkerFieldsSchema>;
|
|
8
|
-
const MetadataSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
9
|
-
const VariantSchema: z.ZodObject<{
|
|
10
|
-
id: z.ZodString;
|
|
11
|
-
name: z.ZodString;
|
|
12
|
-
price: z.ZodNumber;
|
|
13
|
-
currency: z.ZodString;
|
|
14
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
15
|
-
images: z.ZodArray<z.ZodString>;
|
|
16
|
-
availableQuantity: z.ZodOptional<z.ZodNumber>;
|
|
17
|
-
isDeliverable: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
-
estimatedDeliveryAt: z.ZodOptional<z.ZodNumber>;
|
|
19
|
-
}, z.core.$strip>;
|
|
20
|
-
type Variant = z.infer<typeof VariantSchema>;
|
|
21
|
-
const AdditionalSchema: z.ZodObject<{
|
|
22
|
-
sku: z.ZodOptional<z.ZodString>;
|
|
23
|
-
baselinkerFields: z.ZodOptional<z.ZodObject<{
|
|
24
|
-
storageID: z.ZodOptional<z.ZodString>;
|
|
25
|
-
}, z.core.$strip>>;
|
|
26
|
-
isPresale: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
-
}, z.core.$strip>;
|
|
28
|
-
type Additional = z.infer<typeof AdditionalSchema>;
|
|
29
|
-
const ItemSchema: z.ZodObject<{
|
|
30
|
-
id: z.ZodString;
|
|
31
|
-
ownerID: z.ZodOptional<z.ZodString>;
|
|
32
|
-
name: z.ZodString;
|
|
33
|
-
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
34
|
-
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
35
|
-
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
36
|
-
price: z.ZodNumber;
|
|
37
|
-
currency: z.ZodString;
|
|
38
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
39
|
-
image_url: z.ZodString;
|
|
40
|
-
images: z.ZodArray<z.ZodString>;
|
|
41
|
-
isDeliverable: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
-
availableQuantity: z.ZodOptional<z.ZodNumber>;
|
|
43
|
-
additional: z.ZodOptional<z.ZodObject<{
|
|
44
|
-
sku: z.ZodOptional<z.ZodString>;
|
|
45
|
-
baselinkerFields: z.ZodOptional<z.ZodObject<{
|
|
46
|
-
storageID: z.ZodOptional<z.ZodString>;
|
|
47
|
-
}, z.core.$strip>>;
|
|
48
|
-
isPresale: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
-
}, z.core.$strip>>;
|
|
50
|
-
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
51
|
-
id: z.ZodString;
|
|
52
|
-
name: z.ZodString;
|
|
53
|
-
price: z.ZodNumber;
|
|
54
|
-
currency: z.ZodString;
|
|
55
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
56
|
-
images: z.ZodArray<z.ZodString>;
|
|
57
|
-
availableQuantity: z.ZodOptional<z.ZodNumber>;
|
|
58
|
-
isDeliverable: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
-
estimatedDeliveryAt: z.ZodOptional<z.ZodNumber>;
|
|
60
|
-
}, z.core.$strip>>>;
|
|
61
|
-
estimatedDeliveryAt: z.ZodOptional<z.ZodNumber>;
|
|
62
|
-
}, z.core.$strip>;
|
|
63
|
-
type Item = z.infer<typeof ItemSchema>;
|
|
64
|
-
const DataSchema: z.ZodObject<{
|
|
65
|
-
success: z.ZodBoolean;
|
|
66
|
-
result: z.ZodArray<z.ZodObject<{
|
|
67
|
-
id: z.ZodString;
|
|
68
|
-
ownerID: z.ZodOptional<z.ZodString>;
|
|
69
|
-
name: z.ZodString;
|
|
70
|
-
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
71
|
-
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
72
|
-
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
73
|
-
price: z.ZodNumber;
|
|
74
|
-
currency: z.ZodString;
|
|
75
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
76
|
-
image_url: z.ZodString;
|
|
77
|
-
images: z.ZodArray<z.ZodString>;
|
|
78
|
-
isDeliverable: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
-
availableQuantity: z.ZodOptional<z.ZodNumber>;
|
|
80
|
-
additional: z.ZodOptional<z.ZodObject<{
|
|
81
|
-
sku: z.ZodOptional<z.ZodString>;
|
|
82
|
-
baselinkerFields: z.ZodOptional<z.ZodObject<{
|
|
83
|
-
storageID: z.ZodOptional<z.ZodString>;
|
|
84
|
-
}, z.core.$strip>>;
|
|
85
|
-
isPresale: z.ZodOptional<z.ZodBoolean>;
|
|
86
|
-
}, z.core.$strip>>;
|
|
87
|
-
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
88
|
-
id: z.ZodString;
|
|
89
|
-
name: z.ZodString;
|
|
90
|
-
price: z.ZodNumber;
|
|
91
|
-
currency: z.ZodString;
|
|
92
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
93
|
-
images: z.ZodArray<z.ZodString>;
|
|
94
|
-
availableQuantity: z.ZodOptional<z.ZodNumber>;
|
|
95
|
-
isDeliverable: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
-
estimatedDeliveryAt: z.ZodOptional<z.ZodNumber>;
|
|
97
|
-
}, z.core.$strip>>>;
|
|
98
|
-
estimatedDeliveryAt: z.ZodOptional<z.ZodNumber>;
|
|
99
|
-
}, z.core.$strip>>;
|
|
100
|
-
totalCount: z.ZodNumber;
|
|
101
|
-
}, z.core.$strip>;
|
|
102
|
-
type Data = z.infer<typeof DataSchema>;
|
|
103
|
-
const ProductsResultResultSchema: z.ZodObject<{
|
|
104
|
-
data: z.ZodObject<{
|
|
105
|
-
success: z.ZodBoolean;
|
|
106
|
-
result: z.ZodArray<z.ZodObject<{
|
|
107
|
-
id: z.ZodString;
|
|
108
|
-
ownerID: z.ZodOptional<z.ZodString>;
|
|
109
|
-
name: z.ZodString;
|
|
110
|
-
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
111
|
-
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
112
|
-
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
113
|
-
price: z.ZodNumber;
|
|
114
|
-
currency: z.ZodString;
|
|
115
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
116
|
-
image_url: z.ZodString;
|
|
117
|
-
images: z.ZodArray<z.ZodString>;
|
|
118
|
-
isDeliverable: z.ZodOptional<z.ZodBoolean>;
|
|
119
|
-
availableQuantity: z.ZodOptional<z.ZodNumber>;
|
|
120
|
-
additional: z.ZodOptional<z.ZodObject<{
|
|
121
|
-
sku: z.ZodOptional<z.ZodString>;
|
|
122
|
-
baselinkerFields: z.ZodOptional<z.ZodObject<{
|
|
123
|
-
storageID: z.ZodOptional<z.ZodString>;
|
|
124
|
-
}, z.core.$strip>>;
|
|
125
|
-
isPresale: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
-
}, z.core.$strip>>;
|
|
127
|
-
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
128
|
-
id: z.ZodString;
|
|
129
|
-
name: z.ZodString;
|
|
130
|
-
price: z.ZodNumber;
|
|
131
|
-
currency: z.ZodString;
|
|
132
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
133
|
-
images: z.ZodArray<z.ZodString>;
|
|
134
|
-
availableQuantity: z.ZodOptional<z.ZodNumber>;
|
|
135
|
-
isDeliverable: z.ZodOptional<z.ZodBoolean>;
|
|
136
|
-
estimatedDeliveryAt: z.ZodOptional<z.ZodNumber>;
|
|
137
|
-
}, z.core.$strip>>>;
|
|
138
|
-
estimatedDeliveryAt: z.ZodOptional<z.ZodNumber>;
|
|
139
|
-
}, z.core.$strip>>;
|
|
140
|
-
totalCount: z.ZodNumber;
|
|
141
|
-
}, z.core.$strip>;
|
|
142
|
-
}, z.core.$strip>;
|
|
143
|
-
type ProductsResultResult = z.infer<typeof ProductsResultResultSchema>;
|
|
144
|
-
const ProductsResultElementSchema: z.ZodArray<z.ZodObject<{
|
|
145
|
-
result: z.ZodObject<{
|
|
146
|
-
data: z.ZodObject<{
|
|
147
|
-
success: z.ZodBoolean;
|
|
148
|
-
result: z.ZodArray<z.ZodObject<{
|
|
149
|
-
id: z.ZodString;
|
|
150
|
-
ownerID: z.ZodOptional<z.ZodString>;
|
|
151
|
-
name: z.ZodString;
|
|
152
|
-
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
153
|
-
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
154
|
-
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
155
|
-
price: z.ZodNumber;
|
|
156
|
-
currency: z.ZodString;
|
|
157
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
158
|
-
image_url: z.ZodString;
|
|
159
|
-
images: z.ZodArray<z.ZodString>;
|
|
160
|
-
isDeliverable: z.ZodOptional<z.ZodBoolean>;
|
|
161
|
-
availableQuantity: z.ZodOptional<z.ZodNumber>;
|
|
162
|
-
additional: z.ZodOptional<z.ZodObject<{
|
|
163
|
-
sku: z.ZodOptional<z.ZodString>;
|
|
164
|
-
baselinkerFields: z.ZodOptional<z.ZodObject<{
|
|
165
|
-
storageID: z.ZodOptional<z.ZodString>;
|
|
166
|
-
}, z.core.$strip>>;
|
|
167
|
-
isPresale: z.ZodOptional<z.ZodBoolean>;
|
|
168
|
-
}, z.core.$strip>>;
|
|
169
|
-
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
170
|
-
id: z.ZodString;
|
|
171
|
-
name: z.ZodString;
|
|
172
|
-
price: z.ZodNumber;
|
|
173
|
-
currency: z.ZodString;
|
|
174
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
175
|
-
images: z.ZodArray<z.ZodString>;
|
|
176
|
-
availableQuantity: z.ZodOptional<z.ZodNumber>;
|
|
177
|
-
isDeliverable: z.ZodOptional<z.ZodBoolean>;
|
|
178
|
-
estimatedDeliveryAt: z.ZodOptional<z.ZodNumber>;
|
|
179
|
-
}, z.core.$strip>>>;
|
|
180
|
-
estimatedDeliveryAt: z.ZodOptional<z.ZodNumber>;
|
|
181
|
-
}, z.core.$strip>>;
|
|
182
|
-
totalCount: z.ZodNumber;
|
|
183
|
-
}, z.core.$strip>;
|
|
184
|
-
}, z.core.$strip>;
|
|
185
|
-
}, z.core.$strip>>;
|
|
186
|
-
type ProductsResultElement = z.infer<typeof ProductsResultElementSchema>;
|
|
187
|
-
const ProductResultSchema: z.ZodArray<z.ZodObject<{
|
|
188
|
-
result: z.ZodObject<{
|
|
189
|
-
data: z.ZodObject<{
|
|
190
|
-
success: z.ZodBoolean;
|
|
191
|
-
message: z.ZodOptional<z.ZodString>;
|
|
192
|
-
result: z.ZodOptional<z.ZodObject<{
|
|
193
|
-
id: z.ZodString;
|
|
194
|
-
ownerID: z.ZodOptional<z.ZodString>;
|
|
195
|
-
name: z.ZodString;
|
|
196
|
-
description: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
|
|
197
|
-
createdAt: z.ZodOptional<z.ZodNumber>;
|
|
198
|
-
updatedAt: z.ZodOptional<z.ZodNumber>;
|
|
199
|
-
price: z.ZodNumber;
|
|
200
|
-
currency: z.ZodString;
|
|
201
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
202
|
-
image_url: z.ZodString;
|
|
203
|
-
images: z.ZodArray<z.ZodString>;
|
|
204
|
-
isDeliverable: z.ZodOptional<z.ZodBoolean>;
|
|
205
|
-
availableQuantity: z.ZodOptional<z.ZodNumber>;
|
|
206
|
-
additional: z.ZodOptional<z.ZodObject<{
|
|
207
|
-
sku: z.ZodOptional<z.ZodString>;
|
|
208
|
-
baselinkerFields: z.ZodOptional<z.ZodObject<{
|
|
209
|
-
storageID: z.ZodOptional<z.ZodString>;
|
|
210
|
-
}, z.core.$strip>>;
|
|
211
|
-
isPresale: z.ZodOptional<z.ZodBoolean>;
|
|
212
|
-
}, z.core.$strip>>;
|
|
213
|
-
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
214
|
-
id: z.ZodString;
|
|
215
|
-
name: z.ZodString;
|
|
216
|
-
price: z.ZodNumber;
|
|
217
|
-
currency: z.ZodString;
|
|
218
|
-
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
219
|
-
images: z.ZodArray<z.ZodString>;
|
|
220
|
-
availableQuantity: z.ZodOptional<z.ZodNumber>;
|
|
221
|
-
isDeliverable: z.ZodOptional<z.ZodBoolean>;
|
|
222
|
-
estimatedDeliveryAt: z.ZodOptional<z.ZodNumber>;
|
|
223
|
-
}, z.core.$strip>>>;
|
|
224
|
-
estimatedDeliveryAt: z.ZodOptional<z.ZodNumber>;
|
|
225
|
-
}, z.core.$strip>>;
|
|
226
|
-
}, z.core.$strip>;
|
|
227
|
-
}, z.core.$strip>;
|
|
228
|
-
}, z.core.$strip>>;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
export { BitsnapModels };
|