@magiclabs.ai/magicbook-client 0.7.8-canary → 0.7.9-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/index.js CHANGED
@@ -4719,85 +4719,6 @@ var DesignRequest = class {
4719
4719
  }
4720
4720
  };
4721
4721
 
4722
- // ../../core/models/galleon.ts
4723
- var imageAssignmentSchema = z.object({
4724
- photoRefId: z.string(),
4725
- finalCrop: z.array(z.number())
4726
- });
4727
- var positionSchema = z.object({
4728
- x: z.number(),
4729
- y: z.number(),
4730
- width: z.number().optional(),
4731
- height: z.number().optional(),
4732
- rotation: z.number()
4733
- });
4734
- var photoMetadataSchema = z.object({
4735
- id: z.string(),
4736
- llx: z.number(),
4737
- lly: z.number(),
4738
- urx: z.number(),
4739
- ury: z.number(),
4740
- data: z.string().nullable(),
4741
- title: z.string(),
4742
- width: z.number(),
4743
- effect: z.string(),
4744
- height: z.number(),
4745
- source: z.string(),
4746
- rotation: z.number(),
4747
- uploadTime: z.string()
4748
- });
4749
- var propertySchema = z.object({
4750
- key: z.string(),
4751
- value: z.any()
4752
- });
4753
- var assetSchema = z.object({
4754
- type: z.string(),
4755
- imageAssignment: imageAssignmentSchema.optional(),
4756
- position: positionSchema,
4757
- seqNum: z.number(),
4758
- z: z.number(),
4759
- id: z.string().optional(),
4760
- horizJustification: z.string().optional(),
4761
- vertJustification: z.string().optional().nullable(),
4762
- text: z.string().optional(),
4763
- fontId: z.string().optional(),
4764
- fontSize: z.number().optional(),
4765
- fontColor: z.string().optional(),
4766
- frame: z.string().optional()
4767
- });
4768
- var photoStripSchema = z.object({
4769
- url: z.string(),
4770
- encryptId: z.string(),
4771
- photoRefId: z.string(),
4772
- photoId: z.string(),
4773
- photoMetadata: photoMetadataSchema
4774
- });
4775
- var reportingDataSchema = z.object({
4776
- properties: z.array(propertySchema)
4777
- });
4778
- var canvasSchema = z.object({
4779
- backgroundId: z.string().nullable(),
4780
- assets: z.array(assetSchema).optional()
4781
- });
4782
- var pageSchema = z.object({
4783
- pageNum: z.number(),
4784
- type: z.string(),
4785
- canvas: canvasSchema
4786
- });
4787
- var magicShopBookSchema = z.object({
4788
- pages: z.array(pageSchema),
4789
- photoStrip: z.array(photoStripSchema)
4790
- });
4791
- var bookCreationRequestSchema = z.object({
4792
- title: z.string(),
4793
- binding: z.string(),
4794
- coverSpecId: z.string(),
4795
- styleId: z.number(),
4796
- userId: z.string(),
4797
- magicShopBook: magicShopBookSchema,
4798
- reportingData: reportingDataSchema
4799
- });
4800
-
4801
4722
  // ../../core/models/engine-api/endpoints/books.ts
4802
4723
  var BooksEndpoints = class {
4803
4724
  // eslint-disable-next-line no-unused-vars
@@ -4882,7 +4803,7 @@ var BooksEndpoints = class {
4882
4803
  const res = await this.engineAPI.fetcher.call({
4883
4804
  path: `/v1/books/${bookId}/format/${format}`
4884
4805
  });
4885
- return bookCreationRequestSchema.parse(res);
4806
+ return res;
4886
4807
  });
4887
4808
  }
4888
4809
  };
@@ -5075,6 +4996,85 @@ var spreadSchema = z.object({
5075
4996
  url: z.string().nullable().optional()
5076
4997
  });
5077
4998
 
4999
+ // ../../core/models/galleon.ts
5000
+ var imageAssignmentSchema = z.object({
5001
+ photoRefId: z.string(),
5002
+ finalCrop: z.array(z.number())
5003
+ });
5004
+ var positionSchema = z.object({
5005
+ x: z.number(),
5006
+ y: z.number(),
5007
+ width: z.number().optional(),
5008
+ height: z.number().optional(),
5009
+ rotation: z.number()
5010
+ });
5011
+ var photoMetadataSchema = z.object({
5012
+ id: z.string(),
5013
+ llx: z.number(),
5014
+ lly: z.number(),
5015
+ urx: z.number(),
5016
+ ury: z.number(),
5017
+ data: z.string().nullable(),
5018
+ title: z.string(),
5019
+ width: z.number(),
5020
+ effect: z.string(),
5021
+ height: z.number(),
5022
+ source: z.string(),
5023
+ rotation: z.number(),
5024
+ uploadTime: z.string()
5025
+ });
5026
+ var propertySchema = z.object({
5027
+ key: z.string(),
5028
+ value: z.any()
5029
+ });
5030
+ var assetSchema = z.object({
5031
+ type: z.string(),
5032
+ imageAssignment: imageAssignmentSchema.optional(),
5033
+ position: positionSchema,
5034
+ seqNum: z.number(),
5035
+ z: z.number(),
5036
+ id: z.string().optional(),
5037
+ horizJustification: z.string().optional(),
5038
+ vertJustification: z.string().optional().nullable(),
5039
+ text: z.string().optional(),
5040
+ fontId: z.string().optional(),
5041
+ fontSize: z.number().optional(),
5042
+ fontColor: z.string().optional(),
5043
+ frame: z.string().optional()
5044
+ });
5045
+ var photoStripSchema = z.object({
5046
+ url: z.string(),
5047
+ encryptId: z.string(),
5048
+ photoRefId: z.string(),
5049
+ photoId: z.string(),
5050
+ photoMetadata: photoMetadataSchema
5051
+ });
5052
+ var reportingDataSchema = z.object({
5053
+ properties: z.array(propertySchema)
5054
+ });
5055
+ var canvasSchema = z.object({
5056
+ backgroundId: z.string().nullable(),
5057
+ assets: z.array(assetSchema).optional()
5058
+ });
5059
+ var pageSchema = z.object({
5060
+ pageNum: z.number(),
5061
+ type: z.string(),
5062
+ canvas: canvasSchema
5063
+ });
5064
+ var magicShopBookSchema = z.object({
5065
+ pages: z.array(pageSchema),
5066
+ photoStrip: z.array(photoStripSchema)
5067
+ });
5068
+ var bookCreationRequestSchema = z.object({
5069
+ title: z.string(),
5070
+ binding: z.string(),
5071
+ coverSpecId: z.string(),
5072
+ styleId: z.number(),
5073
+ userId: z.string(),
5074
+ magicShopBook: magicShopBookSchema,
5075
+ reportingData: reportingDataSchema
5076
+ });
5077
+
5078
5078
  // ../../core/models/engine-api/endpoints/spreads.ts
5079
5079
  var SpreadsEndpoints = class {
5080
5080
  // eslint-disable-next-line no-unused-vars