@unito/integration-api 0.44.3 → 0.45.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 +13 -17
- package/dist/src/types.d.ts +1 -26
- package/package.json +1 -1
|
@@ -53,19 +53,9 @@
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
|
-
"referencePath": {
|
|
57
|
-
"deprecated": true,
|
|
58
|
-
"type": "string",
|
|
59
|
-
"format": "uri-reference",
|
|
60
|
-
"pattern": "^\/.*$"
|
|
61
|
-
},
|
|
62
56
|
"reference": {
|
|
63
57
|
"$ref": "https://unito.io/integration_api/relation.schema.json"
|
|
64
58
|
},
|
|
65
|
-
"searchable": {
|
|
66
|
-
"deprecated": true,
|
|
67
|
-
"type": "boolean"
|
|
68
|
-
},
|
|
69
59
|
"info": {
|
|
70
60
|
"type": "string"
|
|
71
61
|
},
|
|
@@ -78,13 +68,6 @@
|
|
|
78
68
|
"nullable": {
|
|
79
69
|
"type": "boolean",
|
|
80
70
|
"default": true
|
|
81
|
-
},
|
|
82
|
-
"relations": {
|
|
83
|
-
"deprecated": true,
|
|
84
|
-
"type": "array",
|
|
85
|
-
"items": {
|
|
86
|
-
"$ref": "https://unito.io/integration_api/relationSummary.schema.json"
|
|
87
|
-
}
|
|
88
71
|
}
|
|
89
72
|
}
|
|
90
73
|
},
|
|
@@ -103,6 +86,19 @@
|
|
|
103
86
|
}
|
|
104
87
|
}
|
|
105
88
|
},
|
|
89
|
+
{
|
|
90
|
+
"if": {
|
|
91
|
+
"type": "object",
|
|
92
|
+
"properties": {
|
|
93
|
+
"type": { "const": "reference" }
|
|
94
|
+
},
|
|
95
|
+
"required": ["type"]
|
|
96
|
+
},
|
|
97
|
+
"then": {
|
|
98
|
+
"type": "object",
|
|
99
|
+
"required": ["reference"]
|
|
100
|
+
}
|
|
101
|
+
},
|
|
106
102
|
{
|
|
107
103
|
"if": {
|
|
108
104
|
"type": "object",
|
package/dist/src/types.d.ts
CHANGED
|
@@ -107,31 +107,6 @@ export interface BlobFieldSchema extends AbstractFieldSchema {
|
|
|
107
107
|
*/
|
|
108
108
|
type: FieldValueType.BLOB;
|
|
109
109
|
}
|
|
110
|
-
/**
|
|
111
|
-
* @deprecated
|
|
112
|
-
*/
|
|
113
|
-
export interface DeprecatedReferenceFieldSchema extends AbstractFieldSchema {
|
|
114
|
-
/**
|
|
115
|
-
* The type of the field.
|
|
116
|
-
*/
|
|
117
|
-
type: FieldValueType.REFERENCE;
|
|
118
|
-
/**
|
|
119
|
-
* Specify the source collection.
|
|
120
|
-
*/
|
|
121
|
-
referencePath: string;
|
|
122
|
-
/**
|
|
123
|
-
* Specify if the source collection is searchable.
|
|
124
|
-
*/
|
|
125
|
-
searchable?: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Describe the schema of the referenced collection.
|
|
128
|
-
*/
|
|
129
|
-
fields: FieldSchema[];
|
|
130
|
-
/**
|
|
131
|
-
* Summaries of the relations expected to be found on the referenced items.
|
|
132
|
-
*/
|
|
133
|
-
relations?: RelationSummary[];
|
|
134
|
-
}
|
|
135
110
|
export interface ReferenceFieldSchema extends AbstractFieldSchema {
|
|
136
111
|
/**
|
|
137
112
|
* The type of the field.
|
|
@@ -187,7 +162,7 @@ export interface ObjectFieldSchema extends AbstractFieldSchema {
|
|
|
187
162
|
/**
|
|
188
163
|
* A FieldSchema describes the shape of a field.
|
|
189
164
|
*/
|
|
190
|
-
export type FieldSchema = BasicFieldSchema | BlobFieldSchema |
|
|
165
|
+
export type FieldSchema = BasicFieldSchema | BlobFieldSchema | ReferenceFieldSchema | ObjectFieldSchema | DateRangeFieldSchema | DatetimeRangeFieldSchema;
|
|
191
166
|
/**
|
|
192
167
|
* A FieldValueType determines the type of an item's value.
|
|
193
168
|
* The type represents a unique scalar value such as a string or an integer.
|