datocms-plugin-sdk 0.3.5 → 0.3.7
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/esm/SiteApiSchema.d.ts +2 -2
- package/dist/esm/types.d.ts +2 -2
- package/dist/types/SiteApiSchema.d.ts +2 -2
- package/dist/types/types.d.ts +2 -2
- package/package.json +2 -2
- package/types.json +31 -31
|
@@ -2965,7 +2965,7 @@ export interface PluginAttributes {
|
|
|
2965
2965
|
[k: string]: unknown;
|
|
2966
2966
|
};
|
|
2967
2967
|
/** Permissions granted to this plugin */
|
|
2968
|
-
permissions: '
|
|
2968
|
+
permissions: 'currentUserAccessToken'[];
|
|
2969
2969
|
/** The type of field extension a legacy plugin implements */
|
|
2970
2970
|
plugin_type: 'field_editor' | 'sidebar' | 'field_addon' | null;
|
|
2971
2971
|
/** On which types of field in which a legacy plugin can be used */
|
|
@@ -3011,7 +3011,7 @@ export interface PluginCreateSchema {
|
|
|
3011
3011
|
/** The entry point URL of the plugin. Only to be passed if package name key is not specified. */
|
|
3012
3012
|
url?: string;
|
|
3013
3013
|
/** Permissions granted to this plugin. Only to be passed if package name key is not specified. */
|
|
3014
|
-
permissions?: '
|
|
3014
|
+
permissions?: 'currentUserAccessToken'[];
|
|
3015
3015
|
/**
|
|
3016
3016
|
* The type of field extension this legacy plugin implements. Only to be passed if
|
|
3017
3017
|
* package name key is not specified.
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -307,9 +307,9 @@ export declare type CommonProperties = {
|
|
|
307
307
|
currentRole: Role;
|
|
308
308
|
/**
|
|
309
309
|
* The access token to perform API calls on behalf of the current user. Only available
|
|
310
|
-
* if `
|
|
310
|
+
* if `currentUserAccessToken` additional permission is granted
|
|
311
311
|
*/
|
|
312
|
-
|
|
312
|
+
currentUserAccessToken: string | undefined;
|
|
313
313
|
/** The current plugin */
|
|
314
314
|
plugin: Plugin;
|
|
315
315
|
/** UI preferences of the current user (right now, only the preferred locale is available) */
|
|
@@ -2965,7 +2965,7 @@ export interface PluginAttributes {
|
|
|
2965
2965
|
[k: string]: unknown;
|
|
2966
2966
|
};
|
|
2967
2967
|
/** Permissions granted to this plugin */
|
|
2968
|
-
permissions: '
|
|
2968
|
+
permissions: 'currentUserAccessToken'[];
|
|
2969
2969
|
/** The type of field extension a legacy plugin implements */
|
|
2970
2970
|
plugin_type: 'field_editor' | 'sidebar' | 'field_addon' | null;
|
|
2971
2971
|
/** On which types of field in which a legacy plugin can be used */
|
|
@@ -3011,7 +3011,7 @@ export interface PluginCreateSchema {
|
|
|
3011
3011
|
/** The entry point URL of the plugin. Only to be passed if package name key is not specified. */
|
|
3012
3012
|
url?: string;
|
|
3013
3013
|
/** Permissions granted to this plugin. Only to be passed if package name key is not specified. */
|
|
3014
|
-
permissions?: '
|
|
3014
|
+
permissions?: 'currentUserAccessToken'[];
|
|
3015
3015
|
/**
|
|
3016
3016
|
* The type of field extension this legacy plugin implements. Only to be passed if
|
|
3017
3017
|
* package name key is not specified.
|
package/dist/types/types.d.ts
CHANGED
|
@@ -307,9 +307,9 @@ export declare type CommonProperties = {
|
|
|
307
307
|
currentRole: Role;
|
|
308
308
|
/**
|
|
309
309
|
* The access token to perform API calls on behalf of the current user. Only available
|
|
310
|
-
* if `
|
|
310
|
+
* if `currentUserAccessToken` additional permission is granted
|
|
311
311
|
*/
|
|
312
|
-
|
|
312
|
+
currentUserAccessToken: string | undefined;
|
|
313
313
|
/** The current plugin */
|
|
314
314
|
plugin: Plugin;
|
|
315
315
|
/** UI preferences of the current user (right now, only the preferred locale is available) */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "datocms-plugin-sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
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": "
|
|
44
|
+
"gitHead": "de2dceafa5bc7337da27ea2b59b231ee704be3de"
|
|
45
45
|
}
|
package/types.json
CHANGED
|
@@ -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,
|