@posiwise/admin-module 0.0.252 → 0.0.254
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
|
@@ -3,51 +3,51 @@ import { AfterViewInit, ChangeDetectorRef, EventEmitter, Injector, OnDestroy, On
|
|
|
3
3
|
import { AhoyService, AuthService, CommonService, CustomToastService, FeatureFlagService, GroupService, NgbDateCustomParserFormatter, PermissionService, ProductService, SubscriptionService, TagService, TipsService, UserService, WindowService } from "@posiwise/common-services";
|
|
4
4
|
import { LazyLoadEvent, MenuItem, SelectItem } from "primeng/api";
|
|
5
5
|
import { AppBaseComponent } from "@posiwise/app-base-component";
|
|
6
|
-
import { AdminDataService, AdminService, AmbassadorPayoutDetail, AmbassadorPayoutListResponse, AmbassadorPayoutService, AmbassadorPayoutStatus, McpOauthClient, McpOauthClientService, PayoutProvider } from "@posiwise/admin-module-utils";
|
|
7
|
-
import * as
|
|
6
|
+
import { AdminDataService, AdminService, AmbassadorPayoutDetail, AmbassadorPayoutListResponse, AmbassadorPayoutService, AmbassadorPayoutStatus, McpOauthClient, McpOauthClientService, PayoutProvider, SubscriptionInvoice, SubscriptionInvoiceListResponse, SubscriptionInvoicePaymentType, SubscriptionInvoiceService } from "@posiwise/admin-module-utils";
|
|
7
|
+
import * as i132 from "@posiwise/shared-components";
|
|
8
8
|
import { CollapsibleSidebarService, ConfirmDialogService, PasswordValidationComponent, PermissionTreeComponent } from "@posiwise/shared-components";
|
|
9
|
-
import * as
|
|
9
|
+
import * as i139 from "@angular/forms";
|
|
10
10
|
import { FormArray, FormBuilder, FormGroup, NgForm, UntypedFormArray, UntypedFormBuilder, UntypedFormGroup } from "@angular/forms";
|
|
11
11
|
import { FAQ, Paging, Plotly, Product, ResourceInsightResponse, ResourcePost, Role, Subscription, SubscriptionMember, User } from "@posiwise/common-utilities";
|
|
12
12
|
import { CdkDragDrop } from "@angular/cdk/drag-drop";
|
|
13
13
|
import { CustomUploaderComponent } from "@posiwise/utils";
|
|
14
|
-
import * as
|
|
14
|
+
import * as i128 from "@ng-bootstrap/ng-bootstrap";
|
|
15
15
|
import { NgbDateParserFormatter, NgbDatepickerConfig, NgbModal } from "@ng-bootstrap/ng-bootstrap";
|
|
16
16
|
import { Observable } from "rxjs";
|
|
17
|
-
import * as
|
|
17
|
+
import * as i130 from "@angular/common";
|
|
18
18
|
import { DatePipe } from "@angular/common";
|
|
19
19
|
import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
|
|
20
|
-
import * as
|
|
20
|
+
import * as i133 from "@angular-magic/ngx-gp-autocomplete";
|
|
21
21
|
import { NgxGpAutocompleteDirective } from "@angular-magic/ngx-gp-autocomplete";
|
|
22
|
-
import * as
|
|
22
|
+
import * as i116 from "primeng/autocomplete";
|
|
23
23
|
import { AutoComplete } from "primeng/autocomplete";
|
|
24
24
|
import moment$1 from "moment";
|
|
25
|
-
import * as
|
|
25
|
+
import * as i113 from "primeng/table";
|
|
26
26
|
import { Table } from "primeng/table";
|
|
27
|
-
import * as
|
|
27
|
+
import * as i118 from "primeng/multiselect";
|
|
28
28
|
import { MultiSelect } from "primeng/multiselect";
|
|
29
|
-
import * as
|
|
29
|
+
import * as i129 from "ngx-uploader";
|
|
30
30
|
import { UploadFile, UploadInput, UploadOutput, UploaderOptions, humanizeBytes } from "ngx-uploader";
|
|
31
|
-
import * as
|
|
32
|
-
import * as
|
|
33
|
-
import * as
|
|
34
|
-
import * as
|
|
35
|
-
import * as
|
|
36
|
-
import * as
|
|
37
|
-
import * as
|
|
38
|
-
import * as
|
|
39
|
-
import * as
|
|
40
|
-
import * as
|
|
41
|
-
import * as
|
|
42
|
-
import * as
|
|
43
|
-
import * as
|
|
44
|
-
import * as
|
|
45
|
-
import * as
|
|
46
|
-
import * as
|
|
31
|
+
import * as i114 from "primeng/tooltip";
|
|
32
|
+
import * as i115 from "primeng/accordion";
|
|
33
|
+
import * as i117 from "primeng/select";
|
|
34
|
+
import * as i119 from "primeng/inputtext";
|
|
35
|
+
import * as i120 from "primeng/iconfield";
|
|
36
|
+
import * as i121 from "primeng/inputicon";
|
|
37
|
+
import * as i122 from "@posiwise/app-loader";
|
|
38
|
+
import * as i123 from "ngx-daterangepicker-material";
|
|
39
|
+
import * as i124 from "ngx-json-viewer";
|
|
40
|
+
import * as i125 from "primeng/datepicker";
|
|
41
|
+
import * as i126 from "angular-plotly.js";
|
|
42
|
+
import * as i127 from "primeng/fileupload";
|
|
43
|
+
import * as i131 from "ngx-ui-switch";
|
|
44
|
+
import * as i134 from "@posiwise/core-transloco";
|
|
45
|
+
import * as i135 from "@posiwise/pipes";
|
|
46
|
+
import * as i137 from "@posiwise/directives";
|
|
47
47
|
import * as i1 from "@angular/router";
|
|
48
48
|
import { ActivatedRouteSnapshot, Route, Router, RouterStateSnapshot } from "@angular/router";
|
|
49
|
-
import * as
|
|
50
|
-
import * as
|
|
49
|
+
import * as i140 from "ngx-pagination";
|
|
50
|
+
import * as i141 from "ngx-quill";
|
|
51
51
|
declare namespace users_tabs_component_d_exports {
|
|
52
52
|
export { UserTabComponent };
|
|
53
53
|
}
|
|
@@ -1535,6 +1535,7 @@ declare namespace feature_flags_list_component_d_exports {
|
|
|
1535
1535
|
declare class FeatureFlagsListComponent extends AppBaseComponent {
|
|
1536
1536
|
private readonly adminService;
|
|
1537
1537
|
private readonly confirmDialog;
|
|
1538
|
+
private readonly cdr;
|
|
1538
1539
|
readonly PAGE_SIZE = 50;
|
|
1539
1540
|
routers: {
|
|
1540
1541
|
globalConfigDetails: string;
|
|
@@ -1588,7 +1589,7 @@ declare class FeatureFlagsListComponent extends AppBaseComponent {
|
|
|
1588
1589
|
featureFlags: any[];
|
|
1589
1590
|
totalRecords: number;
|
|
1590
1591
|
private page;
|
|
1591
|
-
constructor(injector: Injector, adminService: AdminService, confirmDialog: ConfirmDialogService);
|
|
1592
|
+
constructor(injector: Injector, adminService: AdminService, confirmDialog: ConfirmDialogService, cdr: ChangeDetectorRef);
|
|
1592
1593
|
private nonEmpty;
|
|
1593
1594
|
onLazyLoad(event: LazyLoadEvent): void;
|
|
1594
1595
|
loadFeatureFlags(paging?: any): void;
|
|
@@ -5572,6 +5573,97 @@ export declare class SubscriptionAgentsListComponent extends AppBaseComponent im
|
|
|
5572
5573
|
static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionAgentsListComponent, never>;
|
|
5573
5574
|
static ɵcmp: i0.ɵɵComponentDeclaration<SubscriptionAgentsListComponent, "pw-subscription-agents-list", never, {}, {}, never, never, false, never>;
|
|
5574
5575
|
}
|
|
5576
|
+
declare namespace subscription_invoices_component_d_exports {
|
|
5577
|
+
export { SubscriptionInvoicesComponent };
|
|
5578
|
+
}
|
|
5579
|
+
/**
|
|
5580
|
+
* "Invoices" tab of the admin subscription page (ticket #4224): the primary
|
|
5581
|
+
* (Stripe) and secondary (backup-card) invoices of the subscription in the URL.
|
|
5582
|
+
* main-api gates it to super admins, the subscription's admins/owners and the
|
|
5583
|
+
* admins of its master subscription.
|
|
5584
|
+
*/
|
|
5585
|
+
declare class SubscriptionInvoicesComponent extends AppBaseComponent implements OnInit {
|
|
5586
|
+
private readonly subscriptionInvoiceService;
|
|
5587
|
+
private readonly cdr;
|
|
5588
|
+
readonly routers: {
|
|
5589
|
+
globalConfigDetails: string;
|
|
5590
|
+
adminCredentialsDetails: string;
|
|
5591
|
+
adminOauthClients: string;
|
|
5592
|
+
ambassadorPayouts: string;
|
|
5593
|
+
ambassadorPayoutDetails: string;
|
|
5594
|
+
adminOauthClientsDetails: string;
|
|
5595
|
+
subscriptionCredentialDetails: string;
|
|
5596
|
+
newsletter: string;
|
|
5597
|
+
mailerDetails: string;
|
|
5598
|
+
newsletterItemDetails: string;
|
|
5599
|
+
newsletterItemView: string;
|
|
5600
|
+
newslettersUserList: string;
|
|
5601
|
+
newsletterDetails: string;
|
|
5602
|
+
permissionsList: string;
|
|
5603
|
+
permissionsDetails: string;
|
|
5604
|
+
rolesDetails: string;
|
|
5605
|
+
productDetails: string;
|
|
5606
|
+
productsUserList: string;
|
|
5607
|
+
feedbackQuestions: string;
|
|
5608
|
+
feedbackQuestionsDetails: string;
|
|
5609
|
+
subscriptionDetails: string;
|
|
5610
|
+
subscriptionProductDetails: string;
|
|
5611
|
+
tipsDetails: string;
|
|
5612
|
+
tosAndPrivacyDetails: string;
|
|
5613
|
+
tosAndPrivacyView: string;
|
|
5614
|
+
usersDetails: string;
|
|
5615
|
+
domainConfig: string;
|
|
5616
|
+
domainConfigDetails: string;
|
|
5617
|
+
loginNotifications: string;
|
|
5618
|
+
incidentConfig: string;
|
|
5619
|
+
incidentDetails: string;
|
|
5620
|
+
featureFlagsConfig: string;
|
|
5621
|
+
featureFlagsDetails: string;
|
|
5622
|
+
featureFlagRules: string;
|
|
5623
|
+
faqConfig: string;
|
|
5624
|
+
faqDetails: string;
|
|
5625
|
+
inviteUsers: string;
|
|
5626
|
+
subscriptionList: string;
|
|
5627
|
+
createResource: string;
|
|
5628
|
+
createTag: string;
|
|
5629
|
+
tags: string;
|
|
5630
|
+
posts: string;
|
|
5631
|
+
resourcesList: string;
|
|
5632
|
+
};
|
|
5633
|
+
id: number;
|
|
5634
|
+
canOpenProduct: boolean;
|
|
5635
|
+
isLoaded: boolean;
|
|
5636
|
+
loading: boolean;
|
|
5637
|
+
loadFailed: boolean;
|
|
5638
|
+
paymentType: SubscriptionInvoicePaymentType | null;
|
|
5639
|
+
data: SubscriptionInvoiceListResponse;
|
|
5640
|
+
readonly paymentTypes: SubscriptionInvoicePaymentType[];
|
|
5641
|
+
protected page: number;
|
|
5642
|
+
private readonly destroyRef;
|
|
5643
|
+
/**
|
|
5644
|
+
* Inside /admin the selected subscription is the caller's master subscription.
|
|
5645
|
+
* Read per request: the tenant switcher rewrites it.
|
|
5646
|
+
*/
|
|
5647
|
+
private get masterSubscriptionId();
|
|
5648
|
+
get paymentTypeOptions(): {
|
|
5649
|
+
value: SubscriptionInvoicePaymentType;
|
|
5650
|
+
label: string;
|
|
5651
|
+
}[];
|
|
5652
|
+
constructor(subscriptionInvoiceService: SubscriptionInvoiceService, injector: Injector, cdr: ChangeDetectorRef);
|
|
5653
|
+
ngOnInit(): void;
|
|
5654
|
+
onLazyLoad(event: LazyLoadEvent): void;
|
|
5655
|
+
onPaymentTypeChange(): void;
|
|
5656
|
+
/**
|
|
5657
|
+
* Opens the tab synchronously, inside the click, so popup blockers allow it;
|
|
5658
|
+
* the signed link is fetched and loaded into it afterwards.
|
|
5659
|
+
*/
|
|
5660
|
+
download(invoice: SubscriptionInvoice): void;
|
|
5661
|
+
amount(cents: number | null): number;
|
|
5662
|
+
isUnrecorded(cents?: number | null): boolean;
|
|
5663
|
+
private getInvoices;
|
|
5664
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionInvoicesComponent, never>;
|
|
5665
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SubscriptionInvoicesComponent, "pw-subscription-invoices", never, {}, {}, never, never, false, never>;
|
|
5666
|
+
}
|
|
5575
5667
|
declare namespace subscription_insight_tabs_component_d_exports {
|
|
5576
5668
|
export { SubscriptionInsightTabsComponent };
|
|
5577
5669
|
}
|
|
@@ -5919,7 +6011,7 @@ export declare class AdminRoutingModule {
|
|
|
5919
6011
|
}
|
|
5920
6012
|
export declare class AdminModule {
|
|
5921
6013
|
static ɵfac: i0.ɵɵFactoryDeclaration<AdminModule, never>;
|
|
5922
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AdminModule, [typeof UserTabComponent, typeof SubscriptionComponent, typeof MailerComponent, typeof MailerListComponent, typeof MailerDetailsComponent, typeof NewsletterComponent, typeof FaqListComponent, typeof DomainConfigListComponent, typeof DomainConfigDetailsComponent, typeof DomainConfigBuildComponent, typeof DomainConfigCoreComponent, typeof DomainConfigOrganizationComponent, typeof DomainConfigSecurityComponent, typeof DomainConfigSocialComponent, typeof DomainConfigIntegrationsComponent, typeof DomainConfigInterfaceComponent, typeof DomainConfigTabsComponent, typeof LoginNotificationTabsComponent, typeof LoginNotificationsListComponent, typeof LoginNotificationDetailsComponent, typeof FeedbackQuestionsListComponent, typeof FeedbackQuestionsDetailsComponent, typeof FeatureFlagsListComponent, typeof FeatureFlagDetailsComponent, typeof FeatureFlagRulesComponent, typeof FeatureFlagsTabsComponent, typeof UserDetailsComponent, typeof ProductsTabComponent, typeof SubscriptionDetailsComponent, typeof NewsletterDetailsComponent, typeof NewsletterItemDetailsComponent, typeof NewsLetterItemViewComponent, typeof ProductDetailsComponent, typeof ProductBackupCardComponent, typeof RoleDetailsComponent, typeof TagsTabsComponent, typeof TipComponent, typeof TipsComponent, typeof AgentDetailsComponent, typeof UserListComponent, typeof RolesListComponent, typeof SubscriptionsListComponent, typeof InviteUsersComponent, typeof SubscriptionProductDetailsComponent, typeof InsightComponent, typeof SubscriptionInsightNpsComponent, typeof SubscriptionInsightAveragePriceComponent, typeof SubscriptionInsightProcuctSessionComponent, typeof SubscriptionInsightUserSessionComponent, typeof SubscriptionInsightAverageUserComponent, typeof SubscriptionInsightRevenueComponent, typeof SubscriptionInsightChurnComponent, typeof ProductsListComponent, typeof ProductInsightComponent, typeof ResourcesAdminIndexComponent, typeof ResourceAdminDetailsComponent, typeof TagDetailsComponent, typeof ResourcesIndexComponent, typeof ResourcesInsightComponent, typeof ResourcesListsInsightComponent, typeof NewslettersListComponent, typeof NewslettersItemsComponent, typeof NewsletterInsightComponent, typeof UserInsightComponent, typeof TagsCategoryComponent, typeof TagsListComponent, typeof TipsTabsComponent, typeof GenericMiscComponent, typeof GenericInsightComponent, typeof FaqTabsComponent, typeof ContactUsTabsComponent, typeof GeneralTabsComponent, typeof PermissionsListComponent, typeof PermissionsDetailsComponent, typeof PermissionsTabsComponent, typeof TermsOfServiceComponent, typeof TermsOfServiceTabsComponent, typeof TermsOfServiceDetailsComponent, typeof CredentialsComponent, typeof SubscriptionCredentialsComponent, typeof SubscriptionCredentialsDetailsComponent, typeof CredentialsDetailsComponent, typeof CredentialsTabComponent, typeof AmbassadorPayoutsTabsComponent, typeof AmbassadorPayoutsListComponent, typeof AmbassadorPayoutDetailsComponent, typeof OauthClientsTabsComponent, typeof OauthClientsComponent, typeof OauthClientsDetailsComponent, typeof AhoyEventsComponent, typeof TrackingComponent, typeof AhoyMessagesComponent, typeof AhoyVisitsComponent, typeof EventsComponent, typeof VersionsComponent, typeof UsersListForProductComponent, typeof NewsletterUsersListComponent, typeof GlobalConfigListComponent, typeof GlobalConfigDetailsComponent, typeof GlobalConfigTabsComponent, typeof SubscriptionProductsComponent, typeof SubscriptionUsersComponent, typeof AddMembersComponent, typeof SubscriptionAgentsListComponent, typeof SubscriptionInsightTabsComponent, typeof ContactUsListComponent, typeof IncidentListComponent, typeof IncidentTabsComponent, typeof AddEditIncidentComponent, typeof AddEditFaqComponent, typeof UsersInformationSidebarComponent], [typeof
|
|
6014
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AdminModule, [typeof UserTabComponent, typeof SubscriptionComponent, typeof MailerComponent, typeof MailerListComponent, typeof MailerDetailsComponent, typeof NewsletterComponent, typeof FaqListComponent, typeof DomainConfigListComponent, typeof DomainConfigDetailsComponent, typeof DomainConfigBuildComponent, typeof DomainConfigCoreComponent, typeof DomainConfigOrganizationComponent, typeof DomainConfigSecurityComponent, typeof DomainConfigSocialComponent, typeof DomainConfigIntegrationsComponent, typeof DomainConfigInterfaceComponent, typeof DomainConfigTabsComponent, typeof LoginNotificationTabsComponent, typeof LoginNotificationsListComponent, typeof LoginNotificationDetailsComponent, typeof FeedbackQuestionsListComponent, typeof FeedbackQuestionsDetailsComponent, typeof FeatureFlagsListComponent, typeof FeatureFlagDetailsComponent, typeof FeatureFlagRulesComponent, typeof FeatureFlagsTabsComponent, typeof UserDetailsComponent, typeof ProductsTabComponent, typeof SubscriptionDetailsComponent, typeof NewsletterDetailsComponent, typeof NewsletterItemDetailsComponent, typeof NewsLetterItemViewComponent, typeof ProductDetailsComponent, typeof ProductBackupCardComponent, typeof RoleDetailsComponent, typeof TagsTabsComponent, typeof TipComponent, typeof TipsComponent, typeof AgentDetailsComponent, typeof UserListComponent, typeof RolesListComponent, typeof SubscriptionsListComponent, typeof InviteUsersComponent, typeof SubscriptionProductDetailsComponent, typeof InsightComponent, typeof SubscriptionInsightNpsComponent, typeof SubscriptionInsightAveragePriceComponent, typeof SubscriptionInsightProcuctSessionComponent, typeof SubscriptionInsightUserSessionComponent, typeof SubscriptionInsightAverageUserComponent, typeof SubscriptionInsightRevenueComponent, typeof SubscriptionInsightChurnComponent, typeof ProductsListComponent, typeof ProductInsightComponent, typeof ResourcesAdminIndexComponent, typeof ResourceAdminDetailsComponent, typeof TagDetailsComponent, typeof ResourcesIndexComponent, typeof ResourcesInsightComponent, typeof ResourcesListsInsightComponent, typeof NewslettersListComponent, typeof NewslettersItemsComponent, typeof NewsletterInsightComponent, typeof UserInsightComponent, typeof TagsCategoryComponent, typeof TagsListComponent, typeof TipsTabsComponent, typeof GenericMiscComponent, typeof GenericInsightComponent, typeof FaqTabsComponent, typeof ContactUsTabsComponent, typeof GeneralTabsComponent, typeof PermissionsListComponent, typeof PermissionsDetailsComponent, typeof PermissionsTabsComponent, typeof TermsOfServiceComponent, typeof TermsOfServiceTabsComponent, typeof TermsOfServiceDetailsComponent, typeof CredentialsComponent, typeof SubscriptionCredentialsComponent, typeof SubscriptionCredentialsDetailsComponent, typeof CredentialsDetailsComponent, typeof CredentialsTabComponent, typeof AmbassadorPayoutsTabsComponent, typeof AmbassadorPayoutsListComponent, typeof AmbassadorPayoutDetailsComponent, typeof OauthClientsTabsComponent, typeof OauthClientsComponent, typeof OauthClientsDetailsComponent, typeof AhoyEventsComponent, typeof TrackingComponent, typeof AhoyMessagesComponent, typeof AhoyVisitsComponent, typeof EventsComponent, typeof VersionsComponent, typeof UsersListForProductComponent, typeof NewsletterUsersListComponent, typeof GlobalConfigListComponent, typeof GlobalConfigDetailsComponent, typeof GlobalConfigTabsComponent, typeof SubscriptionProductsComponent, typeof SubscriptionUsersComponent, typeof AddMembersComponent, typeof SubscriptionAgentsListComponent, typeof SubscriptionInvoicesComponent, typeof SubscriptionInsightTabsComponent, typeof ContactUsListComponent, typeof IncidentListComponent, typeof IncidentTabsComponent, typeof AddEditIncidentComponent, typeof AddEditFaqComponent, typeof UsersInformationSidebarComponent], [typeof i113.TableModule, typeof i114.TooltipModule, typeof i115.AccordionModule, typeof i116.AutoCompleteModule, typeof i117.SelectModule, typeof i118.MultiSelectModule, typeof i119.InputTextModule, typeof i120.IconFieldModule, typeof i121.InputIconModule, typeof i122.AppLoaderModule, typeof i123.NgxDaterangepickerMd, typeof i124.NgxJsonViewerModule, typeof i125.DatePickerModule, typeof i126.PlotlyViaCDNModule, typeof i127.FileUploadModule, typeof i128.NgbTooltipModule, typeof i129.NgxUploaderModule, typeof i130.CommonModule, typeof i131.UiSwitchModule, typeof i132.SharedComponentsModule, typeof i132.CollapsibleSidebarTriggerDirective, typeof i133.NgxGpAutocompleteModule, typeof i134.CoreTranslocoModule, typeof i135.PipesModule, typeof KpiInsightPipe, typeof i137.DirectivesModule, typeof AdminRoutingModule, typeof i128.NgbModalModule, typeof i139.FormsModule, typeof i139.ReactiveFormsModule, typeof i140.NgxPaginationModule, typeof i128.NgbNavModule, typeof i128.NgbDatepickerModule, typeof i141.QuillModule], never>;
|
|
5923
6015
|
static ɵinj: i0.ɵɵInjectorDeclaration<AdminModule>;
|
|
5924
6016
|
}
|
|
5925
6017
|
export declare class AdminGuardService {
|