@epilot/entity-client 3.0.5 → 3.0.6
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/definition.js +1 -1
- package/dist/openapi.d.ts +176 -71
- package/dist/openapi.json +67 -17
- package/package-lock.json +18779 -0
- package/package.json +2 -2
package/dist/openapi.json
CHANGED
|
@@ -32,7 +32,18 @@
|
|
|
32
32
|
"get": {
|
|
33
33
|
"operationId": "listSchemas",
|
|
34
34
|
"summary": "listSchemas",
|
|
35
|
-
"description": "
|
|
35
|
+
"description": "Get the latest version of local schema",
|
|
36
|
+
"parameters": [
|
|
37
|
+
{
|
|
38
|
+
"in": "query",
|
|
39
|
+
"name": "unpublished",
|
|
40
|
+
"description": "Includes the unpublished version of unpublished schema",
|
|
41
|
+
"schema": {
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"default": false
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
],
|
|
36
47
|
"tags": [
|
|
37
48
|
"Schemas"
|
|
38
49
|
],
|
|
@@ -92,7 +103,7 @@
|
|
|
92
103
|
"get": {
|
|
93
104
|
"operationId": "getSchemaVersions",
|
|
94
105
|
"summary": "getSchemaVersions",
|
|
95
|
-
"description": "Get all versions of this schema",
|
|
106
|
+
"description": "Get all versions of this schema ordered by the latest versions including drafts.",
|
|
96
107
|
"tags": [
|
|
97
108
|
"Schemas"
|
|
98
109
|
],
|
|
@@ -114,7 +125,13 @@
|
|
|
114
125
|
"schema": {
|
|
115
126
|
"type": "object",
|
|
116
127
|
"properties": {
|
|
117
|
-
"
|
|
128
|
+
"versions": {
|
|
129
|
+
"type": "array",
|
|
130
|
+
"items": {
|
|
131
|
+
"$ref": "#/components/schemas/EntitySchemaItem"
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"drafts": {
|
|
118
135
|
"type": "array",
|
|
119
136
|
"items": {
|
|
120
137
|
"$ref": "#/components/schemas/EntitySchemaItem"
|
|
@@ -132,6 +149,7 @@
|
|
|
132
149
|
"get": {
|
|
133
150
|
"operationId": "getSchema",
|
|
134
151
|
"summary": "getSchema",
|
|
152
|
+
"description": "By default gets the latest version of the Schema and to get the specific version of schema pass the id.",
|
|
135
153
|
"tags": [
|
|
136
154
|
"Schemas"
|
|
137
155
|
],
|
|
@@ -148,7 +166,7 @@
|
|
|
148
166
|
"in": "query",
|
|
149
167
|
"name": "id",
|
|
150
168
|
"schema": {
|
|
151
|
-
"
|
|
169
|
+
"$ref": "#/components/schemas/SchemaId"
|
|
152
170
|
}
|
|
153
171
|
}
|
|
154
172
|
],
|
|
@@ -166,9 +184,9 @@
|
|
|
166
184
|
}
|
|
167
185
|
},
|
|
168
186
|
"put": {
|
|
169
|
-
"operationId": "
|
|
170
|
-
"summary": "
|
|
171
|
-
"description": "Create new version of the schema",
|
|
187
|
+
"operationId": "createNewSchemaVersion",
|
|
188
|
+
"summary": "createNewSchemaVersion",
|
|
189
|
+
"description": "Create new version of the schema and default draft is false.",
|
|
172
190
|
"tags": [
|
|
173
191
|
"Schemas"
|
|
174
192
|
],
|
|
@@ -213,8 +231,9 @@
|
|
|
213
231
|
}
|
|
214
232
|
},
|
|
215
233
|
"delete": {
|
|
216
|
-
"operationId": "
|
|
217
|
-
"summary": "
|
|
234
|
+
"operationId": "deleteSchemaById",
|
|
235
|
+
"summary": "deleteSchemaById",
|
|
236
|
+
"description": "Delete schema by Id",
|
|
218
237
|
"tags": [
|
|
219
238
|
"Schemas"
|
|
220
239
|
],
|
|
@@ -230,8 +249,9 @@
|
|
|
230
249
|
{
|
|
231
250
|
"in": "query",
|
|
232
251
|
"name": "id",
|
|
252
|
+
"required": true,
|
|
233
253
|
"schema": {
|
|
234
|
-
"
|
|
254
|
+
"$ref": "#/components/schemas/SchemaId"
|
|
235
255
|
}
|
|
236
256
|
}
|
|
237
257
|
],
|
|
@@ -269,7 +289,7 @@
|
|
|
269
289
|
}
|
|
270
290
|
},
|
|
271
291
|
"text/csv": {
|
|
272
|
-
"
|
|
292
|
+
"schema": {
|
|
273
293
|
"type": "string"
|
|
274
294
|
}
|
|
275
295
|
}
|
|
@@ -1269,6 +1289,14 @@
|
|
|
1269
1289
|
"type": "string",
|
|
1270
1290
|
"example": "Contacts"
|
|
1271
1291
|
},
|
|
1292
|
+
"published": {
|
|
1293
|
+
"type": "boolean",
|
|
1294
|
+
"example": false
|
|
1295
|
+
},
|
|
1296
|
+
"draft": {
|
|
1297
|
+
"type": "boolean",
|
|
1298
|
+
"example": false
|
|
1299
|
+
},
|
|
1272
1300
|
"icon": {
|
|
1273
1301
|
"type": "string",
|
|
1274
1302
|
"example": "person"
|
|
@@ -1447,6 +1475,23 @@
|
|
|
1447
1475
|
"properties": {
|
|
1448
1476
|
"id": {
|
|
1449
1477
|
"$ref": "#/components/schemas/SchemaId"
|
|
1478
|
+
},
|
|
1479
|
+
"created_at": {
|
|
1480
|
+
"type": "string"
|
|
1481
|
+
},
|
|
1482
|
+
"updated_at": {
|
|
1483
|
+
"type": "string"
|
|
1484
|
+
},
|
|
1485
|
+
"source": {
|
|
1486
|
+
"type": "object",
|
|
1487
|
+
"properties": {
|
|
1488
|
+
"id": {
|
|
1489
|
+
"type": "string"
|
|
1490
|
+
},
|
|
1491
|
+
"type": {
|
|
1492
|
+
"type": "string"
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
1450
1495
|
}
|
|
1451
1496
|
}
|
|
1452
1497
|
},
|
|
@@ -1613,7 +1658,8 @@
|
|
|
1613
1658
|
"type": "boolean",
|
|
1614
1659
|
"default": false
|
|
1615
1660
|
},
|
|
1616
|
-
"
|
|
1661
|
+
"protected": {
|
|
1662
|
+
"description": "Setting to `true` prevents the attribute from being modified / deleted",
|
|
1617
1663
|
"type": "boolean",
|
|
1618
1664
|
"default": true
|
|
1619
1665
|
}
|
|
@@ -1781,6 +1827,10 @@
|
|
|
1781
1827
|
}
|
|
1782
1828
|
]
|
|
1783
1829
|
}
|
|
1830
|
+
},
|
|
1831
|
+
"allow_any": {
|
|
1832
|
+
"type": "boolean",
|
|
1833
|
+
"description": "Allow arbitrary input values in addition to provided options"
|
|
1784
1834
|
}
|
|
1785
1835
|
}
|
|
1786
1836
|
}
|
|
@@ -1822,8 +1872,7 @@
|
|
|
1822
1872
|
}
|
|
1823
1873
|
},
|
|
1824
1874
|
"required": [
|
|
1825
|
-
"type"
|
|
1826
|
-
"attachments"
|
|
1875
|
+
"type"
|
|
1827
1876
|
]
|
|
1828
1877
|
}
|
|
1829
1878
|
]
|
|
@@ -1920,8 +1969,8 @@
|
|
|
1920
1969
|
"relation_type": {
|
|
1921
1970
|
"type": "string",
|
|
1922
1971
|
"enum": [
|
|
1923
|
-
"
|
|
1924
|
-
"
|
|
1972
|
+
"has_many",
|
|
1973
|
+
"has_one"
|
|
1925
1974
|
]
|
|
1926
1975
|
},
|
|
1927
1976
|
"delete_mode": {
|
|
@@ -2065,7 +2114,8 @@
|
|
|
2065
2114
|
"phone",
|
|
2066
2115
|
"email",
|
|
2067
2116
|
"address",
|
|
2068
|
-
"relation"
|
|
2117
|
+
"relation",
|
|
2118
|
+
"payment"
|
|
2069
2119
|
]
|
|
2070
2120
|
},
|
|
2071
2121
|
"enable_relation_picker": {
|