Skip to content

Commit 44dfbed

Browse files
committed
Add comment type
1 parent d2a97d0 commit 44dfbed

File tree

4 files changed

+46
-0
lines changed

4 files changed

+46
-0
lines changed

dist/cjs/RestClient.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,24 @@ var RestClient = exports["default"] = /*#__PURE__*/function () {
128128
}
129129
});
130130
}
131+
132+
/**
133+
* @param {string} restEndpoint
134+
*/
135+
}, {
136+
key: "setRestEndpoint",
137+
value: function setRestEndpoint(restEndpoint) {
138+
this.restEndpoint = restEndpoint;
139+
}
140+
141+
/**
142+
* @param {string} contentType
143+
*/
144+
}, {
145+
key: "setContentType",
146+
value: function setContentType(contentType) {
147+
this.contentType = contentType;
148+
}
131149
}], [{
132150
key: "generateTeleSignHeaders",
133151
value: function generateTeleSignHeaders(customerId, apiKey, methodName, resource, contentType, encodedFields) {

dist/esm/RestClient.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,4 +153,18 @@ export default class RestClient {
153153
}
154154
});
155155
}
156+
157+
/**
158+
* @param {string} restEndpoint
159+
*/
160+
setRestEndpoint(restEndpoint) {
161+
this.restEndpoint = restEndpoint;
162+
}
163+
164+
/**
165+
* @param {string} contentType
166+
*/
167+
setContentType(contentType) {
168+
this.contentType = contentType;
169+
}
156170
}

dist/types/RestClient.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,12 @@ export default class RestClient {
5252
* @param params: Body params to perform the HTTP request with, as a dictionary.
5353
*/
5454
execute(callback: any, methodName: any, resource: any, params?: any, authMethod?: any, nonce?: any, date?: any): void;
55+
/**
56+
* @param {string} restEndpoint
57+
*/
58+
setRestEndpoint(restEndpoint: string): void;
59+
/**
60+
* @param {string} contentType
61+
*/
62+
setContentType(contentType: string): void;
5563
}

src/RestClient.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,16 @@ export default class RestClient {
202202

203203
}
204204

205+
/**
206+
* @param {string} restEndpoint
207+
*/
205208
setRestEndpoint(restEndpoint) {
206209
this.restEndpoint = restEndpoint
207210
}
208211

212+
/**
213+
* @param {string} contentType
214+
*/
209215
setContentType(contentType) {
210216
this.contentType = contentType
211217
}

0 commit comments

Comments
 (0)