From 7ce2bd30a14ca7ed25ea18fa171b3b37529e7e74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Haylee=20Sch=C3=A4fer?= Date: Mon, 14 Oct 2024 15:19:45 +0200 Subject: [PATCH] add JobInfo --- dist/generate/JobInfo.d.ts | 5 +++++ dist/generate/JobInfo.js | 3 +++ dist/generate/JobInfo.js.map | 1 + dist/generate/JobStatus.d.ts | 1 + dist/generate/JobStatus.js | 3 +++ dist/generate/JobStatus.js.map | 1 + dist/generate/index.d.ts | 2 ++ dist/generate/index.js | 2 ++ dist/generate/index.js.map | 2 +- src/generate/JobInfo.ts | 6 ++++++ src/generate/JobStatus.ts | 1 + src/generate/index.ts | 4 +++- 12 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 dist/generate/JobInfo.d.ts create mode 100644 dist/generate/JobInfo.js create mode 100644 dist/generate/JobInfo.js.map create mode 100644 dist/generate/JobStatus.d.ts create mode 100644 dist/generate/JobStatus.js create mode 100644 dist/generate/JobStatus.js.map create mode 100644 src/generate/JobInfo.ts create mode 100644 src/generate/JobStatus.ts diff --git a/dist/generate/JobInfo.d.ts b/dist/generate/JobInfo.d.ts new file mode 100644 index 0000000..349895c --- /dev/null +++ b/dist/generate/JobInfo.d.ts @@ -0,0 +1,5 @@ +import { JobStatus } from "./JobStatus"; +export interface JobInfo { + id: string; + status: JobStatus; +} diff --git a/dist/generate/JobInfo.js b/dist/generate/JobInfo.js new file mode 100644 index 0000000..3f44d54 --- /dev/null +++ b/dist/generate/JobInfo.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=JobInfo.js.map \ No newline at end of file diff --git a/dist/generate/JobInfo.js.map b/dist/generate/JobInfo.js.map new file mode 100644 index 0000000..177cc8b --- /dev/null +++ b/dist/generate/JobInfo.js.map @@ -0,0 +1 @@ +{"version":3,"file":"JobInfo.js","sourceRoot":"/","sources":["generate/JobInfo.ts"],"names":[],"mappings":"","sourcesContent":["import { JobStatus } from \"./JobStatus\";\n\nexport interface JobInfo {\n id: string;\n status: JobStatus;\n}"]} \ No newline at end of file diff --git a/dist/generate/JobStatus.d.ts b/dist/generate/JobStatus.d.ts new file mode 100644 index 0000000..3ea1605 --- /dev/null +++ b/dist/generate/JobStatus.d.ts @@ -0,0 +1 @@ +export type JobStatus = "waiting" | "processing" | "completed" | "failed"; diff --git a/dist/generate/JobStatus.js b/dist/generate/JobStatus.js new file mode 100644 index 0000000..0c6b03f --- /dev/null +++ b/dist/generate/JobStatus.js @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=JobStatus.js.map \ No newline at end of file diff --git a/dist/generate/JobStatus.js.map b/dist/generate/JobStatus.js.map new file mode 100644 index 0000000..25524d7 --- /dev/null +++ b/dist/generate/JobStatus.js.map @@ -0,0 +1 @@ +{"version":3,"file":"JobStatus.js","sourceRoot":"/","sources":["generate/JobStatus.ts"],"names":[],"mappings":"","sourcesContent":["export type JobStatus = \"waiting\" | \"processing\" | \"completed\" | \"failed\";"]} \ No newline at end of file diff --git a/dist/generate/index.d.ts b/dist/generate/index.d.ts index 3bb086f..bfa3111 100644 --- a/dist/generate/index.d.ts +++ b/dist/generate/index.d.ts @@ -5,3 +5,5 @@ export * from "./DuplicateSource"; export * from "./GenerateRequest"; export * from "./GenerateResult"; export * from "./GenerateOptions"; +export * from "./JobInfo"; +export * from "./JobStatus"; diff --git a/dist/generate/index.js b/dist/generate/index.js index 7bdde81..de31f0e 100644 --- a/dist/generate/index.js +++ b/dist/generate/index.js @@ -21,4 +21,6 @@ __exportStar(require("./DuplicateSource"), exports); __exportStar(require("./GenerateRequest"), exports); __exportStar(require("./GenerateResult"), exports); __exportStar(require("./GenerateOptions"), exports); +__exportStar(require("./JobInfo"), exports); +__exportStar(require("./JobStatus"), exports); //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/generate/index.js.map b/dist/generate/index.js.map index 3839c5c..f1f5c2e 100644 --- a/dist/generate/index.js.map +++ b/dist/generate/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"/","sources":["generate/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iDAA+B;AAC/B,kDAAgC;AAChC,oDAAgC;AAChC,oDAAkC;AAClC,mDAAiC;AACjC,oDAAiC","sourcesContent":["export * from \"./DelayInfo\";\r\nexport * from \"./GenerateType\";\r\nexport * from \"./RateLimitInfo\";\r\nexport * from\"./DuplicateSource\"\r\nexport * from \"./GenerateRequest\";\r\nexport * from \"./GenerateResult\";\r\nexport * from \"./GenerateOptions\""]} \ No newline at end of file +{"version":3,"file":"index.js","sourceRoot":"/","sources":["generate/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,iDAA+B;AAC/B,kDAAgC;AAChC,oDAAgC;AAChC,oDAAkC;AAClC,mDAAiC;AACjC,oDAAiC;AACjC,4CAA0B;AAC1B,8CAA2B","sourcesContent":["export * from \"./DelayInfo\";\r\nexport * from \"./GenerateType\";\r\nexport * from \"./RateLimitInfo\";\r\nexport * from\"./DuplicateSource\"\r\nexport * from \"./GenerateRequest\";\r\nexport * from \"./GenerateResult\";\r\nexport * from \"./GenerateOptions\"\r\nexport * from \"./JobInfo\";\r\nexport * from \"./JobStatus\""]} \ No newline at end of file diff --git a/src/generate/JobInfo.ts b/src/generate/JobInfo.ts new file mode 100644 index 0000000..6d59fbb --- /dev/null +++ b/src/generate/JobInfo.ts @@ -0,0 +1,6 @@ +import { JobStatus } from "./JobStatus"; + +export interface JobInfo { + id: string; + status: JobStatus; +} \ No newline at end of file diff --git a/src/generate/JobStatus.ts b/src/generate/JobStatus.ts new file mode 100644 index 0000000..8006f53 --- /dev/null +++ b/src/generate/JobStatus.ts @@ -0,0 +1 @@ +export type JobStatus = "waiting" | "processing" | "completed" | "failed"; \ No newline at end of file diff --git a/src/generate/index.ts b/src/generate/index.ts index ba1fdc6..d917200 100644 --- a/src/generate/index.ts +++ b/src/generate/index.ts @@ -4,4 +4,6 @@ export * from "./RateLimitInfo"; export * from"./DuplicateSource" export * from "./GenerateRequest"; export * from "./GenerateResult"; -export * from "./GenerateOptions" \ No newline at end of file +export * from "./GenerateOptions" +export * from "./JobInfo"; +export * from "./JobStatus" \ No newline at end of file