@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.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3526,7 +3526,7 @@ declare const toggleTemplateStar: (endpoint: VerdocsEndpoint, templateId: string
|
|
|
3526
3526
|
* ```typescript
|
|
3527
3527
|
* import {TemplateDocument} from '@verdocs/js-sdk/Templates';
|
|
3528
3528
|
*
|
|
3529
|
-
* await TemplateDocument.createDocument(
|
|
3529
|
+
* await TemplateDocument.createDocument(VerdocsEndpoint.getDefault(), templateID, params);
|
|
3530
3530
|
* ```
|
|
3531
3531
|
*
|
|
3532
3532
|
* @group Template Documents
|
|
@@ -3540,16 +3540,16 @@ declare const createTemplateDocument: (endpoint: VerdocsEndpoint, template_id: s
|
|
|
3540
3540
|
* Delete a specific Document.
|
|
3541
3541
|
*
|
|
3542
3542
|
* ```typescript
|
|
3543
|
-
* import {
|
|
3543
|
+
* import {deleteTemplateDocument} from '@verdocs/js-sdk/Templates';
|
|
3544
3544
|
*
|
|
3545
|
-
* await
|
|
3545
|
+
* await deleteTemplateDocument(VerdocsEndpoint.getDefault(), documentID);
|
|
3546
3546
|
* ```
|
|
3547
3547
|
*
|
|
3548
3548
|
* @group Template Documents
|
|
3549
|
-
* @api DELETE /v2/
|
|
3549
|
+
* @api DELETE /v2/template-documents/:document_id Delete a template document
|
|
3550
3550
|
* @apiSuccess string . Success
|
|
3551
3551
|
*/
|
|
3552
|
-
declare const deleteTemplateDocument: (endpoint: VerdocsEndpoint,
|
|
3552
|
+
declare const deleteTemplateDocument: (endpoint: VerdocsEndpoint, documentId: string) => Promise<ITemplate>;
|
|
3553
3553
|
/**
|
|
3554
3554
|
* Get all metadata for a template document. Note that when called by non-creators (e.g. Org Collaborators)
|
|
3555
3555
|
* this will return only the **metadata** the caller is allowed to view.
|
package/dist/index.d.ts
CHANGED
|
@@ -3526,7 +3526,7 @@ declare const toggleTemplateStar: (endpoint: VerdocsEndpoint, templateId: string
|
|
|
3526
3526
|
* ```typescript
|
|
3527
3527
|
* import {TemplateDocument} from '@verdocs/js-sdk/Templates';
|
|
3528
3528
|
*
|
|
3529
|
-
* await TemplateDocument.createDocument(
|
|
3529
|
+
* await TemplateDocument.createDocument(VerdocsEndpoint.getDefault(), templateID, params);
|
|
3530
3530
|
* ```
|
|
3531
3531
|
*
|
|
3532
3532
|
* @group Template Documents
|
|
@@ -3540,16 +3540,16 @@ declare const createTemplateDocument: (endpoint: VerdocsEndpoint, template_id: s
|
|
|
3540
3540
|
* Delete a specific Document.
|
|
3541
3541
|
*
|
|
3542
3542
|
* ```typescript
|
|
3543
|
-
* import {
|
|
3543
|
+
* import {deleteTemplateDocument} from '@verdocs/js-sdk/Templates';
|
|
3544
3544
|
*
|
|
3545
|
-
* await
|
|
3545
|
+
* await deleteTemplateDocument(VerdocsEndpoint.getDefault(), documentID);
|
|
3546
3546
|
* ```
|
|
3547
3547
|
*
|
|
3548
3548
|
* @group Template Documents
|
|
3549
|
-
* @api DELETE /v2/
|
|
3549
|
+
* @api DELETE /v2/template-documents/:document_id Delete a template document
|
|
3550
3550
|
* @apiSuccess string . Success
|
|
3551
3551
|
*/
|
|
3552
|
-
declare const deleteTemplateDocument: (endpoint: VerdocsEndpoint,
|
|
3552
|
+
declare const deleteTemplateDocument: (endpoint: VerdocsEndpoint, documentId: string) => Promise<ITemplate>;
|
|
3553
3553
|
/**
|
|
3554
3554
|
* Get all metadata for a template document. Note that when called by non-creators (e.g. Org Collaborators)
|
|
3555
3555
|
* this will return only the **metadata** the caller is allowed to view.
|
package/dist/index.js
CHANGED
|
@@ -2440,7 +2440,7 @@ const toggleTemplateStar = (endpoint, templateId) => endpoint.api //
|
|
|
2440
2440
|
* ```typescript
|
|
2441
2441
|
* import {TemplateDocument} from '@verdocs/js-sdk/Templates';
|
|
2442
2442
|
*
|
|
2443
|
-
* await TemplateDocument.createDocument(
|
|
2443
|
+
* await TemplateDocument.createDocument(VerdocsEndpoint.getDefault(), templateID, params);
|
|
2444
2444
|
* ```
|
|
2445
2445
|
*
|
|
2446
2446
|
* @group Template Documents
|
|
@@ -2468,17 +2468,17 @@ const createTemplateDocument = (endpoint, template_id, file, onUploadProgress) =
|
|
|
2468
2468
|
* Delete a specific Document.
|
|
2469
2469
|
*
|
|
2470
2470
|
* ```typescript
|
|
2471
|
-
* import {
|
|
2471
|
+
* import {deleteTemplateDocument} from '@verdocs/js-sdk/Templates';
|
|
2472
2472
|
*
|
|
2473
|
-
* await
|
|
2473
|
+
* await deleteTemplateDocument(VerdocsEndpoint.getDefault(), documentID);
|
|
2474
2474
|
* ```
|
|
2475
2475
|
*
|
|
2476
2476
|
* @group Template Documents
|
|
2477
|
-
* @api DELETE /v2/
|
|
2477
|
+
* @api DELETE /v2/template-documents/:document_id Delete a template document
|
|
2478
2478
|
* @apiSuccess string . Success
|
|
2479
2479
|
*/
|
|
2480
|
-
const deleteTemplateDocument = (endpoint,
|
|
2481
|
-
.delete(`/v2/
|
|
2480
|
+
const deleteTemplateDocument = (endpoint, documentId) => endpoint.api //
|
|
2481
|
+
.delete(`/v2/template-documents/${documentId}`)
|
|
2482
2482
|
.then((r) => r.data);
|
|
2483
2483
|
/**
|
|
2484
2484
|
* Get all metadata for a template document. Note that when called by non-creators (e.g. Org Collaborators)
|