@taskeren/bungie-api-ts 5.10.0 → 5.10.2

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 (162) hide show
  1. package/package.json +66 -27
  2. package/.babelrc +0 -4
  3. package/.gitattributes +0 -2
  4. package/.github/workflows/pr-build.yml +0 -50
  5. package/.github/workflows/publish.yml +0 -48
  6. package/.github/workflows/update.yml +0 -55
  7. package/.gitmodules +0 -3
  8. package/.nvmrc +0 -1
  9. package/.prettierrc +0 -10
  10. package/.vscode/extensions.json +0 -8
  11. package/.vscode/settings.json +0 -7
  12. package/LICENSE.md +0 -21
  13. package/api-src/.github/workflows/close-inactive.yml +0 -24
  14. package/api-src/CHANGELOG.md +0 -271
  15. package/api-src/CONTRIBUTING.md +0 -19
  16. package/api-src/LICENSE +0 -28
  17. package/api-src/README.md +0 -378
  18. package/api-src/openapi-2.json +0 -44518
  19. package/api-src/openapi.json +0 -46467
  20. package/build.sh +0 -30
  21. package/generated-src/app/api.ts +0 -50
  22. package/generated-src/app/index.ts +0 -17
  23. package/generated-src/app/interfaces.ts +0 -119
  24. package/generated-src/common.ts +0 -985
  25. package/generated-src/communitycontent/api.ts +0 -36
  26. package/generated-src/communitycontent/index.ts +0 -16
  27. package/generated-src/content/api.ts +0 -142
  28. package/generated-src/content/index.ts +0 -17
  29. package/generated-src/content/interfaces.ts +0 -225
  30. package/generated-src/core/api.ts +0 -57
  31. package/generated-src/core/index.ts +0 -17
  32. package/generated-src/core/interfaces.ts +0 -151
  33. package/generated-src/destiny2/api.ts +0 -821
  34. package/generated-src/destiny2/index.ts +0 -17
  35. package/generated-src/destiny2/interfaces.ts +0 -15714
  36. package/generated-src/destiny2/manifest.ts +0 -341
  37. package/generated-src/fireteam/api.ts +0 -151
  38. package/generated-src/fireteam/index.ts +0 -17
  39. package/generated-src/fireteam/interfaces.ts +0 -183
  40. package/generated-src/forum/api.ts +0 -197
  41. package/generated-src/forum/index.ts +0 -17
  42. package/generated-src/forum/interfaces.ts +0 -171
  43. package/generated-src/groupv2/api.ts +0 -515
  44. package/generated-src/groupv2/index.ts +0 -17
  45. package/generated-src/groupv2/interfaces.ts +0 -773
  46. package/generated-src/http.ts +0 -52
  47. package/generated-src/index.ts +0 -37
  48. package/generated-src/package.json.notyet +0 -99
  49. package/generated-src/platform.ts +0 -39
  50. package/generated-src/social/api.ts +0 -115
  51. package/generated-src/social/index.ts +0 -17
  52. package/generated-src/social/interfaces.ts +0 -89
  53. package/generated-src/tokens/api.ts +0 -126
  54. package/generated-src/tokens/index.ts +0 -17
  55. package/generated-src/tokens/interfaces.ts +0 -102
  56. package/generated-src/trending/api.ts +0 -62
  57. package/generated-src/trending/index.ts +0 -17
  58. package/generated-src/trending/interfaces.ts +0 -188
  59. package/generated-src/user/api.ts +0 -130
  60. package/generated-src/user/index.ts +0 -17
  61. package/generated-src/user/interfaces.ts +0 -338
  62. package/generator/generate-api.ts +0 -254
  63. package/generator/generate-common.ts +0 -123
  64. package/generator/generate-index.ts +0 -45
  65. package/generator/generate-interfaces.ts +0 -173
  66. package/generator/generate-manifest.ts +0 -217
  67. package/generator/generate-package-json.ts +0 -45
  68. package/generator/generate.ts +0 -54
  69. package/generator/http.ts +0 -52
  70. package/generator/missing-props.ts +0 -11
  71. package/generator/type-index.ts +0 -184
  72. package/generator/util.ts +0 -131
  73. package/lib/README.md +0 -97
  74. package/lib/bungie-api-LICENSE +0 -29
  75. package/lib/package.json +0 -99
  76. package/test-consumer.ts +0 -5
  77. package/tests/__snapshots__/config-builders.test.ts.snap +0 -343
  78. package/tests/config-builders.test.ts +0 -145
  79. package/tests/manifest-fetcher.test.ts +0 -43
  80. package/tests/test-manifest.js +0 -69
  81. package/tsconfig-package.json +0 -14
  82. package/tsconfig.json +0 -17
  83. /package/{lib/app → app}/api.d.ts +0 -0
  84. /package/{lib/app → app}/api.js +0 -0
  85. /package/{lib/app → app}/index.d.ts +0 -0
  86. /package/{lib/app → app}/index.js +0 -0
  87. /package/{lib/app → app}/interfaces.d.ts +0 -0
  88. /package/{lib/app → app}/interfaces.js +0 -0
  89. /package/{lib/common.d.ts → common.d.ts} +0 -0
  90. /package/{lib/common.js → common.js} +0 -0
  91. /package/{lib/communitycontent → communitycontent}/api.d.ts +0 -0
  92. /package/{lib/communitycontent → communitycontent}/api.js +0 -0
  93. /package/{lib/communitycontent → communitycontent}/index.d.ts +0 -0
  94. /package/{lib/communitycontent → communitycontent}/index.js +0 -0
  95. /package/{lib/content → content}/api.d.ts +0 -0
  96. /package/{lib/content → content}/api.js +0 -0
  97. /package/{lib/content → content}/index.d.ts +0 -0
  98. /package/{lib/content → content}/index.js +0 -0
  99. /package/{lib/content → content}/interfaces.d.ts +0 -0
  100. /package/{lib/content → content}/interfaces.js +0 -0
  101. /package/{lib/core → core}/api.d.ts +0 -0
  102. /package/{lib/core → core}/api.js +0 -0
  103. /package/{lib/core → core}/index.d.ts +0 -0
  104. /package/{lib/core → core}/index.js +0 -0
  105. /package/{lib/core → core}/interfaces.d.ts +0 -0
  106. /package/{lib/core → core}/interfaces.js +0 -0
  107. /package/{lib/destiny2 → destiny2}/api.d.ts +0 -0
  108. /package/{lib/destiny2 → destiny2}/api.js +0 -0
  109. /package/{lib/destiny2 → destiny2}/index.d.ts +0 -0
  110. /package/{lib/destiny2 → destiny2}/index.js +0 -0
  111. /package/{lib/destiny2 → destiny2}/interfaces.d.ts +0 -0
  112. /package/{lib/destiny2 → destiny2}/interfaces.js +0 -0
  113. /package/{lib/destiny2 → destiny2}/manifest.d.ts +0 -0
  114. /package/{lib/destiny2 → destiny2}/manifest.js +0 -0
  115. /package/{lib/fireteam → fireteam}/api.d.ts +0 -0
  116. /package/{lib/fireteam → fireteam}/api.js +0 -0
  117. /package/{lib/fireteam → fireteam}/index.d.ts +0 -0
  118. /package/{lib/fireteam → fireteam}/index.js +0 -0
  119. /package/{lib/fireteam → fireteam}/interfaces.d.ts +0 -0
  120. /package/{lib/fireteam → fireteam}/interfaces.js +0 -0
  121. /package/{lib/forum → forum}/api.d.ts +0 -0
  122. /package/{lib/forum → forum}/api.js +0 -0
  123. /package/{lib/forum → forum}/index.d.ts +0 -0
  124. /package/{lib/forum → forum}/index.js +0 -0
  125. /package/{lib/forum → forum}/interfaces.d.ts +0 -0
  126. /package/{lib/forum → forum}/interfaces.js +0 -0
  127. /package/{lib/groupv2 → groupv2}/api.d.ts +0 -0
  128. /package/{lib/groupv2 → groupv2}/api.js +0 -0
  129. /package/{lib/groupv2 → groupv2}/index.d.ts +0 -0
  130. /package/{lib/groupv2 → groupv2}/index.js +0 -0
  131. /package/{lib/groupv2 → groupv2}/interfaces.d.ts +0 -0
  132. /package/{lib/groupv2 → groupv2}/interfaces.js +0 -0
  133. /package/{lib/http.d.ts → http.d.ts} +0 -0
  134. /package/{lib/http.js → http.js} +0 -0
  135. /package/{lib/index.d.ts → index.d.ts} +0 -0
  136. /package/{lib/index.js → index.js} +0 -0
  137. /package/{lib/platform.d.ts → platform.d.ts} +0 -0
  138. /package/{lib/platform.js → platform.js} +0 -0
  139. /package/{lib/social → social}/api.d.ts +0 -0
  140. /package/{lib/social → social}/api.js +0 -0
  141. /package/{lib/social → social}/index.d.ts +0 -0
  142. /package/{lib/social → social}/index.js +0 -0
  143. /package/{lib/social → social}/interfaces.d.ts +0 -0
  144. /package/{lib/social → social}/interfaces.js +0 -0
  145. /package/{lib/tokens → tokens}/api.d.ts +0 -0
  146. /package/{lib/tokens → tokens}/api.js +0 -0
  147. /package/{lib/tokens → tokens}/index.d.ts +0 -0
  148. /package/{lib/tokens → tokens}/index.js +0 -0
  149. /package/{lib/tokens → tokens}/interfaces.d.ts +0 -0
  150. /package/{lib/tokens → tokens}/interfaces.js +0 -0
  151. /package/{lib/trending → trending}/api.d.ts +0 -0
  152. /package/{lib/trending → trending}/api.js +0 -0
  153. /package/{lib/trending → trending}/index.d.ts +0 -0
  154. /package/{lib/trending → trending}/index.js +0 -0
  155. /package/{lib/trending → trending}/interfaces.d.ts +0 -0
  156. /package/{lib/trending → trending}/interfaces.js +0 -0
  157. /package/{lib/user → user}/api.d.ts +0 -0
  158. /package/{lib/user → user}/api.js +0 -0
  159. /package/{lib/user → user}/index.d.ts +0 -0
  160. /package/{lib/user → user}/index.js +0 -0
  161. /package/{lib/user → user}/interfaces.d.ts +0 -0
  162. /package/{lib/user → user}/interfaces.js +0 -0
