@copicake/copicake-js
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -0,1 +1,9 @@ | ||
## [1.0.6](https://github.com/Copicake/copicake-js/compare/v1.0.5...v1.0.6) (2022-06-12) | ||
### Bug Fixes | ||
* bump version ([17daedd](https://github.com/Copicake/copicake-js/commit/17daedd7ea0be558e20b21a08e205a62524b0f72)) | ||
* updated types & changed README ([d6e5768](https://github.com/Copicake/copicake-js/commit/d6e576845edf06ea22e2a33677ad99f8314af17e)) | ||
## [1.0.5](https://github.com/Copicake/copicake-js/compare/v1.0.4...v1.0.5) (2022-05-26) | ||
@@ -2,0 +10,0 @@ |
@@ -1,14 +0,19 @@ | ||
export interface Change { | ||
export declare type Change = ImageChange | TextChange; | ||
export interface ImageChange { | ||
name: string; | ||
text?: string; | ||
color?: string; | ||
src?: string; | ||
} | ||
export interface TextChange { | ||
name: string; | ||
text?: string; | ||
fill?: string; | ||
} | ||
export interface Options { | ||
webhook_url: string; | ||
} | ||
export declare type Status = "processing" | "success" | "error"; | ||
export interface Rendering { | ||
id: string; | ||
type: "image"; | ||
status: "success" | "processing" | "failed"; | ||
status: Status; | ||
changes?: Change[]; | ||
@@ -15,0 +20,0 @@ options?: Options; |
{ | ||
"name": "@copicake/copicake-js", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Copicake JS Library", | ||
@@ -5,0 +5,0 @@ "author": "EragonJ <eragonj@eragonj.me>", |
@@ -43,3 +43,3 @@ # Copicake JS | ||
changes: [ | ||
{ name: "text-9so09m", text: "hello world", color: "#ff0000" }, | ||
{ name: "text-9so09m", text: "hello world", fill: "#ff0000" }, | ||
{ name: "image-yeavh7", src: "https://your_website.com/test.png" }, | ||
@@ -46,0 +46,0 @@ ], |
@@ -10,3 +10,3 @@ import Image from "./image"; | ||
public image; | ||
public image: Image; | ||
@@ -13,0 +13,0 @@ constructor({ apiKey }: IProps) { |
@@ -1,8 +0,14 @@ | ||
export interface Change { | ||
export type Change = ImageChange | TextChange; | ||
export interface ImageChange { | ||
name: string; | ||
text?: string; | ||
color?: string; | ||
src?: string; | ||
} | ||
export interface TextChange { | ||
name: string; | ||
text?: string; | ||
fill?: string; | ||
} | ||
export interface Options { | ||
@@ -12,6 +18,8 @@ webhook_url: string; | ||
export type Status = "processing" | "success" | "error"; | ||
export interface Rendering { | ||
id: string; | ||
type: "image"; | ||
status: "success" | "processing" | "failed"; | ||
status: Status; | ||
changes?: Change[]; | ||
@@ -18,0 +26,0 @@ options?: Options; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
492903
1660