@verdocs/js-sdk 3.0.22 → 3.0.24
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/Templates/Fields.js +4 -3
- package/package.json +2 -2
package/Templates/Fields.js
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export var createField = function (endpoint, templateId, params) {
|
|
5
5
|
return endpoint.api //
|
|
6
|
-
.
|
|
6
|
+
// curl -X POST 'https://api.verdocs.com/templates/d2338742-f3a1-465b-8592-806587413cc1/fields' \
|
|
7
|
+
.post("/templates/".concat(templateId, "/fields"), params)
|
|
7
8
|
.then(function (r) { return r.data; });
|
|
8
9
|
};
|
|
9
10
|
/**
|
|
@@ -11,7 +12,7 @@ export var createField = function (endpoint, templateId, params) {
|
|
|
11
12
|
*/
|
|
12
13
|
export var editField = function (endpoint, templateId, fieldName, params) {
|
|
13
14
|
return endpoint.api //
|
|
14
|
-
.put("/templates/".concat(templateId, "/
|
|
15
|
+
.put("/templates/".concat(templateId, "/fields/").concat(fieldName), params)
|
|
15
16
|
.then(function (r) { return r.data; });
|
|
16
17
|
};
|
|
17
18
|
/**
|
|
@@ -19,6 +20,6 @@ export var editField = function (endpoint, templateId, fieldName, params) {
|
|
|
19
20
|
*/
|
|
20
21
|
export var deleteField = function (endpoint, templateId, fieldName) {
|
|
21
22
|
return endpoint.api //
|
|
22
|
-
.delete("/templates/".concat(templateId, "/
|
|
23
|
+
.delete("/templates/".concat(templateId, "/fields/").concat(fieldName))
|
|
23
24
|
.then(function (r) { return r.data; });
|
|
24
25
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verdocs/js-sdk",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.24",
|
|
4
4
|
"private": false,
|
|
5
5
|
"homepage": "https://github.com/Verdocs/js-sdk",
|
|
6
6
|
"description": "Verdocs JS SDK",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"axios": "^1.3.
|
|
49
|
+
"axios": "^1.3.1"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"typescript": "^4.7.3"
|