From dc1686699ee79e081e9bd5e203f39d5467e272af Mon Sep 17 00:00:00 2001 From: Jesse Michael Date: Fri, 12 Jun 2020 09:30:56 -0700 Subject: [PATCH] fix: update task schema --- .openapi-generator/FILES | 2 +- model/jobCreate.ts | 4 ++-- model/models.ts | 6 +++--- model/task.ts | 46 ++++++++++++++++++++++++++++++++++++++++ package-lock.json | 4 ++-- 5 files changed, 54 insertions(+), 8 deletions(-) create mode 100644 model/task.ts diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index f9f89d1..d14c627 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -11,7 +11,7 @@ model/./assets.ts model/./job.ts model/./jobCreate.ts model/./kind.ts -model/./tasks.ts +model/./task.ts model/./version.ts model/models.ts tsconfig.json diff --git a/model/jobCreate.ts b/model/jobCreate.ts index ed34afc..95d19f1 100644 --- a/model/jobCreate.ts +++ b/model/jobCreate.ts @@ -17,7 +17,7 @@ import { Task } from './task'; * The task information for a workflow */ export class JobCreate { - 'tasks'?: Task; + 'tasks'?: Array; static discriminator: string | undefined = undefined; @@ -25,7 +25,7 @@ export class JobCreate { { "name": "tasks", "baseName": "tasks", - "type": "Task" + "type": "Array" } ]; static getAttributeTypeMap() { diff --git a/model/models.ts b/model/models.ts index 2ffc87a..c14b203 100644 --- a/model/models.ts +++ b/model/models.ts @@ -7,7 +7,7 @@ export * from './assets'; export * from './job'; export * from './jobCreate'; export * from './kind'; -export * from './tasks'; +export * from './task'; export * from './version'; import localVarRequest = require('request'); @@ -21,7 +21,7 @@ import { Assets } from './assets'; import { Job } from './job'; import { JobCreate } from './jobCreate'; import { Kind } from './kind'; -import { Tasks } from './tasks'; +import { Task } from './task'; import { Version } from './version'; /* tslint:disable:no-unused-variable */ @@ -50,7 +50,7 @@ let typeMap: {[index: string]: any} = { "Assets": Assets, "Job": Job, "JobCreate": JobCreate, - "Tasks": Tasks, + "Task": Task, "Version": Version, } diff --git a/model/task.ts b/model/task.ts new file mode 100644 index 0000000..b4b525b --- /dev/null +++ b/model/task.ts @@ -0,0 +1,46 @@ +/** + * Open DAM API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { RequestFile } from '../api'; + +/** +* a task to perform on an asset +*/ +export class Task { + /** + * The name of the task + */ + 'task'?: string; + /** + * An array of arguments to use for the task, if left empty will use the results of the previous task. must match the expected arguments for the requested task. + */ + 'args'?: Array; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "task", + "baseName": "task", + "type": "string" + }, + { + "name": "args", + "baseName": "args", + "type": "Array" + } ]; + + static getAttributeTypeMap() { + return Task.attributeTypeMap; + } +} + diff --git a/package-lock.json b/package-lock.json index 40af593..a39148f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { - "name": "@open-dam/open-dam-api", - "version": "1.0.3", + "name": "@open-dam/open-dam-ts-client", + "version": "1.0.2", "lockfileVersion": 1, "requires": true, "dependencies": {