datocms-plugin-sdk 0.3.24-alpha.3 → 0.3.24-alpha.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.
@@ -1121,7 +1121,7 @@ export declare type NewUpload = {
1121
1121
  * An hash containing, for each locale of the project, the default metadata to
1122
1122
  * apply to the asset
1123
1123
  */
1124
- defaultFieldMetadata?: NonNullable<Record<string, UploadCreateSchema['data']['attributes']['default_field_metadata']>>;
1124
+ default_field_metadata?: UploadCreateSchema['data']['attributes']['default_field_metadata'];
1125
1125
  };
1126
1126
  /** Use these methods to confirm */
1127
1127
  export declare type RenderAssetSourceAdditionalMethods = {
@@ -1121,7 +1121,7 @@ export declare type NewUpload = {
1121
1121
  * An hash containing, for each locale of the project, the default metadata to
1122
1122
  * apply to the asset
1123
1123
  */
1124
- defaultFieldMetadata?: NonNullable<Record<string, UploadCreateSchema['data']['attributes']['default_field_metadata']>>;
1124
+ default_field_metadata?: UploadCreateSchema['data']['attributes']['default_field_metadata'];
1125
1125
  };
1126
1126
  /** Use these methods to confirm */
1127
1127
  export declare type RenderAssetSourceAdditionalMethods = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datocms-plugin-sdk",
3
- "version": "0.3.24-alpha.3",
3
+ "version": "0.3.24-alpha.5",
4
4
  "description": "DatoCMS Plugin SDK",
5
5
  "keywords": [
6
6
  "datocms",
@@ -41,5 +41,5 @@
41
41
  "devDependencies": {
42
42
  "typedoc": "^0.22.8"
43
43
  },
44
- "gitHead": "e0d3595cc0a4b048f5f10fbd65a5b8aa3be13936"
44
+ "gitHead": "bc1c12ca4041b11199aee75b2a821872c9d39d3f"
45
45
  }
package/types.json CHANGED
@@ -7701,7 +7701,7 @@
7701
7701
  },
7702
7702
  {
7703
7703
  "id": 515,
7704
- "name": "defaultFieldMetadata",
7704
+ "name": "default_field_metadata",
7705
7705
  "kind": 1024,
7706
7706
  "kindString": "Property",
7707
7707
  "flags": {
@@ -7718,45 +7718,29 @@
7718
7718
  }
7719
7719
  ],
7720
7720
  "type": {
7721
- "type": "reference",
7722
- "typeArguments": [
7723
- {
7724
- "type": "reference",
7725
- "typeArguments": [
7726
- {
7727
- "type": "intrinsic",
7728
- "name": "string"
7729
- },
7730
- {
7731
- "type": "indexedAccess",
7732
- "indexType": {
7733
- "type": "literal",
7734
- "value": "default_field_metadata"
7735
- },
7736
- "objectType": {
7737
- "type": "indexedAccess",
7738
- "indexType": {
7739
- "type": "literal",
7740
- "value": "attributes"
7741
- },
7742
- "objectType": {
7743
- "type": "indexedAccess",
7744
- "indexType": {
7745
- "type": "literal",
7746
- "value": "data"
7747
- },
7748
- "objectType": {
7749
- "type": "reference",
7750
- "name": "UploadCreateSchema"
7751
- }
7752
- }
7753
- }
7754
- }
7755
- ],
7756
- "name": "Record"
7721
+ "type": "indexedAccess",
7722
+ "indexType": {
7723
+ "type": "literal",
7724
+ "value": "default_field_metadata"
7725
+ },
7726
+ "objectType": {
7727
+ "type": "indexedAccess",
7728
+ "indexType": {
7729
+ "type": "literal",
7730
+ "value": "attributes"
7731
+ },
7732
+ "objectType": {
7733
+ "type": "indexedAccess",
7734
+ "indexType": {
7735
+ "type": "literal",
7736
+ "value": "data"
7737
+ },
7738
+ "objectType": {
7739
+ "type": "reference",
7740
+ "name": "UploadCreateSchema"
7741
+ }
7757
7742
  }
7758
- ],
7759
- "name": "NonNullable"
7743
+ }
7760
7744
  }
7761
7745
  },
