Socket
Socket
Sign inDemoInstall

noodl-types

Package Overview
Dependencies
Maintainers
1
Versions
240
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

noodl-types - npm Package Compare versions

Comparing version 1.0.184 to 1.0.185

0

CHANGELOG.md

@@ -0,0 +0,0 @@ # Change Log

90

package.json
{
"author": "Christopher Tran <christopher@aitmed.com>",
"dependencies": {
"lodash.get": "^4.4.2",
"lodash.has": "^4.5.2"
},
"description": "NOODL TypeScript Definitions",
"devDependencies": {
"@types/lodash.get": "^4.4.6",
"@types/lodash.has": "^4.5.6"
},
"directories": {
"dist": "./dist"
},
"engines": {
"node": "14.x"
},
"gitHead": "c6d5712c14cedf5faf330797187ffff96b9ce6ee",
"homepage": "",
"license": "ISC",
"main": "./dist/index.js",
"module": "./dist/index.js",
"name": "noodl-types",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "http://gitlab.aitmed.com/pfftdammitchris/aitmed-noodl-web.git"
},
"scripts": {
"build": "tsc",
"build:cjs": "tsc --outDir dist/cjs --project tsconfig.cjs.json",
"build:esm": "tsc --outDir dist --project tsconfig.json",
"start": "rm -rf dist && tsc --watch",
"test": "cross-env TS_NODE_PROJECT=\"tsconfig.test.json\" NODE_ENV=test ts-mocha --extensions ts --watch --watch-files src \"src/**/*.test.ts\""
},
"typesVersions": {
"*": {
"index.d.ts": [
"./dist/index.d.ts"
]
}
},
"typings": "./dist/index.d.ts",
"version": "1.0.184"
"author": "Christopher Tran <christopher@aitmed.com>",
"dependencies": {
"lodash.get": "^4.4.2",
"lodash.has": "^4.5.2"
},
"description": "NOODL TypeScript Definitions",
"devDependencies": {
"@types/lodash.get": "^4.4.6",
"@types/lodash.has": "^4.5.6"
},
"directories": {
"dist": "./dist"
},
"engines": {
"node": "14.x"
},
"gitHead": "c6d5712c14cedf5faf330797187ffff96b9ce6ee",
"homepage": "",
"license": "ISC",
"main": "./dist/index.js",
"module": "./dist/index.js",
"name": "noodl-types",
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "http://gitlab.aitmed.com/pfftdammitchris/aitmed-noodl-web.git"
},
"scripts": {
"build": "tsc",
"build:cjs": "tsc --outDir dist/cjs --project tsconfig.cjs.json",
"build:esm": "tsc --outDir dist --project tsconfig.json",
"start": "rm -rf dist && tsc --watch",
"test": "cross-env TS_NODE_PROJECT=\"tsconfig.test.json\" NODE_ENV=test ts-mocha -r source-map-support/register --extensions ts --watch --watch-files src \"src/**/*.test.ts\""
},
"typesVersions": {
"*": {
"index.d.ts": [
"./dist/index.d.ts"
]
}
},
"typings": "./dist/index.d.ts",
"version": "1.0.185"
}

@@ -8,217 +8,217 @@ import * as com from 'noodl-common'

