@verdocs/web-sdk 2.2.38 → 2.2.40
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/cjs/{EnvelopeStore-eda7addf.js → EnvelopeStore-f8c301e1.js} +1 -1
- package/dist/cjs/{Envelopes-ef06e293.js → Envelopes-99ca79fe.js} +5 -5
- package/dist/cjs/{TemplateStore-8bf09f12.js → TemplateStore-42c35573.js} +1 -1
- package/dist/cjs/{VerdocsEndpoint-a15d322b.js → VerdocsEndpoint-ae3a69d6.js} +67 -5
- package/dist/cjs/ipc-test.cjs.entry.js +2 -2
- package/dist/cjs/{utils-06248dca.js → utils-2ddfdf9e.js} +1 -1
- package/dist/cjs/verdocs-activity-box.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-auth.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-build.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-button-panel_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-contact-picker_2.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-envelope-document-page.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-envelope-recipient-link_2.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-envelope-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-envelopes-list.cjs.entry.js +21 -27
- package/dist/cjs/verdocs-field-attachment.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-date.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-initial.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-payment.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-signature.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-field-textarea.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-field-textbox.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-field-timestamp.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-file-chooser_2.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-pagination_2.cjs.entry.js +2 -2
- package/dist/cjs/verdocs-preview_8.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-quick-functions_3.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-search.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-settings-api-keys_4.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-settings.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-sign.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-template-document-page_2.cjs.entry.js +3 -3
- package/dist/cjs/verdocs-template-fields_4.cjs.entry.js +4 -4
- package/dist/cjs/verdocs-template-star.cjs.entry.js +1 -1
- package/dist/cjs/verdocs-templates-list.cjs.entry.js +23 -12
- package/dist/cjs/verdocs-view.cjs.entry.js +3 -3
- package/dist/collection/components/embeds/verdocs-auth/verdocs-auth.js +3 -3
- package/dist/collection/components/envelopes/verdocs-envelope-sidebar/verdocs-envelope-sidebar.stories.js +1 -1
- package/dist/collection/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.js +26 -26
- package/dist/collection/components/templates/verdocs-templates-list/verdocs-templates-list.js +23 -12
- package/dist/components/Envelopes.js +5 -5
- package/dist/components/VerdocsEndpoint.js +67 -5
- package/dist/components/verdocs-auth.js +3 -3
- package/dist/components/verdocs-envelopes-list.js +18 -24
- package/dist/components/verdocs-templates-list.js +22 -11
- package/dist/custom-elements.json +2059 -0
- package/dist/docs.json +3 -3
- package/dist/esm/{EnvelopeStore-03f3f9f4.js → EnvelopeStore-15cc99ef.js} +1 -1
- package/dist/esm/{Envelopes-7ba36e68.js → Envelopes-21ffb899.js} +5 -5
- package/dist/esm/{TemplateStore-555a4b49.js → TemplateStore-1dfaf509.js} +1 -1
- package/dist/esm/{VerdocsEndpoint-750b24e4.js → VerdocsEndpoint-f58fcb3c.js} +67 -5
- package/dist/esm/ipc-test.entry.js +2 -2
- package/dist/esm/{utils-36e03f93.js → utils-d269cea3.js} +1 -1
- package/dist/esm/verdocs-activity-box.entry.js +2 -2
- package/dist/esm/verdocs-auth.entry.js +4 -4
- package/dist/esm/verdocs-build.entry.js +2 -2
- package/dist/esm/verdocs-button-panel_2.entry.js +2 -2
- package/dist/esm/verdocs-contact-picker_2.entry.js +3 -3
- package/dist/esm/verdocs-envelope-document-page.entry.js +3 -3
- package/dist/esm/verdocs-envelope-recipient-link_2.entry.js +3 -3
- package/dist/esm/verdocs-envelope-sidebar.entry.js +3 -3
- package/dist/esm/verdocs-envelopes-list.entry.js +21 -27
- package/dist/esm/verdocs-field-attachment.entry.js +2 -2
- package/dist/esm/verdocs-field-checkbox.entry.js +2 -2
- package/dist/esm/verdocs-field-date.entry.js +2 -2
- package/dist/esm/verdocs-field-dropdown.entry.js +2 -2
- package/dist/esm/verdocs-field-initial.entry.js +2 -2
- package/dist/esm/verdocs-field-payment.entry.js +2 -2
- package/dist/esm/verdocs-field-radio-button.entry.js +2 -2
- package/dist/esm/verdocs-field-signature.entry.js +2 -2
- package/dist/esm/verdocs-field-textarea.entry.js +3 -3
- package/dist/esm/verdocs-field-textbox.entry.js +3 -3
- package/dist/esm/verdocs-field-timestamp.entry.js +2 -2
- package/dist/esm/verdocs-file-chooser_2.entry.js +1 -1
- package/dist/esm/verdocs-pagination_2.entry.js +2 -2
- package/dist/esm/verdocs-preview_8.entry.js +4 -4
- package/dist/esm/verdocs-quick-functions_3.entry.js +1 -1
- package/dist/esm/verdocs-search.entry.js +1 -1
- package/dist/esm/verdocs-settings-api-keys_4.entry.js +3 -3
- package/dist/esm/verdocs-settings.entry.js +1 -1
- package/dist/esm/verdocs-sign.entry.js +3 -3
- package/dist/esm/verdocs-template-document-page_2.entry.js +3 -3
- package/dist/esm/verdocs-template-fields_4.entry.js +4 -4
- package/dist/esm/verdocs-template-star.entry.js +1 -1
- package/dist/esm/verdocs-templates-list.entry.js +23 -12
- package/dist/esm/verdocs-view.entry.js +3 -3
- package/dist/esm-es5/{EnvelopeStore-03f3f9f4.js → EnvelopeStore-15cc99ef.js} +1 -1
- package/dist/esm-es5/{Envelopes-7ba36e68.js → Envelopes-21ffb899.js} +1 -1
- package/dist/esm-es5/{TemplateStore-555a4b49.js → TemplateStore-1dfaf509.js} +1 -1
- package/dist/esm-es5/VerdocsEndpoint-f58fcb3c.js +1 -0
- package/dist/esm-es5/ipc-test.entry.js +1 -1
- package/dist/esm-es5/{utils-36e03f93.js → utils-d269cea3.js} +1 -1
- package/dist/esm-es5/verdocs-activity-box.entry.js +1 -1
- package/dist/esm-es5/verdocs-auth.entry.js +1 -1
- package/dist/esm-es5/verdocs-build.entry.js +1 -1
- package/dist/esm-es5/verdocs-button-panel_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-contact-picker_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-document-page.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-recipient-link_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelope-sidebar.entry.js +1 -1
- package/dist/esm-es5/verdocs-envelopes-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-attachment.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-checkbox.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-date.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-dropdown.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-initial.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-payment.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-radio-button.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-signature.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textarea.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-textbox.entry.js +1 -1
- package/dist/esm-es5/verdocs-field-timestamp.entry.js +1 -1
- package/dist/esm-es5/verdocs-file-chooser_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-pagination_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-preview_8.entry.js +1 -1
- package/dist/esm-es5/verdocs-quick-functions_3.entry.js +1 -1
- package/dist/esm-es5/verdocs-search.entry.js +1 -1
- package/dist/esm-es5/verdocs-settings-api-keys_4.entry.js +1 -1
- package/dist/esm-es5/verdocs-settings.entry.js +1 -1
- package/dist/esm-es5/verdocs-sign.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-document-page_2.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-fields_4.entry.js +1 -1
- package/dist/esm-es5/verdocs-template-star.entry.js +1 -1
- package/dist/esm-es5/verdocs-templates-list.entry.js +1 -1
- package/dist/esm-es5/verdocs-view.entry.js +1 -1
- package/dist/types/components/envelopes/verdocs-envelopes-list/verdocs-envelopes-list.d.ts +6 -6
- package/dist/types/components/templates/verdocs-templates-list/verdocs-templates-list.d.ts +5 -5
- package/dist/types/components.d.ts +2 -2
- package/dist/verdocs-web-sdk/{p-d44a159b.system.entry.js → p-01f875d4.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-36e20c7d.system.entry.js → p-081df4a1.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f5222669.system.entry.js → p-0d35d591.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f8c3d844.entry.js → p-0df58c57.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d477824e.entry.js → p-0f94d635.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d6495ba8.entry.js → p-1406ffd2.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ba50174c.system.entry.js → p-14aefeb2.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-005f8cbc.system.entry.js → p-16043ac0.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-25988bd7.entry.js → p-2184a570.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e33e9dd5.system.entry.js → p-23a92204.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-8e2b8c08.entry.js → p-271c989f.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-4f6f538d.entry.js → p-2a185ea9.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-95d6d5bc.entry.js → p-2ae9baa3.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7b8a52a9.system.entry.js → p-2bc8c83c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-271dafb1.system.js → p-2ccbcfeb.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-354179b9.entry.js → p-2f7236a5.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1d52f0a4.entry.js → p-32d4b31e.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-07118e76.entry.js → p-34d2f66c.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-4d8287cb.system.entry.js → p-35769d0c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c1164de2.entry.js → p-35acc57f.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d48bffed.entry.js → p-3807b541.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1db55e60.entry.js → p-3a702f79.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c4255966.entry.js → p-3ba65022.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-19e9660c.entry.js → p-3f9fbf94.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-96325d87.entry.js → p-3fd978ad.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-ced58601.entry.js → p-409e992a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-58eb94ab.system.entry.js → p-4248ef54.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9df48701.entry.js → p-44fa9fba.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6a5ef696.system.entry.js → p-4d4da6ef.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-d96f37d0.system.entry.js → p-53648483.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-53b991de.system.js +1 -0
- package/dist/verdocs-web-sdk/{p-135d684d.system.entry.js → p-56c0cc86.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-56f2a8ac.js +1 -0
- package/dist/verdocs-web-sdk/{p-84341e03.js → p-5a91bf23.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f7641208.system.entry.js → p-5fa7fcf7.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-61ad8441.system.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-faae78ce.system.entry.js → p-62f090c7.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-604d7791.entry.js → p-6823dd3e.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9623a082.system.entry.js → p-691fa663.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9b02abc9.system.entry.js → p-69c0f441.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1540e617.system.entry.js → p-6a795d03.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-dca97ec0.entry.js → p-6d1150ae.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9a510e13.system.entry.js → p-70df50d0.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-0a4856ac.entry.js → p-7549ad05.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-47ff8ea2.entry.js → p-77abc3ce.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a866be55.entry.js → p-79557fd0.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c3874a8d.system.entry.js → p-7c013c13.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-7e558e92.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-4c0f38c5.system.js → p-7e8d64fb.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3c64c237.system.entry.js → p-90ff8b2c.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-95259770.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-24a2d61e.entry.js → p-9b25404e.entry.js} +1 -1
- package/dist/verdocs-web-sdk/p-9c7093ab.entry.js +1 -0
- package/dist/verdocs-web-sdk/{p-a2a9d906.system.js → p-9fa916b5.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-af1c6957.system.entry.js → p-a171983b.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-19b70691.js → p-a35314fe.js} +1 -1
- package/dist/verdocs-web-sdk/{p-7783d364.system.entry.js → p-aa51514f.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-bd264e9b.entry.js → p-af3e9624.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-264085f1.system.entry.js → p-b2d698f7.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-2727f8c1.system.entry.js → p-b73415c3.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-e40d07cd.entry.js → p-bb8d6bdb.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-3d20f09f.system.js → p-c694cf93.system.js} +1 -1
- package/dist/verdocs-web-sdk/{p-185f5fa5.system.entry.js → p-c6cc7015.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-073fcf03.js → p-c7757545.js} +1 -1
- package/dist/verdocs-web-sdk/{p-9871a31d.entry.js → p-ca807155.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-334a7cd0.entry.js → p-ce804092.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-a3208fbe.entry.js → p-cf765153.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-c186e449.entry.js → p-d37aac3a.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-b8266baf.system.entry.js → p-d5a46144.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-43226b70.system.entry.js → p-d735df79.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-84b84302.system.entry.js → p-dd8845d4.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-877d6c80.system.entry.js → p-e3a9d167.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-066822ff.system.entry.js → p-e48418fd.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-f4e40ebd.system.entry.js → p-e6037224.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-1c70b492.system.entry.js → p-eaa5f223.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-adc052fa.js → p-ebc4142c.js} +1 -1
- package/dist/verdocs-web-sdk/p-f04bf956.system.js +1 -1
- package/dist/verdocs-web-sdk/{p-f720f49e.entry.js → p-f1c4035f.entry.js} +1 -1
- package/dist/verdocs-web-sdk/{p-6f8eb3d7.system.entry.js → p-f2249009.system.entry.js} +1 -1
- package/dist/verdocs-web-sdk/verdocs-web-sdk.esm.js +1 -1
- package/package.json +2 -2
- package/dist/esm-es5/VerdocsEndpoint-750b24e4.js +0 -1
- package/dist/verdocs-web-sdk/p-2174e539.js +0 -1
- package/dist/verdocs-web-sdk/p-24f0c391.system.js +0 -1
- package/dist/verdocs-web-sdk/p-4d2e73d9.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-57c09a21.system.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-793b6a49.entry.js +0 -1
- package/dist/verdocs-web-sdk/p-d6588808.entry.js +0 -1
@@ -27,6 +27,42 @@ var TemplatePermissions;
|
|
27
27
|
*
|
28
28
|
* @module
|
29
29
|
*/
|
30
|
+
var __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
37
|
+
});
|
38
|
+
};
|
39
|
+
var __generator = (undefined && undefined.__generator) || function (thisArg, body) {
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
41
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
43
|
+
function step(op) {
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
48
|
+
switch (op[0]) {
|
49
|
+
case 0: case 1: t = op; break;
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
53
|
+
default:
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
58
|
+
if (t[2]) _.ops.pop();
|
59
|
+
_.trys.pop(); continue;
|
60
|
+
}
|
61
|
+
op = body.call(thisArg, _);
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
64
|
+
}
|
65
|
+
};
|
30
66
|
/**
|
31
67
|
* Get all templates accessible by the caller, with optional filters.
|
32
68
|
*
|
@@ -44,6 +80,15 @@ var getTemplates = function (endpoint, params) {
|
|
44
80
|
.post('/templates', { params: params })
|
45
81
|
.then(function (r) { return r.data; });
|
46
82
|
};
|
83
|
+
// export interface IListTemplatesParams {
|
84
|
+
// name?: string;
|
85
|
+
// sharing?: 'all' | 'personal' | 'shared' | 'public';
|
86
|
+
// starred?: 'all' | 'starred' | 'unstarred';
|
87
|
+
// sort?: 'name' | 'created_at' | 'updated_at' | 'last_used_at' | 'counter' | 'star_counter';
|
88
|
+
// direction?: 'asc' | 'desc';
|
89
|
+
// page?: number;
|
90
|
+
// rows?: number;
|
91
|
+
// }
|
47
92
|
/**
|
48
93
|
* Lists all templates accessible by the caller, with optional filters.
|
49
94
|
*
|
@@ -53,11 +98,10 @@ var getTemplates = function (endpoint, params) {
|
|
53
98
|
* await Templates.listTemplates((VerdocsEndpoint.getDefault(), { sharing: 'personal', sort: 'last_used_at' });
|
54
99
|
* ```
|
55
100
|
*/
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
};
|
101
|
+
// export const listTemplates = (endpoint: VerdocsEndpoint, params?: IListTemplatesParams) =>
|
102
|
+
// endpoint.api //
|
103
|
+
// .post<ITemplateSummaries>('/templates/list', params, {baseURL: endpoint.getBaseURLv2()})
|
104
|
+
// .then((r) => r.data);
|
61
105
|
/**
|
62
106
|
* Get one template by its ID.
|
63
107
|
*
|
@@ -155,6 +199,24 @@ var SortOptions$1;
|
|
155
199
|
SortOptions["COUNTER"] = "counter";
|
156
200
|
SortOptions["STAR_COUNTER"] = "star_counter";
|
157
201
|
})(SortOptions$1 || (SortOptions$1 = {}));
|
202
|
+
/**
|
203
|
+
* List templates.
|
204
|
+
*
|
205
|
+
* ```typescript
|
206
|
+
* import {Templates} from '@verdocs/js-sdk/Templates';
|
207
|
+
*
|
208
|
+
* const {totals, templates} = await Templates.listTemplates((VerdocsEndpoint.getDefault(), { q: 'test', sort: 'created_at' }); * ```
|
209
|
+
*/
|
210
|
+
var listTemplates = function (endpoint, params) {
|
211
|
+
if (params === void 0) { params = {}; }
|
212
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
213
|
+
return __generator(this, function (_a) {
|
214
|
+
return [2 /*return*/, endpoint.api //
|
215
|
+
.post('/templates/list', params)
|
216
|
+
.then(function (r) { return r.data; })];
|
217
|
+
});
|
218
|
+
});
|
219
|
+
};
|
158
220
|
|
159
221
|
var TemplateSenderTypes;
|
160
222
|
(function (TemplateSenderTypes) {
|
@@ -313,14 +313,14 @@ const VerdocsAuth$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
313
313
|
}
|
314
314
|
if (this.displayMode === 'signup') {
|
315
315
|
const step1Invalid = this.submitting || !this.first || !this.last || !this.username || !this.password || !this.orgname || this.orgAvailable !== 'AVAILABLE';
|
316
|
-
return (h("div", { class: "form" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" }), h("h3", null, "Sign up for a trial account"), h("h4", null, "Already have an account?", h("verdocs-button", { label: "Log In", variant: "text", onClick: () => (this.displayMode = 'login'), disabled: this.submitting })), this.signupStep === 1 && (h("form", { onSubmit: () => this.handleSignup() }, h("div", { style: { display: 'flex', flexDirection: 'row', columnGap: '20px' } }, h("verdocs-text-input", { label: "First Name", autocomplete: "first", required: true, value: this.first, onInput: (e) => (this.first = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Last Name", autocomplete: "last", required: true, value: this.last, onInput: (e) => (this.last = e.target.value), disabled: this.submitting })), h("verdocs-text-input", { label: "Email", autocomplete: "email", required: true, value: this.username, onInput: (e) => (this.username = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Phone #", autocomplete: "phone", value: this.phone, onInput: (e) => (this.phone = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Password", type: "password", required: true, autocomplete: "current-password", value: this.password, onInput: (e) => (this.password = e.target.value), disabled: this.submitting }), h("div", { style: { display: 'flex', flexDirection: 'row', gap: '10px', alignItems: 'center' } }, h("verdocs-text-input", { label: "Organization Name", autocomplete: "org", required: true, value: this.orgname, onInput: (e) => this.checkAvailability(e.target.value), disabled: this.submitting, style: { flex: '1' }, onBlur: () => {
|
316
|
+
return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Sign up for a trial account"), h("h4", null, "Already have an account?", h("verdocs-button", { label: "Log In", variant: "text", onClick: () => (this.displayMode = 'login'), disabled: this.submitting })), this.signupStep === 1 && (h("form", { onSubmit: () => this.handleSignup() }, h("div", { style: { display: 'flex', flexDirection: 'row', columnGap: '20px' } }, h("verdocs-text-input", { label: "First Name", autocomplete: "first", required: true, value: this.first, onInput: (e) => (this.first = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Last Name", autocomplete: "last", required: true, value: this.last, onInput: (e) => (this.last = e.target.value), disabled: this.submitting })), h("verdocs-text-input", { label: "Email", autocomplete: "email", required: true, value: this.username, onInput: (e) => (this.username = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Phone #", autocomplete: "phone", value: this.phone, onInput: (e) => (this.phone = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Password", type: "password", required: true, autocomplete: "current-password", value: this.password, onInput: (e) => (this.password = e.target.value), disabled: this.submitting }), h("div", { style: { display: 'flex', flexDirection: 'row', gap: '10px', alignItems: 'center' } }, h("verdocs-text-input", { label: "Organization Name", autocomplete: "org", required: true, value: this.orgname, onInput: (e) => this.checkAvailability(e.target.value), disabled: this.submitting, style: { flex: '1' }, onBlur: () => {
|
317
317
|
console.log('blur');
|
318
318
|
} }), !this.checkingOrg && this.orgAvailable === 'AVAILABLE' && h("verdocs-help-icon", { icon: OkIcon, text: "Organization name is available." }), !this.checkingOrg && this.orgAvailable === 'TAKEN' && h("verdocs-help-icon", { icon: TakenIcon, text: "Organization already registered." }), !this.checkingOrg && this.orgAvailable === 'UNKNOWN' && h("verdocs-help-icon", { icon: InfoIcon, text: "Organization name must be unique." }), this.checkingOrg && h("verdocs-spinner", { mode: "dark", size: 24 })), h("div", { style: { marginTop: '30px' } }), h("verdocs-button", { label: "Next", disabled: step1Invalid, onClick: () => (this.signupStep = 2), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))), this.signupStep === 2 && (h("form", { onSubmit: () => this.handleSignup() }, h("verdocs-text-input", { label: "How did you hear about Verdocs?", value: this.howHear, onInput: (e) => (this.howHear = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Your Industry", options: Industries, value: this.industry, onInput: (e) => (this.industry = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Company Size", options: CompanySizes, value: this.companySize, onInput: (e) => (this.companySize = e.target.value), disabled: this.submitting }), h("verdocs-select-input", { label: "Purpose", options: Reasons, value: this.reason, onInput: (e) => (this.reason = e.target.value), disabled: this.submitting }), h("div", { style: { marginTop: '30px' } }), h("verdocs-button", { label: "Create Account", disabled: this.submitting, onClick: () => this.handleSignup(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))), this.signupStep === 3 && (h("form", { onSubmit: () => this.handleSignup() }, h("p", null, "Please check your e-mail inbox for a verification code and follow the instructions provided."), h("p", null, h("em", null, "Verification messages may take up to 1 hour to arrive. If you do not receive the invitation, ", h("a", { href: "#" }, "Click Here"), " to resend it. Be sure to check your spam folder.")), h("div", { style: { display: 'flex', flexDirection: 'row', gap: '20px' } }, h("verdocs-button", { label: "Back", disabled: this.submitting, onClick: () => {
|
319
319
|
this.signupStep = 2;
|
320
320
|
}, style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }), h("verdocs-button", { label: "Go to Dashboard", disabled: true, onClick: () => this.handleSignup(), style: { display: 'flex', justifyContent: 'center', margin: '30px auto 0' } }))))));
|
321
321
|
}
|
322
322
|
if (this.displayMode === 'forgot') {
|
323
|
-
return (h("div", { class: "form" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" }), h("h3", null, "Forgot your password?"), h("p", null, "Enter your e-mail address below, and reset instructions will be sent to your Inbox."), h("p", null, h("em", null, "Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")), h("form", { onSubmit: () => this.handleSignup() }, h("verdocs-text-input", { label: "Email", autocomplete: "email", required: true, value: this.username, onInput: (e) => (this.username = e.target.value), disabled: this.submitting }), h("div", { style: { marginTop: '30px' } }), h("div", { class: "buttons" }, h("verdocs-button", { label: "Cancel", variant: "outline", disabled: this.submitting, onClick: () => (this.displayMode = 'login') }), h("verdocs-button", { label: "Reset", disabled: this.submitting, onClick: () => this.handleReset() })))));
|
323
|
+
return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Forgot your password?"), h("p", null, "Enter your e-mail address below, and reset instructions will be sent to your Inbox."), h("p", null, h("em", null, "Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")), h("form", { onSubmit: () => this.handleSignup() }, h("verdocs-text-input", { label: "Email", autocomplete: "email", required: true, value: this.username, onInput: (e) => (this.username = e.target.value), disabled: this.submitting }), h("div", { style: { marginTop: '30px' } }), h("div", { class: "buttons" }, h("verdocs-button", { label: "Cancel", variant: "outline", disabled: this.submitting, onClick: () => (this.displayMode = 'login') }), h("verdocs-button", { label: "Reset", disabled: this.submitting, onClick: () => this.handleReset() })))));
|
324
324
|
}
|
325
325
|
if (this.displayMode === 'verify') {
|
326
326
|
return (h("div", { class: "form" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" }), h("h3", null, "Please Verify your Email Address"), h("p", null, "Check your e-mail inbox for a verification email, and follow the instructions provided."), h("p", null, h("em", null, "Please allow up to 24 hours for delivery, and check your spam folder if you do not receive the message. ")), h("div", { class: "buttons" }, h("verdocs-button", { label: "Sign Out", variant: "outline", disabled: this.submitting, onClick: () => {
|
@@ -330,7 +330,7 @@ const VerdocsAuth$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
330
330
|
this.displayMode = 'login';
|
331
331
|
} }), h("verdocs-button", { label: "Resend Email", disabled: this.resendDisabled, onClick: () => this.handleResend() }))));
|
332
332
|
}
|
333
|
-
return (h("div", { class: "form" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" }), h("h3", null, "Log in to your account"), h("h4", null, "Don't have an account?", h("verdocs-button", { label: "Sign Up", variant: "text", onClick: () => {
|
333
|
+
return (h("div", { class: "form" }, h("a", { href: "https://verdocs.com/en/" }, h("img", { src: this.logo, alt: "Verdocs Logo", class: "logo" })), h("h3", null, "Log in to your account"), h("h4", null, "Don't have an account?", h("verdocs-button", { label: "Sign Up", variant: "text", onClick: () => {
|
334
334
|
this.displayMode = 'signup';
|
335
335
|
this.signupStep = 1;
|
336
336
|
}, disabled: this.submitting })), h("form", { onSubmit: () => this.loginAndCheckVerification() }, h("verdocs-text-input", { label: "Email", autocomplete: "username", value: this.username, onInput: (e) => (this.username = e.target.value), disabled: this.submitting }), h("verdocs-text-input", { label: "Password", type: "password", autocomplete: "current-password", value: this.password, onInput: (e) => (this.password = e.target.value), disabled: this.submitting }), h("verdocs-button", { label: "Forgot Your Password?", variant: "text", onClick: () => (this.displayMode = 'forgot'), disabled: this.submitting, style: { display: 'flex', justifyContent: 'center', margin: '10px auto 20px' } }), h("verdocs-button", { label: "Login", disabled: this.submitting, onClick: () => this.loginAndCheckVerification(), style: { display: 'flex', justifyContent: 'center', margin: '10px auto 0' } }))));
|
@@ -104,64 +104,64 @@ const VerdocsEnvelopesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
|
|
104
104
|
this.loading = true;
|
105
105
|
let queryParams = {
|
106
106
|
page: this.selectedPage,
|
107
|
-
sort: this.sort,
|
107
|
+
// sort: this.sort,
|
108
108
|
rows: this.rowsPerPage,
|
109
109
|
};
|
110
110
|
switch (this.view) {
|
111
111
|
case 'all':
|
112
112
|
queryParams = {
|
113
113
|
...queryParams,
|
114
|
-
sort: this.sort,
|
115
|
-
direction: this.sort === 'name' ? 'asc' : 'desc',
|
114
|
+
// sort: this.sort,
|
115
|
+
// direction: this.sort === 'name' ? 'asc' : 'desc',
|
116
116
|
status: (this.status === 'all' ? ['pending', 'in progress', 'complete', 'declined', 'canceled'] : [this.status]),
|
117
117
|
};
|
118
118
|
break;
|
119
119
|
case 'inbox':
|
120
120
|
queryParams = {
|
121
121
|
...queryParams,
|
122
|
-
is_recipient: true,
|
123
|
-
sort: 'updated_at',
|
124
|
-
recipient_status: ['invited', 'declined', 'opened', 'signed', 'submitted', 'canceled'],
|
122
|
+
// is_recipient: true,
|
123
|
+
// sort: 'updated_at',
|
124
|
+
// recipient_status: ['invited', 'declined', 'opened', 'signed', 'submitted', 'canceled'],
|
125
125
|
};
|
126
126
|
break;
|
127
127
|
case 'sent':
|
128
128
|
queryParams = {
|
129
129
|
...queryParams,
|
130
130
|
is_owner: true,
|
131
|
-
sort: 'updated_at',
|
131
|
+
// sort: 'updated_at',
|
132
132
|
};
|
133
133
|
break;
|
134
134
|
case 'action':
|
135
135
|
queryParams = {
|
136
136
|
...queryParams,
|
137
|
-
sort: 'updated_at',
|
138
|
-
is_recipient: true,
|
137
|
+
// sort: 'updated_at',
|
138
|
+
// is_recipient: true,
|
139
139
|
status: ['pending', 'in progress'],
|
140
|
-
recipient_status: ['invited', 'opened', 'signed'],
|
140
|
+
// recipient_status: ['invited', 'opened', 'signed'],
|
141
141
|
};
|
142
142
|
break;
|
143
143
|
case 'waiting':
|
144
144
|
queryParams = {
|
145
145
|
...queryParams,
|
146
146
|
is_owner: true,
|
147
|
-
sort: 'updated_at',
|
148
|
-
direction: 'desc',
|
147
|
+
// sort: 'updated_at',
|
148
|
+
// direction: 'desc',
|
149
149
|
status: ['pending', 'in progress'],
|
150
150
|
};
|
151
151
|
break;
|
152
152
|
case 'completed':
|
153
153
|
queryParams = {
|
154
154
|
...queryParams,
|
155
|
-
sort: 'updated_at',
|
156
|
-
direction: 'desc',
|
155
|
+
// sort: 'updated_at',
|
156
|
+
// direction: 'desc',
|
157
157
|
status: ['complete'],
|
158
158
|
};
|
159
159
|
break;
|
160
160
|
default:
|
161
161
|
queryParams = {
|
162
162
|
...queryParams,
|
163
|
-
sort: 'updated_at',
|
164
|
-
direction: 'desc',
|
163
|
+
// sort: 'updated_at',
|
164
|
+
// direction: 'desc',
|
165
165
|
status: (this.status === 'all' ? ['pending', 'in progress', 'complete', 'declined', 'canceled'] : [this.status]),
|
166
166
|
};
|
167
167
|
}
|
@@ -173,18 +173,12 @@ const VerdocsEnvelopesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
|
|
173
173
|
queryParams.status = [this.status];
|
174
174
|
}
|
175
175
|
}
|
176
|
-
if (this.
|
177
|
-
queryParams.sort = this.sort;
|
178
|
-
queryParams.direction = this.sort === 'name' ? 'asc' : 'desc';
|
179
|
-
}
|
180
|
-
if (this.match.trim()) {
|
181
|
-
queryParams.match = this.match.trim();
|
182
|
-
}
|
176
|
+
if (this.match.trim()) ;
|
183
177
|
// if (this.containing.trim()) {
|
184
178
|
// queryParams.field_value = this.containing.trim();
|
185
179
|
// }
|
186
180
|
const response = await listEnvelopes(this.endpoint, queryParams);
|
187
|
-
this.envelopes = response.
|
181
|
+
this.envelopes = response.envelopes;
|
188
182
|
this.count = response.total;
|
189
183
|
this.loading = false;
|
190
184
|
}
|
@@ -126,18 +126,18 @@ const VerdocsTemplatesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
|
|
126
126
|
this.loading = true;
|
127
127
|
try {
|
128
128
|
let queryParams = {
|
129
|
-
sharing: this.sharing,
|
130
|
-
starred: this.starred,
|
129
|
+
// sharing: this.sharing,
|
130
|
+
// starred: this.starred,
|
131
131
|
page: this.selectedPage,
|
132
|
-
sort: this.sort,
|
132
|
+
// sort: this.sort,
|
133
133
|
rows: this.rowsPerPage,
|
134
134
|
// ascending: this.sort === 'name' || this.sort === 'star_counter',
|
135
135
|
};
|
136
136
|
if (this.name.trim() !== '') {
|
137
|
-
queryParams.
|
137
|
+
queryParams.q = this.name.trim();
|
138
138
|
}
|
139
139
|
const response = await listTemplates(this.endpoint, queryParams);
|
140
|
-
this.templates = response.
|
140
|
+
this.templates = response.templates;
|
141
141
|
this.count = response.total;
|
142
142
|
this.loading = false;
|
143
143
|
}
|
@@ -187,16 +187,27 @@ const VerdocsTemplatesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
|
|
187
187
|
const dateToShow = this.sort === 'created_at' ? 'created_at' : this.sort === 'updated_at' ? 'updated_at' : 'last_used_at';
|
188
188
|
const date = template[dateToShow];
|
189
189
|
const MENU_OPTIONS = [];
|
190
|
-
|
191
|
-
|
190
|
+
const allowed_operations = [];
|
191
|
+
// serverless/src/functions/getTemplates.ts: allowed_operations: [] as string[],
|
192
|
+
// serverless/src/functions/getTemplates.ts: canPerformTemplateAction(request.session, 'create_personal', record) && record.allowed_operations.push('create_personal');
|
193
|
+
// serverless/src/functions/getTemplates.ts: canPerformTemplateAction(request.session, 'create_org', record) && record.allowed_operations.push('create_org');
|
194
|
+
// serverless/src/functions/getTemplates.ts: canPerformTemplateAction(request.session, 'create_public', record) && record.allowed_operations.push('create_public');
|
195
|
+
// serverless/src/functions/getTemplates.ts: canPerformTemplateAction(request.session, 'read', record) && record.allowed_operations.push('read');
|
196
|
+
// serverless/src/functions/getTemplates.ts: canPerformTemplateAction(request.session, 'write', record) && record.allowed_operations.push('write');
|
197
|
+
// serverless/src/functions/getTemplates.ts: canPerformTemplateAction(request.session, 'delete', record) && record.allowed_operations.push('delete');
|
198
|
+
// serverless/src/functions/getTemplates.ts: canPerformTemplateAction(request.session, 'change_visibility_personal', record) && record.allowed_operations.push('change_visibility_personal');
|
199
|
+
// serverless/src/functions/getTemplates.ts: canPerformTemplateAction(request.session, 'change_visibility_org', record) && record.allowed_operations.push('change_visibility_org');
|
200
|
+
// serverless/src/functions/getTemplates.ts: canPerformTemplateAction(request.session, 'change_visibility_public', record) && record.allowed_operations.push('change_visibility_public');
|
201
|
+
if (allowed_operations.includes(TemplateActions.READ) && this.allowedActions.includes('send')) {
|
202
|
+
MENU_OPTIONS.push({ label: 'Preview / Send', id: 'send', disabled: !allowed_operations.includes(TemplateActions.READ) });
|
192
203
|
}
|
193
204
|
// if (this.allowedActions.includes('createlink')) {
|
194
205
|
// MENU_OPTIONS.push({label: 'Create Link', id: 'createlink', disabled: true});
|
195
206
|
// }
|
196
|
-
if (
|
207
|
+
if (allowed_operations.includes(TemplateActions.CREATE_PERSONAL) && this.allowedActions.includes('signnow')) {
|
197
208
|
MENU_OPTIONS.push({ label: 'Sign Now', id: 'signnow', disabled: true });
|
198
209
|
}
|
199
|
-
if (
|
210
|
+
if (allowed_operations.includes(TemplateActions.READ) && this.allowedActions.includes('submitted')) {
|
200
211
|
MENU_OPTIONS.push({ label: '' });
|
201
212
|
MENU_OPTIONS.push({ label: 'Submissions', id: 'submitted' });
|
202
213
|
}
|
@@ -209,10 +220,10 @@ const VerdocsTemplatesList$1 = /*@__PURE__*/ proxyCustomElement(class extends HT
|
|
209
220
|
// MENU_OPTIONS.push({label: 'Get Preview Link', id: 'link', disabled: !this.canPreview(template)});
|
210
221
|
// }
|
211
222
|
if (this.allowedActions.includes('link') || this.allowedActions.includes('edit') || this.allowedActions.includes('delete')) {
|
212
|
-
MENU_OPTIONS.push({ label: 'Edit', id: 'edit', disabled: !
|
223
|
+
MENU_OPTIONS.push({ label: 'Edit', id: 'edit', disabled: !allowed_operations.includes(TemplateActions.WRITE) });
|
213
224
|
}
|
214
225
|
if (this.allowedActions.includes('link') || this.allowedActions.includes('edit') || this.allowedActions.includes('delete')) {
|
215
|
-
MENU_OPTIONS.push({ label: 'Delete', id: 'delete', disabled: !
|
226
|
+
MENU_OPTIONS.push({ label: 'Delete', id: 'delete', disabled: !allowed_operations.includes(TemplateActions.DELETE) });
|
216
227
|
}
|
217
228
|
}
|
218
229
|
return (h("div", { class: "template", onClick: () => {
|