@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
@@ -61,48 +61,51 @@ export interface Application {
61
61
  /** An optional override for the Authorize view name. */
62
62
  readonly overrideAuthorizeViewName: string;
63
63
  }
64
- export declare const enum OAuthApplicationType {
65
- None = 0,
64
+ export declare const OAuthApplicationType: {
65
+ readonly None: 0;
66
66
  /**
67
67
  * Indicates the application is server based and can keep its secrets from end
68
68
  * users and other potential snoops.
69
69
  */
70
- Confidential = 1,
70
+ readonly Confidential: 1;
71
71
  /**
72
72
  * Indicates the application runs in a public place, and it can't be trusted to
73
73
  * keep a secret.
74
74
  */
75
- Public = 2,
76
- }
77
- export declare const enum ApplicationStatus {
75
+ readonly Public: 2;
76
+ };
77
+ export type OAuthApplicationType = (typeof OAuthApplicationType)[keyof typeof OAuthApplicationType];
78
+ export declare const ApplicationStatus: {
78
79
  /** No value assigned */
79
- None = 0,
80
+ readonly None: 0;
80
81
  /**
81
82
  * Application exists and works but will not appear in any public catalog. New
82
83
  * applications start in this state, test applications will remain in this state.
83
84
  */
84
- Private = 1,
85
+ readonly Private: 1;
85
86
  /** Active applications that can appear in an catalog. */
86
- Public = 2,
87
+ readonly Public: 2;
87
88
  /**
88
89
  * Application disabled by the owner. All authorizations will be treated as
89
90
  * terminated while in this state. Owner can move back to private or public state.
90
91
  */
91
- Disabled = 3,
92
+ readonly Disabled: 3;
92
93
  /**
93
94
  * Application has been blocked by Bungie. It cannot be transitioned out of this
94
95
  * state by the owner. Authorizations are terminated when an application is in this
95
96
  * state.
96
97
  */
97
- Blocked = 4,
98
- }
98
+ readonly Blocked: 4;
99
+ };
100
+ export type ApplicationStatus = (typeof ApplicationStatus)[keyof typeof ApplicationStatus];
99
101
  export interface ApplicationDeveloper {
100
102
  readonly role: DeveloperRole;
101
103
  readonly apiEulaVersion: number;
102
104
  readonly user: UserInfoCard;
103
105
  }
104
- export declare const enum DeveloperRole {
105
- None = 0,
106
- Owner = 1,
107
- TeamMember = 2,
108
- }
106
+ export declare const DeveloperRole: {
107
+ readonly None: 0;
108
+ readonly Owner: 1;
109
+ readonly TeamMember: 2;
110
+ };
111
+ export type DeveloperRole = (typeof DeveloperRole)[keyof typeof DeveloperRole];
@@ -1,16 +1,16 @@
1
- export var OAuthApplicationType = {
1
+ export const OAuthApplicationType = {
2
2
  None: 0,
3
3
  Confidential: 1,
4
4
  Public: 2,
5
5
  };
6
- export var ApplicationStatus = {
6
+ export const ApplicationStatus = {
7
7
  None: 0,
8
8
  Private: 1,
9
9
  Public: 2,
10
10
  Disabled: 3,
11
11
  Blocked: 4,
12
12
  };
13
- export var DeveloperRole = {
13
+ export const DeveloperRole = {
14
14
  None: 0,
15
15
  Owner: 1,
16
16
  TeamMember: 2,