datocms-plugin-sdk 0.7.11 → 0.7.13
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/connect.d.ts +4 -4
- package/dist/esm/types.d.ts +2 -0
- package/dist/types/connect.d.ts +4 -4
- package/dist/types/types.d.ts +2 -0
- package/package.json +2 -2
- package/src/connect.ts +4 -4
- package/src/types.ts +2 -0
- package/types.json +990 -952
package/dist/esm/connect.d.ts
CHANGED
|
@@ -71,17 +71,17 @@ export declare type FullConnectParameters = {
|
|
|
71
71
|
*/
|
|
72
72
|
onBeforeItemUpsert: (createOrUpdateItemPayload: ItemUpdateSchema | ItemCreateSchema, ctx: OnBootCtx) => MaybePromise<boolean>;
|
|
73
73
|
/**
|
|
74
|
-
* Use this function to customize the presentation of a record
|
|
75
|
-
*
|
|
74
|
+
* Use this function to customize the presentation of a record in records
|
|
75
|
+
* collections and "Single link" or "Multiple links" field
|
|
76
76
|
*
|
|
77
|
-
* @tag
|
|
77
|
+
* @tag presentation
|
|
78
78
|
*/
|
|
79
79
|
buildItemPresentationInfo: (item: Item, ctx: OnBootCtx) => MaybePromise<ItemPresentationInfo | undefined>;
|
|
80
80
|
/**
|
|
81
81
|
* Use this function to customize the initial filters when opening an record
|
|
82
82
|
* selector via a "Single link" or "Multiple links" field
|
|
83
83
|
*
|
|
84
|
-
* @tag
|
|
84
|
+
* @tag locationQuery
|
|
85
85
|
*/
|
|
86
86
|
initialLocationQueryForItemSelector: (openerfield: Item, itemType: ItemType, ctx: OnBootCtx) => MaybePromise<InitialLocationQueryForItemSelector | undefined>;
|
|
87
87
|
/**
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -1356,6 +1356,8 @@ export declare type NewUploadResourceAsUrl = {
|
|
|
1356
1356
|
* all hosts — allowing the image to be read by DatoCMS
|
|
1357
1357
|
*/
|
|
1358
1358
|
url: string;
|
|
1359
|
+
/** Any additional headers to pass when making the request to the URL */
|
|
1360
|
+
headers?: Record<string, string>;
|
|
1359
1361
|
/**
|
|
1360
1362
|
* Optional filename to be used to generate the final DatoCMS URL. If not
|
|
1361
1363
|
* passed, the URL will be used
|
package/dist/types/connect.d.ts
CHANGED
|
@@ -71,17 +71,17 @@ export declare type FullConnectParameters = {
|
|
|
71
71
|
*/
|
|
72
72
|
onBeforeItemUpsert: (createOrUpdateItemPayload: ItemUpdateSchema | ItemCreateSchema, ctx: OnBootCtx) => MaybePromise<boolean>;
|
|
73
73
|
/**
|
|
74
|
-
* Use this function to customize the presentation of a record
|
|
75
|
-
*
|
|
74
|
+
* Use this function to customize the presentation of a record in records
|
|
75
|
+
* collections and "Single link" or "Multiple links" field
|
|
76
76
|
*
|
|
77
|
-
* @tag
|
|
77
|
+
* @tag presentation
|
|
78
78
|
*/
|
|
79
79
|
buildItemPresentationInfo: (item: Item, ctx: OnBootCtx) => MaybePromise<ItemPresentationInfo | undefined>;
|
|
80
80
|
/**
|
|
81
81
|
* Use this function to customize the initial filters when opening an record
|
|
82
82
|
* selector via a "Single link" or "Multiple links" field
|
|
83
83
|
*
|
|
84
|
-
* @tag
|
|
84
|
+
* @tag locationQuery
|
|
85
85
|
*/
|
|
86
86
|
initialLocationQueryForItemSelector: (openerfield: Item, itemType: ItemType, ctx: OnBootCtx) => MaybePromise<InitialLocationQueryForItemSelector | undefined>;
|
|
87
87
|
/**
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1356,6 +1356,8 @@ export declare type NewUploadResourceAsUrl = {
|
|
|
1356
1356
|
* all hosts — allowing the image to be read by DatoCMS
|
|
1357
1357
|
*/
|
|
1358
1358
|
url: string;
|
|
1359
|
+
/** Any additional headers to pass when making the request to the URL */
|
|
1360
|
+
headers?: Record<string, string>;
|
|
1359
1361
|
/**
|
|
1360
1362
|
* Optional filename to be used to generate the final DatoCMS URL. If not
|
|
1361
1363
|
* passed, the URL will be used
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "datocms-plugin-sdk",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.13",
|
|
4
4
|
"description": "DatoCMS Plugin SDK",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datocms",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"typedoc": "^0.23.20"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "1c87c5859c0f26e86f05ae7abb7a3382e7d2f1a1"
|
|
47
47
|
}
|
package/src/connect.ts
CHANGED
|
@@ -156,10 +156,10 @@ export type FullConnectParameters = {
|
|
|
156
156
|
) => MaybePromise<boolean>;
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
|
-
* Use this function to customize the presentation of a record
|
|
160
|
-
*
|
|
159
|
+
* Use this function to customize the presentation of a record in records
|
|
160
|
+
* collections and "Single link" or "Multiple links" field
|
|
161
161
|
*
|
|
162
|
-
* @tag
|
|
162
|
+
* @tag presentation
|
|
163
163
|
*/
|
|
164
164
|
buildItemPresentationInfo: (
|
|
165
165
|
item: Item,
|
|
@@ -170,7 +170,7 @@ export type FullConnectParameters = {
|
|
|
170
170
|
* Use this function to customize the initial filters when opening an record
|
|
171
171
|
* selector via a "Single link" or "Multiple links" field
|
|
172
172
|
*
|
|
173
|
-
* @tag
|
|
173
|
+
* @tag locationQuery
|
|
174
174
|
*/
|
|
175
175
|
initialLocationQueryForItemSelector: (
|
|
176
176
|
openerfield: Item,
|
package/src/types.ts
CHANGED
|
@@ -1506,6 +1506,8 @@ export type NewUploadResourceAsUrl = {
|
|
|
1506
1506
|
* all hosts — allowing the image to be read by DatoCMS
|
|
1507
1507
|
*/
|
|
1508
1508
|
url: string;
|
|
1509
|
+
/** Any additional headers to pass when making the request to the URL */
|
|
1510
|
+
headers?: Record<string, string>;
|
|
1509
1511
|
/**
|
|
1510
1512
|
* Optional filename to be used to generate the final DatoCMS URL. If not
|
|
1511
1513
|
* passed, the URL will be used
|