@dendotdev/grunt 1.0.5 → 1.0.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/dist/index.d.mts +35 -22
- package/dist/index.d.ts +35 -22
- package/dist/index.js +11 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1194,20 +1194,18 @@ var EconomyModule = class extends ModuleBase {
|
|
|
1194
1194
|
);
|
|
1195
1195
|
}
|
|
1196
1196
|
/**
|
|
1197
|
-
* Get career rank for
|
|
1197
|
+
* Get career rank for a player.
|
|
1198
1198
|
*
|
|
1199
|
-
* @param
|
|
1199
|
+
* @param player - Player's numeric XUID
|
|
1200
1200
|
* @param careerPathId - Career path identifier
|
|
1201
|
-
* @returns
|
|
1201
|
+
* @returns Reward track with career rank progress
|
|
1202
1202
|
*/
|
|
1203
|
-
getPlayerCareerRank(
|
|
1204
|
-
|
|
1205
|
-
throw new Error("playerIds cannot be empty");
|
|
1206
|
-
}
|
|
1203
|
+
getPlayerCareerRank(player, careerPathId) {
|
|
1204
|
+
this.assertNotEmpty(player, "player");
|
|
1207
1205
|
this.assertNotEmpty(careerPathId, "careerPathId");
|
|
1208
|
-
const playersQuery = playerIds.map((id) => `players=xuid(${id})`).join("&");
|
|
1209
1206
|
return this.get(
|
|
1210
|
-
`/hi/careerranks/${careerPathId}
|
|
1207
|
+
`/hi/players/xuid(${player})/rewardtracks/careerranks/${careerPathId}`,
|
|
1208
|
+
{ useClearance: true }
|
|
1211
1209
|
);
|
|
1212
1210
|
}
|
|
1213
1211
|
};
|
|
@@ -1325,7 +1323,10 @@ var GameCmsModule = class extends ModuleBase {
|
|
|
1325
1323
|
*/
|
|
1326
1324
|
getCareerRanks(careerPathId) {
|
|
1327
1325
|
this.assertNotEmpty(careerPathId, "careerPathId");
|
|
1328
|
-
return this.get(
|
|
1326
|
+
return this.get(
|
|
1327
|
+
`/hi/Progression/file/RewardTracks/CareerRanks/${careerPathId}.json`,
|
|
1328
|
+
{ useClearance: true }
|
|
1329
|
+
);
|
|
1329
1330
|
}
|
|
1330
1331
|
/**
|
|
1331
1332
|
* Get the season calendar.
|