Skip to content

Commit 2e00daf

Browse files
author
Mufti Azan Farooqi
committed
docs: generate JSDoc functions.md
1 parent 752f2a1 commit 2e00daf

File tree

3 files changed

+28
-5
lines changed

3 files changed

+28
-5
lines changed

docs/functions.md

+17
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
<dt><a href="#createLicense">createLicense(license)</a> ⇒ <code>Promise.&lt;ApiResponse.&lt;LicenseResponse&gt;&gt;</code></dt>
55
<dd><p>Create a license.</p>
66
</dd>
7+
<dt><a href="#createLicenses">createLicenses(license, count)</a> ⇒ <code>Promise.&lt;Array.&lt;ApiResponse&gt;&gt;</code></dt>
8+
<dd><p>Create multiple licenses</p>
9+
</dd>
710
<dt><a href="#updateLicense">updateLicense(id, license)</a> ⇒ <code>Promise.&lt;ApiResponse.&lt;LicenseResponse&gt;&gt;</code></dt>
811
<dd><p>Updates the specified license by setting the values of the existing license to the properties passed.
912
Any properties not provided will be left unchanged.</p>
@@ -57,6 +60,20 @@ Create a license.
5760
| ------- | --------------------------------- | ------------------------ |
5861
| license | <code>LicenseCreateRequest</code> | License object to create |
5962

63+
<a name="createLicenses"></a>
64+
65+
## createLicenses(license, count) ⇒ <code>Promise.&lt;Array.&lt;ApiResponse&gt;&gt;</code>
66+
67+
Create multiple licenses
68+
69+
**Kind**: global function
70+
**Returns**: <code>Promise.&lt;Array.&lt;ApiResponse&gt;&gt;</code> - Promise that resolves to an array of Web API responses.
71+
72+
| Param | Type | Description |
73+
| ------- | --------------------------------- | ---------------------------- |
74+
| license | <code>LicenseCreateRequest</code> | License object to create |
75+
| count | <code>number</code> | Number of licenses to create |
76+
6077
<a name="updateLicense"></a>
6178

6279
## updateLicense(id, license) ⇒ <code>Promise.&lt;ApiResponse.&lt;LicenseResponse&gt;&gt;</code>

src/client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default class CryptlexWebApiClient {
4848
* Create multiple licenses
4949
* @param {LicenseCreateRequest} license License object to create
5050
* @param {number} count Number of licenses to create
51-
* @returns {Promise<ApiResponse<LicenseResponse>[]>} Promise that resolves to an array of Web API responses.
51+
* @returns {Promise<ApiResponse[]>} Promise that resolves to an array of Web API responses.
5252
*/
5353
createLicenses(
5454
license: LicenseCreateRequest,

src/http-client.ts

+10-4
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,35 @@ type AxiosErrorWithRetries = AxiosError & {
1515
config: AxiosRetryConfig;
1616
};
1717

18-
/** Type alias for units. */
18+
/**
19+
* @internal
20+
* Type alias for units. */
1921
type Milliseconds = number;
2022

2123
/**
24+
* @internal
25+
* @ignore
2226
* Default time to stall program
2327
*/
2428
const DEFAULT_SLEEP_TIME: Milliseconds = 30000;
2529

2630
/**
31+
* @internal
32+
* @ignore
2733
* Maximum allowed retries.
2834
*/
2935
const MAX_RETRIES = 3;
3036

3137
/**
38+
* @internal
39+
* @ignore
3240
* The HttpClient class abstracts any customizations on the underlying client(Axios) from the CryptlexWebApiClient class.
3341
*/
3442
export class HttpClient {
3543
/** Axios instance */
3644
instance: AxiosInstance;
3745

3846
/**
39-
* @private
4047
* @internal
4148
* @param {CryptlexWebApiClientOptions} options CryptlexWebApiClientOptions
4249
*/
@@ -53,7 +60,6 @@ export class HttpClient {
5360
}
5461

5562
/**
56-
* @private
5763
* @internal
5864
* Initializes interceptors for Axios client
5965
* @returns {void}
@@ -165,7 +171,7 @@ export class HttpClient {
165171

166172
/**
167173
* @internal
168-
* @private
174+
* @ignore
169175
*
170176
* Stalls the program.
171177
* @param {number} ms Time to stall in milliseconds

0 commit comments

Comments
 (0)