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.
@@ -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 action by
75
- * returning `false`
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 customizeHooks
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 customizeHooks
84
+ * @tag locationQuery
85
85
  */
86
86
  initialLocationQueryForItemSelector: (openerfield: Item, itemType: ItemType, ctx: OnBootCtx) => MaybePromise<InitialLocationQueryForItemSelector | undefined>;
87
87
  /**
@@ -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
@@ -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 action by
75
- * returning `false`
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 customizeHooks
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 customizeHooks
84
+ * @tag locationQuery
85
85
  */
86
86
  initialLocationQueryForItemSelector: (openerfield: Item, itemType: ItemType, ctx: OnBootCtx) => MaybePromise<InitialLocationQueryForItemSelector | undefined>;
87
87
  /**
@@ -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.11",
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": "27eb61998757ac7129bc8561eca5ebaf1f3be166"
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 action by
160
- * returning `false`
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 customizeHooks
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 customizeHooks
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