@balena/abstract-sql-to-typescript
Advanced tools
Comparing version 2.0.0 to 2.1.0-build-add-web-resource-6cf446a5230f86f19c346b37efde46b970d08a15-1
@@ -7,2 +7,6 @@ # Change Log | ||
## 2.1.0 - 2023-08-07 | ||
* Adds webresource typing generation [Otávio Jacobi] | ||
## 2.0.0 - 2023-05-02 | ||
@@ -9,0 +13,0 @@ |
@@ -17,2 +17,9 @@ "use strict"; | ||
}; | ||
export interface WebResource { | ||
filename: string; | ||
href: string; | ||
contentType?: string; | ||
contentDisposition?: string; | ||
size?: number; | ||
}; | ||
`, | ||
@@ -73,2 +80,4 @@ write: '', | ||
return '{}'; | ||
case 'WebResource': | ||
return 'WebResource'; | ||
default: | ||
@@ -75,0 +84,0 @@ throw new Error(`Unknown data type: '${f.dataType}'`); |
{ | ||
"name": "@balena/abstract-sql-to-typescript", | ||
"version": "2.0.0", | ||
"version": "2.1.0-build-add-web-resource-6cf446a5230f86f19c346b37efde46b970d08a15-1", | ||
"description": "A translator for abstract sql into typescript types.", | ||
@@ -47,4 +47,4 @@ "main": "out/index.js", | ||
"versionist": { | ||
"publishedAt": "2023-05-02T12:00:10.869Z" | ||
"publishedAt": "2023-08-07T15:41:31.815Z" | ||
} | ||
} |
@@ -32,2 +32,9 @@ import type { | ||
}; | ||
export interface WebResource { | ||
filename: string; | ||
href: string; | ||
contentType?: string; | ||
contentDisposition?: string; | ||
size?: number; | ||
}; | ||
`, | ||
@@ -111,2 +118,4 @@ write: '', | ||
return '{}'; | ||
case 'WebResource': | ||
return 'WebResource'; | ||
default: | ||
@@ -113,0 +122,0 @@ throw new Error(`Unknown data type: '${f.dataType}'`); |
@@ -35,2 +35,9 @@ import type { AbstractSqlModel } from '@balena/abstract-sql-compiler'; | ||
}; | ||
export interface WebResource { | ||
filename: string; | ||
href: string; | ||
contentType?: string; | ||
contentDisposition?: string; | ||
size?: number; | ||
}; | ||
@@ -145,2 +152,7 @@ ${expectation} | ||
{ | ||
dataType: 'WebResource', | ||
fieldName: 'a_file', | ||
required: true, | ||
}, | ||
{ | ||
dataType: 'ConceptType', | ||
@@ -312,2 +324,3 @@ fieldName: 'parent', | ||
a_date: DateString; | ||
a_file: WebResource; | ||
parent: { __id: number } | [Parent]; | ||
@@ -350,2 +363,3 @@ references__other: { __id: number } | [Other]; | ||
a_date: Date; | ||
a_file: WebResource; | ||
parent: number; | ||
@@ -352,0 +366,0 @@ references__other: number; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
110105
778
2