Skip to content

Commit 4727149

Browse files
committed
Add comment type
1 parent 1aeeba4 commit 4727149

4 files changed

Lines changed: 46 additions & 0 deletions

File tree

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
@@ -199,10 +199,16 @@ export default class RestClient {
199199

200200
}
201201

202+
/**
203+
* @param {string} restEndpoint
204+
*/
202205
setRestEndpoint(restEndpoint) {
203206
this.restEndpoint = restEndpoint
204207
}
205208

209+
/**
210+
* @param {string} contentType
211+
*/
206212
setContentType(contentType) {
207213
this.contentType = contentType
208214
}

0 commit comments

Comments
 (0)