describe(com.coolGold('Identify'), () => {
describe(label('actionChain'), () => {
it(`should accept emit objects`, () => {
expect(
t.Identify.actionChain([
{ emit: { dataKey: { var1: 'itemObject' } }, actions: [] },
]),
).to.be.true
})
describe(label('actionChain'), () => {
it(`should accept emit objects`, () => {
expect(
t.Identify.actionChain([
{ emit: { dataKey: { var1: 'itemObject' } }, actions: [] },
]),
).to.be.true
})
it(`should accept goto objects`, () => {
expect(
t.Identify.actionChain([
{ emit: { dataKey: { var1: 'itemObject' } }, actions: [] },
{ goto: 'PatientDashboard' },
{ toast: { message: 'Hello' } },
]),
).to.be.true
})
it(`should accept goto objects`, () => {
expect(
t.Identify.actionChain([
{ emit: { dataKey: { var1: 'itemObject' } }, actions: [] },
{ goto: 'PatientDashboard' },
{ toast: { message: 'Hello' } },
]),
).to.be.true
})
it(`should accept emit, goto, and toast objects`, () => {
expect(
t.Identify.actionChain([
{ emit: { dataKey: { var1: 'itemObject' } }, actions: [] },
{ goto: 'PatientDashboard' },
{ toast: { message: 'Hello' } },
]),
).to.be.true
})
})
it(`should accept emit, goto, and toast objects`, () => {
expect(
t.Identify.actionChain([
{ emit: { dataKey: { var1: 'itemObject' } }, actions: [] },
{ goto: 'PatientDashboard' },
{ toast: { message: 'Hello' } },
]),
).to.be.true
})
})
describe(label('ecosObj'), () => {
describe(`note/pdf`, () => {
it(`should return true for note/pdf docs`, () => {
const ecosObj: t.EcosDocument<any> = {
name: {
title: `note title`,
data: `note's contents`,
type: 'application/json',
},
subtype: { mediaType: 1 },
type: 1025,
}
expect(t.Identify.ecosObj.doc(ecosObj)).to.be.true
})
describe(label('ecosObj'), () => {
describe(`note/pdf`, () => {
it(`should return true for note/pdf docs`, () => {
const ecosObj: t.EcosDocument<any> = {
name: {
title: `note title`,
data: `note's contents`,
type: 'application/json',
},
subtype: { mediaType: 1 },
type: 1025,
}
expect(t.Identify.ecosObj.doc(ecosObj)).to.be.true
})
it(`should return false for docs that are not note/pdf docs`, () => {
const ecosObj: t.EcosDocument<any> = {
name: {
title: `note title`,
data: `note's contents`,
type: 'text/plain',
},
subtype: { mediaType: 1 },
type: 1025,
}
expect(t.Identify.ecosObj.doc(ecosObj)).to.be.true
ecosObj.subtype.mediaType = 2
ecosObj.name.type = 'application/json'
expect(t.Identify.ecosObj.doc(ecosObj)).to.be.true
ecosObj.name.type = 'text/html'
expect(t.Identify.ecosObj.doc(ecosObj)).to.be.false
ecosObj.name.type = 'text/markdown'
expect(t.Identify.ecosObj.doc(ecosObj)).to.be.false
ecosObj.name.type = 'text/javascript'
expect(t.Identify.ecosObj.doc(ecosObj)).to.be.false
ecosObj.name.type = 'image/png'
expect(t.Identify.ecosObj.doc(ecosObj)).to.be.false
ecosObj.name.type = 'image/jpg'
expect(t.Identify.ecosObj.doc(ecosObj)).to.be.false
ecosObj.name.type = 'video/mp4'
expect(t.Identify.ecosObj.doc(ecosObj)).to.be.false
})
})
})
it(`should return false for docs that are not note/pdf docs`, () => {
const ecosObj: t.EcosDocument<any> = {
name: {
title: `note title`,
data: `note's contents`,
type: 'text/plain',
},
subtype: { mediaType: 1 },
type: 1025,
}
expect(t.Identify.ecosObj.doc(ecosObj)).to.be.true
ecosObj.subtype && (ecosObj.subtype.mediaType = 2)
ecosObj.name.type = 'application/json'
expect(t.Identify.ecosObj.doc(ecosObj)).to.be.true
ecosObj.name.type = 'text/html'
expect(t.Identify.ecosObj.doc(ecosObj)).to.be.false
ecosObj.name.type = 'text/markdown'
expect(t.Identify.ecosObj.doc(ecosObj)).to.be.false
ecosObj.name.type = 'text/javascript'
expect(t.Identify.ecosObj.doc(ecosObj)).to.be.false
ecosObj.name.type = 'image/png'
expect(t.Identify.ecosObj.doc(ecosObj)).to.be.false
ecosObj.name.type = 'image/jpg'
expect(t.Identify.ecosObj.doc(ecosObj)).to.be.false
ecosObj.name.type = 'video/mp4'
expect(t.Identify.ecosObj.doc(ecosObj)).to.be.false
})
})
})
describe(label(`reference`), () => {
const tests = {
evolve: {
'.builtIn.isAndroid': false,
'..setAndroid': false,
'=.Global.currentUser.vertex.sk': true,
'..appLink.url@': false,
'=.builtIn.string.equal': true,
},
local: {
'=.SignIn.loginNewDevice.edgeAPI.store': false,
// '=.builtIn.math.random': false,
'.Global.currentUser.dataCache.loadingDateTime@': false,
'=.Global.currentUser.vertex.sk': false,
'=..loginNewDevice.response.edge.deat.user_id': true,
'=..rvCondition': true,
'=.Global._nonce': false,
'..formData.countryCode': true,
'.formData.countryCode': true,
'=.SignIn.formData.countryCode': false,
'=..verificationCode.response.edge.deat.phone_number': true,
},
root: {
'=.SignIn.loginNewDevice.edgeAPI.store': true,
// '=.builtIn.math.random': true,
'.Global.currentUser.dataCache.loadingDateTime@': true,
'=.Global.currentUser.vertex.sk': true,
'=..loginNewDevice.response.edge.deat.user_id': false,
'=..rvCondition': false,
'=.Global._nonce': true,
'..formData.countryCode': false,
'.formData.countryCode': false,
'=.SignIn.formData.countryCode': true,
'=..verificationCode.response.edge.deat.phone_number': false,
},
await: {
'.builtIn.isAndroid': false,
'..setAndroid': false,
'=.Global.currentUser.vertex.sk': false,
'.SignUp.formData.countryCode@': true,
'.SignUp.formData.countryCode': false,
'=.Global.currentUser.vertex.sk@': true,
},
traverse: {
__message: false,
'__.message': true,
'_.message': true,
'.message': false,
message: false,
// '=__.message': true,
// '..__.message': true,
},
tilde: {
__message: false,
'_.message': false,
'.message': false,
message: false,
'~/message': true,
'~message': false,
'~~/message': false,
'/message': false,
},
}
describe(label(`reference`), () => {
const tests = {
evolve: {
'.builtIn.isAndroid': false,
'..setAndroid': false,
'=.Global.currentUser.vertex.sk': true,
'..appLink.url@': false,
'=.builtIn.string.equal': true,
},
local: {
'=.SignIn.loginNewDevice.edgeAPI.store': false,
// '=.builtIn.math.random': false,
'.Global.currentUser.dataCache.loadingDateTime@': false,
'=.Global.currentUser.vertex.sk': false,
'=..loginNewDevice.response.edge.deat.user_id': true,
'=..rvCondition': true,
'=.Global._nonce': false,
'..formData.countryCode': true,
'.formData.countryCode': true,
'=.SignIn.formData.countryCode': false,
'=..verificationCode.response.edge.deat.phone_number': true,
},
root: {
'=.SignIn.loginNewDevice.edgeAPI.store': true,
// '=.builtIn.math.random': true,
'.Global.currentUser.dataCache.loadingDateTime@': true,
'=.Global.currentUser.vertex.sk': true,
'=..loginNewDevice.response.edge.deat.user_id': false,
'=..rvCondition': false,
'=.Global._nonce': true,
'..formData.countryCode': false,
'.formData.countryCode': false,
'=.SignIn.formData.countryCode': true,
'=..verificationCode.response.edge.deat.phone_number': false,
},
await: {
'.builtIn.isAndroid': false,
'..setAndroid': false,
'=.Global.currentUser.vertex.sk': false,
'.SignUp.formData.countryCode@': true,
'.SignUp.formData.countryCode': false,
'=.Global.currentUser.vertex.sk@': true,
},
traverse: {
__message: false,
'__.message': true,
'_.message': true,
'.message': false,
message: false,
// '=__.message': true,
// '..__.message': true,
},
tilde: {
__message: false,
'_.message': false,
'.message': false,
message: false,
'~/message': true,
'~message': false,
'~~/message': false,
'/message': false,
},
}
describe(`await references`, () => {
Object.entries(tests.await).forEach(([reference, expectedValue]) => {
it(`should be ${expectedValue} for ${reference}`, () => {
expect(t.Identify.reference.isAwaitingVal(reference)).to.be[
String(expectedValue)
]
})
})
})
describe(`await references`, () => {
Object.entries(tests.await).forEach(([reference, expectedValue]) => {
it(`should be ${expectedValue} for ${reference}`, () => {
expect(t.Identify.awaitReference(reference)).to.be[
String(expectedValue)
]
})
})
})
describe(`evolve references`, () => {
Object.entries(tests.evolve).forEach(([reference, expectedValue]) => {
it(`should be ${expectedValue} for ${reference}`, () => {
expect(t.Identify.reference.isEval(reference)).to.be[
String(expectedValue)
]
})
})
})
describe(`evolve references`, () => {
Object.entries(tests.evolve).forEach(([reference, expectedValue]) => {
it(`should be ${expectedValue} for ${reference}`, () => {
expect(t.Identify.evalReference(reference)).to.be[
String(expectedValue)
]
})
})
})
describe(`local merge references`, () => {
Object.entries(tests.local).forEach(([reference, expectedValue]) => {
it(`should be ${expectedValue} for ${reference}`, () => {
expect(t.Identify.reference.isLocal(reference)).to.be[
String(expectedValue)
]
})
})
})
describe(`local merge references`, () => {
Object.entries(tests.local).forEach(([reference, expectedValue]) => {
it(`should be ${expectedValue} for ${reference}`, () => {
expect(t.Identify.localReference(reference)).to.be[
String(expectedValue)
]
})
})
})
describe(`root merge references`, () => {
Object.entries(tests.root).forEach(([reference, expectedValue]) => {
it(`should be ${expectedValue} for ${reference}`, () => {
expect(t.Identify.reference.isRoot(reference)).to.be[
String(expectedValue)
]
})
})
})
describe(`root merge references`, () => {
Object.entries(tests.root).forEach(([reference, expectedValue]) => {
it(`should be ${expectedValue} for ${reference}`, () => {
expect(t.Identify.rootReference(reference)).to.be[
String(expectedValue)
]
})
})
})
describe(`traverse references`, () => {
Object.entries(tests.traverse).forEach(([reference, expectedValue]) => {
it(`should be ${expectedValue} for ${reference}`, () => {
expect(t.Identify.reference.isTraverse(reference)).to.be[
String(expectedValue)
]
})
})
})
describe(`traverse references`, () => {
Object.entries(tests.traverse).forEach(([reference, expectedValue]) => {
it(`should be ${expectedValue} for ${reference}`, () => {
expect(t.Identify.traverseReference(reference)).to.be[
String(expectedValue)
]
})
})
})
describe(`tilde references`, () => {
Object.entries(tests.tilde).forEach(([reference, expectedValue]) => {
it(`should be ${expectedValue} for ${reference}`, () => {
expect(t.Identify.reference.isTilde(reference)).to.be[
String(expectedValue)
]
})
})
})
})
describe(`tilde references`, () => {
Object.entries(tests.tilde).forEach(([reference, expectedValue]) => {
it(`should be ${expectedValue} for ${reference}`, () => {
expect(t.Identify.tildeReference(reference)).to.be[
String(expectedValue)
]
})
})
})
})
describe(label('toast'), () => {
it(`should be a toast`, () => {
expect(t.Identify.folds.toast({ toast: { message: 'hello', style: {} } }))
.to.be.true
})
it(`should not be a toast`, () => {
expect(
t.Identify.folds.toast({ toasft: { message: 'hello', style: {} } }),
).to.be.false
expect(t.Identify.folds.toast({})).to.be.false
expect(t.Identify.folds.toast('fasfas')).to.be.false
expect(t.Identify.folds.toast(5)).to.be.false
expect(t.Identify.folds.toast(null)).to.be.false
})
})
describe(label('toast'), () => {
it(`should be a toast`, () => {
expect(t.Identify.folds.toast({ toast: { message: 'hello', style: {} } }))
.to.be.true
})
it(`should not be a toast`, () => {
expect(
t.Identify.folds.toast({ toasft: { message: 'hello', style: {} } }),
).to.be.false
expect(t.Identify.folds.toast({})).to.be.false
expect(t.Identify.folds.toast('fasfas')).to.be.false
expect(t.Identify.folds.toast(5)).to.be.false
expect(t.Identify.folds.toast(null)).to.be.false
})
})
})

