@unito/integration-api 4.2.8 → 4.2.10

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.
@@ -55,6 +55,13 @@
55
55
  "type": "string"
56
56
  },
57
57
  "readOnly": {
58
+ "type": "boolean",
59
+ "deprecated": true
60
+ },
61
+ "canSetOnCreate": {
62
+ "type": "boolean"
63
+ },
64
+ "canSetOnUpdate": {
58
65
  "type": "boolean"
59
66
  },
60
67
  "isArray": {
@@ -299,7 +299,20 @@ export declare const fieldTypeCompatibilityMatrix: {
299
299
  readonly integer: null;
300
300
  readonly number: null;
301
301
  readonly object: null;
302
- readonly reference: {};
302
+ readonly reference: {
303
+ readonly sideIds: {
304
+ readonly type: "string";
305
+ readonly description: "If specified, only the references kept in sync in the specified link sides will be evaluated.";
306
+ readonly isArray: true;
307
+ };
308
+ readonly type: {
309
+ readonly type: "enum";
310
+ readonly description: "The type of mapping, as selected by the customer.";
311
+ readonly hidden: true;
312
+ readonly isArray: false;
313
+ readonly values: ["manualOnly", "referenceOnly"];
314
+ };
315
+ };
303
316
  readonly html: {
304
317
  readonly field: {
305
318
  readonly type: "string";
@@ -278,7 +278,20 @@ export const fieldTypeCompatibilityMatrix = {
278
278
  [Api.FieldValueTypes.INTEGER]: null,
279
279
  [Api.FieldValueTypes.NUMBER]: null,
280
280
  [Api.FieldValueTypes.OBJECT]: null,
281
- [Api.FieldValueTypes.REFERENCE]: {},
281
+ [Api.FieldValueTypes.REFERENCE]: {
282
+ sideIds: {
283
+ type: 'string',
284
+ description: 'If specified, only the references kept in sync in the specified link sides will be evaluated.',
285
+ isArray: true,
286
+ },
287
+ type: {
288
+ type: 'enum',
289
+ description: 'The type of mapping, as selected by the customer.',
290
+ hidden: true,
291
+ isArray: false,
292
+ values: ['manualOnly', 'referenceOnly'],
293
+ },
294
+ },
282
295
  [Api.FieldValueTypes.RICH_TEXT_HTML]: referenceToStringLikeConfiguration,
283
296
  [Api.FieldValueTypes.RICH_TEXT_MARKDOWN]: referenceToStringLikeConfiguration,
284
297
  [Api.FieldValueTypes.STRING]: referenceToStringLikeConfiguration,
@@ -497,7 +497,20 @@ const fieldTypeCompatibilityMatrix = {
497
497
  [FieldValueTypes.INTEGER]: null,
498
498
  [FieldValueTypes.NUMBER]: null,
499
499
  [FieldValueTypes.OBJECT]: null,
500
- [FieldValueTypes.REFERENCE]: {},
500
+ [FieldValueTypes.REFERENCE]: {
501
+ sideIds: {
502
+ type: 'string',
503
+ description: 'If specified, only the references kept in sync in the specified link sides will be evaluated.',
504
+ isArray: true,
505
+ },
506
+ type: {
507
+ type: 'enum',
508
+ description: 'The type of mapping, as selected by the customer.',
509
+ hidden: true,
510
+ isArray: false,
511
+ values: ['manualOnly', 'referenceOnly'],
512
+ },
513
+ },
501
514
  [FieldValueTypes.RICH_TEXT_HTML]: referenceToStringLikeConfiguration,
502
515
  [FieldValueTypes.RICH_TEXT_MARKDOWN]: referenceToStringLikeConfiguration,
503
516
  [FieldValueTypes.STRING]: referenceToStringLikeConfiguration,
@@ -77,8 +77,19 @@ interface AbstractFieldSchema {
77
77
  info?: string;
78
78
  /**
79
79
  * Whether the field is read only.
80
+ * @deprecated Use canSetOnCreate/canUpdate instead.
80
81
  */
81
82
  readOnly?: boolean;
83
+ /**
84
+ * Whether the field can be set during creation.
85
+ * Defaults to true.
86
+ */
87
+ canSetOnCreate?: boolean;
88
+ /**
89
+ * Whether the field can be updated after creation.
90
+ * Defaults to true.
91
+ */
92
+ canSetOnUpdate?: boolean;
82
93
  /**
83
94
  * Whether the field returns an array. Defaults to false.
84
95
  * An array is a non-paginated list of same-type values.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unito/integration-api",
3
- "version": "4.2.8",
3
+ "version": "4.2.10",
4
4
  "description": "The Unito Integration API",
5
5
  "type": "module",
6
6
  "types": "./dist/src/index.d.ts",