@unito/integration-api 4.2.4 → 4.2.5
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/compatibilities.d.ts +42 -6
- package/dist/src/compatibilities.js +20 -6
- package/dist/src/index.cjs +20 -6
- package/package.json +1 -1
|
@@ -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:
|
|
292
|
-
|
|
293
|
-
|
|
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: {
|
|
@@ -305,7 +323,13 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
305
323
|
readonly integer: null;
|
|
306
324
|
readonly number: null;
|
|
307
325
|
readonly object: null;
|
|
308
|
-
readonly reference:
|
|
326
|
+
readonly reference: {
|
|
327
|
+
readonly field: {
|
|
328
|
+
readonly type: "string";
|
|
329
|
+
readonly default: "semantic:displayName";
|
|
330
|
+
readonly description: "The field against which to match the string value.";
|
|
331
|
+
};
|
|
332
|
+
};
|
|
309
333
|
readonly html: {
|
|
310
334
|
readonly decorator: {
|
|
311
335
|
readonly type: "boolean";
|
|
@@ -361,7 +385,13 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
361
385
|
readonly integer: null;
|
|
362
386
|
readonly number: null;
|
|
363
387
|
readonly object: null;
|
|
364
|
-
readonly reference:
|
|
388
|
+
readonly reference: {
|
|
389
|
+
readonly field: {
|
|
390
|
+
readonly type: "string";
|
|
391
|
+
readonly default: "semantic:displayName";
|
|
392
|
+
readonly description: "The field against which to match the string value.";
|
|
393
|
+
};
|
|
394
|
+
};
|
|
365
395
|
readonly html: {
|
|
366
396
|
readonly decorator: {
|
|
367
397
|
readonly type: "boolean";
|
|
@@ -417,7 +447,13 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
417
447
|
readonly integer: {};
|
|
418
448
|
readonly number: {};
|
|
419
449
|
readonly object: null;
|
|
420
|
-
readonly reference:
|
|
450
|
+
readonly reference: {
|
|
451
|
+
readonly field: {
|
|
452
|
+
readonly type: "string";
|
|
453
|
+
readonly default: "semantic:displayName";
|
|
454
|
+
readonly description: "The field against which to match the string value.";
|
|
455
|
+
};
|
|
456
|
+
};
|
|
421
457
|
readonly html: {};
|
|
422
458
|
readonly markdown: {};
|
|
423
459
|
readonly string: {};
|
|
@@ -1,4 +1,18 @@
|
|
|
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
|
+
};
|
|
9
|
+
const stringLikeToReferenceConfiguration = {
|
|
10
|
+
field: {
|
|
11
|
+
type: 'string',
|
|
12
|
+
default: 'semantic:displayName',
|
|
13
|
+
description: 'The field against which to match the string value.',
|
|
14
|
+
},
|
|
15
|
+
};
|
|
2
16
|
const dateToStringlikeConfiguration = {
|
|
3
17
|
locale: {
|
|
4
18
|
type: 'enum',
|
|
@@ -265,9 +279,9 @@ export const fieldTypeCompatibilityMatrix = {
|
|
|
265
279
|
[Api.FieldValueTypes.NUMBER]: null,
|
|
266
280
|
[Api.FieldValueTypes.OBJECT]: null,
|
|
267
281
|
[Api.FieldValueTypes.REFERENCE]: {},
|
|
268
|
-
[Api.FieldValueTypes.RICH_TEXT_HTML]:
|
|
269
|
-
[Api.FieldValueTypes.RICH_TEXT_MARKDOWN]:
|
|
270
|
-
[Api.FieldValueTypes.STRING]:
|
|
282
|
+
[Api.FieldValueTypes.RICH_TEXT_HTML]: referenceToStringLikeConfiguration,
|
|
283
|
+
[Api.FieldValueTypes.RICH_TEXT_MARKDOWN]: referenceToStringLikeConfiguration,
|
|
284
|
+
[Api.FieldValueTypes.STRING]: referenceToStringLikeConfiguration,
|
|
271
285
|
[Api.FieldValueTypes.URL]: null,
|
|
272
286
|
},
|
|
273
287
|
[Api.FieldValueTypes.RICH_TEXT_HTML]: {
|
|
@@ -282,7 +296,7 @@ export const fieldTypeCompatibilityMatrix = {
|
|
|
282
296
|
[Api.FieldValueTypes.INTEGER]: null,
|
|
283
297
|
[Api.FieldValueTypes.NUMBER]: null,
|
|
284
298
|
[Api.FieldValueTypes.OBJECT]: null,
|
|
285
|
-
[Api.FieldValueTypes.REFERENCE]:
|
|
299
|
+
[Api.FieldValueTypes.REFERENCE]: stringLikeToReferenceConfiguration,
|
|
286
300
|
[Api.FieldValueTypes.RICH_TEXT_HTML]: htmlToRichTextConfiguration,
|
|
287
301
|
[Api.FieldValueTypes.RICH_TEXT_MARKDOWN]: htmlToRichTextConfiguration,
|
|
288
302
|
[Api.FieldValueTypes.STRING]: {},
|
|
@@ -300,7 +314,7 @@ export const fieldTypeCompatibilityMatrix = {
|
|
|
300
314
|
[Api.FieldValueTypes.INTEGER]: null,
|
|
301
315
|
[Api.FieldValueTypes.NUMBER]: null,
|
|
302
316
|
[Api.FieldValueTypes.OBJECT]: null,
|
|
303
|
-
[Api.FieldValueTypes.REFERENCE]:
|
|
317
|
+
[Api.FieldValueTypes.REFERENCE]: stringLikeToReferenceConfiguration,
|
|
304
318
|
[Api.FieldValueTypes.RICH_TEXT_HTML]: markdownToRichTextConfiguration,
|
|
305
319
|
[Api.FieldValueTypes.RICH_TEXT_MARKDOWN]: markdownToRichTextConfiguration,
|
|
306
320
|
[Api.FieldValueTypes.STRING]: {},
|
|
@@ -318,7 +332,7 @@ export const fieldTypeCompatibilityMatrix = {
|
|
|
318
332
|
[Api.FieldValueTypes.INTEGER]: {},
|
|
319
333
|
[Api.FieldValueTypes.NUMBER]: {},
|
|
320
334
|
[Api.FieldValueTypes.OBJECT]: null,
|
|
321
|
-
[Api.FieldValueTypes.REFERENCE]:
|
|
335
|
+
[Api.FieldValueTypes.REFERENCE]: stringLikeToReferenceConfiguration,
|
|
322
336
|
[Api.FieldValueTypes.RICH_TEXT_HTML]: {},
|
|
323
337
|
[Api.FieldValueTypes.RICH_TEXT_MARKDOWN]: {},
|
|
324
338
|
[Api.FieldValueTypes.STRING]: {},
|
package/dist/src/index.cjs
CHANGED
|
@@ -218,6 +218,20 @@ 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
|
+
};
|
|
228
|
+
const stringLikeToReferenceConfiguration = {
|
|
229
|
+
field: {
|
|
230
|
+
type: 'string',
|
|
231
|
+
default: 'semantic:displayName',
|
|
232
|
+
description: 'The field against which to match the string value.',
|
|
233
|
+
},
|
|
234
|
+
};
|
|
221
235
|
const dateToStringlikeConfiguration = {
|
|
222
236
|
locale: {
|
|
223
237
|
type: 'enum',
|
|
@@ -484,9 +498,9 @@ const fieldTypeCompatibilityMatrix = {
|
|
|
484
498
|
[FieldValueTypes.NUMBER]: null,
|
|
485
499
|
[FieldValueTypes.OBJECT]: null,
|
|
486
500
|
[FieldValueTypes.REFERENCE]: {},
|
|
487
|
-
[FieldValueTypes.RICH_TEXT_HTML]:
|
|
488
|
-
[FieldValueTypes.RICH_TEXT_MARKDOWN]:
|
|
489
|
-
[FieldValueTypes.STRING]:
|
|
501
|
+
[FieldValueTypes.RICH_TEXT_HTML]: referenceToStringLikeConfiguration,
|
|
502
|
+
[FieldValueTypes.RICH_TEXT_MARKDOWN]: referenceToStringLikeConfiguration,
|
|
503
|
+
[FieldValueTypes.STRING]: referenceToStringLikeConfiguration,
|
|
490
504
|
[FieldValueTypes.URL]: null,
|
|
491
505
|
},
|
|
492
506
|
[FieldValueTypes.RICH_TEXT_HTML]: {
|
|
@@ -501,7 +515,7 @@ const fieldTypeCompatibilityMatrix = {
|
|
|
501
515
|
[FieldValueTypes.INTEGER]: null,
|
|
502
516
|
[FieldValueTypes.NUMBER]: null,
|
|
503
517
|
[FieldValueTypes.OBJECT]: null,
|
|
504
|
-
[FieldValueTypes.REFERENCE]:
|
|
518
|
+
[FieldValueTypes.REFERENCE]: stringLikeToReferenceConfiguration,
|
|
505
519
|
[FieldValueTypes.RICH_TEXT_HTML]: htmlToRichTextConfiguration,
|
|
506
520
|
[FieldValueTypes.RICH_TEXT_MARKDOWN]: htmlToRichTextConfiguration,
|
|
507
521
|
[FieldValueTypes.STRING]: {},
|
|
@@ -519,7 +533,7 @@ const fieldTypeCompatibilityMatrix = {
|
|
|
519
533
|
[FieldValueTypes.INTEGER]: null,
|
|
520
534
|
[FieldValueTypes.NUMBER]: null,
|
|
521
535
|
[FieldValueTypes.OBJECT]: null,
|
|
522
|
-
[FieldValueTypes.REFERENCE]:
|
|
536
|
+
[FieldValueTypes.REFERENCE]: stringLikeToReferenceConfiguration,
|
|
523
537
|
[FieldValueTypes.RICH_TEXT_HTML]: markdownToRichTextConfiguration,
|
|
524
538
|
[FieldValueTypes.RICH_TEXT_MARKDOWN]: markdownToRichTextConfiguration,
|
|
525
539
|
[FieldValueTypes.STRING]: {},
|
|
@@ -537,7 +551,7 @@ const fieldTypeCompatibilityMatrix = {
|
|
|
537
551
|
[FieldValueTypes.INTEGER]: {},
|
|
538
552
|
[FieldValueTypes.NUMBER]: {},
|
|
539
553
|
[FieldValueTypes.OBJECT]: null,
|
|
540
|
-
[FieldValueTypes.REFERENCE]:
|
|
554
|
+
[FieldValueTypes.REFERENCE]: stringLikeToReferenceConfiguration,
|
|
541
555
|
[FieldValueTypes.RICH_TEXT_HTML]: {},
|
|
542
556
|
[FieldValueTypes.RICH_TEXT_MARKDOWN]: {},
|
|
543
557
|
[FieldValueTypes.STRING]: {},
|