@unito/integration-api 4.3.1 → 4.3.2
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.
|
@@ -217,7 +217,7 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
217
217
|
readonly object: null;
|
|
218
218
|
readonly reference: {
|
|
219
219
|
readonly field: {
|
|
220
|
-
readonly type: "
|
|
220
|
+
readonly type: "targetField";
|
|
221
221
|
readonly default: "semantic:displayName";
|
|
222
222
|
readonly description: "The field against which to match the string value.";
|
|
223
223
|
readonly required: true;
|
|
@@ -292,7 +292,7 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
292
292
|
readonly duration: null;
|
|
293
293
|
readonly email: {
|
|
294
294
|
readonly field: {
|
|
295
|
-
readonly type: "
|
|
295
|
+
readonly type: "sourceField";
|
|
296
296
|
readonly default: "semantic:displayName";
|
|
297
297
|
readonly description: "The field of the referenced entry to use for the string value.";
|
|
298
298
|
readonly required: true;
|
|
@@ -319,7 +319,7 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
319
319
|
};
|
|
320
320
|
readonly html: {
|
|
321
321
|
readonly field: {
|
|
322
|
-
readonly type: "
|
|
322
|
+
readonly type: "sourceField";
|
|
323
323
|
readonly default: "semantic:displayName";
|
|
324
324
|
readonly description: "The field of the referenced entry to use for the string value.";
|
|
325
325
|
readonly required: true;
|
|
@@ -327,7 +327,7 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
327
327
|
};
|
|
328
328
|
readonly markdown: {
|
|
329
329
|
readonly field: {
|
|
330
|
-
readonly type: "
|
|
330
|
+
readonly type: "sourceField";
|
|
331
331
|
readonly default: "semantic:displayName";
|
|
332
332
|
readonly description: "The field of the referenced entry to use for the string value.";
|
|
333
333
|
readonly required: true;
|
|
@@ -335,7 +335,7 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
335
335
|
};
|
|
336
336
|
readonly string: {
|
|
337
337
|
readonly field: {
|
|
338
|
-
readonly type: "
|
|
338
|
+
readonly type: "sourceField";
|
|
339
339
|
readonly default: "semantic:displayName";
|
|
340
340
|
readonly description: "The field of the referenced entry to use for the string value.";
|
|
341
341
|
readonly required: true;
|
|
@@ -355,14 +355,7 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
355
355
|
readonly integer: null;
|
|
356
356
|
readonly number: null;
|
|
357
357
|
readonly object: null;
|
|
358
|
-
readonly reference:
|
|
359
|
-
readonly field: {
|
|
360
|
-
readonly type: "field";
|
|
361
|
-
readonly default: "semantic:displayName";
|
|
362
|
-
readonly description: "The field against which to match the string value.";
|
|
363
|
-
readonly required: true;
|
|
364
|
-
};
|
|
365
|
-
};
|
|
358
|
+
readonly reference: null;
|
|
366
359
|
readonly html: {
|
|
367
360
|
readonly decorator: {
|
|
368
361
|
readonly type: "boolean";
|
|
@@ -371,7 +364,7 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
371
364
|
readonly hidden: true;
|
|
372
365
|
};
|
|
373
366
|
readonly decoratorTemplate: {
|
|
374
|
-
readonly type: "
|
|
367
|
+
readonly type: "stringWithSourceItemFields";
|
|
375
368
|
readonly description: "Template for the decorator. Use {author} and {date} placeholders.";
|
|
376
369
|
readonly default: "On <strong>{semantic:createdAt}</strong>, <em>{semantic:user.fields.semantic:displayName}</em> commented:";
|
|
377
370
|
readonly hidden: true;
|
|
@@ -391,7 +384,7 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
391
384
|
readonly hidden: true;
|
|
392
385
|
};
|
|
393
386
|
readonly decoratorTemplate: {
|
|
394
|
-
readonly type: "
|
|
387
|
+
readonly type: "stringWithSourceItemFields";
|
|
395
388
|
readonly description: "Template for the decorator. Use {author} and {date} placeholders.";
|
|
396
389
|
readonly default: "On <strong>{semantic:createdAt}</strong>, <em>{semantic:user.fields.semantic:displayName}</em> commented:";
|
|
397
390
|
readonly hidden: true;
|
|
@@ -418,14 +411,7 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
418
411
|
readonly integer: null;
|
|
419
412
|
readonly number: null;
|
|
420
413
|
readonly object: null;
|
|
421
|
-
readonly reference:
|
|
422
|
-
readonly field: {
|
|
423
|
-
readonly type: "field";
|
|
424
|
-
readonly default: "semantic:displayName";
|
|
425
|
-
readonly description: "The field against which to match the string value.";
|
|
426
|
-
readonly required: true;
|
|
427
|
-
};
|
|
428
|
-
};
|
|
414
|
+
readonly reference: null;
|
|
429
415
|
readonly html: {
|
|
430
416
|
readonly decorator: {
|
|
431
417
|
readonly type: "boolean";
|
|
@@ -434,7 +420,7 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
434
420
|
readonly hidden: true;
|
|
435
421
|
};
|
|
436
422
|
readonly decoratorTemplate: {
|
|
437
|
-
readonly type: "
|
|
423
|
+
readonly type: "stringWithSourceItemFields";
|
|
438
424
|
readonly description: "Template for the decorator. Use {author} and {date} placeholders.";
|
|
439
425
|
readonly default: "On **{semantic:createdAt}**, __{semantic:user.fields.semantic:displayName}__ commented:";
|
|
440
426
|
readonly hidden: true;
|
|
@@ -454,7 +440,7 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
454
440
|
readonly hidden: true;
|
|
455
441
|
};
|
|
456
442
|
readonly decoratorTemplate: {
|
|
457
|
-
readonly type: "
|
|
443
|
+
readonly type: "stringWithSourceItemFields";
|
|
458
444
|
readonly description: "Template for the decorator. Use {author} and {date} placeholders.";
|
|
459
445
|
readonly default: "On **{semantic:createdAt}**, __{semantic:user.fields.semantic:displayName}__ commented:";
|
|
460
446
|
readonly hidden: true;
|
|
@@ -483,7 +469,7 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
483
469
|
readonly object: null;
|
|
484
470
|
readonly reference: {
|
|
485
471
|
readonly field: {
|
|
486
|
-
readonly type: "
|
|
472
|
+
readonly type: "targetField";
|
|
487
473
|
readonly default: "semantic:displayName";
|
|
488
474
|
readonly description: "The field against which to match the string value.";
|
|
489
475
|
readonly required: true;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as Api from './types.js';
|
|
2
2
|
const referenceToStringLikeConfiguration = {
|
|
3
3
|
field: {
|
|
4
|
-
type: '
|
|
4
|
+
type: 'sourceField',
|
|
5
5
|
default: 'semantic:displayName',
|
|
6
6
|
description: 'The field of the referenced entry to use for the string value.',
|
|
7
7
|
required: true,
|
|
@@ -9,7 +9,7 @@ const referenceToStringLikeConfiguration = {
|
|
|
9
9
|
};
|
|
10
10
|
const stringLikeToReferenceConfiguration = {
|
|
11
11
|
field: {
|
|
12
|
-
type: '
|
|
12
|
+
type: 'targetField',
|
|
13
13
|
default: 'semantic:displayName',
|
|
14
14
|
description: 'The field against which to match the string value.',
|
|
15
15
|
required: true,
|
|
@@ -37,7 +37,7 @@ const htmlToRichTextConfiguration = {
|
|
|
37
37
|
hidden: true,
|
|
38
38
|
},
|
|
39
39
|
decoratorTemplate: {
|
|
40
|
-
type: '
|
|
40
|
+
type: 'stringWithSourceItemFields',
|
|
41
41
|
description: 'Template for the decorator. Use {author} and {date} placeholders.',
|
|
42
42
|
default: 'On <strong>{semantic:createdAt}</strong>, <em>{semantic:user.fields.semantic:displayName}</em> commented:',
|
|
43
43
|
hidden: true,
|
|
@@ -57,7 +57,7 @@ const markdownToRichTextConfiguration = {
|
|
|
57
57
|
hidden: true,
|
|
58
58
|
},
|
|
59
59
|
decoratorTemplate: {
|
|
60
|
-
type: '
|
|
60
|
+
type: 'stringWithSourceItemFields',
|
|
61
61
|
description: 'Template for the decorator. Use {author} and {date} placeholders.',
|
|
62
62
|
default: 'On **{semantic:createdAt}**, __{semantic:user.fields.semantic:displayName}__ commented:',
|
|
63
63
|
hidden: true,
|
|
@@ -313,7 +313,7 @@ export const fieldTypeCompatibilityMatrix = {
|
|
|
313
313
|
[Api.FieldValueTypes.INTEGER]: null,
|
|
314
314
|
[Api.FieldValueTypes.NUMBER]: null,
|
|
315
315
|
[Api.FieldValueTypes.OBJECT]: null,
|
|
316
|
-
[Api.FieldValueTypes.REFERENCE]:
|
|
316
|
+
[Api.FieldValueTypes.REFERENCE]: null,
|
|
317
317
|
[Api.FieldValueTypes.RICH_TEXT_HTML]: htmlToRichTextConfiguration,
|
|
318
318
|
[Api.FieldValueTypes.RICH_TEXT_MARKDOWN]: htmlToRichTextConfiguration,
|
|
319
319
|
[Api.FieldValueTypes.STRING]: {},
|
|
@@ -331,7 +331,7 @@ export const fieldTypeCompatibilityMatrix = {
|
|
|
331
331
|
[Api.FieldValueTypes.INTEGER]: null,
|
|
332
332
|
[Api.FieldValueTypes.NUMBER]: null,
|
|
333
333
|
[Api.FieldValueTypes.OBJECT]: null,
|
|
334
|
-
[Api.FieldValueTypes.REFERENCE]:
|
|
334
|
+
[Api.FieldValueTypes.REFERENCE]: null,
|
|
335
335
|
[Api.FieldValueTypes.RICH_TEXT_HTML]: markdownToRichTextConfiguration,
|
|
336
336
|
[Api.FieldValueTypes.RICH_TEXT_MARKDOWN]: markdownToRichTextConfiguration,
|
|
337
337
|
[Api.FieldValueTypes.STRING]: {},
|
package/dist/src/index.cjs
CHANGED
|
@@ -220,7 +220,7 @@ function isFieldSchema(potentialFieldSchema) {
|
|
|
220
220
|
|
|
221
221
|
const referenceToStringLikeConfiguration = {
|
|
222
222
|
field: {
|
|
223
|
-
type: '
|
|
223
|
+
type: 'sourceField',
|
|
224
224
|
default: 'semantic:displayName',
|
|
225
225
|
description: 'The field of the referenced entry to use for the string value.',
|
|
226
226
|
required: true,
|
|
@@ -228,7 +228,7 @@ const referenceToStringLikeConfiguration = {
|
|
|
228
228
|
};
|
|
229
229
|
const stringLikeToReferenceConfiguration = {
|
|
230
230
|
field: {
|
|
231
|
-
type: '
|
|
231
|
+
type: 'targetField',
|
|
232
232
|
default: 'semantic:displayName',
|
|
233
233
|
description: 'The field against which to match the string value.',
|
|
234
234
|
required: true,
|
|
@@ -256,7 +256,7 @@ const htmlToRichTextConfiguration = {
|
|
|
256
256
|
hidden: true,
|
|
257
257
|
},
|
|
258
258
|
decoratorTemplate: {
|
|
259
|
-
type: '
|
|
259
|
+
type: 'stringWithSourceItemFields',
|
|
260
260
|
description: 'Template for the decorator. Use {author} and {date} placeholders.',
|
|
261
261
|
default: 'On <strong>{semantic:createdAt}</strong>, <em>{semantic:user.fields.semantic:displayName}</em> commented:',
|
|
262
262
|
hidden: true,
|
|
@@ -276,7 +276,7 @@ const markdownToRichTextConfiguration = {
|
|
|
276
276
|
hidden: true,
|
|
277
277
|
},
|
|
278
278
|
decoratorTemplate: {
|
|
279
|
-
type: '
|
|
279
|
+
type: 'stringWithSourceItemFields',
|
|
280
280
|
description: 'Template for the decorator. Use {author} and {date} placeholders.',
|
|
281
281
|
default: 'On **{semantic:createdAt}**, __{semantic:user.fields.semantic:displayName}__ commented:',
|
|
282
282
|
hidden: true,
|
|
@@ -532,7 +532,7 @@ const fieldTypeCompatibilityMatrix = {
|
|
|
532
532
|
[FieldValueTypes.INTEGER]: null,
|
|
533
533
|
[FieldValueTypes.NUMBER]: null,
|
|
534
534
|
[FieldValueTypes.OBJECT]: null,
|
|
535
|
-
[FieldValueTypes.REFERENCE]:
|
|
535
|
+
[FieldValueTypes.REFERENCE]: null,
|
|
536
536
|
[FieldValueTypes.RICH_TEXT_HTML]: htmlToRichTextConfiguration,
|
|
537
537
|
[FieldValueTypes.RICH_TEXT_MARKDOWN]: htmlToRichTextConfiguration,
|
|
538
538
|
[FieldValueTypes.STRING]: {},
|
|
@@ -550,7 +550,7 @@ const fieldTypeCompatibilityMatrix = {
|
|
|
550
550
|
[FieldValueTypes.INTEGER]: null,
|
|
551
551
|
[FieldValueTypes.NUMBER]: null,
|
|
552
552
|
[FieldValueTypes.OBJECT]: null,
|
|
553
|
-
[FieldValueTypes.REFERENCE]:
|
|
553
|
+
[FieldValueTypes.REFERENCE]: null,
|
|
554
554
|
[FieldValueTypes.RICH_TEXT_HTML]: markdownToRichTextConfiguration,
|
|
555
555
|
[FieldValueTypes.RICH_TEXT_MARKDOWN]: markdownToRichTextConfiguration,
|
|
556
556
|
[FieldValueTypes.STRING]: {},
|