@flashbacktech/tsclient 0.4.58 → 0.4.59

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.cts CHANGED
@@ -2435,6 +2435,13 @@ declare class ReferralsClient {
2435
2435
  * already void. Platform-admin only.
2436
2436
  */
2437
2437
  voidRedemption(redemptionId: string): Promise<void>;
2438
+ /**
2439
+ * Force-qualify a PENDING non-reseller redemption: grants the snapshotted
2440
+ * referrer reward + referred welcome credit immediately, bypassing the spend
2441
+ * threshold. Fails with 409 `not_pending` (missing/qualified/void) or 400
2442
+ * `reseller_code`. Platform-admin only. Returns the updated redemption.
2443
+ */
2444
+ qualifyRedemption(redemptionId: string): Promise<ReferralRedemption>;
2438
2445
  }
2439
2446
 
2440
2447
  /** One org associated to a reseller, with gross + commission rollups. */
package/dist/index.d.ts CHANGED
@@ -2435,6 +2435,13 @@ declare class ReferralsClient {
2435
2435
  * already void. Platform-admin only.
2436
2436
  */
2437
2437
  voidRedemption(redemptionId: string): Promise<void>;
2438
+ /**
2439
+ * Force-qualify a PENDING non-reseller redemption: grants the snapshotted
2440
+ * referrer reward + referred welcome credit immediately, bypassing the spend
2441
+ * threshold. Fails with 409 `not_pending` (missing/qualified/void) or 400
2442
+ * `reseller_code`. Platform-admin only. Returns the updated redemption.
2443
+ */
2444
+ qualifyRedemption(redemptionId: string): Promise<ReferralRedemption>;
2438
2445
  }
2439
2446
 
2440
2447
  /** 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