@verdocs/js-sdk 3.7.5 → 3.7.7

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.
@@ -41,7 +41,10 @@ export interface IListTemplatesParams {
41
41
  * await Templates.listTemplates((VerdocsEndpoint.getDefault(), { sharing: 'personal', sort: 'last_used_at' });
42
42
  * ```
43
43
  */
44
- export declare const listTemplates: (endpoint: VerdocsEndpoint, params?: IListTemplatesParams) => Promise<ITemplate[]>;
44
+ export declare const listTemplates: (endpoint: VerdocsEndpoint, params?: IListTemplatesParams) => Promise<{
45
+ records: ITemplate[];
46
+ total: number;
47
+ }>;
45
48
  /**
46
49
  * Get one template by its ID.
47
50
  *
@@ -68,7 +68,7 @@ export var getTemplates = function (endpoint, params) {
68
68
  */
69
69
  export var listTemplates = function (endpoint, params) {
70
70
  return endpoint.api //
71
- .post('/templates/list', { params: params }, { baseURL: endpoint.getBaseURLv2() })
71
+ .post('/templates/list', params, { baseURL: endpoint.getBaseURLv2() })
72
72
  .then(function (r) { return r.data; });
73
73
  };
74
74
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdocs/js-sdk",
3
- "version": "3.7.5",
3
+ "version": "3.7.7",
4
4
  "private": false,
5
5
  "homepage": "https://github.com/Verdocs/js-sdk",
6
6
  "description": "Verdocs JS SDK",