@posiwise/admin-module 0.0.251 → 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.251",
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 i130 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 i137 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 i126 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 i128 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 i131 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 i114 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 i111 from "primeng/table";
25
+ import * as i113 from "primeng/table";
26
26
  import { Table } from "primeng/table";
27
- import * as i116 from "primeng/multiselect";
27
+ import * as i118 from "primeng/multiselect";
28
28
  import { MultiSelect } from "primeng/multiselect";
29
- import * as i127 from "ngx-uploader";
29
+ import * as i129 from "ngx-uploader";
30
30
  import { UploadFile, UploadInput, UploadOutput, UploaderOptions, humanizeBytes } from "ngx-uploader";
31
- import * as i112 from "primeng/tooltip";
32
- import * as i113 from "primeng/accordion";
33
- import * as i115 from "primeng/select";
34
- import * as i117 from "primeng/inputtext";
35
- import * as i118 from "primeng/iconfield";
36
- import * as i119 from "primeng/inputicon";
37
- import * as i120 from "@posiwise/app-loader";
38
- import * as i121 from "ngx-daterangepicker-material";
39
- import * as i122 from "ngx-json-viewer";
40
- import * as i123 from "primeng/datepicker";
41
- import * as i124 from "angular-plotly.js";
42
- import * as i125 from "primeng/fileupload";
43
- import * as i129 from "ngx-ui-switch";
44
- import * as i132 from "@posiwise/core-transloco";
45
- import * as i133 from "@posiwise/pipes";
46
- import * as i135 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 i138 from "ngx-pagination";
50
- import * as i139 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
  }
@@ -287,6 +287,7 @@ interface Product$1 {
287
287
  currency: string;
288
288
  active: boolean;
289
289
  dependency_products?: string[];
290
+ second_payment_provider?: string | null;
290
291
  }
291
292
  interface SubscriptionProductDetails {
292
293
  id: number;
@@ -2233,6 +2234,36 @@ export declare class ProductDetailsComponent extends AppBaseComponent implements
2233
2234
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductDetailsComponent, never>;
2234
2235
  static ɵcmp: i0.ɵɵComponentDeclaration<ProductDetailsComponent, "pw-product-details", never, {}, {}, never, never, false, never>;
2235
2236
  }
2237
+ declare namespace product_backup_card_component_d_exports {
2238
+ export { ProductBackupCardComponent };
2239
+ }
2240
+ declare class ProductBackupCardComponent implements OnInit {
2241
+ form: UntypedFormGroup;
2242
+ provider?: string | null;
2243
+ submitted: boolean;
2244
+ private readonly destroyRef;
2245
+ readonly providers: {
2246
+ label: string;
2247
+ value: string;
2248
+ }[];
2249
+ ngOnInit(): void;
2250
+ get required(): boolean;
2251
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProductBackupCardComponent, never>;
2252
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProductBackupCardComponent, "pw-product-backup-card", never, {
2253
+ "form": {
2254
+ "alias": "form";
2255
+ "required": true;
2256
+ };
2257
+ "provider": {
2258
+ "alias": "provider";
2259
+ "required": false;
2260
+ };
2261
+ "submitted": {
2262
+ "alias": "submitted";
2263
+ "required": false;
2264
+ };
2265
+ }, {}, never, never, false, never>;
2266
+ }
2236
2267
  declare namespace role_details_component_d_exports {
2237
2268
  export { RoleDetailsComponent };
2238
2269
  }
@@ -5541,6 +5572,96 @@ export declare class SubscriptionAgentsListComponent extends AppBaseComponent im
5541
5572
  static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionAgentsListComponent, never>;
5542
5573
  static ɵcmp: i0.ɵɵComponentDeclaration<SubscriptionAgentsListComponent, "pw-subscription-agents-list", never, {}, {}, never, never, false, never>;
5543
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
+ }
5544
5665
  declare namespace subscription_insight_tabs_component_d_exports {
5545
5666
  export { SubscriptionInsightTabsComponent };
5546
5667
  }
@@ -5888,7 +6009,7 @@ export declare class AdminRoutingModule {
5888
6009
  }
5889
6010
  export declare class AdminModule {
5890
6011
  static ɵfac: i0.ɵɵFactoryDeclaration<AdminModule, never>;
5891
- 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 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 i111.TableModule, typeof i112.TooltipModule, typeof i113.AccordionModule, typeof i114.AutoCompleteModule, typeof i115.SelectModule, typeof i116.MultiSelectModule, typeof i117.InputTextModule, typeof i118.IconFieldModule, typeof i119.InputIconModule, typeof i120.AppLoaderModule, typeof i121.NgxDaterangepickerMd, typeof i122.NgxJsonViewerModule, typeof i123.DatePickerModule, typeof i124.PlotlyViaCDNModule, typeof i125.FileUploadModule, typeof i126.NgbTooltipModule, typeof i127.NgxUploaderModule, typeof i128.CommonModule, typeof i129.UiSwitchModule, typeof i130.SharedComponentsModule, typeof i130.CollapsibleSidebarTriggerDirective, typeof i131.NgxGpAutocompleteModule, typeof i132.CoreTranslocoModule, typeof i133.PipesModule, typeof KpiInsightPipe, typeof i135.DirectivesModule, typeof AdminRoutingModule, typeof i126.NgbModalModule, typeof i137.FormsModule, typeof i137.ReactiveFormsModule, typeof i138.NgxPaginationModule, typeof i126.NgbNavModule, typeof i126.NgbDatepickerModule, typeof i139.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>;
5892
6013
  static ɵinj: i0.ɵɵInjectorDeclaration<AdminModule>;
5893
6014
  }
5894
6015
  export declare class AdminGuardService {