@wise-old-man/utils 4.0.12 → 4.0.14
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/dist/cjs/index.cjs +0 -2
- package/dist/es/index.js +0 -2
- package/dist/es/index.mjs +0 -2
- package/dist/index.d.ts +2 -17
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -940,7 +940,6 @@ const Skill = {
|
|
|
940
940
|
SAILING: 'sailing'
|
|
941
941
|
};
|
|
942
942
|
const Activity = {
|
|
943
|
-
LEAGUE_POINTS: 'league_points',
|
|
944
943
|
BOUNTY_HUNTER_HUNTER: 'bounty_hunter_hunter',
|
|
945
944
|
BOUNTY_HUNTER_ROGUE: 'bounty_hunter_rogue',
|
|
946
945
|
CLUE_SCROLLS_ALL: 'clue_scrolls_all',
|
|
@@ -2191,7 +2190,6 @@ const BossProps = mapValues({
|
|
|
2191
2190
|
[Boss.ZULRAH]: { name: 'Zulrah' }
|
|
2192
2191
|
}, props => (Object.assign(Object.assign({}, props), { type: exports.MetricType.BOSS, measure: exports.MetricMeasure.KILLS, isMembers: 'isMembers' in props ? props.isMembers : true, minimumValue: 'minimumValue' in props ? props.minimumValue : 5 })));
|
|
2193
2192
|
const ActivityProps = mapValues({
|
|
2194
|
-
[Activity.LEAGUE_POINTS]: { name: 'League Points', minimumValue: 100 },
|
|
2195
2193
|
[Activity.BOUNTY_HUNTER_HUNTER]: { name: 'Bounty Hunter (Hunter)', minimumValue: 2 },
|
|
2196
2194
|
[Activity.BOUNTY_HUNTER_ROGUE]: { name: 'Bounty Hunter (Rogue)', minimumValue: 2 },
|
|
2197
2195
|
[Activity.CLUE_SCROLLS_ALL]: { name: 'Clue Scrolls (All)' },
|
package/dist/es/index.js
CHANGED
|
@@ -938,7 +938,6 @@ const Skill = {
|
|
|
938
938
|
SAILING: 'sailing'
|
|
939
939
|
};
|
|
940
940
|
const Activity = {
|
|
941
|
-
LEAGUE_POINTS: 'league_points',
|
|
942
941
|
BOUNTY_HUNTER_HUNTER: 'bounty_hunter_hunter',
|
|
943
942
|
BOUNTY_HUNTER_ROGUE: 'bounty_hunter_rogue',
|
|
944
943
|
CLUE_SCROLLS_ALL: 'clue_scrolls_all',
|
|
@@ -2189,7 +2188,6 @@ const BossProps = mapValues({
|
|
|
2189
2188
|
[Boss.ZULRAH]: { name: 'Zulrah' }
|
|
2190
2189
|
}, props => (Object.assign(Object.assign({}, props), { type: MetricType.BOSS, measure: MetricMeasure.KILLS, isMembers: 'isMembers' in props ? props.isMembers : true, minimumValue: 'minimumValue' in props ? props.minimumValue : 5 })));
|
|
2191
2190
|
const ActivityProps = mapValues({
|
|
2192
|
-
[Activity.LEAGUE_POINTS]: { name: 'League Points', minimumValue: 100 },
|
|
2193
2191
|
[Activity.BOUNTY_HUNTER_HUNTER]: { name: 'Bounty Hunter (Hunter)', minimumValue: 2 },
|
|
2194
2192
|
[Activity.BOUNTY_HUNTER_ROGUE]: { name: 'Bounty Hunter (Rogue)', minimumValue: 2 },
|
|
2195
2193
|
[Activity.CLUE_SCROLLS_ALL]: { name: 'Clue Scrolls (All)' },
|
package/dist/es/index.mjs
CHANGED
|
@@ -938,7 +938,6 @@ const Skill = {
|
|
|
938
938
|
SAILING: 'sailing'
|
|
939
939
|
};
|
|
940
940
|
const Activity = {
|
|
941
|
-
LEAGUE_POINTS: 'league_points',
|
|
942
941
|
BOUNTY_HUNTER_HUNTER: 'bounty_hunter_hunter',
|
|
943
942
|
BOUNTY_HUNTER_ROGUE: 'bounty_hunter_rogue',
|
|
944
943
|
CLUE_SCROLLS_ALL: 'clue_scrolls_all',
|
|
@@ -2189,7 +2188,6 @@ const BossProps = mapValues({
|
|
|
2189
2188
|
[Boss.ZULRAH]: { name: 'Zulrah' }
|
|
2190
2189
|
}, props => (Object.assign(Object.assign({}, props), { type: MetricType.BOSS, measure: MetricMeasure.KILLS, isMembers: 'isMembers' in props ? props.isMembers : true, minimumValue: 'minimumValue' in props ? props.minimumValue : 5 })));
|
|
2191
2190
|
const ActivityProps = mapValues({
|
|
2192
|
-
[Activity.LEAGUE_POINTS]: { name: 'League Points', minimumValue: 100 },
|
|
2193
2191
|
[Activity.BOUNTY_HUNTER_HUNTER]: { name: 'Bounty Hunter (Hunter)', minimumValue: 2 },
|
|
2194
2192
|
[Activity.BOUNTY_HUNTER_ROGUE]: { name: 'Bounty Hunter (Rogue)', minimumValue: 2 },
|
|
2195
2193
|
[Activity.CLUE_SCROLLS_ALL]: { name: 'Clue Scrolls (All)' },
|
package/dist/index.d.ts
CHANGED
|
@@ -42,7 +42,6 @@ declare const Skill: {
|
|
|
42
42
|
};
|
|
43
43
|
type Skill = (typeof Skill)[keyof typeof Skill];
|
|
44
44
|
declare const Activity: {
|
|
45
|
-
readonly LEAGUE_POINTS: "league_points";
|
|
46
45
|
readonly BOUNTY_HUNTER_HUNTER: "bounty_hunter_hunter";
|
|
47
46
|
readonly BOUNTY_HUNTER_ROGUE: "bounty_hunter_rogue";
|
|
48
47
|
readonly CLUE_SCROLLS_ALL: "clue_scrolls_all";
|
|
@@ -209,7 +208,6 @@ declare const Metric: {
|
|
|
209
208
|
readonly YAMA: "yama";
|
|
210
209
|
readonly ZALCANO: "zalcano";
|
|
211
210
|
readonly ZULRAH: "zulrah";
|
|
212
|
-
readonly LEAGUE_POINTS: "league_points";
|
|
213
211
|
readonly BOUNTY_HUNTER_HUNTER: "bounty_hunter_hunter";
|
|
214
212
|
readonly BOUNTY_HUNTER_ROGUE: "bounty_hunter_rogue";
|
|
215
213
|
readonly CLUE_SCROLLS_ALL: "clue_scrolls_all";
|
|
@@ -259,7 +257,6 @@ declare const ACTIVITIES: Activity[];
|
|
|
259
257
|
declare const COMPUTED_METRICS: ComputedMetric[];
|
|
260
258
|
|
|
261
259
|
interface Snapshot {
|
|
262
|
-
id: number;
|
|
263
260
|
playerId: number;
|
|
264
261
|
importedAt: Date | null;
|
|
265
262
|
createdAt: Date;
|
|
@@ -314,8 +311,6 @@ interface Snapshot {
|
|
|
314
311
|
constructionExperience: number;
|
|
315
312
|
sailingRank: number;
|
|
316
313
|
sailingExperience: number;
|
|
317
|
-
league_pointsRank: number;
|
|
318
|
-
league_pointsScore: number;
|
|
319
314
|
bounty_hunter_hunterRank: number;
|
|
320
315
|
bounty_hunter_hunterScore: number;
|
|
321
316
|
bounty_hunter_rogueRank: number;
|
|
@@ -1284,8 +1279,6 @@ interface NameChange {
|
|
|
1284
1279
|
interface Participation {
|
|
1285
1280
|
playerId: number;
|
|
1286
1281
|
competitionId: number;
|
|
1287
|
-
startSnapshotId: number | null;
|
|
1288
|
-
endSnapshotId: number | null;
|
|
1289
1282
|
startSnapshotDate: Date | null;
|
|
1290
1283
|
endSnapshotDate: Date | null;
|
|
1291
1284
|
teamName: string | null;
|
|
@@ -1378,7 +1371,6 @@ interface Player {
|
|
|
1378
1371
|
updatedAt: Date | null;
|
|
1379
1372
|
lastChangedAt: Date | null;
|
|
1380
1373
|
lastImportedAt: Date | null;
|
|
1381
|
-
latestSnapshotId: number | null;
|
|
1382
1374
|
latestSnapshotDate: Date | null;
|
|
1383
1375
|
}
|
|
1384
1376
|
|
|
@@ -1480,7 +1472,7 @@ interface CompetitionResponse extends Omit<Competition, 'verificationHash' | 'cr
|
|
|
1480
1472
|
* they often include transformations, additional properties or sensitive field omissions.
|
|
1481
1473
|
*/
|
|
1482
1474
|
|
|
1483
|
-
type ParticipationResponse = Omit<Participation, '
|
|
1475
|
+
type ParticipationResponse = Omit<Participation, 'startSnapshotDate' | 'endSnapshotDate'>;
|
|
1484
1476
|
|
|
1485
1477
|
/**
|
|
1486
1478
|
* Response types are used to format the data returned by the API.
|
|
@@ -1489,7 +1481,7 @@ type ParticipationResponse = Omit<Participation, 'startSnapshotId' | 'endSnapsho
|
|
|
1489
1481
|
* they often include transformations, additional properties or sensitive field omissions.
|
|
1490
1482
|
*/
|
|
1491
1483
|
|
|
1492
|
-
type PlayerResponse = Omit<Player, '
|
|
1484
|
+
type PlayerResponse = Omit<Player, 'latestSnapshotDate'>;
|
|
1493
1485
|
|
|
1494
1486
|
/**
|
|
1495
1487
|
* Response types are used to format the data returned by the API.
|
|
@@ -1537,7 +1529,6 @@ interface ComputeMetricData {
|
|
|
1537
1529
|
value: number;
|
|
1538
1530
|
}
|
|
1539
1531
|
interface SnapshotResponse {
|
|
1540
|
-
id: number;
|
|
1541
1532
|
playerId: number;
|
|
1542
1533
|
createdAt: Date;
|
|
1543
1534
|
importedAt: Date | null;
|
|
@@ -3144,12 +3135,6 @@ declare const MetricProps: {
|
|
|
3144
3135
|
type: MetricType;
|
|
3145
3136
|
measure: MetricMeasure;
|
|
3146
3137
|
};
|
|
3147
|
-
readonly league_points: {
|
|
3148
|
-
name: string;
|
|
3149
|
-
minimumValue: number;
|
|
3150
|
-
type: MetricType;
|
|
3151
|
-
measure: MetricMeasure;
|
|
3152
|
-
};
|
|
3153
3138
|
readonly bounty_hunter_hunter: {
|
|
3154
3139
|
name: string;
|
|
3155
3140
|
minimumValue: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wise-old-man/utils",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.14",
|
|
4
4
|
"description": "A JavaScript/TypeScript client that interfaces and consumes the Wise Old Man API, an API that tracks and measures players' progress in Old School Runescape.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wiseoldman",
|