@magiclabs.ai/magicbook-client 0.6.2 → 0.6.3

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 CHANGED
@@ -94,6 +94,11 @@ After submitting you can set a GUID to the design request.
94
94
  await designRequest.setGuid('a9ccb406-015a-47df-bb59-ea171b8617ca')
95
95
  ```
96
96
 
97
+ The design request can be canceled by triggering a cancellation event through this method.
98
+ ```ts
99
+ await designRequest.cancel()
100
+ ```
101
+
97
102
  Finally, once the design request is complete, retrieve it in JSON format.
98
103
 
99
104
  ```ts
@@ -1,5 +1,5 @@
1
1
  import { DesignRequestEventDetail } from '../models/design-request';
2
- export declare const states: readonly ["new", "ingesting", "submitted", "storyboarding", "deduplication", "image selection", "designing", "layouting", "embellishing", "polishing", "ready", "error"];
2
+ export declare const states: readonly ["new", "ingesting", "submitted", "storyboarding", "deduplication", "image-selection", "designing", "laying-out", "embellishing", "polishing", "ready", "error", "cancelled"];
3
3
  export declare const occasions: readonly ["baby", "birthday", "default", "everyday", "family", "kids", "life-stories", "portfolio", "school-memories", "seasonal-holidays", "special-celebrations", "sports-and-hobbies", "travel", "wedding", "year-in-review"];
4
4
  export declare const styles: {
5
5
  1005: {
@@ -491,3 +491,4 @@ export declare const imageFilteringLevels: readonly ["best", "most", "all"];
491
491
  export declare const embellishmentLevels: readonly ["none", "few", "lots"];
492
492
  export declare const textStickerLevels: readonly ["none", "few", "lots"];
493
493
  export declare const timeoutMessage: DesignRequestEventDetail;
494
+ export declare const cancelledMessage: DesignRequestEventDetail;