rocket-launch-live-client 0.3.0 → 1.0.1
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.
- package/README.md +23 -5
- package/lib/cjs/Client.js +24 -22
- package/lib/cjs/Watcher.js +18 -17
- package/lib/cjs/index.js +9 -9
- package/lib/cjs/package.json +3 -0
- package/lib/cjs/types/Client.d.ts +4 -3
- package/lib/cjs/types/Watcher.d.ts +3 -14
- package/lib/cjs/types/application.js +4 -2
- package/lib/cjs/types/fetcher.d.ts +1 -1
- package/lib/cjs/types/index.d.ts +6 -7
- package/lib/cjs/types/types/application.d.ts +6 -3
- package/lib/cjs/types/types/standards.d.ts +0 -1
- package/lib/cjs/types/utils.d.ts +2 -2
- package/lib/cjs/utils.js +24 -3
- package/lib/esm/Client.js +9 -8
- package/lib/esm/Watcher.js +39 -40
- package/lib/esm/fetcher.js +2 -1
- package/lib/esm/index.mjs +4 -4
- package/lib/esm/package.json +3 -0
- package/lib/esm/types/Client.d.ts +4 -3
- package/lib/esm/types/Watcher.d.ts +3 -14
- package/lib/esm/types/application.js +2 -0
- package/lib/esm/types/fetcher.d.ts +1 -1
- package/lib/esm/types/index.d.ts +6 -7
- package/lib/esm/types/types/application.d.ts +6 -3
- package/lib/esm/types/types/standards.d.ts +0 -1
- package/lib/esm/types/utils.d.ts +2 -2
- package/lib/esm/utils.js +22 -1
- package/package.json +15 -17
- package/lib/cjs/types/Client.d.ts.map +0 -1
- package/lib/cjs/types/Watcher.d.ts.map +0 -1
- package/lib/cjs/types/fetcher.d.ts.map +0 -1
- package/lib/cjs/types/index.d.ts.map +0 -1
- package/lib/cjs/types/types/application.d.ts.map +0 -1
- package/lib/cjs/types/types/standards.d.ts.map +0 -1
- package/lib/cjs/types/utils.d.ts.map +0 -1
- package/lib/esm/types/Client.d.ts.map +0 -1
- package/lib/esm/types/Watcher.d.ts.map +0 -1
- package/lib/esm/types/fetcher.d.ts.map +0 -1
- package/lib/esm/types/index.d.ts.map +0 -1
- package/lib/esm/types/types/application.d.ts.map +0 -1
- package/lib/esm/types/types/standards.d.ts.map +0 -1
- package/lib/esm/types/utils.d.ts.map +0 -1
package/README.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Table of Contents
|
|
4
4
|
|
|
5
|
+
- [Requirements](#reqs)
|
|
5
6
|
- [Simple Usage](#simple)
|
|
6
7
|
- [Client Configuration](#config)
|
|
7
8
|
- [Endpoints](#endpoints)
|
|
@@ -20,6 +21,12 @@
|
|
|
20
21
|
|
|
21
22
|
This package is a fully-typed, promise-based, zero-dependency Node.JS JavaScript/TypeScript library for interacting with the [RocketLaunch.Live](https://www.rocketlaunch.live) API.
|
|
22
23
|
|
|
24
|
+
<a name="reqs"></a>
|
|
25
|
+
|
|
26
|
+
## Requirements
|
|
27
|
+
|
|
28
|
+
This package is tested on and supports Node 14.18 or higher. It is fully CommonJS/ESM compatible and has Typescript support built in.
|
|
29
|
+
|
|
23
30
|
<a name="simple"></a>
|
|
24
31
|
|
|
25
32
|
## Simple usage
|
|
@@ -141,18 +148,18 @@ const options = {
|
|
|
141
148
|
// Show launches only before this date
|
|
142
149
|
// JS Date Object - Anything more precise than day is ignored
|
|
143
150
|
// Also accepts any date string which can be used to create a valid Date object in JavaScript
|
|
144
|
-
before_date: new Date("2023-01-31")
|
|
151
|
+
before_date: new Date("2023-01-31"),
|
|
145
152
|
|
|
146
153
|
// Show launches only after this date
|
|
147
154
|
// JS Date Object - Anything more precise than day is ignored
|
|
148
155
|
// Also accepts any date string which can be used to create a valid Date object in JavaScript
|
|
149
|
-
after_date: new Date("2023-01-31")
|
|
156
|
+
after_date: new Date("2023-01-31"),
|
|
150
157
|
|
|
151
158
|
// Show launches that have had data updated since this date
|
|
152
159
|
// Useful for checking for changes since your last API call
|
|
153
160
|
// JS Date Object
|
|
154
161
|
// Also accepts any date string which can be used to create a valid Date object in JavaScript
|
|
155
|
-
modified_since: new Date("2023-01-31T06:00:00Z")
|
|
162
|
+
modified_since: new Date("2023-01-31T06:00:00Z"),
|
|
156
163
|
|
|
157
164
|
// Launch location id
|
|
158
165
|
// Also accepts number parseable strings like "1"
|
|
@@ -187,7 +194,18 @@ const options = {
|
|
|
187
194
|
search: "Starlink",
|
|
188
195
|
|
|
189
196
|
// Unique launch slug as used on RocketLaunch.live
|
|
190
|
-
slug: "ses-20-ses-21"
|
|
197
|
+
slug: "ses-20-ses-21",
|
|
198
|
+
|
|
199
|
+
// Limit amount of launches returned
|
|
200
|
+
// Must be between 1 and 25
|
|
201
|
+
// Also accepts number parseable strings like "10"
|
|
202
|
+
// Note: this param is safely ignored when using in conjuction with a Watcher (see below)
|
|
203
|
+
limit: 10,
|
|
204
|
+
|
|
205
|
+
// Sort order (by date) of results
|
|
206
|
+
// Accepts either "asc" or "desc"
|
|
207
|
+
// If left unfilled, API defaults to "asc"
|
|
208
|
+
direction: "asc",
|
|
191
209
|
};
|
|
192
210
|
```
|
|
193
211
|
|
|
@@ -344,7 +362,7 @@ watcher.stop();
|
|
|
344
362
|
A new watcher takes up to two arguments:
|
|
345
363
|
|
|
346
364
|
1. Interval - (optional) (default: 5) - a duration, in minutes, between calls to the API. Adjust this based on the frequency you wish to stay up to date. To avoid needlessly querying the API, this client will now allow any option less than 1 minute.
|
|
347
|
-
2. Query Options - (optional) - The exact same query options that can be submitted to the [`launches`](#launches) endpoint.
|
|
365
|
+
2. Query Options - (optional) - The exact same query options that can be submitted to the [`launches`](#launches) endpoint. _NOTE:_ the "limit" param is ignored on the `watcher`.
|
|
348
366
|
|
|
349
367
|
Query options cannot be altered on a running watcher. In order to change your search conditions, you'll need to stop the watcher and start a new one.
|
|
350
368
|
|
package/lib/cjs/Client.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RLLClient = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
4
|
+
const application_js_1 = require("./types/application.js");
|
|
5
|
+
const fetcher_js_1 = require("./fetcher.js");
|
|
6
|
+
const utils_js_1 = require("./utils.js");
|
|
7
|
+
const Watcher_js_1 = require("./Watcher.js");
|
|
8
8
|
/**
|
|
9
9
|
* Class representing a RocketLaunch.Live client
|
|
10
10
|
* @class
|
|
@@ -24,12 +24,12 @@ class RLLClient {
|
|
|
24
24
|
};
|
|
25
25
|
// Validate API Key is a valid UUID format
|
|
26
26
|
// Constructor throws if not
|
|
27
|
-
this.apiKey = (0,
|
|
27
|
+
this.apiKey = (0, utils_js_1.apiKeyValidator)(apiKey);
|
|
28
28
|
if (!options) {
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
31
|
// Validate Options with warnings or throws
|
|
32
|
-
(0,
|
|
32
|
+
(0, utils_js_1.optionsValidator)(options);
|
|
33
33
|
if (options.keyInQueryParams) {
|
|
34
34
|
this.config.keyInQueryParams = options.keyInQueryParams;
|
|
35
35
|
}
|
|
@@ -47,7 +47,7 @@ class RLLClient {
|
|
|
47
47
|
* @returns {Promise<T>}
|
|
48
48
|
*/
|
|
49
49
|
query(endpoint, params) {
|
|
50
|
-
return (0,
|
|
50
|
+
return (0, fetcher_js_1.fetcher)(this.apiKey, endpoint, params, this.config.keyInQueryParams);
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* Instantiate a new RLL Watcher which will continually query the API for changes to the launches endpoint
|
|
@@ -60,7 +60,7 @@ class RLLClient {
|
|
|
60
60
|
* @returns {RLLWatcher}
|
|
61
61
|
*/
|
|
62
62
|
watch(interval, options) {
|
|
63
|
-
return new
|
|
63
|
+
return new Watcher_js_1.RLLWatcher((params) => this.query(application_js_1.RLLEndPoint.LAUNCHES, params), interval, options);
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
66
|
* Fetch launch companies
|
|
@@ -82,8 +82,8 @@ class RLLClient {
|
|
|
82
82
|
* const response = await client.companies({ country_code: "US" })
|
|
83
83
|
*/
|
|
84
84
|
companies(options) {
|
|
85
|
-
const params = (0,
|
|
86
|
-
return this.query(
|
|
85
|
+
const params = (0, utils_js_1.queryOptionsValidator)(application_js_1.RLLEndPoint.COMPANIES, options);
|
|
86
|
+
return this.query(application_js_1.RLLEndPoint.COMPANIES, params);
|
|
87
87
|
}
|
|
88
88
|
/**
|
|
89
89
|
* Fetch launches
|
|
@@ -107,6 +107,8 @@ class RLLClient {
|
|
|
107
107
|
* @param {ISO3166Alpha2.CountryCode} options.country_code - ISO 3166 Alpha 2 Country Code
|
|
108
108
|
* @param {number | string} options.search - Launches matching this search string
|
|
109
109
|
* @param {number | string} options.slug - Launches matching this unique slug
|
|
110
|
+
* @param {number | string} options.limit - Limit results (default 25, max 25)
|
|
111
|
+
* @param {'asc' | 'desc'} options.direction - Launches matching this unique slug
|
|
110
112
|
*
|
|
111
113
|
* @returns {Promise<RLLResponse<RLLEntity.Launch[]>>} Array of companies wrapped in a standard RLL Response
|
|
112
114
|
*
|
|
@@ -115,8 +117,8 @@ class RLLClient {
|
|
|
115
117
|
* const response = await client.launches({ after_date: new Date("2022-10-10") })
|
|
116
118
|
*/
|
|
117
119
|
launches(options) {
|
|
118
|
-
const params = (0,
|
|
119
|
-
return this.query(
|
|
120
|
+
const params = (0, utils_js_1.queryOptionsValidator)(application_js_1.RLLEndPoint.LAUNCHES, options);
|
|
121
|
+
return this.query(application_js_1.RLLEndPoint.LAUNCHES, params);
|
|
120
122
|
}
|
|
121
123
|
/**
|
|
122
124
|
* Fetch launch locations
|
|
@@ -138,8 +140,8 @@ class RLLClient {
|
|
|
138
140
|
* const response = await client.locations({ country_code: "US" })
|
|
139
141
|
*/
|
|
140
142
|
locations(options) {
|
|
141
|
-
const params = (0,
|
|
142
|
-
return this.query(
|
|
143
|
+
const params = (0, utils_js_1.queryOptionsValidator)(application_js_1.RLLEndPoint.LOCATIONS, options);
|
|
144
|
+
return this.query(application_js_1.RLLEndPoint.LOCATIONS, params);
|
|
143
145
|
}
|
|
144
146
|
/**
|
|
145
147
|
* Fetch launch Missions
|
|
@@ -159,8 +161,8 @@ class RLLClient {
|
|
|
159
161
|
* const response = await client.missions({ name: "Mars 2020" })
|
|
160
162
|
*/
|
|
161
163
|
missions(options) {
|
|
162
|
-
const params = (0,
|
|
163
|
-
return this.query(
|
|
164
|
+
const params = (0, utils_js_1.queryOptionsValidator)(application_js_1.RLLEndPoint.MISSIONS, options);
|
|
165
|
+
return this.query(application_js_1.RLLEndPoint.MISSIONS, params);
|
|
164
166
|
}
|
|
165
167
|
/**
|
|
166
168
|
* Fetch launch pads
|
|
@@ -182,8 +184,8 @@ class RLLClient {
|
|
|
182
184
|
* const response = await client.pads({ country_code: "US" })
|
|
183
185
|
*/
|
|
184
186
|
pads(options) {
|
|
185
|
-
const params = (0,
|
|
186
|
-
return this.query(
|
|
187
|
+
const params = (0, utils_js_1.queryOptionsValidator)(application_js_1.RLLEndPoint.PADS, options);
|
|
188
|
+
return this.query(application_js_1.RLLEndPoint.PADS, params);
|
|
187
189
|
}
|
|
188
190
|
/**
|
|
189
191
|
* Fetch launch tags
|
|
@@ -203,8 +205,8 @@ class RLLClient {
|
|
|
203
205
|
* const response = await client.tags({ text: "Crewed" })
|
|
204
206
|
*/
|
|
205
207
|
tags(options) {
|
|
206
|
-
const params = (0,
|
|
207
|
-
return this.query(
|
|
208
|
+
const params = (0, utils_js_1.queryOptionsValidator)(application_js_1.RLLEndPoint.TAGS, options);
|
|
209
|
+
return this.query(application_js_1.RLLEndPoint.TAGS, params);
|
|
208
210
|
}
|
|
209
211
|
/**
|
|
210
212
|
* Fetch launch Vehicles
|
|
@@ -224,8 +226,8 @@ class RLLClient {
|
|
|
224
226
|
* const response = await client.vehicles({ name: "Falcon 9" })
|
|
225
227
|
*/
|
|
226
228
|
vehicles(options) {
|
|
227
|
-
const params = (0,
|
|
228
|
-
return this.query(
|
|
229
|
+
const params = (0, utils_js_1.queryOptionsValidator)(application_js_1.RLLEndPoint.VEHICLES, options);
|
|
230
|
+
return this.query(application_js_1.RLLEndPoint.VEHICLES, params);
|
|
229
231
|
}
|
|
230
232
|
}
|
|
231
233
|
exports.RLLClient = RLLClient;
|
package/lib/cjs/Watcher.js
CHANGED
|
@@ -1,31 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.RLLWatcher = void 0;
|
|
7
|
-
const events_1 =
|
|
8
|
-
const
|
|
9
|
-
const
|
|
4
|
+
const events_1 = require("events");
|
|
5
|
+
const application_js_1 = require("./types/application.js");
|
|
6
|
+
const utils_js_1 = require("./utils.js");
|
|
10
7
|
const DEFAULT_INTERVAL_IN_MINS = 5;
|
|
11
8
|
const MS_IN_MIN = 60000;
|
|
12
9
|
const intervalValidator = (interval) => {
|
|
13
10
|
if (typeof interval !== "number" && typeof interval !== "string") {
|
|
14
|
-
(0,
|
|
11
|
+
(0, utils_js_1.error)("RLLWatcher interval must be a number.");
|
|
15
12
|
return DEFAULT_INTERVAL_IN_MINS;
|
|
16
13
|
}
|
|
17
14
|
if (typeof interval === "string" &&
|
|
18
15
|
(isNaN(Number(interval)) || interval === "")) {
|
|
19
|
-
(0,
|
|
16
|
+
(0, utils_js_1.error)("RLLWatcher interval must be a number.", "type");
|
|
20
17
|
return DEFAULT_INTERVAL_IN_MINS;
|
|
21
18
|
}
|
|
22
19
|
const typedInterval = Number(interval);
|
|
23
20
|
if (typedInterval <= 0) {
|
|
24
|
-
(0,
|
|
21
|
+
(0, utils_js_1.error)("RLLWatcher interval cannot be a negative number or zero. Watcher intervals should be greater than or equal to 1 minute.");
|
|
25
22
|
return DEFAULT_INTERVAL_IN_MINS;
|
|
26
23
|
}
|
|
27
24
|
if (typedInterval < 1) {
|
|
28
|
-
(0,
|
|
25
|
+
(0, utils_js_1.warn)("RLLWatcher does not accept intervals less than 1. Your watcher will default to 5 minute intervals unless corrected.");
|
|
29
26
|
return DEFAULT_INTERVAL_IN_MINS;
|
|
30
27
|
}
|
|
31
28
|
return typedInterval;
|
|
@@ -34,7 +31,7 @@ const intervalValidator = (interval) => {
|
|
|
34
31
|
* Class representing a RocketLaunch.Live Client Watcher
|
|
35
32
|
* @class
|
|
36
33
|
*/
|
|
37
|
-
class RLLWatcher extends events_1.
|
|
34
|
+
class RLLWatcher extends events_1.EventEmitter {
|
|
38
35
|
/**
|
|
39
36
|
* Create a new RocketLaunch.live Client Watcher
|
|
40
37
|
*
|
|
@@ -60,10 +57,6 @@ class RLLWatcher extends events_1.default {
|
|
|
60
57
|
*/
|
|
61
58
|
constructor(fetcher, interval = DEFAULT_INTERVAL_IN_MINS, options) {
|
|
62
59
|
super();
|
|
63
|
-
this._untypedOn = this.on;
|
|
64
|
-
this._untypedEmit = this.emit;
|
|
65
|
-
this.on = (event, listener) => this._untypedOn(event, listener);
|
|
66
|
-
this.emit = (event, ...args) => this._untypedEmit(event, ...args);
|
|
67
60
|
this.launches = new Map();
|
|
68
61
|
/**
|
|
69
62
|
* Recursive API Caller to iterate through pages
|
|
@@ -92,10 +85,18 @@ class RLLWatcher extends events_1.default {
|
|
|
92
85
|
};
|
|
93
86
|
return recursiveFetcher();
|
|
94
87
|
};
|
|
88
|
+
// Reassign default Event Emitter methods
|
|
89
|
+
this._untypedOn = this.on;
|
|
90
|
+
this._untypedEmit = this.emit;
|
|
91
|
+
// Methord Overide for type safety
|
|
92
|
+
this.on = (event, listener) => this._untypedOn(event, listener);
|
|
93
|
+
this.emit = (event, ...args) => this._untypedEmit(event, ...args);
|
|
95
94
|
this.last_call = new Date();
|
|
96
95
|
this.fetcher = fetcher;
|
|
97
96
|
this.interval = intervalValidator(interval);
|
|
98
|
-
this.params = (0,
|
|
97
|
+
this.params = (0, utils_js_1.queryOptionsValidator)(application_js_1.RLLEndPoint.LAUNCHES, options);
|
|
98
|
+
// ignore any limit params as these cause unnecessary API calls and do not serve the Watcher role
|
|
99
|
+
this.params.delete("limit");
|
|
99
100
|
}
|
|
100
101
|
/**
|
|
101
102
|
* Query wrapper to trigger events
|
|
@@ -119,7 +120,7 @@ class RLLWatcher extends events_1.default {
|
|
|
119
120
|
this.launches.set(changedLaunch.id, changedLaunch);
|
|
120
121
|
}
|
|
121
122
|
};
|
|
122
|
-
this.params.set("modified_since", (0,
|
|
123
|
+
this.params.set("modified_since", (0, utils_js_1.formatToRLLISODate)(this.last_call));
|
|
123
124
|
this.recursivelyFetch(new URLSearchParams(this.params), notify)
|
|
124
125
|
.then(() => {
|
|
125
126
|
this.last_call = new Date();
|
package/lib/cjs/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.rllc = exports.RLLWatcher = exports.RLLClient = exports.RLLEntity = exports.RLLEndPoint = void 0;
|
|
4
|
-
const
|
|
5
|
-
var
|
|
6
|
-
Object.defineProperty(exports, "RLLEndPoint", { enumerable: true, get: function () { return
|
|
7
|
-
Object.defineProperty(exports, "RLLEntity", { enumerable: true, get: function () { return
|
|
8
|
-
var
|
|
9
|
-
Object.defineProperty(exports, "RLLClient", { enumerable: true, get: function () { return
|
|
10
|
-
var
|
|
11
|
-
Object.defineProperty(exports, "RLLWatcher", { enumerable: true, get: function () { return
|
|
4
|
+
const Client_js_1 = require("./Client.js");
|
|
5
|
+
var application_js_1 = require("./types/application.js");
|
|
6
|
+
Object.defineProperty(exports, "RLLEndPoint", { enumerable: true, get: function () { return application_js_1.RLLEndPoint; } });
|
|
7
|
+
Object.defineProperty(exports, "RLLEntity", { enumerable: true, get: function () { return application_js_1.RLLEntity; } });
|
|
8
|
+
var Client_js_2 = require("./Client.js");
|
|
9
|
+
Object.defineProperty(exports, "RLLClient", { enumerable: true, get: function () { return Client_js_2.RLLClient; } });
|
|
10
|
+
var Watcher_js_1 = require("./Watcher.js");
|
|
11
|
+
Object.defineProperty(exports, "RLLWatcher", { enumerable: true, get: function () { return Watcher_js_1.RLLWatcher; } });
|
|
12
12
|
/**
|
|
13
13
|
* Generate a RocketLaunch.Live client
|
|
14
14
|
*
|
|
@@ -26,5 +26,5 @@ Object.defineProperty(exports, "RLLWatcher", { enumerable: true, get: function (
|
|
|
26
26
|
* const MY_KEY = process.env.ROCKETLAUNCH_LIVE_API_KEY
|
|
27
27
|
* const client = rllc(MY_KEY, { keyInQueryParams: true })
|
|
28
28
|
*/
|
|
29
|
-
const rllc = (apiKey, options) => new
|
|
29
|
+
const rllc = (apiKey, options) => new Client_js_1.RLLClient(apiKey, options);
|
|
30
30
|
exports.rllc = rllc;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RLLClientOptions, RLLEntity, RLLQueryConfig, RLLResponse } from "./types/application";
|
|
2
|
-
import { RLLWatcher } from "./Watcher";
|
|
1
|
+
import { RLLClientOptions, RLLEntity, RLLQueryConfig, RLLResponse } from "./types/application.js";
|
|
2
|
+
import { RLLWatcher } from "./Watcher.js";
|
|
3
3
|
/**
|
|
4
4
|
* Class representing a RocketLaunch.Live client
|
|
5
5
|
* @class
|
|
@@ -82,6 +82,8 @@ export declare class RLLClient {
|
|
|
82
82
|
* @param {ISO3166Alpha2.CountryCode} options.country_code - ISO 3166 Alpha 2 Country Code
|
|
83
83
|
* @param {number | string} options.search - Launches matching this search string
|
|
84
84
|
* @param {number | string} options.slug - Launches matching this unique slug
|
|
85
|
+
* @param {number | string} options.limit - Limit results (default 25, max 25)
|
|
86
|
+
* @param {'asc' | 'desc'} options.direction - Launches matching this unique slug
|
|
85
87
|
*
|
|
86
88
|
* @returns {Promise<RLLResponse<RLLEntity.Launch[]>>} Array of companies wrapped in a standard RLL Response
|
|
87
89
|
*
|
|
@@ -185,4 +187,3 @@ export declare class RLLClient {
|
|
|
185
187
|
*/
|
|
186
188
|
vehicles(options?: RLLQueryConfig.Vehicles): Promise<RLLResponse<RLLEntity.Vehicle[]>>;
|
|
187
189
|
}
|
|
188
|
-
//# sourceMappingURL=Client.d.ts.map
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
new: (launch: RLLEntity.Launch) => void;
|
|
6
|
-
change: (oldLaunch: RLLEntity.Launch, newLaunch: RLLEntity.Launch) => void;
|
|
7
|
-
error: (error: RLLError) => void;
|
|
8
|
-
ready: (launches: Map<number, RLLEntity.Launch>) => void;
|
|
9
|
-
init_error: (error: RLLError) => void;
|
|
10
|
-
call: (params: URLSearchParams) => void;
|
|
11
|
-
}
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
import { EventEmitter } from "events";
|
|
4
|
+
import { RLLEntity, RLLQueryConfig, RLLResponse } from "./types/application.js";
|
|
12
5
|
/**
|
|
13
6
|
* Class representing a RocketLaunch.Live Client Watcher
|
|
14
7
|
* @class
|
|
@@ -16,8 +9,6 @@ interface IRLLWatcherEvent {
|
|
|
16
9
|
export declare class RLLWatcher extends EventEmitter {
|
|
17
10
|
private _untypedOn;
|
|
18
11
|
private _untypedEmit;
|
|
19
|
-
on: <K extends keyof IRLLWatcherEvent>(event: K, listener: IRLLWatcherEvent[K]) => this;
|
|
20
|
-
emit: <K extends keyof IRLLWatcherEvent>(event: K, ...args: Parameters<IRLLWatcherEvent[K]>) => boolean;
|
|
21
12
|
private last_call;
|
|
22
13
|
launches: Map<number, RLLEntity.Launch>;
|
|
23
14
|
private interval;
|
|
@@ -88,5 +79,3 @@ export declare class RLLWatcher extends EventEmitter {
|
|
|
88
79
|
*/
|
|
89
80
|
stop(): void;
|
|
90
81
|
}
|
|
91
|
-
export {};
|
|
92
|
-
//# sourceMappingURL=Watcher.d.ts.map
|
|
@@ -10,7 +10,7 @@ var RLLEndPoint;
|
|
|
10
10
|
RLLEndPoint["PADS"] = "pads";
|
|
11
11
|
RLLEndPoint["TAGS"] = "tags";
|
|
12
12
|
RLLEndPoint["VEHICLES"] = "vehicles";
|
|
13
|
-
})(RLLEndPoint
|
|
13
|
+
})(RLLEndPoint || (exports.RLLEndPoint = RLLEndPoint = {}));
|
|
14
14
|
var RLLEntity;
|
|
15
15
|
(function (RLLEntity) {
|
|
16
16
|
let LaunchResult;
|
|
@@ -21,7 +21,7 @@ var RLLEntity;
|
|
|
21
21
|
LaunchResult[LaunchResult["PARTIAL_FAILURE"] = 2] = "PARTIAL_FAILURE";
|
|
22
22
|
LaunchResult[LaunchResult["IN_FLIGHT_ABORT_CREWED"] = 3] = "IN_FLIGHT_ABORT_CREWED";
|
|
23
23
|
})(LaunchResult = RLLEntity.LaunchResult || (RLLEntity.LaunchResult = {}));
|
|
24
|
-
})(RLLEntity
|
|
24
|
+
})(RLLEntity || (exports.RLLEntity = RLLEntity = {}));
|
|
25
25
|
exports.RLLQueryParams = {
|
|
26
26
|
id: true,
|
|
27
27
|
page: true,
|
|
@@ -41,4 +41,6 @@ exports.RLLQueryParams = {
|
|
|
41
41
|
search: true,
|
|
42
42
|
slug: true,
|
|
43
43
|
text: true,
|
|
44
|
+
limit: true,
|
|
45
|
+
direction: true,
|
|
44
46
|
};
|
package/lib/cjs/types/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { RLLClient } from "./Client";
|
|
2
|
-
import { RLLClientOptions } from "./types/application";
|
|
3
|
-
export { RLLEndPoint, RLLResponse, RLLClientOptions, RLLQueryConfig, RLLEntity, RLLError, } from "./types/application";
|
|
4
|
-
export { ISO3166Alpha2 } from "./types/standards";
|
|
5
|
-
export { RLLClient } from "./Client";
|
|
6
|
-
export { RLLWatcher } from "./Watcher";
|
|
1
|
+
import { RLLClient } from "./Client.js";
|
|
2
|
+
import { RLLClientOptions } from "./types/application.js";
|
|
3
|
+
export { RLLEndPoint, RLLResponse, RLLClientOptions, RLLQueryConfig, RLLEntity, RLLError, } from "./types/application.js";
|
|
4
|
+
export { ISO3166Alpha2 } from "./types/standards.js";
|
|
5
|
+
export { RLLClient } from "./Client.js";
|
|
6
|
+
export { RLLWatcher } from "./Watcher.js";
|
|
7
7
|
/**
|
|
8
8
|
* Generate a RocketLaunch.Live client
|
|
9
9
|
*
|
|
@@ -22,4 +22,3 @@ export { RLLWatcher } from "./Watcher";
|
|
|
22
22
|
* const client = rllc(MY_KEY, { keyInQueryParams: true })
|
|
23
23
|
*/
|
|
24
24
|
export declare const rllc: (apiKey: string, options?: RLLClientOptions) => RLLClient;
|
|
25
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISO3166Alpha2 } from "./standards";
|
|
1
|
+
import { ISO3166Alpha2 } from "./standards.js";
|
|
2
2
|
export declare enum RLLEndPoint {
|
|
3
3
|
COMPANIES = "companies",
|
|
4
4
|
LAUNCHES = "launches",
|
|
@@ -23,7 +23,7 @@ export declare namespace RLLEntity {
|
|
|
23
23
|
export interface Company extends RLLRecord {
|
|
24
24
|
name: string;
|
|
25
25
|
country: Country;
|
|
26
|
-
inactive: boolean
|
|
26
|
+
inactive: boolean;
|
|
27
27
|
}
|
|
28
28
|
export enum LaunchResult {
|
|
29
29
|
NOT_SET = -1,
|
|
@@ -135,6 +135,8 @@ export declare const RLLQueryParams: {
|
|
|
135
135
|
search: boolean;
|
|
136
136
|
slug: boolean;
|
|
137
137
|
text: boolean;
|
|
138
|
+
limit: boolean;
|
|
139
|
+
direction: boolean;
|
|
138
140
|
};
|
|
139
141
|
export declare namespace RLLQueryConfig {
|
|
140
142
|
interface Base {
|
|
@@ -160,6 +162,8 @@ export declare namespace RLLQueryConfig {
|
|
|
160
162
|
country_code?: ISO3166Alpha2.CountryCode;
|
|
161
163
|
search?: string | number;
|
|
162
164
|
slug?: string | number;
|
|
165
|
+
limit?: number | string;
|
|
166
|
+
direction?: "asc" | "desc";
|
|
163
167
|
}
|
|
164
168
|
export interface Locations extends Base {
|
|
165
169
|
name?: string | number;
|
|
@@ -200,4 +204,3 @@ export type RLLError = {
|
|
|
200
204
|
message: string;
|
|
201
205
|
server_response: string | null;
|
|
202
206
|
};
|
|
203
|
-
//# sourceMappingURL=application.d.ts.map
|
package/lib/cjs/types/utils.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { RLLEndPoint, RLLQueryConfig } from "./types/application.js";
|
|
2
3
|
export declare const formatToRLLISODate: (date: Date) => string;
|
|
3
4
|
export declare const apiKeyValidator: (apiKey: any) => string;
|
|
4
5
|
export declare const optionsValidator: (options: {
|
|
@@ -9,4 +10,3 @@ export declare const optionsValidator: (options: {
|
|
|
9
10
|
export declare const queryOptionsValidator: (resource: RLLEndPoint, options?: RLLQueryConfig.Companies | RLLQueryConfig.Launches | RLLQueryConfig.Locations | RLLQueryConfig.Missions | RLLQueryConfig.Pads | RLLQueryConfig.Tags | RLLQueryConfig.Vehicles) => URLSearchParams;
|
|
10
11
|
export declare const warn: (msg: string) => void;
|
|
11
12
|
export declare const error: (msg: string, type?: "type" | "range" | "error") => void;
|
|
12
|
-
//# sourceMappingURL=utils.d.ts.map
|
package/lib/cjs/utils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.error = exports.warn = exports.queryOptionsValidator = exports.optionsValidator = exports.apiKeyValidator = exports.formatToRLLISODate = void 0;
|
|
4
|
-
const
|
|
4
|
+
const standards_js_1 = require("./types/standards.js");
|
|
5
5
|
const getLeadingZero = (month, offset = 0) => {
|
|
6
6
|
const str = "0".concat((month + offset).toString());
|
|
7
7
|
return str.slice(-2);
|
|
@@ -75,7 +75,7 @@ const validators = {
|
|
|
75
75
|
if (typeof option !== "string") {
|
|
76
76
|
throw "Must be a string";
|
|
77
77
|
}
|
|
78
|
-
if (!(0,
|
|
78
|
+
if (!(0, standards_js_1.isValidCountryCode)(option)) {
|
|
79
79
|
throw "Invalid country code. Country codes should follow ISO 3166-1 A2 convention, like 'US'.";
|
|
80
80
|
}
|
|
81
81
|
return option;
|
|
@@ -84,7 +84,7 @@ const validators = {
|
|
|
84
84
|
if (typeof option !== "string") {
|
|
85
85
|
throw "Must be a string";
|
|
86
86
|
}
|
|
87
|
-
if (!(0,
|
|
87
|
+
if (!(0, standards_js_1.isValidStateCode)(option)) {
|
|
88
88
|
throw "Invalid United States State Code. State Codes should follow ISO 3166-2 convention, like 'FL'.";
|
|
89
89
|
}
|
|
90
90
|
return option;
|
|
@@ -132,6 +132,25 @@ const validators = {
|
|
|
132
132
|
}
|
|
133
133
|
return (0, exports.formatToRLLISODate)(date);
|
|
134
134
|
},
|
|
135
|
+
limit: (option) => {
|
|
136
|
+
const num = validators.number(option);
|
|
137
|
+
if (num < 1) {
|
|
138
|
+
throw "Must be a number greater than 0";
|
|
139
|
+
}
|
|
140
|
+
if (num > 25) {
|
|
141
|
+
throw "Must be a number less than 26";
|
|
142
|
+
}
|
|
143
|
+
return num;
|
|
144
|
+
},
|
|
145
|
+
direction: (option) => {
|
|
146
|
+
if (typeof option !== "string") {
|
|
147
|
+
throw "Must be a string";
|
|
148
|
+
}
|
|
149
|
+
if (option !== "asc" && option !== "desc") {
|
|
150
|
+
throw 'String must be either "asc" or "desc"';
|
|
151
|
+
}
|
|
152
|
+
return option;
|
|
153
|
+
},
|
|
135
154
|
};
|
|
136
155
|
const optionsMap = {
|
|
137
156
|
companies: {
|
|
@@ -157,6 +176,8 @@ const optionsMap = {
|
|
|
157
176
|
country_code: validators.countryCode,
|
|
158
177
|
search: validators.string,
|
|
159
178
|
slug: validators.string,
|
|
179
|
+
limit: validators.limit,
|
|
180
|
+
direction: validators.direction,
|
|
160
181
|
},
|
|
161
182
|
locations: {
|
|
162
183
|
page: validators.number,
|
package/lib/esm/Client.js
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
import { RLLEndPoint, } from "./types/application";
|
|
2
|
-
import { fetcher } from "./fetcher";
|
|
3
|
-
import { apiKeyValidator, optionsValidator, queryOptionsValidator, } from "./utils";
|
|
4
|
-
import { RLLWatcher } from "./Watcher";
|
|
1
|
+
import { RLLEndPoint, } from "./types/application.js";
|
|
2
|
+
import { fetcher } from "./fetcher.js";
|
|
3
|
+
import { apiKeyValidator, optionsValidator, queryOptionsValidator, } from "./utils.js";
|
|
4
|
+
import { RLLWatcher } from "./Watcher.js";
|
|
5
5
|
/**
|
|
6
6
|
* Class representing a RocketLaunch.Live client
|
|
7
7
|
* @class
|
|
8
8
|
*/
|
|
9
9
|
export class RLLClient {
|
|
10
|
-
apiKey;
|
|
11
|
-
config = {
|
|
12
|
-
keyInQueryParams: false,
|
|
13
|
-
};
|
|
14
10
|
/**
|
|
15
11
|
* Create a new RocketLaunch.live Client
|
|
16
12
|
*
|
|
@@ -20,6 +16,9 @@ export class RLLClient {
|
|
|
20
16
|
*
|
|
21
17
|
*/
|
|
22
18
|
constructor(apiKey, options) {
|
|
19
|
+
this.config = {
|
|
20
|
+
keyInQueryParams: false,
|
|
21
|
+
};
|
|
23
22
|
// Validate API Key is a valid UUID format
|
|
24
23
|
// Constructor throws if not
|
|
25
24
|
this.apiKey = apiKeyValidator(apiKey);
|
|
@@ -105,6 +104,8 @@ export class RLLClient {
|
|
|
105
104
|
* @param {ISO3166Alpha2.CountryCode} options.country_code - ISO 3166 Alpha 2 Country Code
|
|
106
105
|
* @param {number | string} options.search - Launches matching this search string
|
|
107
106
|
* @param {number | string} options.slug - Launches matching this unique slug
|
|
107
|
+
* @param {number | string} options.limit - Limit results (default 25, max 25)
|
|
108
|
+
* @param {'asc' | 'desc'} options.direction - Launches matching this unique slug
|
|
108
109
|
*
|
|
109
110
|
* @returns {Promise<RLLResponse<RLLEntity.Launch[]>>} Array of companies wrapped in a standard RLL Response
|
|
110
111
|
*
|
package/lib/esm/Watcher.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import EventEmitter from "events";
|
|
2
|
-
import { RLLEndPoint, } from "./types/application";
|
|
3
|
-
import { error, warn, queryOptionsValidator, formatToRLLISODate, } from "./utils";
|
|
1
|
+
import { EventEmitter } from "events";
|
|
2
|
+
import { RLLEndPoint, } from "./types/application.js";
|
|
3
|
+
import { error, warn, queryOptionsValidator, formatToRLLISODate, } from "./utils.js";
|
|
4
4
|
const DEFAULT_INTERVAL_IN_MINS = 5;
|
|
5
5
|
const MS_IN_MIN = 60000;
|
|
6
6
|
const intervalValidator = (interval) => {
|
|
@@ -29,16 +29,6 @@ const intervalValidator = (interval) => {
|
|
|
29
29
|
* @class
|
|
30
30
|
*/
|
|
31
31
|
export class RLLWatcher extends EventEmitter {
|
|
32
|
-
_untypedOn = this.on;
|
|
33
|
-
_untypedEmit = this.emit;
|
|
34
|
-
on = (event, listener) => this._untypedOn(event, listener);
|
|
35
|
-
emit = (event, ...args) => this._untypedEmit(event, ...args);
|
|
36
|
-
last_call;
|
|
37
|
-
launches = new Map();
|
|
38
|
-
interval;
|
|
39
|
-
params;
|
|
40
|
-
timer;
|
|
41
|
-
fetcher;
|
|
42
32
|
/**
|
|
43
33
|
* Create a new RocketLaunch.live Client Watcher
|
|
44
34
|
*
|
|
@@ -64,38 +54,47 @@ export class RLLWatcher extends EventEmitter {
|
|
|
64
54
|
*/
|
|
65
55
|
constructor(fetcher, interval = DEFAULT_INTERVAL_IN_MINS, options) {
|
|
66
56
|
super();
|
|
57
|
+
this.launches = new Map();
|
|
58
|
+
/**
|
|
59
|
+
* Recursive API Caller to iterate through pages
|
|
60
|
+
*
|
|
61
|
+
* @private
|
|
62
|
+
* @function
|
|
63
|
+
*
|
|
64
|
+
* @param {URLSearchParams} params - Search parameters
|
|
65
|
+
* @param {function(results: RLLResponse<RLLEntity.Launch[]>)} callback - To execute on each page
|
|
66
|
+
*
|
|
67
|
+
* @returns {Promise<void>}
|
|
68
|
+
*/
|
|
69
|
+
this.recursivelyFetch = (params, callback) => {
|
|
70
|
+
let page = 1;
|
|
71
|
+
const recursiveFetcher = () => {
|
|
72
|
+
this.emit("call", params);
|
|
73
|
+
return this.fetcher(params).then((results) => {
|
|
74
|
+
callback(results);
|
|
75
|
+
if (results.last_page > page) {
|
|
76
|
+
page++;
|
|
77
|
+
params.set("page", page.toString());
|
|
78
|
+
return recursiveFetcher();
|
|
79
|
+
}
|
|
80
|
+
return;
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
return recursiveFetcher();
|
|
84
|
+
};
|
|
85
|
+
// Reassign default Event Emitter methods
|
|
86
|
+
this._untypedOn = this.on;
|
|
87
|
+
this._untypedEmit = this.emit;
|
|
88
|
+
// Methord Overide for type safety
|
|
89
|
+
this.on = (event, listener) => this._untypedOn(event, listener);
|
|
90
|
+
this.emit = (event, ...args) => this._untypedEmit(event, ...args);
|
|
67
91
|
this.last_call = new Date();
|
|
68
92
|
this.fetcher = fetcher;
|
|
69
93
|
this.interval = intervalValidator(interval);
|
|
70
94
|
this.params = queryOptionsValidator(RLLEndPoint.LAUNCHES, options);
|
|
95
|
+
// ignore any limit params as these cause unnecessary API calls and do not serve the Watcher role
|
|
96
|
+
this.params.delete("limit");
|
|
71
97
|
}
|
|
72
|
-
/**
|
|
73
|
-
* Recursive API Caller to iterate through pages
|
|
74
|
-
*
|
|
75
|
-
* @private
|
|
76
|
-
* @function
|
|
77
|
-
*
|
|
78
|
-
* @param {URLSearchParams} params - Search parameters
|
|
79
|
-
* @param {function(results: RLLResponse<RLLEntity.Launch[]>)} callback - To execute on each page
|
|
80
|
-
*
|
|
81
|
-
* @returns {Promise<void>}
|
|
82
|
-
*/
|
|
83
|
-
recursivelyFetch = (params, callback) => {
|
|
84
|
-
let page = 1;
|
|
85
|
-
const recursiveFetcher = () => {
|
|
86
|
-
this.emit("call", params);
|
|
87
|
-
return this.fetcher(params).then((results) => {
|
|
88
|
-
callback(results);
|
|
89
|
-
if (results.last_page > page) {
|
|
90
|
-
page++;
|
|
91
|
-
params.set("page", page.toString());
|
|
92
|
-
return recursiveFetcher();
|
|
93
|
-
}
|
|
94
|
-
return;
|
|
95
|
-
});
|
|
96
|
-
};
|
|
97
|
-
return recursiveFetcher();
|
|
98
|
-
};
|
|
99
98
|
/**
|
|
100
99
|
* Query wrapper to trigger events
|
|
101
100
|
*
|
package/lib/esm/fetcher.js
CHANGED
|
@@ -18,6 +18,7 @@ const query = (url, headers) => {
|
|
|
18
18
|
let data = [];
|
|
19
19
|
res.on("data", (chunk) => data.push(chunk));
|
|
20
20
|
res.on("end", () => {
|
|
21
|
+
var _a;
|
|
21
22
|
const response = Buffer.concat(data).toString();
|
|
22
23
|
if (res.statusCode === 200) {
|
|
23
24
|
resolve(JSON.parse(response));
|
|
@@ -25,7 +26,7 @@ const query = (url, headers) => {
|
|
|
25
26
|
else {
|
|
26
27
|
const error = {
|
|
27
28
|
error: "API Call Failed",
|
|
28
|
-
statusCode: res.statusCode
|
|
29
|
+
statusCode: (_a = res.statusCode) !== null && _a !== void 0 ? _a : null,
|
|
29
30
|
message: "RLLC recieved a response from the server but it did not complete as expected.",
|
|
30
31
|
server_response: JSON.parse(response),
|
|
31
32
|
};
|
package/lib/esm/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { RLLClient } from "./Client";
|
|
2
|
-
export { RLLEndPoint, RLLEntity, } from "./types/application";
|
|
3
|
-
export { RLLClient } from "./Client";
|
|
4
|
-
export { RLLWatcher } from "./Watcher";
|
|
1
|
+
import { RLLClient } from "./Client.js";
|
|
2
|
+
export { RLLEndPoint, RLLEntity, } from "./types/application.js";
|
|
3
|
+
export { RLLClient } from "./Client.js";
|
|
4
|
+
export { RLLWatcher } from "./Watcher.js";
|
|
5
5
|
/**
|
|
6
6
|
* Generate a RocketLaunch.Live client
|
|
7
7
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RLLClientOptions, RLLEntity, RLLQueryConfig, RLLResponse } from "./types/application";
|
|
2
|
-
import { RLLWatcher } from "./Watcher";
|
|
1
|
+
import { RLLClientOptions, RLLEntity, RLLQueryConfig, RLLResponse } from "./types/application.js";
|
|
2
|
+
import { RLLWatcher } from "./Watcher.js";
|
|
3
3
|
/**
|
|
4
4
|
* Class representing a RocketLaunch.Live client
|
|
5
5
|
* @class
|
|
@@ -82,6 +82,8 @@ export declare class RLLClient {
|
|
|
82
82
|
* @param {ISO3166Alpha2.CountryCode} options.country_code - ISO 3166 Alpha 2 Country Code
|
|
83
83
|
* @param {number | string} options.search - Launches matching this search string
|
|
84
84
|
* @param {number | string} options.slug - Launches matching this unique slug
|
|
85
|
+
* @param {number | string} options.limit - Limit results (default 25, max 25)
|
|
86
|
+
* @param {'asc' | 'desc'} options.direction - Launches matching this unique slug
|
|
85
87
|
*
|
|
86
88
|
* @returns {Promise<RLLResponse<RLLEntity.Launch[]>>} Array of companies wrapped in a standard RLL Response
|
|
87
89
|
*
|
|
@@ -185,4 +187,3 @@ export declare class RLLClient {
|
|
|
185
187
|
*/
|
|
186
188
|
vehicles(options?: RLLQueryConfig.Vehicles): Promise<RLLResponse<RLLEntity.Vehicle[]>>;
|
|
187
189
|
}
|
|
188
|
-
//# sourceMappingURL=Client.d.ts.map
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
new: (launch: RLLEntity.Launch) => void;
|
|
6
|
-
change: (oldLaunch: RLLEntity.Launch, newLaunch: RLLEntity.Launch) => void;
|
|
7
|
-
error: (error: RLLError) => void;
|
|
8
|
-
ready: (launches: Map<number, RLLEntity.Launch>) => void;
|
|
9
|
-
init_error: (error: RLLError) => void;
|
|
10
|
-
call: (params: URLSearchParams) => void;
|
|
11
|
-
}
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
import { EventEmitter } from "events";
|
|
4
|
+
import { RLLEntity, RLLQueryConfig, RLLResponse } from "./types/application.js";
|
|
12
5
|
/**
|
|
13
6
|
* Class representing a RocketLaunch.Live Client Watcher
|
|
14
7
|
* @class
|
|
@@ -16,8 +9,6 @@ interface IRLLWatcherEvent {
|
|
|
16
9
|
export declare class RLLWatcher extends EventEmitter {
|
|
17
10
|
private _untypedOn;
|
|
18
11
|
private _untypedEmit;
|
|
19
|
-
on: <K extends keyof IRLLWatcherEvent>(event: K, listener: IRLLWatcherEvent[K]) => this;
|
|
20
|
-
emit: <K extends keyof IRLLWatcherEvent>(event: K, ...args: Parameters<IRLLWatcherEvent[K]>) => boolean;
|
|
21
12
|
private last_call;
|
|
22
13
|
launches: Map<number, RLLEntity.Launch>;
|
|
23
14
|
private interval;
|
|
@@ -88,5 +79,3 @@ export declare class RLLWatcher extends EventEmitter {
|
|
|
88
79
|
*/
|
|
89
80
|
stop(): void;
|
|
90
81
|
}
|
|
91
|
-
export {};
|
|
92
|
-
//# sourceMappingURL=Watcher.d.ts.map
|
package/lib/esm/types/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { RLLClient } from "./Client";
|
|
2
|
-
import { RLLClientOptions } from "./types/application";
|
|
3
|
-
export { RLLEndPoint, RLLResponse, RLLClientOptions, RLLQueryConfig, RLLEntity, RLLError, } from "./types/application";
|
|
4
|
-
export { ISO3166Alpha2 } from "./types/standards";
|
|
5
|
-
export { RLLClient } from "./Client";
|
|
6
|
-
export { RLLWatcher } from "./Watcher";
|
|
1
|
+
import { RLLClient } from "./Client.js";
|
|
2
|
+
import { RLLClientOptions } from "./types/application.js";
|
|
3
|
+
export { RLLEndPoint, RLLResponse, RLLClientOptions, RLLQueryConfig, RLLEntity, RLLError, } from "./types/application.js";
|
|
4
|
+
export { ISO3166Alpha2 } from "./types/standards.js";
|
|
5
|
+
export { RLLClient } from "./Client.js";
|
|
6
|
+
export { RLLWatcher } from "./Watcher.js";
|
|
7
7
|
/**
|
|
8
8
|
* Generate a RocketLaunch.Live client
|
|
9
9
|
*
|
|
@@ -22,4 +22,3 @@ export { RLLWatcher } from "./Watcher";
|
|
|
22
22
|
* const client = rllc(MY_KEY, { keyInQueryParams: true })
|
|
23
23
|
*/
|
|
24
24
|
export declare const rllc: (apiKey: string, options?: RLLClientOptions) => RLLClient;
|
|
25
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ISO3166Alpha2 } from "./standards";
|
|
1
|
+
import { ISO3166Alpha2 } from "./standards.js";
|
|
2
2
|
export declare enum RLLEndPoint {
|
|
3
3
|
COMPANIES = "companies",
|
|
4
4
|
LAUNCHES = "launches",
|
|
@@ -23,7 +23,7 @@ export declare namespace RLLEntity {
|
|
|
23
23
|
export interface Company extends RLLRecord {
|
|
24
24
|
name: string;
|
|
25
25
|
country: Country;
|
|
26
|
-
inactive: boolean
|
|
26
|
+
inactive: boolean;
|
|
27
27
|
}
|
|
28
28
|
export enum LaunchResult {
|
|
29
29
|
NOT_SET = -1,
|
|
@@ -135,6 +135,8 @@ export declare const RLLQueryParams: {
|
|
|
135
135
|
search: boolean;
|
|
136
136
|
slug: boolean;
|
|
137
137
|
text: boolean;
|
|
138
|
+
limit: boolean;
|
|
139
|
+
direction: boolean;
|
|
138
140
|
};
|
|
139
141
|
export declare namespace RLLQueryConfig {
|
|
140
142
|
interface Base {
|
|
@@ -160,6 +162,8 @@ export declare namespace RLLQueryConfig {
|
|
|
160
162
|
country_code?: ISO3166Alpha2.CountryCode;
|
|
161
163
|
search?: string | number;
|
|
162
164
|
slug?: string | number;
|
|
165
|
+
limit?: number | string;
|
|
166
|
+
direction?: "asc" | "desc";
|
|
163
167
|
}
|
|
164
168
|
export interface Locations extends Base {
|
|
165
169
|
name?: string | number;
|
|
@@ -200,4 +204,3 @@ export type RLLError = {
|
|
|
200
204
|
message: string;
|
|
201
205
|
server_response: string | null;
|
|
202
206
|
};
|
|
203
|
-
//# sourceMappingURL=application.d.ts.map
|
package/lib/esm/types/utils.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { RLLEndPoint, RLLQueryConfig } from "./types/application.js";
|
|
2
3
|
export declare const formatToRLLISODate: (date: Date) => string;
|
|
3
4
|
export declare const apiKeyValidator: (apiKey: any) => string;
|
|
4
5
|
export declare const optionsValidator: (options: {
|
|
@@ -9,4 +10,3 @@ export declare const optionsValidator: (options: {
|
|
|
9
10
|
export declare const queryOptionsValidator: (resource: RLLEndPoint, options?: RLLQueryConfig.Companies | RLLQueryConfig.Launches | RLLQueryConfig.Locations | RLLQueryConfig.Missions | RLLQueryConfig.Pads | RLLQueryConfig.Tags | RLLQueryConfig.Vehicles) => URLSearchParams;
|
|
10
11
|
export declare const warn: (msg: string) => void;
|
|
11
12
|
export declare const error: (msg: string, type?: "type" | "range" | "error") => void;
|
|
12
|
-
//# sourceMappingURL=utils.d.ts.map
|
package/lib/esm/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isValidCountryCode, isValidStateCode } from "./types/standards";
|
|
1
|
+
import { isValidCountryCode, isValidStateCode } from "./types/standards.js";
|
|
2
2
|
const getLeadingZero = (month, offset = 0) => {
|
|
3
3
|
const str = "0".concat((month + offset).toString());
|
|
4
4
|
return str.slice(-2);
|
|
@@ -126,6 +126,25 @@ const validators = {
|
|
|
126
126
|
}
|
|
127
127
|
return formatToRLLISODate(date);
|
|
128
128
|
},
|
|
129
|
+
limit: (option) => {
|
|
130
|
+
const num = validators.number(option);
|
|
131
|
+
if (num < 1) {
|
|
132
|
+
throw "Must be a number greater than 0";
|
|
133
|
+
}
|
|
134
|
+
if (num > 25) {
|
|
135
|
+
throw "Must be a number less than 26";
|
|
136
|
+
}
|
|
137
|
+
return num;
|
|
138
|
+
},
|
|
139
|
+
direction: (option) => {
|
|
140
|
+
if (typeof option !== "string") {
|
|
141
|
+
throw "Must be a string";
|
|
142
|
+
}
|
|
143
|
+
if (option !== "asc" && option !== "desc") {
|
|
144
|
+
throw 'String must be either "asc" or "desc"';
|
|
145
|
+
}
|
|
146
|
+
return option;
|
|
147
|
+
},
|
|
129
148
|
};
|
|
130
149
|
const optionsMap = {
|
|
131
150
|
companies: {
|
|
@@ -151,6 +170,8 @@ const optionsMap = {
|
|
|
151
170
|
country_code: validators.countryCode,
|
|
152
171
|
search: validators.string,
|
|
153
172
|
slug: validators.string,
|
|
173
|
+
limit: validators.limit,
|
|
174
|
+
direction: validators.direction,
|
|
154
175
|
},
|
|
155
176
|
locations: {
|
|
156
177
|
page: validators.number,
|
package/package.json
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rocket-launch-live-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "A Node.JS client for interacting with the RocketLaunch.Live API",
|
|
5
5
|
"types": "./lib/cjs/types/index.d.ts",
|
|
6
6
|
"main": "./lib/cjs/index.js",
|
|
7
|
+
"module": "./lib/mjs/index.js",
|
|
7
8
|
"scripts": {
|
|
8
9
|
"clear": "rm -rf ./lib",
|
|
9
|
-
"build": "npm run clear && npm run build:esm && npm run build:cjs",
|
|
10
|
+
"build": "npm run clear && npm run build:esm && npm run build:cjs && ./build-fixup",
|
|
10
11
|
"build:esm": "tsc -p ./configs/tsconfig.esm.json && mv lib/esm/index.js lib/esm/index.mjs",
|
|
11
12
|
"build:cjs": "tsc -p ./configs/tsconfig.cjs.json",
|
|
12
13
|
"prepublish": "npm run build",
|
|
13
|
-
"test": "
|
|
14
|
-
"
|
|
14
|
+
"test": "vitest",
|
|
15
|
+
"reset": "rm -rf lib && rm rocket-launch-live-client-*.tgz && npm run build && npm pack"
|
|
15
16
|
},
|
|
16
17
|
"repository": {
|
|
17
18
|
"type": "git",
|
|
@@ -30,24 +31,21 @@
|
|
|
30
31
|
},
|
|
31
32
|
"homepage": "https://github.com/mendahu/rocket-launch-live-client#readme",
|
|
32
33
|
"devDependencies": {
|
|
33
|
-
"@types/
|
|
34
|
-
"@types/
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"chai": "^4.3.7",
|
|
39
|
-
"chai-as-promised": "^7.1.1",
|
|
40
|
-
"dotenv": "^16.0.3",
|
|
41
|
-
"mocha": "^10.2.0",
|
|
42
|
-
"nock": "^13.3.0",
|
|
43
|
-
"nodemon": "^2.0.20",
|
|
44
|
-
"sinon": "^15.0.1",
|
|
34
|
+
"@types/node": "^20.5.6",
|
|
35
|
+
"@types/sinon": "^10.0.16",
|
|
36
|
+
"dotenv": "^16.3.1",
|
|
37
|
+
"nock": "^13.3.3",
|
|
38
|
+
"sinon": "^15.2.0",
|
|
45
39
|
"ts-node": "^10.9.1",
|
|
46
|
-
"typescript": "^
|
|
40
|
+
"typescript": "^5.2.2",
|
|
41
|
+
"vitest": "^0.34.3"
|
|
47
42
|
},
|
|
48
43
|
"files": [
|
|
49
44
|
"lib/**/*"
|
|
50
45
|
],
|
|
46
|
+
"engines": {
|
|
47
|
+
"node": ">=14.17.0"
|
|
48
|
+
},
|
|
51
49
|
"exports": {
|
|
52
50
|
".": {
|
|
53
51
|
"import": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../src/Client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAEhB,SAAS,EACT,cAAc,EACd,WAAW,EACZ,MAAM,qBAAqB,CAAC;AAO7B,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC;;;GAGG;AACH,qBAAa,SAAS;IACpB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,MAAM,CAEZ;IAEF;;;;;;;OAOG;gBACS,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB;IAiBtD;;;;;;;;;;;OAWG;IACH,OAAO,CAAC,KAAK;IASb;;;;;;;;;OASG;IACI,KAAK,CACV,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,EAC1B,OAAO,CAAC,EAAE,cAAc,CAAC,QAAQ,GAChC,UAAU;IAYb;;;;;;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UG;IACH,OAAO,CAAC,gBAAgB,CAsBtB;IAEF;;;;;;;OAOG;IACH,OAAO,CAAC,KAAK;IAyBb;;;;;;;OAOG;IACI,KAAK,IAAI,IAAI;IAoBpB;;;;;;;OAOG;IACI,IAAI,IAAI,IAAI;CAKpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../src/fetcher.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,OAAO,cACV,MAAM,YACJ,MAAM,UACR,eAAe,oBACL,OAAO,eAc1B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EACL,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,QAAQ,GACT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,IAAI,WAAY,MAAM,YAAY,gBAAgB,KAAG,SAClC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../../src/types/application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,oBAAY,WAAW;IACrB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;A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YAAY,CAAa;IAC1B,EAAE,iFAGN,IAAI,CAAqC;IACrC,IAAI,4FAGR,OAAO,CAAsC;IAChD,OAAO,CAAC,SAAS,CAAO;IACjB,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,CAAa;IAC3D,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,MAAM,CAAkB;IAChC,OAAO,CAAC,KAAK,CAA2B;IACxC,OAAO,CAAC,OAAO,CAE+B;IAE9C;;;;;;;;;;;;;;;;;;;;;;OAsBG;gBAED,OAAO,EAAE,CACP,MAAM,EAAE,eAAe,KACpB,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC,EAC7C,QAAQ,GAAE,MAAM,GAAG,MAAiC,EACpD,OAAO,CAAC,EAAE,cAAc,CAAC,QAAQ;IAUnC;;;;;;;;;;OAUG;IACH,OAAO,CAAC,gBAAgB,CAsBtB;IAEF;;;;;;;OAOG;IACH,OAAO,CAAC,KAAK;IAyBb;;;;;;;OAOG;IACI,KAAK,IAAI,IAAI;IAoBpB;;;;;;;OAOG;IACI,IAAI,IAAI,IAAI;CAKpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../src/fetcher.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,OAAO,cACV,MAAM,YACJ,MAAM,UACR,eAAe,oBACL,OAAO,eAc1B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EACL,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,SAAS,EACT,QAAQ,GACT,MAAM,qBAAqB,CAA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MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,CAAC,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"standards.d.ts","sourceRoot":"","sources":["../../../../src/types/standards.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0PxB,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0DxB,CAAC;AAEF,eAAO,MAAM,kBAAkB,SACvB,MAAM,ytDAGb,CAAC;AAEF,eAAO,MAAM,gBAAgB,SACrB,MAAM,yZAGb,CAAC;AAEF,yBAAiB,aAAa,CAAC;IAC7B,KAAY,WAAW,GAAG,MAAM,OAAO,YAAY,CAAC;IAEpD,KAAY,WAAW,GAAG,MAAM,OAAO,YAAY,CAAC;CACrD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,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