Skip to content

Commit

Permalink
add JobInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
InventivetalentDev committed Oct 14, 2024
1 parent e60578b commit 7ce2bd3
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 2 deletions.
5 changes: 5 additions & 0 deletions dist/generate/JobInfo.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { JobStatus } from "./JobStatus";
export interface JobInfo {
id: string;
status: JobStatus;
}
3 changes: 3 additions & 0 deletions dist/generate/JobInfo.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/generate/JobInfo.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/generate/JobStatus.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export type JobStatus = "waiting" | "processing" | "completed" | "failed";
3 changes: 3 additions & 0 deletions dist/generate/JobStatus.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/generate/JobStatus.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/generate/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ export * from "./DuplicateSource";
export * from "./GenerateRequest";
export * from "./GenerateResult";
export * from "./GenerateOptions";
export * from "./JobInfo";
export * from "./JobStatus";
2 changes: 2 additions & 0 deletions dist/generate/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/generate/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/generate/JobInfo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { JobStatus } from "./JobStatus";

export interface JobInfo {
id: string;
status: JobStatus;
}
1 change: 1 addition & 0 deletions src/generate/JobStatus.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export type JobStatus = "waiting" | "processing" | "completed" | "failed";
4 changes: 3 additions & 1 deletion src/generate/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ export * from "./RateLimitInfo";
export * from"./DuplicateSource"
export * from "./GenerateRequest";
export * from "./GenerateResult";
export * from "./GenerateOptions"
export * from "./GenerateOptions"
export * from "./JobInfo";
export * from "./JobStatus"

0 comments on commit 7ce2bd3

Please sign in to comment.