@verdocs/js-sdk 4.2.30 → 4.2.33

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/dist/index.d.mts CHANGED
@@ -2343,7 +2343,12 @@ interface IGetTemplatesParams {
2343
2343
  * await getTemplates((VerdocsEndpoint.getDefault(), { is_organization: true });
2344
2344
  * ```
2345
2345
  */
2346
- declare const getTemplates: (endpoint: VerdocsEndpoint, params?: IGetTemplatesParams) => Promise<ITemplate[]>;
2346
+ declare const getTemplates: (endpoint: VerdocsEndpoint, params?: IGetTemplatesParams) => Promise<{
2347
+ count: number;
2348
+ rows: number;
2349
+ page: number;
2350
+ templates: ITemplate[];
2351
+ }>;
2347
2352
  /**
2348
2353
  * Get one template by its ID.
2349
2354
  *
package/dist/index.d.ts CHANGED
@@ -2343,7 +2343,12 @@ interface IGetTemplatesParams {
2343
2343
  * await getTemplates((VerdocsEndpoint.getDefault(), { is_organization: true });
2344
2344
  * ```
2345
2345
  */
2346
- declare const getTemplates: (endpoint: VerdocsEndpoint, params?: IGetTemplatesParams) => Promise<ITemplate[]>;
2346
+ declare const getTemplates: (endpoint: VerdocsEndpoint, params?: IGetTemplatesParams) => Promise<{
2347
+ count: number;
2348
+ rows: number;
2349
+ page: number;
2350
+ templates: ITemplate[];
2351
+ }>;
2347
2352
  /**
2348
2353
  * Get one template by its ID.
2349
2354
  *
package/dist/index.js CHANGED
@@ -2624,7 +2624,7 @@ const getAllTags = (endpoint) => endpoint.api //
2624
2624
  * ```
2625
2625
  */
2626
2626
  const getTemplates = (endpoint, params) => endpoint.api //
2627
- .post('/v2/templates', { params })
2627
+ .get('/v2/templates', { params })
2628
2628
  .then((r) => r.data);
2629
2629
  /**
2630
2630
  * Get one template by its ID.