@@ -0,0 +0,0 @@ export const componentTypes = [

export * from './utils'
export type OrArray<V = any> = V | V[]

@@ -0,0 +0,0 @@ import get from 'lodash.get'

@@ -0,0 +0,0 @@ import { LiteralUnion } from 'type-fest'

@@ -5,247 +5,257 @@ import { ActionObject } from './actionTypes'

import {
ActionChain,
EmitObject,
GotoObject,
Path,
TextBoardObject,
ActionChain,
EmitObject,
GotoObject,
Path,
TextBoardObject,
} from './uncategorizedTypes'
export type UncommonComponentObjectProps = {
[key in EventType]: ActionChain
[key in EventType]: ActionChain
} & {
actions?: (ActionObject | EmitObject | GotoObject)[]
audioStream?: boolean
contentType?: ContentType
chatItem?: Partial<ComponentObject>
dataKey?: string
ecosObj?: any
emit?: EmitObject
global?: true
image?: string
isEditable?: boolean
iteratorVar?: string
listObject?: any[]
onEvent?: string
optionKey?: string
options?: any[]
path?: Path
pathSelected?: string
placeholder?: string | EmitObject
popUpView?: string
poster?: string
refresh?: boolean
required?: boolean
text?: string
textBoard?: TextBoardObject
textAlign?: StyleTextAlign | StyleTextAlignObject
'text=func'?: string
videoFormat?: string
videoStream?: boolean
[key: string]: any
actions?: (ActionObject | EmitObject | GotoObject)[]
audioStream?: boolean
contentType?: ContentType
chatItem?: Partial<ComponentObject>
dataKey?: string
ecosObj?: any
emit?: EmitObject
global?: true
image?: string
isEditable?: boolean
iteratorVar?: string
listObject?: any[]
onEvent?: string
optionKey?: string
options?: any[]
path?: Path
pathSelected?: string
placeholder?: string | EmitObject
popUpView?: string
poster?: string
refresh?: boolean
required?: boolean
text?: string
textBoard?: TextBoardObject
textAlign?: StyleTextAlign | StyleTextAlignObject
'text=func'?: string
videoFormat?: string
videoStream?: boolean
[key: string]: any
}
export interface ComponentObject<T extends string = any>
extends Partial<Record<EventType, ActionChain>> {
type: T
style?: StyleObject
children?: any[]
viewTag?: string
[key: string]: any
extends Partial<Record<EventType, ActionChain>> {
type: T
style?: StyleObject
children?: any[]
viewTag?: string
[key: string]: any
}
export interface ChatListComponentObject
extends ComponentObject,
Pick<
UncommonComponentObjectProps,
'chatItem' | 'contentType' | 'iteratorVar' | 'listObject'
> {
type: 'chatList'
[key: string]: any
extends ComponentObject,
Pick<
UncommonComponentObjectProps,
'chatItem' | 'contentType' | 'iteratorVar' | 'listObject'
> {
type: 'chatList'
[key: string]: any
}
export interface ChartComponentObject extends ComponentObject {
type: 'chart'
[key: string]: any
type: 'chart'
[key: string]: any
}
export interface ButtonComponentObject
extends ComponentObject,
Pick<UncommonComponentObjectProps, 'contentType' | 'text'> {
type: 'button'
[key: string]: any
extends ComponentObject,
Pick<UncommonComponentObjectProps, 'contentType' | 'text'> {
type: 'button'
[key: string]: any
}
export interface CanvasComponentObject
extends ComponentObject,
Pick<UncommonComponentObjectProps, 'dataKey'> {
type: 'canvas'
[key: string]: any
extends ComponentObject,
Pick<UncommonComponentObjectProps, 'dataKey'> {
type: 'canvas'
[key: string]: any
}
export interface DividerComponentObject extends ComponentObject {
type: 'divider'
[key: string]: any
type: 'divider'
[key: string]: any
}
export interface EcosDocComponentObject
extends ComponentObject,
Pick<UncommonComponentObjectProps, 'ecosObj'> {
type: 'ecosDoc'
[key: string]: any
extends ComponentObject,
Pick<UncommonComponentObjectProps, 'ecosObj'> {
type: 'ecosDoc'
[key: string]: any
}
export interface FooterComponentObject extends ComponentObject {
type: 'footer'
[key: string]: any
type: 'footer'
[key: string]: any
}
export interface HeaderComponentObject extends ComponentObject {
type: 'header'
[key: string]: any
type: 'header'
[key: string]: any
}
export interface ImageComponentObject
extends ComponentObject,
Pick<
UncommonComponentObjectProps,
'contentType' | 'dataKey' | 'path' | 'pathSelected'
> {
type: 'image'
[key: string]: any
extends ComponentObject,
Pick<
UncommonComponentObjectProps,
'contentType' | 'dataKey' | 'path' | 'pathSelected'
> {
type: 'image'
[key: string]: any
}
export interface LabelComponentObject
extends ComponentObject,
Pick<
UncommonComponentObjectProps,
| 'contentType'
| 'dataKey'
| 'placeholder'
| 'text'
| 'textBoard'
| 'text=func'
> {
type: 'label'
[key: string]: any
extends ComponentObject,
Pick<
UncommonComponentObjectProps,
| 'contentType'
| 'dataKey'
| 'placeholder'
| 'text'
| 'textBoard'
| 'text=func'
> {
type: 'label'
[key: string]: any
}
export interface ListComponentObject
extends ComponentObject,
Pick<
UncommonComponentObjectProps,
'contentType' | 'iteratorVar' | 'listObject'
> {
type: 'list'
[key: string]: any
extends ComponentObject,
Pick<
UncommonComponentObjectProps,
'contentType' | 'iteratorVar' | 'listObject'
> {
type: 'list'
[key: string]: any
}
export interface ListItemComponentObject extends ComponentObject {
type: 'listItem'
[key: string]: any
type: 'listItem'
[key: string]: any
}
export interface MapComponentObject
extends ComponentObject,
Pick<UncommonComponentObjectProps, 'dataKey'> {
type: 'map'
[key: string]: any
extends ComponentObject,
Pick<UncommonComponentObjectProps, 'dataKey'> {
type: 'map'
[key: string]: any
}
export interface PageComponentObject
extends ComponentObject,
Pick<UncommonComponentObjectProps, 'path'> {
type: 'page'
[key: string]: any
extends ComponentObject,
Pick<UncommonComponentObjectProps, 'path'> {
type: 'page'
[key: string]: any
}
export interface PluginComponentObject
extends ComponentObject,
Pick<UncommonComponentObjectProps, 'path'> {
type: 'plugin'
[key: string]: any
extends ComponentObject,
Pick<UncommonComponentObjectProps, 'path'> {
type: 'plugin'
[key: string]: any
}
export interface PluginHeadComponentObject
extends ComponentObject,
Pick<UncommonComponentObjectProps, 'path'> {
type: 'pluginHead'
[key: string]: any
extends ComponentObject,
Pick<UncommonComponentObjectProps, 'path'> {
type: 'pluginHead'
[key: string]: any
}
export interface PluginBodyTopComponentObject
extends ComponentObject,
Pick<UncommonComponentObjectProps, 'path'> {
type: 'pluginBodyTop'
[key: string]: any
extends ComponentObject,
Pick<UncommonComponentObjectProps, 'path'> {
type: 'pluginBodyTop'
[key: string]: any
}
export interface PluginBodyTailComponentObject
extends ComponentObject,
Pick<UncommonComponentObjectProps, 'path'> {
type: 'pluginBodyTail'
[key: string]: any
extends ComponentObject,
Pick<UncommonComponentObjectProps, 'path'> {
type: 'pluginBodyTail'
[key: string]: any
}
export interface PopUpComponentObject
extends ComponentObject,
Pick<UncommonComponentObjectProps, 'popUpView'> {
type: 'popUp'
[key: string]: any
extends ComponentObject,
Pick<UncommonComponentObjectProps, 'popUpView'> {
type: 'popUp'
[key: string]: any
}
export interface RegisterComponentObject
extends ComponentObject,
Pick<
UncommonComponentObjectProps,
'actions' | 'dataKey' | 'emit' | 'onEvent'
> {
type: 'register'
[key: string]: any
extends ComponentObject,
Pick<
UncommonComponentObjectProps,
'actions' | 'dataKey' | 'emit' | 'onEvent'
> {
type: 'register'
[key: string]: any
}
export interface SelectComponentObject
extends ComponentObject,
Pick<
UncommonComponentObjectProps,
'contentType' | 'optionKey' | 'options' | 'placeholder' | 'required'
> {
type: 'select'
[key: string]: any
extends ComponentObject,
Pick<
UncommonComponentObjectProps,
'contentType' | 'optionKey' | 'options' | 'placeholder' | 'required'
> {
type: 'select'
[key: string]: any
}
export interface ScrollViewComponentObject extends ComponentObject {
type: 'scrollView'
[key: string]: any
type: 'scrollView'
[key: string]: any
}
export interface TextFieldComponentObject
extends ComponentObject,
Pick<
UncommonComponentObjectProps,
'contentType' | 'dataKey' | 'placeholder' | 'required'
> {
type: 'textField'
[key: string]: any
extends ComponentObject,
Pick<
UncommonComponentObjectProps,
'contentType' | 'dataKey' | 'placeholder' | 'required'
> {
type: 'textField'
[key: string]: any
}
export interface TextViewComponentObject
extends ComponentObject,
Pick<
UncommonComponentObjectProps,
'contentType' | 'dataKey' | 'isEditable' | 'placeholder' | 'required'
> {
type: 'textView'
[key: string]: any
extends ComponentObject,
Pick<
UncommonComponentObjectProps,
'contentType' | 'dataKey' | 'isEditable' | 'placeholder' | 'required'
> {
type: 'textView'
[key: string]: any
}
export interface VideoComponentObject
extends ComponentObject,
Pick<UncommonComponentObjectProps, 'path' | 'poster' | 'videoFormat'> {
type: 'video'
[key: string]: any
extends ComponentObject,
Pick<UncommonComponentObjectProps, 'path' | 'poster' | 'videoFormat'> {
type: 'video'
[key: string]: any
}
export interface ViewComponentObject extends ComponentObject {
type: 'view'
[key: string]: any
type: 'view'
[key: string]: any
}
/* -------------------------------------------------------
---- Other component props
-------------------------------------------------------- */
export type PageComponentUrl<
TargetPage extends string = string,
CurrentPage extends string = string,
ViewTag extends string = string,
> = `${TargetPage}@${CurrentPage}#${ViewTag}`

@@ -0,0 +0,0 @@ export const action = {

@@ -0,0 +0,0 @@ import * as c from './constants'

@@ -0,0 +0,0 @@ import { EmitObject, EmitObjectFold, IfObject } from './uncategorizedTypes'

@@ -0,0 +0,0 @@ import { componentTypes } from './_internal/constants'

@@ -0,0 +0,0 @@ export * from './actionTypes'

import { ComponentObject } from './componentTypes'
export interface PageObject {
components: ComponentObject[]
final?: string // ex: "..save"
init?: string[] // ex: ["..formData.edge.get", "..formData.w9.get"]
check?: string[]
save?: string[]
update?: string[]
module?: string
pageNumber?: string
viewport?: any
lastTop?: number
[key: string]: any
components: ComponentObject[]
final?: string // ex: "..save"
init?: string[] // ex: ["..formData.edge.get", "..formData.w9.get"]
check?: string[]
save?: string[]
update?: string[]
module?: string
pageNumber?: string
viewport?: any
lastTop?: number
[key: string]: any
}

@@ -0,0 +0,0 @@ export interface StyleObject {

@@ -0,0 +0,0 @@ import { ActionObject } from './actionTypes'

@@ -0,0 +0,0 @@ import { ReferenceString } from '../ecosTypes'

@@ -0,0 +0,0 @@ import { ReferenceString } from '../ecosTypes'

@@ -0,0 +0,0 @@ import { ReferenceString } from '../ecosTypes'

@@ -0,0 +0,0 @@ import { ReferenceString } from '../ecosTypes'

@@ -0,0 +0,0 @@ import { ReferenceString } from '../ecosTypes'

@@ -0,0 +0,0 @@ import { ReferenceString } from '../ecosTypes'

@@ -0,0 +0,0 @@ import { ReferenceString } from '../ecosTypes'

@@ -0,0 +0,0 @@ {

{
"extends": "../../tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"declarationDir": "./dist",
"outDir": "./dist",
"rootDir": "./src",
"jsx": "preserve"
},
"exclude": ["./src/**/*.test.ts"],
"include": ["./src/**/*"]
"extends": "../../tsconfig.json",
"compilerOptions": {
"declarationDir": "./dist",
"module": "commonjs",
"outDir": "./dist",
"target": "es2017"
},
"include": ["./src"]
}
{
"ts-node": {
"transpileOnly": true
},
"compilerOptions": {
"module": "commonjs",
"target": "es2015",
"rootDir": "./src"
},
"exclude": ["node_modules"],
"include": ["src/**/*.test.ts"]
"compilerOptions": {},
"extends": "./tsconfig.json",
"include": ["src/**/*.test.ts"]
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc