@verdocs/js-sdk 3.0.8 → 3.0.11

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.
@@ -75,7 +75,7 @@ export declare const getEnvelopeRecipients: (endpoint: VerdocsEndpoint, envelope
75
75
  /**
76
76
  * Get all metadata for an Envelope.
77
77
  */
78
- export declare const getEnvelope: (endpoint: VerdocsEndpoint, envelopeId: string) => Promise<IEnvelope>;
78
+ export declare const getEnvelope: (endpoint: VerdocsEndpoint, envelopeId: string, ssr?: boolean) => Promise<IEnvelope>;
79
79
  /**
80
80
  * Get all metadata for an Envelope.
81
81
  */
@@ -136,10 +136,10 @@ export var getEnvelopeRecipients = function (endpoint, envelopeId) { return __aw
136
136
  /**
137
137
  * Get all metadata for an Envelope.
138
138
  */
139
- export var getEnvelope = function (endpoint, envelopeId) { return __awaiter(void 0, void 0, void 0, function () {
139
+ export var getEnvelope = function (endpoint, envelopeId, ssr) { return __awaiter(void 0, void 0, void 0, function () {
140
140
  return __generator(this, function (_a) {
141
141
  return [2 /*return*/, endpoint.api //
142
- .get("/envelopes/".concat(envelopeId))
142
+ .get("/envelopes/".concat(envelopeId) + (ssr ? '?ssr=true' : ''))
143
143
  .then(function (r) { return r.data; })];
144
144
  });
145
145
  }); };
@@ -12,4 +12,4 @@ export interface IInitials {
12
12
  * create and store an initials block. Thereafter, the ID of the initials block may be re-used for each initials field
13
13
  * to be "stamped" by the user.
14
14
  */
15
- export declare const createInitials: (endpoint: VerdocsEndpoint, name: string, initials: string | Blob) => Promise<IInitials>;
15
+ export declare const createInitials: (endpoint: VerdocsEndpoint, name: string, initials: Blob) => Promise<IInitials>;
@@ -6,8 +6,7 @@
6
6
  */
7
7
  export var createInitials = function (endpoint, name, initials) {
8
8
  var data = new FormData();
9
- data.append(name, initials);
10
- // data.append('initial', initials, name);
9
+ data.append('initial', initials, name);
11
10
  return endpoint.api //
12
11
  .post("/initials", data)
13
12
  .then(function (r) { return r.data; });
@@ -13,7 +13,7 @@ export interface ISignature {
13
13
  * create and store a signature block. Thereafter, the ID of the signature block may be re-used for each signature field
14
14
  * to be "stamped" by the user.
15
15
  */
16
- export declare const createSignature: (endpoint: VerdocsEndpoint, name: string, signature: string | Blob) => Promise<ISignature>;
16
+ export declare const createSignature: (endpoint: VerdocsEndpoint, name: string, signature: Blob) => Promise<ISignature>;
17
17
  /**
18
18
  * Get the availbable signatures for a user.
19
19
  */
@@ -6,8 +6,7 @@
6
6
  */
7
7
  export var createSignature = function (endpoint, name, signature) {
8
8
  var data = new FormData();
9
- data.append(name, signature);
10
- // data.append('signature', signature, name);
9
+ data.append('signature', signature, name);
11
10
  return endpoint.api //
12
11
  .post("/signatures", data)
13
12
  .then(function (r) { return r.data; });
@@ -33,7 +33,7 @@ export declare const getTemplates: (endpoint: VerdocsEndpoint, params?: IGetTemp
33
33
  * const template = await Templates.getTemplate((VerdocsEndpoint.getDefault(), '83da3d70-7857-4392-b876-c4592a304bc9');
34
34
  * ```
35
35
  */
36
- export declare const getTemplate: (endpoint: VerdocsEndpoint, templateId: string) => Promise<ITemplate>;
36
+ export declare const getTemplate: (endpoint: VerdocsEndpoint, templateId: string, ssr?: boolean) => Promise<ITemplate>;
37
37
  /**
38
38
  * Get owner information for a template.
39
39
  *
@@ -66,9 +66,9 @@ export var getTemplates = function (endpoint, params) {
66
66
  * const template = await Templates.getTemplate((VerdocsEndpoint.getDefault(), '83da3d70-7857-4392-b876-c4592a304bc9');
67
67
  * ```
68
68
  */
69
- export var getTemplate = function (endpoint, templateId) {
69
+ export var getTemplate = function (endpoint, templateId, ssr) {
70
70
  return endpoint.api //
71
- .get("/templates/".concat(templateId))
71
+ .get("/templates/".concat(templateId) + (ssr ? '?ssr=true' : ''))
72
72
  .then(function (r) { return r.data; });
73
73
  };
74
74
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdocs/js-sdk",
3
- "version": "3.0.8",
3
+ "version": "3.0.11",
4
4
  "private": false,
5
5
  "homepage": "https://github.com/Verdocs/js-sdk",
6
6
  "description": "Verdocs JS SDK",