swcombine.js 0.0.10 → 0.1.0
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/LICENSE +5 -17
- package/README.md +668 -97
- package/dist/index.d.ts +5 -510
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +23 -0
- package/dist/src/auth/index.d.ts +8 -0
- package/dist/src/auth/index.d.ts.map +1 -0
- package/dist/src/auth/oauth-manager.d.ts +168 -0
- package/dist/src/auth/oauth-manager.d.ts.map +1 -0
- package/dist/src/auth/oauth.d.ts +101 -0
- package/dist/src/auth/oauth.d.ts.map +1 -0
- package/dist/src/auth/scopes.d.ts +61 -0
- package/dist/src/auth/scopes.d.ts.map +1 -0
- package/dist/src/auth/types.d.ts +118 -0
- package/dist/src/auth/types.d.ts.map +1 -0
- package/dist/src/client/base-resource.d.ts +33 -0
- package/dist/src/client/base-resource.d.ts.map +1 -0
- package/dist/src/client/client.d.ts +85 -0
- package/dist/src/client/client.d.ts.map +1 -0
- package/dist/src/client/errors.d.ts +63 -0
- package/dist/src/client/errors.d.ts.map +1 -0
- package/dist/src/client/http-client.d.ts +35 -0
- package/dist/src/client/http-client.d.ts.map +1 -0
- package/dist/src/client/index.d.ts +15 -0
- package/dist/src/client/index.d.ts.map +1 -0
- package/dist/src/client/rate-limit.d.ts +12 -0
- package/dist/src/client/rate-limit.d.ts.map +1 -0
- package/dist/src/client/resources/api.d.ts +42 -0
- package/dist/src/client/resources/api.d.ts.map +1 -0
- package/dist/src/client/resources/character.d.ts +98 -0
- package/dist/src/client/resources/character.d.ts.map +1 -0
- package/dist/src/client/resources/faction.d.ts +70 -0
- package/dist/src/client/resources/faction.d.ts.map +1 -0
- package/dist/src/client/resources/index.d.ts +8 -0
- package/dist/src/client/resources/index.d.ts.map +1 -0
- package/dist/src/client/resources/inventory.d.ts +205 -0
- package/dist/src/client/resources/inventory.d.ts.map +1 -0
- package/dist/src/client/types.d.ts +78 -0
- package/dist/src/client/types.d.ts.map +1 -0
- package/dist/src/index.d.ts +11 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/utils/index.d.ts +6 -0
- package/dist/src/utils/index.d.ts.map +1 -0
- package/dist/src/utils/timestamp.d.ts +188 -0
- package/dist/src/utils/timestamp.d.ts.map +1 -0
- package/dist/src/utils/types.d.ts +42 -0
- package/dist/src/utils/types.d.ts.map +1 -0
- package/package.json +35 -55
- package/dist/index.cjs.js +0 -704
- package/dist/index.esm.js +0 -704
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/client/errors.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD;;GAEG;AACH,qBAAa,QAAS,SAAQ,KAAK;aAGN,KAAK,CAAC,EAAE,KAAK;gBADtC,OAAO,EAAE,MAAM,EACU,KAAK,CAAC,EAAE,KAAK,YAAA;CASzC;AAED;;GAEG;AACH,qBAAa,YAAa,SAAQ,QAAQ;gBAC5B,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK;CAI3C;AAED;;GAEG;AACH,qBAAa,QAAS,SAAQ,QAAQ;aAGlB,UAAU,EAAE,MAAM;aAClB,QAAQ,CAAC,EAAE,GAAG;gBAF9B,OAAO,EAAE,MAAM,EACC,UAAU,EAAE,MAAM,EAClB,QAAQ,CAAC,EAAE,GAAG,YAAA;CAKjC;AAED;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,QAAQ;gBACnC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,GAAG;CAI5C;AAED;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,QAAQ;gBAClC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,GAAG;CAI5C;AAED;;GAEG;AACH,qBAAa,eAAgB,SAAQ,QAAQ;gBAC/B,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,GAAG;CAI5C;AAED;;GAEG;AACH,qBAAa,cAAe,SAAQ,QAAQ;aAGxB,SAAS,EAAE,aAAa;gBADxC,OAAO,EAAE,MAAM,EACC,SAAS,EAAE,aAAa,EACxC,QAAQ,CAAC,EAAE,GAAG;CAKjB;AAED;;GAEG;AACH,qBAAa,aAAc,SAAQ,QAAQ;gBAC7B,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,GAAG;CAI5C;AAED;;GAEG;AACH,qBAAa,WAAY,SAAQ,QAAQ;gBAC3B,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,GAAG;CAIhE"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Low-level HTTP client for making authenticated API requests
|
|
3
|
+
*/
|
|
4
|
+
import type { OAuthManager } from "../auth/oauth-manager.ts";
|
|
5
|
+
import type { RequestConfig, SWCResponse } from "./types.ts";
|
|
6
|
+
export declare class HttpClient {
|
|
7
|
+
private readonly auth;
|
|
8
|
+
private readonly baseUrl;
|
|
9
|
+
constructor(auth: OAuthManager | string, baseUrl: string);
|
|
10
|
+
/**
|
|
11
|
+
* Make an authenticated HTTP request
|
|
12
|
+
*/
|
|
13
|
+
request(config: RequestConfig): Promise<SWCResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* Build full URL with query parameters
|
|
16
|
+
*/
|
|
17
|
+
private buildUrl;
|
|
18
|
+
/**
|
|
19
|
+
* Fetch with optional timeout
|
|
20
|
+
*/
|
|
21
|
+
private fetchWithTimeout;
|
|
22
|
+
/**
|
|
23
|
+
* Handle response and convert to SWCResponse or throw error
|
|
24
|
+
*/
|
|
25
|
+
private handleResponse;
|
|
26
|
+
/**
|
|
27
|
+
* Parse response body as JSON, or return text if parsing fails
|
|
28
|
+
*/
|
|
29
|
+
private parseResponseBody;
|
|
30
|
+
/**
|
|
31
|
+
* Extract error message from response data
|
|
32
|
+
*/
|
|
33
|
+
private extractErrorMessage;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=http-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-client.d.ts","sourceRoot":"","sources":["../../../src/client/http-client.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAkB,WAAW,EAAE,MAAM,YAAY,CAAC;AAa7E,qBAAa,UAAU;IAEnB,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,OAAO;gBADP,IAAI,EAAE,YAAY,GAAG,MAAM,EAC3B,OAAO,EAAE,MAAM;IAGlC;;OAEG;IACG,OAAO,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC;IA8C1D;;OAEG;IACH,OAAO,CAAC,QAAQ;IAyBhB;;OAEG;YACW,gBAAgB;IAuB9B;;OAEG;YACW,cAAc;IA+D5B;;OAEG;YACW,iBAAiB;IAe/B;;OAEG;IACH,OAAO,CAAC,mBAAmB;CAW5B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SWC API Client module
|
|
3
|
+
*
|
|
4
|
+
* Provides HTTP client for accessing the Star Wars Combine API
|
|
5
|
+
*/
|
|
6
|
+
export { SWCClient } from "./client.ts";
|
|
7
|
+
export type { SWCClientConfig } from "./client.ts";
|
|
8
|
+
export { SWCError, NetworkError, APIError, AuthenticationError, AuthorizationError, ValidationError, RateLimitError, NotFoundError, ServerError, } from "./errors.ts";
|
|
9
|
+
export type { RateLimitInfo, RequestOptions, SWCResponse, HttpMethod, RequestConfig, EntityType, AssignmentType, InventoryFilters, } from "./types.ts";
|
|
10
|
+
export { ApiResource, CharacterResource, FactionResource, InventoryResource, } from "./resources/index.ts";
|
|
11
|
+
export type { CharacterCreditTransfer, CharacterMessageSend, CharacterPrivilegeUpdate, } from "./resources/character.ts";
|
|
12
|
+
export type { FactionCreditTransfer } from "./resources/faction.ts";
|
|
13
|
+
export type { InventoryListOptions } from "./resources/inventory.ts";
|
|
14
|
+
export { parseRateLimitHeaders } from "./rate-limit.ts";
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGnD,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,aAAa,EACb,WAAW,GACZ,MAAM,aAAa,CAAC;AAGrB,YAAY,EACV,aAAa,EACb,cAAc,EACd,WAAW,EACX,UAAU,EACV,aAAa,EACb,UAAU,EACV,cAAc,EACd,gBAAgB,GACjB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAG9B,YAAY,EACV,uBAAuB,EACvB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AACpE,YAAY,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAGrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rate limit parsing and tracking utilities
|
|
3
|
+
*/
|
|
4
|
+
import type { RateLimitInfo } from "./types.ts";
|
|
5
|
+
/**
|
|
6
|
+
* Parse rate limit information from response headers
|
|
7
|
+
*
|
|
8
|
+
* @param headers - Response headers from fetch
|
|
9
|
+
* @returns RateLimitInfo object or null if headers not present
|
|
10
|
+
*/
|
|
11
|
+
export declare function parseRateLimitHeaders(headers: Headers): RateLimitInfo | null;
|
|
12
|
+
//# sourceMappingURL=rate-limit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rate-limit.d.ts","sourceRoot":"","sources":["../../../src/client/rate-limit.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAahD;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,OAAO,GACf,aAAa,GAAG,IAAI,CA4CtB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* API utility endpoints resource
|
|
3
|
+
*/
|
|
4
|
+
import { BaseResource } from "../base-resource.ts";
|
|
5
|
+
import type { RequestOptions } from "../types.ts";
|
|
6
|
+
/**
|
|
7
|
+
* Api resource for utility endpoints
|
|
8
|
+
*/
|
|
9
|
+
export declare class ApiResource extends BaseResource {
|
|
10
|
+
/**
|
|
11
|
+
* Print a HelloWorld message (no authentication required)
|
|
12
|
+
*
|
|
13
|
+
* @see https://www.swcombine.com/ws/v2.0/api/helloworld
|
|
14
|
+
*/
|
|
15
|
+
helloWorld(options?: RequestOptions): Promise<any>;
|
|
16
|
+
/**
|
|
17
|
+
* Print a HelloWorld message for authenticated clients
|
|
18
|
+
* Requires: character_read permission
|
|
19
|
+
*
|
|
20
|
+
* @see https://www.swcombine.com/ws/v2.0/api/helloauth
|
|
21
|
+
*/
|
|
22
|
+
helloAuth(options?: RequestOptions): Promise<any>;
|
|
23
|
+
/**
|
|
24
|
+
* Get list of available OAuth permissions/scopes
|
|
25
|
+
*
|
|
26
|
+
* @see https://www.swcombine.com/ws/v2.0/api/permissions
|
|
27
|
+
*/
|
|
28
|
+
permissions(options?: RequestOptions): Promise<any>;
|
|
29
|
+
/**
|
|
30
|
+
* Get current rate limit status
|
|
31
|
+
*
|
|
32
|
+
* @see https://www.swcombine.com/ws/v2.0/api/ratelimits
|
|
33
|
+
*/
|
|
34
|
+
rateLimits(options?: RequestOptions): Promise<any>;
|
|
35
|
+
/**
|
|
36
|
+
* Get current server time
|
|
37
|
+
*
|
|
38
|
+
* @see https://www.swcombine.com/ws/v2.0/api/time
|
|
39
|
+
*/
|
|
40
|
+
time(options?: RequestOptions): Promise<any>;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/client/resources/api.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD;;GAEG;AACH,qBAAa,WAAY,SAAQ,YAAY;IAC3C;;;;OAIG;IACG,UAAU,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC;IAIxD;;;;;OAKG;IACG,SAAS,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC;IAIvD;;;;OAIG;IACG,WAAW,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC;IAIzD;;;;OAIG;IACG,UAAU,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC;IAIxD;;;;OAIG;IACG,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC;CAGnD"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Character resource
|
|
3
|
+
*/
|
|
4
|
+
import { BaseResource } from "../base-resource.ts";
|
|
5
|
+
import type { RequestOptions } from "../types.ts";
|
|
6
|
+
/**
|
|
7
|
+
* Credit transfer parameters for POST /character/credits
|
|
8
|
+
*/
|
|
9
|
+
export interface CharacterCreditTransfer {
|
|
10
|
+
/** The character or faction name receiving credits */
|
|
11
|
+
recipient: string;
|
|
12
|
+
/** The credit quantity to transfer */
|
|
13
|
+
amount: number;
|
|
14
|
+
/** The reason for the transfer (optional) */
|
|
15
|
+
reason?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Message send parameters for PUT /character/messages
|
|
19
|
+
*/
|
|
20
|
+
export interface CharacterMessageSend {
|
|
21
|
+
/** Semi-colon separated list of receiver handles (max 25) */
|
|
22
|
+
receivers: string;
|
|
23
|
+
/** Text of the message */
|
|
24
|
+
communication: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Privilege grant/revoke parameters for POST /character/privilege
|
|
28
|
+
*/
|
|
29
|
+
export interface CharacterPrivilegeUpdate {
|
|
30
|
+
/** Flags that the privilege should be revoked instead of granted (optional) */
|
|
31
|
+
revoke?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Character resource for accessing character data
|
|
35
|
+
*/
|
|
36
|
+
export declare class CharacterResource extends BaseResource {
|
|
37
|
+
/**
|
|
38
|
+
* Nested resource for character credit log
|
|
39
|
+
*/
|
|
40
|
+
readonly creditlog: {
|
|
41
|
+
get: (options?: RequestOptions) => Promise<any>;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Nested resource for character permissions
|
|
45
|
+
*/
|
|
46
|
+
readonly permissions: {
|
|
47
|
+
get: (options?: RequestOptions) => Promise<any>;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Nested resource for character skills
|
|
51
|
+
*/
|
|
52
|
+
readonly skills: {
|
|
53
|
+
get: (options?: RequestOptions) => Promise<any>;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Nested resource for character privileges
|
|
57
|
+
*/
|
|
58
|
+
readonly privileges: {
|
|
59
|
+
get: (options?: RequestOptions) => Promise<any>;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Nested resource for a specific privilege
|
|
63
|
+
*/
|
|
64
|
+
readonly privilege: {
|
|
65
|
+
get: (id: string, options?: RequestOptions) => Promise<any>;
|
|
66
|
+
post: (id: string, data: CharacterPrivilegeUpdate, options?: RequestOptions) => Promise<any>;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Nested resource for character credits
|
|
70
|
+
*/
|
|
71
|
+
readonly credits: {
|
|
72
|
+
get: (options?: RequestOptions) => Promise<any>;
|
|
73
|
+
post: (data: CharacterCreditTransfer, options?: RequestOptions) => Promise<any>;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Nested resource for character messages
|
|
77
|
+
*/
|
|
78
|
+
readonly messages: {
|
|
79
|
+
get: (id?: string, options?: RequestOptions) => Promise<any>;
|
|
80
|
+
put: (data: CharacterMessageSend, options?: RequestOptions) => Promise<any>;
|
|
81
|
+
delete: (id: string, options?: RequestOptions) => Promise<any>;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* Nested resource for character handle check
|
|
85
|
+
*/
|
|
86
|
+
readonly handlecheck: {
|
|
87
|
+
get: (handle: string, options?: RequestOptions) => Promise<any>;
|
|
88
|
+
};
|
|
89
|
+
constructor(client: any);
|
|
90
|
+
/**
|
|
91
|
+
* Get basic character information
|
|
92
|
+
* Requires: character_read permission
|
|
93
|
+
*
|
|
94
|
+
* @see https://www.swcombine.com/ws/v2.0/character
|
|
95
|
+
*/
|
|
96
|
+
get(options?: RequestOptions): Promise<any>;
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=character.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"character.d.ts","sourceRoot":"","sources":["../../../../src/client/resources/character.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,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9B,OAAO,CAAC,EAAE,cAAc,KACrB,OAAO,CAAC,GAAG,CAAC,CAAC;KACnB,CAAC;IAEF;;OAEG;IACH,SAAgB,OAAO,EAAE;QACvB,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,cAAc,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;QAChD,IAAI,EAAE,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,KACrB,OAAO,CAAC,GAAG,CAAC,CAAC;KACnB,CAAC;IAEF;;OAEG;IACH,SAAgB,QAAQ,EAAE;QACxB,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;QAC7D,GAAG,EAAE,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;QAC5E,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;KAChE,CAAC;IAEF;;OAEG;IACH,SAAgB,WAAW,EAAE;QAC3B,GAAG,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;KACjE,CAAC;gBAEU,MAAM,EAAE,GAAG;IAmFvB;;;;;OAKG;IACG,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC;CAGlD"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Faction resource
|
|
3
|
+
*/
|
|
4
|
+
import { BaseResource } from "../base-resource.ts";
|
|
5
|
+
import type { RequestOptions } from "../types.ts";
|
|
6
|
+
/**
|
|
7
|
+
* Credit transfer parameters for POST /faction/credits
|
|
8
|
+
*/
|
|
9
|
+
export interface FactionCreditTransfer {
|
|
10
|
+
/** The character or faction name receiving credits */
|
|
11
|
+
recipient: string;
|
|
12
|
+
/** The credit quantity to transfer */
|
|
13
|
+
amount: number;
|
|
14
|
+
/** The UID identifying which budget to draw from (optional) */
|
|
15
|
+
budget?: string;
|
|
16
|
+
/** The reason for the transfer (optional) */
|
|
17
|
+
reason?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Faction resource for accessing faction data
|
|
21
|
+
*/
|
|
22
|
+
export declare class FactionResource extends BaseResource {
|
|
23
|
+
/**
|
|
24
|
+
* Nested resource for faction budgets
|
|
25
|
+
*/
|
|
26
|
+
readonly budgets: {
|
|
27
|
+
get: (options?: RequestOptions) => Promise<any>;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Nested resource for a specific faction budget
|
|
31
|
+
*/
|
|
32
|
+
readonly budget: {
|
|
33
|
+
get: (id: string, options?: RequestOptions) => Promise<any>;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Nested resource for faction credit log
|
|
37
|
+
*/
|
|
38
|
+
readonly creditlog: {
|
|
39
|
+
get: (options?: RequestOptions) => Promise<any>;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Nested resource for faction members
|
|
43
|
+
*/
|
|
44
|
+
readonly members: {
|
|
45
|
+
get: (options?: RequestOptions) => Promise<any>;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Nested resource for faction stockholders
|
|
49
|
+
*/
|
|
50
|
+
readonly stockholders: {
|
|
51
|
+
get: (options?: RequestOptions) => Promise<any>;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Nested resource for faction credits
|
|
55
|
+
*/
|
|
56
|
+
readonly credits: {
|
|
57
|
+
get: (options?: RequestOptions) => Promise<any>;
|
|
58
|
+
post: (data: FactionCreditTransfer, options?: RequestOptions) => Promise<any>;
|
|
59
|
+
};
|
|
60
|
+
constructor(client: any);
|
|
61
|
+
/**
|
|
62
|
+
* Get faction information
|
|
63
|
+
* Requires: faction_read permission
|
|
64
|
+
*
|
|
65
|
+
* @param id - Optional faction ID. If not provided, returns your faction
|
|
66
|
+
* @see https://www.swcombine.com/ws/v2.0/faction
|
|
67
|
+
*/
|
|
68
|
+
get(id?: string, options?: RequestOptions): Promise<any>;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=faction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"faction.d.ts","sourceRoot":"","sources":["../../../../src/client/resources/faction.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,sDAAsD;IACtD,SAAS,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,+DAA+D;IAC/D,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,qBAAa,eAAgB,SAAQ,YAAY;IAC/C;;OAEG;IACH,SAAgB,OAAO,EAAE;QACvB,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,cAAc,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;KACjD,CAAC;IAEF;;OAEG;IACH,SAAgB,MAAM,EAAE;QACtB,GAAG,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;KAC7D,CAAC;IAEF;;OAEG;IACH,SAAgB,SAAS,EAAE;QACzB,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,cAAc,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;KACjD,CAAC;IAEF;;OAEG;IACH,SAAgB,OAAO,EAAE;QACvB,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,cAAc,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;KACjD,CAAC;IAEF;;OAEG;IACH,SAAgB,YAAY,EAAE;QAC5B,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,cAAc,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;KACjD,CAAC;IAEF;;OAEG;IACH,SAAgB,OAAO,EAAE;QACvB,GAAG,EAAE,CAAC,OAAO,CAAC,EAAE,cAAc,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;QAChD,IAAI,EAAE,CACJ,IAAI,EAAE,qBAAqB,EAC3B,OAAO,CAAC,EAAE,cAAc,KACrB,OAAO,CAAC,GAAG,CAAC,CAAC;KACnB,CAAC;gBAEU,MAAM,EAAE,GAAG;IAqDvB;;;;;;OAMG;IACG,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC;CAI/D"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Export all resource classes
|
|
3
|
+
*/
|
|
4
|
+
export { ApiResource } from "./api.ts";
|
|
5
|
+
export { CharacterResource } from "./character.ts";
|
|
6
|
+
export { FactionResource } from "./faction.ts";
|
|
7
|
+
export { InventoryResource } from "./inventory.ts";
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/resources/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Inventory resource
|
|
3
|
+
*/
|
|
4
|
+
import { BaseResource } from "../base-resource.ts";
|
|
5
|
+
import type { RequestOptions, AssignmentType, InventoryFilters } from "../types.ts";
|
|
6
|
+
/**
|
|
7
|
+
* Options for inventory entity list queries
|
|
8
|
+
*/
|
|
9
|
+
export interface InventoryListOptions extends RequestOptions {
|
|
10
|
+
/** Filters to apply to the inventory query */
|
|
11
|
+
filters?: InventoryFilters;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Inventory resource for accessing inventory data
|
|
15
|
+
*/
|
|
16
|
+
export declare class InventoryResource extends BaseResource {
|
|
17
|
+
readonly ships: {
|
|
18
|
+
get: (uid: string, assignType?: AssignmentType, options?: InventoryListOptions) => Promise<any>;
|
|
19
|
+
};
|
|
20
|
+
readonly vehicles: {
|
|
21
|
+
get: (uid: string, assignType?: AssignmentType, options?: InventoryListOptions) => Promise<any>;
|
|
22
|
+
};
|
|
23
|
+
readonly stations: {
|
|
24
|
+
get: (uid: string, assignType?: AssignmentType, options?: InventoryListOptions) => Promise<any>;
|
|
25
|
+
};
|
|
26
|
+
readonly cities: {
|
|
27
|
+
get: (uid: string, assignType?: AssignmentType, options?: InventoryListOptions) => Promise<any>;
|
|
28
|
+
};
|
|
29
|
+
readonly facilities: {
|
|
30
|
+
get: (uid: string, assignType?: AssignmentType, options?: InventoryListOptions) => Promise<any>;
|
|
31
|
+
};
|
|
32
|
+
readonly planets: {
|
|
33
|
+
get: (uid: string, assignType?: AssignmentType, options?: InventoryListOptions) => Promise<any>;
|
|
34
|
+
};
|
|
35
|
+
readonly items: {
|
|
36
|
+
get: (uid: string, assignType?: AssignmentType, options?: InventoryListOptions) => Promise<any>;
|
|
37
|
+
};
|
|
38
|
+
readonly npcs: {
|
|
39
|
+
get: (uid: string, assignType?: AssignmentType, options?: InventoryListOptions) => Promise<any>;
|
|
40
|
+
};
|
|
41
|
+
readonly droids: {
|
|
42
|
+
get: (uid: string, assignType?: AssignmentType, options?: InventoryListOptions) => Promise<any>;
|
|
43
|
+
};
|
|
44
|
+
readonly creatures: {
|
|
45
|
+
get: (uid: string, assignType?: AssignmentType, options?: InventoryListOptions) => Promise<any>;
|
|
46
|
+
};
|
|
47
|
+
readonly materials: {
|
|
48
|
+
get: (uid: string, assignType?: AssignmentType, options?: InventoryListOptions) => Promise<any>;
|
|
49
|
+
};
|
|
50
|
+
readonly entity: {
|
|
51
|
+
ships: {
|
|
52
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
53
|
+
properties: {
|
|
54
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
55
|
+
post: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
56
|
+
};
|
|
57
|
+
tags: {
|
|
58
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
59
|
+
post: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
60
|
+
delete: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
vehicles: {
|
|
64
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
65
|
+
properties: {
|
|
66
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
67
|
+
post: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
68
|
+
};
|
|
69
|
+
tags: {
|
|
70
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
71
|
+
post: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
72
|
+
delete: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
stations: {
|
|
76
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
77
|
+
properties: {
|
|
78
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
79
|
+
post: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
80
|
+
};
|
|
81
|
+
tags: {
|
|
82
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
83
|
+
post: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
84
|
+
delete: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
cities: {
|
|
88
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
89
|
+
properties: {
|
|
90
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
91
|
+
post: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
92
|
+
};
|
|
93
|
+
tags: {
|
|
94
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
95
|
+
post: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
96
|
+
delete: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
facilities: {
|
|
100
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
101
|
+
properties: {
|
|
102
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
103
|
+
post: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
104
|
+
};
|
|
105
|
+
tags: {
|
|
106
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
107
|
+
post: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
108
|
+
delete: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
planets: {
|
|
112
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
113
|
+
properties: {
|
|
114
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
115
|
+
post: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
116
|
+
};
|
|
117
|
+
tags: {
|
|
118
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
119
|
+
post: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
120
|
+
delete: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
items: {
|
|
124
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
125
|
+
properties: {
|
|
126
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
127
|
+
post: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
128
|
+
};
|
|
129
|
+
tags: {
|
|
130
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
131
|
+
post: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
132
|
+
delete: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
npcs: {
|
|
136
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
137
|
+
properties: {
|
|
138
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
139
|
+
post: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
140
|
+
};
|
|
141
|
+
tags: {
|
|
142
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
143
|
+
post: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
144
|
+
delete: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
droids: {
|
|
148
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
149
|
+
properties: {
|
|
150
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
151
|
+
post: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
152
|
+
};
|
|
153
|
+
tags: {
|
|
154
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
155
|
+
post: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
156
|
+
delete: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
creatures: {
|
|
160
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
161
|
+
properties: {
|
|
162
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
163
|
+
post: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
164
|
+
};
|
|
165
|
+
tags: {
|
|
166
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
167
|
+
post: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
168
|
+
delete: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
materials: {
|
|
172
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
173
|
+
properties: {
|
|
174
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
175
|
+
post: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
176
|
+
};
|
|
177
|
+
tags: {
|
|
178
|
+
get: (entityUid: string, options?: RequestOptions) => Promise<any>;
|
|
179
|
+
post: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
180
|
+
delete: (entityUid: string, data: any, options?: RequestOptions) => Promise<any>;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
constructor(client: any);
|
|
185
|
+
/**
|
|
186
|
+
* Get inventory overview for a character or faction
|
|
187
|
+
* Requires: appropriate inventory permissions
|
|
188
|
+
*
|
|
189
|
+
* @param uid - Character or faction UID
|
|
190
|
+
* @param options - Request options
|
|
191
|
+
* @see https://www.swcombine.com/ws/v2.0/inventory/:uid
|
|
192
|
+
*/
|
|
193
|
+
get(uid: string, options?: RequestOptions): Promise<any>;
|
|
194
|
+
/**
|
|
195
|
+
* Build filter query parameters from InventoryFilters
|
|
196
|
+
*
|
|
197
|
+
* NOTE: Currently, the SDK only supports filtering based on tags.
|
|
198
|
+
* Other filter types may be added in future API versions.
|
|
199
|
+
*
|
|
200
|
+
* @param filters - Filter configuration
|
|
201
|
+
* @returns Query parameter object
|
|
202
|
+
*/
|
|
203
|
+
private buildFilterQuery;
|
|
204
|
+
}
|
|
205
|
+
//# sourceMappingURL=inventory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inventory.d.ts","sourceRoot":"","sources":["../../../../src/client/resources/inventory.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,EACV,cAAc,EAEd,cAAc,EACd,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAErB;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC1D,8CAA8C;IAC9C,OAAO,CAAC,EAAE,gBAAgB,CAAC;CAC5B;AAED;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,YAAY;IAEjD,SAAgB,KAAK,EAAE;QACrB,GAAG,EAAE,CACH,GAAG,EAAE,MAAM,EACX,UAAU,CAAC,EAAE,cAAc,EAC3B,OAAO,CAAC,EAAE,oBAAoB,KAC3B,OAAO,CAAC,GAAG,CAAC,CAAC;KACnB,CAAC;IAEF,SAAgB,QAAQ,EAAE;QACxB,GAAG,EAAE,CACH,GAAG,EAAE,MAAM,EACX,UAAU,CAAC,EAAE,cAAc,EAC3B,OAAO,CAAC,EAAE,oBAAoB,KAC3B,OAAO,CAAC,GAAG,CAAC,CAAC;KACnB,CAAC;IAEF,SAAgB,QAAQ,EAAE;QACxB,GAAG,EAAE,CACH,GAAG,EAAE,MAAM,EACX,UAAU,CAAC,EAAE,cAAc,EAC3B,OAAO,CAAC,EAAE,oBAAoB,KAC3B,OAAO,CAAC,GAAG,CAAC,CAAC;KACnB,CAAC;IAEF,SAAg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E,cAAc,KACrB,OAAO,CAAC,GAAG,CAAC,CAAC;aACnB,CAAC;YACF,IAAI,EAAE;gBACJ,GAAG,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;gBACnE,IAAI,EAAE,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,GAAG,EACT,OAAO,CAAC,EAAE,cAAc,KACrB,OAAO,CAAC,GAAG,CAAC,CAAC;gBAClB,MAAM,EAAE,CACN,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,GAAG,EACT,OAAO,CAAC,EAAE,cAAc,KACrB,OAAO,CAAC,GAAG,CAAC,CAAC;aACnB,CAAC;SACH,CAAC;KACH,CAAC;gBAEU,MAAM,EAAE,GAAG;IAgIvB;;;;;;;OAOG;IACG,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC;IAI9D;;;;;;;;OAQG;IACH,OAAO,CAAC,gBAAgB;CA2CzB"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client types and interfaces
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Rate limit information from API response headers
|
|
6
|
+
*/
|
|
7
|
+
export interface RateLimitInfo {
|
|
8
|
+
/** Maximum number of requests allowed in the current window */
|
|
9
|
+
limit: number;
|
|
10
|
+
/** Number of requests remaining in the current window */
|
|
11
|
+
remaining: number;
|
|
12
|
+
/** Timestamp when the rate limit resets */
|
|
13
|
+
reset: Date;
|
|
14
|
+
/** Seconds until the rate limit resets */
|
|
15
|
+
resetAfter?: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Options for configuring individual requests
|
|
19
|
+
*/
|
|
20
|
+
export interface RequestOptions {
|
|
21
|
+
/** Additional headers to include in the request */
|
|
22
|
+
headers?: Record<string, string>;
|
|
23
|
+
/** Request timeout in milliseconds */
|
|
24
|
+
timeout?: number;
|
|
25
|
+
/** AbortSignal for request cancellation */
|
|
26
|
+
signal?: AbortSignal;
|
|
27
|
+
/** Query parameters to append to the URL (supports arrays for multiple values) */
|
|
28
|
+
query?: Record<string, string | number | boolean | string[]>;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Response wrapper with metadata
|
|
32
|
+
*/
|
|
33
|
+
export interface SWCResponse<T = any> {
|
|
34
|
+
/** Response data */
|
|
35
|
+
data: T;
|
|
36
|
+
/** HTTP status code */
|
|
37
|
+
status: number;
|
|
38
|
+
/** Response headers */
|
|
39
|
+
headers: Headers;
|
|
40
|
+
/** Rate limit information if available */
|
|
41
|
+
rateLimit: RateLimitInfo | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* HTTP method types
|
|
45
|
+
*/
|
|
46
|
+
export type HttpMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
47
|
+
/**
|
|
48
|
+
* Internal request configuration
|
|
49
|
+
*/
|
|
50
|
+
export interface RequestConfig {
|
|
51
|
+
method: HttpMethod;
|
|
52
|
+
endpoint: string;
|
|
53
|
+
body?: any;
|
|
54
|
+
options?: RequestOptions;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Entity types available in inventory
|
|
58
|
+
*/
|
|
59
|
+
export type EntityType = "ships" | "vehicles" | "stations" | "cities" | "facilities" | "planets" | "items" | "npcs" | "droids" | "creatures" | "materials";
|
|
60
|
+
/**
|
|
61
|
+
* Assignment types for inventory filtering
|
|
62
|
+
*/
|
|
63
|
+
export type AssignmentType = "owner" | "commander" | "pilot";
|
|
64
|
+
/**
|
|
65
|
+
* Filter configuration for inventory queries
|
|
66
|
+
*
|
|
67
|
+
* NOTE: Currently, the SDK only supports filtering based on tags.
|
|
68
|
+
* Other filter types may be added in future API versions.
|
|
69
|
+
*/
|
|
70
|
+
export interface InventoryFilters {
|
|
71
|
+
/** Filter types to apply (currently only "tags" is supported) */
|
|
72
|
+
filter_type?: string[];
|
|
73
|
+
/** Filter values organized by filter type */
|
|
74
|
+
filter_value?: Record<string, string | string[]>;
|
|
75
|
+
/** Filter inclusion rules (e.g., "includes", "excludes") */
|
|
76
|
+
filter_inclusion?: Record<string, "includes" | "excludes">;
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/client/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,+DAA+D;IAC/D,KAAK,EAAE,MAAM,CAAC;IACd,yDAAyD;IACzD,SAAS,EAAE,MAAM,CAAC;IAClB,2CAA2C;IAC3C,KAAK,EAAE,IAAI,CAAC;IACZ,0CAA0C;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,sCAAsC;IACtC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2CAA2C;IAC3C,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,kFAAkF;IAClF,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,CAAC,CAAC;CAC9D;AAED;;GAEG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,GAAG;IAClC,oBAAoB;IACpB,IAAI,EAAE,CAAC,CAAC;IACR,uBAAuB;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,uBAAuB;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,0CAA0C;IAC1C,SAAS,EAAE,aAAa,GAAG,IAAI,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CAAC;AAErE;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,UAAU,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB,OAAO,GACP,UAAU,GACV,UAAU,GACV,QAAQ,GACR,YAAY,GACZ,SAAS,GACT,OAAO,GACP,MAAM,GACN,QAAQ,GACR,WAAW,GACX,WAAW,CAAC;AAEhB;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,WAAW,GAAG,OAAO,CAAC;AAE7D;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,iEAAiE;IACjE,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,6CAA6C;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;IACjD,4DAA4D;IAC5D,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC;CAC5D"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SWC Combine API SDK
|
|
3
|
+
*
|
|
4
|
+
* TypeScript SDK for interacting with the Star Wars Combine API
|
|
5
|
+
* @see https://www.swcombine.com/ws
|
|
6
|
+
*/
|
|
7
|
+
export * from "./auth/index.ts";
|
|
8
|
+
export * from "./client/index.ts";
|
|
9
|
+
export * from "./utils/index.ts";
|
|
10
|
+
export declare const VERSION = "0.1.0";
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,cAAc,iBAAiB,CAAC;AAGhC,cAAc,mBAAmB,CAAC;AAGlC,cAAc,kBAAkB,CAAC;AAGjC,eAAO,MAAM,OAAO,UAAU,CAAC"}
|