@anitrack/patreon-wrapper 1.2.1 → 1.2.7

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/README.md CHANGED
@@ -71,7 +71,10 @@ Clean Response Example
71
71
  note: '',
72
72
  currentEntitled: {
73
73
  status: 'active_patron',
74
- tierId: '12345678',
74
+ tier: {
75
+ id: '12345678',
76
+ title: 'Supporter 1'
77
+ },
75
78
  cents: 500, // 5 USD
76
79
  willPayCents: 500,
77
80
  lifetimeCents: 0,
package/lib/index.d.ts CHANGED
@@ -11,7 +11,10 @@ declare type PatronType = {
11
11
  note: string;
12
12
  currentEntitled: {
13
13
  status: string;
14
- tierId: number;
14
+ tier: {
15
+ id: number;
16
+ title: string;
17
+ };
15
18
  cents: number;
16
19
  willPayCents: number;
17
20
  lifetimeCents: number;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,aAAK,IAAI,GAAG;IACR,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,aAAK,UAAU,GAAG;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,OAAO,CAAA;IACnB,YAAY,EAAE;QACV,IAAI,EAAE,MAAM,CAAA;QACZ,eAAe,EAAE;YACb,MAAM,EAAE,MAAM,CAAA;YACd,MAAM,EAAE,MAAM,CAAA;YACd,KAAK,EAAE,MAAM,CAAA;YACb,YAAY,EAAE,MAAM,CAAA;YACpB,aAAa,EAAE,MAAM,CAAA;YACrB,WAAW,EAAE,IAAI,CAAA;YACjB,UAAU,EAAE,IAAI,CAAA;YAChB,UAAU,EAAE,IAAI,CAAA;SACnB,CAAA;KACJ,CAAA;IACD,eAAe,EAAE;QACb,OAAO,EAAE;YACL,EAAE,EAAE,MAAM,CAAA;Y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D,OAAO,EAAE;YACL,EAAE,EAAE,MAAM,CAAA;YACV,GAAG,EAAE,MAAM,CAAA;SACd,CAAA;KACJ,CAAA;CACJ,CAAA;AAED,qBAAa,OAAO;IAChB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAmD;IAEtE,OAAO,CAAC,MAAM,CAAC,YAAY,CAAQ;IACnC,OAAO,CAAC,MAAM,CAAC,WAAW,CAAQ;WAEpB,aAAa,CAAC,eAAe,EAAE,IAAI;mBAc5B,QAAQ;IAS7B,OAAO,CAAC,MAAM,CAAC,aAAa;WAOR,YAAY,CAAC,MAAM,GAAE,MAAM,EAAO;CAuEzD"}
package/lib/index.js CHANGED
@@ -32,10 +32,15 @@ class Patreon {
32
32
  }
33
33
  static async FetchPatrons(filter = []) {
34
34
  const res = await this.FetchAPI(this.CleanQueryURL(`campaigns/${this._CampaignID}/` +
35
- `members ? include = user, currently_entitled_tiers & fields[member] = campaign_lifetime_support_cents, currently_entitled_amount_cents, email, full_name, is_follower, last_charge_date, last_charge_status, lifetime_support_cents, next_charge_date, note, patron_status, pledge_cadence, pledge_relationship_start, will_pay_amount_cents & fields[user] = social_connections`));
35
+ `members ? include = user, currently_entitled_tiers & fields[member] = campaign_lifetime_support_cents, currently_entitled_amount_cents, email, full_name, is_follower, last_charge_date, last_charge_status, lifetime_support_cents, next_charge_date, note, patron_status, pledge_cadence, pledge_relationship_start, will_pay_amount_cents & fields[user] = social_connections & fields[tier] = title`));
36
36
  const Patrons = [];
37
37
  res.data.data.forEach((Patron) => {
38
- var include = res.data.included.find((includePatron) => includePatron.id == Patron.relationships.user.data.id);
38
+ // console.dir(Patron)
39
+ var socialInfo = res.data.included.find((includePatron) => includePatron.id == Patron.relationships.user.data.id &&
40
+ includePatron.type === 'user');
41
+ var tierInfo = res.data.included.find((includePatron) => includePatron.id ==
42
+ Patron.relationships.currently_entitled_tiers?.data[0]
43
+ ?.id && includePatron.type === 'tier');
39
44
  Patrons.push({
40
45
  displayId: Patron.relationships.user.data.id,
41
46
  displayName: Patron.attributes.full_name,
@@ -45,8 +50,10 @@ class Patreon {
45
50
  note: Patron.attributes.note,
46
51
  currentEntitled: {
47
52
  status: Patron.attributes.patron_status,
48
- tierId: Patron.relationships.currently_entitled_tiers
49
- ?.data[0]?.id,
53
+ tier: {
54
+ id: tierInfo.id,
55
+ title: tierInfo.attributes.title,
56
+ },
50
57
  cents: Patron.attributes
51
58
  .currently_entitled_amount_cents,
52
59
  willPayCents: Patron.attributes.will_pay_amount_cents,
@@ -62,10 +69,10 @@ class Patreon {
62
69
  url: Patron.relationships.user.links.related,
63
70
  },
64
71
  discord: {
65
- id: include.attributes.social_connections.discord
72
+ id: socialInfo.attributes.social_connections.discord
66
73
  .user_id,
67
74
  url: 'https://discordapp.com/users/' +
68
- include.attributes.social_connections.discord
75
+ socialInfo.attributes.social_connections.discord
69
76
  .user_id,
70
77
  },
71
78
  },
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAqCzB,MAAa,OAAO;IAMT,MAAM,CAAC,aAAa,CAAC,eAAqB;QAC7C,IAAI,CAAC,eAAe,CAAC,WAAW,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE;YAC7D,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAA;SAC9D;aAAM,IACH,OAAO,eAAe,CAAC,WAAW,IAAI,QAAQ;YAC9C,OAAO,eAAe,CAAC,UAAU,IAAI,QAAQ,EAC/C;YACE,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAA;SACzD;QAED,IAAI,CAAC,YAAY,GAAG,eAAe,CAAC,WAAW,CAAA;QAC/C,IAAI,CAAC,WAAW,GAAG,eAAe,CAAC,UAAU,CAAA;IACjD,CAAC;IAEO,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAW;QACrC,OAAO,MAAM,IAAA,eAAK,EAAC,IAAI,CAAC,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;wBACpC,YAAY,EAAE,MAAM,CAAC,UAAU,CAAC,qBAAqB;wBACrD,aAAa,EAAE,MAAM,CAAC,UAAU,CAAC,sBAAsB;wBACvD,WAAW,EACP,MAAM,CAAC,UAAU,CAAC,yBAAyB;wBAC/C,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,gBAAgB;wBAC9C,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC,gBAAgB;qBACjD;iBACJ;gBACD,eAAe,EAAE;oBACb,OAAO,EAAE;wBACL,EAAE,EAAE,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;wBACrC,GAAG,EAAE,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO;qBAC/C;oBACD,OAAO,EAAE;wBACL,EAAE,EAAE,UAAU,CAAC,UAAU,CAAC,kBAAkB,CAAC,OAAO;6BAC/C,OAAO;wBACZ,GAAG,EACC,+BAA+B;4BAC/B,UAAU,CAAC,UAAU,CAAC,kBAAkB,CAAC,OAAO;iCAC3C,OAAO;qBACnB;iBACJ;aACJ,CAAC,CAAA;QACN,CAAC,CAAC,CAAA;QACF,OAAO,OAAO,CAAA;IAClB,CAAC;;AAtGL,0BA2GC;AA1GkB,YAAI,GAAW,wCAAwC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anitrack/patreon-wrapper",
3
- "version": "1.2.1",
3
+ "version": "1.2.7",
4
4
  "description": "Discord Patreon wrapper for AniTrack",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib",
package/src/index.ts CHANGED
@@ -14,7 +14,10 @@ type PatronType = {
14
14
  note: string
15
15
  currentEntitled: {
16
16
  status: string
17
- tierId: number
17
+ tier: {
18
+ id: number
19
+ title: string
20
+ }
18
21
  cents: number
19
22
  willPayCents: number
20
23
  lifetimeCents: number
@@ -75,16 +78,26 @@ export class Patreon {
75
78
  const res: any = await this.FetchAPI(
76
79
  this.CleanQueryURL(
77
80
  `campaigns/${this._CampaignID}/` +
78
- `members ? include = user, currently_entitled_tiers & fields[member] = campaign_lifetime_support_cents, currently_entitled_amount_cents, email, full_name, is_follower, last_charge_date, last_charge_status, lifetime_support_cents, next_charge_date, note, patron_status, pledge_cadence, pledge_relationship_start, will_pay_amount_cents & fields[user] = social_connections`
81
+ `members ? include = user, currently_entitled_tiers & fields[member] = campaign_lifetime_support_cents, currently_entitled_amount_cents, email, full_name, is_follower, last_charge_date, last_charge_status, lifetime_support_cents, next_charge_date, note, patron_status, pledge_cadence, pledge_relationship_start, will_pay_amount_cents & fields[user] = social_connections & fields[tier] = title`
79
82
  )
80
83
  )
81
84
 
82
85
  const Patrons: Array<PatronType> = []
83
86
 
84
87
  res.data.data.forEach((Patron: any) => {
85
- var include = res.data.included.find(
88
+ // console.dir(Patron)
89
+
90
+ var socialInfo = res.data.included.find(
91
+ (includePatron: any) =>
92
+ includePatron.id == Patron.relationships.user.data.id &&
93
+ includePatron.type === 'user'
94
+ )
95
+
96
+ var tierInfo = res.data.included.find(
86
97
  (includePatron: any) =>
87
- includePatron.id == Patron.relationships.user.data.id
98
+ includePatron.id ==
99
+ Patron.relationships.currently_entitled_tiers?.data[0]
100
+ ?.id && includePatron.type === 'tier'
88
101
  )
89
102
 
90
103
  Patrons.push({
@@ -96,8 +109,10 @@ export class Patreon {
96
109
  note: Patron.attributes.note,
97
110
  currentEntitled: {
98
111
  status: Patron.attributes.patron_status,
99
- tierId: Patron.relationships.currently_entitled_tiers
100
- ?.data[0]?.id,
112
+ tier: {
113
+ id: tierInfo.id,
114
+ title: tierInfo.attributes.title,
115
+ },
101
116
  cents: Patron.attributes
102
117
  .currently_entitled_amount_cents,
103
118
  willPayCents: Patron.attributes.will_pay_amount_cents,
@@ -114,11 +129,11 @@ export class Patreon {
114
129
  url: Patron.relationships.user.links.related,
115
130
  },
116
131
  discord: {
117
- id: include.attributes.social_connections.discord
132
+ id: socialInfo.attributes.social_connections.discord
118
133
  .user_id,
119
134
  url:
120
135
  'https://discordapp.com/users/' +
121
- include.attributes.social_connections.discord
136
+ socialInfo.attributes.social_connections.discord
122
137
  .user_id,
123
138
  },
124
139
  },