@unito/integration-api 4.4.0 → 4.5.1
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/schemas/webhookParsedItem.json +3 -0
- package/dist/src/compatibilities.d.ts +113 -51
- package/dist/src/compatibilities.js +41 -21
- package/dist/src/index.cjs +41 -21
- package/dist/src/types.d.ts +7 -1
- package/package.json +1 -1
|
@@ -51,13 +51,17 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
51
51
|
readonly html: {
|
|
52
52
|
readonly locale: {
|
|
53
53
|
readonly type: "enum";
|
|
54
|
-
readonly
|
|
54
|
+
readonly defaults: [{
|
|
55
|
+
readonly value: "en-CA";
|
|
56
|
+
}];
|
|
55
57
|
readonly values: ["en-CA"];
|
|
56
58
|
readonly description: "The locale to use for formatting the date.";
|
|
57
59
|
};
|
|
58
60
|
readonly timezone: {
|
|
59
61
|
readonly type: "enum";
|
|
60
|
-
readonly
|
|
62
|
+
readonly defaults: [{
|
|
63
|
+
readonly value: "UTC";
|
|
64
|
+
}];
|
|
61
65
|
readonly values: ["UTC"];
|
|
62
66
|
readonly description: "The timezone to use for formatting the date.";
|
|
63
67
|
};
|
|
@@ -65,13 +69,17 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
65
69
|
readonly markdown: {
|
|
66
70
|
readonly locale: {
|
|
67
71
|
readonly type: "enum";
|
|
68
|
-
readonly
|
|
72
|
+
readonly defaults: [{
|
|
73
|
+
readonly value: "en-CA";
|
|
74
|
+
}];
|
|
69
75
|
readonly values: ["en-CA"];
|
|
70
76
|
readonly description: "The locale to use for formatting the date.";
|
|
71
77
|
};
|
|
72
78
|
readonly timezone: {
|
|
73
79
|
readonly type: "enum";
|
|
74
|
-
readonly
|
|
80
|
+
readonly defaults: [{
|
|
81
|
+
readonly value: "UTC";
|
|
82
|
+
}];
|
|
75
83
|
readonly values: ["UTC"];
|
|
76
84
|
readonly description: "The timezone to use for formatting the date.";
|
|
77
85
|
};
|
|
@@ -79,13 +87,17 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
79
87
|
readonly string: {
|
|
80
88
|
readonly locale: {
|
|
81
89
|
readonly type: "enum";
|
|
82
|
-
readonly
|
|
90
|
+
readonly defaults: [{
|
|
91
|
+
readonly value: "en-CA";
|
|
92
|
+
}];
|
|
83
93
|
readonly values: ["en-CA"];
|
|
84
94
|
readonly description: "The locale to use for formatting the date.";
|
|
85
95
|
};
|
|
86
96
|
readonly timezone: {
|
|
87
97
|
readonly type: "enum";
|
|
88
|
-
readonly
|
|
98
|
+
readonly defaults: [{
|
|
99
|
+
readonly value: "UTC";
|
|
100
|
+
}];
|
|
89
101
|
readonly values: ["UTC"];
|
|
90
102
|
readonly description: "The timezone to use for formatting the date.";
|
|
91
103
|
};
|
|
@@ -126,13 +138,17 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
126
138
|
readonly html: {
|
|
127
139
|
readonly locale: {
|
|
128
140
|
readonly type: "enum";
|
|
129
|
-
readonly
|
|
141
|
+
readonly defaults: [{
|
|
142
|
+
readonly value: "en-CA";
|
|
143
|
+
}];
|
|
130
144
|
readonly values: ["en-CA"];
|
|
131
145
|
readonly description: "The locale to use for formatting the date.";
|
|
132
146
|
};
|
|
133
147
|
readonly timezone: {
|
|
134
148
|
readonly type: "enum";
|
|
135
|
-
readonly
|
|
149
|
+
readonly defaults: [{
|
|
150
|
+
readonly value: "UTC";
|
|
151
|
+
}];
|
|
136
152
|
readonly values: ["UTC"];
|
|
137
153
|
readonly description: "The timezone to use for formatting the date.";
|
|
138
154
|
};
|
|
@@ -140,13 +156,17 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
140
156
|
readonly markdown: {
|
|
141
157
|
readonly locale: {
|
|
142
158
|
readonly type: "enum";
|
|
143
|
-
readonly
|
|
159
|
+
readonly defaults: [{
|
|
160
|
+
readonly value: "en-CA";
|
|
161
|
+
}];
|
|
144
162
|
readonly values: ["en-CA"];
|
|
145
163
|
readonly description: "The locale to use for formatting the date.";
|
|
146
164
|
};
|
|
147
165
|
readonly timezone: {
|
|
148
166
|
readonly type: "enum";
|
|
149
|
-
readonly
|
|
167
|
+
readonly defaults: [{
|
|
168
|
+
readonly value: "UTC";
|
|
169
|
+
}];
|
|
150
170
|
readonly values: ["UTC"];
|
|
151
171
|
readonly description: "The timezone to use for formatting the date.";
|
|
152
172
|
};
|
|
@@ -154,13 +174,17 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
154
174
|
readonly string: {
|
|
155
175
|
readonly locale: {
|
|
156
176
|
readonly type: "enum";
|
|
157
|
-
readonly
|
|
177
|
+
readonly defaults: [{
|
|
178
|
+
readonly value: "en-CA";
|
|
179
|
+
}];
|
|
158
180
|
readonly values: ["en-CA"];
|
|
159
181
|
readonly description: "The locale to use for formatting the date.";
|
|
160
182
|
};
|
|
161
183
|
readonly timezone: {
|
|
162
184
|
readonly type: "enum";
|
|
163
|
-
readonly
|
|
185
|
+
readonly defaults: [{
|
|
186
|
+
readonly value: "UTC";
|
|
187
|
+
}];
|
|
164
188
|
readonly values: ["UTC"];
|
|
165
189
|
readonly description: "The timezone to use for formatting the date.";
|
|
166
190
|
};
|
|
@@ -218,7 +242,9 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
218
242
|
readonly reference: {
|
|
219
243
|
readonly field: {
|
|
220
244
|
readonly type: "targetField";
|
|
221
|
-
readonly
|
|
245
|
+
readonly defaults: [{
|
|
246
|
+
readonly value: "semantic:displayName";
|
|
247
|
+
}];
|
|
222
248
|
readonly description: "The field against which to match the string value.";
|
|
223
249
|
readonly required: true;
|
|
224
250
|
};
|
|
@@ -293,7 +319,9 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
293
319
|
readonly email: {
|
|
294
320
|
readonly field: {
|
|
295
321
|
readonly type: "sourceField";
|
|
296
|
-
readonly
|
|
322
|
+
readonly defaults: [{
|
|
323
|
+
readonly value: "semantic:displayName";
|
|
324
|
+
}];
|
|
297
325
|
readonly description: "The field of the referenced entry to use for the string value.";
|
|
298
326
|
readonly required: true;
|
|
299
327
|
};
|
|
@@ -306,7 +334,9 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
306
334
|
readonly type: "sideIdOfSameCollection";
|
|
307
335
|
readonly description: "If specified, only the references kept in sync in the specified link sides will be evaluated. An empty array means no side will be evaluated.";
|
|
308
336
|
readonly isArray: true;
|
|
309
|
-
readonly
|
|
337
|
+
readonly defaults: [{
|
|
338
|
+
readonly value: readonly [];
|
|
339
|
+
}];
|
|
310
340
|
};
|
|
311
341
|
readonly type: {
|
|
312
342
|
readonly type: "enum";
|
|
@@ -320,7 +350,9 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
320
350
|
readonly html: {
|
|
321
351
|
readonly field: {
|
|
322
352
|
readonly type: "sourceField";
|
|
323
|
-
readonly
|
|
353
|
+
readonly defaults: [{
|
|
354
|
+
readonly value: "semantic:displayName";
|
|
355
|
+
}];
|
|
324
356
|
readonly description: "The field of the referenced entry to use for the string value.";
|
|
325
357
|
readonly required: true;
|
|
326
358
|
};
|
|
@@ -328,7 +360,9 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
328
360
|
readonly markdown: {
|
|
329
361
|
readonly field: {
|
|
330
362
|
readonly type: "sourceField";
|
|
331
|
-
readonly
|
|
363
|
+
readonly defaults: [{
|
|
364
|
+
readonly value: "semantic:displayName";
|
|
365
|
+
}];
|
|
332
366
|
readonly description: "The field of the referenced entry to use for the string value.";
|
|
333
367
|
readonly required: true;
|
|
334
368
|
};
|
|
@@ -336,7 +370,9 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
336
370
|
readonly string: {
|
|
337
371
|
readonly field: {
|
|
338
372
|
readonly type: "sourceField";
|
|
339
|
-
readonly
|
|
373
|
+
readonly defaults: [{
|
|
374
|
+
readonly value: "semantic:displayName";
|
|
375
|
+
}];
|
|
340
376
|
readonly description: "The field of the referenced entry to use for the string value.";
|
|
341
377
|
readonly required: true;
|
|
342
378
|
};
|
|
@@ -357,42 +393,54 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
357
393
|
readonly object: null;
|
|
358
394
|
readonly reference: null;
|
|
359
395
|
readonly html: {
|
|
360
|
-
readonly decorator: {
|
|
361
|
-
readonly type: "boolean";
|
|
362
|
-
readonly description: "Decorate the content with author information and optional date.";
|
|
363
|
-
readonly default: false;
|
|
364
|
-
readonly hidden: true;
|
|
365
|
-
};
|
|
366
396
|
readonly decoratorTemplate: {
|
|
367
397
|
readonly type: "stringWithSourceItemFields";
|
|
368
398
|
readonly description: "Template for the decorator. Use {author} and {date} placeholders.";
|
|
369
|
-
readonly
|
|
399
|
+
readonly defaults: [{
|
|
400
|
+
readonly sourceRelationSemantic: "comments";
|
|
401
|
+
readonly sourceFieldSemantic: "description";
|
|
402
|
+
readonly targetRelationSemantic: "comments";
|
|
403
|
+
readonly targetFieldSemantic: "description";
|
|
404
|
+
readonly value: "On <strong>{semantic:createdAt}</strong>, <em>{semantic:user.fields.semantic:displayName}</em> commented:";
|
|
405
|
+
}];
|
|
370
406
|
readonly hidden: true;
|
|
371
407
|
};
|
|
372
408
|
readonly decoratorPrefix: {
|
|
373
409
|
readonly type: "string";
|
|
374
410
|
readonly description: "Prefix for the decorator. Defaults to \"➤\".";
|
|
375
|
-
readonly
|
|
411
|
+
readonly defaults: [{
|
|
412
|
+
readonly sourceRelationSemantic: "comments";
|
|
413
|
+
readonly sourceFieldSemantic: "description";
|
|
414
|
+
readonly targetRelationSemantic: "comments";
|
|
415
|
+
readonly targetFieldSemantic: "description";
|
|
416
|
+
readonly value: "➤";
|
|
417
|
+
}];
|
|
376
418
|
readonly hidden: true;
|
|
377
419
|
};
|
|
378
420
|
};
|
|
379
421
|
readonly markdown: {
|
|
380
|
-
readonly decorator: {
|
|
381
|
-
readonly type: "boolean";
|
|
382
|
-
readonly description: "Decorate the content with author information and optional date.";
|
|
383
|
-
readonly default: false;
|
|
384
|
-
readonly hidden: true;
|
|
385
|
-
};
|
|
386
422
|
readonly decoratorTemplate: {
|
|
387
423
|
readonly type: "stringWithSourceItemFields";
|
|
388
424
|
readonly description: "Template for the decorator. Use {author} and {date} placeholders.";
|
|
389
|
-
readonly
|
|
425
|
+
readonly defaults: [{
|
|
426
|
+
readonly sourceRelationSemantic: "comments";
|
|
427
|
+
readonly sourceFieldSemantic: "description";
|
|
428
|
+
readonly targetRelationSemantic: "comments";
|
|
429
|
+
readonly targetFieldSemantic: "description";
|
|
430
|
+
readonly value: "On <strong>{semantic:createdAt}</strong>, <em>{semantic:user.fields.semantic:displayName}</em> commented:";
|
|
431
|
+
}];
|
|
390
432
|
readonly hidden: true;
|
|
391
433
|
};
|
|
392
434
|
readonly decoratorPrefix: {
|
|
393
435
|
readonly type: "string";
|
|
394
436
|
readonly description: "Prefix for the decorator. Defaults to \"➤\".";
|
|
395
|
-
readonly
|
|
437
|
+
readonly defaults: [{
|
|
438
|
+
readonly sourceRelationSemantic: "comments";
|
|
439
|
+
readonly sourceFieldSemantic: "description";
|
|
440
|
+
readonly targetRelationSemantic: "comments";
|
|
441
|
+
readonly targetFieldSemantic: "description";
|
|
442
|
+
readonly value: "➤";
|
|
443
|
+
}];
|
|
396
444
|
readonly hidden: true;
|
|
397
445
|
};
|
|
398
446
|
};
|
|
@@ -413,42 +461,54 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
413
461
|
readonly object: null;
|
|
414
462
|
readonly reference: null;
|
|
415
463
|
readonly html: {
|
|
416
|
-
readonly decorator: {
|
|
417
|
-
readonly type: "boolean";
|
|
418
|
-
readonly description: "Decorate the content with author information and optional date.";
|
|
419
|
-
readonly default: false;
|
|
420
|
-
readonly hidden: true;
|
|
421
|
-
};
|
|
422
464
|
readonly decoratorTemplate: {
|
|
423
465
|
readonly type: "stringWithSourceItemFields";
|
|
424
466
|
readonly description: "Template for the decorator. Use {author} and {date} placeholders.";
|
|
425
|
-
readonly
|
|
467
|
+
readonly defaults: [{
|
|
468
|
+
readonly sourceRelationSemantic: "comments";
|
|
469
|
+
readonly sourceFieldSemantic: "description";
|
|
470
|
+
readonly targetRelationSemantic: "comments";
|
|
471
|
+
readonly targetFieldSemantic: "description";
|
|
472
|
+
readonly value: "On **{semantic:createdAt}**, __{semantic:user.fields.semantic:displayName}__ commented:";
|
|
473
|
+
}];
|
|
426
474
|
readonly hidden: true;
|
|
427
475
|
};
|
|
428
476
|
readonly decoratorPrefix: {
|
|
429
477
|
readonly type: "string";
|
|
430
478
|
readonly description: "Prefix for the decorator. Defaults to \"➤\".";
|
|
431
|
-
readonly
|
|
479
|
+
readonly defaults: [{
|
|
480
|
+
readonly sourceRelationSemantic: "comments";
|
|
481
|
+
readonly sourceFieldSemantic: "description";
|
|
482
|
+
readonly targetRelationSemantic: "comments";
|
|
483
|
+
readonly targetFieldSemantic: "description";
|
|
484
|
+
readonly value: "➤";
|
|
485
|
+
}];
|
|
432
486
|
readonly hidden: true;
|
|
433
487
|
};
|
|
434
488
|
};
|
|
435
489
|
readonly markdown: {
|
|
436
|
-
readonly decorator: {
|
|
437
|
-
readonly type: "boolean";
|
|
438
|
-
readonly description: "Decorate the content with author information and optional date.";
|
|
439
|
-
readonly default: false;
|
|
440
|
-
readonly hidden: true;
|
|
441
|
-
};
|
|
442
490
|
readonly decoratorTemplate: {
|
|
443
491
|
readonly type: "stringWithSourceItemFields";
|
|
444
492
|
readonly description: "Template for the decorator. Use {author} and {date} placeholders.";
|
|
445
|
-
readonly
|
|
493
|
+
readonly defaults: [{
|
|
494
|
+
readonly sourceRelationSemantic: "comments";
|
|
495
|
+
readonly sourceFieldSemantic: "description";
|
|
496
|
+
readonly targetRelationSemantic: "comments";
|
|
497
|
+
readonly targetFieldSemantic: "description";
|
|
498
|
+
readonly value: "On **{semantic:createdAt}**, __{semantic:user.fields.semantic:displayName}__ commented:";
|
|
499
|
+
}];
|
|
446
500
|
readonly hidden: true;
|
|
447
501
|
};
|
|
448
502
|
readonly decoratorPrefix: {
|
|
449
503
|
readonly type: "string";
|
|
450
504
|
readonly description: "Prefix for the decorator. Defaults to \"➤\".";
|
|
451
|
-
readonly
|
|
505
|
+
readonly defaults: [{
|
|
506
|
+
readonly sourceRelationSemantic: "comments";
|
|
507
|
+
readonly sourceFieldSemantic: "description";
|
|
508
|
+
readonly targetRelationSemantic: "comments";
|
|
509
|
+
readonly targetFieldSemantic: "description";
|
|
510
|
+
readonly value: "➤";
|
|
511
|
+
}];
|
|
452
512
|
readonly hidden: true;
|
|
453
513
|
};
|
|
454
514
|
};
|
|
@@ -470,7 +530,9 @@ export declare const fieldTypeCompatibilityMatrix: {
|
|
|
470
530
|
readonly reference: {
|
|
471
531
|
readonly field: {
|
|
472
532
|
readonly type: "targetField";
|
|
473
|
-
readonly
|
|
533
|
+
readonly defaults: [{
|
|
534
|
+
readonly value: "semantic:displayName";
|
|
535
|
+
}];
|
|
474
536
|
readonly description: "The field against which to match the string value.";
|
|
475
537
|
readonly required: true;
|
|
476
538
|
};
|
|
@@ -2,7 +2,7 @@ import * as Api from './types.js';
|
|
|
2
2
|
const referenceToStringLikeConfiguration = {
|
|
3
3
|
field: {
|
|
4
4
|
type: 'sourceField',
|
|
5
|
-
|
|
5
|
+
defaults: [{ value: 'semantic:displayName' }],
|
|
6
6
|
description: 'The field of the referenced entry to use for the string value.',
|
|
7
7
|
required: true,
|
|
8
8
|
},
|
|
@@ -10,7 +10,7 @@ const referenceToStringLikeConfiguration = {
|
|
|
10
10
|
const stringLikeToReferenceConfiguration = {
|
|
11
11
|
field: {
|
|
12
12
|
type: 'targetField',
|
|
13
|
-
|
|
13
|
+
defaults: [{ value: 'semantic:displayName' }],
|
|
14
14
|
description: 'The field against which to match the string value.',
|
|
15
15
|
required: true,
|
|
16
16
|
},
|
|
@@ -18,54 +18,74 @@ const stringLikeToReferenceConfiguration = {
|
|
|
18
18
|
const dateToStringlikeConfiguration = {
|
|
19
19
|
locale: {
|
|
20
20
|
type: 'enum',
|
|
21
|
-
|
|
21
|
+
defaults: [{ value: 'en-CA' }],
|
|
22
22
|
values: ['en-CA'],
|
|
23
23
|
description: 'The locale to use for formatting the date.',
|
|
24
24
|
},
|
|
25
25
|
timezone: {
|
|
26
26
|
type: 'enum',
|
|
27
|
-
|
|
27
|
+
defaults: [{ value: 'UTC' }],
|
|
28
28
|
values: ['UTC'],
|
|
29
29
|
description: 'The timezone to use for formatting the date.',
|
|
30
30
|
},
|
|
31
31
|
};
|
|
32
32
|
const htmlToRichTextConfiguration = {
|
|
33
|
-
decorator: {
|
|
34
|
-
type: 'boolean',
|
|
35
|
-
description: 'Decorate the content with author information and optional date.',
|
|
36
|
-
default: false,
|
|
37
|
-
hidden: true,
|
|
38
|
-
},
|
|
39
33
|
decoratorTemplate: {
|
|
40
34
|
type: 'stringWithSourceItemFields',
|
|
41
35
|
description: 'Template for the decorator. Use {author} and {date} placeholders.',
|
|
42
|
-
|
|
36
|
+
defaults: [
|
|
37
|
+
{
|
|
38
|
+
sourceRelationSemantic: Api.RelationSemantics.COMMENTS,
|
|
39
|
+
sourceFieldSemantic: Api.Semantics.DESCRIPTION,
|
|
40
|
+
targetRelationSemantic: Api.RelationSemantics.COMMENTS,
|
|
41
|
+
targetFieldSemantic: Api.Semantics.DESCRIPTION,
|
|
42
|
+
value: 'On <strong>{semantic:createdAt}</strong>, <em>{semantic:user.fields.semantic:displayName}</em> commented:',
|
|
43
|
+
},
|
|
44
|
+
],
|
|
43
45
|
hidden: true,
|
|
44
46
|
},
|
|
45
47
|
decoratorPrefix: {
|
|
46
48
|
type: 'string',
|
|
47
49
|
description: `Prefix for the decorator. Defaults to "➤".`,
|
|
48
|
-
|
|
50
|
+
defaults: [
|
|
51
|
+
{
|
|
52
|
+
sourceRelationSemantic: Api.RelationSemantics.COMMENTS,
|
|
53
|
+
sourceFieldSemantic: Api.Semantics.DESCRIPTION,
|
|
54
|
+
targetRelationSemantic: Api.RelationSemantics.COMMENTS,
|
|
55
|
+
targetFieldSemantic: Api.Semantics.DESCRIPTION,
|
|
56
|
+
value: '➤',
|
|
57
|
+
},
|
|
58
|
+
],
|
|
49
59
|
hidden: true,
|
|
50
60
|
},
|
|
51
61
|
};
|
|
52
62
|
const markdownToRichTextConfiguration = {
|
|
53
|
-
decorator: {
|
|
54
|
-
type: 'boolean',
|
|
55
|
-
description: 'Decorate the content with author information and optional date.',
|
|
56
|
-
default: false,
|
|
57
|
-
hidden: true,
|
|
58
|
-
},
|
|
59
63
|
decoratorTemplate: {
|
|
60
64
|
type: 'stringWithSourceItemFields',
|
|
61
65
|
description: 'Template for the decorator. Use {author} and {date} placeholders.',
|
|
62
|
-
|
|
66
|
+
defaults: [
|
|
67
|
+
{
|
|
68
|
+
sourceRelationSemantic: Api.RelationSemantics.COMMENTS,
|
|
69
|
+
sourceFieldSemantic: Api.Semantics.DESCRIPTION,
|
|
70
|
+
targetRelationSemantic: Api.RelationSemantics.COMMENTS,
|
|
71
|
+
targetFieldSemantic: Api.Semantics.DESCRIPTION,
|
|
72
|
+
value: 'On **{semantic:createdAt}**, __{semantic:user.fields.semantic:displayName}__ commented:',
|
|
73
|
+
},
|
|
74
|
+
],
|
|
63
75
|
hidden: true,
|
|
64
76
|
},
|
|
65
77
|
decoratorPrefix: {
|
|
66
78
|
type: 'string',
|
|
67
79
|
description: `Prefix for the decorator. Defaults to "➤".`,
|
|
68
|
-
|
|
80
|
+
defaults: [
|
|
81
|
+
{
|
|
82
|
+
sourceRelationSemantic: Api.RelationSemantics.COMMENTS,
|
|
83
|
+
sourceFieldSemantic: Api.Semantics.DESCRIPTION,
|
|
84
|
+
targetRelationSemantic: Api.RelationSemantics.COMMENTS,
|
|
85
|
+
targetFieldSemantic: Api.Semantics.DESCRIPTION,
|
|
86
|
+
value: '➤',
|
|
87
|
+
},
|
|
88
|
+
],
|
|
69
89
|
hidden: true,
|
|
70
90
|
},
|
|
71
91
|
};
|
|
@@ -285,7 +305,7 @@ export const fieldTypeCompatibilityMatrix = {
|
|
|
285
305
|
type: 'sideIdOfSameCollection',
|
|
286
306
|
description: 'If specified, only the references kept in sync in the specified link sides will be evaluated. An empty array means no side will be evaluated.',
|
|
287
307
|
isArray: true,
|
|
288
|
-
|
|
308
|
+
defaults: [{ value: [] }],
|
|
289
309
|
},
|
|
290
310
|
type: {
|
|
291
311
|
type: 'enum',
|
package/dist/src/index.cjs
CHANGED
|
@@ -221,7 +221,7 @@ function isFieldSchema(potentialFieldSchema) {
|
|
|
221
221
|
const referenceToStringLikeConfiguration = {
|
|
222
222
|
field: {
|
|
223
223
|
type: 'sourceField',
|
|
224
|
-
|
|
224
|
+
defaults: [{ value: 'semantic:displayName' }],
|
|
225
225
|
description: 'The field of the referenced entry to use for the string value.',
|
|
226
226
|
required: true,
|
|
227
227
|
},
|
|
@@ -229,7 +229,7 @@ const referenceToStringLikeConfiguration = {
|
|
|
229
229
|
const stringLikeToReferenceConfiguration = {
|
|
230
230
|
field: {
|
|
231
231
|
type: 'targetField',
|
|
232
|
-
|
|
232
|
+
defaults: [{ value: 'semantic:displayName' }],
|
|
233
233
|
description: 'The field against which to match the string value.',
|
|
234
234
|
required: true,
|
|
235
235
|
},
|
|
@@ -237,54 +237,74 @@ const stringLikeToReferenceConfiguration = {
|
|
|
237
237
|
const dateToStringlikeConfiguration = {
|
|
238
238
|
locale: {
|
|
239
239
|
type: 'enum',
|
|
240
|
-
|
|
240
|
+
defaults: [{ value: 'en-CA' }],
|
|
241
241
|
values: ['en-CA'],
|
|
242
242
|
description: 'The locale to use for formatting the date.',
|
|
243
243
|
},
|
|
244
244
|
timezone: {
|
|
245
245
|
type: 'enum',
|
|
246
|
-
|
|
246
|
+
defaults: [{ value: 'UTC' }],
|
|
247
247
|
values: ['UTC'],
|
|
248
248
|
description: 'The timezone to use for formatting the date.',
|
|
249
249
|
},
|
|
250
250
|
};
|
|
251
251
|
const htmlToRichTextConfiguration = {
|
|
252
|
-
decorator: {
|
|
253
|
-
type: 'boolean',
|
|
254
|
-
description: 'Decorate the content with author information and optional date.',
|
|
255
|
-
default: false,
|
|
256
|
-
hidden: true,
|
|
257
|
-
},
|
|
258
252
|
decoratorTemplate: {
|
|
259
253
|
type: 'stringWithSourceItemFields',
|
|
260
254
|
description: 'Template for the decorator. Use {author} and {date} placeholders.',
|
|
261
|
-
|
|
255
|
+
defaults: [
|
|
256
|
+
{
|
|
257
|
+
sourceRelationSemantic: RelationSemantics.COMMENTS,
|
|
258
|
+
sourceFieldSemantic: Semantics.DESCRIPTION,
|
|
259
|
+
targetRelationSemantic: RelationSemantics.COMMENTS,
|
|
260
|
+
targetFieldSemantic: Semantics.DESCRIPTION,
|
|
261
|
+
value: 'On <strong>{semantic:createdAt}</strong>, <em>{semantic:user.fields.semantic:displayName}</em> commented:',
|
|
262
|
+
},
|
|
263
|
+
],
|
|
262
264
|
hidden: true,
|
|
263
265
|
},
|
|
264
266
|
decoratorPrefix: {
|
|
265
267
|
type: 'string',
|
|
266
268
|
description: `Prefix for the decorator. Defaults to "➤".`,
|
|
267
|
-
|
|
269
|
+
defaults: [
|
|
270
|
+
{
|
|
271
|
+
sourceRelationSemantic: RelationSemantics.COMMENTS,
|
|
272
|
+
sourceFieldSemantic: Semantics.DESCRIPTION,
|
|
273
|
+
targetRelationSemantic: RelationSemantics.COMMENTS,
|
|
274
|
+
targetFieldSemantic: Semantics.DESCRIPTION,
|
|
275
|
+
value: '➤',
|
|
276
|
+
},
|
|
277
|
+
],
|
|
268
278
|
hidden: true,
|
|
269
279
|
},
|
|
270
280
|
};
|
|
271
281
|
const markdownToRichTextConfiguration = {
|
|
272
|
-
decorator: {
|
|
273
|
-
type: 'boolean',
|
|
274
|
-
description: 'Decorate the content with author information and optional date.',
|
|
275
|
-
default: false,
|
|
276
|
-
hidden: true,
|
|
277
|
-
},
|
|
278
282
|
decoratorTemplate: {
|
|
279
283
|
type: 'stringWithSourceItemFields',
|
|
280
284
|
description: 'Template for the decorator. Use {author} and {date} placeholders.',
|
|
281
|
-
|
|
285
|
+
defaults: [
|
|
286
|
+
{
|
|
287
|
+
sourceRelationSemantic: RelationSemantics.COMMENTS,
|
|
288
|
+
sourceFieldSemantic: Semantics.DESCRIPTION,
|
|
289
|
+
targetRelationSemantic: RelationSemantics.COMMENTS,
|
|
290
|
+
targetFieldSemantic: Semantics.DESCRIPTION,
|
|
291
|
+
value: 'On **{semantic:createdAt}**, __{semantic:user.fields.semantic:displayName}__ commented:',
|
|
292
|
+
},
|
|
293
|
+
],
|
|
282
294
|
hidden: true,
|
|
283
295
|
},
|
|
284
296
|
decoratorPrefix: {
|
|
285
297
|
type: 'string',
|
|
286
298
|
description: `Prefix for the decorator. Defaults to "➤".`,
|
|
287
|
-
|
|
299
|
+
defaults: [
|
|
300
|
+
{
|
|
301
|
+
sourceRelationSemantic: RelationSemantics.COMMENTS,
|
|
302
|
+
sourceFieldSemantic: Semantics.DESCRIPTION,
|
|
303
|
+
targetRelationSemantic: RelationSemantics.COMMENTS,
|
|
304
|
+
targetFieldSemantic: Semantics.DESCRIPTION,
|
|
305
|
+
value: '➤',
|
|
306
|
+
},
|
|
307
|
+
],
|
|
288
308
|
hidden: true,
|
|
289
309
|
},
|
|
290
310
|
};
|
|
@@ -504,7 +524,7 @@ const fieldTypeCompatibilityMatrix = {
|
|
|
504
524
|
type: 'sideIdOfSameCollection',
|
|
505
525
|
description: 'If specified, only the references kept in sync in the specified link sides will be evaluated. An empty array means no side will be evaluated.',
|
|
506
526
|
isArray: true,
|
|
507
|
-
|
|
527
|
+
defaults: [{ value: [] }],
|
|
508
528
|
},
|
|
509
529
|
type: {
|
|
510
530
|
type: 'enum',
|
package/dist/src/types.d.ts
CHANGED
|
@@ -544,9 +544,15 @@ export interface WebhookAcknowledgeResponsePayload {
|
|
|
544
544
|
*/
|
|
545
545
|
export interface WebhookParsedItem {
|
|
546
546
|
/**
|
|
547
|
-
* The path of the item
|
|
547
|
+
* The relative path of the item targeted by this event.
|
|
548
|
+
* @deprecated use the itemSummary instead.
|
|
548
549
|
*/
|
|
549
550
|
itemPath: string;
|
|
551
|
+
/**
|
|
552
|
+
* The item summary of the item targeted by this event.
|
|
553
|
+
* as much as possible try to provide the canonical path within the item summary even if it's the same.
|
|
554
|
+
*/
|
|
555
|
+
itemSummary?: ItemSummary;
|
|
550
556
|
/**
|
|
551
557
|
* The date at which the event took place, expressed as an ISO 8601 string.
|
|
552
558
|
* e.g "2023-11-05T08:15:30.000-05:00"
|