@posiwise/admin-module 0.0.239 → 0.0.240
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
|
@@ -1652,6 +1652,17 @@ declare class FeatureFlagsTabsComponent {
|
|
|
1652
1652
|
static ɵcmp: i0.ɵɵComponentDeclaration<FeatureFlagsTabsComponent, "feature-flags-tabs", never, {}, {}, never, never, false, never>;
|
|
1653
1653
|
}
|
|
1654
1654
|
|
|
1655
|
+
interface Ambassadorship {
|
|
1656
|
+
subscription_id: number;
|
|
1657
|
+
subscription_name: string;
|
|
1658
|
+
percentage: number;
|
|
1659
|
+
end_date: string;
|
|
1660
|
+
payout_provider: string;
|
|
1661
|
+
payout_destination_ready: boolean;
|
|
1662
|
+
active: boolean;
|
|
1663
|
+
subscription_mrr_usd: number;
|
|
1664
|
+
commission_mrr_usd: number;
|
|
1665
|
+
}
|
|
1655
1666
|
declare class UserDetailsComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
1656
1667
|
private readonly adminService;
|
|
1657
1668
|
private readonly cdr;
|
|
@@ -1663,12 +1674,16 @@ declare class UserDetailsComponent extends AppBaseComponent implements OnInit, O
|
|
|
1663
1674
|
isLoading: boolean;
|
|
1664
1675
|
allRoles: SelectItem[];
|
|
1665
1676
|
subscriptionId: number;
|
|
1677
|
+
readonly subscriptionRoute: string;
|
|
1678
|
+
ambassadorships: Ambassadorship[];
|
|
1679
|
+
ambassadorshipsLoading: boolean;
|
|
1666
1680
|
constructor(adminService: AdminService, injector: Injector, cdr: ChangeDetectorRef);
|
|
1667
1681
|
ngOnInit(): void;
|
|
1668
1682
|
get f(): {
|
|
1669
1683
|
[key: string]: _angular_forms.AbstractControl<any, any, any>;
|
|
1670
1684
|
};
|
|
1671
1685
|
private getUserDetails;
|
|
1686
|
+
private getUserAmbassadorships;
|
|
1672
1687
|
private getUserRole;
|
|
1673
1688
|
onSave(): void;
|
|
1674
1689
|
createUser(): void;
|
|
@@ -1710,9 +1725,16 @@ declare class SubscriptionDetailsComponent extends AppBaseComponent implements O
|
|
|
1710
1725
|
allRoles: any[];
|
|
1711
1726
|
subscriptionsRolesData: SubscriptionRolesSubscribeData;
|
|
1712
1727
|
subscriptionId: number;
|
|
1728
|
+
activeTabId: number;
|
|
1729
|
+
private readonly tabSlugs;
|
|
1730
|
+
private static readonly commaSeparatedEmailsPatternStr;
|
|
1713
1731
|
private readonly commaSeparatedEmails;
|
|
1732
|
+
private commaSeparatedEmailsError;
|
|
1714
1733
|
constructor(subscriptionService: SubscriptionService, adminService: AdminService, datePipe: DatePipe, commonService: CommonService, dateFormatService: NgbDateCustomParserFormatter, injector: Injector, cdr: ChangeDetectorRef);
|
|
1715
1734
|
ngOnInit(): void;
|
|
1735
|
+
onTabChange(event: {
|
|
1736
|
+
nextId: number;
|
|
1737
|
+
}): void;
|
|
1716
1738
|
onSkillsSave(): void;
|
|
1717
1739
|
onSaveProject(_event: any): void;
|
|
1718
1740
|
private getSubscriptionRole;
|
|
@@ -2273,6 +2295,7 @@ declare abstract class UsersListBaseComponent extends AppBaseComponent {
|
|
|
2273
2295
|
protected filterByRoles: number[];
|
|
2274
2296
|
protected filterByFeatureKeys: string[];
|
|
2275
2297
|
protected filterByAlphaBeta: string[];
|
|
2298
|
+
showAmbassadorsOnly: boolean;
|
|
2276
2299
|
totalRecords: number;
|
|
2277
2300
|
users: User[];
|
|
2278
2301
|
allUsers: User[];
|
|
@@ -2374,6 +2397,7 @@ declare class UserListComponent extends UsersListBaseComponent implements OnInit
|
|
|
2374
2397
|
onProductChange(event: any): void;
|
|
2375
2398
|
private onFeatureKeyChange;
|
|
2376
2399
|
private onAlphaBetaChange;
|
|
2400
|
+
onAmbassadorsOnlyToggle(): void;
|
|
2377
2401
|
onDelete(user: User): void;
|
|
2378
2402
|
deleteUser(_event: any): void;
|
|
2379
2403
|
onImpersonate(user: User): void;
|
|
@@ -4961,22 +4985,11 @@ declare class SubscriptionAgentsListComponent extends AppBaseComponent implement
|
|
|
4961
4985
|
readonly payoutProviders: _posiwise_admin_module_utils.PayoutProviderDefinition[];
|
|
4962
4986
|
get payoutFields(): _posiwise_admin_module_utils.PayoutFieldDefinition[];
|
|
4963
4987
|
/**
|
|
4964
|
-
*
|
|
4965
|
-
*
|
|
4966
|
-
* person
|
|
4967
|
-
* commission to the same account. So the destination fields only appear for
|
|
4968
|
-
* a single selection; bulk-added ambassadors get the provider and fill in
|
|
4969
|
-
* their destination on the edit screen.
|
|
4988
|
+
* The ambassador autocomplete is single-select, so an agent is being added
|
|
4989
|
+
* once the control holds a user. A payout destination belongs to exactly one
|
|
4990
|
+
* person, so the destination fields render as soon as that user is picked.
|
|
4970
4991
|
*/
|
|
4971
4992
|
get isSingleAmbassadorSelected(): boolean;
|
|
4972
|
-
/**
|
|
4973
|
-
* Only a genuine MULTI-selection gets the bulk hint. Gating it on
|
|
4974
|
-
* `!isSingleAmbassadorSelected` also caught the zero-selected case, so a
|
|
4975
|
-
* blank form explained bulk-add behaviour before anything had been picked —
|
|
4976
|
-
* and the message then vanished the moment one ambassador was chosen.
|
|
4977
|
-
*/
|
|
4978
|
-
get isBulkAmbassadorSelection(): boolean;
|
|
4979
|
-
private get selectedAmbassadorCount();
|
|
4980
4993
|
onPayoutProviderChange(_provider: PayoutProvider): void;
|
|
4981
4994
|
/**
|
|
4982
4995
|
* Validator state depends on BOTH the provider and how many ambassadors are
|
|
@@ -5376,3 +5389,4 @@ declare const ROUTERS: {
|
|
|
5376
5389
|
};
|
|
5377
5390
|
|
|
5378
5391
|
export { AddEditFaqComponent, AdminGuardService, AdminModule, AdminRoutingModule, AgentDetailsComponent, AhoyEventsComponent, AhoyMessagesComponent, AhoyVisitsComponent, ContactUsListComponent, ContactUsTabsComponent, CredentialsComponent, CredentialsDetailsComponent, CredentialsTabComponent, DomainConfigBuildComponent, DomainConfigCoreComponent, DomainConfigDetailsComponent, DomainConfigIntegrationsComponent, DomainConfigInterfaceComponent, DomainConfigListComponent, DomainConfigOrganizationComponent, DomainConfigSecurityComponent, DomainConfigSocialComponent, DomainConfigTabsComponent, EventsComponent, FaqListComponent, FaqTabsComponent, FeedbackQuestionsDetailsComponent, FeedbackQuestionsListComponent, GeneralTabsComponent, GenericInsightComponent, GenericMiscComponent, GlobalConfigDetailsComponent, GlobalConfigListComponent, GlobalConfigTabsComponent, InsightComponent, LoginNotificationDetailsComponent, LoginNotificationTabsComponent, LoginNotificationsListComponent, NewsletterComponent, NewsletterDetailsComponent, NewsletterInsightComponent, NewsletterItemDetailsComponent, NewsletterUsersListComponent, NewslettersItemsComponent, NewslettersListComponent, PermissionsDetailsComponent, PermissionsListComponent, PermissionsTabsComponent, ProductDetailsComponent, ProductInsightComponent, ProductsListComponent, ProductsTabComponent, ROUTERS, RoleDetailsComponent, RolesListComponent, SubscriptionAgentsListComponent, SubscriptionComponent, SubscriptionCredentialsComponent, SubscriptionCredentialsDetailsComponent, SubscriptionDetailsComponent, SubscriptionInsightNpsComponent, SubscriptionInsightRevenueComponent, SubscriptionInsightTabsComponent, SubscriptionProductDetailsComponent, SubscriptionProductsComponent, SubscriptionUsersComponent, SubscriptionsListComponent, TagsCategoryComponent, TagsListComponent, TagsTabsComponent, TermsOfServiceComponent, TermsOfServiceDetailsComponent, TermsOfServiceTabsComponent, TipComponent, TipsComponent, TipsTabsComponent, TrackingComponent, UserDetailsComponent, UserInsightComponent, UserListComponent, UserTabComponent, UsersListForProductComponent, VersionsComponent };
|
|
5392
|
+
export type { Ambassadorship };
|