rocket-launch-live-client 0.1.5 → 0.2.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.
Files changed (45) hide show
  1. package/{dist → lib/cjs}/Client.js +32 -55
  2. package/{dist → lib/cjs}/fetcher.js +17 -15
  3. package/lib/cjs/index.js +28 -0
  4. package/{dist → lib/cjs/types}/Client.d.ts +2 -2
  5. package/lib/cjs/types/Client.d.ts.map +1 -0
  6. package/{dist → lib/cjs}/types/application.js +23 -4
  7. package/{dist → lib/cjs/types}/fetcher.d.ts +1 -0
  8. package/lib/cjs/types/fetcher.d.ts.map +1 -0
  9. package/lib/cjs/types/index.d.ts +24 -0
  10. package/lib/cjs/types/index.d.ts.map +1 -0
  11. package/lib/cjs/types/standards.js +321 -0
  12. package/{dist → lib/cjs/types}/types/application.d.ts +40 -21
  13. package/lib/cjs/types/types/application.d.ts.map +1 -0
  14. package/{dist → lib/cjs/types}/types/standards.d.ts +3 -0
  15. package/lib/cjs/types/types/standards.d.ts.map +1 -0
  16. package/lib/cjs/types/utils.d.ts +11 -0
  17. package/lib/cjs/types/utils.d.ts.map +1 -0
  18. package/{dist → lib/cjs}/utils.js +56 -60
  19. package/lib/esm/Client.js +207 -0
  20. package/lib/esm/fetcher.js +39 -0
  21. package/{dist/index.d.ts → lib/esm/index.mjs} +5 -6
  22. package/lib/esm/types/Client.d.ts +176 -0
  23. package/lib/esm/types/Client.d.ts.map +1 -0
  24. package/lib/esm/types/application.js +41 -0
  25. package/lib/esm/types/fetcher.d.ts +2 -0
  26. package/lib/esm/types/fetcher.d.ts.map +1 -0
  27. package/lib/esm/types/index.d.ts +24 -0
  28. package/lib/esm/types/index.d.ts.map +1 -0
  29. package/{dist → lib/esm}/types/standards.js +8 -6
  30. package/lib/esm/types/types/application.d.ts +184 -0
  31. package/lib/esm/types/types/application.d.ts.map +1 -0
  32. package/lib/esm/types/types/standards.d.ts +317 -0
  33. package/lib/esm/types/types/standards.d.ts.map +1 -0
  34. package/lib/esm/types/utils.d.ts +11 -0
  35. package/lib/esm/types/utils.d.ts.map +1 -0
  36. package/lib/esm/utils.js +241 -0
  37. package/package.json +32 -10
  38. package/dist/Client.js.map +0 -1
  39. package/dist/fetcher.js.map +0 -1
  40. package/dist/index.js +0 -27
  41. package/dist/index.js.map +0 -1
  42. package/dist/types/application.js.map +0 -1
  43. package/dist/types/standards.js.map +0 -1
  44. package/dist/utils.d.ts +0 -6
  45. package/dist/utils.js.map +0 -1
@@ -1,5 +1,6 @@
1
- import RLLClient from "./Client";
2
- import { RLLClientOptions } from "./types/application";
1
+ import { RLLClient } from "./Client";
2
+ export { RLLEndPoint, RLLEntity, } from "./types/application";
3
+ export { RLLClient } from "./Client";
3
4
  /**
4
5
  * Generate a RocketLaunch.Live client
5
6
  *
@@ -15,8 +16,6 @@ import { RLLClientOptions } from "./types/application";
15
16
  * @example
16
17
  *
17
18
  * const MY_KEY = process.env.ROCKETLAUNCH_LIVE_API_KEY
18
- *
19
- * const client = clientGenerator(MY_KEY, { keyInQueryParams: true })
19
+ * const client = rllc(MY_KEY, { keyInQueryParams: true })
20
20
  */
