@verdocs/js-sdk 3.0.10 → 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
  }); };
@@ -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.10",
3
+ "version": "3.0.11",
4
4
  "private": false,
5
5
  "homepage": "https://github.com/Verdocs/js-sdk",
6
6
  "description": "Verdocs JS SDK",