@unito/integration-api 0.43.14 → 0.44.0
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/dist/schemas/fieldSchema.json +12 -13
- package/dist/src/types.d.ts +19 -2
- package/package.json +1 -1
|
@@ -54,11 +54,16 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"referencePath": {
|
|
57
|
+
"deprecated": true,
|
|
57
58
|
"type": "string",
|
|
58
59
|
"format": "uri-reference",
|
|
59
60
|
"pattern": "^\/.*$"
|
|
60
61
|
},
|
|
62
|
+
"reference": {
|
|
63
|
+
"$ref": "https://unito.io/integration_api/relation.schema.json"
|
|
64
|
+
},
|
|
61
65
|
"searchable": {
|
|
66
|
+
"deprecated": true,
|
|
62
67
|
"type": "boolean"
|
|
63
68
|
},
|
|
64
69
|
"info": {
|
|
@@ -73,6 +78,13 @@
|
|
|
73
78
|
"nullable": {
|
|
74
79
|
"type": "boolean",
|
|
75
80
|
"default": true
|
|
81
|
+
},
|
|
82
|
+
"relations": {
|
|
83
|
+
"deprecated": true,
|
|
84
|
+
"type": "array",
|
|
85
|
+
"items": {
|
|
86
|
+
"$ref": "https://unito.io/integration_api/relationSummary.schema.json"
|
|
87
|
+
}
|
|
76
88
|
}
|
|
77
89
|
}
|
|
78
90
|
},
|
|
@@ -91,19 +103,6 @@
|
|
|
91
103
|
}
|
|
92
104
|
}
|
|
93
105
|
},
|
|
94
|
-
{
|
|
95
|
-
"if": {
|
|
96
|
-
"type": "object",
|
|
97
|
-
"properties": {
|
|
98
|
-
"type": { "const": "reference" }
|
|
99
|
-
},
|
|
100
|
-
"required": ["type"]
|
|
101
|
-
},
|
|
102
|
-
"then": {
|
|
103
|
-
"type": "object",
|
|
104
|
-
"required": ["fields", "referencePath"]
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
106
|
{
|
|
108
107
|
"if": {
|
|
109
108
|
"type": "object",
|
package/dist/src/types.d.ts
CHANGED
|
@@ -105,7 +105,10 @@ export interface BlobFieldSchema extends AbstractFieldSchema {
|
|
|
105
105
|
*/
|
|
106
106
|
type: FieldValueType.BLOB;
|
|
107
107
|
}
|
|
108
|
-
|
|
108
|
+
/**
|
|
109
|
+
* @deprecated
|
|
110
|
+
*/
|
|
111
|
+
export interface DeprecatedReferenceFieldSchema extends AbstractFieldSchema {
|
|
109
112
|
/**
|
|
110
113
|
* The type of the field.
|
|
111
114
|
*/
|
|
@@ -122,6 +125,20 @@ export interface ReferenceFieldSchema extends AbstractFieldSchema {
|
|
|
122
125
|
* Describe the schema of the referenced collection.
|
|
123
126
|
*/
|
|
124
127
|
fields: FieldSchema[];
|
|
128
|
+
/**
|
|
129
|
+
* Summaries of the relations expected to be found on the referenced items.
|
|
130
|
+
*/
|
|
131
|
+
relations?: RelationSummary[];
|
|
132
|
+
}
|
|
133
|
+
export interface ReferenceFieldSchema extends AbstractFieldSchema {
|
|
134
|
+
/**
|
|
135
|
+
* The type of the field.
|
|
136
|
+
*/
|
|
137
|
+
type: FieldValueType.REFERENCE;
|
|
138
|
+
/**
|
|
139
|
+
* Describe the referenced collection.
|
|
140
|
+
*/
|
|
141
|
+
reference: Relation;
|
|
125
142
|
}
|
|
126
143
|
export interface DatetimeRangeFieldSchema extends AbstractFieldSchema {
|
|
127
144
|
/**
|
|
@@ -168,7 +185,7 @@ export interface ObjectFieldSchema extends AbstractFieldSchema {
|
|
|
168
185
|
/**
|
|
169
186
|
* A FieldSchema describes the shape of a field.
|
|
170
187
|
*/
|
|
171
|
-
export type FieldSchema = BasicFieldSchema | BlobFieldSchema | ReferenceFieldSchema | ObjectFieldSchema | DateRangeFieldSchema | DatetimeRangeFieldSchema;
|
|
188
|
+
export type FieldSchema = BasicFieldSchema | BlobFieldSchema | DeprecatedReferenceFieldSchema | ReferenceFieldSchema | ObjectFieldSchema | DateRangeFieldSchema | DatetimeRangeFieldSchema;
|
|
172
189
|
/**
|
|
173
190
|
* A FieldValueType determines the type of an item's value.
|
|
174
191
|
* The type represents a unique scalar value such as a string or an integer.
|