swcombine.js 0.0.1 → 0.0.3
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 → README.md} +98 -97
- package/dist/index.cjs.js +664 -9
- package/dist/index.d.ts +497 -5
- package/dist/index.esm.js +664 -9
- package/package.json +5 -6
- package/dist/index.d.mts +0 -33
- package/dist/index.d.ts.map +0 -1
- package/dist/permissions.d.ts +0 -289
- package/dist/permissions.d.ts.map +0 -1
- package/dist/resources/ApiResource.d.ts +0 -7
- package/dist/resources/ApiResource.d.ts.map +0 -1
- package/dist/resources/Resource.d.ts +0 -6
- package/dist/resources/Resource.d.ts.map +0 -1
- package/dist/resources/index.d.ts +0 -3
- package/dist/resources/index.d.ts.map +0 -1
- package/dist/responses/SwcApiResponse.d.ts +0 -8
- package/dist/responses/SwcApiResponse.d.ts.map +0 -1
- package/dist/responses/api/getPermissionsResponse.d.ts +0 -17
- package/dist/responses/api/getPermissionsResponse.d.ts.map +0 -1
- package/dist/responses/api/index.d.ts +0 -2
- package/dist/responses/api/index.d.ts.map +0 -1
- package/dist/responses/index.d.ts +0 -3
- package/dist/responses/index.d.ts.map +0 -1
- package/dist/types/Permission.d.ts +0 -7
- package/dist/types/Permission.d.ts.map +0 -1
- package/dist/types/SwcTimestamp.d.ts +0 -34
- package/dist/types/SwcTimestamp.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -3
- package/dist/types/index.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "swcombine.js",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"swcombine",
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
11
|
"import": {
|
|
12
|
-
"
|
|
13
|
-
"
|
|
12
|
+
"default": "./dist/index.esm.js",
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
14
14
|
},
|
|
15
15
|
"require": {
|
|
16
|
-
"
|
|
17
|
-
"
|
|
16
|
+
"default": "./dist/index.cjs.js",
|
|
17
|
+
"types": "./dist/index.d.ts"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
},
|
|
@@ -62,7 +62,6 @@
|
|
|
62
62
|
"typescript-eslint": "^8.22.0",
|
|
63
63
|
"vite": "^6.0.11",
|
|
64
64
|
"vite-plugin-dts": "^4.5.0",
|
|
65
|
-
"vite-plugin-node-polyfills": "^0.23.0",
|
|
66
65
|
"vite-tsconfig-paths": "^5.1.4",
|
|
67
66
|
"vitest": "^3.0.4"
|
|
68
67
|
},
|
package/dist/index.d.mts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export declare type GetPermissionsResponse = SwcApiResponse<GetPermissionsResponsePermissions>;
|
|
2
|
-
|
|
3
|
-
declare interface GetPermissionsResponsePermission {
|
|
4
|
-
attributes: GetPermissionsResponsePermissionAttributes;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
declare interface GetPermissionsResponsePermissionAttributes {
|
|
8
|
-
name: string;
|
|
9
|
-
description: string;
|
|
10
|
-
inherits: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
declare interface GetPermissionsResponsePermissions {
|
|
14
|
-
permissions: {
|
|
15
|
-
permission: GetPermissionsResponsePermission[];
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export declare abstract class Resource {
|
|
20
|
-
private resourceName;
|
|
21
|
-
protected constructor(resourceName: string);
|
|
22
|
-
protected get<T>(endpointUrl: string): Promise<T>;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
declare interface SwcApiResponse<T> {
|
|
26
|
-
version: string;
|
|
27
|
-
timestamp: number;
|
|
28
|
-
resource: string;
|
|
29
|
-
request: string;
|
|
30
|
-
swcapi: T;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { }
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AAEvB,cAAc,eAAe,CAAA"}
|
package/dist/permissions.d.ts
DELETED
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
declare const _default: Readonly<{
|
|
2
|
-
character: Readonly<{
|
|
3
|
-
auth: "character_auth";
|
|
4
|
-
read: "character_read";
|
|
5
|
-
stats: "character_stats";
|
|
6
|
-
privileges: "character_privileges";
|
|
7
|
-
skills: "character_skills";
|
|
8
|
-
credits: Readonly<{
|
|
9
|
-
read: "character_credits";
|
|
10
|
-
readWrite: "character_credits_write";
|
|
11
|
-
}>;
|
|
12
|
-
force: "character_force";
|
|
13
|
-
location: "character_location";
|
|
14
|
-
events: "character_events";
|
|
15
|
-
all: "character_all";
|
|
16
|
-
}>;
|
|
17
|
-
messages: Readonly<{
|
|
18
|
-
read: "messages_read";
|
|
19
|
-
send: "messages_send";
|
|
20
|
-
delete: "messages_delete";
|
|
21
|
-
all: "messages_all";
|
|
22
|
-
}>;
|
|
23
|
-
faction: Readonly<{
|
|
24
|
-
read: "faction_read";
|
|
25
|
-
members: "faction_members";
|
|
26
|
-
stocks: "faction_stocks";
|
|
27
|
-
credits: Readonly<{
|
|
28
|
-
read: "faction_credits_read";
|
|
29
|
-
readWrite: "faction_credits_write";
|
|
30
|
-
}>;
|
|
31
|
-
budgets: Readonly<{
|
|
32
|
-
read: "faction_budgets_read";
|
|
33
|
-
readWrite: "faction_budgets_write";
|
|
34
|
-
}>;
|
|
35
|
-
datacards: Readonly<{
|
|
36
|
-
read: "faction_datacards_read";
|
|
37
|
-
readWrite: "faction_datacards_write";
|
|
38
|
-
}>;
|
|
39
|
-
all: "faction_all";
|
|
40
|
-
}>;
|
|
41
|
-
personalInventory: Readonly<{
|
|
42
|
-
ships: Readonly<{
|
|
43
|
-
read: "personal_inv_ships_read";
|
|
44
|
-
rename: "personal_inv_ships_rename";
|
|
45
|
-
assign: "personal_inv_ships_assign";
|
|
46
|
-
makeover: "personal_inv_ships_makeover";
|
|
47
|
-
tags: Readonly<{
|
|
48
|
-
read: "personal_inv_ships_tags_read";
|
|
49
|
-
readWrite: "personal_inv_ships_tags_write";
|
|
50
|
-
}>;
|
|
51
|
-
all: "personal_inv_ships_all";
|
|
52
|
-
}>;
|
|
53
|
-
vehicles: Readonly<{
|
|
54
|
-
read: "personal_inv_vehicles_read";
|
|
55
|
-
rename: "personal_inv_vehicles_rename";
|
|
56
|
-
assign: "personal_inv_vehicles_assign";
|
|
57
|
-
makeover: "personal_inv_vehicles_makeover";
|
|
58
|
-
tags: Readonly<{
|
|
59
|
-
read: "personal_inv_vehicles_tags_read";
|
|
60
|
-
readWrite: "personal_inv_vehicles_tags_write";
|
|
61
|
-
}>;
|
|
62
|
-
all: "personal_inv_vehicles_all";
|
|
63
|
-
}>;
|
|
64
|
-
stations: Readonly<{
|
|
65
|
-
read: "personal_inv_stations_read";
|
|
66
|
-
rename: "personal_inv_stations_rename";
|
|
67
|
-
assign: "personal_inv_stations_assign";
|
|
68
|
-
makeover: "personal_inv_stations_makeover";
|
|
69
|
-
tags: Readonly<{
|
|
70
|
-
read: "personal_inv_stations_tags_read";
|
|
71
|
-
readWrite: "personal_inv_stations_tags_write";
|
|
72
|
-
}>;
|
|
73
|
-
all: "personal_inv_stations_all";
|
|
74
|
-
}>;
|
|
75
|
-
cities: Readonly<{
|
|
76
|
-
read: "personal_inv_cities_read";
|
|
77
|
-
rename: "personal_inv_cities_rename";
|
|
78
|
-
assign: "personal_inv_cities_assign";
|
|
79
|
-
makeover: "personal_inv_cities_makeover";
|
|
80
|
-
tags: Readonly<{
|
|
81
|
-
read: "personal_inv_cities_tags_read";
|
|
82
|
-
readWrite: "personal_inv_cities_tags_write";
|
|
83
|
-
}>;
|
|
84
|
-
all: "personal_inv_cities_all";
|
|
85
|
-
}>;
|
|
86
|
-
facilities: Readonly<{
|
|
87
|
-
read: "personal_inv_facilities_read";
|
|
88
|
-
rename: "personal_inv_facilities_rename";
|
|
89
|
-
assign: "personal_inv_facilities_assign";
|
|
90
|
-
makeover: "personal_inv_facilities_makeover";
|
|
91
|
-
tags: Readonly<{
|
|
92
|
-
read: "personal_inv_facilities_tags_read";
|
|
93
|
-
readWrite: "personal_inv_facilities_tags_write";
|
|
94
|
-
}>;
|
|
95
|
-
all: "personal_inv_facilities_all";
|
|
96
|
-
}>;
|
|
97
|
-
planets: Readonly<{
|
|
98
|
-
read: "personal_inv_planets_read";
|
|
99
|
-
rename: "personal_inv_planets_rename";
|
|
100
|
-
assign: "personal_inv_planets_assign";
|
|
101
|
-
makeover: "personal_inv_planets_makeover";
|
|
102
|
-
tags: Readonly<{
|
|
103
|
-
read: "personal_inv_planets_tags_read";
|
|
104
|
-
readWrite: "personal_inv_planets_tags_write";
|
|
105
|
-
}>;
|
|
106
|
-
all: "personal_inv_planets_all";
|
|
107
|
-
}>;
|
|
108
|
-
items: Readonly<{
|
|
109
|
-
read: "personal_inv_items_read";
|
|
110
|
-
rename: "personal_inv_items_rename";
|
|
111
|
-
assign: "personal_inv_items_assign";
|
|
112
|
-
makeover: "personal_inv_items_makeover";
|
|
113
|
-
tags: Readonly<{
|
|
114
|
-
read: "personal_inv_items_tags_read";
|
|
115
|
-
readWrite: "personal_inv_items_tags_write";
|
|
116
|
-
}>;
|
|
117
|
-
all: "personal_inv_items_all";
|
|
118
|
-
}>;
|
|
119
|
-
npcs: Readonly<{
|
|
120
|
-
read: "personal_inv_npcs_read";
|
|
121
|
-
rename: "personal_inv_npcs_rename";
|
|
122
|
-
assign: "personal_inv_npcs_assign";
|
|
123
|
-
makeover: "personal_inv_npcs_makeover";
|
|
124
|
-
tags: Readonly<{
|
|
125
|
-
read: "personal_inv_npcs_tags_read";
|
|
126
|
-
readWrite: "personal_inv_npcs_tags_write";
|
|
127
|
-
}>;
|
|
128
|
-
all: "personal_inv_npcs_all";
|
|
129
|
-
}>;
|
|
130
|
-
droids: Readonly<{
|
|
131
|
-
read: "personal_inv_droids_read";
|
|
132
|
-
rename: "personal_inv_droids_rename";
|
|
133
|
-
assign: "personal_inv_droids_assign";
|
|
134
|
-
makeover: "personal_inv_droids_makeover";
|
|
135
|
-
tags: Readonly<{
|
|
136
|
-
read: "personal_inv_droids_tags_read";
|
|
137
|
-
readWrite: "personal_inv_droids_tags_write";
|
|
138
|
-
}>;
|
|
139
|
-
all: "personal_inv_droids_all";
|
|
140
|
-
}>;
|
|
141
|
-
materials: Readonly<{
|
|
142
|
-
read: "personal_inv_materials_read";
|
|
143
|
-
rename: "personal_inv_materials_rename";
|
|
144
|
-
assign: "personal_inv_materials_assign";
|
|
145
|
-
makeover: "personal_inv_materials_makeover";
|
|
146
|
-
tags: Readonly<{
|
|
147
|
-
read: "personal_inv_materials_tags_read";
|
|
148
|
-
readWrite: "personal_inv_materials_tags_write";
|
|
149
|
-
}>;
|
|
150
|
-
all: "personal_inv_materials_all";
|
|
151
|
-
}>;
|
|
152
|
-
creatures: Readonly<{
|
|
153
|
-
read: "personal_inv_creatures_read";
|
|
154
|
-
rename: "personal_inv_creatures_rename";
|
|
155
|
-
assign: "personal_inv_creatures_assign";
|
|
156
|
-
makeover: "personal_inv_creatures_makeover";
|
|
157
|
-
tags: Readonly<{
|
|
158
|
-
read: "personal_inv_creatures_tags_read";
|
|
159
|
-
readWrite: "personal_inv_creatures_tags_write";
|
|
160
|
-
}>;
|
|
161
|
-
all: "personal_inv_creatures_all";
|
|
162
|
-
}>;
|
|
163
|
-
}>;
|
|
164
|
-
factionInventory: Readonly<{
|
|
165
|
-
ships: Readonly<{
|
|
166
|
-
read: "faction_inv_ships_read";
|
|
167
|
-
rename: "faction_inv_ships_rename";
|
|
168
|
-
assign: "faction_inv_ships_assign";
|
|
169
|
-
makeover: "faction_inv_ships_makeover";
|
|
170
|
-
tags: Readonly<{
|
|
171
|
-
read: "faction_inv_ships_tags_read";
|
|
172
|
-
readWrite: "faction_inv_ships_tags_write";
|
|
173
|
-
}>;
|
|
174
|
-
all: "faction_inv_ships_all";
|
|
175
|
-
}>;
|
|
176
|
-
vehicles: Readonly<{
|
|
177
|
-
read: "faction_inv_vehicles_read";
|
|
178
|
-
rename: "faction_inv_vehicles_rename";
|
|
179
|
-
assign: "faction_inv_vehicles_assign";
|
|
180
|
-
makeover: "faction_inv_vehicles_makeover";
|
|
181
|
-
tags: Readonly<{
|
|
182
|
-
read: "faction_inv_vehicles_tags_read";
|
|
183
|
-
readWrite: "faction_inv_vehicles_tags_write";
|
|
184
|
-
}>;
|
|
185
|
-
all: "faction_inv_vehicles_all";
|
|
186
|
-
}>;
|
|
187
|
-
stations: Readonly<{
|
|
188
|
-
read: "faction_inv_stations_read";
|
|
189
|
-
rename: "faction_inv_stations_rename";
|
|
190
|
-
assign: "faction_inv_stations_assign";
|
|
191
|
-
makeover: "faction_inv_stations_makeover";
|
|
192
|
-
tags: Readonly<{
|
|
193
|
-
read: "faction_inv_stations_tags_read";
|
|
194
|
-
readWrite: "faction_inv_stations_tags_write";
|
|
195
|
-
}>;
|
|
196
|
-
all: "faction_inv_stations_all";
|
|
197
|
-
}>;
|
|
198
|
-
cities: Readonly<{
|
|
199
|
-
read: "faction_inv_cities_read";
|
|
200
|
-
rename: "faction_inv_cities_rename";
|
|
201
|
-
assign: "faction_inv_cities_assign";
|
|
202
|
-
makeover: "faction_inv_cities_makeover";
|
|
203
|
-
tags: Readonly<{
|
|
204
|
-
read: "faction_inv_cities_tags_read";
|
|
205
|
-
readWrite: "faction_inv_cities_tags_write";
|
|
206
|
-
}>;
|
|
207
|
-
all: "faction_inv_cities_all";
|
|
208
|
-
}>;
|
|
209
|
-
facilities: Readonly<{
|
|
210
|
-
read: "faction_inv_facilities_read";
|
|
211
|
-
rename: "faction_inv_facilities_rename";
|
|
212
|
-
assign: "faction_inv_facilities_assign";
|
|
213
|
-
makeover: "faction_inv_facilities_makeover";
|
|
214
|
-
tags: Readonly<{
|
|
215
|
-
read: "faction_inv_facilities_tags_read";
|
|
216
|
-
readWrite: "faction_inv_facilities_tags_write";
|
|
217
|
-
}>;
|
|
218
|
-
all: "faction_inv_facilities_all";
|
|
219
|
-
}>;
|
|
220
|
-
planets: Readonly<{
|
|
221
|
-
read: "faction_inv_planets_read";
|
|
222
|
-
rename: "faction_inv_planets_rename";
|
|
223
|
-
assign: "faction_inv_planets_assign";
|
|
224
|
-
makeover: "faction_inv_planets_makeover";
|
|
225
|
-
tags: Readonly<{
|
|
226
|
-
read: "faction_inv_planets_tags_read";
|
|
227
|
-
readWrite: "faction_inv_planets_tags_write";
|
|
228
|
-
}>;
|
|
229
|
-
all: "faction_inv_planets_all";
|
|
230
|
-
}>;
|
|
231
|
-
items: Readonly<{
|
|
232
|
-
read: "faction_inv_items_read";
|
|
233
|
-
rename: "faction_inv_items_rename";
|
|
234
|
-
assign: "faction_inv_items_assign";
|
|
235
|
-
makeover: "faction_inv_items_makeover";
|
|
236
|
-
tags: Readonly<{
|
|
237
|
-
read: "faction_inv_items_tags_read";
|
|
238
|
-
readWrite: "faction_inv_items_tags_write";
|
|
239
|
-
}>;
|
|
240
|
-
all: "faction_inv_items_all";
|
|
241
|
-
}>;
|
|
242
|
-
npcs: Readonly<{
|
|
243
|
-
read: "faction_inv_npcs_read";
|
|
244
|
-
rename: "faction_inv_npcs_rename";
|
|
245
|
-
assign: "faction_inv_npcs_assign";
|
|
246
|
-
makeover: "faction_inv_npcs_makeover";
|
|
247
|
-
tags: Readonly<{
|
|
248
|
-
read: "faction_inv_npcs_tags_read";
|
|
249
|
-
readWrite: "faction_inv_npcs_tags_write";
|
|
250
|
-
}>;
|
|
251
|
-
all: "faction_inv_npcs_all";
|
|
252
|
-
}>;
|
|
253
|
-
droids: Readonly<{
|
|
254
|
-
read: "faction_inv_droids_read";
|
|
255
|
-
rename: "faction_inv_droids_rename";
|
|
256
|
-
assign: "faction_inv_droids_assign";
|
|
257
|
-
makeover: "faction_inv_droids_makeover";
|
|
258
|
-
tags: Readonly<{
|
|
259
|
-
read: "faction_inv_droids_tags_read";
|
|
260
|
-
readWrite: "faction_inv_droids_tags_write";
|
|
261
|
-
}>;
|
|
262
|
-
all: "faction_inv_droids_all";
|
|
263
|
-
}>;
|
|
264
|
-
materials: Readonly<{
|
|
265
|
-
read: "faction_inv_materials_read";
|
|
266
|
-
rename: "faction_inv_materials_rename";
|
|
267
|
-
assign: "faction_inv_materials_assign";
|
|
268
|
-
makeover: "faction_inv_materials_makeover";
|
|
269
|
-
tags: Readonly<{
|
|
270
|
-
read: "faction_inv_materials_tags_read";
|
|
271
|
-
readWrite: "faction_inv_materials_tags_write";
|
|
272
|
-
}>;
|
|
273
|
-
all: "faction_inv_materials_all";
|
|
274
|
-
}>;
|
|
275
|
-
creatures: Readonly<{
|
|
276
|
-
read: "faction_inv_creatures_read";
|
|
277
|
-
rename: "faction_inv_creatures_rename";
|
|
278
|
-
assign: "faction_inv_creatures_assign";
|
|
279
|
-
makeover: "faction_inv_creatures_makeover";
|
|
280
|
-
tags: Readonly<{
|
|
281
|
-
read: "faction_inv_creatures_tags_read";
|
|
282
|
-
readWrite: "faction_inv_creatures_tags_write";
|
|
283
|
-
}>;
|
|
284
|
-
all: "faction_inv_creatures_all";
|
|
285
|
-
}>;
|
|
286
|
-
}>;
|
|
287
|
-
}>;
|
|
288
|
-
export default _default;
|
|
289
|
-
//# sourceMappingURL=permissions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../src/permissions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAkSE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ApiResource.d.ts","sourceRoot":"","sources":["../../src/resources/ApiResource.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,qBAAqB,CAAA;AAE5C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,QAAQ;;IAKlC,cAAc,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;CAsBrD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Resource.d.ts","sourceRoot":"","sources":["../../src/resources/Resource.ts"],"names":[],"mappings":"AAAA,8BAAsB,QAAQ;IAC5B,OAAO,CAAC,YAAY,CAAQ;IAE5B,SAAS,aAAa,YAAY,EAAE,MAAM;cAI1B,GAAG,CAAC,CAAC,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;CASxD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SwcApiResponse.d.ts","sourceRoot":"","sources":["../../src/responses/SwcApiResponse.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC,CAAC;IACvC,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,CAAC,CAAA;CACV"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import SwcApiResponse from '../SwcApiResponse';
|
|
2
|
-
export type GetPermissionsResponse = SwcApiResponse<GetPermissionsResponsePermissions>;
|
|
3
|
-
interface GetPermissionsResponsePermissions {
|
|
4
|
-
permissions: {
|
|
5
|
-
permission: GetPermissionsResponsePermission[];
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
interface GetPermissionsResponsePermission {
|
|
9
|
-
attributes: GetPermissionsResponsePermissionAttributes;
|
|
10
|
-
}
|
|
11
|
-
interface GetPermissionsResponsePermissionAttributes {
|
|
12
|
-
name: string;
|
|
13
|
-
description: string;
|
|
14
|
-
inherits: string;
|
|
15
|
-
}
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=getPermissionsResponse.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getPermissionsResponse.d.ts","sourceRoot":"","sources":["../../../src/responses/api/getPermissionsResponse.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,mBAAmB,CAAA;AAE9C,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,iCAAiC,CAAC,CAAA;AAEtF,UAAU,iCAAiC;IACzC,WAAW,EAAE;QACX,UAAU,EAAE,gCAAgC,EAAE,CAAA;KAC/C,CAAA;CACF;AAED,UAAU,gCAAgC;IACxC,UAAU,EAAE,0CAA0C,CAAA;CACvD;AAED,UAAU,0CAA0C;IAClD,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;CACjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/responses/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/responses/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAA;AAErB,cAAc,kBAAkB,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export default class Permission {
|
|
2
|
-
readonly name: string;
|
|
3
|
-
readonly description: string;
|
|
4
|
-
readonly inheritedPermissions: Permission[];
|
|
5
|
-
constructor(name: string, description: string, inheritedPermissions?: Permission[]);
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=Permission.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Permission.d.ts","sourceRoot":"","sources":["../../src/types/Permission.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,UAAU;IAC7B,SAAgB,IAAI,EAAE,MAAM,CAAA;IAE5B,SAAgB,WAAW,EAAE,MAAM,CAAA;IAEnC,SAAgB,oBAAoB,EAAE,UAAU,EAAE,CAAK;gBAEpC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,oBAAoB,GAAE,UAAU,EAAO;CAK9F"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Utility class for working with Star Wars Combine timestamps. Represents Combine Galactic Time and can convert unix timestamps and Date objects to/from CGT.
|
|
3
|
-
*/
|
|
4
|
-
export default class SwcTimestamp {
|
|
5
|
-
year: number;
|
|
6
|
-
day: number;
|
|
7
|
-
hour: number;
|
|
8
|
-
minute: number;
|
|
9
|
-
second: number;
|
|
10
|
-
private static swcStart;
|
|
11
|
-
/**
|
|
12
|
-
* Create a new SwcTimestamp object for a specific moment in Combine Galactic Time.
|
|
13
|
-
*/
|
|
14
|
-
constructor(year: number, day: number, hour?: number, minute?: number, second?: number);
|
|
15
|
-
/**
|
|
16
|
-
* Convert a unix timestamp to Combine Galactic Time.
|
|
17
|
-
* @param unixTimestamp timestamp to convert. Can be either seconds or milliseconds, the code will detect which units to use.
|
|
18
|
-
*/
|
|
19
|
-
static fromUnixTimestamp(unixTimestamp: number): SwcTimestamp;
|
|
20
|
-
/** convert a Date object into Combine Galactic Time. */
|
|
21
|
-
static fromDate(date: Date): SwcTimestamp;
|
|
22
|
-
/** Get the current Combine Galactic Time */
|
|
23
|
-
static now(): SwcTimestamp;
|
|
24
|
-
/**
|
|
25
|
-
* Convert the SWC timestamp into a unix timestamp
|
|
26
|
-
* @param unit whether the unix timestamp should be in seconds or milliseconds.
|
|
27
|
-
*/
|
|
28
|
-
toUnixTimestamp(unit: 'seconds' | 'milliseconds'): number;
|
|
29
|
-
/** Convert the SWC timestamp into a Date object */
|
|
30
|
-
toDate(): Date;
|
|
31
|
-
private static calculateSwcTimestampFromMillisecondsSinceStart;
|
|
32
|
-
private calculateMillisecondsSinceStartFromSwcTimestamp;
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=SwcTimestamp.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SwcTimestamp.d.ts","sourceRoot":"","sources":["../../src/types/SwcTimestamp.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,YAAY;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IAEd,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAiC;IAExD;;OAEG;gBACS,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,MAAU,EAAE,MAAM,GAAE,MAAU,EAAE,MAAM,GAAE,MAAU;IAQ/F;;;OAGG;IACH,MAAM,CAAC,iBAAiB,CAAC,aAAa,EAAE,MAAM,GAAG,YAAY;IAO7D,wDAAwD;IACxD,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY;IAIzC,4CAA4C;IAC5C,MAAM,CAAC,GAAG,IAAI,YAAY;IAI1B;;;OAGG;IACH,eAAe,CAAC,IAAI,EAAE,SAAS,GAAG,cAAc,GAAG,MAAM;IAMzD,mDAAmD;IACnD,MAAM,IAAI,IAAI;IAId,OAAO,CAAC,MAAM,CAAC,+CAA+C;IAuB9D,OAAO,CAAC,+CAA+C;CAgBxD"}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA"}
|