@taskeren/bungie-api-ts 5.10.1 → 5.10.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/{lib/app → app}/interfaces.d.ts +20 -17
- package/{lib/app → app}/interfaces.js +3 -3
- package/common.d.ts +981 -0
- package/{lib/common.js → common.js} +2 -2
- package/{lib/content → content}/interfaces.d.ts +19 -17
- package/{lib/content → content}/interfaces.js +1 -1
- package/{lib/core → core}/interfaces.d.ts +12 -10
- package/{lib/core → core}/interfaces.js +2 -2
- package/{lib/destiny2 → destiny2}/interfaces.d.ts +1170 -1003
- package/{lib/destiny2 → destiny2}/interfaces.js +109 -102
- package/{lib/fireteam → fireteam}/interfaces.d.ts +40 -33
- package/{lib/fireteam → fireteam}/interfaces.js +5 -5
- package/{lib/forum → forum}/interfaces.d.ts +75 -61
- package/{lib/forum → forum}/interfaces.js +9 -9
- package/{lib/groupv2 → groupv2}/interfaces.d.ts +122 -100
- package/{lib/groupv2 → groupv2}/interfaces.js +16 -16
- package/package.json +66 -27
- package/{lib/platform.d.ts → platform.d.ts} +10 -9
- package/{lib/platform.js → platform.js} +1 -1
- package/{lib/social → social}/interfaces.d.ts +28 -22
- package/{lib/social → social}/interfaces.js +4 -4
- package/{lib/tokens → tokens}/interfaces.d.ts +6 -5
- package/{lib/tokens → tokens}/interfaces.js +1 -1
- package/{lib/trending → trending}/interfaces.d.ts +15 -14
- package/{lib/trending → trending}/interfaces.js +1 -1
- package/{lib/user → user}/interfaces.d.ts +30 -28
- package/{lib/user → user}/interfaces.js +2 -2
- package/.babelrc +0 -4
- package/.gitattributes +0 -2
- package/.github/workflows/pr-build.yml +0 -50
- package/.github/workflows/publish.yml +0 -48
- package/.github/workflows/update.yml +0 -55
- package/.gitmodules +0 -3
- package/.nvmrc +0 -1
- package/.prettierrc +0 -10
- package/.vscode/extensions.json +0 -8
- package/.vscode/settings.json +0 -7
- package/LICENSE.md +0 -21
- package/api-src/.github/workflows/close-inactive.yml +0 -24
- package/api-src/CHANGELOG.md +0 -271
- package/api-src/CONTRIBUTING.md +0 -19
- package/api-src/LICENSE +0 -28
- package/api-src/README.md +0 -378
- package/api-src/openapi-2.json +0 -44518
- package/api-src/openapi.json +0 -46467
- package/build.sh +0 -30
- package/generated-src/app/api.ts +0 -50
- package/generated-src/app/index.ts +0 -17
- package/generated-src/app/interfaces.ts +0 -119
- package/generated-src/common.ts +0 -985
- package/generated-src/communitycontent/api.ts +0 -36
- package/generated-src/communitycontent/index.ts +0 -16
- package/generated-src/content/api.ts +0 -142
- package/generated-src/content/index.ts +0 -17
- package/generated-src/content/interfaces.ts +0 -225
- package/generated-src/core/api.ts +0 -57
- package/generated-src/core/index.ts +0 -17
- package/generated-src/core/interfaces.ts +0 -151
- package/generated-src/destiny2/api.ts +0 -821
- package/generated-src/destiny2/index.ts +0 -17
- package/generated-src/destiny2/interfaces.ts +0 -15714
- package/generated-src/destiny2/manifest.ts +0 -341
- package/generated-src/fireteam/api.ts +0 -151
- package/generated-src/fireteam/index.ts +0 -17
- package/generated-src/fireteam/interfaces.ts +0 -183
- package/generated-src/forum/api.ts +0 -197
- package/generated-src/forum/index.ts +0 -17
- package/generated-src/forum/interfaces.ts +0 -171
- package/generated-src/groupv2/api.ts +0 -515
- package/generated-src/groupv2/index.ts +0 -17
- package/generated-src/groupv2/interfaces.ts +0 -773
- package/generated-src/http.ts +0 -52
- package/generated-src/index.ts +0 -37
- package/generated-src/package.json.notyet +0 -99
- package/generated-src/platform.ts +0 -39
- package/generated-src/social/api.ts +0 -115
- package/generated-src/social/index.ts +0 -17
- package/generated-src/social/interfaces.ts +0 -89
- package/generated-src/tokens/api.ts +0 -126
- package/generated-src/tokens/index.ts +0 -17
- package/generated-src/tokens/interfaces.ts +0 -102
- package/generated-src/trending/api.ts +0 -62
- package/generated-src/trending/index.ts +0 -17
- package/generated-src/trending/interfaces.ts +0 -188
- package/generated-src/user/api.ts +0 -130
- package/generated-src/user/index.ts +0 -17
- package/generated-src/user/interfaces.ts +0 -338
- package/generator/generate-api.ts +0 -254
- package/generator/generate-common.ts +0 -123
- package/generator/generate-index.ts +0 -45
- package/generator/generate-interfaces.ts +0 -173
- package/generator/generate-manifest.ts +0 -217
- package/generator/generate-package-json.ts +0 -45
- package/generator/generate.ts +0 -54
- package/generator/http.ts +0 -52
- package/generator/missing-props.ts +0 -11
- package/generator/type-index.ts +0 -184
- package/generator/util.ts +0 -131
- package/lib/README.md +0 -97
- package/lib/bungie-api-LICENSE +0 -29
- package/lib/common.d.ts +0 -979
- package/lib/package.json +0 -99
- package/test-consumer.ts +0 -5
- package/tests/__snapshots__/config-builders.test.ts.snap +0 -343
- package/tests/config-builders.test.ts +0 -145
- package/tests/manifest-fetcher.test.ts +0 -43
- package/tests/test-manifest.js +0 -69
- package/tsconfig-package.json +0 -14
- package/tsconfig.json +0 -17
- /package/{lib/app → app}/api.d.ts +0 -0
- /package/{lib/app → app}/api.js +0 -0
- /package/{lib/app → app}/index.d.ts +0 -0
- /package/{lib/app → app}/index.js +0 -0
- /package/{lib/communitycontent → communitycontent}/api.d.ts +0 -0
- /package/{lib/communitycontent → communitycontent}/api.js +0 -0
- /package/{lib/communitycontent → communitycontent}/index.d.ts +0 -0
- /package/{lib/communitycontent → communitycontent}/index.js +0 -0
- /package/{lib/content → content}/api.d.ts +0 -0
- /package/{lib/content → content}/api.js +0 -0
- /package/{lib/content → content}/index.d.ts +0 -0
- /package/{lib/content → content}/index.js +0 -0
- /package/{lib/core → core}/api.d.ts +0 -0
- /package/{lib/core → core}/api.js +0 -0
- /package/{lib/core → core}/index.d.ts +0 -0
- /package/{lib/core → core}/index.js +0 -0
- /package/{lib/destiny2 → destiny2}/api.d.ts +0 -0
- /package/{lib/destiny2 → destiny2}/api.js +0 -0
- /package/{lib/destiny2 → destiny2}/index.d.ts +0 -0
- /package/{lib/destiny2 → destiny2}/index.js +0 -0
- /package/{lib/destiny2 → destiny2}/manifest.d.ts +0 -0
- /package/{lib/destiny2 → destiny2}/manifest.js +0 -0
- /package/{lib/fireteam → fireteam}/api.d.ts +0 -0
- /package/{lib/fireteam → fireteam}/api.js +0 -0
- /package/{lib/fireteam → fireteam}/index.d.ts +0 -0
- /package/{lib/fireteam → fireteam}/index.js +0 -0
- /package/{lib/forum → forum}/api.d.ts +0 -0
- /package/{lib/forum → forum}/api.js +0 -0
- /package/{lib/forum → forum}/index.d.ts +0 -0
- /package/{lib/forum → forum}/index.js +0 -0
- /package/{lib/groupv2 → groupv2}/api.d.ts +0 -0
- /package/{lib/groupv2 → groupv2}/api.js +0 -0
- /package/{lib/groupv2 → groupv2}/index.d.ts +0 -0
- /package/{lib/groupv2 → groupv2}/index.js +0 -0
- /package/{lib/http.d.ts → http.d.ts} +0 -0
- /package/{lib/http.js → http.js} +0 -0
- /package/{lib/index.d.ts → index.d.ts} +0 -0
- /package/{lib/index.js → index.js} +0 -0
- /package/{lib/social → social}/api.d.ts +0 -0
- /package/{lib/social → social}/api.js +0 -0
- /package/{lib/social → social}/index.d.ts +0 -0
- /package/{lib/social → social}/index.js +0 -0
- /package/{lib/tokens → tokens}/api.d.ts +0 -0
- /package/{lib/tokens → tokens}/api.js +0 -0
- /package/{lib/tokens → tokens}/index.d.ts +0 -0
- /package/{lib/tokens → tokens}/index.js +0 -0
- /package/{lib/trending → trending}/api.d.ts +0 -0
- /package/{lib/trending → trending}/api.js +0 -0
- /package/{lib/trending → trending}/index.d.ts +0 -0
- /package/{lib/trending → trending}/index.js +0 -0
- /package/{lib/user → user}/api.d.ts +0 -0
- /package/{lib/user → user}/api.js +0 -0
- /package/{lib/user → user}/index.d.ts +0 -0
- /package/{lib/user → user}/index.js +0 -0
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taskeren/bungie-api-ts",
|
|
3
|
-
"version": "5.10.
|
|
3
|
+
"version": "5.10.3",
|
|
4
4
|
"description": "TypeScript mappings for the Bungie.net API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
+
"scripts": {},
|
|
7
8
|
"jest": {
|
|
8
9
|
"preset": "ts-jest/presets/js-with-babel-esm",
|
|
9
10
|
"testEnvironment": "node",
|
|
@@ -30,31 +31,69 @@
|
|
|
30
31
|
"TypeScript"
|
|
31
32
|
],
|
|
32
33
|
"homepage": "https://github.com/DestinyItemManager/bungie-api-ts",
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"@babel/cli": "^7.16.0",
|
|
35
|
-
"@babel/core": "^7.16.0",
|
|
36
|
-
"@babel/preset-env": "^7.16.4",
|
|
37
|
-
"@babel/preset-typescript": "^7.16.0",
|
|
38
|
-
"@types/jest": "^29.2.4",
|
|
39
|
-
"@types/lodash": "^4.14.191",
|
|
40
|
-
"@types/node": "^18.11.13",
|
|
41
|
-
"@types/node-fetch": "^2.6.2",
|
|
42
|
-
"@types/underscore": "^1.11.3",
|
|
43
|
-
"babel-jest": "^29.3.1",
|
|
44
|
-
"jest": "^29.3.1",
|
|
45
|
-
"lodash": "^4.17.21",
|
|
46
|
-
"mkdirp": "^2.1.3",
|
|
47
|
-
"openapi3-ts": "^2.0.1",
|
|
48
|
-
"prettier": "^2.8.1",
|
|
49
|
-
"ts-jest": "^29.0.3",
|
|
50
|
-
"typescript": "^5.7.3"
|
|
51
|
-
},
|
|
34
|
+
"devDependencies": {},
|
|
52
35
|
"packageManager": "pnpm@8.15.9+sha512.499434c9d8fdd1a2794ebf4552b3b25c0a633abcee5bb15e7b5de90f32f47b513aca98cd5cfd001c31f0db454bc3804edccd578501e4ca293a6816166bbd9f81",
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
36
|
+
"main": "./index.js",
|
|
37
|
+
"types": "./index.d.ts",
|
|
38
|
+
"module": "./index.js",
|
|
39
|
+
"exports": {
|
|
40
|
+
".": {
|
|
41
|
+
"default": "./index.js",
|
|
42
|
+
"types": "./index.d.ts"
|
|
43
|
+
},
|
|
44
|
+
"./http": {
|
|
45
|
+
"default": "./http.js",
|
|
46
|
+
"types": "./http.d.ts"
|
|
47
|
+
},
|
|
48
|
+
"./package.json": "./package.json",
|
|
49
|
+
"./app": {
|
|
50
|
+
"default": "./app/index.js",
|
|
51
|
+
"types": "./app/index.d.ts"
|
|
52
|
+
},
|
|
53
|
+
"./user": {
|
|
54
|
+
"default": "./user/index.js",
|
|
55
|
+
"types": "./user/index.d.ts"
|
|
56
|
+
},
|
|
57
|
+
"./content": {
|
|
58
|
+
"default": "./content/index.js",
|
|
59
|
+
"types": "./content/index.d.ts"
|
|
60
|
+
},
|
|
61
|
+
"./forum": {
|
|
62
|
+
"default": "./forum/index.js",
|
|
63
|
+
"types": "./forum/index.d.ts"
|
|
64
|
+
},
|
|
65
|
+
"./groupv2": {
|
|
66
|
+
"default": "./groupv2/index.js",
|
|
67
|
+
"types": "./groupv2/index.d.ts"
|
|
68
|
+
},
|
|
69
|
+
"./tokens": {
|
|
70
|
+
"default": "./tokens/index.js",
|
|
71
|
+
"types": "./tokens/index.d.ts"
|
|
72
|
+
},
|
|
73
|
+
"./destiny2": {
|
|
74
|
+
"default": "./destiny2/index.js",
|
|
75
|
+
"types": "./destiny2/index.d.ts"
|
|
76
|
+
},
|
|
77
|
+
"./communitycontent": {
|
|
78
|
+
"default": "./communitycontent/index.js",
|
|
79
|
+
"types": "./communitycontent/index.d.ts"
|
|
80
|
+
},
|
|
81
|
+
"./trending": {
|
|
82
|
+
"default": "./trending/index.js",
|
|
83
|
+
"types": "./trending/index.d.ts"
|
|
84
|
+
},
|
|
85
|
+
"./fireteam": {
|
|
86
|
+
"default": "./fireteam/index.js",
|
|
87
|
+
"types": "./fireteam/index.d.ts"
|
|
88
|
+
},
|
|
89
|
+
"./social": {
|
|
90
|
+
"default": "./social/index.js",
|
|
91
|
+
"types": "./social/index.d.ts"
|
|
92
|
+
},
|
|
93
|
+
"./core": {
|
|
94
|
+
"default": "./core/index.js",
|
|
95
|
+
"types": "./core/index.d.ts"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"dependencies": {}
|
|
60
99
|
}
|
|
@@ -21,15 +21,16 @@ export interface IgnoreResponse {
|
|
|
21
21
|
* This enum represents a set of flags - use bitwise operators to check which of
|
|
22
22
|
* these match your value.
|
|
23
23
|
*/
|
|
24
|
-
export declare const
|
|
25
|
-
NotIgnored
|
|
26
|
-
IgnoredUser
|
|
27
|
-
IgnoredGroup
|
|
28
|
-
IgnoredByGroup
|
|
29
|
-
IgnoredPost
|
|
30
|
-
IgnoredTag
|
|
31
|
-
IgnoredGlobal
|
|
32
|
-
}
|
|
24
|
+
export declare const IgnoreStatus: {
|
|
25
|
+
readonly NotIgnored: 0;
|
|
26
|
+
readonly IgnoredUser: 1;
|
|
27
|
+
readonly IgnoredGroup: 2;
|
|
28
|
+
readonly IgnoredByGroup: 4;
|
|
29
|
+
readonly IgnoredPost: 8;
|
|
30
|
+
readonly IgnoredTag: 16;
|
|
31
|
+
readonly IgnoredGlobal: 32;
|
|
32
|
+
};
|
|
33
|
+
export type IgnoreStatus = typeof IgnoreStatus[keyof typeof IgnoreStatus];
|
|
33
34
|
export interface TagResponse {
|
|
34
35
|
readonly tagText: string;
|
|
35
36
|
readonly ignoreStatus: IgnoreResponse;
|
|
@@ -11,13 +11,14 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { BungieMembershipType } from '../common.js';
|
|
13
13
|
import { GeneralUser } from '../user/interfaces.js';
|
|
14
|
-
export declare const
|
|
15
|
-
Unknown
|
|
16
|
-
Xbox
|
|
17
|
-
PSN
|
|
18
|
-
Steam
|
|
19
|
-
Egs
|
|
20
|
-
}
|
|
14
|
+
export declare const PlatformFriendType: {
|
|
15
|
+
readonly Unknown: 0;
|
|
16
|
+
readonly Xbox: 1;
|
|
17
|
+
readonly PSN: 2;
|
|
18
|
+
readonly Steam: 3;
|
|
19
|
+
readonly Egs: 4;
|
|
20
|
+
};
|
|
21
|
+
export type PlatformFriendType = (typeof PlatformFriendType)[keyof typeof PlatformFriendType];
|
|
21
22
|
export interface BungieFriendListResponse {
|
|
22
23
|
readonly friends: BungieFriend[];
|
|
23
24
|
}
|
|
@@ -35,25 +36,30 @@ export interface BungieFriend {
|
|
|
35
36
|
readonly relationship: FriendRelationshipState;
|
|
36
37
|
readonly bungieNetUser: GeneralUser;
|
|
37
38
|
}
|
|
38
|
-
export declare const
|
|
39
|
-
OfflineOrUnknown
|
|
40
|
-
Online
|
|
41
|
-
}
|
|
39
|
+
export declare const PresenceStatus: {
|
|
40
|
+
readonly OfflineOrUnknown: 0;
|
|
41
|
+
readonly Online: 1;
|
|
42
|
+
};
|
|
43
|
+
export type PresenceStatus = (typeof PresenceStatus)[keyof typeof PresenceStatus];
|
|
42
44
|
/**
|
|
43
45
|
* This enum represents a set of flags - use bitwise operators to check which of
|
|
44
46
|
* these match your value.
|
|
45
47
|
*/
|
|
46
|
-
export declare const
|
|
47
|
-
None
|
|
48
|
-
Destiny1
|
|
49
|
-
Destiny2
|
|
50
|
-
}
|
|
51
|
-
export
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
48
|
+
export declare const PresenceOnlineStateFlags: {
|
|
49
|
+
readonly None: 0;
|
|
50
|
+
readonly Destiny1: 1;
|
|
51
|
+
readonly Destiny2: 2;
|
|
52
|
+
};
|
|
53
|
+
export type PresenceOnlineStateFlags =
|
|
54
|
+
(typeof PresenceOnlineStateFlags)[keyof typeof PresenceOnlineStateFlags];
|
|
55
|
+
export declare const FriendRelationshipState: {
|
|
56
|
+
readonly Unknown: 0;
|
|
57
|
+
readonly Friend: 1;
|
|
58
|
+
readonly IncomingRequest: 2;
|
|
59
|
+
readonly OutgoingRequest: 3;
|
|
60
|
+
};
|
|
61
|
+
export type FriendRelationshipState =
|
|
62
|
+
(typeof FriendRelationshipState)[keyof typeof FriendRelationshipState];
|
|
57
63
|
export interface BungieFriendRequestListResponse {
|
|
58
64
|
readonly incomingRequests: BungieFriend[];
|
|
59
65
|
readonly outgoingRequests: BungieFriend[];
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export
|
|
1
|
+
export const PlatformFriendType = {
|
|
2
2
|
Unknown: 0,
|
|
3
3
|
Xbox: 1,
|
|
4
4
|
PSN: 2,
|
|
5
5
|
Steam: 3,
|
|
6
6
|
Egs: 4,
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export const PresenceStatus = {
|
|
9
9
|
OfflineOrUnknown: 0,
|
|
10
10
|
Online: 1,
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export const PresenceOnlineStateFlags = {
|
|
13
13
|
None: 0,
|
|
14
14
|
Destiny1: 1,
|
|
15
15
|
Destiny2: 2,
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export const FriendRelationshipState = {
|
|
18
18
|
Unknown: 0,
|
|
19
19
|
Friend: 1,
|
|
20
20
|
IncomingRequest: 2,
|
|
@@ -49,11 +49,12 @@ export interface TwitchDropHistoryResponse {
|
|
|
49
49
|
readonly CreatedAt?: string;
|
|
50
50
|
readonly ClaimState?: DropStateEnum;
|
|
51
51
|
}
|
|
52
|
-
export declare const
|
|
53
|
-
Claimed
|
|
54
|
-
Applied
|
|
55
|
-
Fulfilled
|
|
56
|
-
}
|
|
52
|
+
export declare const DropStateEnum: {
|
|
53
|
+
readonly Claimed: 0;
|
|
54
|
+
readonly Applied: 1;
|
|
55
|
+
readonly Fulfilled: 2;
|
|
56
|
+
};
|
|
57
|
+
export type DropStateEnum = (typeof DropStateEnum)[keyof typeof DropStateEnum];
|
|
57
58
|
export interface BungieRewardDisplay {
|
|
58
59
|
readonly UserRewardAvailabilityModel: UserRewardAvailabilityModel;
|
|
59
60
|
readonly ObjectiveDisplayProperties: RewardDisplayProperties;
|
|
@@ -17,20 +17,21 @@ import {
|
|
|
17
17
|
} from '../destiny2/interfaces.js';
|
|
18
18
|
import { PagedQuery } from '../common.js';
|
|
19
19
|
/** The known entity types that you can have returned from Trending. */
|
|
20
|
-
export declare const
|
|
21
|
-
News
|
|
22
|
-
DestinyItem
|
|
23
|
-
DestinyActivity
|
|
24
|
-
DestinyRitual
|
|
25
|
-
SupportArticle
|
|
26
|
-
Creation
|
|
27
|
-
Stream
|
|
28
|
-
Update
|
|
29
|
-
Link
|
|
30
|
-
ForumTag
|
|
31
|
-
Container
|
|
32
|
-
Release
|
|
33
|
-
}
|
|
20
|
+
export declare const TrendingEntryType: {
|
|
21
|
+
readonly News: 0;
|
|
22
|
+
readonly DestinyItem: 1;
|
|
23
|
+
readonly DestinyActivity: 2;
|
|
24
|
+
readonly DestinyRitual: 3;
|
|
25
|
+
readonly SupportArticle: 4;
|
|
26
|
+
readonly Creation: 5;
|
|
27
|
+
readonly Stream: 6;
|
|
28
|
+
readonly Update: 7;
|
|
29
|
+
readonly Link: 8;
|
|
30
|
+
readonly ForumTag: 9;
|
|
31
|
+
readonly Container: 10;
|
|
32
|
+
readonly Release: 11;
|
|
33
|
+
};
|
|
34
|
+
export type TrendingEntryType = (typeof TrendingEntryType)[keyof typeof TrendingEntryType];
|
|
34
35
|
export interface TrendingCategories {
|
|
35
36
|
readonly categories: TrendingCategory[];
|
|
36
37
|
}
|
|
@@ -63,22 +63,23 @@ export interface UserInfoCard {
|
|
|
63
63
|
* facing enum used in place of the internal-only Bungie.SharedDefinitions.
|
|
64
64
|
* CredentialType.
|
|
65
65
|
*/
|
|
66
|
-
export declare const
|
|
67
|
-
None
|
|
68
|
-
Xuid
|
|
69
|
-
Psnid
|
|
70
|
-
Wlid
|
|
71
|
-
Fake
|
|
72
|
-
Facebook
|
|
73
|
-
Google
|
|
74
|
-
Windows
|
|
75
|
-
DemonId
|
|
76
|
-
SteamId
|
|
77
|
-
BattleNetId
|
|
78
|
-
StadiaId
|
|
79
|
-
TwitchId
|
|
80
|
-
EgsId
|
|
81
|
-
}
|
|
66
|
+
export declare const BungieCredentialType: {
|
|
67
|
+
readonly None: 0;
|
|
68
|
+
readonly Xuid: 1;
|
|
69
|
+
readonly Psnid: 2;
|
|
70
|
+
readonly Wlid: 3;
|
|
71
|
+
readonly Fake: 4;
|
|
72
|
+
readonly Facebook: 5;
|
|
73
|
+
readonly Google: 8;
|
|
74
|
+
readonly Windows: 9;
|
|
75
|
+
readonly DemonId: 10;
|
|
76
|
+
readonly SteamId: 12;
|
|
77
|
+
readonly BattleNetId: 14;
|
|
78
|
+
readonly StadiaId: 16;
|
|
79
|
+
readonly TwitchId: 18;
|
|
80
|
+
readonly EgsId: 20;
|
|
81
|
+
};
|
|
82
|
+
export type BungieCredentialType = (typeof BungieCredentialType)[keyof typeof BungieCredentialType];
|
|
82
83
|
export interface UserSearchPrefixRequest {
|
|
83
84
|
readonly displayNamePrefix: string;
|
|
84
85
|
}
|
|
@@ -237,18 +238,19 @@ export interface EmailOptInDefinition {
|
|
|
237
238
|
* This enum represents a set of flags - use bitwise operators to check which of
|
|
238
239
|
* these match your value.
|
|
239
240
|
*/
|
|
240
|
-
export declare const
|
|
241
|
-
None
|
|
242
|
-
Newsletter
|
|
243
|
-
System
|
|
244
|
-
Marketing
|
|
245
|
-
UserResearch
|
|
246
|
-
CustomerService
|
|
247
|
-
Social
|
|
248
|
-
PlayTests
|
|
249
|
-
PlayTestsLocal
|
|
250
|
-
Careers
|
|
251
|
-
}
|
|
241
|
+
export declare const OptInFlags: {
|
|
242
|
+
readonly None: 0;
|
|
243
|
+
readonly Newsletter: 1;
|
|
244
|
+
readonly System: 2;
|
|
245
|
+
readonly Marketing: 4;
|
|
246
|
+
readonly UserResearch: 8;
|
|
247
|
+
readonly CustomerService: 16;
|
|
248
|
+
readonly Social: 32;
|
|
249
|
+
readonly PlayTests: 64;
|
|
250
|
+
readonly PlayTestsLocal: 128;
|
|
251
|
+
readonly Careers: 256;
|
|
252
|
+
};
|
|
253
|
+
export type OptInFlags = (typeof OptInFlags)[keyof typeof OptInFlags];
|
|
252
254
|
/**
|
|
253
255
|
* Defines a single subscription: permission to send emails for a specific, focused
|
|
254
256
|
* subject (generally timeboxed, such as for a specific release of a product or
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export const BungieCredentialType = {
|
|
2
2
|
None: 0,
|
|
3
3
|
Xuid: 1,
|
|
4
4
|
Psnid: 2,
|
|
@@ -14,7 +14,7 @@ export var BungieCredentialType = {
|
|
|
14
14
|
TwitchId: 18,
|
|
15
15
|
EgsId: 20,
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export const OptInFlags = {
|
|
18
18
|
None: 0,
|
|
19
19
|
Newsletter: 1,
|
|
20
20
|
System: 2,
|
package/.babelrc
DELETED
package/.gitattributes
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
name: PR Build
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
types: [opened, synchronize, reopened]
|
|
6
|
-
|
|
7
|
-
# Ensures that only one deploy task per branch/environment will run at a time.
|
|
8
|
-
concurrency:
|
|
9
|
-
group: ${{ github.workflow }}-${{ github.ref }}
|
|
10
|
-
cancel-in-progress: true
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
build:
|
|
14
|
-
runs-on: ubuntu-latest
|
|
15
|
-
steps:
|
|
16
|
-
- uses: actions/checkout@v3
|
|
17
|
-
with:
|
|
18
|
-
submodules: recursive
|
|
19
|
-
|
|
20
|
-
- uses: pnpm/action-setup@v4
|
|
21
|
-
|
|
22
|
-
- name: Setup Node
|
|
23
|
-
uses: actions/setup-node@v3
|
|
24
|
-
with:
|
|
25
|
-
node-version-file: '.nvmrc'
|
|
26
|
-
cache: pnpm
|
|
27
|
-
|
|
28
|
-
- name: Install
|
|
29
|
-
run: pnpm install --frozen-lockfile --prefer-offline
|
|
30
|
-
|
|
31
|
-
- name: Build
|
|
32
|
-
run: pnpm start
|
|
33
|
-
|
|
34
|
-
- name: porcelain check
|
|
35
|
-
uses: dorny/paths-filter@v2
|
|
36
|
-
id: filter
|
|
37
|
-
with:
|
|
38
|
-
base: HEAD
|
|
39
|
-
filters: |
|
|
40
|
-
changed:
|
|
41
|
-
- '**'
|
|
42
|
-
|
|
43
|
-
- name: Fail if modified files
|
|
44
|
-
if: steps.filter.outputs.changed == 'true'
|
|
45
|
-
run: |
|
|
46
|
-
echo "::error title=Built files not checked in::Make sure to run pnpm start and check in modified files"
|
|
47
|
-
exit 1
|
|
48
|
-
|
|
49
|
-
- name: Test
|
|
50
|
-
run: pnpm test
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
name: NPM Publish
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- master
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
publish:
|
|
10
|
-
environment: publish
|
|
11
|
-
permissions:
|
|
12
|
-
contents: read
|
|
13
|
-
id-token: write
|
|
14
|
-
runs-on: ubuntu-latest
|
|
15
|
-
steps:
|
|
16
|
-
- uses: actions/checkout@v5
|
|
17
|
-
with:
|
|
18
|
-
submodules: recursive
|
|
19
|
-
|
|
20
|
-
# This will only publish if the package.json version has changed
|
|
21
|
-
- name: Check version changes
|
|
22
|
-
uses: EndBug/version-check@v2 # More info about the arguments on the action page
|
|
23
|
-
id: check # This will be the reference for later
|
|
24
|
-
with:
|
|
25
|
-
file-url: https://unpkg.com/bungie-api-ts@latest/package.json
|
|
26
|
-
static-checking: localIsNew
|
|
27
|
-
|
|
28
|
-
- name: pnpm setup
|
|
29
|
-
if: steps.check.outputs.changed == 'true'
|
|
30
|
-
uses: pnpm/action-setup@v4
|
|
31
|
-
|
|
32
|
-
- name: Setup Node
|
|
33
|
-
if: steps.check.outputs.changed == 'true'
|
|
34
|
-
uses: actions/setup-node@v4
|
|
35
|
-
with:
|
|
36
|
-
node-version-file: '.nvmrc'
|
|
37
|
-
registry-url: https://registry.npmjs.org/
|
|
38
|
-
|
|
39
|
-
- name: Install
|
|
40
|
-
if: steps.check.outputs.changed == 'true'
|
|
41
|
-
run: pnpm install --frozen-lockfile --prefer-offline
|
|
42
|
-
|
|
43
|
-
- name: Publish the package to NPM
|
|
44
|
-
if: steps.check.outputs.changed == 'true'
|
|
45
|
-
run: |
|
|
46
|
-
cd lib
|
|
47
|
-
npm install -g npm@latest
|
|
48
|
-
npm publish --access public --provenance
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
name: Update API sources
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
# Can be manually triggered
|
|
5
|
-
workflow_dispatch:
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
build:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
steps:
|
|
11
|
-
- uses: actions/checkout@v3
|
|
12
|
-
with:
|
|
13
|
-
submodules: recursive
|
|
14
|
-
|
|
15
|
-
- name: Update submodules
|
|
16
|
-
run: |
|
|
17
|
-
git submodule update --init --recursive
|
|
18
|
-
git submodule update --recursive --remote
|
|
19
|
-
|
|
20
|
-
- name: Check for changes
|
|
21
|
-
uses: dorny/paths-filter@v2
|
|
22
|
-
id: filter
|
|
23
|
-
with:
|
|
24
|
-
base: HEAD
|
|
25
|
-
filters: |
|
|
26
|
-
changed:
|
|
27
|
-
- '**'
|
|
28
|
-
|
|
29
|
-
- uses: pnpm/action-setup@v4
|
|
30
|
-
|
|
31
|
-
- name: Setup Node
|
|
32
|
-
if: steps.filter.outputs.changed == 'true'
|
|
33
|
-
uses: actions/setup-node@v3
|
|
34
|
-
with:
|
|
35
|
-
node-version-file: '.nvmrc'
|
|
36
|
-
cache: pnpm
|
|
37
|
-
|
|
38
|
-
- name: Install
|
|
39
|
-
if: steps.filter.outputs.changed == 'true'
|
|
40
|
-
run: pnpm install --frozen-lockfile --prefer-offline
|
|
41
|
-
|
|
42
|
-
- name: Bump version
|
|
43
|
-
if: steps.filter.outputs.changed == 'true'
|
|
44
|
-
run: npm version minor --no-git-tag-version
|
|
45
|
-
|
|
46
|
-
- name: Build
|
|
47
|
-
if: steps.filter.outputs.changed == 'true'
|
|
48
|
-
run: pnpm start
|
|
49
|
-
|
|
50
|
-
- name: Create Pull Request
|
|
51
|
-
if: steps.filter.outputs.changed == 'true'
|
|
52
|
-
uses: peter-evans/create-pull-request@v4
|
|
53
|
-
with:
|
|
54
|
-
title: 'Updated api-src'
|
|
55
|
-
commit-message: 'Updated api-src'
|
package/.gitmodules
DELETED
package/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
22
|
package/.prettierrc
DELETED
package/.vscode/extensions.json
DELETED
package/.vscode/settings.json
DELETED
package/LICENSE.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2017 Destiny Item Manager
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
name: Close inactive issues
|
|
2
|
-
on:
|
|
3
|
-
schedule:
|
|
4
|
-
- cron: "0 8 * * *"
|
|
5
|
-
|
|
6
|
-
jobs:
|
|
7
|
-
close-issues:
|
|
8
|
-
name: Close Stale Issues
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
permissions:
|
|
11
|
-
issues: write
|
|
12
|
-
pull-requests: write
|
|
13
|
-
steps:
|
|
14
|
-
- uses: actions/stale@v5
|
|
15
|
-
with:
|
|
16
|
-
days-before-issue-stale: 365
|
|
17
|
-
days-before-issue-close: 7
|
|
18
|
-
stale-issue-label: "stale"
|
|
19
|
-
stale-issue-message: ""
|
|
20
|
-
close-issue-message: "This issue was closed because it has been inactive for one week since being marked as stale."
|
|
21
|
-
days-before-pr-stale: -1
|
|
22
|
-
days-before-pr-close: -1
|
|
23
|
-
operations-per-run: 50
|
|
24
|
-
repo-token: ${{ secrets.GITHUB_TOKEN }}
|