@unito/integration-api 4.2.6 → 4.2.8
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 +35 -5
- package/dist/src/compatibilities.js +12 -5
- package/dist/src/index.cjs +12 -5
- package/package.json +1 -1
|
@@ -215,7 +215,13 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
215
215
|
readonly integer: null;
|
|
216
216
|
readonly number: null;
|
|
217
217
|
readonly object: null;
|
|
218
|
-
readonly reference:
|
|
218
|
+
readonly reference: {
|
|
219
|
+
readonly field: {
|
|
220
|
+
readonly type: "string";
|
|
221
|
+
readonly default: "semantic:displayName";
|
|
222
|
+
readonly description: "The field against which to match the string value.";
|
|
223
|
+
};
|
|
224
|
+
};
|
|
219
225
|
readonly html: {};
|
|
220
226
|
readonly markdown: {};
|
|
221
227
|
readonly string: {};
|
|
@@ -283,14 +289,38 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
283
289
|
readonly datetime: null;
|
|
284
290
|
readonly datetimeRange: null;
|
|
285
291
|
readonly duration: null;
|
|
286
|
-
readonly email:
|
|
292
|
+
readonly email: {
|
|
293
|
+
readonly field: {
|
|
294
|
+
readonly type: "string";
|
|
295
|
+
readonly default: "semantic:displayName";
|
|
296
|
+
readonly description: "The field of the referenced entry to use for the string value.";
|
|
297
|
+
};
|
|
298
|
+
};
|
|
287
299
|
readonly integer: null;
|
|
288
300
|
readonly number: null;
|
|
289
301
|
readonly object: null;
|
|
290
302
|
readonly reference: {};
|
|
291
|
-
readonly html:
|
|
292
|
-
|
|
293
|
-
|
|
303
|
+
readonly html: {
|
|
304
|
+
readonly field: {
|
|
305
|
+
readonly type: "string";
|
|
306
|
+
readonly default: "semantic:displayName";
|
|
307
|
+
readonly description: "The field of the referenced entry to use for the string value.";
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
readonly markdown: {
|
|
311
|
+
readonly field: {
|
|
312
|
+
readonly type: "string";
|
|
313
|
+
readonly default: "semantic:displayName";
|
|
314
|
+
readonly description: "The field of the referenced entry to use for the string value.";
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
readonly string: {
|
|
318
|
+
readonly field: {
|
|
319
|
+
readonly type: "string";
|
|
320
|
+
readonly default: "semantic:displayName";
|
|
321
|
+
readonly description: "The field of the referenced entry to use for the string value.";
|
|
322
|
+
};
|
|
323
|
+
};
|
|
294
324
|
readonly url: null;
|
|
295
325
|
};
|
|
296
326
|
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',
|
|
@@ -199,7 +206,7 @@ export const fieldTypeCompatibilityMatrix = {
|
|
|
199
206
|
[Api.FieldValueTypes.INTEGER]: null,
|
|
200
207
|
[Api.FieldValueTypes.NUMBER]: null,
|
|
201
208
|
[Api.FieldValueTypes.OBJECT]: null,
|
|
202
|
-
[Api.FieldValueTypes.REFERENCE]:
|
|
209
|
+
[Api.FieldValueTypes.REFERENCE]: stringLikeToReferenceConfiguration,
|
|
203
210
|
[Api.FieldValueTypes.RICH_TEXT_HTML]: {},
|
|
204
211
|
[Api.FieldValueTypes.RICH_TEXT_MARKDOWN]: {},
|
|
205
212
|
[Api.FieldValueTypes.STRING]: {},
|
|
@@ -267,14 +274,14 @@ export const fieldTypeCompatibilityMatrix = {
|
|
|
267
274
|
[Api.FieldValueTypes.DATETIME]: null,
|
|
268
275
|
[Api.FieldValueTypes.DATETIME_RANGE]: null,
|
|
269
276
|
[Api.FieldValueTypes.DURATION]: null,
|
|
270
|
-
[Api.FieldValueTypes.EMAIL]:
|
|
277
|
+
[Api.FieldValueTypes.EMAIL]: referenceToStringLikeConfiguration,
|
|
271
278
|
[Api.FieldValueTypes.INTEGER]: null,
|
|
272
279
|
[Api.FieldValueTypes.NUMBER]: null,
|
|
273
280
|
[Api.FieldValueTypes.OBJECT]: null,
|
|
274
281
|
[Api.FieldValueTypes.REFERENCE]: {},
|
|
275
|
-
[Api.FieldValueTypes.RICH_TEXT_HTML]:
|
|
276
|
-
[Api.FieldValueTypes.RICH_TEXT_MARKDOWN]:
|
|
277
|
-
[Api.FieldValueTypes.STRING]:
|
|
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]: {
|
package/dist/src/index.cjs
CHANGED
|
@@ -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',
|
|
@@ -418,7 +425,7 @@ const fieldTypeCompatibilityMatrix = {
|
|
|
418
425
|
[FieldValueTypes.INTEGER]: null,
|
|
419
426
|
[FieldValueTypes.NUMBER]: null,
|
|
420
427
|
[FieldValueTypes.OBJECT]: null,
|
|
421
|
-
[FieldValueTypes.REFERENCE]:
|
|
428
|
+
[FieldValueTypes.REFERENCE]: stringLikeToReferenceConfiguration,
|
|
422
429
|
[FieldValueTypes.RICH_TEXT_HTML]: {},
|
|
423
430
|
[FieldValueTypes.RICH_TEXT_MARKDOWN]: {},
|
|
424
431
|
[FieldValueTypes.STRING]: {},
|
|
@@ -486,14 +493,14 @@ const fieldTypeCompatibilityMatrix = {
|
|
|
486
493
|
[FieldValueTypes.DATETIME]: null,
|
|
487
494
|
[FieldValueTypes.DATETIME_RANGE]: null,
|
|
488
495
|
[FieldValueTypes.DURATION]: null,
|
|
489
|
-
[FieldValueTypes.EMAIL]:
|
|
496
|
+
[FieldValueTypes.EMAIL]: referenceToStringLikeConfiguration,
|
|
490
497
|
[FieldValueTypes.INTEGER]: null,
|
|
491
498
|
[FieldValueTypes.NUMBER]: null,
|
|
492
499
|
[FieldValueTypes.OBJECT]: null,
|
|
493
500
|
[FieldValueTypes.REFERENCE]: {},
|
|
494
|
-
[FieldValueTypes.RICH_TEXT_HTML]:
|
|
495
|
-
[FieldValueTypes.RICH_TEXT_MARKDOWN]:
|
|
496
|
-
[FieldValueTypes.STRING]:
|
|
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]: {
|