@balena/sbvr-types
Advanced tools
Comparing version 5.1.1-build-renovate-typescript-5-x-c4a153114a285b612b596e95bf529e50da44cef0-1 to 6.0.0-build-otaviojacobi-change-contents-to-snake-case-566c085255c23f750f84be5e89b87c1dafcea65a-1
@@ -7,6 +7,7 @@ # Change Log | ||
# v5.1.1 | ||
## (2023-08-03) | ||
# v6.0.0 | ||
## (2023-08-08) | ||
* chore(deps): update dependency typescript to v5 [Self-hosted Renovate Bot] | ||
* Expose WebResource as WebResourceType [Otávio Jacobi] | ||
* Change contentType and disposition to snake_case [Otávio Jacobi] | ||
@@ -13,0 +14,0 @@ # v5.1.0 |
@@ -24,2 +24,3 @@ import type { SbvrType } from './type-utils'; | ||
import * as WebResource from './types/web-resource'; | ||
export { WebResource as WebResourceType } from './types/web-resource'; | ||
declare const _default: { | ||
@@ -26,0 +27,0 @@ 'Big Integer': typeof BigInteger; |
@@ -5,4 +5,4 @@ import type { CastNode, ExtractJSONPathAsTextNode, ReferencedFieldNode } from '@balena/abstract-sql-compiler'; | ||
href: string; | ||
contentType?: string; | ||
contentDisposition?: string; | ||
content_type?: string; | ||
content_disposition?: string; | ||
size?: number; | ||
@@ -9,0 +9,0 @@ }; |
@@ -15,4 +15,4 @@ "use strict"; | ||
<Property Name="href" Nullable="false" Type="Edm.String"/>\ | ||
<Property Name="contentType" Nullable="true" Type="Edm.String"/>\ | ||
<Property Name="contentDisposition" Nullable="true" Type="Edm.String"/>\ | ||
<Property Name="content_type" Nullable="true" Type="Edm.String"/>\ | ||
<Property Name="content_disposition" Nullable="true" Type="Edm.String"/>\ | ||
<Property Name="size" Nullable="true" Type="Edm.Int64"/>\ | ||
@@ -37,3 +37,3 @@ </ComplexType>`, | ||
referencedField, | ||
['TextArray', ['EmbeddedText', 'contentType']], | ||
['TextArray', ['EmbeddedText', 'content_type']], | ||
], | ||
@@ -43,3 +43,3 @@ 'Content Disposition': (referencedField) => [ | ||
referencedField, | ||
['TextArray', ['EmbeddedText', 'contentDisposition']], | ||
['TextArray', ['EmbeddedText', 'content_disposition']], | ||
], | ||
@@ -79,4 +79,4 @@ Size: (referencedField) => [ | ||
href: refData.href, | ||
contentType: refData.contentType, | ||
contentDisposition: refData.contentDisposition, | ||
content_type: refData.content_type, | ||
content_disposition: refData.content_disposition, | ||
size: refData.size, | ||
@@ -102,8 +102,8 @@ }; | ||
} | ||
if (value.contentType != null && typeof value.contentType !== 'string') { | ||
throw new Error('contentType must be a string or undefined'); | ||
if (value.content_type != null && typeof value.content_type !== 'string') { | ||
throw new Error('content_type must be a string or undefined'); | ||
} | ||
if (value.contentDisposition != null && | ||
typeof value.contentDisposition !== 'string') { | ||
throw new Error('contentDisposition must be a string or undefined'); | ||
if (value.content_disposition != null && | ||
typeof value.content_disposition !== 'string') { | ||
throw new Error('content_disposition must be a string or undefined'); | ||
} | ||
@@ -110,0 +110,0 @@ if (value.size != null && !Number.isInteger(value.size)) { |
{ | ||
"name": "@balena/sbvr-types", | ||
"version": "5.1.1-build-renovate-typescript-5-x-c4a153114a285b612b596e95bf529e50da44cef0-1", | ||
"version": "6.0.0-build-otaviojacobi-change-contents-to-snake-case-566c085255c23f750f84be5e89b87c1dafcea65a-1", | ||
"description": "SBVR type definitions.", | ||
@@ -37,3 +37,3 @@ "main": "out", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^5.0.0" | ||
"typescript": "^4.9.3" | ||
}, | ||
@@ -59,4 +59,4 @@ "lint-staged": { | ||
"versionist": { | ||
"publishedAt": "2023-08-03T09:48:09.286Z" | ||
"publishedAt": "2023-08-08T20:50:30.233Z" | ||
} | ||
} |
@@ -26,2 +26,4 @@ import type { SbvrType } from './type-utils'; | ||
export { WebResource as WebResourceType } from './types/web-resource'; | ||
export default { | ||
@@ -28,0 +30,0 @@ 'Big Integer': BigInteger, |
@@ -11,4 +11,4 @@ import * as TypeUtils from '../type-utils'; | ||
href: string; | ||
contentType?: string; | ||
contentDisposition?: string; | ||
content_type?: string; | ||
content_disposition?: string; | ||
size?: number; | ||
@@ -27,4 +27,4 @@ }; | ||
<Property Name="href" Nullable="false" Type="Edm.String"/>\ | ||
<Property Name="contentType" Nullable="true" Type="Edm.String"/>\ | ||
<Property Name="contentDisposition" Nullable="true" Type="Edm.String"/>\ | ||
<Property Name="content_type" Nullable="true" Type="Edm.String"/>\ | ||
<Property Name="content_disposition" Nullable="true" Type="Edm.String"/>\ | ||
<Property Name="size" Nullable="true" Type="Edm.Int64"/>\ | ||
@@ -54,3 +54,3 @@ </ComplexType>`, | ||
referencedField, | ||
['TextArray', ['EmbeddedText', 'contentType']], | ||
['TextArray', ['EmbeddedText', 'content_type']], | ||
], | ||
@@ -62,3 +62,3 @@ 'Content Disposition': ( | ||
referencedField, | ||
['TextArray', ['EmbeddedText', 'contentDisposition']], | ||
['TextArray', ['EmbeddedText', 'content_disposition']], | ||
], | ||
@@ -104,4 +104,4 @@ Size: (referencedField: ReferencedFieldNode): CastNode => [ | ||
href: refData.href, | ||
contentType: refData.contentType, | ||
contentDisposition: refData.contentDisposition, | ||
content_type: refData.content_type, | ||
content_disposition: refData.content_disposition, | ||
size: refData.size, | ||
@@ -134,10 +134,10 @@ }; | ||
} | ||
if (value.contentType != null && typeof value.contentType !== 'string') { | ||
throw new Error('contentType must be a string or undefined'); | ||
if (value.content_type != null && typeof value.content_type !== 'string') { | ||
throw new Error('content_type must be a string or undefined'); | ||
} | ||
if ( | ||
value.contentDisposition != null && | ||
typeof value.contentDisposition !== 'string' | ||
value.content_disposition != null && | ||
typeof value.content_disposition !== 'string' | ||
) { | ||
throw new Error('contentDisposition must be a string or undefined'); | ||
throw new Error('content_disposition must be a string or undefined'); | ||
} | ||
@@ -144,0 +144,0 @@ if (value.size != null && !Number.isInteger(value.size)) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
131730
2042