datocms-plugin-sdk 0.3.3 → 0.3.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/cjs/connect.js.map +1 -1
- package/dist/esm/SiteApiSchema.d.ts +167 -83
- package/dist/esm/connect.d.ts +5 -1
- package/dist/esm/connect.js.map +1 -1
- package/dist/esm/types.d.ts +5 -5
- package/dist/types/SiteApiSchema.d.ts +167 -83
- package/dist/types/connect.d.ts +5 -1
- package/dist/types/types.d.ts +5 -5
- package/package.json +2 -2
- package/types.json +121 -121
package/types.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"sources": [
|
|
27
27
|
{
|
|
28
28
|
"fileName": "SiteApiSchema.ts",
|
|
29
|
-
"line":
|
|
29
|
+
"line": 1929,
|
|
30
30
|
"character": 2
|
|
31
31
|
}
|
|
32
32
|
],
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"sources": [
|
|
45
45
|
{
|
|
46
46
|
"fileName": "SiteApiSchema.ts",
|
|
47
|
-
"line":
|
|
47
|
+
"line": 1928,
|
|
48
48
|
"character": 2
|
|
49
49
|
}
|
|
50
50
|
],
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"sources": [
|
|
63
63
|
{
|
|
64
64
|
"fileName": "SiteApiSchema.ts",
|
|
65
|
-
"line":
|
|
65
|
+
"line": 1927,
|
|
66
66
|
"character": 2
|
|
67
67
|
}
|
|
68
68
|
],
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"sources": [
|
|
87
87
|
{
|
|
88
88
|
"fileName": "SiteApiSchema.ts",
|
|
89
|
-
"line":
|
|
89
|
+
"line": 1926,
|
|
90
90
|
"character": 17
|
|
91
91
|
}
|
|
92
92
|
]
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"kindString": "Interface",
|
|
99
99
|
"flags": {},
|
|
100
100
|
"comment": {
|
|
101
|
-
"shortText": "Each Model consists of a set of fields. Using the database metaphore, fields are like\ntable columns, and when creating them you need to specify their type (`string`, `
|
|
101
|
+
"shortText": "Each Model consists of a set of fields. Using the database metaphore, fields are like\ntable columns, and when creating them you need to specify their type (`string`,\n`file`, `float`, etc.) and any required validation.",
|
|
102
102
|
"text": "This interface was referenced by `DatoCMSSiteAPI`'s JSON-Schema via the `definition` \"field\".\n"
|
|
103
103
|
},
|
|
104
104
|
"children": [
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
"sources": [
|
|
112
112
|
{
|
|
113
113
|
"fileName": "SiteApiSchema.ts",
|
|
114
|
-
"line":
|
|
114
|
+
"line": 2539,
|
|
115
115
|
"character": 2
|
|
116
116
|
}
|
|
117
117
|
],
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"sources": [
|
|
130
130
|
{
|
|
131
131
|
"fileName": "SiteApiSchema.ts",
|
|
132
|
-
"line":
|
|
132
|
+
"line": 2538,
|
|
133
133
|
"character": 2
|
|
134
134
|
}
|
|
135
135
|
],
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"sources": [
|
|
148
148
|
{
|
|
149
149
|
"fileName": "SiteApiSchema.ts",
|
|
150
|
-
"line":
|
|
150
|
+
"line": 2540,
|
|
151
151
|
"character": 2
|
|
152
152
|
}
|
|
153
153
|
],
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
"sources": [
|
|
166
166
|
{
|
|
167
167
|
"fileName": "SiteApiSchema.ts",
|
|
168
|
-
"line":
|
|
168
|
+
"line": 2537,
|
|
169
169
|
"character": 2
|
|
170
170
|
}
|
|
171
171
|
],
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
"sources": [
|
|
191
191
|
{
|
|
192
192
|
"fileName": "SiteApiSchema.ts",
|
|
193
|
-
"line":
|
|
193
|
+
"line": 2536,
|
|
194
194
|
"character": 17
|
|
195
195
|
}
|
|
196
196
|
]
|
|
@@ -215,7 +215,7 @@
|
|
|
215
215
|
"sources": [
|
|
216
216
|
{
|
|
217
217
|
"fileName": "SiteApiSchema.ts",
|
|
218
|
-
"line":
|
|
218
|
+
"line": 3563,
|
|
219
219
|
"character": 2
|
|
220
220
|
}
|
|
221
221
|
],
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
"sources": [
|
|
234
234
|
{
|
|
235
235
|
"fileName": "SiteApiSchema.ts",
|
|
236
|
-
"line":
|
|
236
|
+
"line": 3562,
|
|
237
237
|
"character": 2
|
|
238
238
|
}
|
|
239
239
|
],
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
"sources": [
|
|
252
252
|
{
|
|
253
253
|
"fileName": "SiteApiSchema.ts",
|
|
254
|
-
"line":
|
|
254
|
+
"line": 3565,
|
|
255
255
|
"character": 2
|
|
256
256
|
}
|
|
257
257
|
],
|
|
@@ -269,7 +269,7 @@
|
|
|
269
269
|
"sources": [
|
|
270
270
|
{
|
|
271
271
|
"fileName": "SiteApiSchema.ts",
|
|
272
|
-
"line":
|
|
272
|
+
"line": 3564,
|
|
273
273
|
"character": 2
|
|
274
274
|
}
|
|
275
275
|
],
|
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
"sources": [
|
|
288
288
|
{
|
|
289
289
|
"fileName": "SiteApiSchema.ts",
|
|
290
|
-
"line":
|
|
290
|
+
"line": 3561,
|
|
291
291
|
"character": 2
|
|
292
292
|
}
|
|
293
293
|
],
|
|
@@ -313,7 +313,7 @@
|
|
|
313
313
|
"sources": [
|
|
314
314
|
{
|
|
315
315
|
"fileName": "SiteApiSchema.ts",
|
|
316
|
-
"line":
|
|
316
|
+
"line": 3560,
|
|
317
317
|
"character": 17
|
|
318
318
|
}
|
|
319
319
|
]
|
|
@@ -326,7 +326,7 @@
|
|
|
326
326
|
"flags": {},
|
|
327
327
|
"comment": {
|
|
328
328
|
"shortText": "The way you define the kind of content you can edit inside your administrative area\npasses through the concept of Models, which are much like database tables. For\nbackward-compatibility reasons, the API refers to models as \"item types\".",
|
|
329
|
-
"text": "This interface was referenced by `DatoCMSSiteAPI`'s JSON-Schema via the `definition
|
|
329
|
+
"text": "This interface was referenced by `DatoCMSSiteAPI`'s JSON-Schema via the `definition`\n\"item_type\".\n"
|
|
330
330
|
},
|
|
331
331
|
"children": [
|
|
332
332
|
{
|
|
@@ -338,7 +338,7 @@
|
|
|
338
338
|
"sources": [
|
|
339
339
|
{
|
|
340
340
|
"fileName": "SiteApiSchema.ts",
|
|
341
|
-
"line":
|
|
341
|
+
"line": 2261,
|
|
342
342
|
"character": 2
|
|
343
343
|
}
|
|
344
344
|
],
|
|
@@ -356,7 +356,7 @@
|
|
|
356
356
|
"sources": [
|
|
357
357
|
{
|
|
358
358
|
"fileName": "SiteApiSchema.ts",
|
|
359
|
-
"line":
|
|
359
|
+
"line": 2260,
|
|
360
360
|
"character": 2
|
|
361
361
|
}
|
|
362
362
|
],
|
|
@@ -374,7 +374,7 @@
|
|
|
374
374
|
"sources": [
|
|
375
375
|
{
|
|
376
376
|
"fileName": "SiteApiSchema.ts",
|
|
377
|
-
"line":
|
|
377
|
+
"line": 2262,
|
|
378
378
|
"character": 2
|
|
379
379
|
}
|
|
380
380
|
],
|
|
@@ -392,7 +392,7 @@
|
|
|
392
392
|
"sources": [
|
|
393
393
|
{
|
|
394
394
|
"fileName": "SiteApiSchema.ts",
|
|
395
|
-
"line":
|
|
395
|
+
"line": 2259,
|
|
396
396
|
"character": 2
|
|
397
397
|
}
|
|
398
398
|
],
|
|
@@ -417,7 +417,7 @@
|
|
|
417
417
|
"sources": [
|
|
418
418
|
{
|
|
419
419
|
"fileName": "SiteApiSchema.ts",
|
|
420
|
-
"line":
|
|
420
|
+
"line": 2258,
|
|
421
421
|
"character": 17
|
|
422
422
|
}
|
|
423
423
|
]
|
|
@@ -442,7 +442,7 @@
|
|
|
442
442
|
"sources": [
|
|
443
443
|
{
|
|
444
444
|
"fileName": "SiteApiSchema.ts",
|
|
445
|
-
"line":
|
|
445
|
+
"line": 3165,
|
|
446
446
|
"character": 2
|
|
447
447
|
}
|
|
448
448
|
],
|
|
@@ -460,7 +460,7 @@
|
|
|
460
460
|
"sources": [
|
|
461
461
|
{
|
|
462
462
|
"fileName": "SiteApiSchema.ts",
|
|
463
|
-
"line":
|
|
463
|
+
"line": 3164,
|
|
464
464
|
"character": 2
|
|
465
465
|
}
|
|
466
466
|
],
|
|
@@ -478,7 +478,7 @@
|
|
|
478
478
|
"sources": [
|
|
479
479
|
{
|
|
480
480
|
"fileName": "SiteApiSchema.ts",
|
|
481
|
-
"line":
|
|
481
|
+
"line": 3166,
|
|
482
482
|
"character": 2
|
|
483
483
|
}
|
|
484
484
|
],
|
|
@@ -496,7 +496,7 @@
|
|
|
496
496
|
"sources": [
|
|
497
497
|
{
|
|
498
498
|
"fileName": "SiteApiSchema.ts",
|
|
499
|
-
"line":
|
|
499
|
+
"line": 3163,
|
|
500
500
|
"character": 2
|
|
501
501
|
}
|
|
502
502
|
],
|
|
@@ -521,7 +521,7 @@
|
|
|
521
521
|
"sources": [
|
|
522
522
|
{
|
|
523
523
|
"fileName": "SiteApiSchema.ts",
|
|
524
|
-
"line":
|
|
524
|
+
"line": 3162,
|
|
525
525
|
"character": 17
|
|
526
526
|
}
|
|
527
527
|
]
|
|
@@ -546,7 +546,7 @@
|
|
|
546
546
|
"sources": [
|
|
547
547
|
{
|
|
548
548
|
"fileName": "SiteApiSchema.ts",
|
|
549
|
-
"line":
|
|
549
|
+
"line": 930,
|
|
550
550
|
"character": 2
|
|
551
551
|
}
|
|
552
552
|
],
|
|
@@ -564,7 +564,7 @@
|
|
|
564
564
|
"sources": [
|
|
565
565
|
{
|
|
566
566
|
"fileName": "SiteApiSchema.ts",
|
|
567
|
-
"line":
|
|
567
|
+
"line": 929,
|
|
568
568
|
"character": 2
|
|
569
569
|
}
|
|
570
570
|
],
|
|
@@ -582,7 +582,7 @@
|
|
|
582
582
|
"sources": [
|
|
583
583
|
{
|
|
584
584
|
"fileName": "SiteApiSchema.ts",
|
|
585
|
-
"line":
|
|
585
|
+
"line": 932,
|
|
586
586
|
"character": 2
|
|
587
587
|
}
|
|
588
588
|
],
|
|
@@ -600,7 +600,7 @@
|
|
|
600
600
|
"sources": [
|
|
601
601
|
{
|
|
602
602
|
"fileName": "SiteApiSchema.ts",
|
|
603
|
-
"line":
|
|
603
|
+
"line": 931,
|
|
604
604
|
"character": 2
|
|
605
605
|
}
|
|
606
606
|
],
|
|
@@ -618,7 +618,7 @@
|
|
|
618
618
|
"sources": [
|
|
619
619
|
{
|
|
620
620
|
"fileName": "SiteApiSchema.ts",
|
|
621
|
-
"line":
|
|
621
|
+
"line": 928,
|
|
622
622
|
"character": 2
|
|
623
623
|
}
|
|
624
624
|
],
|
|
@@ -644,7 +644,7 @@
|
|
|
644
644
|
"sources": [
|
|
645
645
|
{
|
|
646
646
|
"fileName": "SiteApiSchema.ts",
|
|
647
|
-
"line":
|
|
647
|
+
"line": 927,
|
|
648
648
|
"character": 17
|
|
649
649
|
}
|
|
650
650
|
]
|
|
@@ -669,7 +669,7 @@
|
|
|
669
669
|
"sources": [
|
|
670
670
|
{
|
|
671
671
|
"fileName": "SiteApiSchema.ts",
|
|
672
|
-
"line":
|
|
672
|
+
"line": 6053,
|
|
673
673
|
"character": 2
|
|
674
674
|
}
|
|
675
675
|
],
|
|
@@ -687,7 +687,7 @@
|
|
|
687
687
|
"sources": [
|
|
688
688
|
{
|
|
689
689
|
"fileName": "SiteApiSchema.ts",
|
|
690
|
-
"line":
|
|
690
|
+
"line": 6052,
|
|
691
691
|
"character": 2
|
|
692
692
|
}
|
|
693
693
|
],
|
|
@@ -705,7 +705,7 @@
|
|
|
705
705
|
"sources": [
|
|
706
706
|
{
|
|
707
707
|
"fileName": "SiteApiSchema.ts",
|
|
708
|
-
"line":
|
|
708
|
+
"line": 6054,
|
|
709
709
|
"character": 2
|
|
710
710
|
}
|
|
711
711
|
],
|
|
@@ -723,7 +723,7 @@
|
|
|
723
723
|
"sources": [
|
|
724
724
|
{
|
|
725
725
|
"fileName": "SiteApiSchema.ts",
|
|
726
|
-
"line":
|
|
726
|
+
"line": 6051,
|
|
727
727
|
"character": 2
|
|
728
728
|
}
|
|
729
729
|
],
|
|
@@ -748,7 +748,7 @@
|
|
|
748
748
|
"sources": [
|
|
749
749
|
{
|
|
750
750
|
"fileName": "SiteApiSchema.ts",
|
|
751
|
-
"line":
|
|
751
|
+
"line": 6050,
|
|
752
752
|
"character": 17
|
|
753
753
|
}
|
|
754
754
|
]
|
|
@@ -773,7 +773,7 @@
|
|
|
773
773
|
"sources": [
|
|
774
774
|
{
|
|
775
775
|
"fileName": "SiteApiSchema.ts",
|
|
776
|
-
"line":
|
|
776
|
+
"line": 1717,
|
|
777
777
|
"character": 2
|
|
778
778
|
}
|
|
779
779
|
],
|
|
@@ -791,7 +791,7 @@
|
|
|
791
791
|
"sources": [
|
|
792
792
|
{
|
|
793
793
|
"fileName": "SiteApiSchema.ts",
|
|
794
|
-
"line":
|
|
794
|
+
"line": 1716,
|
|
795
795
|
"character": 2
|
|
796
796
|
}
|
|
797
797
|
],
|
|
@@ -809,7 +809,7 @@
|
|
|
809
809
|
"sources": [
|
|
810
810
|
{
|
|
811
811
|
"fileName": "SiteApiSchema.ts",
|
|
812
|
-
"line":
|
|
812
|
+
"line": 1719,
|
|
813
813
|
"character": 2
|
|
814
814
|
}
|
|
815
815
|
],
|
|
@@ -827,7 +827,7 @@
|
|
|
827
827
|
"sources": [
|
|
828
828
|
{
|
|
829
829
|
"fileName": "SiteApiSchema.ts",
|
|
830
|
-
"line":
|
|
830
|
+
"line": 1718,
|
|
831
831
|
"character": 2
|
|
832
832
|
}
|
|
833
833
|
],
|
|
@@ -845,7 +845,7 @@
|
|
|
845
845
|
"sources": [
|
|
846
846
|
{
|
|
847
847
|
"fileName": "SiteApiSchema.ts",
|
|
848
|
-
"line":
|
|
848
|
+
"line": 1715,
|
|
849
849
|
"character": 2
|
|
850
850
|
}
|
|
851
851
|
],
|
|
@@ -871,7 +871,7 @@
|
|
|
871
871
|
"sources": [
|
|
872
872
|
{
|
|
873
873
|
"fileName": "SiteApiSchema.ts",
|
|
874
|
-
"line":
|
|
874
|
+
"line": 1714,
|
|
875
875
|
"character": 17
|
|
876
876
|
}
|
|
877
877
|
]
|
|
@@ -896,7 +896,7 @@
|
|
|
896
896
|
"sources": [
|
|
897
897
|
{
|
|
898
898
|
"fileName": "SiteApiSchema.ts",
|
|
899
|
-
"line":
|
|
899
|
+
"line": 4044,
|
|
900
900
|
"character": 2
|
|
901
901
|
}
|
|
902
902
|
],
|
|
@@ -914,7 +914,7 @@
|
|
|
914
914
|
"sources": [
|
|
915
915
|
{
|
|
916
916
|
"fileName": "SiteApiSchema.ts",
|
|
917
|
-
"line":
|
|
917
|
+
"line": 4043,
|
|
918
918
|
"character": 2
|
|
919
919
|
}
|
|
920
920
|
],
|
|
@@ -932,7 +932,7 @@
|
|
|
932
932
|
"sources": [
|
|
933
933
|
{
|
|
934
934
|
"fileName": "SiteApiSchema.ts",
|
|
935
|
-
"line":
|
|
935
|
+
"line": 4045,
|
|
936
936
|
"character": 2
|
|
937
937
|
}
|
|
938
938
|
],
|
|
@@ -950,7 +950,7 @@
|
|
|
950
950
|
"sources": [
|
|
951
951
|
{
|
|
952
952
|
"fileName": "SiteApiSchema.ts",
|
|
953
|
-
"line":
|
|
953
|
+
"line": 4042,
|
|
954
954
|
"character": 2
|
|
955
955
|
}
|
|
956
956
|
],
|
|
@@ -975,7 +975,7 @@
|
|
|
975
975
|
"sources": [
|
|
976
976
|
{
|
|
977
977
|
"fileName": "SiteApiSchema.ts",
|
|
978
|
-
"line":
|
|
978
|
+
"line": 4041,
|
|
979
979
|
"character": 17
|
|
980
980
|
}
|
|
981
981
|
]
|
|
@@ -987,7 +987,7 @@
|
|
|
987
987
|
"kindString": "Interface",
|
|
988
988
|
"flags": {},
|
|
989
989
|
"comment": {
|
|
990
|
-
"shortText": "A DatoCMS administrative area can be accessed by multiple people. Every collaborator
|
|
990
|
+
"shortText": "A DatoCMS administrative area can be accessed by multiple people. Every collaborator\nis linked to a specific Role, which describes what actions it will be able to perform\nonce logged in.",
|
|
991
991
|
"text": "This interface was referenced by `DatoCMSSiteAPI`'s JSON-Schema via the `definition` \"user\".\n"
|
|
992
992
|
},
|
|
993
993
|
"children": [
|
|
@@ -1000,7 +1000,7 @@
|
|
|
1000
1000
|
"sources": [
|
|
1001
1001
|
{
|
|
1002
1002
|
"fileName": "SiteApiSchema.ts",
|
|
1003
|
-
"line":
|
|
1003
|
+
"line": 1626,
|
|
1004
1004
|
"character": 2
|
|
1005
1005
|
}
|
|
1006
1006
|
],
|
|
@@ -1018,7 +1018,7 @@
|
|
|
1018
1018
|
"sources": [
|
|
1019
1019
|
{
|
|
1020
1020
|
"fileName": "SiteApiSchema.ts",
|
|
1021
|
-
"line":
|
|
1021
|
+
"line": 1625,
|
|
1022
1022
|
"character": 2
|
|
1023
1023
|
}
|
|
1024
1024
|
],
|
|
@@ -1038,7 +1038,7 @@
|
|
|
1038
1038
|
"sources": [
|
|
1039
1039
|
{
|
|
1040
1040
|
"fileName": "SiteApiSchema.ts",
|
|
1041
|
-
"line":
|
|
1041
|
+
"line": 1628,
|
|
1042
1042
|
"character": 2
|
|
1043
1043
|
}
|
|
1044
1044
|
],
|
|
@@ -1056,7 +1056,7 @@
|
|
|
1056
1056
|
"sources": [
|
|
1057
1057
|
{
|
|
1058
1058
|
"fileName": "SiteApiSchema.ts",
|
|
1059
|
-
"line":
|
|
1059
|
+
"line": 1627,
|
|
1060
1060
|
"character": 2
|
|
1061
1061
|
}
|
|
1062
1062
|
],
|
|
@@ -1074,7 +1074,7 @@
|
|
|
1074
1074
|
"sources": [
|
|
1075
1075
|
{
|
|
1076
1076
|
"fileName": "SiteApiSchema.ts",
|
|
1077
|
-
"line":
|
|
1077
|
+
"line": 1624,
|
|
1078
1078
|
"character": 2
|
|
1079
1079
|
}
|
|
1080
1080
|
],
|
|
@@ -1100,7 +1100,7 @@
|
|
|
1100
1100
|
"sources": [
|
|
1101
1101
|
{
|
|
1102
1102
|
"fileName": "SiteApiSchema.ts",
|
|
1103
|
-
"line":
|
|
1103
|
+
"line": 1623,
|
|
1104
1104
|
"character": 17
|
|
1105
1105
|
}
|
|
1106
1106
|
]
|
|
@@ -1278,36 +1278,6 @@
|
|
|
1278
1278
|
"kindString": "Type literal",
|
|
1279
1279
|
"flags": {},
|
|
1280
1280
|
"children": [
|
|
1281
|
-
{
|
|
1282
|
-
"id": 259,
|
|
1283
|
-
"name": "currentAccessToken",
|
|
1284
|
-
"kind": 1024,
|
|
1285
|
-
"kindString": "Property",
|
|
1286
|
-
"flags": {},
|
|
1287
|
-
"comment": {
|
|
1288
|
-
"shortText": "The access token to perform API calls on behalf of the current user. Only available\nif `currentAccessToken` permission is granted"
|
|
1289
|
-
},
|
|
1290
|
-
"sources": [
|
|
1291
|
-
{
|
|
1292
|
-
"fileName": "types.ts",
|
|
1293
|
-
"line": 385,
|
|
1294
|
-
"character": 2
|
|
1295
|
-
}
|
|
1296
|
-
],
|
|
1297
|
-
"type": {
|
|
1298
|
-
"type": "union",
|
|
1299
|
-
"types": [
|
|
1300
|
-
{
|
|
1301
|
-
"type": "intrinsic",
|
|
1302
|
-
"name": "string"
|
|
1303
|
-
},
|
|
1304
|
-
{
|
|
1305
|
-
"type": "intrinsic",
|
|
1306
|
-
"name": "undefined"
|
|
1307
|
-
}
|
|
1308
|
-
]
|
|
1309
|
-
}
|
|
1310
|
-
},
|
|
1311
1281
|
{
|
|
1312
1282
|
"id": 258,
|
|
1313
1283
|
"name": "currentRole",
|
|
@@ -1367,6 +1337,36 @@
|
|
|
1367
1337
|
]
|
|
1368
1338
|
}
|
|
1369
1339
|
},
|
|
1340
|
+
{
|
|
1341
|
+
"id": 259,
|
|
1342
|
+
"name": "currentUserAccessToken",
|
|
1343
|
+
"kind": 1024,
|
|
1344
|
+
"kindString": "Property",
|
|
1345
|
+
"flags": {},
|
|
1346
|
+
"comment": {
|
|
1347
|
+
"shortText": "The access token to perform API calls on behalf of the current user. Only available\nif `currentUserAccessToken` additional permission is granted"
|
|
1348
|
+
},
|
|
1349
|
+
"sources": [
|
|
1350
|
+
{
|
|
1351
|
+
"fileName": "types.ts",
|
|
1352
|
+
"line": 385,
|
|
1353
|
+
"character": 2
|
|
1354
|
+
}
|
|
1355
|
+
],
|
|
1356
|
+
"type": {
|
|
1357
|
+
"type": "union",
|
|
1358
|
+
"types": [
|
|
1359
|
+
{
|
|
1360
|
+
"type": "intrinsic",
|
|
1361
|
+
"name": "string"
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
"type": "intrinsic",
|
|
1365
|
+
"name": "undefined"
|
|
1366
|
+
}
|
|
1367
|
+
]
|
|
1368
|
+
}
|
|
1369
|
+
},
|
|
1370
1370
|
{
|
|
1371
1371
|
"id": 255,
|
|
1372
1372
|
"name": "environment",
|
|
@@ -1542,9 +1542,9 @@
|
|
|
1542
1542
|
"title": "Properties",
|
|
1543
1543
|
"kind": 1024,
|
|
1544
1544
|
"children": [
|
|
1545
|
-
259,
|
|
1546
1545
|
258,
|
|
1547
1546
|
257,
|
|
1547
|
+
259,
|
|
1548
1548
|
255,
|
|
1549
1549
|
256,
|
|
1550
1550
|
260,
|
|
@@ -3138,7 +3138,7 @@
|
|
|
3138
3138
|
"sources": [
|
|
3139
3139
|
{
|
|
3140
3140
|
"fileName": "connect.ts",
|
|
3141
|
-
"line":
|
|
3141
|
+
"line": 58,
|
|
3142
3142
|
"character": 12
|
|
3143
3143
|
}
|
|
3144
3144
|
],
|
|
@@ -3168,7 +3168,7 @@
|
|
|
3168
3168
|
"sources": [
|
|
3169
3169
|
{
|
|
3170
3170
|
"fileName": "connect.ts",
|
|
3171
|
-
"line":
|
|
3171
|
+
"line": 59,
|
|
3172
3172
|
"character": 2
|
|
3173
3173
|
}
|
|
3174
3174
|
],
|
|
@@ -3191,7 +3191,7 @@
|
|
|
3191
3191
|
"sources": [
|
|
3192
3192
|
{
|
|
3193
3193
|
"fileName": "connect.ts",
|
|
3194
|
-
"line":
|
|
3194
|
+
"line": 58,
|
|
3195
3195
|
"character": 56
|
|
3196
3196
|
}
|
|
3197
3197
|
]
|
|
@@ -3492,7 +3492,7 @@
|
|
|
3492
3492
|
"sources": [
|
|
3493
3493
|
{
|
|
3494
3494
|
"fileName": "connect.ts",
|
|
3495
|
-
"line":
|
|
3495
|
+
"line": 73,
|
|
3496
3496
|
"character": 12
|
|
3497
3497
|
}
|
|
3498
3498
|
],
|
|
@@ -3514,7 +3514,7 @@
|
|
|
3514
3514
|
"sources": [
|
|
3515
3515
|
{
|
|
3516
3516
|
"fileName": "connect.ts",
|
|
3517
|
-
"line":
|
|
3517
|
+
"line": 98,
|
|
3518
3518
|
"character": 2
|
|
3519
3519
|
}
|
|
3520
3520
|
],
|
|
@@ -3568,7 +3568,7 @@
|
|
|
3568
3568
|
"sources": [
|
|
3569
3569
|
{
|
|
3570
3570
|
"fileName": "connect.ts",
|
|
3571
|
-
"line":
|
|
3571
|
+
"line": 112,
|
|
3572
3572
|
"character": 2
|
|
3573
3573
|
}
|
|
3574
3574
|
],
|
|
@@ -3634,7 +3634,7 @@
|
|
|
3634
3634
|
"sources": [
|
|
3635
3635
|
{
|
|
3636
3636
|
"fileName": "connect.ts",
|
|
3637
|
-
"line":
|
|
3637
|
+
"line": 86,
|
|
3638
3638
|
"character": 2
|
|
3639
3639
|
}
|
|
3640
3640
|
],
|
|
@@ -3688,7 +3688,7 @@
|
|
|
3688
3688
|
"sources": [
|
|
3689
3689
|
{
|
|
3690
3690
|
"fileName": "connect.ts",
|
|
3691
|
-
"line":
|
|
3691
|
+
"line": 105,
|
|
3692
3692
|
"character": 2
|
|
3693
3693
|
}
|
|
3694
3694
|
],
|
|
@@ -3742,7 +3742,7 @@
|
|
|
3742
3742
|
"sources": [
|
|
3743
3743
|
{
|
|
3744
3744
|
"fileName": "connect.ts",
|
|
3745
|
-
"line":
|
|
3745
|
+
"line": 80,
|
|
3746
3746
|
"character": 2
|
|
3747
3747
|
}
|
|
3748
3748
|
],
|
|
@@ -3792,7 +3792,7 @@
|
|
|
3792
3792
|
"sources": [
|
|
3793
3793
|
{
|
|
3794
3794
|
"fileName": "connect.ts",
|
|
3795
|
-
"line":
|
|
3795
|
+
"line": 118,
|
|
3796
3796
|
"character": 2
|
|
3797
3797
|
}
|
|
3798
3798
|
],
|
|
@@ -3864,7 +3864,7 @@
|
|
|
3864
3864
|
"sources": [
|
|
3865
3865
|
{
|
|
3866
3866
|
"fileName": "connect.ts",
|
|
3867
|
-
"line":
|
|
3867
|
+
"line": 127,
|
|
3868
3868
|
"character": 2
|
|
3869
3869
|
}
|
|
3870
3870
|
],
|
|
@@ -3914,7 +3914,7 @@
|
|
|
3914
3914
|
"sources": [
|
|
3915
3915
|
{
|
|
3916
3916
|
"fileName": "connect.ts",
|
|
3917
|
-
"line":
|
|
3917
|
+
"line": 158,
|
|
3918
3918
|
"character": 2
|
|
3919
3919
|
}
|
|
3920
3920
|
],
|
|
@@ -3975,7 +3975,7 @@
|
|
|
3975
3975
|
"sources": [
|
|
3976
3976
|
{
|
|
3977
3977
|
"fileName": "connect.ts",
|
|
3978
|
-
"line":
|
|
3978
|
+
"line": 148,
|
|
3979
3979
|
"character": 2
|
|
3980
3980
|
}
|
|
3981
3981
|
],
|
|
@@ -4036,7 +4036,7 @@
|
|
|
4036
4036
|
"sources": [
|
|
4037
4037
|
{
|
|
4038
4038
|
"fileName": "connect.ts",
|
|
4039
|
-
"line":
|
|
4039
|
+
"line": 165,
|
|
4040
4040
|
"character": 2
|
|
4041
4041
|
}
|
|
4042
4042
|
],
|
|
@@ -4097,7 +4097,7 @@
|
|
|
4097
4097
|
"sources": [
|
|
4098
4098
|
{
|
|
4099
4099
|
"fileName": "connect.ts",
|
|
4100
|
-
"line":
|
|
4100
|
+
"line": 141,
|
|
4101
4101
|
"character": 2
|
|
4102
4102
|
}
|
|
4103
4103
|
],
|
|
@@ -4158,7 +4158,7 @@
|
|
|
4158
4158
|
"sources": [
|
|
4159
4159
|
{
|
|
4160
4160
|
"fileName": "connect.ts",
|
|
4161
|
-
"line":
|
|
4161
|
+
"line": 134,
|
|
4162
4162
|
"character": 2
|
|
4163
4163
|
}
|
|
4164
4164
|
],
|
|
@@ -4219,7 +4219,7 @@
|
|
|
4219
4219
|
"sources": [
|
|
4220
4220
|
{
|
|
4221
4221
|
"fileName": "connect.ts",
|
|
4222
|
-
"line":
|
|
4222
|
+
"line": 92,
|
|
4223
4223
|
"character": 2
|
|
4224
4224
|
}
|
|
4225
4225
|
],
|
|
@@ -4273,7 +4273,7 @@
|
|
|
4273
4273
|
"sources": [
|
|
4274
4274
|
{
|
|
4275
4275
|
"fileName": "connect.ts",
|
|
4276
|
-
"line":
|
|
4276
|
+
"line": 175,
|
|
4277
4277
|
"character": 2
|
|
4278
4278
|
}
|
|
4279
4279
|
],
|
|
@@ -4395,7 +4395,7 @@
|
|
|
4395
4395
|
"sources": [
|
|
4396
4396
|
{
|
|
4397
4397
|
"fileName": "connect.ts",
|
|
4398
|
-
"line":
|
|
4398
|
+
"line": 73,
|
|
4399
4399
|
"character": 36
|
|
4400
4400
|
}
|
|
4401
4401
|
]
|
|
@@ -4699,7 +4699,7 @@
|
|
|
4699
4699
|
"sources": [
|
|
4700
4700
|
{
|
|
4701
4701
|
"fileName": "connect.ts",
|
|
4702
|
-
"line":
|
|
4702
|
+
"line": 56,
|
|
4703
4703
|
"character": 12
|
|
4704
4704
|
}
|
|
4705
4705
|
],
|
|
@@ -6144,7 +6144,7 @@
|
|
|
6144
6144
|
"tags": [
|
|
6145
6145
|
{
|
|
6146
6146
|
"tag": "example",
|
|
6147
|
-
"text": "\n const
|
|
6147
|
+
"text": "\n const itemTypeId = prompt('Please insert a model ID:');\n\n const fields = await ctx.loadItemTypeFields(itemTypeId);\n\n ctx.notice(\n `Success! ${fields.map((field) => field.attributes.api_key).join(', ')}`,\n );\n"
|
|
6148
6148
|
}
|
|
6149
6149
|
]
|
|
6150
6150
|
},
|
|
@@ -7314,7 +7314,7 @@
|
|
|
7314
7314
|
"sources": [
|
|
7315
7315
|
{
|
|
7316
7316
|
"fileName": "connect.ts",
|
|
7317
|
-
"line":
|
|
7317
|
+
"line": 57,
|
|
7318
7318
|
"character": 12
|
|
7319
7319
|
}
|
|
7320
7320
|
],
|
|
@@ -7805,7 +7805,7 @@
|
|
|
7805
7805
|
"sources": [
|
|
7806
7806
|
{
|
|
7807
7807
|
"fileName": "connect.ts",
|
|
7808
|
-
"line":
|
|
7808
|
+
"line": 69,
|
|
7809
7809
|
"character": 12
|
|
7810
7810
|
}
|
|
7811
7811
|
],
|
|
@@ -8240,7 +8240,7 @@
|
|
|
8240
8240
|
"sources": [
|
|
8241
8241
|
{
|
|
8242
8242
|
"fileName": "connect.ts",
|
|
8243
|
-
"line":
|
|
8243
|
+
"line": 65,
|
|
8244
8244
|
"character": 12
|
|
8245
8245
|
}
|
|
8246
8246
|
],
|
|
@@ -8356,7 +8356,7 @@
|
|
|
8356
8356
|
"sources": [
|
|
8357
8357
|
{
|
|
8358
8358
|
"fileName": "connect.ts",
|
|
8359
|
-
"line":
|
|
8359
|
+
"line": 63,
|
|
8360
8360
|
"character": 12
|
|
8361
8361
|
}
|
|
8362
8362
|
],
|
|
@@ -8679,7 +8679,7 @@
|
|
|
8679
8679
|
"sources": [
|
|
8680
8680
|
{
|
|
8681
8681
|
"fileName": "connect.ts",
|
|
8682
|
-
"line":
|
|
8682
|
+
"line": 67,
|
|
8683
8683
|
"character": 12
|
|
8684
8684
|
}
|
|
8685
8685
|
],
|
|
@@ -9096,7 +9096,7 @@
|
|
|
9096
9096
|
"sources": [
|
|
9097
9097
|
{
|
|
9098
9098
|
"fileName": "connect.ts",
|
|
9099
|
-
"line":
|
|
9099
|
+
"line": 62,
|
|
9100
9100
|
"character": 12
|
|
9101
9101
|
}
|
|
9102
9102
|
],
|
|
@@ -9378,7 +9378,7 @@
|
|
|
9378
9378
|
"sources": [
|
|
9379
9379
|
{
|
|
9380
9380
|
"fileName": "connect.ts",
|
|
9381
|
-
"line":
|
|
9381
|
+
"line": 61,
|
|
9382
9382
|
"character": 12
|
|
9383
9383
|
}
|
|
9384
9384
|
],
|
|
@@ -10158,7 +10158,7 @@
|
|
|
10158
10158
|
"sources": [
|
|
10159
10159
|
{
|
|
10160
10160
|
"fileName": "connect.ts",
|
|
10161
|
-
"line":
|
|
10161
|
+
"line": 44,
|
|
10162
10162
|
"character": 2
|
|
10163
10163
|
}
|
|
10164
10164
|
],
|
|
@@ -10170,7 +10170,7 @@
|
|
|
10170
10170
|
"kindString": "Call signature",
|
|
10171
10171
|
"flags": {},
|
|
10172
10172
|
"comment": {
|
|
10173
|
-
"shortText": "Listens for DOM changes and automatically calls `setHeight` when it detects a change"
|
|
10173
|
+
"shortText": "Listens for DOM changes and automatically calls `setHeight` when it detects a change.\nIf you're using `datocms-react-ui` package, the `<Canvas />` component already takes\ncare of calling this method for you."
|
|
10174
10174
|
},
|
|
10175
10175
|
"type": {
|
|
10176
10176
|
"type": "intrinsic",
|
|
@@ -10188,7 +10188,7 @@
|
|
|
10188
10188
|
"sources": [
|
|
10189
10189
|
{
|
|
10190
10190
|
"fileName": "connect.ts",
|
|
10191
|
-
"line":
|
|
10191
|
+
"line": 46,
|
|
10192
10192
|
"character": 2
|
|
10193
10193
|
}
|
|
10194
10194
|
],
|
|
@@ -10218,7 +10218,7 @@
|
|
|
10218
10218
|
"sources": [
|
|
10219
10219
|
{
|
|
10220
10220
|
"fileName": "connect.ts",
|
|
10221
|
-
"line":
|
|
10221
|
+
"line": 51,
|
|
10222
10222
|
"character": 2
|
|
10223
10223
|
}
|
|
10224
10224
|
],
|
|
@@ -10972,7 +10972,7 @@
|
|
|
10972
10972
|
"tags": [
|
|
10973
10973
|
{
|
|
10974
10974
|
"tag": "example",
|
|
10975
|
-
"text": "\n const fields = await ctx.loadFieldsUsingPlugin();\n\n if (fields.length === 0) {\n ctx.alert('No field is using this plugin as a manual extension!');\n return;\n }\n\n for (const field of fields) {\n const { appearance } = field.attributes;\n const operations = [];\n\n if (appearance.editor === ctx.plugin.id) {\n operations.push({\n operation: 'updateEditor',\n newParameters: {\n ...appearance.parameters,\n foo: 'bar',\n },\n });\n }\n\n appearance.addons.forEach((addon, i) => {\n if (addon.id !== ctx.plugin.id) {\n return;\n }\n\n operations.push({\n operation: 'updateAddon',\n index: i,\n newParameters: { ...addon.parameters, foo: 'bar' },\n });\n });\n\n await ctx.updateFieldAppearance(field.id, operations);\n
|
|
10975
|
+
"text": "\n const fields = await ctx.loadFieldsUsingPlugin();\n\n if (fields.length === 0) {\n ctx.alert('No field is using this plugin as a manual extension!');\n return;\n }\n\n for (const field of fields) {\n const { appearance } = field.attributes;\n const operations = [];\n\n if (appearance.editor === ctx.plugin.id) {\n operations.push({\n operation: 'updateEditor',\n newParameters: {\n ...appearance.parameters,\n foo: 'bar',\n },\n });\n }\n\n appearance.addons.forEach((addon, i) => {\n if (addon.id !== ctx.plugin.id) {\n return;\n }\n\n operations.push({\n operation: 'updateAddon',\n index: i,\n newParameters: { ...addon.parameters, foo: 'bar' },\n });\n });\n\n await ctx.updateFieldAppearance(field.id, operations);\n ctx.notice(`Successfully edited field ${field.attributes.api_key}`);\n }\n"
|
|
10976
10976
|
}
|
|
10977
10977
|
]
|
|
10978
10978
|
},
|
|
@@ -11563,7 +11563,7 @@
|
|
|
11563
11563
|
"sources": [
|
|
11564
11564
|
{
|
|
11565
11565
|
"fileName": "connect.ts",
|
|
11566
|
-
"line":
|
|
11566
|
+
"line": 270,
|
|
11567
11567
|
"character": 22
|
|
11568
11568
|
}
|
|
11569
11569
|
],
|