@verdocs/js-sdk 3.0.30 → 3.0.31

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.
@@ -7,7 +7,7 @@ export declare const createField: (endpoint: VerdocsEndpoint, templateId: string
7
7
  /**
8
8
  * Update a template field.
9
9
  */
10
- export declare const editField: (endpoint: VerdocsEndpoint, templateId: string, fieldName: string, params: ITemplateField) => Promise<ITemplateField>;
10
+ export declare const updateField: (endpoint: VerdocsEndpoint, templateId: string, fieldName: string, params: Partial<ITemplateField>) => Promise<ITemplateField>;
11
11
  /**
12
12
  * REmove a field from a template.
13
13
  */
@@ -9,7 +9,7 @@ export var createField = function (endpoint, templateId, params) {
9
9
  /**
10
10
  * Update a template field.
11
11
  */
12
- export var editField = function (endpoint, templateId, fieldName, params) {
12
+ export var updateField = function (endpoint, templateId, fieldName, params) {
13
13
  return endpoint.api //
14
14
  .put("/templates/".concat(templateId, "/fields/").concat(fieldName), params)
15
15
  .then(function (r) { return r.data; });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdocs/js-sdk",
3
- "version": "3.0.30",
3
+ "version": "3.0.31",
4
4
  "private": false,
5
5
  "homepage": "https://github.com/Verdocs/js-sdk",
6
6
  "description": "Verdocs JS SDK",