@posiwise/admin-module 0.0.238 → 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,8 +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;
|
|
1731
|
+
private readonly commaSeparatedEmails;
|
|
1732
|
+
private commaSeparatedEmailsError;
|
|
1713
1733
|
constructor(subscriptionService: SubscriptionService, adminService: AdminService, datePipe: DatePipe, commonService: CommonService, dateFormatService: NgbDateCustomParserFormatter, injector: Injector, cdr: ChangeDetectorRef);
|
|
1714
1734
|
ngOnInit(): void;
|
|
1735
|
+
onTabChange(event: {
|
|
1736
|
+
nextId: number;
|
|
1737
|
+
}): void;
|
|
1715
1738
|
onSkillsSave(): void;
|
|
1716
1739
|
onSaveProject(_event: any): void;
|
|
1717
1740
|
private getSubscriptionRole;
|
|
@@ -2272,6 +2295,7 @@ declare abstract class UsersListBaseComponent extends AppBaseComponent {
|
|
|
2272
2295
|
protected filterByRoles: number[];
|
|
2273
2296
|
protected filterByFeatureKeys: string[];
|
|
2274
2297
|
protected filterByAlphaBeta: string[];
|
|
2298
|
+
showAmbassadorsOnly: boolean;
|
|
2275
2299
|
totalRecords: number;
|
|
2276
2300
|
users: User[];
|
|
2277
2301
|
allUsers: User[];
|
|
@@ -2373,6 +2397,7 @@ declare class UserListComponent extends UsersListBaseComponent implements OnInit
|
|
|
2373
2397
|
onProductChange(event: any): void;
|
|
2374
2398
|
private onFeatureKeyChange;
|
|
2375
2399
|
private onAlphaBetaChange;
|
|
2400
|
+
onAmbassadorsOnlyToggle(): void;
|
|
2376
2401
|
onDelete(user: User): void;
|
|
2377
2402
|
deleteUser(_event: any): void;
|
|
2378
2403
|
onImpersonate(user: User): void;
|
|
@@ -2651,6 +2676,7 @@ declare class InviteUsersComponent extends AppBaseComponent implements OnInit, O
|
|
|
2651
2676
|
onLazyLoad(event: LazyLoadEvent): void;
|
|
2652
2677
|
getSupportedCurrency(): void;
|
|
2653
2678
|
getMinMaxUnits(): void;
|
|
2679
|
+
private commaSeparatedEmailsValidator;
|
|
2654
2680
|
onSave(): void;
|
|
2655
2681
|
private getProductsList;
|
|
2656
2682
|
private sortObj;
|
|
@@ -4959,22 +4985,11 @@ declare class SubscriptionAgentsListComponent extends AppBaseComponent implement
|
|
|
4959
4985
|
readonly payoutProviders: _posiwise_admin_module_utils.PayoutProviderDefinition[];
|
|
4960
4986
|
get payoutFields(): _posiwise_admin_module_utils.PayoutFieldDefinition[];
|
|
4961
4987
|
/**
|
|
4962
|
-
*
|
|
4963
|
-
*
|
|
4964
|
-
* person
|
|
4965
|
-
* commission to the same account. So the destination fields only appear for
|
|
4966
|
-
* a single selection; bulk-added ambassadors get the provider and fill in
|
|
4967
|
-
* 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.
|
|
4968
4991
|
*/
|
|
4969
4992
|
get isSingleAmbassadorSelected(): boolean;
|
|
4970
|
-
/**
|
|
4971
|
-
* Only a genuine MULTI-selection gets the bulk hint. Gating it on
|
|
4972
|
-
* `!isSingleAmbassadorSelected` also caught the zero-selected case, so a
|
|
4973
|
-
* blank form explained bulk-add behaviour before anything had been picked —
|
|
4974
|
-
* and the message then vanished the moment one ambassador was chosen.
|
|
4975
|
-
*/
|
|
4976
|
-
get isBulkAmbassadorSelection(): boolean;
|
|
4977
|
-
private get selectedAmbassadorCount();
|
|
4978
4993
|
onPayoutProviderChange(_provider: PayoutProvider): void;
|
|
4979
4994
|
/**
|
|
4980
4995
|
* Validator state depends on BOTH the provider and how many ambassadors are
|
|
@@ -5374,3 +5389,4 @@ declare const ROUTERS: {
|
|
|
5374
5389
|
};
|
|
5375
5390
|
|
|
5376
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 };
|