@flashbacktech/tsclient 0.4.57 → 0.4.58
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.cjs +17 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +31 -1
- package/dist/index.d.ts +31 -1
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1296,6 +1296,23 @@ var ReferralsClient = class {
|
|
|
1296
1296
|
);
|
|
1297
1297
|
return unwrapData(res);
|
|
1298
1298
|
}
|
|
1299
|
+
// --- Platform-admin only ---
|
|
1300
|
+
/**
|
|
1301
|
+
* Platform-wide referral monitor: rollup stats + every redemption (with the
|
|
1302
|
+
* code string and both org names). Returns 403 unless platform admin.
|
|
1303
|
+
*/
|
|
1304
|
+
async adminOverview() {
|
|
1305
|
+
const res = await this.http.get("/admin/referrals");
|
|
1306
|
+
return unwrapData(res);
|
|
1307
|
+
}
|
|
1308
|
+
/**
|
|
1309
|
+
* Void a PENDING redemption (abuse control) so it can never qualify. Fails
|
|
1310
|
+
* with 409 `not_pending` if the redemption is missing, already qualified, or
|
|
1311
|
+
* already void. Platform-admin only.
|
|
1312
|
+
*/
|
|
1313
|
+
async voidRedemption(redemptionId) {
|
|
1314
|
+
await this.http.post(`/admin/referrals/${redemptionId}/void`, { body: {} });
|
|
1315
|
+
}
|
|
1299
1316
|
};
|
|
1300
1317
|
|
|
1301
1318
|
// src/modules/reseller/ResellerClient.ts
|