shinkansen-transmission 2.2.136 → 2.2.138
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "shinkansen-transmission",
|
3
|
-
"version": "2.2.
|
3
|
+
"version": "2.2.138",
|
4
4
|
"description": "Shinkansen Transmission",
|
5
5
|
"keywords": [
|
6
6
|
"Shinkansen",
|
@@ -11,7 +11,7 @@
|
|
11
11
|
],
|
12
12
|
"main": "./src/index.cjs",
|
13
13
|
"type": "module",
|
14
|
-
"types": "./src/index.d.
|
14
|
+
"types": "./src/index.d.mts",
|
15
15
|
"author": {
|
16
16
|
"name": "Jonathan Perry for Modern Poacher Limited",
|
17
17
|
"email": "modernpoacher@modernpoacher.com",
|
@@ -45,8 +45,8 @@
|
|
45
45
|
"@babel/preset-env": "^7.23.9",
|
46
46
|
"@babel/register": "^7.23.7",
|
47
47
|
"@modernpoacher/hooks": "^1.0.466",
|
48
|
-
"@typescript-eslint/eslint-plugin": "^7.0
|
49
|
-
"@typescript-eslint/parser": "^7.0
|
48
|
+
"@typescript-eslint/eslint-plugin": "^7.1.0",
|
49
|
+
"@typescript-eslint/parser": "^7.1.0",
|
50
50
|
"babel-loader": "^9.1.3",
|
51
51
|
"babel-plugin-module-resolver": "^5.0.0",
|
52
52
|
"c8": "^9.1.0",
|
package/src/index.d.cts
CHANGED
@@ -41,186 +41,6 @@ declare namespace Zashiki {
|
|
41
41
|
}
|
42
42
|
}
|
43
43
|
|
44
|
-
declare module 'shinkansen-transmission/transmission/common' {
|
45
|
-
type ObjectLiteralType = Zashiki.ObjectLiteralType
|
46
|
-
type ObjectType = Zashiki.ObjectType
|
47
|
-
type ArrayLiteralType = Zashiki.ArrayLiteralType
|
48
|
-
type ArrayType = Zashiki.ArrayType
|
49
|
-
|
50
|
-
type SchemaType = Zashiki.SchemaType
|
51
|
-
|
52
|
-
export function isObject (v: unknown): boolean
|
53
|
-
export function isArray (v: unknown): boolean
|
54
|
-
export function isPrimitive (v: unknown): boolean
|
55
|
-
export function isSchema (v: SchemaType | undefined): boolean
|
56
|
-
export function isStringSchema (schema: SchemaType | undefined): boolean
|
57
|
-
export function isNumberSchema (schema: SchemaType | undefined): boolean
|
58
|
-
export function isArraySchema (schema: SchemaType | undefined): boolean
|
59
|
-
export function isObjectSchema (schema: SchemaType | undefined): boolean
|
60
|
-
export function isBooleanSchema (schema: SchemaType | undefined): boolean
|
61
|
-
export function isNullSchema (schema: SchemaType | undefined): boolean
|
62
|
-
|
63
|
-
export function getTitle (schema: SchemaType | undefined): { title: string } | ObjectLiteralType
|
64
|
-
export function getDescription (schema: SchemaType | undefined): { description: string } | ObjectLiteralType
|
65
|
-
export function getIsReadOnly (schema: SchemaType | undefined): { readOnly: boolean } | ObjectLiteralType
|
66
|
-
export function getIsWriteOnly (schema: SchemaType | undefined): { writeOnly: boolean } | ObjectLiteralType
|
67
|
-
|
68
|
-
export function getSelectedItems (values: ObjectType | ObjectLiteralType, uri: string | undefined): ArrayType
|
69
|
-
|
70
|
-
export function isParentUri (parentUri: string | undefined, uri: string | undefined): boolean
|
71
|
-
|
72
|
-
export function getMetaProps (params: ObjectType | ObjectLiteralType, uri: string | undefined): ObjectType
|
73
|
-
export function getMetaDefaultValue (schema: SchemaType | undefined): { defaultValue: string } | ObjectLiteralType
|
74
|
-
export function hasMetaValue (values: ObjectType | ObjectLiteralType, uri: string | undefined, schema: SchemaType | undefined): boolean
|
75
|
-
export function getMetaValue (values: ObjectType | ObjectLiteralType, uri: string | undefined, schema: SchemaType | undefined): { value: string } | ObjectLiteralType
|
76
|
-
|
77
|
-
export function transformValue (schema: SchemaType): SchemaType | unknown
|
78
|
-
|
79
|
-
export function findByKey (parentUri: string | undefined, uri: string | undefined): (key: string) => boolean
|
80
|
-
export function findByIndex (parentUri: string | undefined, uri: string | undefined): (schema: SchemaType, index: number) => boolean
|
81
|
-
export function findByValue (value: unknown): (schema: SchemaType) => boolean
|
82
|
-
export function findByEqual (value: unknown): (schema: SchemaType) => boolean
|
83
|
-
|
84
|
-
export function toString (value: unknown): string
|
85
|
-
|
86
|
-
export function getObject (value: { properties: ObjectType /* object */ }, parentUri: string | undefined, uri: string | undefined): ObjectType
|
87
|
-
export function getArray (value: { items: ObjectType | ObjectLiteralType | ArrayType | ArrayLiteralType /* array or object */ }, parentUri: string | undefined, uri: string | undefined): ArrayType
|
88
|
-
export function getSchema (schema: SchemaType | ObjectType, parentUri: string | undefined, uri: string | undefined): ObjectType | ObjectLiteralType | ArrayType | ArrayLiteralType | SchemaType
|
89
|
-
|
90
|
-
export function transformValueIndexFor (array: ArrayType, value: unknown): string
|
91
|
-
export function transformEqualIndexFor (array: ArrayType, value: unknown): string
|
92
|
-
|
93
|
-
export function hasValue (values: ObjectType | ObjectLiteralType, uri: string | undefined, schema: SchemaType | undefined): boolean
|
94
|
-
export function getValue (values: ObjectType | ObjectLiteralType, uri: string | undefined, schema: SchemaType | undefined): string
|
95
|
-
|
96
|
-
export function getValueForEnum (v: string | number, schema: SchemaType): string
|
97
|
-
export function getIndexForEnum (values: ObjectType | ObjectLiteralType, parentUri: string | undefined, uri: string | undefined, schema: SchemaType | undefined): number
|
98
|
-
|
99
|
-
export function getValueForAnyOf (v: string | number, schema: SchemaType): string
|
100
|
-
export function getIndexForAnyOf (values: ObjectType | ObjectLiteralType, parentUri: string | undefined, uri: string | undefined, schema: SchemaType | undefined): number
|
101
|
-
|
102
|
-
export function getValueForOneOf (v: string | number, schema: SchemaType): string
|
103
|
-
export function getIndexForOneOf (values: ObjectType | ObjectLiteralType, parentUri: string | undefined, uri: string | undefined, schema: SchemaType | undefined): number
|
104
|
-
|
105
|
-
export function getElementsProps (params: ObjectType | ObjectLiteralType, uri: string | undefined): ObjectType | ObjectLiteralType
|
106
|
-
export function getElementsTitleProps (params: ObjectType | ObjectLiteralType, uri: string | undefined): ObjectType | ObjectLiteralType
|
107
|
-
export function getElementsDescriptionProps (params: ObjectType | ObjectLiteralType, uri: string | undefined): ObjectType | ObjectLiteralType
|
108
|
-
|
109
|
-
export function getElementsFieldPropsForEnum (params: ObjectType | ObjectLiteralType, uri: string | undefined): ObjectType | ObjectLiteralType
|
110
|
-
export function getElementsFieldPropsForOneOf (params: ObjectType | ObjectLiteralType, uri: string | undefined): ObjectType | ObjectLiteralType
|
111
|
-
export function getElementsFieldPropsForAnyOf (params: ObjectType | ObjectLiteralType, uri: string | undefined): ObjectType | ObjectLiteralType
|
112
|
-
export function getElementsFieldPropsForAllOf (params: ObjectType | ObjectLiteralType, uri: string | undefined): ObjectType | ObjectLiteralType
|
113
|
-
|
114
|
-
export function getElementsFieldProps (params: ObjectType | ObjectLiteralType, uri: string | undefined): ObjectType | ObjectLiteralType
|
115
|
-
export function getElementsFieldValue (values: ObjectType | ObjectLiteralType, uri: string | undefined, schema: SchemaType | undefined): { value: string } | ObjectLiteralType
|
116
|
-
|
117
|
-
export function hasEnum (schema: SchemaType | undefined): boolean
|
118
|
-
export function getEnum (schema: SchemaType | undefined): ObjectType | ObjectLiteralType | ArrayType | ArrayLiteralType
|
119
|
-
|
120
|
-
export function hasConst (schema: SchemaType | undefined): boolean
|
121
|
-
export function getConst (schema: SchemaType | undefined): unknown
|
122
|
-
|
123
|
-
export function hasDefault (schema: SchemaType | undefined): boolean
|
124
|
-
export function getDefault (schema: SchemaType | undefined): unknown
|
125
|
-
|
126
|
-
export function hasAnyOf (schema: SchemaType | undefined): boolean
|
127
|
-
export function getAnyOf (schema: SchemaType | undefined): ObjectType | ObjectLiteralType | ArrayType | ArrayLiteralType
|
128
|
-
|
129
|
-
export function hasOneOf (schema: SchemaType | undefined): boolean
|
130
|
-
export function getOneOf (schema: SchemaType | undefined): ObjectType | ObjectLiteralType | ArrayType | ArrayLiteralType
|
131
|
-
|
132
|
-
export function hasAllOf (schema: SchemaType | undefined): boolean
|
133
|
-
export function getAllOf (schema: SchemaType | undefined): ObjectType | ObjectLiteralType | ArrayType | ArrayLiteralType
|
134
|
-
|
135
|
-
export function getUri (uri: string | undefined, resource: string | undefined): string
|
136
|
-
|
137
|
-
export function normaliseUri (uri: string | undefined): string
|
138
|
-
|
139
|
-
export function getMin (schema: SchemaType | undefined): { min: number } | ObjectLiteralType
|
140
|
-
export function getMax (schema: SchemaType | undefined): { max: number } | ObjectLiteralType
|
141
|
-
|
142
|
-
export function getMinLength (schema: SchemaType | undefined): { minLength: number } | ObjectLiteralType
|
143
|
-
export function getMaxLength (schema: SchemaType | undefined): { maxLength: number } | ObjectLiteralType
|
144
|
-
|
145
|
-
export function getMinItems (schema: SchemaType | undefined): { minItems: number } | ObjectLiteralType
|
146
|
-
export function getMaxItems (schema: SchemaType | undefined): { maxItems: number } | ObjectLiteralType
|
147
|
-
|
148
|
-
export function getHasUniqueItems (schema: SchemaType | undefined): { hasUniqueItems: boolean } | ObjectLiteralType
|
149
|
-
|
150
|
-
export function getMinContains (schema: SchemaType | undefined): { minContains: number } | ObjectLiteralType
|
151
|
-
export function getMaxContains (schema: SchemaType | undefined): { maxContains: number } | ObjectLiteralType
|
152
|
-
|
153
|
-
export function getMinProperties (schema: SchemaType | undefined): { minProperties: number } | ObjectLiteralType
|
154
|
-
export function getMaxProperties (schema: SchemaType | undefined): { maxProperties: number } | ObjectLiteralType
|
155
|
-
|
156
|
-
export function getIsExclusiveMin (schema: SchemaType | undefined): { isExclusiveMin: boolean } | ObjectLiteralType
|
157
|
-
export function getIsExclusiveMax (schema: SchemaType | undefined): { isExclusiveMax: boolean } | ObjectLiteralType
|
158
|
-
|
159
|
-
export function getPattern (schema: SchemaType | undefined): { pattern: string } | ObjectLiteralType
|
160
|
-
|
161
|
-
export function getStep (schema: SchemaType | undefined): { step: number } | ObjectLiteralType
|
162
|
-
}
|
163
|
-
|
164
|
-
declare module 'shinkansen-transmission/transmission/from-document-to-hash' {
|
165
|
-
type ObjectLiteralType = Zashiki.ObjectLiteralType
|
166
|
-
type ObjectType = Zashiki.ObjectType
|
167
|
-
|
168
|
-
type SchemaType = Zashiki.SchemaType
|
169
|
-
|
170
|
-
type DocumentType = Zashiki.DocumentType
|
171
|
-
type HashType = Zashiki.HashType
|
172
|
-
|
173
|
-
export function transformArrayFor (document: DocumentType | undefined, schema: SchemaType | undefined, values: ObjectType | ObjectLiteralType | undefined, parentUri: string | undefined, uri: string | undefined): HashType | undefined
|
174
|
-
export function transformObjectFor (document: DocumentType | undefined, schema: SchemaType | undefined, values: ObjectType | ObjectLiteralType | undefined, parentUri: string | undefined, uri: string | undefined): HashType | undefined
|
175
|
-
|
176
|
-
export function transformArray (document: DocumentType | undefined, schema: SchemaType | undefined, values: ObjectType | ObjectLiteralType | undefined, parentUri: string | undefined, uri: string | undefined): HashType | undefined
|
177
|
-
export function transformObject (document: DocumentType | undefined, schema: SchemaType | undefined, values: ObjectType | ObjectLiteralType | undefined, parentUri: string | undefined, uri: string | undefined): HashType | undefined
|
178
|
-
|
179
|
-
export default function transform (document: DocumentType | undefined, schema: SchemaType | undefined, values: ObjectType | ObjectLiteralType | undefined, parentUri: string | undefined, uri: string | undefined): HashType | undefined
|
180
|
-
}
|
181
|
-
|
182
|
-
declare module 'shinkansen-transmission/transmission/from-hash-to-document' {
|
183
|
-
type ObjectLiteralType = Zashiki.ObjectLiteralType
|
184
|
-
type ObjectType = Zashiki.ObjectType
|
185
|
-
type ArrayLiteralType = Zashiki.ArrayLiteralType
|
186
|
-
type ArrayType = Zashiki.ArrayType
|
187
|
-
|
188
|
-
type SchemaType = Zashiki.SchemaType
|
189
|
-
|
190
|
-
type DocumentType = Zashiki.DocumentType
|
191
|
-
type HashType = Zashiki.HashType
|
192
|
-
|
193
|
-
export function transformValueFor (document: DocumentType, array: ArrayType | ArrayLiteralType | undefined): DocumentType
|
194
|
-
|
195
|
-
export function getArrayFor (hash: HashType, array: ArrayType | ArrayLiteralType | undefined, uri: string | undefined): ArrayType | ArrayLiteralType
|
196
|
-
|
197
|
-
export function transformArrayFor (hash: HashType, schema: SchemaType, parentUri: string | undefined, uri: string | undefined): ArrayType | ArrayLiteralType
|
198
|
-
export function transformObjectFor (hash: HashType, schema: SchemaType, parentUri: string | undefined, uri: string | undefined): ObjectType | ObjectLiteralType
|
199
|
-
|
200
|
-
export function transformItemsArrayFor (hash: HashType, items: ArrayType | ArrayLiteralType | undefined, parentUri: string | undefined, uri: string | undefined): ArrayType | ArrayLiteralType | undefined
|
201
|
-
export function transformItemsObjectFor (hash: HashType, items: ObjectType | ObjectLiteralType | undefined, parentUri: string | undefined, uri: string | undefined): ArrayType | ArrayLiteralType | undefined
|
202
|
-
|
203
|
-
export function transformNull (hash: HashType, schema: SchemaType, parentUri: string, uri: string): null | undefined
|
204
|
-
export function transformBoolean (hash: HashType, schema: SchemaType, parentUri: string, uri: string): boolean | undefined
|
205
|
-
export function transformObject (hash: HashType, schema: SchemaType, parentUri: string, uri: string): ObjectType | ObjectLiteralType
|
206
|
-
export function transformArray (hash: HashType, schema: SchemaType, parentUri: string, uri: string): ArrayType | ArrayLiteralType
|
207
|
-
export function transformNumber (hash: HashType, schema: SchemaType, parentUri: string, uri: string): number | undefined
|
208
|
-
export function transformString (hash: HashType, schema: SchemaType, parentUri: string, uri: string): string | undefined
|
209
|
-
|
210
|
-
export default function transform (hash: HashType | undefined, rootSchema: SchemaType | undefined, parentUri: string | undefined, uri: string | undefined): DocumentType | undefined
|
211
|
-
}
|
212
|
-
|
213
|
-
declare module 'shinkansen-transmission/transmission/to-zashiki' {
|
214
|
-
type SchemaType = Zashiki.SchemaType
|
215
|
-
|
216
|
-
type ObjectLiteralType = Zashiki.ObjectLiteralType
|
217
|
-
type ObjectType = Zashiki.ObjectType
|
218
|
-
|
219
|
-
type ZashikiType = Zashiki.ZashikiType
|
220
|
-
|
221
|
-
export default function toZashiki (rootSchema: SchemaType | undefined, values: ObjectType | ObjectLiteralType | undefined, params: ObjectType | ObjectLiteralType | undefined): ZashikiType | undefined
|
222
|
-
}
|
223
|
-
|
224
44
|
declare module 'shinkansen-transmission/transmission' {
|
225
45
|
export * as common from 'shinkansen-transmission/transmission/common'
|
226
46
|
export { default as fromDocumentToHash } from 'shinkansen-transmission/transmission/from-document-to-hash'
|
@@ -0,0 +1,119 @@
|
|
1
|
+
declare module 'shinkansen-transmission/transmission/common' {
|
2
|
+
type ObjectLiteralType = Zashiki.ObjectLiteralType
|
3
|
+
type ObjectType = Zashiki.ObjectType
|
4
|
+
type ArrayLiteralType = Zashiki.ArrayLiteralType
|
5
|
+
type ArrayType = Zashiki.ArrayType
|
6
|
+
|
7
|
+
type SchemaType = Zashiki.SchemaType
|
8
|
+
|
9
|
+
export function isObject (v: unknown): boolean
|
10
|
+
export function isArray (v: unknown): boolean
|
11
|
+
export function isPrimitive (v: unknown): boolean
|
12
|
+
export function isSchema (v: SchemaType | undefined): boolean
|
13
|
+
export function isStringSchema (schema: SchemaType | undefined): boolean
|
14
|
+
export function isNumberSchema (schema: SchemaType | undefined): boolean
|
15
|
+
export function isArraySchema (schema: SchemaType | undefined): boolean
|
16
|
+
export function isObjectSchema (schema: SchemaType | undefined): boolean
|
17
|
+
export function isBooleanSchema (schema: SchemaType | undefined): boolean
|
18
|
+
export function isNullSchema (schema: SchemaType | undefined): boolean
|
19
|
+
|
20
|
+
export function getTitle (schema: SchemaType | undefined): { title: string } | ObjectLiteralType
|
21
|
+
export function getDescription (schema: SchemaType | undefined): { description: string } | ObjectLiteralType
|
22
|
+
export function getIsReadOnly (schema: SchemaType | undefined): { readOnly: boolean } | ObjectLiteralType
|
23
|
+
export function getIsWriteOnly (schema: SchemaType | undefined): { writeOnly: boolean } | ObjectLiteralType
|
24
|
+
|
25
|
+
export function getSelectedItems (values: ObjectType | ObjectLiteralType, uri: string | undefined): ArrayType
|
26
|
+
|
27
|
+
export function isParentUri (parentUri: string | undefined, uri: string | undefined): boolean
|
28
|
+
|
29
|
+
export function getMetaProps (params: ObjectType | ObjectLiteralType, uri: string | undefined): ObjectType
|
30
|
+
export function getMetaDefaultValue (schema: SchemaType | undefined): { defaultValue: string } | ObjectLiteralType
|
31
|
+
export function hasMetaValue (values: ObjectType | ObjectLiteralType, uri: string | undefined, schema: SchemaType | undefined): boolean
|
32
|
+
export function getMetaValue (values: ObjectType | ObjectLiteralType, uri: string | undefined, schema: SchemaType | undefined): { value: string } | ObjectLiteralType
|
33
|
+
|
34
|
+
export function transformValue (schema: SchemaType): SchemaType | unknown
|
35
|
+
|
36
|
+
export function findByKey (parentUri: string | undefined, uri: string | undefined): (key: string) => boolean
|
37
|
+
export function findByIndex (parentUri: string | undefined, uri: string | undefined): (schema: SchemaType, index: number) => boolean
|
38
|
+
export function findByValue (value: unknown): (schema: SchemaType) => boolean
|
39
|
+
export function findByEqual (value: unknown): (schema: SchemaType) => boolean
|
40
|
+
|
41
|
+
export function toString (value: unknown): string
|
42
|
+
|
43
|
+
export function getObject (value: { properties: ObjectType /* object */ }, parentUri: string | undefined, uri: string | undefined): ObjectType
|
44
|
+
export function getArray (value: { items: ObjectType | ObjectLiteralType | ArrayType | ArrayLiteralType /* array or object */ }, parentUri: string | undefined, uri: string | undefined): ArrayType
|
45
|
+
export function getSchema (schema: SchemaType | ObjectType, parentUri: string | undefined, uri: string | undefined): ObjectType | ObjectLiteralType | ArrayType | ArrayLiteralType | SchemaType
|
46
|
+
|
47
|
+
export function transformValueIndexFor (array: ArrayType, value: unknown): string
|
48
|
+
export function transformEqualIndexFor (array: ArrayType, value: unknown): string
|
49
|
+
|
50
|
+
export function hasValue (values: ObjectType | ObjectLiteralType, uri: string | undefined, schema: SchemaType | undefined): boolean
|
51
|
+
export function getValue (values: ObjectType | ObjectLiteralType, uri: string | undefined, schema: SchemaType | undefined): string
|
52
|
+
|
53
|
+
export function getValueForEnum (v: string | number, schema: SchemaType): string
|
54
|
+
export function getIndexForEnum (values: ObjectType | ObjectLiteralType, parentUri: string | undefined, uri: string | undefined, schema: SchemaType | undefined): number
|
55
|
+
|
56
|
+
export function getValueForAnyOf (v: string | number, schema: SchemaType): string
|
57
|
+
export function getIndexForAnyOf (values: ObjectType | ObjectLiteralType, parentUri: string | undefined, uri: string | undefined, schema: SchemaType | undefined): number
|
58
|
+
|
59
|
+
export function getValueForOneOf (v: string | number, schema: SchemaType): string
|
60
|
+
export function getIndexForOneOf (values: ObjectType | ObjectLiteralType, parentUri: string | undefined, uri: string | undefined, schema: SchemaType | undefined): number
|
61
|
+
|
62
|
+
export function getElementsProps (params: ObjectType | ObjectLiteralType, uri: string | undefined): ObjectType | ObjectLiteralType
|
63
|
+
export function getElementsTitleProps (params: ObjectType | ObjectLiteralType, uri: string | undefined): ObjectType | ObjectLiteralType
|
64
|
+
export function getElementsDescriptionProps (params: ObjectType | ObjectLiteralType, uri: string | undefined): ObjectType | ObjectLiteralType
|
65
|
+
|
66
|
+
export function getElementsFieldPropsForEnum (params: ObjectType | ObjectLiteralType, uri: string | undefined): ObjectType | ObjectLiteralType
|
67
|
+
export function getElementsFieldPropsForOneOf (params: ObjectType | ObjectLiteralType, uri: string | undefined): ObjectType | ObjectLiteralType
|
68
|
+
export function getElementsFieldPropsForAnyOf (params: ObjectType | ObjectLiteralType, uri: string | undefined): ObjectType | ObjectLiteralType
|
69
|
+
export function getElementsFieldPropsForAllOf (params: ObjectType | ObjectLiteralType, uri: string | undefined): ObjectType | ObjectLiteralType
|
70
|
+
|
71
|
+
export function getElementsFieldProps (params: ObjectType | ObjectLiteralType, uri: string | undefined): ObjectType | ObjectLiteralType
|
72
|
+
export function getElementsFieldValue (values: ObjectType | ObjectLiteralType, uri: string | undefined, schema: SchemaType | undefined): { value: string } | ObjectLiteralType
|
73
|
+
|
74
|
+
export function hasEnum (schema: SchemaType | undefined): boolean
|
75
|
+
export function getEnum (schema: SchemaType | undefined): ObjectType | ObjectLiteralType | ArrayType | ArrayLiteralType
|
76
|
+
|
77
|
+
export function hasConst (schema: SchemaType | undefined): boolean
|
78
|
+
export function getConst (schema: SchemaType | undefined): unknown
|
79
|
+
|
80
|
+
export function hasDefault (schema: SchemaType | undefined): boolean
|
81
|
+
export function getDefault (schema: SchemaType | undefined): unknown
|
82
|
+
|
83
|
+
export function hasAnyOf (schema: SchemaType | undefined): boolean
|
84
|
+
export function getAnyOf (schema: SchemaType | undefined): ObjectType | ObjectLiteralType | ArrayType | ArrayLiteralType
|
85
|
+
|
86
|
+
export function hasOneOf (schema: SchemaType | undefined): boolean
|
87
|
+
export function getOneOf (schema: SchemaType | undefined): ObjectType | ObjectLiteralType | ArrayType | ArrayLiteralType
|
88
|
+
|
89
|
+
export function hasAllOf (schema: SchemaType | undefined): boolean
|
90
|
+
export function getAllOf (schema: SchemaType | undefined): ObjectType | ObjectLiteralType | ArrayType | ArrayLiteralType
|
91
|
+
|
92
|
+
export function getUri (uri: string | undefined, resource: string | undefined): string
|
93
|
+
|
94
|
+
export function normaliseUri (uri: string | undefined): string
|
95
|
+
|
96
|
+
export function getMin (schema: SchemaType | undefined): { min: number } | ObjectLiteralType
|
97
|
+
export function getMax (schema: SchemaType | undefined): { max: number } | ObjectLiteralType
|
98
|
+
|
99
|
+
export function getMinLength (schema: SchemaType | undefined): { minLength: number } | ObjectLiteralType
|
100
|
+
export function getMaxLength (schema: SchemaType | undefined): { maxLength: number } | ObjectLiteralType
|
101
|
+
|
102
|
+
export function getMinItems (schema: SchemaType | undefined): { minItems: number } | ObjectLiteralType
|
103
|
+
export function getMaxItems (schema: SchemaType | undefined): { maxItems: number } | ObjectLiteralType
|
104
|
+
|
105
|
+
export function getHasUniqueItems (schema: SchemaType | undefined): { hasUniqueItems: boolean } | ObjectLiteralType
|
106
|
+
|
107
|
+
export function getMinContains (schema: SchemaType | undefined): { minContains: number } | ObjectLiteralType
|
108
|
+
export function getMaxContains (schema: SchemaType | undefined): { maxContains: number } | ObjectLiteralType
|
109
|
+
|
110
|
+
export function getMinProperties (schema: SchemaType | undefined): { minProperties: number } | ObjectLiteralType
|
111
|
+
export function getMaxProperties (schema: SchemaType | undefined): { maxProperties: number } | ObjectLiteralType
|
112
|
+
|
113
|
+
export function getIsExclusiveMin (schema: SchemaType | undefined): { isExclusiveMin: boolean } | ObjectLiteralType
|
114
|
+
export function getIsExclusiveMax (schema: SchemaType | undefined): { isExclusiveMax: boolean } | ObjectLiteralType
|
115
|
+
|
116
|
+
export function getPattern (schema: SchemaType | undefined): { pattern: string } | ObjectLiteralType
|
117
|
+
|
118
|
+
export function getStep (schema: SchemaType | undefined): { step: number } | ObjectLiteralType
|
119
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
declare module 'shinkansen-transmission/transmission/from-document-to-hash' {
|
2
|
+
type ObjectLiteralType = Zashiki.ObjectLiteralType
|
3
|
+
type ObjectType = Zashiki.ObjectType
|
4
|
+
|
5
|
+
type SchemaType = Zashiki.SchemaType
|
6
|
+
|
7
|
+
type DocumentType = Zashiki.DocumentType
|
8
|
+
type HashType = Zashiki.HashType
|
9
|
+
|
10
|
+
export function transformArrayFor (document: DocumentType | undefined, schema: SchemaType | undefined, values: ObjectType | ObjectLiteralType | undefined, parentUri: string | undefined, uri: string | undefined): HashType | undefined
|
11
|
+
export function transformObjectFor (document: DocumentType | undefined, schema: SchemaType | undefined, values: ObjectType | ObjectLiteralType | undefined, parentUri: string | undefined, uri: string | undefined): HashType | undefined
|
12
|
+
|
13
|
+
export function transformArray (document: DocumentType | undefined, schema: SchemaType | undefined, values: ObjectType | ObjectLiteralType | undefined, parentUri: string | undefined, uri: string | undefined): HashType | undefined
|
14
|
+
export function transformObject (document: DocumentType | undefined, schema: SchemaType | undefined, values: ObjectType | ObjectLiteralType | undefined, parentUri: string | undefined, uri: string | undefined): HashType | undefined
|
15
|
+
|
16
|
+
export default function transform (document: DocumentType | undefined, schema: SchemaType | undefined, values: ObjectType | ObjectLiteralType | undefined, parentUri: string | undefined, uri: string | undefined): HashType | undefined
|
17
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
declare module 'shinkansen-transmission/transmission/from-hash-to-document' {
|
2
|
+
type ObjectLiteralType = Zashiki.ObjectLiteralType
|
3
|
+
type ObjectType = Zashiki.ObjectType
|
4
|
+
type ArrayLiteralType = Zashiki.ArrayLiteralType
|
5
|
+
type ArrayType = Zashiki.ArrayType
|
6
|
+
|
7
|
+
type SchemaType = Zashiki.SchemaType
|
8
|
+
|
9
|
+
type DocumentType = Zashiki.DocumentType
|
10
|
+
type HashType = Zashiki.HashType
|
11
|
+
|
12
|
+
export function transformValueFor (document: DocumentType, array: ArrayType | ArrayLiteralType | undefined): DocumentType
|
13
|
+
|
14
|
+
export function getArrayFor (hash: HashType, array: ArrayType | ArrayLiteralType | undefined, uri: string | undefined): ArrayType | ArrayLiteralType
|
15
|
+
|
16
|
+
export function transformArrayFor (hash: HashType, schema: SchemaType, parentUri: string | undefined, uri: string | undefined): ArrayType | ArrayLiteralType
|
17
|
+
export function transformObjectFor (hash: HashType, schema: SchemaType, parentUri: string | undefined, uri: string | undefined): ObjectType | ObjectLiteralType
|
18
|
+
|
19
|
+
export function transformItemsArrayFor (hash: HashType, items: ArrayType | ArrayLiteralType | undefined, parentUri: string | undefined, uri: string | undefined): ArrayType | ArrayLiteralType | undefined
|
20
|
+
export function transformItemsObjectFor (hash: HashType, items: ObjectType | ObjectLiteralType | undefined, parentUri: string | undefined, uri: string | undefined): ArrayType | ArrayLiteralType | undefined
|
21
|
+
|
22
|
+
export function transformNull (hash: HashType, schema: SchemaType, parentUri: string, uri: string): null | undefined
|
23
|
+
export function transformBoolean (hash: HashType, schema: SchemaType, parentUri: string, uri: string): boolean | undefined
|
24
|
+
export function transformObject (hash: HashType, schema: SchemaType, parentUri: string, uri: string): ObjectType | ObjectLiteralType
|
25
|
+
export function transformArray (hash: HashType, schema: SchemaType, parentUri: string, uri: string): ArrayType | ArrayLiteralType
|
26
|
+
export function transformNumber (hash: HashType, schema: SchemaType, parentUri: string, uri: string): number | undefined
|
27
|
+
export function transformString (hash: HashType, schema: SchemaType, parentUri: string, uri: string): string | undefined
|
28
|
+
|
29
|
+
export default function transform (hash: HashType | undefined, rootSchema: SchemaType | undefined, parentUri: string | undefined, uri: string | undefined): DocumentType | undefined
|
30
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
declare module 'shinkansen-transmission/transmission/to-zashiki' {
|
2
|
+
type SchemaType = Zashiki.SchemaType
|
3
|
+
|
4
|
+
type ObjectLiteralType = Zashiki.ObjectLiteralType
|
5
|
+
type ObjectType = Zashiki.ObjectType
|
6
|
+
|
7
|
+
type ZashikiType = Zashiki.ZashikiType
|
8
|
+
|
9
|
+
export default function toZashiki (rootSchema: SchemaType | undefined, values: ObjectType | ObjectLiteralType | undefined, params: ObjectType | ObjectLiteralType | undefined): ZashikiType | undefined
|
10
|
+
}
|