7762
7746
  {
@@ -8047,7 +8031,7 @@
8047
8031
  "sources": [
8048
8032
  {
8049
8033
  "fileName": "types.ts",
8050
- "line": 1378,
8034
+ "line": 1373,
8051
8035
  "character": 12
8052
8036
  }
8053
8037
  ],
@@ -8069,7 +8053,7 @@
8069
8053
  "sources": [
8070
8054
  {
8071
8055
  "fileName": "types.ts",
8072
- "line": 1379,
8056
+ "line": 1374,
8073
8057
  "character": 2
8074
8058
  }
8075
8059
  ],
@@ -8107,7 +8091,7 @@
8107
8091
  "sources": [
8108
8092
  {
8109
8093
  "fileName": "types.ts",
8110
- "line": 1378,
8094
+ "line": 1373,
8111
8095
  "character": 38
8112
8096
  }
8113
8097
  ]
@@ -8123,7 +8107,7 @@
8123
8107
  "sources": [
8124
8108
  {
8125
8109
  "fileName": "types.ts",
8126
- "line": 1372,
8110
+ "line": 1367,
8127
8111
  "character": 12
8128
8112
  }
8129
8113
  ],
@@ -8145,7 +8129,7 @@
8145
8129
  "sources": [
8146
8130
  {
8147
8131
  "fileName": "types.ts",
8148
- "line": 1373,
8132
+ "line": 1368,
8149
8133
  "character": 2
8150
8134
  }
8151
8135
  ],
@@ -8167,7 +8151,7 @@
8167
8151
  "sources": [
8168
8152
  {
8169
8153
  "fileName": "types.ts",
8170
- "line": 1372,
8154
+ "line": 1367,
8171
8155
  "character": 41
8172
8156
  }
8173
8157
  ]
@@ -8202,7 +8186,7 @@
8202
8186
  "sources": [
8203
8187
  {
8204
8188
  "fileName": "types.ts",
8205
- "line": 1382,
8189
+ "line": 1377,
8206
8190
  "character": 12
8207
8191
  }
8208
8192
  ],
@@ -8231,7 +8215,7 @@
8231
8215
  "sources": [
8232
8216
  {
8233
8217
  "fileName": "types.ts",
8234
- "line": 1376,
8218
+ "line": 1371,
8235
8219
  "character": 12
8236
8220
  }
8237
8221
  ],
@@ -8260,7 +8244,7 @@
8260
8244
  "sources": [
8261
8245
  {
8262
8246
  "fileName": "types.ts",
8263
- "line": 1384,
8247
+ "line": 1379,
8264
8248
  "character": 12
8265
8249
  }
8266
8250
  ],
@@ -8289,7 +8273,7 @@
8289
8273
  "sources": [
8290
8274
  {
8291
8275
  "fileName": "types.ts",
8292
- "line": 1284,
8276
+ "line": 1279,
8293
8277
  "character": 12
8294
8278
  }
8295
8279
  ],
@@ -8311,7 +8295,7 @@
8311
8295
  "sources": [
8312
8296
  {
8313
8297
  "fileName": "types.ts",
8314
- "line": 1287,
8298
+ "line": 1282,
8315
8299
  "character": 2
8316
8300
  }
8317
8301
  ],
@@ -8333,7 +8317,7 @@
8333
8317
  "sources": [
8334
8318
  {
8335
8319
  "fileName": "types.ts",
8336
- "line": 1288,
8320
+ "line": 1283,
8337
8321
  "character": 4
8338
8322
  }
8339
8323
  ],
@@ -8366,7 +8350,7 @@
8366
8350
  "sources": [
8367
8351
  {
8368
8352
  "fileName": "types.ts",
8369
- "line": 1289,
8353
+ "line": 1284,
8370
8354
  "character": 4
8371
8355
  }
8372
8356
  ],
@@ -8399,7 +8383,7 @@
8399
8383
  "sources": [
8400
8384
  {
8401
8385
  "fileName": "types.ts",
8402
- "line": 1290,
8386
+ "line": 1285,
8403
8387
  "character": 4
8404
8388
  }
8405
8389
  ],
@@ -8432,7 +8416,7 @@
8432
8416
  "sources": [
8433
8417
  {
8434
8418
  "fileName": "types.ts",
8435
- "line": 1291,
8419
+ "line": 1286,
8436
8420
  "character": 4
8437
8421
  }
8438
8422
  ],
@@ -8465,7 +8449,7 @@
8465
8449
  "sources": [
8466
8450
  {
8467
8451
  "fileName": "types.ts",
8468
- "line": 1292,
8452
+ "line": 1287,
8469
8453
  "character": 4
8470
8454
  }
8471
8455
  ],
@@ -8498,7 +8482,7 @@
8498
8482
  "sources": [
8499
8483
  {
8500
8484
  "fileName": "types.ts",
8501
- "line": 1293,
8485
+ "line": 1288,
8502
8486
  "character": 4
8503
8487
  }
8504
8488
  ],
@@ -8531,7 +8515,7 @@
8531
8515
  "sources": [
8532
8516
  {
8533
8517
  "fileName": "types.ts",
8534
- "line": 1294,
8518
+ "line": 1289,
8535
8519
  "character": 4
8536
8520
  }
8537
8521
  ],
@@ -8564,7 +8548,7 @@
8564
8548
  "sources": [
8565
8549
  {
8566
8550
  "fileName": "types.ts",
8567
- "line": 1295,
8551
+ "line": 1290,
8568
8552
  "character": 4
8569
8553
  }
8570
8554
  ],
@@ -8608,7 +8592,7 @@
8608
8592
  "sources": [
8609
8593
  {
8610
8594
  "fileName": "types.ts",
8611
- "line": 1287,
8595
+ "line": 1282,
8612
8596
  "character": 14
8613
8597
  }
8614
8598
  ]
@@ -8626,7 +8610,7 @@
8626
8610
  "sources": [
8627
8611
  {
8628
8612
  "fileName": "types.ts",
8629
- "line": 1285,
8613
+ "line": 1280,
8630
8614
  "character": 2
8631
8615
  }
8632
8616
  ],
@@ -8644,7 +8628,7 @@
8644
8628
  "sources": [
8645
8629
  {
8646
8630
  "fileName": "types.ts",
8647
- "line": 1286,
8631
+ "line": 1281,
8648
8632
  "character": 2
8649
8633
  }
8650
8634
  ],
@@ -8668,7 +8652,7 @@
8668
8652
  "sources": [
8669
8653
  {
8670
8654
  "fileName": "types.ts",
8671
- "line": 1284,
8655
+ "line": 1279,
8672
8656
  "character": 27
8673
8657
  }
8674
8658
  ]
@@ -8933,7 +8917,7 @@
8933
8917
  "sources": [
8934
8918
  {
8935
8919
  "fileName": "types.ts",
8936
- "line": 1233,
8920
+ "line": 1228,
8937
8921
  "character": 12
8938
8922
  }
8939
8923
  ],
@@ -8955,7 +8939,7 @@
8955
8939
  "sources": [
8956
8940
  {
8957
8941
  "fileName": "types.ts",
8958
- "line": 1234,
8942
+ "line": 1229,
8959
8943
  "character": 2
8960
8944
  }
8961
8945
  ],
@@ -8989,7 +8973,7 @@
8989
8973
  "sources": [
8990
8974
  {
8991
8975
  "fileName": "types.ts",
8992
- "line": 1255,
8976
+ "line": 1250,
8993
8977
  "character": 2
8994
8978
  }
8995
8979
  ],
@@ -9044,7 +9028,7 @@
9044
9028
  "sources": [
9045
9029
  {
9046
9030
  "fileName": "types.ts",
9047
- "line": 1233,
9031
+ "line": 1228,
9048
9032
  "character": 49
9049
9033
  }
9050
9034
  ]
@@ -9174,7 +9158,7 @@
9174
9158
  "sources": [
9175
9159
  {
9176
9160
  "fileName": "types.ts",
9177
- "line": 1258,
9161
+ "line": 1253,
9178
9162
  "character": 12
9179
9163
  }
9180
9164
  ],
@@ -9237,7 +9221,7 @@
9237
9221
  "sources": [
9238
9222
  {
9239
9223
  "fileName": "types.ts",
9240
- "line": 1262,
9224
+ "line": 1257,
9241
9225
  "character": 12
9242
9226
  }
9243
9227
  ],
@@ -9269,7 +9253,7 @@
9269
9253
  "sources": [
9270
9254
  {
9271
9255
  "fileName": "types.ts",
9272
- "line": 1361,
9256
+ "line": 1356,
9273
9257
  "character": 12
9274
9258
  }
9275
9259
  ],
@@ -9291,7 +9275,7 @@
9291
9275
  "sources": [
9292
9276
  {
9293
9277
  "fileName": "types.ts",
9294
- "line": 1362,
9278
+ "line": 1357,
9295
9279
  "character": 2
9296
9280
  }
9297
9281
  ],
@@ -9329,7 +9313,7 @@
9329
9313
  "sources": [
9330
9314
  {
9331
9315
  "fileName": "types.ts",
9332
- "line": 1361,
9316
+ "line": 1356,
9333
9317
  "character": 50
9334
9318
  }
9335
9319
  ]
@@ -9345,7 +9329,7 @@
9345
9329
  "sources": [
9346
9330
  {
9347
9331
  "fileName": "types.ts",
9348
- "line": 1353,
9332
+ "line": 1348,
9349
9333
  "character": 12
9350
9334
  }
9351
9335
  ],
@@ -9367,7 +9351,7 @@
9367
9351
  "sources": [
9368
9352
  {
9369
9353
  "fileName": "types.ts",
9370
- "line": 1354,
9354
+ "line": 1349,
9371
9355
  "character": 2
9372
9356
  }
9373
9357
  ],
@@ -9389,7 +9373,7 @@
9389
9373
  "sources": [
9390
9374
  {
9391
9375
  "fileName": "types.ts",
9392
- "line": 1353,
9376
+ "line": 1348,
9393
9377
  "character": 53
9394
9378
  }
9395
9379
  ]
@@ -9434,7 +9418,7 @@
9434
9418
  "sources": [
9435
9419
  {
9436
9420
  "fileName": "types.ts",
9437
- "line": 1365,
9421
+ "line": 1360,
9438
9422
  "character": 12
9439
9423
  }
9440
9424
  ],
@@ -9468,7 +9452,7 @@
9468
9452
  "sources": [
9469
9453
  {
9470
9454
  "fileName": "types.ts",
9471
- "line": 1357,
9455
+ "line": 1352,
9472
9456
  "character": 12
9473
9457
  }
9474
9458
  ],
@@ -9497,7 +9481,7 @@
9497
9481
  "sources": [
9498
9482
  {
9499
9483
  "fileName": "types.ts",
9500
- "line": 1369,
9484
+ "line": 1364,
9501
9485
  "character": 12
9502
9486
  }
9503
9487
  ],
@@ -9988,7 +9972,7 @@
9988
9972
  "sources": [
9989
9973
  {
9990
9974
  "fileName": "types.ts",
9991
- "line": 1332,
9975
+ "line": 1327,
9992
9976
  "character": 12
9993
9977
  }
9994
9978
  ],
@@ -10010,7 +9994,7 @@
10010
9994
  "sources": [
10011
9995
  {
10012
9996
  "fileName": "types.ts",
10013
- "line": 1333,
9997
+ "line": 1328,
10014
9998
  "character": 2
10015
9999
  }
10016
10000
  ],
@@ -10044,7 +10028,7 @@
10044
10028
  "sources": [
10045
10029
  {
10046
10030
  "fileName": "types.ts",
10047
- "line": 1343,
10031
+ "line": 1338,
10048
10032
  "character": 2
10049
10033
  }
10050
10034
  ],
@@ -10114,7 +10098,7 @@
10114
10098
  "sources": [
10115
10099
  {
10116
10100
  "fileName": "types.ts",
10117
- "line": 1332,
10101
+ "line": 1327,
10118
10102
  "character": 70
10119
10103
  }
10120
10104
  ]
@@ -10133,7 +10117,7 @@
10133
10117
  "sources": [
10134
10118
  {
10135
10119
  "fileName": "types.ts",
10136
- "line": 1303,
10120
+ "line": 1298,
10137
10121
  "character": 12
10138
10122
  }
10139
10123
  ],
@@ -10158,7 +10142,7 @@
10158
10142
  "sources": [
10159
10143
  {
10160
10144
  "fileName": "types.ts",
10161
- "line": 1316,
10145
+ "line": 1311,
10162
10146
  "character": 2
10163
10147
  }
10164
10148
  ],
@@ -10189,7 +10173,7 @@
10189
10173
  "sources": [
10190
10174
  {
10191
10175
  "fileName": "types.ts",
10192
- "line": 1306,
10176
+ "line": 1301,
10193
10177
  "character": 2
10194
10178
  }
10195
10179
  ],
@@ -10210,7 +10194,7 @@
10210
10194
  "sources": [
10211
10195
  {
10212
10196
  "fileName": "types.ts",
10213
- "line": 1322,
10197
+ "line": 1317,
10214
10198
  "character": 2
10215
10199
  }
10216
10200
  ],
@@ -10229,7 +10213,7 @@
10229
10213
  "sources": [
10230
10214
  {
10231
10215
  "fileName": "types.ts",
10232
- "line": 1304,
10216
+ "line": 1299,
10233
10217
  "character": 2
10234
10218
  }
10235
10219
  ],
@@ -10250,7 +10234,7 @@
10250
10234
  "sources": [
10251
10235
  {
10252
10236
  "fileName": "types.ts",
10253
- "line": 1311,
10237
+ "line": 1306,
10254
10238
  "character": 2
10255
10239
  }
10256
10240
  ],
@@ -10281,7 +10265,7 @@
10281
10265
  "sources": [
10282
10266
  {
10283
10267
  "fileName": "types.ts",
10284
- "line": 1319,
10268
+ "line": 1314,
10285
10269
  "character": 2
10286
10270
  }
10287
10271
  ],
@@ -10309,7 +10293,7 @@
10309
10293
  "sources": [
10310
10294
  {
10311
10295
  "fileName": "types.ts",
10312
- "line": 1303,
10296
+ "line": 1298,
10313
10297
  "character": 73
10314
10298
  }
10315
10299
  ]
@@ -10354,7 +10338,7 @@
10354
10338
  "sources": [
10355
10339
  {
10356
10340
  "fileName": "types.ts",
10357
- "line": 1346,
10341
+ "line": 1341,
10358
10342
  "character": 12
10359
10343
  }
10360
10344
  ],
@@ -10388,7 +10372,7 @@
10388
10372
  "sources": [
10389
10373
  {
10390
10374
  "fileName": "types.ts",
10391
- "line": 1325,
10375
+ "line": 1320,
10392
10376
  "character": 12
10393
10377
  }
10394
10378
  ],
@@ -10417,7 +10401,7 @@
10417
10401
  "sources": [
10418
10402
  {
10419
10403
  "fileName": "types.ts",
10420
- "line": 1350,
10404
+ "line": 1345,
10421
10405
  "character": 12
10422
10406
  }
10423
10407
  ],
@@ -10863,7 +10847,7 @@
10863
10847
  "sources": [
10864
10848
  {
10865
10849
  "fileName": "types.ts",
10866
- "line": 1275,
10850
+ "line": 1270,
10867
10851
  "character": 12
10868
10852
  }
10869
10853
  ],
@@ -10885,7 +10869,7 @@
10885
10869
  "sources": [
10886
10870
  {
10887
10871
  "fileName": "types.ts",
10888
- "line": 1276,
10872
+ "line": 1271,
10889
10873
  "character": 2
10890
10874
  }
10891
10875
  ],
@@ -10923,7 +10907,7 @@
10923
10907
  "sources": [
10924
10908
  {
10925
10909
  "fileName": "types.ts",
10926
- "line": 1275,
10910
+ "line": 1270,
10927
10911
  "character": 42
10928
10912
  }
10929
10913
  ]
@@ -10942,7 +10926,7 @@
10942
10926
  "sources": [
10943
10927
  {
10944
10928
  "fileName": "types.ts",
10945
- "line": 1266,
10929
+ "line": 1261,
10946
10930
  "character": 12
10947
10931
  }
10948
10932
  ],
@@ -10964,7 +10948,7 @@
10964
10948
  "sources": [
10965
10949
  {
10966
10950
  "fileName": "types.ts",
10967
- "line": 1267,
10951
+ "line": 1262,
10968
10952
  "character": 2
10969
10953
  }
10970
10954
  ],
@@ -10985,7 +10969,7 @@
10985
10969
  "sources": [
10986
10970
  {
10987
10971
  "fileName": "types.ts",
10988
- "line": 1269,
10972
+ "line": 1264,
10989
10973
  "character": 2
10990
10974
  }
10991
10975
  ],
@@ -11008,7 +10992,7 @@
11008
10992
  "sources": [
11009
10993
  {
11010
10994
  "fileName": "types.ts",
11011
- "line": 1266,
10995
+ "line": 1261,
11012
10996
  "character": 45
11013
10997
  }
11014
10998
  ]
@@ -11043,7 +11027,7 @@
11043
11027
  "sources": [
11044
11028
  {
11045
11029
  "fileName": "types.ts",
11046
- "line": 1279,
11030
+ "line": 1274,
11047
11031
  "character": 12
11048
11032
  }
11049
11033
  ],
@@ -11072,7 +11056,7 @@
11072
11056
  "sources": [
11073
11057
  {
11074
11058
  "fileName": "types.ts",
11075
- "line": 1272,
11059
+ "line": 1267,
11076
11060
  "character": 12
11077
11061
  }
11078
11062
  ],
@@ -11101,7 +11085,7 @@
11101
11085
  "sources": [
11102
11086
  {
11103
11087
  "fileName": "types.ts",
11104
- "line": 1281,
11088
+ "line": 1276,
11105
11089
  "character": 12
11106
11090
  }
11107
11091
  ],