@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.
Files changed (163) hide show
  1. package/{lib/app → app}/interfaces.d.ts +20 -17
  2. package/{lib/app → app}/interfaces.js +3 -3
  3. package/common.d.ts +981 -0
  4. package/{lib/common.js → common.js} +2 -2
  5. package/{lib/content → content}/interfaces.d.ts +19 -17
  6. package/{lib/content → content}/interfaces.js +1 -1
  7. package/{lib/core → core}/interfaces.d.ts +12 -10
  8. package/{lib/core → core}/interfaces.js +2 -2
  9. package/{lib/destiny2 → destiny2}/interfaces.d.ts +1170 -1003
  10. package/{lib/destiny2 → destiny2}/interfaces.js +109 -102
  11. package/{lib/fireteam → fireteam}/interfaces.d.ts +40 -33
  12. package/{lib/fireteam → fireteam}/interfaces.js +5 -5
  13. package/{lib/forum → forum}/interfaces.d.ts +75 -61
  14. package/{lib/forum → forum}/interfaces.js +9 -9
  15. package/{lib/groupv2 → groupv2}/interfaces.d.ts +122 -100
  16. package/{lib/groupv2 → groupv2}/interfaces.js +16 -16
  17. package/package.json +66 -27
  18. package/{lib/platform.d.ts → platform.d.ts} +10 -9
  19. package/{lib/platform.js → platform.js} +1 -1
  20. package/{lib/social → social}/interfaces.d.ts +28 -22
  21. package/{lib/social → social}/interfaces.js +4 -4
  22. package/{lib/tokens → tokens}/interfaces.d.ts +6 -5
  23. package/{lib/tokens → tokens}/interfaces.js +1 -1
  24. package/{lib/trending → trending}/interfaces.d.ts +15 -14
  25. package/{lib/trending → trending}/interfaces.js +1 -1
  26. package/{lib/user → user}/interfaces.d.ts +30 -28
  27. package/{lib/user → user}/interfaces.js +2 -2
  28. package/.babelrc +0 -4
  29. package/.gitattributes +0 -2
  30. package/.github/workflows/pr-build.yml +0 -50
  31. package/.github/workflows/publish.yml +0 -48
  32. package/.github/workflows/update.yml +0 -55
  33. package/.gitmodules +0 -3
  34. package/.nvmrc +0 -1
  35. package/.prettierrc +0 -10
  36. package/.vscode/extensions.json +0 -8
  37. package/.vscode/settings.json +0 -7
  38. package/LICENSE.md +0 -21
  39. package/api-src/.github/workflows/close-inactive.yml +0 -24
  40. package/api-src/CHANGELOG.md +0 -271
  41. package/api-src/CONTRIBUTING.md +0 -19
  42. package/api-src/LICENSE +0 -28
  43. package/api-src/README.md +0 -378
  44. package/api-src/openapi-2.json +0 -44518
  45. package/api-src/openapi.json +0 -46467
  46. package/build.sh +0 -30
  47. package/generated-src/app/api.ts +0 -50
  48. package/generated-src/app/index.ts +0 -17
  49. package/generated-src/app/interfaces.ts +0 -119
  50. package/generated-src/common.ts +0 -985
  51. package/generated-src/communitycontent/api.ts +0 -36
  52. package/generated-src/communitycontent/index.ts +0 -16
  53. package/generated-src/content/api.ts +0 -142
  54. package/generated-src/content/index.ts +0 -17
  55. package/generated-src/content/interfaces.ts +0 -225
  56. package/generated-src/core/api.ts +0 -57
  57. package/generated-src/core/index.ts +0 -17
  58. package/generated-src/core/interfaces.ts +0 -151
  59. package/generated-src/destiny2/api.ts +0 -821
  60. package/generated-src/destiny2/index.ts +0 -17
  61. package/generated-src/destiny2/interfaces.ts +0 -15714
  62. package/generated-src/destiny2/manifest.ts +0 -341
  63. package/generated-src/fireteam/api.ts +0 -151
  64. package/generated-src/fireteam/index.ts +0 -17
  65. package/generated-src/fireteam/interfaces.ts +0 -183
  66. package/generated-src/forum/api.ts +0 -197
  67. package/generated-src/forum/index.ts +0 -17
  68. package/generated-src/forum/interfaces.ts +0 -171
  69. package/generated-src/groupv2/api.ts +0 -515
  70. package/generated-src/groupv2/index.ts +0 -17
  71. package/generated-src/groupv2/interfaces.ts +0 -773
  72. package/generated-src/http.ts +0 -52
  73. package/generated-src/index.ts +0 -37
  74. package/generated-src/package.json.notyet +0 -99
  75. package/generated-src/platform.ts +0 -39
  76. package/generated-src/social/api.ts +0 -115
  77. package/generated-src/social/index.ts +0 -17
  78. package/generated-src/social/interfaces.ts +0 -89
  79. package/generated-src/tokens/api.ts +0 -126
  80. package/generated-src/tokens/index.ts +0 -17
  81. package/generated-src/tokens/interfaces.ts +0 -102
  82. package/generated-src/trending/api.ts +0 -62
  83. package/generated-src/trending/index.ts +0 -17
  84. package/generated-src/trending/interfaces.ts +0 -188
  85. package/generated-src/user/api.ts +0 -130
  86. package/generated-src/user/index.ts +0 -17
  87. package/generated-src/user/interfaces.ts +0 -338
  88. package/generator/generate-api.ts +0 -254
  89. package/generator/generate-common.ts +0 -123
  90. package/generator/generate-index.ts +0 -45
  91. package/generator/generate-interfaces.ts +0 -173
  92. package/generator/generate-manifest.ts +0 -217
  93. package/generator/generate-package-json.ts +0 -45
  94. package/generator/generate.ts +0 -54
  95. package/generator/http.ts +0 -52
  96. package/generator/missing-props.ts +0 -11
  97. package/generator/type-index.ts +0 -184
  98. package/generator/util.ts +0 -131
  99. package/lib/README.md +0 -97
  100. package/lib/bungie-api-LICENSE +0 -29
  101. package/lib/common.d.ts +0 -979
  102. package/lib/package.json +0 -99
  103. package/test-consumer.ts +0 -5
  104. package/tests/__snapshots__/config-builders.test.ts.snap +0 -343
  105. package/tests/config-builders.test.ts +0 -145
  106. package/tests/manifest-fetcher.test.ts +0 -43
  107. package/tests/test-manifest.js +0 -69
  108. package/tsconfig-package.json +0 -14
  109. package/tsconfig.json +0 -17
  110. /package/{lib/app → app}/api.d.ts +0 -0
  111. /package/{lib/app → app}/api.js +0 -0
  112. /package/{lib/app → app}/index.d.ts +0 -0
  113. /package/{lib/app → app}/index.js +0 -0
  114. /package/{lib/communitycontent → communitycontent}/api.d.ts +0 -0
  115. /package/{lib/communitycontent → communitycontent}/api.js +0 -0
  116. /package/{lib/communitycontent → communitycontent}/index.d.ts +0 -0
  117. /package/{lib/communitycontent → communitycontent}/index.js +0 -0
  118. /package/{lib/content → content}/api.d.ts +0 -0
  119. /package/{lib/content → content}/api.js +0 -0
  120. /package/{lib/content → content}/index.d.ts +0 -0
  121. /package/{lib/content → content}/index.js +0 -0
  122. /package/{lib/core → core}/api.d.ts +0 -0
  123. /package/{lib/core → core}/api.js +0 -0
  124. /package/{lib/core → core}/index.d.ts +0 -0
  125. /package/{lib/core → core}/index.js +0 -0
  126. /package/{lib/destiny2 → destiny2}/api.d.ts +0 -0
  127. /package/{lib/destiny2 → destiny2}/api.js +0 -0
  128. /package/{lib/destiny2 → destiny2}/index.d.ts +0 -0
  129. /package/{lib/destiny2 → destiny2}/index.js +0 -0
  130. /package/{lib/destiny2 → destiny2}/manifest.d.ts +0 -0
  131. /package/{lib/destiny2 → destiny2}/manifest.js +0 -0
  132. /package/{lib/fireteam → fireteam}/api.d.ts +0 -0
  133. /package/{lib/fireteam → fireteam}/api.js +0 -0
  134. /package/{lib/fireteam → fireteam}/index.d.ts +0 -0
  135. /package/{lib/fireteam → fireteam}/index.js +0 -0
  136. /package/{lib/forum → forum}/api.d.ts +0 -0
  137. /package/{lib/forum → forum}/api.js +0 -0
  138. /package/{lib/forum → forum}/index.d.ts +0 -0
  139. /package/{lib/forum → forum}/index.js +0 -0
  140. /package/{lib/groupv2 → groupv2}/api.d.ts +0 -0
  141. /package/{lib/groupv2 → groupv2}/api.js +0 -0
  142. /package/{lib/groupv2 → groupv2}/index.d.ts +0 -0
  143. /package/{lib/groupv2 → groupv2}/index.js +0 -0
  144. /package/{lib/http.d.ts → http.d.ts} +0 -0
  145. /package/{lib/http.js → http.js} +0 -0
  146. /package/{lib/index.d.ts → index.d.ts} +0 -0
  147. /package/{lib/index.js → index.js} +0 -0
  148. /package/{lib/social → social}/api.d.ts +0 -0
  149. /package/{lib/social → social}/api.js +0 -0
  150. /package/{lib/social → social}/index.d.ts +0 -0
  151. /package/{lib/social → social}/index.js +0 -0
  152. /package/{lib/tokens → tokens}/api.d.ts +0 -0
  153. /package/{lib/tokens → tokens}/api.js +0 -0
  154. /package/{lib/tokens → tokens}/index.d.ts +0 -0
  155. /package/{lib/tokens → tokens}/index.js +0 -0
  156. /package/{lib/trending → trending}/api.d.ts +0 -0
  157. /package/{lib/trending → trending}/api.js +0 -0
  158. /package/{lib/trending → trending}/index.d.ts +0 -0
  159. /package/{lib/trending → trending}/index.js +0 -0
  160. /package/{lib/user → user}/api.d.ts +0 -0
  161. /package/{lib/user → user}/api.js +0 -0
  162. /package/{lib/user → user}/index.d.ts +0 -0
  163. /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.1",
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
- "scripts": {
54
- "tsc": "tsc",
55
- "start": "sh ./build.sh",
56
- "submodule": "git submodule init && git submodule update",
57
- "updatespec": "git submodule update --remote --merge",
58
- "test": "jest"
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 enum IgnoreStatus {
25
- NotIgnored = 0,
26
- IgnoredUser = 1,
27
- IgnoredGroup = 2,
28
- IgnoredByGroup = 4,
29
- IgnoredPost = 8,
30
- IgnoredTag = 16,
31
- IgnoredGlobal = 32
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;
@@ -1,4 +1,4 @@
1
- export var IgnoreStatus = {
1
+ export const IgnoreStatus = {
2
2
  NotIgnored: 0,
3
3
  IgnoredUser: 1,
4
4
  IgnoredGroup: 2,
@@ -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 enum PlatformFriendType {
15
- Unknown = 0,
16
- Xbox = 1,
17
- PSN = 2,
18
- Steam = 3,
19
- Egs = 4,
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 enum PresenceStatus {
39
- OfflineOrUnknown = 0,
40
- Online = 1,
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 enum PresenceOnlineStateFlags {
47
- None = 0,
48
- Destiny1 = 1,
49
- Destiny2 = 2,
50
- }
51
- export declare const enum FriendRelationshipState {
52
- Unknown = 0,
53
- Friend = 1,
54
- IncomingRequest = 2,
55
- OutgoingRequest = 3,
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 var PlatformFriendType = {
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 var PresenceStatus = {
8
+ export const PresenceStatus = {
9
9
  OfflineOrUnknown: 0,
10
10
  Online: 1,
11
11
  };
12
- export var PresenceOnlineStateFlags = {
12
+ export const PresenceOnlineStateFlags = {
13
13
  None: 0,
14
14
  Destiny1: 1,
15
15
  Destiny2: 2,
16
16
  };
17
- export var FriendRelationshipState = {
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 enum DropStateEnum {
53
- Claimed = 0,
54
- Applied = 1,
55
- Fulfilled = 2,
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;
@@ -1,4 +1,4 @@
1
- export var DropStateEnum = {
1
+ export const DropStateEnum = {
2
2
  Claimed: 0,
3
3
  Applied: 1,
4
4
  Fulfilled: 2,
@@ -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 enum TrendingEntryType {
21
- News = 0,
22
- DestinyItem = 1,
23
- DestinyActivity = 2,
24
- DestinyRitual = 3,
25
- SupportArticle = 4,
26
- Creation = 5,
27
- Stream = 6,
28
- Update = 7,
29
- Link = 8,
30
- ForumTag = 9,
31
- Container = 10,
32
- Release = 11,
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
  }
@@ -1,4 +1,4 @@
1
- export var TrendingEntryType = {
1
+ export const TrendingEntryType = {
2
2
  News: 0,
3
3
  DestinyItem: 1,
4
4
  DestinyActivity: 2,
@@ -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 enum BungieCredentialType {
67
- None = 0,
68
- Xuid = 1,
69
- Psnid = 2,
70
- Wlid = 3,
71
- Fake = 4,
72
- Facebook = 5,
73
- Google = 8,
74
- Windows = 9,
75
- DemonId = 10,
76
- SteamId = 12,
77
- BattleNetId = 14,
78
- StadiaId = 16,
79
- TwitchId = 18,
80
- EgsId = 20,
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 enum OptInFlags {
241
- None = 0,
242
- Newsletter = 1,
243
- System = 2,
244
- Marketing = 4,
245
- UserResearch = 8,
246
- CustomerService = 16,
247
- Social = 32,
248
- PlayTests = 64,
249
- PlayTestsLocal = 128,
250
- Careers = 256,
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 var BungieCredentialType = {
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 var OptInFlags = {
17
+ export const OptInFlags = {
18
18
  None: 0,
19
19
  Newsletter: 1,
20
20
  System: 2,
package/.babelrc DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "comments": false,
3
- "presets": [["@babel/preset-typescript", { "optimizeConstEnums": true }]]
4
- }
package/.gitattributes DELETED
@@ -1,2 +0,0 @@
1
- # Generated files can always be collapsed in diffs
2
- lib/ linguist-generated
@@ -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
@@ -1,3 +0,0 @@
1
- [submodule "api-src"]
2
- path = api-src
3
- url = https://github.com/Bungie-net/api
package/.nvmrc DELETED
@@ -1 +0,0 @@
1
- 22
package/.prettierrc DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "printWidth": 100,
3
- "singleQuote": true,
4
- "arrowParens": "always",
5
- "overrides": [
6
- {
7
- "files": "*.html"
8
- }
9
- ]
10
- }
@@ -1,8 +0,0 @@
1
- {
2
- // See http://go.microsoft.com/fwlink/?LinkId=827846
3
- // for the documentation about the extensions.json format
4
- "recommendations": [
5
- // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
6
- "esbenp.prettier-vscode"
7
- ]
8
- }
@@ -1,7 +0,0 @@
1
- {
2
- "editor.tabSize": 2,
3
- "editor.trimAutoWhitespace": true,
4
- "files.trimTrailingWhitespace": true,
5
- "typescript.tsdk": "node_modules/typescript/lib",
6
- "editor.formatOnSave": true
7
- }
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 }}