@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.cjs CHANGED
@@ -4789,85 +4789,6 @@ var DesignRequest = class {
4789
4789
  }
4790
4790
  };
4791
4791
 
4792
- // ../../core/models/galleon.ts
4793
- var imageAssignmentSchema = z.object({
4794
- photoRefId: z.string(),
4795
- finalCrop: z.array(z.number())
4796
- });
4797
- var positionSchema = z.object({
4798
- x: z.number(),
4799
- y: z.number(),
4800
- width: z.number().optional(),
4801
- height: z.number().optional(),
4802
- rotation: z.number()
4803
- });
4804
- var photoMetadataSchema = z.object({
4805
- id: z.string(),
4806
- llx: z.number(),
4807
- lly: z.number(),
4808
- urx: z.number(),
4809
- ury: z.number(),
4810
- data: z.string().nullable(),
4811
- title: z.string(),
4812
- width: z.number(),
4813
- effect: z.string(),
4814
- height: z.number(),
4815
- source: z.string(),
4816
- rotation: z.number(),
4817
- uploadTime: z.string()
4818
- });
4819
- var propertySchema = z.object({
4820
- key: z.string(),
4821
- value: z.any()
4822
- });
4823
- var assetSchema = z.object({
4824
- type: z.string(),
4825
- imageAssignment: imageAssignmentSchema.optional(),
4826
- position: positionSchema,
4827
- seqNum: z.number(),
4828
- z: z.number(),
4829
- id: z.string().optional(),
4830
- horizJustification: z.string().optional(),
4831
- vertJustification: z.string().optional().nullable(),
4832
- text: z.string().optional(),
4833
- fontId: z.string().optional(),
4834
- fontSize: z.number().optional(),
4835
- fontColor: z.string().optional(),
4836
- frame: z.string().optional()
4837
- });
4838
- var photoStripSchema = z.object({
4839
- url: z.string(),
4840
- encryptId: z.string(),
4841
- photoRefId: z.string(),
4842
- photoId: z.string(),
4843
- photoMetadata: photoMetadataSchema
4844
- });
4845
- var reportingDataSchema = z.object({
4846
- properties: z.array(propertySchema)
4847
- });
4848
- var canvasSchema = z.object({
4849
- backgroundId: z.string().nullable(),
4850
- assets: z.array(assetSchema).optional()
4851
- });
4852
- var pageSchema = z.object({
4853
- pageNum: z.number(),
4854
- type: z.string(),
4855
- canvas: canvasSchema
4856
- });
4857
- var magicShopBookSchema = z.object({
4858
- pages: z.array(pageSchema),
4859
- photoStrip: z.array(photoStripSchema)
4860
- });
4861
- var bookCreationRequestSchema = z.object({
4862
- title: z.string(),
4863
- binding: z.string(),
4864
- coverSpecId: z.string(),
4865
- styleId: z.number(),
4866
- userId: z.string(),
4867
- magicShopBook: magicShopBookSchema,
4868
- reportingData: reportingDataSchema
4869
- });
4870
-
4871
4792
  // ../../core/models/engine-api/endpoints/books.ts
4872
4793
  var BooksEndpoints = class {
4873
4794
  // eslint-disable-next-line no-unused-vars
@@ -4952,7 +4873,7 @@ var BooksEndpoints = class {
4952
4873
  const res = await this.engineAPI.fetcher.call({
4953
4874
  path: `/v1/books/${bookId}/format/${format}`
4954
4875
  });
4955
- return bookCreationRequestSchema.parse(res);
4876
+ return res;
4956
4877
  });
4957
4878
  }
4958
4879
  };
@@ -5145,6 +5066,85 @@ var spreadSchema = z.object({
5145
5066
  url: z.string().nullable().optional()
5146
5067
  });
5147
5068
 
5069
+ // ../../core/models/galleon.ts
5070
+ var imageAssignmentSchema = z.object({
5071
+ photoRefId: z.string(),
5072
+ finalCrop: z.array(z.number())
5073
+ });
5074
+ var positionSchema = z.object({
5075
+ x: z.number(),
5076
+ y: z.number(),
5077
+ width: z.number().optional(),
5078
+ height: z.number().optional(),
5079
+ rotation: z.number()
5080
+ });
5081
+ var photoMetadataSchema = z.object({
5082
+ id: z.string(),
5083
+ llx: z.number(),
5084
+ lly: z.number(),
5085
+ urx: z.number(),
5086
+ ury: z.number(),
5087
+ data: z.string().nullable(),
5088
+ title: z.string(),
5089
+ width: z.number(),
5090
+ effect: z.string(),
5091
+ height: z.number(),
5092
+ source: z.string(),
5093
+ rotation: z.number(),
5094
+ uploadTime: z.string()
5095
+ });
5096
+ var propertySchema = z.object({
5097
+ key: z.string(),
5098
+ value: z.any()
5099
+ });
5100
+ var assetSchema = z.object({
5101
+ type: z.string(),
5102
+ imageAssignment: imageAssignmentSchema.optional(),
5103
+ position: positionSchema,
5104
+ seqNum: z.number(),
5105
+ z: z.number(),
5106
+ id: z.string().optional(),
5107
+ horizJustification: z.string().optional(),
5108
+ vertJustification: z.string().optional().nullable(),
5109
+ text: z.string().optional(),
5110
+ fontId: z.string().optional(),
5111
+ fontSize: z.number().optional(),
5112
+ fontColor: z.string().optional(),
5113
+ frame: z.string().optional()
5114
+ });
5115
+ var photoStripSchema = z.object({
5116
+ url: z.string(),
5117
+ encryptId: z.string(),
5118
+ photoRefId: z.string(),
5119
+ photoId: z.string(),
5120
+ photoMetadata: photoMetadataSchema
5121
+ });
5122
+ var reportingDataSchema = z.object({
5123
+ properties: z.array(propertySchema)
5124
+ });
5125
+ var canvasSchema = z.object({
5126
+ backgroundId: z.string().nullable(),
5127
+ assets: z.array(assetSchema).optional()
5128
+ });
5129
+ var pageSchema = z.object({
5130
+ pageNum: z.number(),
5131
+ type: z.string(),
5132
+ canvas: canvasSchema
5133
+ });
5134
+ var magicShopBookSchema = z.object({
5135
+ pages: z.array(pageSchema),
5136
+ photoStrip: z.array(photoStripSchema)
5137
+ });
5138
+ var bookCreationRequestSchema = z.object({
5139
+ title: z.string(),
5140
+ binding: z.string(),
5141
+ coverSpecId: z.string(),
5142
+ styleId: z.number(),
5143
+ userId: z.string(),
5144
+ magicShopBook: magicShopBookSchema,
5145
+ reportingData: reportingDataSchema
5146
+ });
5147
+
5148
5148
  // ../../core/models/engine-api/endpoints/spreads.ts
5149
5149
  var SpreadsEndpoints = class {
5150
5150
  // eslint-disable-next-line no-unused-vars