@unito/integration-api 4.2.6 → 4.2.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.
@@ -288,9 +288,27 @@ export declare const fieldTypeCompatibilityMatrix: {
288
288
  readonly number: null;
289
289
  readonly object: null;
290
290
  readonly reference: {};
291
- readonly html: null;
292
- readonly markdown: null;
293
- readonly string: null;
291
+ readonly html: {
292
+ readonly field: {
293
+ readonly type: "string";
294
+ readonly default: "semantic:displayName";
295
+ readonly description: "The field of the referenced entry to use for the string value.";
296
+ };
297
+ };
298
+ readonly markdown: {
299
+ readonly field: {
300
+ readonly type: "string";
301
+ readonly default: "semantic:displayName";
302
+ readonly description: "The field of the referenced entry to use for the string value.";
303
+ };
304
+ };
305
+ readonly string: {
306
+ readonly field: {
307
+ readonly type: "string";
308
+ readonly default: "semantic:displayName";
309
+ readonly description: "The field of the referenced entry to use for the string value.";
310
+ };
311
+ };
294
312
  readonly url: null;
295
313
  };
296
314
  readonly html: {
@@ -1,4 +1,11 @@
1
1
  import * as Api from './types.js';
2
+ const referenceToStringLikeConfiguration = {
3
+ field: {
4
+ type: 'string',
5
+ default: 'semantic:displayName',
6
+ description: 'The field of the referenced entry to use for the string value.',
7
+ },
8
+ };
2
9
  const stringLikeToReferenceConfiguration = {
3
10
  field: {
4
11
  type: 'string',
@@ -272,9 +279,9 @@ export const fieldTypeCompatibilityMatrix = {
272
279
  [Api.FieldValueTypes.NUMBER]: null,
273
280
  [Api.FieldValueTypes.OBJECT]: null,
274
281
  [Api.FieldValueTypes.REFERENCE]: {},
275
- [Api.FieldValueTypes.RICH_TEXT_HTML]: null,
276
- [Api.FieldValueTypes.RICH_TEXT_MARKDOWN]: null,
277
- [Api.FieldValueTypes.STRING]: null,
282
+ [Api.FieldValueTypes.RICH_TEXT_HTML]: referenceToStringLikeConfiguration,
283
+ [Api.FieldValueTypes.RICH_TEXT_MARKDOWN]: referenceToStringLikeConfiguration,
284
+ [Api.FieldValueTypes.STRING]: referenceToStringLikeConfiguration,
278
285
  [Api.FieldValueTypes.URL]: null,
279
286
  },
280
287
  [Api.FieldValueTypes.RICH_TEXT_HTML]: {
@@ -218,6 +218,13 @@ function isFieldSchema(potentialFieldSchema) {
218
218
  (isUndefined(potentialFieldSchema['semantic']) || isSemantic(potentialFieldSchema['semantic'])));
219
219
  }
220
220
 
221
+ const referenceToStringLikeConfiguration = {
222
+ field: {
223
+ type: 'string',
224
+ default: 'semantic:displayName',
225
+ description: 'The field of the referenced entry to use for the string value.',
226
+ },
227
+ };
221
228
  const stringLikeToReferenceConfiguration = {
222
229
  field: {
223
230
  type: 'string',
@@ -491,9 +498,9 @@ const fieldTypeCompatibilityMatrix = {
491
498
  [FieldValueTypes.NUMBER]: null,
492
499
  [FieldValueTypes.OBJECT]: null,
493
500
  [FieldValueTypes.REFERENCE]: {},
494
- [FieldValueTypes.RICH_TEXT_HTML]: null,
495
- [FieldValueTypes.RICH_TEXT_MARKDOWN]: null,
496
- [FieldValueTypes.STRING]: null,
501
+ [FieldValueTypes.RICH_TEXT_HTML]: referenceToStringLikeConfiguration,
502
+ [FieldValueTypes.RICH_TEXT_MARKDOWN]: referenceToStringLikeConfiguration,
503
+ [FieldValueTypes.STRING]: referenceToStringLikeConfiguration,
497
504
  [FieldValueTypes.URL]: null,
498
505
  },
499
506
  [FieldValueTypes.RICH_TEXT_HTML]: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unito/integration-api",
3
- "version": "4.2.6",
3
+ "version": "4.2.7",
4
4
  "description": "The Unito Integration API",
5
5
  "type": "module",
6
6
  "types": "./dist/src/index.d.ts",