🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@flatfile/schema

Package Overview
Dependencies
Maintainers
26
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flatfile/schema - npm Package Compare versions

Comparing version

to
0.2.16

6

CHANGELOG.md
# @flatfile/schema
## 0.2.16
### Patch Changes
- 43c354d: update blueprint types
## 0.2.15

@@ -4,0 +10,0 @@

4

dist/index.d.ts

@@ -1,3 +0,2 @@

import { SheetAccess, Action } from '@flatfile/api';
import { EnumProperty, Property, SheetConfig } from '@flatfile/blueprint';
import { SheetAccess, Action, EnumProperty, Property, SheetConfig } from '@flatfile/blueprint';

@@ -83,2 +82,3 @@ interface IJsonSchemaProperty {

getSheetCompute?: any;
blueprint?: any;
}

@@ -85,0 +85,0 @@ interface BaseSchemaILField extends BaseField {

{
"name": "@flatfile/schema",
"version": "0.2.15",
"version": "0.2.16",
"description": "",

@@ -23,6 +23,6 @@ "main": "./dist/index.js",

},
"dependencies": {},
"dependencies": {
"@flatfile/blueprint": "^0.0.9"
},
"devDependencies": {
"@flatfile/api": "^0.0.19",
"@flatfile/blueprint": "^0.0.8",
"@flatfile/eslint-config-platform-sdk": "*",

@@ -29,0 +29,0 @@ "@flatfile/ts-config-platform-sdk": "*",

@@ -0,16 +1,7 @@

import { SchemaILField, SchemaILModel } from './types/SchemaIL'
import {
SchemaILModel,
BaseSchemaILField,
SchemaILField,
SchemaILEnumField,
} from './types/SchemaIL'
import _ from 'lodash'
import {
Constraint,
StringProperty,
BooleanProperty,
EnumProperty,
EnumPropertyOption,
NumberProperty,
SheetConfig,
StringProperty,
} from '@flatfile/blueprint'

@@ -33,2 +24,7 @@

field: 'first_name',
blueprint: {
metadata: {
foo: 'bar',
},
},
}

@@ -43,2 +39,5 @@

constraints: [{ type: 'required' }],
metadata: {
foo: 'bar',
},
}

@@ -45,0 +44,0 @@ expect(SchemaILFieldtoProperty(stringField)).toStrictEqual(blueprintOutput)

import _ from 'lodash'
import { BooleanCast } from '../../configure/src/stdlib/CastFunctions'
import {
SchemaILModel,
import type {
BaseSchemaILField,
ReferenceField,
SchemaILEnumField,
SchemaILField,
SchemaILEnumField,
ReferenceField,
SchemaILModel,
} from './types/SchemaIL'
import {
import type {
BooleanProperty,
Constraint,
Property,
StringProperty,
BooleanProperty,
EnumProperty,
EnumPropertyOption,
NumberProperty,
Property,
ReferenceProperty,
SheetConfig,
ReferenceProperty,
StringProperty,
} from '@flatfile/blueprint'

@@ -48,2 +47,3 @@

}
const overrides = field.blueprint || {}
return {

@@ -56,2 +56,3 @@ constraints: getConstraints(field),

description: field.description,
...overrides,
}

@@ -73,2 +74,4 @@ }

}
const overrides = field.blueprint || {}
return {

@@ -84,2 +87,3 @@ constraints: getConstraints(field),

},
...overrides,
}

@@ -89,2 +93,4 @@ }

const convertLinkedField = (field: ReferenceField): ReferenceProperty => {
const overrides = field.blueprint || {}
return {

@@ -102,2 +108,3 @@ constraints: getConstraints(field),

},
...overrides,
}

@@ -104,0 +111,0 @@ }

@@ -1,2 +0,2 @@

import {
import type {
SchemaILModel,

@@ -7,3 +7,3 @@ SchemaILField,

} from './types/SchemaIL'
import { IJsonSchema, IJsonSchemaProperty } from './types/JsonSchema'
import type { IJsonSchema, IJsonSchemaProperty } from './types/JsonSchema'
import {

@@ -10,0 +10,0 @@ filter,

@@ -1,3 +0,3 @@

import { FieldConfig } from '@flatfile/configure'
import { FlatfileRecord } from '@flatfile/hooks'
import type { FieldConfig } from '@flatfile/configure'
import type { FlatfileRecord } from '@flatfile/hooks'

@@ -4,0 +4,0 @@ type Unique = {

@@ -1,3 +0,3 @@

import { Action, SheetAccess } from '@flatfile/api'
import { FieldVisibilityTypes } from './JsonSchema'
import type { Action, SheetAccess } from '@flatfile/blueprint'
import type { FieldVisibilityTypes } from './JsonSchema'

@@ -23,2 +23,3 @@ export type BaseFieldTypes = 'string' | 'number' | 'boolean' | 'composite'

getSheetCompute?: any
blueprint?: any
}

@@ -25,0 +26,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet