@posiwise/admin-module 0.0.241 → 0.0.242
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
|
@@ -4245,6 +4245,10 @@ declare class AmbassadorPayoutsTabsComponent {
|
|
|
4245
4245
|
* and Wise and records every attempt; until this view there was no way to see
|
|
4246
4246
|
* what had actually been paid and what had failed. There are deliberately no
|
|
4247
4247
|
* mutating actions here — 'pending' rows are retried by the next monthly run.
|
|
4248
|
+
*
|
|
4249
|
+
* Open to super admins and master-subscription admins. main-api does the
|
|
4250
|
+
* scoping: a master-subscription admin sees only their own master subscription
|
|
4251
|
+
* and its children, a super admin the whole shard (review of #4194).
|
|
4248
4252
|
*/
|
|
4249
4253
|
declare class AmbassadorPayoutsListComponent extends AppBaseComponent {
|
|
4250
4254
|
private readonly ambassadorPayoutService;
|
|
@@ -4299,11 +4303,30 @@ declare class AmbassadorPayoutsListComponent extends AppBaseComponent {
|
|
|
4299
4303
|
searchText: string;
|
|
4300
4304
|
selectedStatuses: string[];
|
|
4301
4305
|
selectedProviders: string[];
|
|
4306
|
+
/**
|
|
4307
|
+
* Single-valued, unlike the two multiselects beside it: main-api's
|
|
4308
|
+
* subscription_id filter takes one id, and this mirrors the existing
|
|
4309
|
+
* "Filter by subscription" control on the admin credentials list.
|
|
4310
|
+
*/
|
|
4311
|
+
selectedSubscriptionId: number | null;
|
|
4302
4312
|
periodFrom: Date;
|
|
4303
4313
|
periodTo: Date;
|
|
4304
4314
|
protected page: number;
|
|
4305
4315
|
protected sortField: string;
|
|
4306
4316
|
protected sortOrder: string;
|
|
4317
|
+
/**
|
|
4318
|
+
* The tenancy sent to main-api. Inside /admin the selected subscription IS
|
|
4319
|
+
* the caller's master subscription — the Admin menu only renders once the
|
|
4320
|
+
* current product grants SubscriptionSuperAdmin/SuperOwner — which is the
|
|
4321
|
+
* same source the admin Users and Subscriptions lists read.
|
|
4322
|
+
*
|
|
4323
|
+
* A getter rather than a field or an ngOnInit snapshot:
|
|
4324
|
+
* `selectedSubscription` is mutable static state that the product/tenant
|
|
4325
|
+
* switcher rewrites, so a value captured once would keep sending the
|
|
4326
|
+
* previous tenant's id after a switch. Reading it per request also removes
|
|
4327
|
+
* any ordering assumption about when the sidebar resolves the selection.
|
|
4328
|
+
*/
|
|
4329
|
+
private get masterSubscriptionId();
|
|
4307
4330
|
data: AmbassadorPayoutListResponse;
|
|
4308
4331
|
/**
|
|
4309
4332
|
* Status options are served by main-api rather than hardcoded here, so they
|
|
@@ -4318,6 +4341,16 @@ declare class AmbassadorPayoutsListComponent extends AppBaseComponent {
|
|
|
4318
4341
|
value: string;
|
|
4319
4342
|
label: string;
|
|
4320
4343
|
}[];
|
|
4344
|
+
/**
|
|
4345
|
+
* Served by main-api from the caller's own payout scope, so a master
|
|
4346
|
+
* subscription admin only ever sees their master and its children here
|
|
4347
|
+
* (review of #4194). Empty for a tenancy with a single subscription, which
|
|
4348
|
+
* is why the control hides itself in that case — see the template.
|
|
4349
|
+
*/
|
|
4350
|
+
get subscriptionOptions(): {
|
|
4351
|
+
value: number;
|
|
4352
|
+
label: string;
|
|
4353
|
+
}[];
|
|
4321
4354
|
/** Ordered so the two states an operator acts on (failed, pending) read first. */
|
|
4322
4355
|
get summaryTiles(): {
|
|
4323
4356
|
count: number;
|
|
@@ -4428,6 +4461,11 @@ declare class AmbassadorPayoutDetailsComponent extends AppBaseComponent implemen
|
|
|
4428
4461
|
loading: boolean;
|
|
4429
4462
|
isLoaded: boolean;
|
|
4430
4463
|
payout: AmbassadorPayoutDetail;
|
|
4464
|
+
/**
|
|
4465
|
+
* Tenancy for main-api — see the list view for why this is sent, and why it
|
|
4466
|
+
* is read per request rather than captured once.
|
|
4467
|
+
*/
|
|
4468
|
+
private get masterSubscriptionId();
|
|
4431
4469
|
constructor(ambassadorPayoutService: AmbassadorPayoutService, injector: Injector, cdr: ChangeDetectorRef);
|
|
4432
4470
|
ngOnInit(): void;
|
|
4433
4471
|
/** Mirrors the list's mapping so a status reads identically in both views. */
|