@taskeren/bungie-api-ts 5.10.2 → 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/platform.d.ts CHANGED
@@ -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;
package/platform.js CHANGED
@@ -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,