package/build.sh DELETED
@@ -1,30 +0,0 @@
1
- #!/bin/sh -ex
2
-
3
- rm -rf ./build
4
- cp package.json generator
5
-
6
- # Prepare the generated source directory
7
- rm -rf ./generated-src
8
- mkdir -p generated-src
9
- cp generator/http.ts generated-src
10
-
11
- # Compile and run the generator
12
- pnpm tsc -p tsconfig.json
13
- node ./build/generate.js
14
-
15
- # Build the package from the generated sources
16
- rm -rf ./lib
17
- mkdir -p lib
18
- rsync -a --include '*/' --include '*.d.ts' --exclude '*' generated-src/ lib/
19
- cp ./generated-src/package.json.notyet ./lib/package.json
20
-
21
- babel generated-src --out-dir lib --extensions ".ts"
22
-
23
- pnpm tsc -p tsconfig-package.json
24
-
25
- pnpm prettier --write lib/**/*
26
-
27
- # Copy files into lib - we'll publish lib as the package instead of the whole repo, so paths are nicer.
28
- cp README.md lib/
29
- cp bungie-api-LICENSE lib/
30
- rm generator/package.json
@@ -1,50 +0,0 @@
1
- /**
2
- * Bungie.Net API
3
- * These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality.
4
- *
5
- * OpenAPI spec version: 2.21.9
6
- * Contact: support@bungie.com
7
- *
8
- * NOTE: This class is auto generated by the bungie-api-ts code generator program.
9
- * https://github.com/DestinyItemManager/bungie-api-ts
10
- * Do not edit these files manually.
11
- */
12
-
13
- import { HttpClient, get, post } from '../http.js';
14
-
15
- import {
16
- ApiUsage,
17
- Application
18
- } from './interfaces.js';
19
- import {
20
- ServerResponse
21
- } from '../common.js';
22
-
23
- const API_BASE = "https://www.bungie.net/Platform/App/";
24
-
25
- export interface GetApplicationApiUsageParams {
26
- /** ID of the application to get usage statistics. */
27
- applicationId: number;
28
- /** End time for query. Goes to now if not specified. */
29
- end?: string;
30
- /** Start time for query. Goes to 24 hours ago if not specified. */
31
- start?: string;
32
- }
33
-
34
- /**
35
- * Get API usage by application for time frame specified. You can go as far back as
36
- * 30 days ago, and can ask for up to a 48 hour window of time in a single request.
37
- * You must be authenticated with at least the ReadUserData permission to access
38
- * this endpoint.
39
- */
40
- export function getApplicationApiUsage(http: HttpClient, params: GetApplicationApiUsageParams): Promise<ServerResponse<ApiUsage>> {
41
- const strParams: Record<string, string> = {};
42
- if (params.end !== undefined) { strParams.end = params.end; }
43
- if (params.start !== undefined) { strParams.start = params.start; }
44
- return get(http, `${API_BASE}ApiUsage/${params.applicationId}/`, strParams);
45
- }
46
-
47
- /** Get list of applications created by Bungie. */
48
- export function getBungieApplications(http: HttpClient): Promise<ServerResponse<Application[]>> {
49
- return get(http, `${API_BASE}FirstParty/`);
50
- }
@@ -1,17 +0,0 @@
1
- /**
2
- * Bungie.Net API
3
- * These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality.
4
- *
5
- * OpenAPI spec version: 2.21.9
6
- * Contact: support@bungie.com
7
- *
8
- * NOTE: This class is auto generated by the bungie-api-ts code generator program.
9
- * https://github.com/DestinyItemManager/bungie-api-ts
10
- * Do not edit these files manually.
11
- */
12
-
13
- export * from '../common.js';
14
- export * from '../platform.js';
15
- export type {HttpClientConfig, HttpClient} from '../http.js';
16
- export * from './api.js';
17
- export * from './interfaces.js';
@@ -1,119 +0,0 @@
1
- /**
2
- * Bungie.Net API
3
- * These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality.
4
- *
5
- * OpenAPI spec version: 2.21.9
6
- * Contact: support@bungie.com
7
- *
8
- * NOTE: This class is auto generated by the bungie-api-ts code generator program.
9
- * https://github.com/DestinyItemManager/bungie-api-ts
10
- * Do not edit these files manually.
11
- */
12
-
13
- import {
14
- UserInfoCard
15
- } from '../user/interfaces.js';
16
-
17
- export interface ApiUsage {
18
- /** Counts for on API calls made for the time range. */
19
- readonly apiCalls: Series[];
20
- /**
21
- * Instances of blocked requests or requests that crossed the warn threshold during
22
- * the time range.
23
- */
24
- readonly throttledRequests: Series[];
25
- }
26
-
27
- export interface Series {
28
- /** Collection of samples with time and value. */
29
- readonly datapoints: Datapoint[];
30
- /** Target to which to datapoints apply. */
31
- readonly target: string;
32
- }
33
-
34
- export interface Datapoint {
35
- /** Timestamp for the related count. */
36
- readonly time: string;
37
- /** Count associated with timestamp */
38
- readonly count?: number;
39
- }
40
-
41
- export interface Application {
42
- readonly applicationType: OAuthApplicationType;
43
- /** Unique ID assigned to the application */
44
- readonly applicationId: number;
45
- /** Name of the application */
46
- readonly name: string;
47
- /** URL used to pass the user's authorization code to the application */
48
- readonly redirectUrl: string;
49
- /** Link to website for the application where a user can learn more about the app. */
50
- readonly link: string;
51
- /** Permissions the application needs to work */
52
- readonly scope: string;
53
- /** Value of the Origin header sent in requests generated by this application. */
54
- readonly origin: string;
55
- /** Current status of the application. */
56
- readonly status: ApplicationStatus;
57
- /** Date the application was first added to our database. */
58
- readonly creationDate: string;
59
- /** Date the application status last changed. */
60
- readonly statusChanged: string;
61
- /** Date the first time the application status entered the 'Public' status. */
62
- readonly firstPublished: string;
63
- /**
64
- * List of team members who manage this application on Bungie.net. Will always
65
- * consist of at least the application owner.
66
- */
67
- readonly team: ApplicationDeveloper[];
68
- /** An optional override for the Authorize view name. */
69
- readonly overrideAuthorizeViewName: string;
70
- }
71
-
72
- export const enum OAuthApplicationType {
73
- None = 0,
74
- /**
75
- * Indicates the application is server based and can keep its secrets from end
76
- * users and other potential snoops.
77
- */
78
- Confidential = 1,
79
- /**
80
- * Indicates the application runs in a public place, and it can't be trusted to
81
- * keep a secret.
82
- */
83
- Public = 2
84
- }
85
-
86
- export const enum ApplicationStatus {
87
- /** No value assigned */
88
- None = 0,
89
- /**
90
- * Application exists and works but will not appear in any public catalog. New
91
- * applications start in this state, test applications will remain in this state.
92
- */
93
- Private = 1,
94
- /** Active applications that can appear in an catalog. */
95
- Public = 2,
96
- /**
97
- * Application disabled by the owner. All authorizations will be treated as
98
- * terminated while in this state. Owner can move back to private or public state.
99
- */
100
- Disabled = 3,
101
- /**
102
- * Application has been blocked by Bungie. It cannot be transitioned out of this
103
- * state by the owner. Authorizations are terminated when an application is in this
104
- * state.
105
- */
106
- Blocked = 4
107
- }
108
-
109
- export interface ApplicationDeveloper {
110
- readonly role: DeveloperRole;
111
- readonly apiEulaVersion: number;
112
- readonly user: UserInfoCard;
113
- }
114
-
115
- export const enum DeveloperRole {
116
- None = 0,
117
- Owner = 1,
118
- TeamMember = 2
119
- }