@dendotdev/grunt 1.0.6 → 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 +6 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1194,20 +1194,17 @@ 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 formattedPlayerList = playerIds.map((id) => `xuid(${id})`).join(",");
|
|
1209
1206
|
return this.get(
|
|
1210
|
-
`/hi/careerranks/${careerPathId}
|
|
1207
|
+
`/hi/players/xuid(${player})/rewardtracks/careerranks/${careerPathId}`,
|
|
1211
1208
|
{ useClearance: true }
|
|
1212
1209
|
);
|
|
1213
1210
|
}
|