@posiwise/admin-module 0.0.252 → 0.0.253

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@posiwise/admin-module",
3
- "version": "0.0.252",
3
+ "version": "0.0.253",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.2.0",
6
6
  "@angular/core": "^22.2.0",
@@ -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 i131 from "@posiwise/shared-components";
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 i138 from "@angular/forms";
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 i127 from "@ng-bootstrap/ng-bootstrap";
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 i129 from "@angular/common";
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 i132 from "@angular-magic/ngx-gp-autocomplete";
20
+ import * as i133 from "@angular-magic/ngx-gp-autocomplete";
21
21
  import { NgxGpAutocompleteDirective } from "@angular-magic/ngx-gp-autocomplete";
22
- import * as i115 from "primeng/autocomplete";
22
+ import * as i116 from "primeng/autocomplete";
23
23
  import { AutoComplete } from "primeng/autocomplete";
24
24
  import moment$1 from "moment";
25
- import * as i112 from "primeng/table";
25
+ import * as i113 from "primeng/table";
26
26
  import { Table } from "primeng/table";
27
- import * as i117 from "primeng/multiselect";
27
+ import * as i118 from "primeng/multiselect";
28
28
  import { MultiSelect } from "primeng/multiselect";
29
- import * as i128 from "ngx-uploader";
29
+ import * as i129 from "ngx-uploader";
30
30
  import { UploadFile, UploadInput, UploadOutput, UploaderOptions, humanizeBytes } from "ngx-uploader";
31
- import * as i113 from "primeng/tooltip";
32
- import * as i114 from "primeng/accordion";
33
- import * as i116 from "primeng/select";
34
- import * as i118 from "primeng/inputtext";
35
- import * as i119 from "primeng/iconfield";
36
- import * as i120 from "primeng/inputicon";
37
- import * as i121 from "@posiwise/app-loader";
38
- import * as i122 from "ngx-daterangepicker-material";
39
- import * as i123 from "ngx-json-viewer";
40
- import * as i124 from "primeng/datepicker";
41
- import * as i125 from "angular-plotly.js";
42
- import * as i126 from "primeng/fileupload";
43
- import * as i130 from "ngx-ui-switch";
44
- import * as i133 from "@posiwise/core-transloco";
45
- import * as i134 from "@posiwise/pipes";
46
- import * as i136 from "@posiwise/directives";
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 i139 from "ngx-pagination";
50
- import * as i140 from "ngx-quill";
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
  }
@@ -5572,6 +5572,96 @@ export declare class SubscriptionAgentsListComponent extends AppBaseComponent im
5572
5572
  static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionAgentsListComponent, never>;
5573
5573
  static ɵcmp: i0.ɵɵComponentDeclaration<SubscriptionAgentsListComponent, "pw-subscription-agents-list", never, {}, {}, never, never, false, never>;
5574
5574
  }
