@unito/integration-api 4.2.4 → 4.2.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.
@@ -305,7 +305,13 @@ export declare const fieldTypeCompatibilityMatrix: {
305
305
  readonly integer: null;
306
306
  readonly number: null;
307
307
  readonly object: null;
308
- readonly reference: null;
308
+ readonly reference: {
309
+ readonly field: {
310
+ readonly type: "string";
311
+ readonly default: "semantic:displayName";
312
+ readonly description: "The field against which to match the string value.";
313
+ };
314
+ };
309
315
  readonly html: {
310
316
  readonly decorator: {
311
317
  readonly type: "boolean";
@@ -361,7 +367,13 @@ export declare const fieldTypeCompatibilityMatrix: {
361
367
  readonly integer: null;
362
368
  readonly number: null;
363
369
  readonly object: null;
364
- readonly reference: null;
370
+ readonly reference: {
371
+ readonly field: {
372
+ readonly type: "string";
373
+ readonly default: "semantic:displayName";
374
+ readonly description: "The field against which to match the string value.";
375
+ };
376
+ };
365
377
  readonly html: {
366
378
  readonly decorator: {
367
379
  readonly type: "boolean";
@@ -417,7 +429,13 @@ export declare const fieldTypeCompatibilityMatrix: {
417
429
  readonly integer: {};
418
430
  readonly number: {};
419
431
  readonly object: null;
420
- readonly reference: null;
432
+ readonly reference: {
433
+ readonly field: {
434
+ readonly type: "string";
435
+ readonly default: "semantic:displayName";
436
+ readonly description: "The field against which to match the string value.";
437
+ };
438
+ };
421
439
  readonly html: {};
422
440
  readonly markdown: {};
423
441
  readonly string: {};
@@ -1,4 +1,11 @@
1
1
  import * as Api from './types.js';
2
+ const stringLikeToReferenceConfiguration = {
3
+ field: {
4
+ type: 'string',
5
+ default: 'semantic:displayName',
6
+ description: 'The field against which to match the string value.',
7
+ },
8
+ };
2
9
  const dateToStringlikeConfiguration = {
3
10
  locale: {
4
11
  type: 'enum',
@@ -282,7 +289,7 @@ export const fieldTypeCompatibilityMatrix = {
282
289
  [Api.FieldValueTypes.INTEGER]: null,
283
290
  [Api.FieldValueTypes.NUMBER]: null,
284
291
  [Api.FieldValueTypes.OBJECT]: null,
285
- [Api.FieldValueTypes.REFERENCE]: null,
292
+ [Api.FieldValueTypes.REFERENCE]: stringLikeToReferenceConfiguration,
286
293
  [Api.FieldValueTypes.RICH_TEXT_HTML]: htmlToRichTextConfiguration,
287
294
  [Api.FieldValueTypes.RICH_TEXT_MARKDOWN]: htmlToRichTextConfiguration,
288
295
  [Api.FieldValueTypes.STRING]: {},
@@ -300,7 +307,7 @@ export const fieldTypeCompatibilityMatrix = {
300
307
  [Api.FieldValueTypes.INTEGER]: null,
301
308
  [Api.FieldValueTypes.NUMBER]: null,
302
309
  [Api.FieldValueTypes.OBJECT]: null,
303
- [Api.FieldValueTypes.REFERENCE]: null,
310
+ [Api.FieldValueTypes.REFERENCE]: stringLikeToReferenceConfiguration,
304
311
  [Api.FieldValueTypes.RICH_TEXT_HTML]: markdownToRichTextConfiguration,
305
312
  [Api.FieldValueTypes.RICH_TEXT_MARKDOWN]: markdownToRichTextConfiguration,
306
313
  [Api.FieldValueTypes.STRING]: {},
@@ -318,7 +325,7 @@ export const fieldTypeCompatibilityMatrix = {
318
325
  [Api.FieldValueTypes.INTEGER]: {},
319
326
  [Api.FieldValueTypes.NUMBER]: {},
320
327
  [Api.FieldValueTypes.OBJECT]: null,
321
- [Api.FieldValueTypes.REFERENCE]: null,
328
+ [Api.FieldValueTypes.REFERENCE]: stringLikeToReferenceConfiguration,
322
329
  [Api.FieldValueTypes.RICH_TEXT_HTML]: {},
323
330
  [Api.FieldValueTypes.RICH_TEXT_MARKDOWN]: {},
324
331
  [Api.FieldValueTypes.STRING]: {},
@@ -218,6 +218,13 @@ function isFieldSchema(potentialFieldSchema) {
218
218
  (isUndefined(potentialFieldSchema['semantic']) || isSemantic(potentialFieldSchema['semantic'])));
219
219
  }
220
220
 
221
+ const stringLikeToReferenceConfiguration = {
222
+ field: {
223
+ type: 'string',
224
+ default: 'semantic:displayName',
225
+ description: 'The field against which to match the string value.',
226
+ },
227
+ };
221
228
  const dateToStringlikeConfiguration = {
222
229
  locale: {
223
230
  type: 'enum',
@@ -501,7 +508,7 @@ const fieldTypeCompatibilityMatrix = {
501
508
  [FieldValueTypes.INTEGER]: null,
502
509
  [FieldValueTypes.NUMBER]: null,
503
510
  [FieldValueTypes.OBJECT]: null,
504
- [FieldValueTypes.REFERENCE]: null,
511
+ [FieldValueTypes.REFERENCE]: stringLikeToReferenceConfiguration,
505
512
  [FieldValueTypes.RICH_TEXT_HTML]: htmlToRichTextConfiguration,
506
513
  [FieldValueTypes.RICH_TEXT_MARKDOWN]: htmlToRichTextConfiguration,
507
514
  [FieldValueTypes.STRING]: {},
@@ -519,7 +526,7 @@ const fieldTypeCompatibilityMatrix = {
519
526
  [FieldValueTypes.INTEGER]: null,
520
527
  [FieldValueTypes.NUMBER]: null,
521
528
  [FieldValueTypes.OBJECT]: null,
522
- [FieldValueTypes.REFERENCE]: null,
529
+ [FieldValueTypes.REFERENCE]: stringLikeToReferenceConfiguration,
523
530
  [FieldValueTypes.RICH_TEXT_HTML]: markdownToRichTextConfiguration,
524
531
  [FieldValueTypes.RICH_TEXT_MARKDOWN]: markdownToRichTextConfiguration,
525
532
  [FieldValueTypes.STRING]: {},
@@ -537,7 +544,7 @@ const fieldTypeCompatibilityMatrix = {
537
544
  [FieldValueTypes.INTEGER]: {},
538
545
  [FieldValueTypes.NUMBER]: {},
539
546
  [FieldValueTypes.OBJECT]: null,
540
- [FieldValueTypes.REFERENCE]: null,
547
+ [FieldValueTypes.REFERENCE]: stringLikeToReferenceConfiguration,
541
548
  [FieldValueTypes.RICH_TEXT_HTML]: {},
542
549
  [FieldValueTypes.RICH_TEXT_MARKDOWN]: {},
543
550
  [FieldValueTypes.STRING]: {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unito/integration-api",
3
- "version": "4.2.4",
3
+ "version": "4.2.6",
4
4
  "description": "The Unito Integration API",
5
5
  "type": "module",
6
6
  "types": "./dist/src/index.d.ts",