@balena/contrato
Advanced tools
Comparing version 0.6.4 to 0.6.5-stricter-types-fb379949c2749e2b0fce40d24b764abaf02b0c64
import Contract from './contract'; | ||
import { BlueprintObject } from './types/types'; | ||
import { BlueprintLayout } from './types/types'; | ||
export default class Blueprint extends Contract { | ||
constructor(layout: BlueprintObject, skeleton?: any); | ||
constructor(layout: BlueprintLayout, skeleton?: any); | ||
sequence(contract: Contract, options?: { | ||
@@ -6,0 +6,0 @@ allowRequirements: boolean; |
@@ -16,3 +16,3 @@ import { ContractObject } from './types/types'; | ||
getReferenceString(): string; | ||
toJSON(): object; | ||
toJSON(): ContractObject; | ||
addChild(contract: Contract, options?: object): Contract; | ||
@@ -19,0 +19,0 @@ removeChild(contract: Contract, options?: object): Contract; |
@@ -1,2 +0,2 @@ | ||
import { BlueprintObject, ContractObject } from './types/types'; | ||
import { BlueprintLayout, BlueprintObject, ContractObject } from './types/types'; | ||
import Contract from './contract'; | ||
@@ -6,4 +6,4 @@ import Blueprint from './blueprint'; | ||
import { parse as parseCardinality } from './cardinality'; | ||
export { ContractObject, BlueprintObject, Contract, Blueprint, buildTemplate, parseCardinality, }; | ||
export declare const query: (universe: Contract, layout: object, skeleton: object) => Contract[]; | ||
export declare const sequence: (universe: Contract, layout: object, skeleton: object) => Contract[]; | ||
export { BlueprintLayout, ContractObject, BlueprintObject, Contract, Blueprint, buildTemplate, parseCardinality, }; | ||
export declare const query: (universe: Contract, layout: BlueprintLayout, skeleton: object) => Contract[]; | ||
export declare const sequence: (universe: Contract, layout: BlueprintLayout, skeleton: object) => Contract[]; |
@@ -0,3 +1,4 @@ | ||
import Contract from './contract'; | ||
import { ContractObject } from './types/types'; | ||
export declare const findPartial: (name: string, context: ContractObject, options: { | ||
export declare const findPartial: (name: string, context: Contract, options: { | ||
baseDirectory: string; | ||
@@ -4,0 +5,0 @@ structure: string[]; |
import { ContractObject } from './types/types'; | ||
export declare const compileContract: (contract: ContractObject, options?: { | ||
blacklist?: Set<string>; | ||
}, root?: object | undefined, breadcrumb?: string[] | undefined) => ContractObject; | ||
}, root?: ({ | ||
type: string; | ||
} & { | ||
[key: string]: any; | ||
}) | undefined, breadcrumb?: string[] | undefined) => ContractObject; |
@@ -5,4 +5,19 @@ export interface paths { | ||
schemas: { | ||
Blueprint: components['schemas']['Contract']; | ||
Blueprint: components['schemas']['Contract'] & { | ||
[key: string]: any; | ||
} & { | ||
type?: 'meta.blueprint'; | ||
layout?: components['schemas']['BlueprintLayout']; | ||
skeleton?: { | ||
[key: string]: any; | ||
}; | ||
} & { | ||
[key: string]: any; | ||
}; | ||
BlueprintLayout: { | ||
[key: string]: any; | ||
}; | ||
Contract: { | ||
type: string; | ||
} & { | ||
[key: string]: any; | ||
@@ -9,0 +24,0 @@ }; |
import { components } from './cuetypes'; | ||
export declare type ContractObject = components['schemas']['Contract']; | ||
export declare type BlueprintObject = components['schemas']['Blueprint']; | ||
export declare type BlueprintLayout = components['schemas']['BlueprintLayout']; | ||
export declare const CONTEXT = "meta.context"; | ||
@@ -5,0 +6,0 @@ export declare const UNIVERSE = "meta.universe"; |
@@ -8,2 +8,6 @@ # Change Log | ||
## 0.6.5 - 2021-05-07 | ||
* Added more strict types to cue definitions [Micah Halter] | ||
## 0.6.4 - 2021-05-06 | ||
@@ -10,0 +14,0 @@ |
{ | ||
"name": "@balena/contrato", | ||
"version": "0.6.4", | ||
"version": "0.6.5-stricter-types-fb379949c2749e2b0fce40d24b764abaf02b0c64", | ||
"description": "The official contract implementation", | ||
@@ -63,3 +63,3 @@ "homepage": "https://github.com/product-os/contrato", | ||
"mocha": "^7.2.0", | ||
"openapi-typescript": "^3.2.3", | ||
"openapi-typescript": "^3.2.4", | ||
"rimraf": "^3.0.2", | ||
@@ -66,0 +66,0 @@ "ts-node": "^8.10.1", |
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
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
Sorry, the diff of this file is not supported yet
123725
1434