@magiclabs.ai/magicbook-client 0.6.13 → 0.6.14-canary
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 +7 -2
- package/index.cjs +73 -16
- package/index.cjs.map +1 -1
- package/index.d.cts +594 -540
- package/index.d.ts +594 -540
- package/index.js +69 -16
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.cts
CHANGED
|
@@ -1,5 +1,379 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
|
|
3
|
+
declare const eventContextSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4
|
+
type EventContext = z.infer<typeof eventContextSchema>;
|
|
5
|
+
|
|
6
|
+
declare class BooksEndpoints {
|
|
7
|
+
private readonly engineAPI;
|
|
8
|
+
constructor(engineAPI: EngineAPI);
|
|
9
|
+
create(): Promise<Book>;
|
|
10
|
+
retrieve(bookId: string): Promise<Book>;
|
|
11
|
+
update(bookId: string, book: Partial<Book>): Promise<Book>;
|
|
12
|
+
cancel(bookId: string): Promise<Book>;
|
|
13
|
+
report(bookId: string, report: BookReport): Promise<void>;
|
|
14
|
+
delete(bookId: string): Promise<void>;
|
|
15
|
+
retrieveGalleon(bookId: string): Promise<{
|
|
16
|
+
title: string;
|
|
17
|
+
binding: string;
|
|
18
|
+
coverSpecId: string;
|
|
19
|
+
styleId: number;
|
|
20
|
+
userId: string;
|
|
21
|
+
magicShopBook: {
|
|
22
|
+
pages: {
|
|
23
|
+
type: string;
|
|
24
|
+
pageNum: number;
|
|
25
|
+
canvas: {
|
|
26
|
+
backgroundId: string | null;
|
|
27
|
+
assets?: {
|
|
28
|
+
type: string;
|
|
29
|
+
position: {
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
rotation: number;
|
|
33
|
+
width?: number | undefined;
|
|
34
|
+
height?: number | undefined;
|
|
35
|
+
};
|
|
36
|
+
seqNum: number;
|
|
37
|
+
z: number;
|
|
38
|
+
imageAssignment?: {
|
|
39
|
+
photoRefId: string;
|
|
40
|
+
finalCrop: number[];
|
|
41
|
+
} | undefined;
|
|
42
|
+
id?: string | undefined;
|
|
43
|
+
horizJustification?: string | undefined;
|
|
44
|
+
vertJustification?: string | null | undefined;
|
|
45
|
+
text?: string | undefined;
|
|
46
|
+
fontId?: string | undefined;
|
|
47
|
+
fontSize?: number | undefined;
|
|
48
|
+
fontColor?: string | undefined;
|
|
49
|
+
frame?: string | undefined;
|
|
50
|
+
}[] | undefined;
|
|
51
|
+
};
|
|
52
|
+
}[];
|
|
53
|
+
photoStrip: {
|
|
54
|
+
photoRefId: string;
|
|
55
|
+
url: string;
|
|
56
|
+
encryptId: string;
|
|
57
|
+
photoId: string;
|
|
58
|
+
photoMetadata: {
|
|
59
|
+
data: string | null;
|
|
60
|
+
width: number;
|
|
61
|
+
height: number;
|
|
62
|
+
rotation: number;
|
|
63
|
+
id: string;
|
|
64
|
+
llx: number;
|
|
65
|
+
lly: number;
|
|
66
|
+
urx: number;
|
|
67
|
+
ury: number;
|
|
68
|
+
title: string;
|
|
69
|
+
effect: string;
|
|
70
|
+
source: string;
|
|
71
|
+
uploadTime: string;
|
|
72
|
+
};
|
|
73
|
+
}[];
|
|
74
|
+
};
|
|
75
|
+
reportingData: {
|
|
76
|
+
properties: {
|
|
77
|
+
key: string;
|
|
78
|
+
value?: any;
|
|
79
|
+
}[];
|
|
80
|
+
};
|
|
81
|
+
}>;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
declare class DesignOptionsEndpoints {
|
|
85
|
+
private readonly engineAPI;
|
|
86
|
+
constructor(engineAPI: EngineAPI);
|
|
87
|
+
retrieve(bookSize: BookSize, imageCount: number, imageFilteringLevel: ImageFilteringLevel): Promise<{
|
|
88
|
+
densities: {
|
|
89
|
+
low: {
|
|
90
|
+
max_page_count: number;
|
|
91
|
+
min_page_count: number;
|
|
92
|
+
max_image_count: number;
|
|
93
|
+
avg_image_count: number;
|
|
94
|
+
min_image_count: number;
|
|
95
|
+
};
|
|
96
|
+
medium: {
|
|
97
|
+
max_page_count: number;
|
|
98
|
+
min_page_count: number;
|
|
99
|
+
max_image_count: number;
|
|
100
|
+
avg_image_count: number;
|
|
101
|
+
min_image_count: number;
|
|
102
|
+
};
|
|
103
|
+
high: {
|
|
104
|
+
max_page_count: number;
|
|
105
|
+
min_page_count: number;
|
|
106
|
+
max_image_count: number;
|
|
107
|
+
avg_image_count: number;
|
|
108
|
+
min_image_count: number;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
}>;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
declare class EventsEndpoints {
|
|
115
|
+
private readonly engineAPI;
|
|
116
|
+
constructor(engineAPI: EngineAPI);
|
|
117
|
+
createBookEvent(bookId: string, name: string, data?: EventContext): Promise<{
|
|
118
|
+
name: string;
|
|
119
|
+
context?: Record<string, unknown> | undefined;
|
|
120
|
+
}>;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
type CallProps = {
|
|
124
|
+
path: string;
|
|
125
|
+
options?: RequestInit;
|
|
126
|
+
apiKey?: string;
|
|
127
|
+
};
|
|
128
|
+
declare class Fetcher {
|
|
129
|
+
baseUrl: URL;
|
|
130
|
+
options: RequestInit;
|
|
131
|
+
constructor(baseUrl: string, options?: RequestInit | undefined);
|
|
132
|
+
call(props: CallProps): Promise<any>;
|
|
133
|
+
cleanUrl(url: string): string;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
declare class ImagesEndpoints {
|
|
137
|
+
private readonly engineAPI;
|
|
138
|
+
constructor(engineAPI: EngineAPI);
|
|
139
|
+
list(bookId: string): Promise<{
|
|
140
|
+
width: number;
|
|
141
|
+
height: number;
|
|
142
|
+
url: string;
|
|
143
|
+
handle: string;
|
|
144
|
+
orientation: number;
|
|
145
|
+
taken_at: string;
|
|
146
|
+
filename: string;
|
|
147
|
+
id?: string | undefined;
|
|
148
|
+
camera_make?: string | undefined;
|
|
149
|
+
camera?: string | undefined;
|
|
150
|
+
}[]>;
|
|
151
|
+
retrieve(imageId: string, bookId: string): Promise<{
|
|
152
|
+
width: number;
|
|
153
|
+
height: number;
|
|
154
|
+
url: string;
|
|
155
|
+
handle: string;
|
|
156
|
+
orientation: number;
|
|
157
|
+
taken_at: string;
|
|
158
|
+
filename: string;
|
|
159
|
+
id?: string | undefined;
|
|
160
|
+
camera_make?: string | undefined;
|
|
161
|
+
camera?: string | undefined;
|
|
162
|
+
}>;
|
|
163
|
+
update(imageId: string, bookId: string, image: ImageServer): Promise<{
|
|
164
|
+
width: number;
|
|
165
|
+
height: number;
|
|
166
|
+
url: string;
|
|
167
|
+
handle: string;
|
|
168
|
+
orientation: number;
|
|
169
|
+
taken_at: string;
|
|
170
|
+
filename: string;
|
|
171
|
+
id?: string | undefined;
|
|
172
|
+
camera_make?: string | undefined;
|
|
173
|
+
camera?: string | undefined;
|
|
174
|
+
}>;
|
|
175
|
+
delete(imageId: string, bookId: string): Promise<void>;
|
|
176
|
+
addToBook(bookId: string, image: ImageServer): Promise<{
|
|
177
|
+
width: number;
|
|
178
|
+
height: number;
|
|
179
|
+
url: string;
|
|
180
|
+
handle: string;
|
|
181
|
+
orientation: number;
|
|
182
|
+
taken_at: string;
|
|
183
|
+
filename: string;
|
|
184
|
+
id?: string | undefined;
|
|
185
|
+
camera_make?: string | undefined;
|
|
186
|
+
camera?: string | undefined;
|
|
187
|
+
}>;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
declare const spreadServerSchema: z.ZodObject<{
|
|
191
|
+
id: z.ZodOptional<z.ZodString>;
|
|
192
|
+
book_id: z.ZodString;
|
|
193
|
+
state: z.ZodString;
|
|
194
|
+
spread_type: z.ZodString;
|
|
195
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
196
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
197
|
+
sequence: z.ZodNumber;
|
|
198
|
+
wells: z.ZodArray<z.ZodUnknown, "many">;
|
|
199
|
+
background: z.ZodUnknown;
|
|
200
|
+
laid_out_at: z.ZodNullable<z.ZodString>;
|
|
201
|
+
embellished_at: z.ZodNullable<z.ZodString>;
|
|
202
|
+
polished_at: z.ZodNullable<z.ZodString>;
|
|
203
|
+
metadata: z.ZodUnknown;
|
|
204
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
205
|
+
}, "strip", z.ZodTypeAny, {
|
|
206
|
+
state: string;
|
|
207
|
+
book_id: string;
|
|
208
|
+
spread_type: string;
|
|
209
|
+
sequence: number;
|
|
210
|
+
wells: unknown[];
|
|
211
|
+
laid_out_at: string | null;
|
|
212
|
+
embellished_at: string | null;
|
|
213
|
+
polished_at: string | null;
|
|
214
|
+
id?: string | undefined;
|
|
215
|
+
width?: number | undefined;
|
|
216
|
+
height?: number | undefined;
|
|
217
|
+
background?: unknown;
|
|
218
|
+
metadata?: unknown;
|
|
219
|
+
url?: string | null | undefined;
|
|
220
|
+
}, {
|
|
221
|
+
state: string;
|
|
222
|
+
book_id: string;
|
|
223
|
+
spread_type: string;
|
|
224
|
+
sequence: number;
|
|
225
|
+
wells: unknown[];
|
|
226
|
+
laid_out_at: string | null;
|
|
227
|
+
embellished_at: string | null;
|
|
228
|
+
polished_at: string | null;
|
|
229
|
+
id?: string | undefined;
|
|
230
|
+
width?: number | undefined;
|
|
231
|
+
height?: number | undefined;
|
|
232
|
+
background?: unknown;
|
|
233
|
+
metadata?: unknown;
|
|
234
|
+
url?: string | null | undefined;
|
|
235
|
+
}>;
|
|
236
|
+
type SpreadServer = z.infer<typeof spreadServerSchema>;
|
|
237
|
+
|
|
238
|
+
declare class SpreadsEndpoints {
|
|
239
|
+
private readonly engineAPI;
|
|
240
|
+
constructor(engineAPI: EngineAPI);
|
|
241
|
+
list(bookId: string): Promise<{
|
|
242
|
+
state: string;
|
|
243
|
+
book_id: string;
|
|
244
|
+
spread_type: string;
|
|
245
|
+
sequence: number;
|
|
246
|
+
wells: unknown[];
|
|
247
|
+
laid_out_at: string | null;
|
|
248
|
+
embellished_at: string | null;
|
|
249
|
+
polished_at: string | null;
|
|
250
|
+
id?: string | undefined;
|
|
251
|
+
width?: number | undefined;
|
|
252
|
+
height?: number | undefined;
|
|
253
|
+
background?: unknown;
|
|
254
|
+
metadata?: unknown;
|
|
255
|
+
url?: string | null | undefined;
|
|
256
|
+
}[]>;
|
|
257
|
+
create(bookId: string, spread: SpreadServer): Promise<{
|
|
258
|
+
state: string;
|
|
259
|
+
book_id: string;
|
|
260
|
+
spread_type: string;
|
|
261
|
+
sequence: number;
|
|
262
|
+
wells: unknown[];
|
|
263
|
+
laid_out_at: string | null;
|
|
264
|
+
embellished_at: string | null;
|
|
265
|
+
polished_at: string | null;
|
|
266
|
+
id?: string | undefined;
|
|
267
|
+
width?: number | undefined;
|
|
268
|
+
height?: number | undefined;
|
|
269
|
+
background?: unknown;
|
|
270
|
+
metadata?: unknown;
|
|
271
|
+
url?: string | null | undefined;
|
|
272
|
+
}>;
|
|
273
|
+
retrieve(spreadId: string, bookId: string): Promise<{
|
|
274
|
+
state: string;
|
|
275
|
+
book_id: string;
|
|
276
|
+
spread_type: string;
|
|
277
|
+
sequence: number;
|
|
278
|
+
wells: unknown[];
|
|
279
|
+
laid_out_at: string | null;
|
|
280
|
+
embellished_at: string | null;
|
|
281
|
+
polished_at: string | null;
|
|
282
|
+
id?: string | undefined;
|
|
283
|
+
width?: number | undefined;
|
|
284
|
+
height?: number | undefined;
|
|
285
|
+
background?: unknown;
|
|
286
|
+
metadata?: unknown;
|
|
287
|
+
url?: string | null | undefined;
|
|
288
|
+
}>;
|
|
289
|
+
update(spreadId: string, bookId: string, spread: SpreadServer): Promise<{
|
|
290
|
+
state: string;
|
|
291
|
+
book_id: string;
|
|
292
|
+
spread_type: string;
|
|
293
|
+
sequence: number;
|
|
294
|
+
wells: unknown[];
|
|
295
|
+
laid_out_at: string | null;
|
|
296
|
+
embellished_at: string | null;
|
|
297
|
+
polished_at: string | null;
|
|
298
|
+
id?: string | undefined;
|
|
299
|
+
width?: number | undefined;
|
|
300
|
+
height?: number | undefined;
|
|
301
|
+
background?: unknown;
|
|
302
|
+
metadata?: unknown;
|
|
303
|
+
url?: string | null | undefined;
|
|
304
|
+
}>;
|
|
305
|
+
delete(spreadId: string, bookId: string): Promise<void>;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
declare class StoryboardItemsEndpoints {
|
|
309
|
+
private readonly engineAPI;
|
|
310
|
+
constructor(engineAPI: EngineAPI);
|
|
311
|
+
list(bookId: string): Promise<{
|
|
312
|
+
id: string;
|
|
313
|
+
book_id: string;
|
|
314
|
+
sequence: number;
|
|
315
|
+
similarity: number;
|
|
316
|
+
duplicate: boolean;
|
|
317
|
+
selected: boolean;
|
|
318
|
+
surface_weight: number;
|
|
319
|
+
scene: number;
|
|
320
|
+
subscene: number;
|
|
321
|
+
image: {
|
|
322
|
+
width: number;
|
|
323
|
+
height: number;
|
|
324
|
+
id: string;
|
|
325
|
+
url: string;
|
|
326
|
+
taken_at: number;
|
|
327
|
+
category: string;
|
|
328
|
+
aesthetic_score: number;
|
|
329
|
+
faces: {
|
|
330
|
+
score: number;
|
|
331
|
+
bounding_box: {
|
|
332
|
+
x: number;
|
|
333
|
+
y: number;
|
|
334
|
+
width: number;
|
|
335
|
+
height: number;
|
|
336
|
+
};
|
|
337
|
+
size: number;
|
|
338
|
+
eyes_open_score: number;
|
|
339
|
+
smile_score: number;
|
|
340
|
+
facing_camera_score: number;
|
|
341
|
+
}[];
|
|
342
|
+
roi: {
|
|
343
|
+
x: number;
|
|
344
|
+
y: number;
|
|
345
|
+
width: number;
|
|
346
|
+
height: number;
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
front_cover?: boolean | undefined;
|
|
350
|
+
back_cover?: boolean | undefined;
|
|
351
|
+
spine_break?: boolean | undefined;
|
|
352
|
+
}[]>;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
declare class EngineAPI {
|
|
356
|
+
baseUrl: URL;
|
|
357
|
+
apiKey: string;
|
|
358
|
+
fetcher: Fetcher;
|
|
359
|
+
constructor(baseUrl: string, apiKey: string);
|
|
360
|
+
readonly books: BooksEndpoints;
|
|
361
|
+
readonly designOptions: DesignOptionsEndpoints;
|
|
362
|
+
readonly events: EventsEndpoints;
|
|
363
|
+
readonly images: ImagesEndpoints;
|
|
364
|
+
readonly storyboardItems: StoryboardItemsEndpoints;
|
|
365
|
+
readonly spreads: SpreadsEndpoints;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
declare class MagicBookClient {
|
|
369
|
+
private readonly apiKey;
|
|
370
|
+
private readonly apiHost;
|
|
371
|
+
readonly webSocketHost: string;
|
|
372
|
+
engineAPI: EngineAPI;
|
|
373
|
+
constructor(apiKey: string, apiHost?: string, webSocketHost?: string);
|
|
374
|
+
createDesignRequest(designRequestProps?: DesignRequestProps): Promise<DesignRequest>;
|
|
375
|
+
}
|
|
376
|
+
|
|
3
377
|
type Image = {
|
|
4
378
|
handle: string;
|
|
5
379
|
url: string;
|
|
@@ -31,10 +405,10 @@ declare const imageServerSchema: z.ZodObject<{
|
|
|
31
405
|
camera: z.ZodOptional<z.ZodString>;
|
|
32
406
|
filename: z.ZodString;
|
|
33
407
|
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
handle: string;
|
|
35
|
-
url: string;
|
|
36
408
|
width: number;
|
|
37
409
|
height: number;
|
|
410
|
+
url: string;
|
|
411
|
+
handle: string;
|
|
38
412
|
orientation: number;
|
|
39
413
|
taken_at: string;
|
|
40
414
|
filename: string;
|
|
@@ -42,10 +416,10 @@ declare const imageServerSchema: z.ZodObject<{
|
|
|
42
416
|
camera_make?: string | undefined;
|
|
43
417
|
camera?: string | undefined;
|
|
44
418
|
}, {
|
|
45
|
-
handle: string;
|
|
46
|
-
url: string;
|
|
47
419
|
width: number;
|
|
48
420
|
height: number;
|
|
421
|
+
url: string;
|
|
422
|
+
handle: string;
|
|
49
423
|
orientation: number;
|
|
50
424
|
taken_at: string;
|
|
51
425
|
filename: string;
|
|
@@ -638,6 +1012,7 @@ declare class DesignRequest {
|
|
|
638
1012
|
textStickerLevel: TextStickerLevel;
|
|
639
1013
|
images: Images;
|
|
640
1014
|
guid?: string;
|
|
1015
|
+
timeout?: number;
|
|
641
1016
|
constructor(parentId: string, client: MagicBookClient, designRequestProps?: DesignRequestProps);
|
|
642
1017
|
private updateDesignRequest;
|
|
643
1018
|
getOptions(imageCount?: number): Promise<{
|
|
@@ -707,218 +1082,21 @@ declare class DesignRequest {
|
|
|
707
1082
|
};
|
|
708
1083
|
}[];
|
|
709
1084
|
photoStrip: {
|
|
710
|
-
url: string;
|
|
711
1085
|
photoRefId: string;
|
|
712
|
-
encryptId: string;
|
|
713
|
-
photoId: string;
|
|
714
|
-
photoMetadata: {
|
|
715
|
-
data: string | null;
|
|
716
|
-
id: string;
|
|
717
|
-
title: string;
|
|
718
|
-
width: number;
|
|
719
|
-
height: number;
|
|
720
|
-
rotation: number;
|
|
721
|
-
llx: number;
|
|
722
|
-
lly: number;
|
|
723
|
-
urx: number;
|
|
724
|
-
ury: number;
|
|
725
|
-
effect: string;
|
|
726
|
-
source: string;
|
|
727
|
-
uploadTime: string;
|
|
728
|
-
};
|
|
729
|
-
}[];
|
|
730
|
-
};
|
|
731
|
-
reportingData: {
|
|
732
|
-
properties: {
|
|
733
|
-
key: string;
|
|
734
|
-
value?: any;
|
|
735
|
-
}[];
|
|
736
|
-
};
|
|
737
|
-
}>;
|
|
738
|
-
private eventHandler;
|
|
739
|
-
private timeoutHandler;
|
|
740
|
-
private getProgress;
|
|
741
|
-
private toBook;
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
type BookReport = {
|
|
745
|
-
error: 'timeout' | 'design';
|
|
746
|
-
step: string;
|
|
747
|
-
};
|
|
748
|
-
type BookDesignRequestProps = {
|
|
749
|
-
occasion: Occasion;
|
|
750
|
-
style: string;
|
|
751
|
-
book_size: BookSize;
|
|
752
|
-
cover_type: CoverType;
|
|
753
|
-
page_type: PageType;
|
|
754
|
-
image_density: ImageDensity;
|
|
755
|
-
image_filtering_level: ImageFilteringLevel;
|
|
756
|
-
embellishment_level: EmbellishmentLevel;
|
|
757
|
-
text_sticker_level: TextStickerLevel;
|
|
758
|
-
};
|
|
759
|
-
declare class BookDesignRequest {
|
|
760
|
-
occasion: Occasion;
|
|
761
|
-
style: string;
|
|
762
|
-
book_size: BookSize;
|
|
763
|
-
cover_type: CoverType;
|
|
764
|
-
page_type: PageType;
|
|
765
|
-
image_density: ImageDensity;
|
|
766
|
-
image_filtering_level: ImageFilteringLevel;
|
|
767
|
-
embellishment_level: EmbellishmentLevel;
|
|
768
|
-
text_sticker_level: TextStickerLevel;
|
|
769
|
-
constructor(props: BookDesignRequestProps);
|
|
770
|
-
}
|
|
771
|
-
declare const BookPropsSchema: z.ZodObject<{
|
|
772
|
-
id: z.ZodOptional<z.ZodString>;
|
|
773
|
-
title: z.ZodString;
|
|
774
|
-
subtitle: z.ZodOptional<z.ZodString>;
|
|
775
|
-
design_request: z.ZodObject<{
|
|
776
|
-
occasion: z.ZodEnum<["baby", "birthday", "default", "everyday", "family", "kids", "life-stories", "portfolio", "school-memories", "seasonal-holidays", "special-celebrations", "sports-and-hobbies", "travel", "wedding", "year-in-review"]>;
|
|
777
|
-
style: z.ZodString;
|
|
778
|
-
book_size: z.ZodEnum<["8x8", "10x10", "12x12", "8x11", "11x8", "11x14"]>;
|
|
779
|
-
cover_type: z.ZodEnum<["sc", "hc", "pl"]>;
|
|
780
|
-
page_type: z.ZodEnum<["sp", "sl", "dl"]>;
|
|
781
|
-
image_density: z.ZodEnum<["low", "medium", "high"]>;
|
|
782
|
-
image_filtering_level: z.ZodEnum<["best", "most", "all"]>;
|
|
783
|
-
embellishment_level: z.ZodEnum<["none", "few", "lots"]>;
|
|
784
|
-
text_sticker_level: z.ZodEnum<["none", "few", "lots"]>;
|
|
785
|
-
}, "strip", z.ZodTypeAny, {
|
|
786
|
-
occasion: "baby" | "birthday" | "default" | "everyday" | "family" | "kids" | "life-stories" | "portfolio" | "school-memories" | "seasonal-holidays" | "special-celebrations" | "sports-and-hobbies" | "travel" | "wedding" | "year-in-review";
|
|
787
|
-
style: string;
|
|
788
|
-
book_size: "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
|
|
789
|
-
cover_type: "sc" | "hc" | "pl";
|
|
790
|
-
page_type: "sp" | "sl" | "dl";
|
|
791
|
-
image_density: "low" | "medium" | "high";
|
|
792
|
-
image_filtering_level: "best" | "most" | "all";
|
|
793
|
-
embellishment_level: "none" | "few" | "lots";
|
|
794
|
-
text_sticker_level: "none" | "few" | "lots";
|
|
795
|
-
}, {
|
|
796
|
-
occasion: "baby" | "birthday" | "default" | "everyday" | "family" | "kids" | "life-stories" | "portfolio" | "school-memories" | "seasonal-holidays" | "special-celebrations" | "sports-and-hobbies" | "travel" | "wedding" | "year-in-review";
|
|
797
|
-
style: string;
|
|
798
|
-
book_size: "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
|
|
799
|
-
cover_type: "sc" | "hc" | "pl";
|
|
800
|
-
page_type: "sp" | "sl" | "dl";
|
|
801
|
-
image_density: "low" | "medium" | "high";
|
|
802
|
-
image_filtering_level: "best" | "most" | "all";
|
|
803
|
-
embellishment_level: "none" | "few" | "lots";
|
|
804
|
-
text_sticker_level: "none" | "few" | "lots";
|
|
805
|
-
}>;
|
|
806
|
-
state: z.ZodOptional<z.ZodEnum<["new", "ingesting", "submitted", "storyboarding", "deduplication", "image-selection", "designing", "layouting", "embellishing", "polishing", "ready", "timeout", "error", "cancelled"]>>;
|
|
807
|
-
guid: z.ZodOptional<z.ZodString>;
|
|
808
|
-
cancelled_at: z.ZodOptional<z.ZodString>;
|
|
809
|
-
}, "strip", z.ZodTypeAny, {
|
|
810
|
-
title: string;
|
|
811
|
-
design_request: {
|
|
812
|
-
occasion: "baby" | "birthday" | "default" | "everyday" | "family" | "kids" | "life-stories" | "portfolio" | "school-memories" | "seasonal-holidays" | "special-celebrations" | "sports-and-hobbies" | "travel" | "wedding" | "year-in-review";
|
|
813
|
-
style: string;
|
|
814
|
-
book_size: "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
|
|
815
|
-
cover_type: "sc" | "hc" | "pl";
|
|
816
|
-
page_type: "sp" | "sl" | "dl";
|
|
817
|
-
image_density: "low" | "medium" | "high";
|
|
818
|
-
image_filtering_level: "best" | "most" | "all";
|
|
819
|
-
embellishment_level: "none" | "few" | "lots";
|
|
820
|
-
text_sticker_level: "none" | "few" | "lots";
|
|
821
|
-
};
|
|
822
|
-
id?: string | undefined;
|
|
823
|
-
subtitle?: string | undefined;
|
|
824
|
-
state?: "new" | "ingesting" | "submitted" | "storyboarding" | "deduplication" | "image-selection" | "designing" | "layouting" | "embellishing" | "polishing" | "ready" | "timeout" | "error" | "cancelled" | undefined;
|
|
825
|
-
guid?: string | undefined;
|
|
826
|
-
cancelled_at?: string | undefined;
|
|
827
|
-
}, {
|
|
828
|
-
title: string;
|
|
829
|
-
design_request: {
|
|
830
|
-
occasion: "baby" | "birthday" | "default" | "everyday" | "family" | "kids" | "life-stories" | "portfolio" | "school-memories" | "seasonal-holidays" | "special-celebrations" | "sports-and-hobbies" | "travel" | "wedding" | "year-in-review";
|
|
831
|
-
style: string;
|
|
832
|
-
book_size: "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
|
|
833
|
-
cover_type: "sc" | "hc" | "pl";
|
|
834
|
-
page_type: "sp" | "sl" | "dl";
|
|
835
|
-
image_density: "low" | "medium" | "high";
|
|
836
|
-
image_filtering_level: "best" | "most" | "all";
|
|
837
|
-
embellishment_level: "none" | "few" | "lots";
|
|
838
|
-
text_sticker_level: "none" | "few" | "lots";
|
|
839
|
-
};
|
|
840
|
-
id?: string | undefined;
|
|
841
|
-
subtitle?: string | undefined;
|
|
842
|
-
state?: "new" | "ingesting" | "submitted" | "storyboarding" | "deduplication" | "image-selection" | "designing" | "layouting" | "embellishing" | "polishing" | "ready" | "timeout" | "error" | "cancelled" | undefined;
|
|
843
|
-
guid?: string | undefined;
|
|
844
|
-
cancelled_at?: string | undefined;
|
|
845
|
-
}>;
|
|
846
|
-
type BookProps = z.infer<typeof BookPropsSchema>;
|
|
847
|
-
declare class Book {
|
|
848
|
-
id: string;
|
|
849
|
-
title: string;
|
|
850
|
-
subtitle?: string;
|
|
851
|
-
design_request: BookDesignRequest;
|
|
852
|
-
state?: State;
|
|
853
|
-
guid?: string;
|
|
854
|
-
cancelled_at?: string;
|
|
855
|
-
constructor(props: BookProps);
|
|
856
|
-
toDesignRequestProps(): Record<string, unknown>;
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
declare class BooksEndpoints {
|
|
860
|
-
private readonly engineAPI;
|
|
861
|
-
constructor(engineAPI: EngineAPI);
|
|
862
|
-
create(): Promise<Book>;
|
|
863
|
-
retrieve(bookId: string): Promise<Book>;
|
|
864
|
-
update(bookId: string, book: Partial<Book>): Promise<Book>;
|
|
865
|
-
cancel(bookId: string): Promise<Book>;
|
|
866
|
-
report(bookId: string, report: BookReport): Promise<void>;
|
|
867
|
-
delete(bookId: string): Promise<void>;
|
|
868
|
-
retrieveGalleon(bookId: string): Promise<{
|
|
869
|
-
title: string;
|
|
870
|
-
binding: string;
|
|
871
|
-
coverSpecId: string;
|
|
872
|
-
styleId: number;
|
|
873
|
-
userId: string;
|
|
874
|
-
magicShopBook: {
|
|
875
|
-
pages: {
|
|
876
|
-
type: string;
|
|
877
|
-
pageNum: number;
|
|
878
|
-
canvas: {
|
|
879
|
-
backgroundId: string | null;
|
|
880
|
-
assets?: {
|
|
881
|
-
type: string;
|
|
882
|
-
position: {
|
|
883
|
-
x: number;
|
|
884
|
-
y: number;
|
|
885
|
-
rotation: number;
|
|
886
|
-
width?: number | undefined;
|
|
887
|
-
height?: number | undefined;
|
|
888
|
-
};
|
|
889
|
-
seqNum: number;
|
|
890
|
-
z: number;
|
|
891
|
-
imageAssignment?: {
|
|
892
|
-
photoRefId: string;
|
|
893
|
-
finalCrop: number[];
|
|
894
|
-
} | undefined;
|
|
895
|
-
id?: string | undefined;
|
|
896
|
-
horizJustification?: string | undefined;
|
|
897
|
-
vertJustification?: string | null | undefined;
|
|
898
|
-
text?: string | undefined;
|
|
899
|
-
fontId?: string | undefined;
|
|
900
|
-
fontSize?: number | undefined;
|
|
901
|
-
fontColor?: string | undefined;
|
|
902
|
-
frame?: string | undefined;
|
|
903
|
-
}[] | undefined;
|
|
904
|
-
};
|
|
905
|
-
}[];
|
|
906
|
-
photoStrip: {
|
|
907
1086
|
url: string;
|
|
908
|
-
photoRefId: string;
|
|
909
1087
|
encryptId: string;
|
|
910
1088
|
photoId: string;
|
|
911
1089
|
photoMetadata: {
|
|
912
1090
|
data: string | null;
|
|
913
|
-
id: string;
|
|
914
|
-
title: string;
|
|
915
1091
|
width: number;
|
|
916
1092
|
height: number;
|
|
917
1093
|
rotation: number;
|
|
1094
|
+
id: string;
|
|
918
1095
|
llx: number;
|
|
919
1096
|
lly: number;
|
|
920
1097
|
urx: number;
|
|
921
1098
|
ury: number;
|
|
1099
|
+
title: string;
|
|
922
1100
|
effect: string;
|
|
923
1101
|
source: string;
|
|
924
1102
|
uploadTime: string;
|
|
@@ -926,295 +1104,171 @@ declare class BooksEndpoints {
|
|
|
926
1104
|
}[];
|
|
927
1105
|
};
|
|
928
1106
|
reportingData: {
|
|
929
|
-
properties: {
|
|
930
|
-
key: string;
|
|
931
|
-
value?: any;
|
|
932
|
-
}[];
|
|
933
|
-
};
|
|
934
|
-
}>;
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
declare class DesignOptionsEndpoints {
|
|
938
|
-
private readonly engineAPI;
|
|
939
|
-
constructor(engineAPI: EngineAPI);
|
|
940
|
-
retrieve(bookSize: BookSize, imageCount: number, imageFilteringLevel: ImageFilteringLevel): Promise<{
|
|
941
|
-
densities: {
|
|
942
|
-
low: {
|
|
943
|
-
max_page_count: number;
|
|
944
|
-
min_page_count: number;
|
|
945
|
-
max_image_count: number;
|
|
946
|
-
avg_image_count: number;
|
|
947
|
-
min_image_count: number;
|
|
948
|
-
};
|
|
949
|
-
medium: {
|
|
950
|
-
max_page_count: number;
|
|
951
|
-
min_page_count: number;
|
|
952
|
-
max_image_count: number;
|
|
953
|
-
avg_image_count: number;
|
|
954
|
-
min_image_count: number;
|
|
955
|
-
};
|
|
956
|
-
high: {
|
|
957
|
-
max_page_count: number;
|
|
958
|
-
min_page_count: number;
|
|
959
|
-
max_image_count: number;
|
|
960
|
-
avg_image_count: number;
|
|
961
|
-
min_image_count: number;
|
|
962
|
-
};
|
|
963
|
-
};
|
|
964
|
-
}>;
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
type CallProps = {
|
|
968
|
-
path: string;
|
|
969
|
-
options?: RequestInit;
|
|
970
|
-
apiKey?: string;
|
|
971
|
-
};
|
|
972
|
-
declare class Fetcher {
|
|
973
|
-
baseUrl: URL;
|
|
974
|
-
options: RequestInit;
|
|
975
|
-
constructor(baseUrl: string, options?: RequestInit | undefined);
|
|
976
|
-
call(props: CallProps): Promise<any>;
|
|
977
|
-
cleanUrl(url: string): string;
|
|
978
|
-
}
|
|
979
|
-
|
|
980
|
-
declare class ImagesEndpoints {
|
|
981
|
-
private readonly engineAPI;
|
|
982
|
-
constructor(engineAPI: EngineAPI);
|
|
983
|
-
list(bookId: string): Promise<{
|
|
984
|
-
handle: string;
|
|
985
|
-
url: string;
|
|
986
|
-
width: number;
|
|
987
|
-
height: number;
|
|
988
|
-
orientation: number;
|
|
989
|
-
taken_at: string;
|
|
990
|
-
filename: string;
|
|
991
|
-
id?: string | undefined;
|
|
992
|
-
camera_make?: string | undefined;
|
|
993
|
-
camera?: string | undefined;
|
|
994
|
-
}[]>;
|
|
995
|
-
retrieve(imageId: string, bookId: string): Promise<{
|
|
996
|
-
handle: string;
|
|
997
|
-
url: string;
|
|
998
|
-
width: number;
|
|
999
|
-
height: number;
|
|
1000
|
-
orientation: number;
|
|
1001
|
-
taken_at: string;
|
|
1002
|
-
filename: string;
|
|
1003
|
-
id?: string | undefined;
|
|
1004
|
-
camera_make?: string | undefined;
|
|
1005
|
-
camera?: string | undefined;
|
|
1006
|
-
}>;
|
|
1007
|
-
update(imageId: string, bookId: string, image: ImageServer): Promise<{
|
|
1008
|
-
handle: string;
|
|
1009
|
-
url: string;
|
|
1010
|
-
width: number;
|
|
1011
|
-
height: number;
|
|
1012
|
-
orientation: number;
|
|
1013
|
-
taken_at: string;
|
|
1014
|
-
filename: string;
|
|
1015
|
-
id?: string | undefined;
|
|
1016
|
-
camera_make?: string | undefined;
|
|
1017
|
-
camera?: string | undefined;
|
|
1018
|
-
}>;
|
|
1019
|
-
delete(imageId: string, bookId: string): Promise<void>;
|
|
1020
|
-
addToBook(bookId: string, image: ImageServer): Promise<{
|
|
1021
|
-
handle: string;
|
|
1022
|
-
url: string;
|
|
1023
|
-
width: number;
|
|
1024
|
-
height: number;
|
|
1025
|
-
orientation: number;
|
|
1026
|
-
taken_at: string;
|
|
1027
|
-
filename: string;
|
|
1028
|
-
id?: string | undefined;
|
|
1029
|
-
camera_make?: string | undefined;
|
|
1030
|
-
camera?: string | undefined;
|
|
1031
|
-
}>;
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
declare const spreadServerSchema: z.ZodObject<{
|
|
1035
|
-
id: z.ZodOptional<z.ZodString>;
|
|
1036
|
-
book_id: z.ZodString;
|
|
1037
|
-
state: z.ZodString;
|
|
1038
|
-
spread_type: z.ZodString;
|
|
1039
|
-
width: z.ZodOptional<z.ZodNumber>;
|
|
1040
|
-
height: z.ZodOptional<z.ZodNumber>;
|
|
1041
|
-
sequence: z.ZodNumber;
|
|
1042
|
-
wells: z.ZodArray<z.ZodUnknown, "many">;
|
|
1043
|
-
background: z.ZodUnknown;
|
|
1044
|
-
laid_out_at: z.ZodNullable<z.ZodString>;
|
|
1045
|
-
embellished_at: z.ZodNullable<z.ZodString>;
|
|
1046
|
-
polished_at: z.ZodNullable<z.ZodString>;
|
|
1047
|
-
metadata: z.ZodUnknown;
|
|
1048
|
-
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1049
|
-
}, "strip", z.ZodTypeAny, {
|
|
1050
|
-
state: string;
|
|
1051
|
-
book_id: string;
|
|
1052
|
-
spread_type: string;
|
|
1053
|
-
sequence: number;
|
|
1054
|
-
wells: unknown[];
|
|
1055
|
-
laid_out_at: string | null;
|
|
1056
|
-
embellished_at: string | null;
|
|
1057
|
-
polished_at: string | null;
|
|
1058
|
-
id?: string | undefined;
|
|
1059
|
-
width?: number | undefined;
|
|
1060
|
-
height?: number | undefined;
|
|
1061
|
-
background?: unknown;
|
|
1062
|
-
metadata?: unknown;
|
|
1063
|
-
url?: string | null | undefined;
|
|
1064
|
-
}, {
|
|
1065
|
-
state: string;
|
|
1066
|
-
book_id: string;
|
|
1067
|
-
spread_type: string;
|
|
1068
|
-
sequence: number;
|
|
1069
|
-
wells: unknown[];
|
|
1070
|
-
laid_out_at: string | null;
|
|
1071
|
-
embellished_at: string | null;
|
|
1072
|
-
polished_at: string | null;
|
|
1073
|
-
id?: string | undefined;
|
|
1074
|
-
width?: number | undefined;
|
|
1075
|
-
height?: number | undefined;
|
|
1076
|
-
background?: unknown;
|
|
1077
|
-
metadata?: unknown;
|
|
1078
|
-
url?: string | null | undefined;
|
|
1079
|
-
}>;
|
|
1080
|
-
type SpreadServer = z.infer<typeof spreadServerSchema>;
|
|
1081
|
-
|
|
1082
|
-
declare class SpreadsEndpoints {
|
|
1083
|
-
private readonly engineAPI;
|
|
1084
|
-
constructor(engineAPI: EngineAPI);
|
|
1085
|
-
list(bookId: string): Promise<{
|
|
1086
|
-
state: string;
|
|
1087
|
-
book_id: string;
|
|
1088
|
-
spread_type: string;
|
|
1089
|
-
sequence: number;
|
|
1090
|
-
wells: unknown[];
|
|
1091
|
-
laid_out_at: string | null;
|
|
1092
|
-
embellished_at: string | null;
|
|
1093
|
-
polished_at: string | null;
|
|
1094
|
-
id?: string | undefined;
|
|
1095
|
-
width?: number | undefined;
|
|
1096
|
-
height?: number | undefined;
|
|
1097
|
-
background?: unknown;
|
|
1098
|
-
metadata?: unknown;
|
|
1099
|
-
url?: string | null | undefined;
|
|
1100
|
-
}[]>;
|
|
1101
|
-
create(bookId: string, spread: SpreadServer): Promise<{
|
|
1102
|
-
state: string;
|
|
1103
|
-
book_id: string;
|
|
1104
|
-
spread_type: string;
|
|
1105
|
-
sequence: number;
|
|
1106
|
-
wells: unknown[];
|
|
1107
|
-
laid_out_at: string | null;
|
|
1108
|
-
embellished_at: string | null;
|
|
1109
|
-
polished_at: string | null;
|
|
1110
|
-
id?: string | undefined;
|
|
1111
|
-
width?: number | undefined;
|
|
1112
|
-
height?: number | undefined;
|
|
1113
|
-
background?: unknown;
|
|
1114
|
-
metadata?: unknown;
|
|
1115
|
-
url?: string | null | undefined;
|
|
1116
|
-
}>;
|
|
1117
|
-
retrieve(spreadId: string, bookId: string): Promise<{
|
|
1118
|
-
state: string;
|
|
1119
|
-
book_id: string;
|
|
1120
|
-
spread_type: string;
|
|
1121
|
-
sequence: number;
|
|
1122
|
-
wells: unknown[];
|
|
1123
|
-
laid_out_at: string | null;
|
|
1124
|
-
embellished_at: string | null;
|
|
1125
|
-
polished_at: string | null;
|
|
1126
|
-
id?: string | undefined;
|
|
1127
|
-
width?: number | undefined;
|
|
1128
|
-
height?: number | undefined;
|
|
1129
|
-
background?: unknown;
|
|
1130
|
-
metadata?: unknown;
|
|
1131
|
-
url?: string | null | undefined;
|
|
1132
|
-
}>;
|
|
1133
|
-
update(spreadId: string, bookId: string, spread: SpreadServer): Promise<{
|
|
1134
|
-
state: string;
|
|
1135
|
-
book_id: string;
|
|
1136
|
-
spread_type: string;
|
|
1137
|
-
sequence: number;
|
|
1138
|
-
wells: unknown[];
|
|
1139
|
-
laid_out_at: string | null;
|
|
1140
|
-
embellished_at: string | null;
|
|
1141
|
-
polished_at: string | null;
|
|
1142
|
-
id?: string | undefined;
|
|
1143
|
-
width?: number | undefined;
|
|
1144
|
-
height?: number | undefined;
|
|
1145
|
-
background?: unknown;
|
|
1146
|
-
metadata?: unknown;
|
|
1147
|
-
url?: string | null | undefined;
|
|
1148
|
-
}>;
|
|
1149
|
-
delete(spreadId: string, bookId: string): Promise<void>;
|
|
1150
|
-
}
|
|
1151
|
-
|
|
1152
|
-
declare class StoryboardItemsEndpoints {
|
|
1153
|
-
private readonly engineAPI;
|
|
1154
|
-
constructor(engineAPI: EngineAPI);
|
|
1155
|
-
list(bookId: string): Promise<{
|
|
1156
|
-
id: string;
|
|
1157
|
-
book_id: string;
|
|
1158
|
-
sequence: number;
|
|
1159
|
-
similarity: number;
|
|
1160
|
-
duplicate: boolean;
|
|
1161
|
-
selected: boolean;
|
|
1162
|
-
surface_weight: number;
|
|
1163
|
-
scene: number;
|
|
1164
|
-
subscene: number;
|
|
1165
|
-
image: {
|
|
1166
|
-
id: string;
|
|
1167
|
-
url: string;
|
|
1168
|
-
width: number;
|
|
1169
|
-
height: number;
|
|
1170
|
-
taken_at: number;
|
|
1171
|
-
category: string;
|
|
1172
|
-
aesthetic_score: number;
|
|
1173
|
-
faces: {
|
|
1174
|
-
score: number;
|
|
1175
|
-
bounding_box: {
|
|
1176
|
-
width: number;
|
|
1177
|
-
height: number;
|
|
1178
|
-
x: number;
|
|
1179
|
-
y: number;
|
|
1180
|
-
};
|
|
1181
|
-
size: number;
|
|
1182
|
-
eyes_open_score: number;
|
|
1183
|
-
smile_score: number;
|
|
1184
|
-
facing_camera_score: number;
|
|
1107
|
+
properties: {
|
|
1108
|
+
key: string;
|
|
1109
|
+
value?: any;
|
|
1185
1110
|
}[];
|
|
1186
|
-
roi: {
|
|
1187
|
-
width: number;
|
|
1188
|
-
height: number;
|
|
1189
|
-
x: number;
|
|
1190
|
-
y: number;
|
|
1191
|
-
};
|
|
1192
1111
|
};
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1112
|
+
}>;
|
|
1113
|
+
logEvent(name: string, data?: EventContext): Promise<{
|
|
1114
|
+
name: string;
|
|
1115
|
+
context?: Record<string, unknown> | undefined;
|
|
1116
|
+
}>;
|
|
1117
|
+
private eventHandler;
|
|
1118
|
+
private timeoutHandler;
|
|
1119
|
+
private getProgress;
|
|
1120
|
+
private toBook;
|
|
1197
1121
|
}
|
|
1198
1122
|
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1123
|
+
type BookReport = {
|
|
1124
|
+
error: 'timeout' | 'design';
|
|
1125
|
+
step: string;
|
|
1126
|
+
};
|
|
1127
|
+
type BookDesignRequestProps = {
|
|
1128
|
+
occasion: Occasion;
|
|
1129
|
+
style: string;
|
|
1130
|
+
book_size: BookSize;
|
|
1131
|
+
cover_type: CoverType;
|
|
1132
|
+
page_type: PageType;
|
|
1133
|
+
image_density: ImageDensity;
|
|
1134
|
+
image_filtering_level: ImageFilteringLevel;
|
|
1135
|
+
embellishment_level: EmbellishmentLevel;
|
|
1136
|
+
text_sticker_level: TextStickerLevel;
|
|
1137
|
+
};
|
|
1138
|
+
declare class BookDesignRequest {
|
|
1139
|
+
occasion: Occasion;
|
|
1140
|
+
style: string;
|
|
1141
|
+
book_size: BookSize;
|
|
1142
|
+
cover_type: CoverType;
|
|
1143
|
+
page_type: PageType;
|
|
1144
|
+
image_density: ImageDensity;
|
|
1145
|
+
image_filtering_level: ImageFilteringLevel;
|
|
1146
|
+
embellishment_level: EmbellishmentLevel;
|
|
1147
|
+
text_sticker_level: TextStickerLevel;
|
|
1148
|
+
constructor(props: BookDesignRequestProps);
|
|
1209
1149
|
}
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1150
|
+
declare const bookDesignRequestSchema: z.ZodObject<{
|
|
1151
|
+
occasion: z.ZodEnum<["baby", "birthday", "default", "everyday", "family", "kids", "life-stories", "portfolio", "school-memories", "seasonal-holidays", "special-celebrations", "sports-and-hobbies", "travel", "wedding", "year-in-review"]>;
|
|
1152
|
+
style: z.ZodString;
|
|
1153
|
+
book_size: z.ZodEnum<["8x8", "10x10", "12x12", "8x11", "11x8", "11x14"]>;
|
|
1154
|
+
cover_type: z.ZodEnum<["sc", "hc", "pl"]>;
|
|
1155
|
+
page_type: z.ZodEnum<["sp", "sl", "dl"]>;
|
|
1156
|
+
image_density: z.ZodEnum<["low", "medium", "high"]>;
|
|
1157
|
+
image_filtering_level: z.ZodEnum<["best", "most", "all"]>;
|
|
1158
|
+
embellishment_level: z.ZodEnum<["none", "few", "lots"]>;
|
|
1159
|
+
text_sticker_level: z.ZodEnum<["none", "few", "lots"]>;
|
|
1160
|
+
}, "strip", z.ZodTypeAny, {
|
|
1161
|
+
occasion: "baby" | "birthday" | "default" | "everyday" | "family" | "kids" | "life-stories" | "portfolio" | "school-memories" | "seasonal-holidays" | "special-celebrations" | "sports-and-hobbies" | "travel" | "wedding" | "year-in-review";
|
|
1162
|
+
style: string;
|
|
1163
|
+
book_size: "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
|
|
1164
|
+
cover_type: "sc" | "hc" | "pl";
|
|
1165
|
+
page_type: "sp" | "sl" | "dl";
|
|
1166
|
+
image_density: "low" | "medium" | "high";
|
|
1167
|
+
image_filtering_level: "best" | "most" | "all";
|
|
1168
|
+
embellishment_level: "none" | "few" | "lots";
|
|
1169
|
+
text_sticker_level: "none" | "few" | "lots";
|
|
1170
|
+
}, {
|
|
1171
|
+
occasion: "baby" | "birthday" | "default" | "everyday" | "family" | "kids" | "life-stories" | "portfolio" | "school-memories" | "seasonal-holidays" | "special-celebrations" | "sports-and-hobbies" | "travel" | "wedding" | "year-in-review";
|
|
1172
|
+
style: string;
|
|
1173
|
+
book_size: "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
|
|
1174
|
+
cover_type: "sc" | "hc" | "pl";
|
|
1175
|
+
page_type: "sp" | "sl" | "dl";
|
|
1176
|
+
image_density: "low" | "medium" | "high";
|
|
1177
|
+
image_filtering_level: "best" | "most" | "all";
|
|
1178
|
+
embellishment_level: "none" | "few" | "lots";
|
|
1179
|
+
text_sticker_level: "none" | "few" | "lots";
|
|
1180
|
+
}>;
|
|
1181
|
+
declare const bookPropsSchema: z.ZodObject<{
|
|
1182
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1183
|
+
title: z.ZodString;
|
|
1184
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
1185
|
+
design_request: z.ZodObject<{
|
|
1186
|
+
occasion: z.ZodEnum<["baby", "birthday", "default", "everyday", "family", "kids", "life-stories", "portfolio", "school-memories", "seasonal-holidays", "special-celebrations", "sports-and-hobbies", "travel", "wedding", "year-in-review"]>;
|
|
1187
|
+
style: z.ZodString;
|
|
1188
|
+
book_size: z.ZodEnum<["8x8", "10x10", "12x12", "8x11", "11x8", "11x14"]>;
|
|
1189
|
+
cover_type: z.ZodEnum<["sc", "hc", "pl"]>;
|
|
1190
|
+
page_type: z.ZodEnum<["sp", "sl", "dl"]>;
|
|
1191
|
+
image_density: z.ZodEnum<["low", "medium", "high"]>;
|
|
1192
|
+
image_filtering_level: z.ZodEnum<["best", "most", "all"]>;
|
|
1193
|
+
embellishment_level: z.ZodEnum<["none", "few", "lots"]>;
|
|
1194
|
+
text_sticker_level: z.ZodEnum<["none", "few", "lots"]>;
|
|
1195
|
+
}, "strip", z.ZodTypeAny, {
|
|
1196
|
+
occasion: "baby" | "birthday" | "default" | "everyday" | "family" | "kids" | "life-stories" | "portfolio" | "school-memories" | "seasonal-holidays" | "special-celebrations" | "sports-and-hobbies" | "travel" | "wedding" | "year-in-review";
|
|
1197
|
+
style: string;
|
|
1198
|
+
book_size: "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
|
|
1199
|
+
cover_type: "sc" | "hc" | "pl";
|
|
1200
|
+
page_type: "sp" | "sl" | "dl";
|
|
1201
|
+
image_density: "low" | "medium" | "high";
|
|
1202
|
+
image_filtering_level: "best" | "most" | "all";
|
|
1203
|
+
embellishment_level: "none" | "few" | "lots";
|
|
1204
|
+
text_sticker_level: "none" | "few" | "lots";
|
|
1205
|
+
}, {
|
|
1206
|
+
occasion: "baby" | "birthday" | "default" | "everyday" | "family" | "kids" | "life-stories" | "portfolio" | "school-memories" | "seasonal-holidays" | "special-celebrations" | "sports-and-hobbies" | "travel" | "wedding" | "year-in-review";
|
|
1207
|
+
style: string;
|
|
1208
|
+
book_size: "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
|
|
1209
|
+
cover_type: "sc" | "hc" | "pl";
|
|
1210
|
+
page_type: "sp" | "sl" | "dl";
|
|
1211
|
+
image_density: "low" | "medium" | "high";
|
|
1212
|
+
image_filtering_level: "best" | "most" | "all";
|
|
1213
|
+
embellishment_level: "none" | "few" | "lots";
|
|
1214
|
+
text_sticker_level: "none" | "few" | "lots";
|
|
1215
|
+
}>;
|
|
1216
|
+
state: z.ZodOptional<z.ZodEnum<["new", "ingesting", "submitted", "storyboarding", "deduplication", "image-selection", "designing", "layouting", "embellishing", "polishing", "ready", "timeout", "error", "cancelled"]>>;
|
|
1217
|
+
guid: z.ZodOptional<z.ZodString>;
|
|
1218
|
+
cancelled_at: z.ZodOptional<z.ZodString>;
|
|
1219
|
+
mb_client_timeout: z.ZodOptional<z.ZodNumber>;
|
|
1220
|
+
}, "strip", z.ZodTypeAny, {
|
|
1221
|
+
title: string;
|
|
1222
|
+
design_request: {
|
|
1223
|
+
occasion: "baby" | "birthday" | "default" | "everyday" | "family" | "kids" | "life-stories" | "portfolio" | "school-memories" | "seasonal-holidays" | "special-celebrations" | "sports-and-hobbies" | "travel" | "wedding" | "year-in-review";
|
|
1224
|
+
style: string;
|
|
1225
|
+
book_size: "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
|
|
1226
|
+
cover_type: "sc" | "hc" | "pl";
|
|
1227
|
+
page_type: "sp" | "sl" | "dl";
|
|
1228
|
+
image_density: "low" | "medium" | "high";
|
|
1229
|
+
image_filtering_level: "best" | "most" | "all";
|
|
1230
|
+
embellishment_level: "none" | "few" | "lots";
|
|
1231
|
+
text_sticker_level: "none" | "few" | "lots";
|
|
1232
|
+
};
|
|
1233
|
+
id?: string | undefined;
|
|
1234
|
+
subtitle?: string | undefined;
|
|
1235
|
+
state?: "new" | "ingesting" | "submitted" | "storyboarding" | "deduplication" | "image-selection" | "designing" | "layouting" | "embellishing" | "polishing" | "ready" | "timeout" | "error" | "cancelled" | undefined;
|
|
1236
|
+
guid?: string | undefined;
|
|
1237
|
+
cancelled_at?: string | undefined;
|
|
1238
|
+
mb_client_timeout?: number | undefined;
|
|
1239
|
+
}, {
|
|
1240
|
+
title: string;
|
|
1241
|
+
design_request: {
|
|
1242
|
+
occasion: "baby" | "birthday" | "default" | "everyday" | "family" | "kids" | "life-stories" | "portfolio" | "school-memories" | "seasonal-holidays" | "special-celebrations" | "sports-and-hobbies" | "travel" | "wedding" | "year-in-review";
|
|
1243
|
+
style: string;
|
|
1244
|
+
book_size: "8x8" | "10x10" | "12x12" | "8x11" | "11x8" | "11x14";
|
|
1245
|
+
cover_type: "sc" | "hc" | "pl";
|
|
1246
|
+
page_type: "sp" | "sl" | "dl";
|
|
1247
|
+
image_density: "low" | "medium" | "high";
|
|
1248
|
+
image_filtering_level: "best" | "most" | "all";
|
|
1249
|
+
embellishment_level: "none" | "few" | "lots";
|
|
1250
|
+
text_sticker_level: "none" | "few" | "lots";
|
|
1251
|
+
};
|
|
1252
|
+
id?: string | undefined;
|
|
1253
|
+
subtitle?: string | undefined;
|
|
1254
|
+
state?: "new" | "ingesting" | "submitted" | "storyboarding" | "deduplication" | "image-selection" | "designing" | "layouting" | "embellishing" | "polishing" | "ready" | "timeout" | "error" | "cancelled" | undefined;
|
|
1255
|
+
guid?: string | undefined;
|
|
1256
|
+
cancelled_at?: string | undefined;
|
|
1257
|
+
mb_client_timeout?: number | undefined;
|
|
1258
|
+
}>;
|
|
1259
|
+
type BookProps = z.infer<typeof bookPropsSchema>;
|
|
1260
|
+
declare class Book {
|
|
1261
|
+
id: string;
|
|
1262
|
+
title: string;
|
|
1263
|
+
subtitle?: string;
|
|
1264
|
+
design_request: BookDesignRequest;
|
|
1265
|
+
state?: State;
|
|
1266
|
+
guid?: string;
|
|
1267
|
+
cancelled_at?: string;
|
|
1268
|
+
timeout?: number;
|
|
1269
|
+
constructor(props: BookProps);
|
|
1270
|
+
toDesignRequestProps(): Record<string, unknown>;
|
|
1271
|
+
toBookProps(): BookProps;
|
|
1218
1272
|
}
|
|
1219
1273
|
|
|
1220
1274
|
declare const imageDensityOptionSchema: z.ZodObject<{
|
|
@@ -1821,29 +1875,29 @@ declare const photoMetadataSchema: z.ZodObject<{
|
|
|
1821
1875
|
uploadTime: z.ZodString;
|
|
1822
1876
|
}, "strip", z.ZodTypeAny, {
|
|
1823
1877
|
data: string | null;
|
|
1824
|
-
id: string;
|
|
1825
|
-
title: string;
|
|
1826
1878
|
width: number;
|
|
1827
1879
|
height: number;
|
|
1828
1880
|
rotation: number;
|
|
1881
|
+
id: string;
|
|
1829
1882
|
llx: number;
|
|
1830
1883
|
lly: number;
|
|
1831
1884
|
urx: number;
|
|
1832
1885
|
ury: number;
|
|
1886
|
+
title: string;
|
|
1833
1887
|
effect: string;
|
|
1834
1888
|
source: string;
|
|
1835
1889
|
uploadTime: string;
|
|
1836
1890
|
}, {
|
|
1837
1891
|
data: string | null;
|
|
1838
|
-
id: string;
|
|
1839
|
-
title: string;
|
|
1840
1892
|
width: number;
|
|
1841
1893
|
height: number;
|
|
1842
1894
|
rotation: number;
|
|
1895
|
+
id: string;
|
|
1843
1896
|
llx: number;
|
|
1844
1897
|
lly: number;
|
|
1845
1898
|
urx: number;
|
|
1846
1899
|
ury: number;
|
|
1900
|
+
title: string;
|
|
1847
1901
|
effect: string;
|
|
1848
1902
|
source: string;
|
|
1849
1903
|
uploadTime: string;
|
|
@@ -1970,69 +2024,69 @@ declare const photoStripSchema: z.ZodObject<{
|
|
|
1970
2024
|
uploadTime: z.ZodString;
|
|
1971
2025
|
}, "strip", z.ZodTypeAny, {
|
|
1972
2026
|
data: string | null;
|
|
1973
|
-
id: string;
|
|
1974
|
-
title: string;
|
|
1975
2027
|
width: number;
|
|
1976
2028
|
height: number;
|
|
1977
2029
|
rotation: number;
|
|
2030
|
+
id: string;
|
|
1978
2031
|
llx: number;
|
|
1979
2032
|
lly: number;
|
|
1980
2033
|
urx: number;
|
|
1981
2034
|
ury: number;
|
|
2035
|
+
title: string;
|
|
1982
2036
|
effect: string;
|
|
1983
2037
|
source: string;
|
|
1984
2038
|
uploadTime: string;
|
|
1985
2039
|
}, {
|
|
1986
2040
|
data: string | null;
|
|
1987
|
-
id: string;
|
|
1988
|
-
title: string;
|
|
1989
2041
|
width: number;
|
|
1990
2042
|
height: number;
|
|
1991
2043
|
rotation: number;
|
|
2044
|
+
id: string;
|
|
1992
2045
|
llx: number;
|
|
1993
2046
|
lly: number;
|
|
1994
2047
|
urx: number;
|
|
1995
2048
|
ury: number;
|
|
2049
|
+
title: string;
|
|
1996
2050
|
effect: string;
|
|
1997
2051
|
source: string;
|
|
1998
2052
|
uploadTime: string;
|
|
1999
2053
|
}>;
|
|
2000
2054
|
}, "strip", z.ZodTypeAny, {
|
|
2001
|
-
url: string;
|
|
2002
2055
|
photoRefId: string;
|
|
2056
|
+
url: string;
|
|
2003
2057
|
encryptId: string;
|
|
2004
2058
|
photoId: string;
|
|
2005
2059
|
photoMetadata: {
|
|
2006
2060
|
data: string | null;
|
|
2007
|
-
id: string;
|
|
2008
|
-
title: string;
|
|
2009
2061
|
width: number;
|
|
2010
2062
|
height: number;
|
|
2011
2063
|
rotation: number;
|
|
2064
|
+
id: string;
|
|
2012
2065
|
llx: number;
|
|
2013
2066
|
lly: number;
|
|
2014
2067
|
urx: number;
|
|
2015
2068
|
ury: number;
|
|
2069
|
+
title: string;
|
|
2016
2070
|
effect: string;
|
|
2017
2071
|
source: string;
|
|
2018
2072
|
uploadTime: string;
|
|
2019
2073
|
};
|
|
2020
2074
|
}, {
|
|
2021
|
-
url: string;
|
|
2022
2075
|
photoRefId: string;
|
|
2076
|
+
url: string;
|
|
2023
2077
|
encryptId: string;
|
|
2024
2078
|
photoId: string;
|
|
2025
2079
|
photoMetadata: {
|
|
2026
2080
|
data: string | null;
|
|
2027
|
-
id: string;
|
|
2028
|
-
title: string;
|
|
2029
2081
|
width: number;
|
|
2030
2082
|
height: number;
|
|
2031
2083
|
rotation: number;
|
|
2084
|
+
id: string;
|
|
2032
2085
|
llx: number;
|
|
2033
2086
|
lly: number;
|
|
2034
2087
|
urx: number;
|
|
2035
2088
|
ury: number;
|
|
2089
|
+
title: string;
|
|
2036
2090
|
effect: string;
|
|
2037
2091
|
source: string;
|
|
2038
2092
|
uploadTime: string;
|
|
@@ -2643,69 +2697,69 @@ declare const magicShopBookSchema: z.ZodObject<{
|
|
|
2643
2697
|
uploadTime: z.ZodString;
|
|
2644
2698
|
}, "strip", z.ZodTypeAny, {
|
|
2645
2699
|
data: string | null;
|
|
2646
|
-
id: string;
|
|
2647
|
-
title: string;
|
|
2648
2700
|
width: number;
|
|
2649
2701
|
height: number;
|
|
2650
2702
|
rotation: number;
|
|
2703
|
+
id: string;
|
|
2651
2704
|
llx: number;
|
|
2652
2705
|
lly: number;
|
|
2653
2706
|
urx: number;
|
|
2654
2707
|
ury: number;
|
|
2708
|
+
title: string;
|
|
2655
2709
|
effect: string;
|
|
2656
2710
|
source: string;
|
|
2657
2711
|
uploadTime: string;
|
|
2658
2712
|
}, {
|
|
2659
2713
|
data: string | null;
|
|
2660
|
-
id: string;
|
|
2661
|
-
title: string;
|
|
2662
2714
|
width: number;
|
|
2663
2715
|
height: number;
|
|
2664
2716
|
rotation: number;
|
|
2717
|
+
id: string;
|
|
2665
2718
|
llx: number;
|
|
2666
2719
|
lly: number;
|
|
2667
2720
|
urx: number;
|
|
2668
2721
|
ury: number;
|
|
2722
|
+
title: string;
|
|
2669
2723
|
effect: string;
|
|
2670
2724
|
source: string;
|
|
2671
2725
|
uploadTime: string;
|
|
2672
2726
|
}>;
|
|
2673
2727
|
}, "strip", z.ZodTypeAny, {
|
|
2674
|
-
url: string;
|
|
2675
2728
|
photoRefId: string;
|
|
2729
|
+
url: string;
|
|
2676
2730
|
encryptId: string;
|
|
2677
2731
|
photoId: string;
|
|
2678
2732
|
photoMetadata: {
|
|
2679
2733
|
data: string | null;
|
|
2680
|
-
id: string;
|
|
2681
|
-
title: string;
|
|
2682
2734
|
width: number;
|
|
2683
2735
|
height: number;
|
|
2684
2736
|
rotation: number;
|
|
2737
|
+
id: string;
|
|
2685
2738
|
llx: number;
|
|
2686
2739
|
lly: number;
|
|
2687
2740
|
urx: number;
|
|
2688
2741
|
ury: number;
|
|
2742
|
+
title: string;
|
|
2689
2743
|
effect: string;
|
|
2690
2744
|
source: string;
|
|
2691
2745
|
uploadTime: string;
|
|
2692
2746
|
};
|
|
2693
2747
|
}, {
|
|
2694
|
-
url: string;
|
|
2695
2748
|
photoRefId: string;
|
|
2749
|
+
url: string;
|
|
2696
2750
|
encryptId: string;
|
|
2697
2751
|
photoId: string;
|
|
2698
2752
|
photoMetadata: {
|
|
2699
2753
|
data: string | null;
|
|
2700
|
-
id: string;
|
|
2701
|
-
title: string;
|
|
2702
2754
|
width: number;
|
|
2703
2755
|
height: number;
|
|
2704
2756
|
rotation: number;
|
|
2757
|
+
id: string;
|
|
2705
2758
|
llx: number;
|
|
2706
2759
|
lly: number;
|
|
2707
2760
|
urx: number;
|
|
2708
2761
|
ury: number;
|
|
2762
|
+
title: string;
|
|
2709
2763
|
effect: string;
|
|
2710
2764
|
source: string;
|
|
2711
2765
|
uploadTime: string;
|
|
@@ -2744,21 +2798,21 @@ declare const magicShopBookSchema: z.ZodObject<{
|
|
|
2744
2798
|
};
|
|
2745
2799
|
}[];
|
|
2746
2800
|
photoStrip: {
|
|
2747
|
-
url: string;
|
|
2748
2801
|
photoRefId: string;
|
|
2802
|
+
url: string;
|
|
2749
2803
|
encryptId: string;
|
|
2750
2804
|
photoId: string;
|
|
2751
2805
|
photoMetadata: {
|
|
2752
2806
|
data: string | null;
|
|
2753
|
-
id: string;
|
|
2754
|
-
title: string;
|
|
2755
2807
|
width: number;
|
|
2756
2808
|
height: number;
|
|
2757
2809
|
rotation: number;
|
|
2810
|
+
id: string;
|
|
2758
2811
|
llx: number;
|
|
2759
2812
|
lly: number;
|
|
2760
2813
|
urx: number;
|
|
2761
2814
|
ury: number;
|
|
2815
|
+
title: string;
|
|
2762
2816
|
effect: string;
|
|
2763
2817
|
source: string;
|
|
2764
2818
|
uploadTime: string;
|
|
@@ -2797,21 +2851,21 @@ declare const magicShopBookSchema: z.ZodObject<{
|
|
|
2797
2851
|
};
|
|
2798
2852
|
}[];
|
|
2799
2853
|
photoStrip: {
|
|
2800
|
-
url: string;
|
|
2801
2854
|
photoRefId: string;
|
|
2855
|
+
url: string;
|
|
2802
2856
|
encryptId: string;
|
|
2803
2857
|
photoId: string;
|
|
2804
2858
|
photoMetadata: {
|
|
2805
2859
|
data: string | null;
|
|
2806
|
-
id: string;
|
|
2807
|
-
title: string;
|
|
2808
2860
|
width: number;
|
|
2809
2861
|
height: number;
|
|
2810
2862
|
rotation: number;
|
|
2863
|
+
id: string;
|
|
2811
2864
|
llx: number;
|
|
2812
2865
|
lly: number;
|
|
2813
2866
|
urx: number;
|
|
2814
2867
|
ury: number;
|
|
2868
|
+
title: string;
|
|
2815
2869
|
effect: string;
|
|
2816
2870
|
source: string;
|
|
2817
2871
|
uploadTime: string;
|
|
@@ -3054,69 +3108,69 @@ declare const bookCreationRequestSchema: z.ZodObject<{
|
|
|
3054
3108
|
uploadTime: z.ZodString;
|
|
3055
3109
|
}, "strip", z.ZodTypeAny, {
|
|
3056
3110
|
data: string | null;
|
|
3057
|
-
id: string;
|
|
3058
|
-
title: string;
|
|
3059
3111
|
width: number;
|
|
3060
3112
|
height: number;
|
|
3061
3113
|
rotation: number;
|
|
3114
|
+
id: string;
|
|
3062
3115
|
llx: number;
|
|
3063
3116
|
lly: number;
|
|
3064
3117
|
urx: number;
|
|
3065
3118
|
ury: number;
|
|
3119
|
+
title: string;
|
|
3066
3120
|
effect: string;
|
|
3067
3121
|
source: string;
|
|
3068
3122
|
uploadTime: string;
|
|
3069
3123
|
}, {
|
|
3070
3124
|
data: string | null;
|
|
3071
|
-
id: string;
|
|
3072
|
-
title: string;
|
|
3073
3125
|
width: number;
|
|
3074
3126
|
height: number;
|
|
3075
3127
|
rotation: number;
|
|
3128
|
+
id: string;
|
|
3076
3129
|
llx: number;
|
|
3077
3130
|
lly: number;
|
|
3078
3131
|
urx: number;
|
|
3079
3132
|
ury: number;
|
|
3133
|
+
title: string;
|
|
3080
3134
|
effect: string;
|
|
3081
3135
|
source: string;
|
|
3082
3136
|
uploadTime: string;
|
|
3083
3137
|
}>;
|
|
3084
3138
|
}, "strip", z.ZodTypeAny, {
|
|
3085
|
-
url: string;
|
|
3086
3139
|
photoRefId: string;
|
|
3140
|
+
url: string;
|
|
3087
3141
|
encryptId: string;
|
|
3088
3142
|
photoId: string;
|
|
3089
3143
|
photoMetadata: {
|
|
3090
3144
|
data: string | null;
|
|
3091
|
-
id: string;
|
|
3092
|
-
title: string;
|
|
3093
3145
|
width: number;
|
|
3094
3146
|
height: number;
|
|
3095
3147
|
rotation: number;
|
|
3148
|
+
id: string;
|
|
3096
3149
|
llx: number;
|
|
3097
3150
|
lly: number;
|
|
3098
3151
|
urx: number;
|
|
3099
3152
|
ury: number;
|
|
3153
|
+
title: string;
|
|
3100
3154
|
effect: string;
|
|
3101
3155
|
source: string;
|
|
3102
3156
|
uploadTime: string;
|
|
3103
3157
|
};
|
|
3104
3158
|
}, {
|
|
3105
|
-
url: string;
|
|
3106
3159
|
photoRefId: string;
|
|
3160
|
+
url: string;
|
|
3107
3161
|
encryptId: string;
|
|
3108
3162
|
photoId: string;
|
|
3109
3163
|
photoMetadata: {
|
|
3110
3164
|
data: string | null;
|
|
3111
|
-
id: string;
|
|
3112
|
-
title: string;
|
|
3113
3165
|
width: number;
|
|
3114
3166
|
height: number;
|
|
3115
3167
|
rotation: number;
|
|
3168
|
+
id: string;
|
|
3116
3169
|
llx: number;
|
|
3117
3170
|
lly: number;
|
|
3118
3171
|
urx: number;
|
|
3119
3172
|
ury: number;
|
|
3173
|
+
title: string;
|
|
3120
3174
|
effect: string;
|
|
3121
3175
|
source: string;
|
|
3122
3176
|
uploadTime: string;
|
|
@@ -3155,21 +3209,21 @@ declare const bookCreationRequestSchema: z.ZodObject<{
|
|
|
3155
3209
|
};
|
|
3156
3210
|
}[];
|
|
3157
3211
|
photoStrip: {
|
|
3158
|
-
url: string;
|
|
3159
3212
|
photoRefId: string;
|
|
3213
|
+
url: string;
|
|
3160
3214
|
encryptId: string;
|
|
3161
3215
|
photoId: string;
|
|
3162
3216
|
photoMetadata: {
|
|
3163
3217
|
data: string | null;
|
|
3164
|
-
id: string;
|
|
3165
|
-
title: string;
|
|
3166
3218
|
width: number;
|
|
3167
3219
|
height: number;
|
|
3168
3220
|
rotation: number;
|
|
3221
|
+
id: string;
|
|
3169
3222
|
llx: number;
|
|
3170
3223
|
lly: number;
|
|
3171
3224
|
urx: number;
|
|
3172
3225
|
ury: number;
|
|
3226
|
+
title: string;
|
|
3173
3227
|
effect: string;
|
|
3174
3228
|
source: string;
|
|
3175
3229
|
uploadTime: string;
|
|
@@ -3208,21 +3262,21 @@ declare const bookCreationRequestSchema: z.ZodObject<{
|
|
|
3208
3262
|
};
|
|
3209
3263
|
}[];
|
|
3210
3264
|
photoStrip: {
|
|
3211
|
-
url: string;
|
|
3212
3265
|
photoRefId: string;
|
|
3266
|
+
url: string;
|
|
3213
3267
|
encryptId: string;
|
|
3214
3268
|
photoId: string;
|
|
3215
3269
|
photoMetadata: {
|
|
3216
3270
|
data: string | null;
|
|
3217
|
-
id: string;
|
|
3218
|
-
title: string;
|
|
3219
3271
|
width: number;
|
|
3220
3272
|
height: number;
|
|
3221
3273
|
rotation: number;
|
|
3274
|
+
id: string;
|
|
3222
3275
|
llx: number;
|
|
3223
3276
|
lly: number;
|
|
3224
3277
|
urx: number;
|
|
3225
3278
|
ury: number;
|
|
3279
|
+
title: string;
|
|
3226
3280
|
effect: string;
|
|
3227
3281
|
source: string;
|
|
3228
3282
|
uploadTime: string;
|
|
@@ -3290,21 +3344,21 @@ declare const bookCreationRequestSchema: z.ZodObject<{
|
|
|
3290
3344
|
};
|
|
3291
3345
|
}[];
|
|
3292
3346
|
photoStrip: {
|
|
3293
|
-
url: string;
|
|
3294
3347
|
photoRefId: string;
|
|
3348
|
+
url: string;
|
|
3295
3349
|
encryptId: string;
|
|
3296
3350
|
photoId: string;
|
|
3297
3351
|
photoMetadata: {
|
|
3298
3352
|
data: string | null;
|
|
3299
|
-
id: string;
|
|
3300
|
-
title: string;
|
|
3301
3353
|
width: number;
|
|
3302
3354
|
height: number;
|
|
3303
3355
|
rotation: number;
|
|
3356
|
+
id: string;
|
|
3304
3357
|
llx: number;
|
|
3305
3358
|
lly: number;
|
|
3306
3359
|
urx: number;
|
|
3307
3360
|
ury: number;
|
|
3361
|
+
title: string;
|
|
3308
3362
|
effect: string;
|
|
3309
3363
|
source: string;
|
|
3310
3364
|
uploadTime: string;
|
|
@@ -3356,21 +3410,21 @@ declare const bookCreationRequestSchema: z.ZodObject<{
|
|
|
3356
3410
|
};
|
|
3357
3411
|
}[];
|
|
3358
3412
|
photoStrip: {
|
|
3359
|
-
url: string;
|
|
3360
3413
|
photoRefId: string;
|
|
3414
|
+
url: string;
|
|
3361
3415
|
encryptId: string;
|
|
3362
3416
|
photoId: string;
|
|
3363
3417
|
photoMetadata: {
|
|
3364
3418
|
data: string | null;
|
|
3365
|
-
id: string;
|
|
3366
|
-
title: string;
|
|
3367
3419
|
width: number;
|
|
3368
3420
|
height: number;
|
|
3369
3421
|
rotation: number;
|
|
3422
|
+
id: string;
|
|
3370
3423
|
llx: number;
|
|
3371
3424
|
lly: number;
|
|
3372
3425
|
urx: number;
|
|
3373
3426
|
ury: number;
|
|
3427
|
+
title: string;
|
|
3374
3428
|
effect: string;
|
|
3375
3429
|
source: string;
|
|
3376
3430
|
uploadTime: string;
|
|
@@ -3386,4 +3440,4 @@ declare const bookCreationRequestSchema: z.ZodObject<{
|
|
|
3386
3440
|
}>;
|
|
3387
3441
|
type BookCreationRequest = z.infer<typeof bookCreationRequestSchema>;
|
|
3388
3442
|
|
|
3389
|
-
export { Asset, BookCreationRequest, BookSize, Canvas, CoverType, DesignOptions, DesignOptionsServer, DesignRequest, DesignRequestEvent, DesignRequestEventDetail, DesignRequestOptions, DesignRequestProps, EmbellishmentLevel, Image, ImageAssignment, ImageDensity, ImageDensityOption, ImageDensityOptionServer, ImageDensityOptions, ImageDensityOptionsServer, ImageFilteringLevel, ImageServer, Images, MagicBookClient, MagicShopBook, Occasion, Page, PageType, PhotoMetadata, PhotoStrip, Position, Property, ReportingData, State, Style, TextStickerLevel, assetSchema, bookCreationRequestSchema, bookSizes, cancelledEventDetail, canvasSchema, coverTypes, designOptionsSchema, designOptionsServerSchema, embellishmentLevels, imageAssignmentSchema, imageDensities, imageDensityOptionSchema, imageDensityOptionServerSchema, imageDensityOptionsSchema, imageDensityOptionsServerSchema, imageFilteringLevels, imageServerSchema, isDesignRequestSubmitted, magicShopBookSchema, occasions, pageSchema, pageTypes, photoMetadataSchema, photoStripSchema, positionSchema, propertySchema, reportingDataSchema, states, statesToCloseWS, statesToReport, styles, textStickerLevels, timeoutEventDetail };
|
|
3443
|
+
export { Asset, Book, BookCreationRequest, BookDesignRequest, BookDesignRequestProps, BookProps, BookReport, BookSize, Canvas, CoverType, DesignOptions, DesignOptionsServer, DesignRequest, DesignRequestEvent, DesignRequestEventDetail, DesignRequestOptions, DesignRequestProps, EmbellishmentLevel, Image, ImageAssignment, ImageDensity, ImageDensityOption, ImageDensityOptionServer, ImageDensityOptions, ImageDensityOptionsServer, ImageFilteringLevel, ImageServer, Images, MagicBookClient, MagicShopBook, Occasion, Page, PageType, PhotoMetadata, PhotoStrip, Position, Property, ReportingData, State, Style, TextStickerLevel, assetSchema, bookCreationRequestSchema, bookDesignRequestSchema, bookPropsSchema, bookSizes, cancelledEventDetail, canvasSchema, coverTypes, designOptionsSchema, designOptionsServerSchema, embellishmentLevels, imageAssignmentSchema, imageDensities, imageDensityOptionSchema, imageDensityOptionServerSchema, imageDensityOptionsSchema, imageDensityOptionsServerSchema, imageFilteringLevels, imageServerSchema, isDesignRequestSubmitted, magicShopBookSchema, occasions, pageSchema, pageTypes, photoMetadataSchema, photoStripSchema, positionSchema, propertySchema, reportingDataSchema, states, statesToCloseWS, statesToReport, styles, textStickerLevels, timeoutEventDetail };
|