@posiwise/admin-module 0.0.234 → 0.0.236
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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@posiwise/admin-module",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.236",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^21.2.
|
|
6
|
-
"@angular/core": "^21.2.
|
|
5
|
+
"@angular/common": "^21.2.19",
|
|
6
|
+
"@angular/core": "^21.2.19",
|
|
7
7
|
"ngx-json-viewer": "^3.2.1",
|
|
8
8
|
"ngx-quill": "^27.0.0"
|
|
9
9
|
},
|
|
@@ -3,8 +3,7 @@ import { Injector, OnInit, OnDestroy, ChangeDetectorRef, AfterViewInit, QueryLis
|
|
|
3
3
|
import { PermissionService, AuthService, CommonService, ProductService, SubscriptionService, NgbDateCustomParserFormatter, TagService, TipsService, GroupService, CustomToastService, WindowService, AhoyService, UserService, FeatureFlagService } from '@posiwise/common-services';
|
|
4
4
|
import { MenuItem, LazyLoadEvent, SelectItem } from 'primeng/api';
|
|
5
5
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
6
|
-
import
|
|
7
|
-
import { AdminService, PayoutProvider, McpOauthClient, McpOauthClientService, AdminDataService } from '@posiwise/admin-module-utils';
|
|
6
|
+
import { AdminService, McpOauthClient, McpOauthClientService, AdminDataService } from '@posiwise/admin-module-utils';
|
|
8
7
|
import * as i127 from '@posiwise/shared-components';
|
|
9
8
|
import { ConfirmDialogService, PermissionTreeComponent, CollapsibleSidebarService, PasswordValidationComponent } from '@posiwise/shared-components';
|
|
10
9
|
import * as _angular_forms from '@angular/forms';
|
|
@@ -2221,33 +2220,9 @@ declare class AgentDetailsComponent extends AppBaseComponent implements OnInit,
|
|
|
2221
2220
|
agentId: number;
|
|
2222
2221
|
allUsers: any[];
|
|
2223
2222
|
filteredUsers: any[];
|
|
2224
|
-
readonly payoutProviders: _posiwise_admin_module_utils.PayoutProviderDefinition[];
|
|
2225
|
-
/** False when the API returns a provider this build does not know. */
|
|
2226
|
-
payoutProviderSupported: boolean;
|
|
2227
|
-
/**
|
|
2228
|
-
* AI54 loading gate. The provider control defaults to PayPal, so rendering
|
|
2229
|
-
* it before the agent resolves shows a confident "PayPal" for an ambassador
|
|
2230
|
-
* who is actually on another rail — a blank input reads as "not loaded", a
|
|
2231
|
-
* populated dropdown reads as fact.
|
|
2232
|
-
*/
|
|
2233
|
-
payoutLoaded: boolean;
|
|
2234
2223
|
constructor(adminService: AdminService, groupService: GroupService, config: NgbDatepickerConfig, injector: Injector, cdr: ChangeDetectorRef);
|
|
2235
2224
|
ngOnInit(): void;
|
|
2236
2225
|
private getAgentsDetails;
|
|
2237
|
-
/**
|
|
2238
|
-
* Populates the provider dropdown + its destination fields from the API.
|
|
2239
|
-
*
|
|
2240
|
-
* A provider this build does not know (backend shipped a third rail first)
|
|
2241
|
-
* must NOT be coerced to PayPal: doing so would render a blank "PayPal
|
|
2242
|
-
* email" box as if it were the agent's destination and overwrite their real
|
|
2243
|
-
* bank details on save. Instead the payout section is left unvalidated and
|
|
2244
|
-
* excluded from the update payload.
|
|
2245
|
-
*/
|
|
2246
|
-
private applyPayoutSelection;
|
|
2247
|
-
/** Re-points `required` at the newly selected provider's fields, so the
|
|
2248
|
-
* hidden provider's inputs can never block submission. */
|
|
2249
|
-
onPayoutProviderChange(provider: PayoutProvider): void;
|
|
2250
|
-
get payoutFields(): _posiwise_admin_module_utils.PayoutFieldDefinition[];
|
|
2251
2226
|
updateDetails(): void;
|
|
2252
2227
|
private getUsers;
|
|
2253
2228
|
search(event: any): void;
|
|
@@ -4950,25 +4925,6 @@ declare class SubscriptionAgentsListComponent extends AppBaseComponent implement
|
|
|
4950
4925
|
private getAgentsDetails;
|
|
4951
4926
|
private getUsers;
|
|
4952
4927
|
search(event: any): void;
|
|
4953
|
-
readonly payoutProviders: _posiwise_admin_module_utils.PayoutProviderDefinition[];
|
|
4954
|
-
get payoutFields(): _posiwise_admin_module_utils.PayoutFieldDefinition[];
|
|
4955
|
-
/**
|
|
4956
|
-
* This form creates ONE agent per selected ambassador, but a payout
|
|
4957
|
-
* destination (a PayPal address, a bank account) belongs to exactly one
|
|
4958
|
-
* person — applying it to a bulk selection would send several people's
|
|
4959
|
-
* commission to the same account. So the destination fields only appear for
|
|
4960
|
-
* a single selection; bulk-added ambassadors get the provider and fill in
|
|
4961
|
-
* their destination on the edit screen.
|
|
4962
|
-
*/
|
|
4963
|
-
get isSingleAmbassadorSelected(): boolean;
|
|
4964
|
-
onPayoutProviderChange(_provider: PayoutProvider): void;
|
|
4965
|
-
/**
|
|
4966
|
-
* Validator state depends on BOTH the provider and how many ambassadors are
|
|
4967
|
-
* selected. On a bulk add the destination inputs are not rendered, so
|
|
4968
|
-
* leaving `required` on them would make the form invalid with nothing on
|
|
4969
|
-
* screen to fix — a silent dead end.
|
|
4970
|
-
*/
|
|
4971
|
-
private syncPayoutValidators;
|
|
4972
4928
|
onAddEmbassador(): void;
|
|
4973
4929
|
onDelete(userId: number): void;
|
|
4974
4930
|
static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionAgentsListComponent, never>;
|