@posiwise/admin-module 0.0.241 → 0.0.243
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/package.json
CHANGED
|
@@ -4238,13 +4238,13 @@ declare class AmbassadorPayoutsTabsComponent {
|
|
|
4238
4238
|
}
|
|
4239
4239
|
|
|
4240
4240
|
/**
|
|
4241
|
-
* Read-only
|
|
4242
|
-
*
|
|
4241
|
+
* Read-only view over the ambassador payout audit trail (ticket #4194).
|
|
4242
|
+
*
|
|
4243
|
+
* No mutating actions by design — 'pending' rows are retried by the next
|
|
4244
|
+
* monthly AmbassadorPayoutWorker run.
|
|
4243
4245
|
*
|
|
4244
|
-
*
|
|
4245
|
-
*
|
|
4246
|
-
* what had actually been paid and what had failed. There are deliberately no
|
|
4247
|
-
* mutating actions here — 'pending' rows are retried by the next monthly run.
|
|
4246
|
+
* Open to super admins and master-subscription admins; main-api scopes a
|
|
4247
|
+
* master-subscription admin to their own master subscription and its children.
|
|
4248
4248
|
*/
|
|
4249
4249
|
declare class AmbassadorPayoutsListComponent extends AppBaseComponent {
|
|
4250
4250
|
private readonly ambassadorPayoutService;
|
|
@@ -4304,6 +4304,20 @@ declare class AmbassadorPayoutsListComponent extends AppBaseComponent {
|
|
|
4304
4304
|
protected page: number;
|
|
4305
4305
|
protected sortField: string;
|
|
4306
4306
|
protected sortOrder: string;
|
|
4307
|
+
/**
|
|
4308
|
+
* The tenancy sent to main-api as `subscription_id` — the param every
|
|
4309
|
+
* PosiWise admin view uses for it. Inside /admin the selected subscription
|
|
4310
|
+
* IS the caller's master subscription — the Admin menu only renders once the
|
|
4311
|
+
* current product grants SubscriptionSuperAdmin/SuperOwner — which is the
|
|
4312
|
+
* same source the admin Users and Subscriptions lists read.
|
|
4313
|
+
*
|
|
4314
|
+
* A getter rather than a field or an ngOnInit snapshot:
|
|
4315
|
+
* `selectedSubscription` is mutable static state that the product/tenant
|
|
4316
|
+
* switcher rewrites, so a value captured once would keep sending the
|
|
4317
|
+
* previous tenant's id after a switch. Reading it per request also removes
|
|
4318
|
+
* any ordering assumption about when the sidebar resolves the selection.
|
|
4319
|
+
*/
|
|
4320
|
+
private get masterSubscriptionId();
|
|
4307
4321
|
data: AmbassadorPayoutListResponse;
|
|
4308
4322
|
/**
|
|
4309
4323
|
* Status options are served by main-api rather than hardcoded here, so they
|
|
@@ -4428,6 +4442,11 @@ declare class AmbassadorPayoutDetailsComponent extends AppBaseComponent implemen
|
|
|
4428
4442
|
loading: boolean;
|
|
4429
4443
|
isLoaded: boolean;
|
|
4430
4444
|
payout: AmbassadorPayoutDetail;
|
|
4445
|
+
/**
|
|
4446
|
+
* Tenancy for main-api — see the list view for why this is sent, and why it
|
|
4447
|
+
* is read per request rather than captured once.
|
|
4448
|
+
*/
|
|
4449
|
+
private get masterSubscriptionId();
|
|
4431
4450
|
constructor(ambassadorPayoutService: AmbassadorPayoutService, injector: Injector, cdr: ChangeDetectorRef);
|
|
4432
4451
|
ngOnInit(): void;
|
|
4433
4452
|
/** Mirrors the list's mapping so a status reads identically in both views. */
|