@verdocs/js-sdk 6.2.0-beta.6 → 6.2.0-beta.8

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
@@ -2438,7 +2438,7 @@ const toggleTemplateStar = (endpoint, templateId) => endpoint.api //
2438
2438
  * ```typescript
2439
2439
  * import {TemplateDocument} from '@verdocs/js-sdk/Templates';
2440
2440
  *
2441
- * await TemplateDocument.createDocument((VerdocsEndpoint.getDefault(), templateID, params);
2441
+ * await TemplateDocument.createDocument(VerdocsEndpoint.getDefault(), templateID, params);
2442
2442
  * ```
2443
2443
  *
2444
2444
  * @group Template Documents
@@ -2466,17 +2466,17 @@ const createTemplateDocument = (endpoint, template_id, file, onUploadProgress) =
2466
2466
  * Delete a specific Document.
2467
2467
  *
2468
2468
  * ```typescript
2469
- * import {TemplateDocument} from '@verdocs/js-sdk/Templates';
2469
+ * import {deleteTemplateDocument} from '@verdocs/js-sdk/Templates';
2470
2470
  *
2471
- * await TemplateDocument.deleteDocument((VerdocsEndpoint.getDefault(), templateID, documentID);
2471
+ * await deleteTemplateDocument(VerdocsEndpoint.getDefault(), documentID);
2472
2472
  * ```
2473
2473
  *
2474
2474
  * @group Template Documents
2475
- * @api DELETE /v2/templates/:temlate_id/documents/:document_id Delete a template document
2475
+ * @api DELETE /v2/template-documents/:document_id Delete a template document
2476
2476
  * @apiSuccess string . Success
2477
2477
  */
2478
- const deleteTemplateDocument = (endpoint, templateId, documentId) => endpoint.api //
2479
- .delete(`/v2/templates/${templateId}/documents/${documentId}`)
2478
+ const deleteTemplateDocument = (endpoint, documentId) => endpoint.api //
2479
+ .delete(`/v2/template-documents/${documentId}`)
2480
2480
  .then((r) => r.data);
2481
2481
  /**
2482
2482
  * Get all metadata for a template document. Note that when called by non-creators (e.g. Org Collaborators)