@verdocs/js-sdk 3.0.22 → 3.0.25

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.
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export var createField = function (endpoint, templateId, params) {
5
5
  return endpoint.api //
6
- .post("/templates/".concat(templateId, "/pages/"), params)
6
+ .post("/templates/".concat(templateId, "/fields"), params)
7
7
  .then(function (r) { return r.data; });
8
8
  };
9
9
  /**
@@ -11,7 +11,7 @@ export var createField = function (endpoint, templateId, params) {
11
11
  */
12
12
  export var editField = function (endpoint, templateId, fieldName, params) {
13
13
  return endpoint.api //
14
- .put("/templates/".concat(templateId, "/pages/").concat(fieldName), params)
14
+ .put("/templates/".concat(templateId, "/fields/").concat(fieldName), params)
15
15
  .then(function (r) { return r.data; });
16
16
  };
17
17
  /**
@@ -19,6 +19,6 @@ export var editField = function (endpoint, templateId, fieldName, params) {
19
19
  */
20
20
  export var deleteField = function (endpoint, templateId, fieldName) {
21
21
  return endpoint.api //
22
- .delete("/templates/".concat(templateId, "/pages/").concat(fieldName))
22
+ .delete("/templates/".concat(templateId, "/fields/").concat(fieldName))
23
23
  .then(function (r) { return r.data; });
24
24
  };
@@ -1,6 +1,10 @@
1
- import { IReminder, ITemplate } from './Types';
2
1
  import { VerdocsEndpoint } from '../VerdocsEndpoint';
3
- export declare const createReminder: (endpoint: VerdocsEndpoint, templateId: string, params: any) => Promise<ITemplate>;
2
+ import { IReminder, ITemplate } from './Types';
3
+ export interface ICreateTemplateReminderRequest {
4
+ setup_time: number;
5
+ interval_time: number;
6
+ }
7
+ export declare const createReminder: (endpoint: VerdocsEndpoint, templateId: string, params: ICreateTemplateReminderRequest) => Promise<ITemplate>;
4
8
  export declare const getReminder: (endpoint: VerdocsEndpoint, templateId: string, reminderId: string) => Promise<IReminder>;
5
- export declare const editReminder: (endpoint: VerdocsEndpoint, templateId: string, reminderId: string) => Promise<IReminder>;
9
+ export declare const updateReminder: (endpoint: VerdocsEndpoint, templateId: string, reminderId: string, params: ICreateTemplateReminderRequest) => Promise<IReminder>;
6
10
  export declare const deleteReminder: (endpoint: VerdocsEndpoint, templateId: string, reminderId: string) => Promise<any>;
@@ -8,9 +8,9 @@ export var getReminder = function (endpoint, templateId, reminderId) {
8
8
  .get("/templates/".concat(templateId, "/reminder/").concat(reminderId))
9
9
  .then(function (r) { return r.data; });
10
10
  };
11
- export var editReminder = function (endpoint, templateId, reminderId) {
11
+ export var updateReminder = function (endpoint, templateId, reminderId, params) {
12
12
  return endpoint.api //
13
- .put("/templates/".concat(templateId, "/reminder/").concat(reminderId))
13
+ .put("/templates/".concat(templateId, "/reminder/").concat(reminderId), params)
14
14
  .then(function (r) { return r.data; });
15
15
  };
16
16
  export var deleteReminder = function (endpoint, templateId, reminderId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdocs/js-sdk",
3
- "version": "3.0.22",
3
+ "version": "3.0.25",
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.0"
49
+ "axios": "^1.3.1"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "typescript": "^4.7.3"