@plattar/sdk-core
Advanced tools
Comparing version
@@ -48,3 +48,4 @@ "use strict"; | ||
const outputAttributesName = map.mount.meta.output ? util_1.Util.getClassAttributesName(map.mount.meta.output.type) : (isFile ? fileInterfaceName : interfaceName); | ||
if (meta.outputType === 'single') { | ||
const outputType = meta.outputType || 'single'; | ||
if (outputType === 'single') { | ||
output += `\tpublic async ${meta.identifier}(${(isSet ? `params:${dataType}` : '')}): Promise<${outputClassName} | null> {\n`; | ||
@@ -56,3 +57,3 @@ output += `\t\tconst url:string = \`${endpoint}${mountEndpoint}\`${isSet ? additionalQuery : ''};\n`; | ||
} | ||
else if (meta.outputType === 'void') { | ||
else if (outputType === 'void') { | ||
output += `\tpublic async ${meta.identifier}(${(isSet ? `params:${dataType}` : '')}): Promise<void> {\n`; | ||
@@ -59,0 +60,0 @@ output += `\t\tconst url:string = \`${endpoint}${mountEndpoint}\`${isSet ? additionalQuery : ''};\n`; |
@@ -48,3 +48,4 @@ "use strict"; | ||
const outputAttributesName = map.mount.meta.output ? util_1.Util.getClassAttributesName(map.mount.meta.output.type) : (isFile ? fileInterfaceName : interfaceName); | ||
if (meta.outputType === 'single') { | ||
const outputType = meta.outputType || 'single'; | ||
if (outputType === 'single') { | ||
output += `\tpublic async ${meta.identifier}(${(isSet ? `params:${dataType}` : '')}): Promise<${outputClassName} | null> {\n`; | ||
@@ -56,3 +57,3 @@ output += `\t\tconst url:string = \`${endpoint}${mountEndpoint}\`${isSet ? additionalQuery : ''};\n`; | ||
} | ||
else if (meta.outputType === 'array') { | ||
else if (outputType === 'array') { | ||
output += `\tpublic async ${meta.identifier}(${(isSet ? `params:${dataType}` : '')}): Promise<Array<${outputClassName}>> {\n`; | ||
@@ -63,3 +64,3 @@ output += `\t\tconst url:string = \`${endpoint}${mountEndpoint}\`${isSet ? additionalQuery : ''};\n`; | ||
} | ||
else if (meta.outputType === 'void') { | ||
else if (outputType === 'void') { | ||
output += `\tpublic async ${meta.identifier}(${(isSet ? `params:${dataType}` : '')}): Promise<void> {\n`; | ||
@@ -66,0 +67,0 @@ output += `\t\tconst url:string = \`${endpoint}${mountEndpoint}\`${isSet ? additionalQuery : ''};\n`; |
@@ -1,2 +0,2 @@ | ||
declare const _default: "1.166.1"; | ||
declare const _default: "1.166.2"; | ||
export default _default; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = "1.166.1"; | ||
exports.default = "1.166.2"; |
{ | ||
"name": "@plattar/sdk-core", | ||
"version": "1.166.1", | ||
"version": "1.166.2", | ||
"description": "Core SDK Module for Generative SDK using API Core", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
94687
0.11%2266
0.09%