5575
+ declare namespace subscription_invoices_component_d_exports {
5576
+ export { SubscriptionInvoicesComponent };
5577
+ }
5578
+ /**
5579
+ * "Invoices" tab of the admin subscription page (ticket #4224): the primary
5580
+ * (Stripe) and secondary (backup-card) invoices of the subscription in the URL.
5581
+ * main-api gates it to super admins, the subscription's admins/owners and the
5582
+ * admins of its master subscription.
5583
+ */
5584
+ declare class SubscriptionInvoicesComponent extends AppBaseComponent implements OnInit {
5585
+ private readonly subscriptionInvoiceService;
5586
+ private readonly cdr;
5587
+ readonly routers: {
5588
+ globalConfigDetails: string;
5589
+ adminCredentialsDetails: string;
5590
+ adminOauthClients: string;
5591
+ ambassadorPayouts: string;
5592
+ ambassadorPayoutDetails: string;
5593
+ adminOauthClientsDetails: string;
5594
+ subscriptionCredentialDetails: string;
5595
+ newsletter: string;
5596
+ mailerDetails: string;
5597
+ newsletterItemDetails: string;
5598
+ newsletterItemView: string;
5599
+ newslettersUserList: string;
5600
+ newsletterDetails: string;
5601
+ permissionsList: string;
5602
+ permissionsDetails: string;
5603
+ rolesDetails: string;
5604
+ productDetails: string;
5605
+ productsUserList: string;
5606
+ feedbackQuestions: string;
5607
+ feedbackQuestionsDetails: string;
5608
+ subscriptionDetails: string;
5609
+ subscriptionProductDetails: string;
5610
+ tipsDetails: string;
5611
+ tosAndPrivacyDetails: string;
5612
+ tosAndPrivacyView: string;
5613
+ usersDetails: string;
5614
+ domainConfig: string;
5615
+ domainConfigDetails: string;
5616
+ loginNotifications: string;
5617
+ incidentConfig: string;
5618
+ incidentDetails: string;
5619
+ featureFlagsConfig: string;
5620
+ featureFlagsDetails: string;
5621
+ featureFlagRules: string;
5622
+ faqConfig: string;
5623
+ faqDetails: string;
5624
+ inviteUsers: string;
5625
+ subscriptionList: string;
5626
+ createResource: string;
5627
+ createTag: string;
5628
+ tags: string;
5629
+ posts: string;
5630
+ resourcesList: string;
5631
+ };
5632
+ id: number;
5633
+ canOpenProduct: boolean;
5634
+ isLoaded: boolean;
5635
+ loading: boolean;
5636
+ loadFailed: boolean;
5637
+ paymentType: SubscriptionInvoicePaymentType | null;
5638
+ data: SubscriptionInvoiceListResponse;
5639
+ readonly paymentTypes: SubscriptionInvoicePaymentType[];
5640
+ protected page: number;
5641
+ private readonly destroyRef;
5642
+ /**
5643
+ * Inside /admin the selected subscription is the caller's master subscription.
5644
+ * Read per request: the tenant switcher rewrites it.
5645
+ */
5646
+ private get masterSubscriptionId();
5647
+ get paymentTypeOptions(): {
5648
+ value: SubscriptionInvoicePaymentType;
5649
+ label: string;
5650
+ }[];
5651
+ constructor(subscriptionInvoiceService: SubscriptionInvoiceService, injector: Injector, cdr: ChangeDetectorRef);
5652
+ ngOnInit(): void;
5653
+ onLazyLoad(event: LazyLoadEvent): void;
5654
+ onPaymentTypeChange(): void;
5655
+ /**
5656
+ * Opens the tab synchronously, inside the click, so popup blockers allow it;
5657
+ * the signed link is fetched and loaded into it afterwards.
5658
+ */
5659
+ download(invoice: SubscriptionInvoice): void;
5660
+ amount(cents: number | null): number;
5661
+ private getInvoices;
5662
+ static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionInvoicesComponent, never>;
5663
+ static ɵcmp: i0.ɵɵComponentDeclaration<SubscriptionInvoicesComponent, "pw-subscription-invoices", never, {}, {}, never, never, false, never>;
5664
+ }
5575
5665
  declare namespace subscription_insight_tabs_component_d_exports {
5576
5666
  export { SubscriptionInsightTabsComponent };
5577
5667
  }
@@ -5919,7 +6009,7 @@ export declare class AdminRoutingModule {
5919
6009
  }
5920
6010
  export declare class AdminModule {
5921
6011
  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 i112.TableModule, typeof i113.TooltipModule, typeof i114.AccordionModule, typeof i115.AutoCompleteModule, typeof i116.SelectModule, typeof i117.MultiSelectModule, typeof i118.InputTextModule, typeof i119.IconFieldModule, typeof i120.InputIconModule, typeof i121.AppLoaderModule, typeof i122.NgxDaterangepickerMd, typeof i123.NgxJsonViewerModule, typeof i124.DatePickerModule, typeof i125.PlotlyViaCDNModule, typeof i126.FileUploadModule, typeof i127.NgbTooltipModule, typeof i128.NgxUploaderModule, typeof i129.CommonModule, typeof i130.UiSwitchModule, typeof i131.SharedComponentsModule, typeof i131.CollapsibleSidebarTriggerDirective, typeof i132.NgxGpAutocompleteModule, typeof i133.CoreTranslocoModule, typeof i134.PipesModule, typeof KpiInsightPipe, typeof i136.DirectivesModule, typeof AdminRoutingModule, typeof i127.NgbModalModule, typeof i138.FormsModule, typeof i138.ReactiveFormsModule, typeof i139.NgxPaginationModule, typeof i127.NgbNavModule, typeof i127.NgbDatepickerModule, typeof i140.QuillModule], never>;
6012
+ 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
6013
  static ɵinj: i0.ɵɵInjectorDeclaration<AdminModule>;
5924
6014
  }
5925
6015
  export declare class AdminGuardService {