@verdocs/js-sdk 4.2.44 → 4.2.45

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
@@ -2296,7 +2296,7 @@ const createField = (endpoint, templateId, params) => endpoint.api //
2296
2296
  * ```
2297
2297
  */
2298
2298
  const updateField = (endpoint, templateId, name, params) => endpoint.api //
2299
- .patch(`/v2/fields/${templateId}/${name}`, params)
2299
+ .patch(`/v2/fields/${templateId}/${encodeURIComponent(name)}`, params)
2300
2300
  .then((r) => r.data);
2301
2301
  /**
2302
2302
  * Remove a field from a template.
@@ -2308,7 +2308,7 @@ const updateField = (endpoint, templateId, name, params) => endpoint.api //
2308
2308
  * ```
2309
2309
  */
2310
2310
  const deleteField = (endpoint, templateId, name) => endpoint.api //
2311
- .delete(`/v2/fields/${templateId}/${name}`)
2311
+ .delete(`/v2/fields/${templateId}/${encodeURIComponent(name)}`)
2312
2312
  .then((r) => r.data);
2313
2313
 
2314
2314
  /**
@@ -2461,7 +2461,7 @@ const deleteTemplateReminder = (endpoint, templateId, reminderId) => endpoint.ap
2461
2461
  * ```
2462
2462
  */
2463
2463
  const createTemplateRole = (endpoint, template_id, params) => endpoint.api //
2464
- .post(`/v2/templates/${template_id}/roles`, params)
2464
+ .post(`/v2/roles/${template_id}`, params)
2465
2465
  .then((r) => r.data);
2466
2466
  /**
2467
2467
  * Update a role.
@@ -2473,7 +2473,7 @@ const createTemplateRole = (endpoint, template_id, params) => endpoint.api //
2473
2473
  * ```
2474
2474
  */
2475
2475
  const updateTemplateRole = (endpoint, template_id, name, params) => endpoint.api //
2476
- .put(`/v2/templates/${template_id}/roles/${name}`, params)
2476
+ .put(`/v2/roles/${template_id}/${encodeURIComponent(name)}`, params)
2477
2477
  .then((r) => r.data);
2478
2478
  /**
2479
2479
  * Delete a role.
@@ -2485,7 +2485,7 @@ const updateTemplateRole = (endpoint, template_id, name, params) => endpoint.api
2485
2485
  * ```
2486
2486
  */
2487
2487
  const deleteTemplateRole = (endpoint, template_id, name) => endpoint.api //
2488
- .delete(`/v2/templates/${template_id}/roles/${name}`)
2488
+ .delete(`/v2/roles/${template_id}/${encodeURIComponent(name)}`)
2489
2489
  .then((r) => r.data);
2490
2490
 
2491
2491
  /**