@flashbacktech/tsclient 0.4.58 → 0.4.60
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 +13 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -3
- package/dist/index.d.ts +8 -3
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -410,9 +410,7 @@ interface InviteOrgRequest {
|
|
|
410
410
|
firstName: string;
|
|
411
411
|
lastName?: string;
|
|
412
412
|
};
|
|
413
|
-
/**
|
|
414
|
-
subscriptionName?: string;
|
|
415
|
-
/** Comped credit grant in USD micros; overrides the plan's default grant. */
|
|
413
|
+
/** Comped starting credit grant in USD micros; overrides the free tier's default grant. */
|
|
416
414
|
creditsMicros?: number;
|
|
417
415
|
}
|
|
418
416
|
interface InviteOrgResult {
|
|
@@ -2435,6 +2433,13 @@ declare class ReferralsClient {
|
|
|
2435
2433
|
* already void. Platform-admin only.
|
|
2436
2434
|
*/
|
|
2437
2435
|
voidRedemption(redemptionId: string): Promise<void>;
|
|
2436
|
+
/**
|
|
2437
|
+
* Force-qualify a PENDING non-reseller redemption: grants the snapshotted
|
|
2438
|
+
* referrer reward + referred welcome credit immediately, bypassing the spend
|
|
2439
|
+
* threshold. Fails with 409 `not_pending` (missing/qualified/void) or 400
|
|
2440
|
+
* `reseller_code`. Platform-admin only. Returns the updated redemption.
|
|
2441
|
+
*/
|
|
2442
|
+
qualifyRedemption(redemptionId: string): Promise<ReferralRedemption>;
|
|
2438
2443
|
}
|
|
2439
2444
|
|
|
2440
2445
|
/** One org associated to a reseller, with gross + commission rollups. */
|
package/dist/index.d.ts
CHANGED
|
@@ -410,9 +410,7 @@ interface InviteOrgRequest {
|
|
|
410
410
|
firstName: string;
|
|
411
411
|
lastName?: string;
|
|
412
412
|
};
|
|
413
|
-
/**
|
|
414
|
-
subscriptionName?: string;
|
|
415
|
-
/** Comped credit grant in USD micros; overrides the plan's default grant. */
|
|
413
|
+
/** Comped starting credit grant in USD micros; overrides the free tier's default grant. */
|
|
416
414
|
creditsMicros?: number;
|
|
417
415
|
}
|
|
418
416
|
interface InviteOrgResult {
|
|
@@ -2435,6 +2433,13 @@ declare class ReferralsClient {
|
|
|
2435
2433
|
* already void. Platform-admin only.
|
|
2436
2434
|
*/
|
|
2437
2435
|
voidRedemption(redemptionId: string): Promise<void>;
|
|
2436
|
+
/**
|
|
2437
|
+
* Force-qualify a PENDING non-reseller redemption: grants the snapshotted
|
|
2438
|
+
* referrer reward + referred welcome credit immediately, bypassing the spend
|
|
2439
|
+
* threshold. Fails with 409 `not_pending` (missing/qualified/void) or 400
|
|
2440
|
+
* `reseller_code`. Platform-admin only. Returns the updated redemption.
|
|
2441
|
+
*/
|
|
2442
|
+
qualifyRedemption(redemptionId: string): Promise<ReferralRedemption>;
|
|
2438
2443
|
}
|
|
2439
2444
|
|
|
2440
2445
|
/** One org associated to a reseller, with gross + commission rollups. */
|
package/dist/index.js
CHANGED
|
@@ -1311,6 +1311,19 @@ var ReferralsClient = class {
|
|
|
1311
1311
|
async voidRedemption(redemptionId) {
|
|
1312
1312
|
await this.http.post(`/admin/referrals/${redemptionId}/void`, { body: {} });
|
|
1313
1313
|
}
|
|
1314
|
+
/**
|
|
1315
|
+
* Force-qualify a PENDING non-reseller redemption: grants the snapshotted
|
|
1316
|
+
* referrer reward + referred welcome credit immediately, bypassing the spend
|
|
1317
|
+
* threshold. Fails with 409 `not_pending` (missing/qualified/void) or 400
|
|
1318
|
+
* `reseller_code`. Platform-admin only. Returns the updated redemption.
|
|
1319
|
+
*/
|
|
1320
|
+
async qualifyRedemption(redemptionId) {
|
|
1321
|
+
const res = await this.http.post(
|
|
1322
|
+
`/admin/referrals/${redemptionId}/qualify`,
|
|
1323
|
+
{ body: {} }
|
|
1324
|
+
);
|
|
1325
|
+
return unwrapData(res);
|
|
1326
|
+
}
|
|
1314
1327
|
};
|
|
1315
1328
|
|
|
1316
1329
|
// src/modules/reseller/ResellerClient.ts
|