@unito/integration-api 0.43.6 → 0.43.8

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.
@@ -58,6 +58,9 @@
58
58
  "format": "uri-reference",
59
59
  "pattern": "^\/.*$"
60
60
  },
61
+ "searchable": {
62
+ "type": "boolean"
63
+ },
61
64
  "info": {
62
65
  "type": "string"
63
66
  },
@@ -108,6 +108,10 @@ export interface ReferenceFieldSchema extends AbstractFieldSchema {
108
108
  * Specify the source collection.
109
109
  */
110
110
  referencePath: string;
111
+ /**
112
+ * Specify if the source collection is searchable.
113
+ */
114
+ searchable?: boolean;
111
115
  /**
112
116
  * Describe the schema of the referenced collection.
113
117
  */
@@ -327,6 +331,21 @@ export interface RelationSchema {
327
331
  */
328
332
  relations?: RelationSummary[];
329
333
  }
334
+ /**
335
+ * A CreateItemRequestPayload describes the shape of a request on an item creation endpoint.
336
+ */
337
+ export type CreateItemRequestPayload = Record<string, unknown>;
338
+ /**
339
+ * A UpdateItemRequestPayload describes the shape of a request on an item update endpoint.
340
+ */
341
+ export type UpdateItemRequestPayload = CreateItemRequestPayload & {
342
+ __meta?: {
343
+ additionalField: {
344
+ relationName: string;
345
+ field: BasicFieldSchema;
346
+ };
347
+ };
348
+ };
330
349
  /**
331
350
  * A Request Schema describes how a path should be accessed.
332
351
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unito/integration-api",
3
- "version": "0.43.6",
3
+ "version": "0.43.8",
4
4
  "description": "The Unito Integration API",
5
5
  "type": "module",
6
6
  "types": "./dist/src/index.d.ts",