@kuflow/kuflow-rest
Version:
REST SDK for KuFlow.
476 lines • 12.7 kB
JavaScript
"use strict";
/**
* The MIT License
* Copyright © 2021-present KuFlow S.L.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.architecture = exports.platform = exports.version = exports.typeParam2 = exports.filterContext = exports.workerCreateParams = exports.propertyPath = exports.accept3 = exports.processItemTaskDataUpdateParams = exports.processItemTaskAppendLogParams = exports.processItemTaskAssignParams = exports.processItemCreateParams = exports.processItemDefinitionCode = exports.taskState = exports.typeParam1 = exports.processId = exports.documentUri = exports.accept2 = exports.processEntityUpdateParams = exports.jsonPatch = exports.contentType2 = exports.processMetadataUpdateParams = exports.userActionValueId = exports.fileName = exports.fileContentType = exports.accept1 = exports.file = exports.contentType1 = exports.processChangeInitiatorParams = exports.processCreateParams = exports.email = exports.principalId = exports.id = exports.tenantId = exports.groupId = exports.typeParam = exports.sort = exports.page = exports.size = exports.keyId = exports.$host = exports.accept = exports.authenticationCreateParams = exports.contentType = void 0;
const mappers_1 = require("../models/mappers");
exports.contentType = {
parameterPath: ['options', 'contentType'],
mapper: {
defaultValue: 'application/json',
isConstant: true,
serializedName: 'Content-Type',
type: {
name: 'String',
},
},
};
exports.authenticationCreateParams = {
parameterPath: 'authenticationCreateParams',
mapper: mappers_1.AuthenticationCreateParams,
};
exports.accept = {
parameterPath: 'accept',
mapper: {
defaultValue: 'application/json',
isConstant: true,
serializedName: 'Accept',
type: {
name: 'String',
},
},
};
exports.$host = {
parameterPath: '$host',
mapper: {
serializedName: '$host',
required: true,
type: {
name: 'String',
},
},
skipEncoding: true,
};
exports.keyId = {
parameterPath: 'keyId',
mapper: {
serializedName: 'keyId',
required: true,
type: {
name: 'String',
},
},
};
exports.size = {
parameterPath: ['options', 'size'],
mapper: {
defaultValue: 25,
constraints: {
InclusiveMaximum: 1000,
InclusiveMinimum: 0,
},
serializedName: 'size',
type: {
name: 'Number',
},
},
};
exports.page = {
parameterPath: ['options', 'page'],
mapper: {
defaultValue: 0,
constraints: {
InclusiveMinimum: 0,
},
serializedName: 'page',
type: {
name: 'Number',
},
},
};
exports.sort = {
parameterPath: ['options', 'sort'],
mapper: {
serializedName: 'sort',
type: {
name: 'Sequence',
element: {
type: {
name: 'String',
},
},
},
},
collectionFormat: 'Multi',
};
exports.typeParam = {
parameterPath: ['options', 'type'],
mapper: {
serializedName: 'type',
type: {
name: 'Enum',
allowedValues: ['USER', 'APPLICATION', 'SYSTEM'],
},
},
};
exports.groupId = {
parameterPath: ['options', 'groupId'],
mapper: {
serializedName: 'groupId',
type: {
name: 'Sequence',
element: {
type: {
name: 'Uuid',
},
},
},
},
collectionFormat: 'Multi',
};
exports.tenantId = {
parameterPath: ['options', 'tenantId'],
mapper: {
serializedName: 'tenantId',
type: {
name: 'Sequence',
element: {
type: {
name: 'Uuid',
},
},
},
},
collectionFormat: 'Multi',
};
exports.id = {
parameterPath: 'id',
mapper: {
serializedName: 'id',
required: true,
type: {
name: 'Uuid',
},
},
};
exports.principalId = {
parameterPath: ['options', 'principalId'],
mapper: {
serializedName: 'principalId',
type: {
name: 'Uuid',
},
},
};
exports.email = {
parameterPath: ['options', 'email'],
mapper: {
serializedName: 'email',
type: {
name: 'Sequence',
element: {
type: {
name: 'String',
},
},
},
},
collectionFormat: 'Multi',
};
exports.processCreateParams = {
parameterPath: 'processCreateParams',
mapper: mappers_1.ProcessCreateParams,
};
exports.processChangeInitiatorParams = {
parameterPath: 'processChangeInitiatorParams',
mapper: mappers_1.ProcessChangeInitiatorParams,
};
exports.contentType1 = {
parameterPath: ['options', 'contentType'],
mapper: {
defaultValue: 'application/octet-stream',
isConstant: true,
serializedName: 'Content-Type',
type: {
name: 'String',
},
},
};
exports.file = {
parameterPath: 'file',
mapper: {
serializedName: 'file',
required: true,
type: {
name: 'Stream',
},
},
};
exports.accept1 = {
parameterPath: 'accept',
mapper: {
defaultValue: 'application/json',
isConstant: true,
serializedName: 'Accept',
type: {
name: 'String',
},
},
};
exports.fileContentType = {
parameterPath: 'fileContentType',
mapper: {
serializedName: 'fileContentType',
required: true,
type: {
name: 'String',
},
},
};
exports.fileName = {
parameterPath: 'fileName',
mapper: {
serializedName: 'fileName',
required: true,
type: {
name: 'String',
},
},
};
exports.userActionValueId = {
parameterPath: 'userActionValueId',
mapper: {
serializedName: 'userActionValueId',
required: true,
type: {
name: 'Uuid',
},
},
};
exports.processMetadataUpdateParams = {
parameterPath: 'processMetadataUpdateParams',
mapper: mappers_1.ProcessMetadataUpdateParams,
};
exports.contentType2 = {
parameterPath: ['options', 'contentType'],
mapper: {
defaultValue: 'application/json-patch+json',
isConstant: true,
serializedName: 'Content-Type',
type: {
name: 'String',
},
},
};
exports.jsonPatch = {
parameterPath: 'jsonPatch',
mapper: {
constraints: {
MinItems: 1,
},
serializedName: 'jsonPatch',
required: true,
type: {
name: 'Sequence',
element: {
type: {
name: 'Composite',
className: 'JsonPatchOperation',
},
},
},
},
};
exports.processEntityUpdateParams = {
parameterPath: 'processEntityUpdateParams',
mapper: mappers_1.ProcessEntityUpdateParams,
};
exports.accept2 = {
parameterPath: 'accept',
mapper: {
defaultValue: 'application/octet-stream, application/json',
isConstant: true,
serializedName: 'Accept',
type: {
name: 'String',
},
},
};
exports.documentUri = {
parameterPath: 'documentUri',
mapper: {
serializedName: 'documentUri',
required: true,
type: {
name: 'String',
},
},
};
exports.processId = {
parameterPath: ['options', 'processId'],
mapper: {
serializedName: 'processId',
type: {
name: 'Sequence',
element: {
type: {
name: 'Uuid',
},
},
},
},
collectionFormat: 'Multi',
};
exports.typeParam1 = {
parameterPath: ['options', 'type'],
mapper: {
serializedName: 'type',
type: {
name: 'Sequence',
element: {
type: {
name: 'Enum',
allowedValues: ['TASK', 'MESSAGE', 'THREAD'],
},
},
},
},
collectionFormat: 'Multi',
};
exports.taskState = {
parameterPath: ['options', 'taskState'],
mapper: {
serializedName: 'taskState',
type: {
name: 'Sequence',
element: {
type: {
name: 'Enum',
allowedValues: ['READY', 'CLAIMED', 'COMPLETED', 'CANCELLED'],
},
},
},
},
collectionFormat: 'Multi',
};
exports.processItemDefinitionCode = {
parameterPath: ['options', 'processItemDefinitionCode'],
mapper: {
serializedName: 'processItemDefinitionCode',
type: {
name: 'Sequence',
element: {
type: {
name: 'String',
},
},
},
},
collectionFormat: 'Multi',
};
exports.processItemCreateParams = {
parameterPath: 'processItemCreateParams',
mapper: mappers_1.ProcessItemCreateParams,
};
exports.processItemTaskAssignParams = {
parameterPath: 'processItemTaskAssignParams',
mapper: mappers_1.ProcessItemTaskAssignParams,
};
exports.processItemTaskAppendLogParams = {
parameterPath: 'processItemTaskAppendLogParams',
mapper: mappers_1.ProcessItemTaskAppendLogParams,
};
exports.processItemTaskDataUpdateParams = {
parameterPath: 'processItemTaskDataUpdateParams',
mapper: mappers_1.ProcessItemTaskDataUpdateParams,
};
exports.accept3 = {
parameterPath: 'accept',
mapper: {
defaultValue: 'application/pdf, application/zip, application/json',
isConstant: true,
serializedName: 'Accept',
type: {
name: 'String',
},
},
};
exports.propertyPath = {
parameterPath: 'propertyPath',
mapper: {
serializedName: 'propertyPath',
required: true,
type: {
name: 'String',
},
},
};
exports.workerCreateParams = {
parameterPath: 'workerCreateParams',
mapper: mappers_1.WorkerCreateParams,
};
exports.filterContext = {
parameterPath: ['options', 'filterContext'],
mapper: {
serializedName: 'filterContext',
type: {
name: 'Enum',
allowedValues: ['READY', 'DEFAULT'],
},
},
collectionFormat: 'CSV',
};
exports.typeParam2 = {
parameterPath: 'typeParam',
mapper: {
serializedName: 'type',
required: true,
type: {
name: 'Enum',
allowedValues: ['PYTHON', 'PYTHON_PIP', 'NODEJS'],
},
},
};
exports.version = {
parameterPath: 'version',
mapper: {
serializedName: 'version',
required: true,
type: {
name: 'String',
},
},
};
exports.platform = {
parameterPath: 'platform',
mapper: {
serializedName: 'platform',
required: true,
type: {
name: 'Enum',
allowedValues: ['WINDOWS', 'MAC_OS', 'LINUX'],
},
},
};
exports.architecture = {
parameterPath: 'architecture',
mapper: {
serializedName: 'architecture',
required: true,
type: {
name: 'Enum',
allowedValues: ['X86_32', 'X86_64'],
},
},
};
//# sourceMappingURL=parameters.js.map