21
- declare const rllc: (apiKey: string, options?: RLLClientOptions) => RLLClient;
22
- export { rllc };
21
+ export const rllc = (apiKey, options) => new RLLClient(apiKey, options);
@@ -0,0 +1,176 @@
1
+ import { RLLClientOptions, RLLEntity, RLLQueryConfig, RLLResponse } from "./types/application";
2
+ /**
3
+ * Class representing a RocketLaunch.Live client
4
+ * @class
5
+ */
6
+ export declare class RLLClient {
7
+ private apiKey;
8
+ private config;
9
+ /**
10
+ * Create a new RocketLaunch.live Client
11
+ *
12
+ * @param {string} apiKey - Your RocketLaunch.Live API Key
13
+ * @param {Object} [options] - Optional Client Configuration options
14
+ * @param {boolean} options.keyInQueryParams - Set to true to send your API Key via Query parameters instead of Authorization Header (not recommended)
15
+ *
16
+ */
17
+ constructor(apiKey: string, options?: RLLClientOptions);
18
+ /**
19
+ * Used internally to make API query
20
+ *
21
+ * @private
22
+ *
23
+ * @template T
24
+ *
25
+ * @param {string} endpoint - API endpoint (ie. "/launches")
26
+ * @param {URLSearchParams} params - API Search Params
27
+ *
28
+ * @returns {Promise<T>}
29
+ */
30
+ private query;
31
+ /**
32
+ * Fetch launch companies
33
+ *
34
+ * @public
35
+ * @function
36
+ *
37
+ * @param {Object} [options] - Launch Company Search Options
38
+ * @param {number | string} options.id - Company id
39
+ * @param {number | string} options.page - Page number of results
40
+ * @param {number | string} options.name - Company name
41
+ * @param {ISO3166Alpha2.CountryCode} options.country_code - ISO 3166 Alpha 2 Country Code
42
+ * @param {boolean} options.inactive - Company inactive status
43
+ *
44
+ * @returns {Promise<RLLResponse<RLLEntity.Company[]>>} Array of companies wrapped in a standard RLL Response
45
+ *
46
+ * @example
47
+ *
48
+ * const response = client.companies({ country_code: "US" })
49
+ */
50
+ companies(options?: RLLQueryConfig.Companies): Promise<RLLResponse<RLLEntity.Company[]>>;
51
+ /**
52
+ * Fetch launches
53
+ *
54
+ * @public
55
+ * @function
56
+ *
57
+ * @param {Object} [options] - Launch Search Options
58
+ * @param {number | string} options.id - Launch id
59
+ * @param {number | string} options.page - Page number of results
60
+ * @param {string} options.cospar_id - Launch COSPAR ID (ie. 2022-123)
61
+ * @param {Date | string} options.before_date - Only return launches before this date
62
+ * @param {Date | string} options.after_date - Only return launches after this date
63
+ * @param {Date | string} options.modified_since - Only return launches with API changes after this date
64
+ * @param {number | string} options.location_id - Launches from this Location
65
+ * @param {number | string} options.pad_id - Launches from this Pad
66
+ * @param {number | string} options.provider_id - Launches from this Company
67
+ * @param {number | string} options.tag_id - Launches with this Tag
68
+ * @param {number | string} options.vehicle_id - Launches on this Vehicle
69
+ * @param {ISO3166Alpha2.StateCodeUS} options.state_abbr - ISO 3166 Alpha 2 US State Code
70
+ * @param {ISO3166Alpha2.CountryCode} options.country_code - ISO 3166 Alpha 2 Country Code
71
+ * @param {number | string} options.search - Launches matching this search string
72
+ * @param {number | string} options.slug - Launches matching this unique slug
73
+ *
74
+ * @returns {Promise<RLLResponse<RLLEntity.Launch[]>>} Array of companies wrapped in a standard RLL Response
75
+ *
76
+ * @example
77
+ *
78
+ * const response = client.launches({ after_date: new Date("2022-10-10") })
79
+ */
80
+ launches(options?: RLLQueryConfig.Launches): Promise<RLLResponse<RLLEntity.Launch[]>>;
81
+ /**
82
+ * Fetch launch locations
83
+ *
84
+ * @public
85
+ * @function
86
+ *
87
+ * @param {Object} [options] - Launch Location Search Options
88
+ * @param {number | string} options.id - Location id
89
+ * @param {number | string} options.page - Page number of results
90
+ * @param {number | string} options.name - Location name
91
+ * @param {ISO3166Alpha2.StateCodeUS} options.state_abbr - ISO 3166 Alpha 2 US State Code
92
+ * @param {ISO3166Alpha2.CountryCode} options.country_code - ISO 3166 Alpha 2 Country Code
93
+ *
94
+ * @returns {Promise<RLLResponse<RLLEntity.Location[]>>} Array of companies wrapped in a standard RLL Response
95
+ *
96
+ * @example
97
+ *
98
+ * const response = client.locations({ country_code: "US" })
99
+ */
100
+ locations(options?: RLLQueryConfig.Locations): Promise<RLLResponse<RLLEntity.Location[]>>;
101
+ /**
102
+ * Fetch launch Missions
103
+ *
104
+ * @public
105
+ * @function
106
+ *
107
+ * @param {Object} [options] - Launch Mission Search Options
108
+ * @param {number | string} options.id - Mission id
109
+ * @param {number | string} options.page - Page number of results
110
+ * @param {number | string} options.name - Mission name
111
+ *
112
+ * @returns {Promise<RLLResponse<RLLEntity.Mission[]>>} Array of companies wrapped in a standard RLL Response
113
+ *
114
+ * @example
115
+ *
116
+ * const response = client.missions({ name: "Mars 2020" })
117
+ */
118
+ missions(options?: RLLQueryConfig.Missions): Promise<RLLResponse<RLLEntity.Mission[]>>;
119
+ /**
120
+ * Fetch launch pads
121
+ *
122
+ * @public
123
+ * @function
124
+ *
125
+ * @param {Object} [options] - Launch Pad Search Options
126
+ * @param {number | string} options.id - Pad id
127
+ * @param {number | string} options.page - Page number of results
128
+ * @param {number | string} options.name - Pad name
129
+ * @param {ISO3166Alpha2.StateCodeUS} options.state_abbr - ISO 3166 Alpha 2 US State Code
130
+ * @param {ISO3166Alpha2.CountryCode} options.country_code - ISO 3166 Alpha 2 Country Code
131
+ *
132
+ * @returns {Promise<RLLResponse<RLLEntity.Pad[]>>} Array of companies wrapped in a standard RLL Response
133
+ *
134
+ * @example
135
+ *
136
+ * const response = client.pads({ country_code: "US" })
137
+ */
138
+ pads(options?: RLLQueryConfig.Pads): Promise<RLLResponse<RLLEntity.Pad[]>>;
139
+ /**
140
+ * Fetch launch tags
141
+ *
142
+ * @public
143
+ * @function
144
+ *
145
+ * @param {Object} [options] - Launch Tag Search Options
146
+ * @param {number | string} options.id - Tag id
147
+ * @param {number | string} options.page - Page number of results
148
+ * @param {number | string} options.text - Tag text
149
+ *
150
+ * @returns {Promise<RLLResponse<RLLEntity.Tag[]>>} Array of companies wrapped in a standard RLL Response
151
+ *
152
+ * @example
153
+ *
154
+ * const response = client.tags({ text: "Crewed" })
155
+ */
156
+ tags(options?: RLLQueryConfig.Tags): Promise<RLLResponse<RLLEntity.Tag[]>>;
157
+ /**
158
+ * Fetch launch Vehicles
159
+ *
160
+ * @public
161
+ * @function
162
+ *
163
+ * @param {Object} [options] - Launch Vehicles Search Options
164
+ * @param {number | string} options.id - Vehicle id
165
+ * @param {number | string} options.page - Page number of results
166
+ * @param {number | string} options.name - Vehicle name
167
+ *
168
+ * @returns {Promise<RLLResponse<RLLEntity.Vehicle[]>>} Array of companies wrapped in a standard RLL Response
169
+ *
170
+ * @example
171
+ *
172
+ * const response = client.vehicles({ name: "Falcon 9" })
173
+ */
174
+ vehicles(options?: RLLQueryConfig.Vehicles): Promise<RLLResponse<RLLEntity.Vehicle[]>>;
175
+ }
176
+ //# sourceMappingURL=Client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../src/Client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAEhB,SAAS,EACT,cAAc,EACd,WAAW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O,CAAC,EAAE,cAAc,CAAC,QAAQ,GAChC,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC;CAK7C"}
@@ -0,0 +1,41 @@
1
+ export var RLLEndPoint;
2
+ (function (RLLEndPoint) {
3
+ RLLEndPoint["COMPANIES"] = "companies";
4
+ RLLEndPoint["LAUNCHES"] = "launches";
5
+ RLLEndPoint["LOCATIONS"] = "locations";
6
+ RLLEndPoint["MISSIONS"] = "missions";
7
+ RLLEndPoint["PADS"] = "pads";
8
+ RLLEndPoint["TAGS"] = "tags";
9
+ RLLEndPoint["VEHICLES"] = "vehicles";
10
+ })(RLLEndPoint || (RLLEndPoint = {}));
11
+ export var RLLEntity;
12
+ (function (RLLEntity) {
13
+ let LaunchResult;
14
+ (function (LaunchResult) {
15
+ LaunchResult[LaunchResult["NOT_SET"] = -1] = "NOT_SET";
16
+ LaunchResult[LaunchResult["FAILURE"] = 0] = "FAILURE";
17
+ LaunchResult[LaunchResult["SUCCESS"] = 1] = "SUCCESS";
18
+ LaunchResult[LaunchResult["PARTIAL_FAILURE"] = 2] = "PARTIAL_FAILURE";
19
+ LaunchResult[LaunchResult["IN_FLIGHT_ABORT_CREWED"] = 3] = "IN_FLIGHT_ABORT_CREWED";
20
+ })(LaunchResult = RLLEntity.LaunchResult || (RLLEntity.LaunchResult = {}));
21
+ })(RLLEntity || (RLLEntity = {}));
22
+ export const RLLQueryParams = {
23
+ id: true,
24
+ page: true,
25
+ name: true,
26
+ country_code: true,
27
+ inactive: true,
28
+ cospar_id: true,
29
+ after_date: true,
30
+ before_date: true,
31
+ modified_since: true,
32
+ location_id: true,
33
+ pad_id: true,
34
+ provider_id: true,
35
+ tag_id: true,
36
+ vehicle_id: true,
37
+ state_abbr: true,
38
+ search: true,
39
+ slug: true,
40
+ text: true,
41
+ };
@@ -0,0 +1,2 @@
1
+ export declare const fetcher: <T>(apiKey: string, endpoint: string, params: URLSearchParams, keyInQueryParams: boolean) => Promise<T>;
2
+ //# sourceMappingURL=fetcher.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetcher.d.ts","sourceRoot":"","sources":["../../../src/fetcher.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,OAAO,cACV,MAAM,YACJ,MAAM,UACR,eAAe,oBACL,OAAO,eAc1B,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { RLLClient } from "./Client";
2
+ import { RLLClientOptions } from "./types/application";
3
+ export { RLLEndPoint, RLLResponse, RLLClientOptions, RLLQueryConfig, RLLEntity, } from "./types/application";
4
+ export { ISO3166Alpha2 } from "./types/standards";
5
+ export { RLLClient } from "./Client";
6
+ /**
7
+ * Generate a RocketLaunch.Live client
8
+ *
9
+ * @public
10
+ * @function
11
+ *
12
+ * @param {string} apiKey - Your RocketLaunch.Live API Key
13
+ * @param {Object} [options] - Optional Client Configuration options
14
+ * @param {boolean} options.keyInQueryParams - Set to true to send your API Key via Query parameters instead of Authorization Header (not recommended)
15
+ *
16
+ * @returns {RLLCLient}
17
+ *
18
+ * @example
19
+ *
20
+ * const MY_KEY = process.env.ROCKETLAUNCH_LIVE_API_KEY
21
+ * const client = rllc(MY_KEY, { keyInQueryParams: true })
22
+ */
23
+ export declare const rllc: (apiKey: string, options?: RLLClientOptions) => RLLClient;
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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,GACV,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,IAAI,WAAY,MAAM,YAAY,gBAAgB,KAAG,SAClC,CAAC"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.usStateCodes = exports.countryCodes = void 0;
4
- exports.countryCodes = {
1
+ export const countryCodes = {
5
2
  AF: "AF",
6
3
  AL: "AL",
7
4
  DZ: "DZ",
@@ -252,7 +249,7 @@ exports.countryCodes = {
252
249
  ZW: "ZW",
253
250
  AX: "AX",
254
251
  };
255
- exports.usStateCodes = {
252
+ export const usStateCodes = {
256
253
  AL: "AL",
257
254
  AK: "AK",
258
255
  AZ: "AZ",
@@ -311,4 +308,9 @@ exports.usStateCodes = {
311
308
  UM: "UM",
312
309
  VI: "VI",
313
310
  };
314
- //# sourceMappingURL=standards.js.map
311
+ export const isValidCountryCode = (code) => {
312
+ return !!countryCodes[code];
313
+ };
314
+ export const isValidStateCode = (code) => {
315
+ return !!usStateCodes[code];
316
+ };
@@ -0,0 +1,184 @@
1
+ import { ISO3166Alpha2 } from "./standards";
2
+ export declare enum RLLEndPoint {
3
+ COMPANIES = "companies",
4
+ LAUNCHES = "launches",
5
+ LOCATIONS = "locations",
6
+ MISSIONS = "missions",
7
+ PADS = "pads",
8
+ TAGS = "tags",
9
+ VEHICLES = "vehicles"
10
+ }
11
+ export declare namespace RLLEntity {
12
+ interface RLLRecord {
13
+ id: number;
14
+ }
15
+ export interface Country {
16
+ name: string;
17
+ code: ISO3166Alpha2.CountryCode;
18
+ }
19
+ export interface State {
20
+ name: string;
21
+ abbr: ISO3166Alpha2.StateCodeUS;
22
+ }
23
+ export interface Company extends RLLRecord {
24
+ country: Country;
25
+ inactive: boolean | null;
26
+ }
27
+ export enum LaunchResult {
28
+ NOT_SET = -1,
29
+ FAILURE = 0,
30
+ SUCCESS = 1,
31
+ PARTIAL_FAILURE = 2,
32
+ IN_FLIGHT_ABORT_CREWED = 3
33
+ }
34
+ export interface Media extends RLLRecord {
35
+ media_url: string | null;
36
+ youtube_vidid: string | null;
37
+ featured: boolean;
38
+ ldfeatured: boolean;
39
+ approved: boolean;
40
+ }
41
+ export interface Launch extends RLLRecord {
42
+ name: string;
43
+ cospar_id: string;
44
+ sort_date: string;
45
+ provider: Omit<Company, "inactive" | "country">;
46
+ vehicle: Omit<Vehicle, "company_id" | "company">;
47
+ pad: Omit<Pad, "full_name">;
48
+ missions: Omit<Mission, "launch_id">[];
49
+ mission_description: string | null;
50
+ launch_description: string;
51
+ win_open: string | null;
52
+ t0: string | null;
53
+ win_close: string | null;
54
+ est_date: {
55
+ month: number | null;
56
+ day: number | null;
57
+ year: number | null;
58
+ quarter: number | null;
59
+ };
60
+ date_str: string;
61
+ tags: Omit<Tag, "slug">[];
62
+ slug: string;
63
+ weather_summary: string | null;
64
+ weather_temp: number | null;
65
+ weather_icon: string | null;
66
+ weather_updated: string | null;
67
+ quicktext: string;
68
+ media?: Media[];
69
+ result: LaunchResult;
70
+ suborbital: boolean;
71
+ modified: string;
72
+ }
73
+ export interface Location extends RLLRecord {
74
+ name: string;
75
+ latitute: string;
76
+ latitude: string;
77
+ longitude: string;
78
+ state: State | null;
79
+ statename?: string | null;
80
+ country: Country;
81
+ pads: Omit<Pad, "location" | "country" | "state">[];
82
+ utc_offset: number;
83
+ }
84
+ export interface Mission extends RLLRecord {
85
+ name: string;
86
+ description: string | null;
87
+ launch_id: number;
88
+ company: Omit<Company, "slug" | "inactive" | "country">;
89
+ }
90
+ export interface Pad extends RLLRecord {
91
+ name: string;
92
+ full_name: string;
93
+ location: Omit<Location, "pads" | "utc_offset" | "latitute">;
94
+ }
95
+ export interface Tag extends RLLRecord {
96
+ text: string;
97
+ slug: string;
98
+ }
99
+ export interface Vehicle extends RLLRecord {
100
+ name: string;
101
+ company_id?: number;
102
+ company: Omit<Company, "slug" | "inactive" | "country">;
103
+ }
104
+ export {};
105
+ }
106
+ export declare const RLLQueryParams: {
107
+ id: boolean;
108
+ page: boolean;
109
+ name: boolean;
110
+ country_code: boolean;
111
+ inactive: boolean;
112
+ cospar_id: boolean;
113
+ after_date: boolean;
114
+ before_date: boolean;
115
+ modified_since: boolean;
116
+ location_id: boolean;
117
+ pad_id: boolean;
118
+ provider_id: boolean;
119
+ tag_id: boolean;
120
+ vehicle_id: boolean;
121
+ state_abbr: boolean;
122
+ search: boolean;
123
+ slug: boolean;
124
+ text: boolean;
125
+ };
126
+ export declare namespace RLLQueryConfig {
127
+ interface Base {
128
+ id?: number | string;
129
+ page?: number | string;
130
+ }
131
+ export interface Companies extends Base {
132
+ name?: string | number;
133
+ country_code?: ISO3166Alpha2.CountryCode;
134
+ inactive?: boolean;
135
+ }
136
+ export interface Launches extends Base {
137
+ cospar_id?: string;
138
+ after_date?: Date | string;
139
+ before_date?: Date | string;
140
+ modified_since?: Date | string;
141
+ location_id?: number | string;
142
+ pad_id?: number | string;
143
+ provider_id?: number | string;
144
+ tag_id?: number | string;
145
+ vehicle_id?: number | string;
146
+ state_abbr?: ISO3166Alpha2.StateCodeUS;
147
+ country_code?: ISO3166Alpha2.CountryCode;
148
+ search?: string | number;
149
+ slug?: string | number;
150
+ }
151
+ export interface Locations extends Base {
152
+ name?: string | number;
153
+ state_abbr?: ISO3166Alpha2.StateCodeUS;
154
+ country_code?: ISO3166Alpha2.CountryCode;
155
+ }
156
+ export interface Missions extends Base {
157
+ name?: string | number;
158
+ }
159
+ export interface Pads extends Base {
160
+ name?: string | number;
161
+ state_abbr?: ISO3166Alpha2.StateCodeUS;
162
+ country_code?: ISO3166Alpha2.CountryCode;
163
+ }
164
+ export interface Tags extends Base {
165
+ text?: string | number;
166
+ }
167
+ export interface Vehicles extends Base {
168
+ name?: string | number;
169
+ }
170
+ export {};
171
+ }
172
+ export type RLLClientOptions = {
173
+ keyInQueryParams?: boolean;
174
+ };
175
+ export type RLLResponse<T> = {
176
+ errors?: string[];
177
+ valid_auth: boolean;
178
+ count: number;
179
+ limit: number;
180
+ total: number;
181
+ last_page: number;
182
+ result: T;
183
+ };
184
+ //# sourceMappingURL=application.d.ts.map
@@ -0,0 +1 @@
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;AAED,yBAAiB,SAAS,CAAC;IACzB,UAAU,SAAS;QACjB,EAAE,EAAE,MAAM,CAAC;KACZ;IAED,MAAM,WAAW,OAAO;QACtB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,aAAa,CAAC,WAAW,CAAC;KACjC;IAED,MAAM,WAAW,KAAK;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,aAAa,CAAC,WAAW,CAAC;KACjC;IAED,MAAM,WAAW,OAAQ,SAAQ,SAAS;QACxC,OAAO,EAAE,OAAO,CAAC;QACjB,QAAQ,EAAE,OAAO,GAAG,IAAI,CAAC;KAC1B;IAED,MAAM,MAAM,YAAY;QACtB,OAAO,KAAK;QACZ,OAAO,IAAI;QACX,OAAO,IAAI;QACX,eAAe,IAAI;QACnB,sBAAsB,IAAI;KAC3B;IAED,MAAM,WAAW,KAAM,SAAQ,SAAS;QACtC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QACzB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;QAC7B,QAAQ,EAAE,OAAO,CAAC;QAClB,UAAU,EAAE,OAAO,CAAC;QACpB,QAAQ,EAAE,OAAO,CAAC;KACnB;IAED,MAAM,WAAW,MAAO,SAAQ,SAAS;QACvC,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,UA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