@verdocs/js-sdk 4.2.31 → 4.2.34

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.mjs CHANGED
@@ -2354,7 +2354,7 @@ const createField = (endpoint, templateId, params) => endpoint.api //
2354
2354
  * ```
2355
2355
  */
2356
2356
  const updateField = (endpoint, templateId, name, params) => endpoint.api //
2357
- .patch(`/fields/${templateId}/${name}`, params)
2357
+ .patch(`/v2/fields/${templateId}/${name}`, params)
2358
2358
  .then((r) => r.data);
2359
2359
  /**
2360
2360
  * Remove a field from a template.
@@ -2366,7 +2366,7 @@ const updateField = (endpoint, templateId, name, params) => endpoint.api //
2366
2366
  * ```
2367
2367
  */
2368
2368
  const deleteField = (endpoint, templateId, name) => endpoint.api //
2369
- .delete(`/fields/${templateId}/${name}`)
2369
+ .delete(`/v2/fields/${templateId}/${name}`)
2370
2370
  .then((r) => r.data);
2371
2371
 
2372
2372
  /**
@@ -2622,7 +2622,7 @@ const getAllTags = (endpoint) => endpoint.api //
2622
2622
  * ```
2623
2623
  */
2624
2624
  const getTemplates = (endpoint, params) => endpoint.api //
2625
- .post('/v2/templates', { params })
2625
+ .get('/v2/templates', { params })
2626
2626
  .then((r) => r.data);
2627
2627
  /**
2628
2628
  * Get one template by its ID.