@magiclabs.ai/magicbook-client 0.5.6 → 0.6.1
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 +1 -1
- package/magicbook-client.js +808 -796
- package/magicbook-client.umd.cjs +4 -3
- package/models/design-request/index.d.ts +2 -2
- package/models/galleon.d.ts +15 -15
- package/package.json +1 -1
- package/utils/engine-api/books.d.ts +1 -1
- package/utils/engine-api/design-options.d.ts +2 -2
package/models/galleon.d.ts
CHANGED
|
@@ -76,13 +76,13 @@ export declare const photoMetadataSchema: z.ZodObject<{
|
|
|
76
76
|
export type PhotoMetadata = z.infer<typeof photoMetadataSchema>;
|
|
77
77
|
export declare const propertySchema: z.ZodObject<{
|
|
78
78
|
key: z.ZodString;
|
|
79
|
-
value: z.
|
|
79
|
+
value: z.ZodAny;
|
|
80
80
|
}, "strip", z.ZodTypeAny, {
|
|
81
|
-
value: string | number | boolean | null;
|
|
82
81
|
key: string;
|
|
82
|
+
value?: any;
|
|
83
83
|
}, {
|
|
84
|
-
value: string | number | boolean | null;
|
|
85
84
|
key: string;
|
|
85
|
+
value?: any;
|
|
86
86
|
}>;
|
|
87
87
|
export type Property = z.infer<typeof propertySchema>;
|
|
88
88
|
export declare const assetSchema: z.ZodObject<{
|
|
@@ -267,23 +267,23 @@ export type PhotoStrip = z.infer<typeof photoStripSchema>;
|
|
|
267
267
|
export declare const reportingDataSchema: z.ZodObject<{
|
|
268
268
|
properties: z.ZodArray<z.ZodObject<{
|
|
269
269
|
key: z.ZodString;
|
|
270
|
-
value: z.
|
|
270
|
+
value: z.ZodAny;
|
|
271
271
|
}, "strip", z.ZodTypeAny, {
|
|
272
|
-
value: string | number | boolean | null;
|
|
273
272
|
key: string;
|
|
273
|
+
value?: any;
|
|
274
274
|
}, {
|
|
275
|
-
value: string | number | boolean | null;
|
|
276
275
|
key: string;
|
|
276
|
+
value?: any;
|
|
277
277
|
}>, "many">;
|
|
278
278
|
}, "strip", z.ZodTypeAny, {
|
|
279
279
|
properties: {
|
|
280
|
-
value: string | number | boolean | null;
|
|
281
280
|
key: string;
|
|
281
|
+
value?: any;
|
|
282
282
|
}[];
|
|
283
283
|
}, {
|
|
284
284
|
properties: {
|
|
285
|
-
value: string | number | boolean | null;
|
|
286
285
|
key: string;
|
|
286
|
+
value?: any;
|
|
287
287
|
}[];
|
|
288
288
|
}>;
|
|
289
289
|
export type ReportingData = z.infer<typeof reportingDataSchema>;
|
|
@@ -1457,23 +1457,23 @@ export declare const bookCreationRequestSchema: z.ZodObject<{
|
|
|
1457
1457
|
reportingData: z.ZodObject<{
|
|
1458
1458
|
properties: z.ZodArray<z.ZodObject<{
|
|
1459
1459
|
key: z.ZodString;
|
|
1460
|
-
value: z.
|
|
1460
|
+
value: z.ZodAny;
|
|
1461
1461
|
}, "strip", z.ZodTypeAny, {
|
|
1462
|
-
value: string | number | boolean | null;
|
|
1463
1462
|
key: string;
|
|
1463
|
+
value?: any;
|
|
1464
1464
|
}, {
|
|
1465
|
-
value: string | number | boolean | null;
|
|
1466
1465
|
key: string;
|
|
1466
|
+
value?: any;
|
|
1467
1467
|
}>, "many">;
|
|
1468
1468
|
}, "strip", z.ZodTypeAny, {
|
|
1469
1469
|
properties: {
|
|
1470
|
-
value: string | number | boolean | null;
|
|
1471
1470
|
key: string;
|
|
1471
|
+
value?: any;
|
|
1472
1472
|
}[];
|
|
1473
1473
|
}, {
|
|
1474
1474
|
properties: {
|
|
1475
|
-
value: string | number | boolean | null;
|
|
1476
1475
|
key: string;
|
|
1476
|
+
value?: any;
|
|
1477
1477
|
}[];
|
|
1478
1478
|
}>;
|
|
1479
1479
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1538,8 +1538,8 @@ export declare const bookCreationRequestSchema: z.ZodObject<{
|
|
|
1538
1538
|
};
|
|
1539
1539
|
reportingData: {
|
|
1540
1540
|
properties: {
|
|
1541
|
-
value: string | number | boolean | null;
|
|
1542
1541
|
key: string;
|
|
1542
|
+
value?: any;
|
|
1543
1543
|
}[];
|
|
1544
1544
|
};
|
|
1545
1545
|
}, {
|
|
@@ -1604,8 +1604,8 @@ export declare const bookCreationRequestSchema: z.ZodObject<{
|
|
|
1604
1604
|
};
|
|
1605
1605
|
reportingData: {
|
|
1606
1606
|
properties: {
|
|
1607
|
-
value: string | number | boolean | null;
|
|
1608
1607
|
key: string;
|
|
1608
|
+
value?: any;
|
|
1609
1609
|
}[];
|
|
1610
1610
|
};
|
|
1611
1611
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BookSize } from '../../models/design-request';
|
|
1
|
+
import { BookSize, ImageFilteringLevel } from '../../models/design-request';
|
|
2
2
|
import { MagicBookClient } from '../../models/client';
|
|
3
|
-
export declare function getDesignOptions({ apiKey, apiHost }: MagicBookClient, bookSize: BookSize, imageCount: number): Promise<{
|
|
3
|
+
export declare function getDesignOptions({ apiKey, apiHost }: MagicBookClient, bookSize: BookSize, imageCount: number, imageFilteringLevel: ImageFilteringLevel): Promise<{
|
|
4
4
|
densities: {
|
|
5
5
|
low: {
|
|
6
6
|
maxPageCount: number;
|