@unito/integration-api 0.43.5 → 0.43.7
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/src/types.d.ts
CHANGED
|
@@ -314,6 +314,10 @@ export interface RelationSchema {
|
|
|
314
314
|
* Can we delete items?
|
|
315
315
|
*/
|
|
316
316
|
canDeleteItem?: boolean;
|
|
317
|
+
/**
|
|
318
|
+
* Can we add fields to the schema?
|
|
319
|
+
*/
|
|
320
|
+
canAddFields?: boolean;
|
|
317
321
|
/**
|
|
318
322
|
* The shape of the fields.
|
|
319
323
|
*/
|
|
@@ -323,6 +327,21 @@ export interface RelationSchema {
|
|
|
323
327
|
*/
|
|
324
328
|
relations?: RelationSummary[];
|
|
325
329
|
}
|
|
330
|
+
/**
|
|
331
|
+
* A CreateItemRequestPayload describes the shape of a request on an item creation endpoint.
|
|
332
|
+
*/
|
|
333
|
+
export type CreateItemRequestPayload = Record<string, unknown>;
|
|
334
|
+
/**
|
|
335
|
+
* A UpdateItemRequestPayload describes the shape of a request on an item update endpoint.
|
|
336
|
+
*/
|
|
337
|
+
export type UpdateItemRequestPayload = CreateItemRequestPayload & {
|
|
338
|
+
__meta?: {
|
|
339
|
+
additionalField: {
|
|
340
|
+
relationName: string;
|
|
341
|
+
field: BasicFieldSchema;
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
};
|
|
326
345
|
/**
|
|
327
346
|
* A Request Schema describes how a path should be accessed.
|
|
328
347
|
*/
|