@verdocs/js-sdk 5.1.1 → 5.1.3
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 +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +2 -2
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -402,6 +402,7 @@ interface IWebhookEvents {
|
|
|
402
402
|
template_updated: boolean;
|
|
403
403
|
template_deleted: boolean;
|
|
404
404
|
template_used: boolean;
|
|
405
|
+
entitlement_used: boolean;
|
|
405
406
|
}
|
|
406
407
|
interface IWebhook {
|
|
407
408
|
id: string;
|
|
@@ -2721,6 +2722,7 @@ declare const getOrganizationUsage: (endpoint: VerdocsEndpoint, organizationId:
|
|
|
2721
2722
|
* @api POST /v2/organizations Create organization
|
|
2722
2723
|
* @apiDescription The caller will be assigned an "Owner" profile in the new organization, and it will be set to "current" automatically. A new set of session tokens will be issued to the caller, and the caller should update their endpoint to use the new tokens.
|
|
2723
2724
|
* @apiBody string name The name of the new organization
|
|
2725
|
+
* @apiBody string parent_id? If set, the new organization will be created as a child of the specified parent organization. The caller must be an admin of the parent organization.
|
|
2724
2726
|
* @apiBody string contact_email? Contact email for the new organization
|
|
2725
2727
|
* @apiBody string url? URL for the new organization
|
|
2726
2728
|
* @apiBody string full_logo_url? URL of a large-format PNG logo
|
package/dist/index.d.ts
CHANGED
|
@@ -402,6 +402,7 @@ interface IWebhookEvents {
|
|
|
402
402
|
template_updated: boolean;
|
|
403
403
|
template_deleted: boolean;
|
|
404
404
|
template_used: boolean;
|
|
405
|
+
entitlement_used: boolean;
|
|
405
406
|
}
|
|
406
407
|
interface IWebhook {
|
|
407
408
|
id: string;
|
|
@@ -2721,6 +2722,7 @@ declare const getOrganizationUsage: (endpoint: VerdocsEndpoint, organizationId:
|
|
|
2721
2722
|
* @api POST /v2/organizations Create organization
|
|
2722
2723
|
* @apiDescription The caller will be assigned an "Owner" profile in the new organization, and it will be set to "current" automatically. A new set of session tokens will be issued to the caller, and the caller should update their endpoint to use the new tokens.
|
|
2723
2724
|
* @apiBody string name The name of the new organization
|
|
2725
|
+
* @apiBody string parent_id? If set, the new organization will be created as a child of the specified parent organization. The caller must be an admin of the parent organization.
|
|
2724
2726
|
* @apiBody string contact_email? Contact email for the new organization
|
|
2725
2727
|
* @apiBody string url? URL for the new organization
|
|
2726
2728
|
* @apiBody string full_logo_url? URL of a large-format PNG logo
|
package/dist/index.js
CHANGED
|
@@ -2614,7 +2614,7 @@ const getOrganizationChildren = (endpoint, organizationId) => endpoint.api //
|
|
|
2614
2614
|
* @apiSuccess TOrganizationUsage . Usage data grouped by organization ID
|
|
2615
2615
|
*/
|
|
2616
2616
|
const getOrganizationUsage = (endpoint, organizationId, params) => endpoint.api //
|
|
2617
|
-
.get(`/v2/organizations/${organizationId}/
|
|
2617
|
+
.get(`/v2/organizations/${organizationId}/usage`, { params })
|
|
2618
2618
|
.then((r) => r.data);
|
|
2619
2619
|
/**
|
|
2620
2620
|
* Create an organization. The caller will be assigned an "Owner" profile in the new organization,
|
|
@@ -2631,6 +2631,7 @@ const getOrganizationUsage = (endpoint, organizationId, params) => endpoint.api
|
|
|
2631
2631
|
* @api POST /v2/organizations Create organization
|
|
2632
2632
|
* @apiDescription The caller will be assigned an "Owner" profile in the new organization, and it will be set to "current" automatically. A new set of session tokens will be issued to the caller, and the caller should update their endpoint to use the new tokens.
|
|
2633
2633
|
* @apiBody string name The name of the new organization
|
|
2634
|
+
* @apiBody string parent_id? If set, the new organization will be created as a child of the specified parent organization. The caller must be an admin of the parent organization.
|
|
2634
2635
|
* @apiBody string contact_email? Contact email for the new organization
|
|
2635
2636
|
* @apiBody string url? URL for the new organization
|
|
2636
2637
|
* @apiBody string full_logo_url? URL of a large-format PNG logo
|