@posiwise/user-module 0.0.188 → 0.0.190
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,14 +1,14 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit, PipeTransform, TemplateRef } from "@angular/core";
|
|
2
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, PipeTransform, TemplateRef } from "@angular/core";
|
|
3
3
|
import * as i1 from "@posiwise/shared-components";
|
|
4
|
-
import { PasswordValidationComponent } from "@posiwise/shared-components";
|
|
4
|
+
import { ConfirmDialogService, PasswordValidationComponent } from "@posiwise/shared-components";
|
|
5
5
|
import * as i2 from "primeng/inputtext";
|
|
6
6
|
import * as i3 from "@posiwise/app-loader";
|
|
7
7
|
import * as i4 from "@posiwise/directives";
|
|
8
8
|
import * as i5 from "@angular/common";
|
|
9
9
|
import * as i6 from "@angular/router";
|
|
10
10
|
import * as i7 from "@angular/forms";
|
|
11
|
-
import { FormArray, FormGroup } from "@angular/forms";
|
|
11
|
+
import { FormArray, FormBuilder, FormGroup } from "@angular/forms";
|
|
12
12
|
import * as i8 from "@posiwise/core-guards";
|
|
13
13
|
import * as i9 from "@posiwise/core-transloco";
|
|
14
14
|
import * as i10 from "@angular-magic/ngx-gp-autocomplete";
|
|
@@ -29,10 +29,10 @@ import * as i22 from "primeng/tooltip";
|
|
|
29
29
|
import * as i23 from "@ng-bootstrap/ng-bootstrap";
|
|
30
30
|
import { NgbModal } from "@ng-bootstrap/ng-bootstrap";
|
|
31
31
|
import { LazyLoadEvent, MenuItem } from "primeng/api";
|
|
32
|
-
import { AppBaseComponent } from "@posiwise/app-base-component";
|
|
33
32
|
import { Country, PRODUCT_CATEGORY, Product, Project, Subscription, TAG_ENTITY, TAG_TYPE, User } from "@posiwise/common-utilities";
|
|
34
33
|
import { Observable, Subscription as Subscription$1 } from "rxjs";
|
|
35
|
-
import {
|
|
34
|
+
import { AppBaseComponent } from "@posiwise/app-base-component";
|
|
35
|
+
import { Qualification, SavedStripeCard, SecondaryCardSummary, SecondaryProvider, Skill, StripeCardSummary, SubscriptionService, UserNewsletter, UserProfileDetails } from "@posiwise/common-services";
|
|
36
36
|
declare namespace account_component_d_exports {
|
|
37
37
|
export { AccountComponent };
|
|
38
38
|
}
|
|
@@ -47,45 +47,26 @@ export declare class AccountComponent {
|
|
|
47
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccountComponent, never>;
|
|
48
48
|
static ɵcmp: i0.ɵɵComponentDeclaration<AccountComponent, "pw-user-account", never, {}, {}, never, never, true, never>;
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
private readonly fb;
|
|
55
|
-
private readonly modalService;
|
|
56
|
-
private readonly authService;
|
|
57
|
-
private readonly geoService;
|
|
58
|
-
private readonly profileService;
|
|
59
|
-
private readonly cdr;
|
|
60
|
-
private readonly confirmDialog;
|
|
61
|
-
private readonly transloco;
|
|
62
|
-
placesRef: NgxGpAutocompleteDirective;
|
|
63
|
-
passwordRef: ElementRef;
|
|
64
|
-
emailForm: FormGroup;
|
|
65
|
-
passwordForm: FormGroup;
|
|
66
|
-
profileForm: FormGroup;
|
|
67
|
-
image: string;
|
|
68
|
-
countries$: Observable<Country[]>;
|
|
69
|
-
states: Country[];
|
|
70
|
-
validatedEmail: string;
|
|
71
|
-
toggleEmail: boolean;
|
|
72
|
-
togglePassword: boolean;
|
|
73
|
-
toggleNickName: boolean;
|
|
74
|
-
passwordVerified: boolean;
|
|
75
|
-
isCurrentPasswordValid: boolean;
|
|
76
|
-
selectedState: any;
|
|
50
|
+
/** API token and token-scope handling of the account page (undecorated base). */
|
|
51
|
+
declare abstract class AccountApiCredentials extends AppBaseComponent {
|
|
52
|
+
protected readonly cdr: ChangeDetectorRef;
|
|
53
|
+
protected readonly confirmDialog: ConfirmDialogService;
|
|
77
54
|
user: User;
|
|
78
|
-
slug: string;
|
|
79
|
-
isLoaded: boolean;
|
|
80
|
-
passwordBusyButton: boolean;
|
|
81
|
-
slugBusyButton: boolean;
|
|
82
|
-
emailBusyButton: boolean;
|
|
83
|
-
validatePasswordBusyButton: boolean;
|
|
84
|
-
profileBusyButton: boolean;
|
|
85
55
|
showApiToken: boolean;
|
|
86
56
|
showApiClientId: boolean;
|
|
87
57
|
refreshingTokens: boolean;
|
|
88
58
|
updatingScope: boolean;
|
|
59
|
+
protected abstract getUserProfile(): void;
|
|
60
|
+
toggleApiTokenVisibility(): void;
|
|
61
|
+
toggleApiClientIdVisibility(): void;
|
|
62
|
+
refreshApiTokens(): void;
|
|
63
|
+
private performTokenRefresh;
|
|
64
|
+
get currentApiTokenScope(): string;
|
|
65
|
+
changeApiTokenScope(scope: string): void;
|
|
66
|
+
private performScopeUpdate;
|
|
67
|
+
}
|
|
68
|
+
/** MCP endpoint and registered-app connections of the account page (undecorated base). */
|
|
69
|
+
declare abstract class AccountMcpConnections extends AccountApiCredentials {
|
|
89
70
|
connections: {
|
|
90
71
|
id: number;
|
|
91
72
|
client_name: string;
|
|
@@ -94,40 +75,6 @@ export declare class AccountDetailsComponent extends AppBaseComponent implements
|
|
|
94
75
|
last_used_at: string | null;
|
|
95
76
|
}[];
|
|
96
77
|
loadingConnections: boolean;
|
|
97
|
-
constructor();
|
|
98
|
-
ngOnInit(): void;
|
|
99
|
-
handleAddressChange(_event: any): void;
|
|
100
|
-
private getUserProfile;
|
|
101
|
-
/**
|
|
102
|
-
* Updates Email Address
|
|
103
|
-
* this needs to be separate and requires the email to be validated from email before it's actually changed
|
|
104
|
-
*/
|
|
105
|
-
onEmailFormSubmit(): void;
|
|
106
|
-
validatePassword(): void;
|
|
107
|
-
handleImageError(event: Event, fallbackPath: any): void;
|
|
108
|
-
checkValidity(): void;
|
|
109
|
-
onPasswordFormSubmit(): void;
|
|
110
|
-
onProfileFormSubmit(): void;
|
|
111
|
-
onAvatarSave(): void;
|
|
112
|
-
openModal(content: any): void;
|
|
113
|
-
onUpdateSlug(): void;
|
|
114
|
-
onImageSelection(event: any): void;
|
|
115
|
-
sendMailToResetPassword(): void;
|
|
116
|
-
getRegion(countryId: number | string): void;
|
|
117
|
-
loadConnections(): void;
|
|
118
|
-
deregisterConnection(id: number): void;
|
|
119
|
-
private getForms;
|
|
120
|
-
private passwordMatcher;
|
|
121
|
-
dataURLtoBlob(dataUrl: string): Blob;
|
|
122
|
-
onToggleEmail(): void;
|
|
123
|
-
onTogglePassword(): void;
|
|
124
|
-
onClose(): void;
|
|
125
|
-
shouldUserChangeEmail(): void;
|
|
126
|
-
toggleApiTokenVisibility(): void;
|
|
127
|
-
toggleApiClientIdVisibility(): void;
|
|
128
|
-
refreshApiTokens(): void;
|
|
129
|
-
private performTokenRefresh;
|
|
130
|
-
get currentApiTokenScope(): string;
|
|
131
78
|
/**
|
|
132
79
|
* Tenant-dynamic MCP endpoint URL, resolved from the host the user is on.
|
|
133
80
|
* The MCP host is always `brain-api-mcp.{env}.{company-domain}`, so the
|
|
@@ -140,19 +87,74 @@ export declare class AccountDetailsComponent extends AppBaseComponent implements
|
|
|
140
87
|
* `brain-api-mcp.posiwise.com`, which does not exist in DNS.
|
|
141
88
|
*/
|
|
142
89
|
get mcpEndpointUrl(): string;
|
|
143
|
-
/**
|
|
144
|
-
* Company domain prefixed by its environment segment. Resolves the company
|
|
145
|
-
* domain with the same `getDomain` the AppConfigService uses to identify the
|
|
146
|
-
* tenant, so multi-label TLDs (acme.co.uk) and arbitrary subdomains both
|
|
147
|
-
* reduce correctly. Only a recognised environment segment is carried over —
|
|
148
|
-
* anything else (`www`, a custom subdomain) falls back to PROD rather than
|
|
149
|
-
* being prefixed onto the host, which would misroute.
|
|
150
|
-
*/
|
|
151
|
-
private mcpHostBase;
|
|
152
90
|
/** Tenant company name (domain-metadata driven), falling back to PosiWise. */
|
|
153
91
|
get mcpCompanyName(): string;
|
|
154
|
-
|
|
155
|
-
|
|
92
|
+
loadConnections(): void;
|
|
93
|
+
deregisterConnection(id: number): void;
|
|
94
|
+
}
|
|
95
|
+
/** E-mail change and password change/reset flows of the account page (undecorated base). */
|
|
96
|
+
declare abstract class AccountSecurityForms extends AccountMcpConnections {
|
|
97
|
+
protected readonly fb: FormBuilder;
|
|
98
|
+
private readonly authService;
|
|
99
|
+
abstract passwordRef: ElementRef;
|
|
100
|
+
emailForm: FormGroup;
|
|
101
|
+
passwordForm: FormGroup;
|
|
102
|
+
validatedEmail: string;
|
|
103
|
+
toggleEmail: boolean;
|
|
104
|
+
togglePassword: boolean;
|
|
105
|
+
passwordVerified: boolean;
|
|
106
|
+
isCurrentPasswordValid: boolean;
|
|
107
|
+
passwordBusyButton: boolean;
|
|
108
|
+
emailBusyButton: boolean;
|
|
109
|
+
validatePasswordBusyButton: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Updates Email Address
|
|
112
|
+
* this needs to be separate and requires the email to be validated from email before it's actually changed
|
|
113
|
+
*/
|
|
114
|
+
onEmailFormSubmit(): void;
|
|
115
|
+
validatePassword(): void;
|
|
116
|
+
checkValidity(): void;
|
|
117
|
+
onPasswordFormSubmit(): void;
|
|
118
|
+
sendMailToResetPassword(): void;
|
|
119
|
+
onToggleEmail(): void;
|
|
120
|
+
onTogglePassword(): void;
|
|
121
|
+
shouldUserChangeEmail(): void;
|
|
122
|
+
}
|
|
123
|
+
/** Avatar upload and username (slug) editing of the account page (undecorated base). */
|
|
124
|
+
declare abstract class AccountAvatarSlug extends AccountSecurityForms {
|
|
125
|
+
protected readonly modalService: NgbModal;
|
|
126
|
+
image: string;
|
|
127
|
+
toggleNickName: boolean;
|
|
128
|
+
slug: string;
|
|
129
|
+
slugBusyButton: boolean;
|
|
130
|
+
openModal(content: any): void;
|
|
131
|
+
onUpdateSlug(): void;
|
|
132
|
+
onImageSelection(event: any): void;
|
|
133
|
+
dataURLtoBlob(dataUrl: string): Blob;
|
|
134
|
+
onClose(): void;
|
|
135
|
+
}
|
|
136
|
+
declare namespace account_details_component_d_exports {
|
|
137
|
+
export { AccountDetailsComponent };
|
|
138
|
+
}
|
|
139
|
+
export declare class AccountDetailsComponent extends AccountAvatarSlug implements OnInit, OnDestroy {
|
|
140
|
+
private readonly geoService;
|
|
141
|
+
private readonly profileService;
|
|
142
|
+
private readonly transloco;
|
|
143
|
+
placesRef: NgxGpAutocompleteDirective;
|
|
144
|
+
passwordRef: ElementRef;
|
|
145
|
+
profileForm: FormGroup;
|
|
146
|
+
countries$: Observable<Country[]>;
|
|
147
|
+
states: Country[];
|
|
148
|
+
selectedState: any;
|
|
149
|
+
isLoaded: boolean;
|
|
150
|
+
profileBusyButton: boolean;
|
|
151
|
+
ngOnInit(): void;
|
|
152
|
+
handleAddressChange(_event: any): void;
|
|
153
|
+
protected getUserProfile(): void;
|
|
154
|
+
handleImageError(event: Event, fallbackPath: any): void;
|
|
155
|
+
onProfileFormSubmit(): void;
|
|
156
|
+
onAvatarSave(): void;
|
|
157
|
+
getRegion(countryId: number | string): void;
|
|
156
158
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccountDetailsComponent, never>;
|
|
157
159
|
static ɵcmp: i0.ɵɵComponentDeclaration<AccountDetailsComponent, "pw-account-details", never, {}, {}, never, never, true, never>;
|
|
158
160
|
}
|
|
@@ -519,41 +521,47 @@ declare class SecondaryPaymentMethodComponent implements OnDestroy {
|
|
|
519
521
|
"saved": "saved";
|
|
520
522
|
}, never, never, true, never>;
|
|
521
523
|
}
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
private readonly fb;
|
|
528
|
-
private readonly modalService;
|
|
529
|
-
private readonly subscriptionService;
|
|
524
|
+
/** Card, Stripe token and enrolment steps of the upgrade page (undecorated base). */
|
|
525
|
+
declare abstract class UpgradeSubscriptionPayment extends AppBaseComponent {
|
|
526
|
+
protected readonly fb: FormBuilder;
|
|
527
|
+
protected readonly modalService: NgbModal;
|
|
528
|
+
protected readonly subscriptionService: SubscriptionService;
|
|
530
529
|
private readonly store;
|
|
531
|
-
|
|
532
|
-
private readonly cdr;
|
|
533
|
-
private readonly confirmDialog;
|
|
534
|
-
passwordValidationModal: PasswordValidationComponent;
|
|
530
|
+
protected readonly cdr: ChangeDetectorRef;
|
|
535
531
|
form: FormGroup;
|
|
536
532
|
product: Product;
|
|
537
533
|
subscription: Subscription;
|
|
538
|
-
|
|
539
|
-
cardDetails: CardDetails;
|
|
534
|
+
cardDetails: SavedStripeCard | null;
|
|
540
535
|
units: number;
|
|
541
536
|
subscriptionId: number;
|
|
542
|
-
productId: number;
|
|
543
|
-
unitError: string;
|
|
544
|
-
password: string;
|
|
545
537
|
stripePublishKey: string;
|
|
546
538
|
busy: boolean;
|
|
547
539
|
isPurchaseAttempted: boolean;
|
|
548
|
-
months: any[];
|
|
549
|
-
years: any[];
|
|
550
540
|
showNewCard: boolean;
|
|
551
541
|
passwordModalVisible: boolean;
|
|
552
542
|
errorMsg: any;
|
|
553
543
|
/** No Stripe plan and no price: nothing to charge, so no card is asked for. */
|
|
554
544
|
get isFree(): boolean;
|
|
545
|
+
private postCreateToken;
|
|
546
|
+
protected onPurchaseSubmit(): void;
|
|
547
|
+
private enrollUserToSubscription;
|
|
548
|
+
updateCardDetails(): void;
|
|
549
|
+
}
|
|
550
|
+
declare namespace upgrade_subscription_component_d_exports {
|
|
551
|
+
export { UpgradeSubscriptionComponent };
|
|
552
|
+
}
|
|
553
|
+
export declare class UpgradeSubscriptionComponent extends UpgradeSubscriptionPayment implements OnInit {
|
|
554
|
+
private readonly productService;
|
|
555
|
+
private readonly scriptLoader;
|
|
556
|
+
private readonly confirmDialog;
|
|
557
|
+
passwordValidationModal: PasswordValidationComponent;
|
|
558
|
+
user: User;
|
|
559
|
+
productId: number;
|
|
560
|
+
unitError: string;
|
|
561
|
+
password: string;
|
|
562
|
+
months: any[];
|
|
563
|
+
years: any[];
|
|
555
564
|
get totalAmount(): number;
|
|
556
|
-
constructor();
|
|
557
565
|
ngOnInit(): void;
|
|
558
566
|
getSubscriptionDetails(): void;
|
|
559
567
|
getProductDetails(): void;
|
|
@@ -561,78 +569,81 @@ export declare class UpgradeSubscriptionComponent extends AppBaseComponent imple
|
|
|
561
569
|
onMinReached(event: any): void;
|
|
562
570
|
onUnitChange(event: any): void;
|
|
563
571
|
onValidatePassword(isSuccess: boolean): void;
|
|
564
|
-
private postCreateToken;
|
|
565
572
|
attemptPurchase(): void;
|
|
566
|
-
private onPurchaseSubmit;
|
|
567
|
-
private enrollUserToSubscription;
|
|
568
573
|
private noPasswordModal;
|
|
569
574
|
private getCardDetails;
|
|
570
575
|
onDiscardToggle(): void;
|
|
571
|
-
updateCardDetails(): void;
|
|
572
|
-
ngOnDestroy(): void;
|
|
573
576
|
static ɵfac: i0.ɵɵFactoryDeclaration<UpgradeSubscriptionComponent, never>;
|
|
574
577
|
static ɵcmp: i0.ɵɵComponentDeclaration<UpgradeSubscriptionComponent, "pw-upgrade-subscription", never, {}, {}, never, never, true, never>;
|
|
575
578
|
}
|
|
579
|
+
/** API token display and refresh of the subscription details page (undecorated base). */
|
|
580
|
+
declare abstract class SubscriptionApiTokens extends AppBaseComponent {
|
|
581
|
+
protected readonly subscriptionService: SubscriptionService;
|
|
582
|
+
protected readonly cdr: ChangeDetectorRef;
|
|
583
|
+
private readonly confirmDialog;
|
|
584
|
+
subscription: Subscription;
|
|
585
|
+
subscriptionId: number;
|
|
586
|
+
showApiToken: boolean;
|
|
587
|
+
showApiClientId: boolean;
|
|
588
|
+
refreshingTokens: boolean;
|
|
589
|
+
protected abstract fetchData(): void;
|
|
590
|
+
toggleApiTokenVisibility(): void;
|
|
591
|
+
toggleApiClientIdVisibility(): void;
|
|
592
|
+
refreshApiTokens(): void;
|
|
593
|
+
private performTokenRefresh;
|
|
594
|
+
}
|
|
595
|
+
/** Full and squared logo upload of the subscription details page (undecorated base). */
|
|
596
|
+
declare abstract class SubscriptionLogos extends SubscriptionApiTokens {
|
|
597
|
+
protected readonly modalService: NgbModal;
|
|
598
|
+
squaredLogo: string;
|
|
599
|
+
fullLogo: string;
|
|
600
|
+
fullLogoBroken: boolean;
|
|
601
|
+
squaredLogoBroken: boolean;
|
|
602
|
+
slug: string;
|
|
603
|
+
openModal(content: any): void;
|
|
604
|
+
onImageSelection(event: any): void;
|
|
605
|
+
uploadSquaredLogo(event: any): void;
|
|
606
|
+
onClose(): void;
|
|
607
|
+
dataURLtoBlob(dataUrl: any): Blob;
|
|
608
|
+
}
|
|
609
|
+
/** Seat (unit) count changes of the subscription details page (undecorated base). */
|
|
610
|
+
declare abstract class SubscriptionSeats extends SubscriptionLogos {
|
|
611
|
+
abstract modal: PasswordValidationComponent;
|
|
612
|
+
allowUpdate: boolean;
|
|
613
|
+
hasUnitChanged: boolean;
|
|
614
|
+
unitError: string;
|
|
615
|
+
units: number;
|
|
616
|
+
totalAmount(): number;
|
|
617
|
+
/** *
|
|
618
|
+
* Update seats for all the products of subscription
|
|
619
|
+
*/
|
|
620
|
+
updateUnits(): void;
|
|
621
|
+
onPasswordValidation(_event: any): void;
|
|
622
|
+
onMaxReached(event: any): void;
|
|
623
|
+
onMinReached(event: any): void;
|
|
624
|
+
onUnitChange(event: any): void;
|
|
625
|
+
}
|
|
576
626
|
declare namespace user_subscription_details_component_d_exports {
|
|
577
627
|
export { UserSubscriptionDetailsComponent };
|
|
578
628
|
}
|
|
579
|
-
export declare class UserSubscriptionDetailsComponent extends
|
|
629
|
+
export declare class UserSubscriptionDetailsComponent extends SubscriptionSeats implements OnInit, OnDestroy {
|
|
580
630
|
private readonly fb;
|
|
581
631
|
private readonly geoService;
|
|
582
|
-
private readonly modalService;
|
|
583
|
-
private readonly subscriptionService;
|
|
584
632
|
private readonly store;
|
|
585
|
-
private readonly cdr;
|
|
586
|
-
private readonly confirmDialog;
|
|
587
633
|
private readonly transloco;
|
|
588
634
|
modal: PasswordValidationComponent;
|
|
589
|
-
allowUpdate: boolean;
|
|
590
|
-
hasUnitChanged: boolean;
|
|
591
635
|
busyButton: boolean;
|
|
592
636
|
form: FormGroup;
|
|
593
|
-
unitError: string;
|
|
594
|
-
subscription: Subscription;
|
|
595
|
-
units: number;
|
|
596
637
|
countries$: Observable<Country[]>;
|
|
597
|
-
squaredLogo: string;
|
|
598
|
-
fullLogo: string;
|
|
599
|
-
fullLogoBroken: boolean;
|
|
600
|
-
squaredLogoBroken: boolean;
|
|
601
|
-
slug: string;
|
|
602
638
|
userId: number;
|
|
603
|
-
subscriptionId: number;
|
|
604
639
|
user: User;
|
|
605
|
-
showApiToken: boolean;
|
|
606
|
-
showApiClientId: boolean;
|
|
607
|
-
refreshingTokens: boolean;
|
|
608
|
-
totalAmount(): number;
|
|
609
640
|
constructor();
|
|
610
641
|
ngOnInit(): void;
|
|
611
|
-
|
|
642
|
+
protected fetchData(): void;
|
|
612
643
|
/** White-label company name for "Your {brand} AI assistant" (same source as the login page and chat widget). */
|
|
613
644
|
get brandName(): string;
|
|
614
|
-
private getForm;
|
|
615
|
-
private commaSeparatedEmailsValidator;
|
|
616
|
-
/** *
|
|
617
|
-
* Update seats for all the products of subscription
|
|
618
|
-
*/
|
|
619
|
-
updateUnits(): void;
|
|
620
|
-
openModal(content: any): void;
|
|
621
|
-
onImageSelection(event: any): void;
|
|
622
|
-
uploadSquaredLogo(event: any): void;
|
|
623
|
-
onClose(): void;
|
|
624
|
-
dataURLtoBlob(dataUrl: any): Blob;
|
|
625
645
|
onSaveDetails(): void;
|
|
626
|
-
onPasswordValidation(_event: any): void;
|
|
627
|
-
onMaxReached(event: any): void;
|
|
628
|
-
onMinReached(event: any): void;
|
|
629
|
-
onUnitChange(event: any): void;
|
|
630
|
-
/** Function to execute on location select */
|
|
631
646
|
handleAddressChange(event: any): void;
|
|
632
|
-
toggleApiTokenVisibility(): void;
|
|
633
|
-
toggleApiClientIdVisibility(): void;
|
|
634
|
-
refreshApiTokens(): void;
|
|
635
|
-
private performTokenRefresh;
|
|
636
647
|
trackByProduct(_index: number, item: Product): number;
|
|
637
648
|
ngOnDestroy(): void;
|
|
638
649
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserSubscriptionDetailsComponent, never>;
|
|
@@ -677,28 +688,45 @@ declare class SubscriptionRemovalComponent {
|
|
|
677
688
|
"removed": "removed";
|
|
678
689
|
}, never, never, true, never>;
|
|
679
690
|
}
|
|
691
|
+
/** API-key reveal/refresh, account deletion and terms dialog of the subscriptions list (undecorated base). */
|
|
692
|
+
declare abstract class SubscriptionListActions extends AppBaseComponent {
|
|
693
|
+
protected readonly subscriptionService: SubscriptionService;
|
|
694
|
+
private readonly adminService;
|
|
695
|
+
private readonly clipboard;
|
|
696
|
+
protected readonly cdr: ChangeDetectorRef;
|
|
697
|
+
protected readonly confirmDialog: ConfirmDialogService;
|
|
698
|
+
abstract passwordValidationModalForAccountDelete: PasswordValidationComponent;
|
|
699
|
+
abstract passwordValidationModalForKey: PasswordValidationComponent;
|
|
700
|
+
showApiKey: boolean;
|
|
701
|
+
productName: string;
|
|
702
|
+
user: User;
|
|
703
|
+
currentItem: CurrentItem;
|
|
704
|
+
showTos: boolean;
|
|
705
|
+
productId: number;
|
|
706
|
+
protected abstract getSubscribedProduct(): void;
|
|
707
|
+
onClipboardCopy(accessCode: string): void;
|
|
708
|
+
updateApiKey(subscription: any, product: any): void;
|
|
709
|
+
showKey(item: any): void;
|
|
710
|
+
displayApiKey(): void;
|
|
711
|
+
showModalForAccountDeletion(): void;
|
|
712
|
+
deleteUser(_event: any): void;
|
|
713
|
+
showPrivacyAndTos(product: Product): void;
|
|
714
|
+
onCancel(): void;
|
|
715
|
+
}
|
|
680
716
|
declare namespace user_subscriptions_list_component_d_exports {
|
|
681
717
|
export { UserSubscriptionListComponent };
|
|
682
718
|
}
|
|
683
|
-
export declare class UserSubscriptionListComponent extends
|
|
684
|
-
private readonly subscriptionService;
|
|
685
|
-
private readonly adminService;
|
|
686
|
-
private readonly clipboard;
|
|
687
|
-
private readonly cdr;
|
|
688
|
-
private readonly confirmDialog;
|
|
719
|
+
export declare class UserSubscriptionListComponent extends SubscriptionListActions implements OnInit {
|
|
689
720
|
readonly inMobileApp: boolean;
|
|
690
721
|
menu: MenuItem[];
|
|
691
722
|
changeSubscriptionRef: AddSubscriptionComponent;
|
|
692
723
|
passwordValidationModalForAccountDelete: PasswordValidationComponent;
|
|
693
724
|
passwordValidationModalForKey: PasswordValidationComponent;
|
|
694
725
|
removal: SubscriptionRemovalComponent;
|
|
695
|
-
showApiKey: boolean;
|
|
696
726
|
password: string;
|
|
697
|
-
productName: string;
|
|
698
727
|
subscribedSubscriptions: any[];
|
|
699
728
|
activeItem: MenuItem;
|
|
700
729
|
isAddNew: boolean;
|
|
701
|
-
user: User;
|
|
702
730
|
isUpdatePayment: false;
|
|
703
731
|
selectedSubscription: {
|
|
704
732
|
id: number;
|
|
@@ -706,41 +734,29 @@ export declare class UserSubscriptionListComponent extends AppBaseComponent impl
|
|
|
706
734
|
};
|
|
707
735
|
editing: boolean;
|
|
708
736
|
isLoaded: boolean;
|
|
709
|
-
currentItem: CurrentItem;
|
|
710
|
-
showTos: boolean;
|
|
711
737
|
objectKeys: {
|
|
712
738
|
(o: object): string[];
|
|
713
739
|
(o: {}): string[];
|
|
714
740
|
};
|
|
715
741
|
items: MenuItem[];
|
|
716
|
-
productId: number;
|
|
717
742
|
constructor();
|
|
718
743
|
ngOnInit(): void;
|
|
719
|
-
onClipboardCopy(accessCode: string): void;
|
|
720
744
|
deleteSubscription(subscription: Subscription): void;
|
|
721
745
|
deleteProduct(subscription: Subscription, product: Product): void;
|
|
722
746
|
onRemoved(): void;
|
|
723
|
-
|
|
724
|
-
updateApiKey(subscription: any, product: any): void;
|
|
725
|
-
showKey(item: any): void;
|
|
726
|
-
displayApiKey(): void;
|
|
747
|
+
protected getSubscribedProduct(): void;
|
|
727
748
|
activateMenu(): void;
|
|
728
749
|
discardEdit(): void;
|
|
729
750
|
onSaveDetails(): void;
|
|
730
751
|
onUpdatePaymentDetailsCancel(): void;
|
|
731
752
|
attemptUpgrade(subscription: Subscription, product: Product): void;
|
|
732
753
|
private noPasswordModal;
|
|
733
|
-
showModalForAccountDeletion(): void;
|
|
734
|
-
deleteUser(_event: any): void;
|
|
735
|
-
showPrivacyAndTos(product: Product): void;
|
|
736
|
-
onCancel(): void;
|
|
737
754
|
trackBySubscription(_index: number, item: {
|
|
738
755
|
id: number;
|
|
739
756
|
}): number;
|
|
740
757
|
trackByProduct(_index: number, item: {
|
|
741
758
|
id: number;
|
|
742
759
|
}): number;
|
|
743
|
-
ngOnDestroy(): void;
|
|
744
760
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserSubscriptionListComponent, never>;
|
|
745
761
|
static ɵcmp: i0.ɵɵComponentDeclaration<UserSubscriptionListComponent, "pw-user-subscriptions-list", never, {}, {}, never, never, true, never>;
|
|
746
762
|
}
|
|
@@ -799,7 +815,7 @@ export declare class CommunicationTabComponent extends AppBaseComponent implemen
|
|
|
799
815
|
private readonly store;
|
|
800
816
|
private readonly cdr;
|
|
801
817
|
subscriptions: any[];
|
|
802
|
-
userSubscription:
|
|
818
|
+
userSubscription: UserNewsletter[];
|
|
803
819
|
isLoaded: boolean;
|
|
804
820
|
user: User;
|
|
805
821
|
ngOnInit(): void;
|
|
@@ -1175,7 +1191,6 @@ export declare class UserAboutComponent extends AppBaseComponent implements OnIn
|
|
|
1175
1191
|
qualificationModal: EditQualificationsModalComponent;
|
|
1176
1192
|
skillsModal: EditSkillsModalComponent;
|
|
1177
1193
|
socialModal: EditSocialLinksComponent;
|
|
1178
|
-
private readonly navigationSubscription;
|
|
1179
1194
|
allSkills: any[];
|
|
1180
1195
|
searchSkills: any[];
|
|
1181
1196
|
selectedSkills: Skill[];
|
|
@@ -1183,16 +1198,13 @@ export declare class UserAboutComponent extends AppBaseComponent implements OnIn
|
|
|
1183
1198
|
(o: object): string[];
|
|
1184
1199
|
(o: {}): string[];
|
|
1185
1200
|
};
|
|
1186
|
-
user_profile:
|
|
1201
|
+
user_profile: UserProfileDetails | null;
|
|
1187
1202
|
qualifications: Qualification[];
|
|
1188
1203
|
userLinks: Record<string, string>;
|
|
1189
1204
|
noUserLinks: boolean;
|
|
1190
1205
|
loading: boolean;
|
|
1191
1206
|
ngOnInit(): void;
|
|
1192
1207
|
getUserDetails(): void;
|
|
1193
|
-
/**
|
|
1194
|
-
* Populate all the skills for the dropdown
|
|
1195
|
-
*/
|
|
1196
1208
|
private getSkills;
|
|
1197
1209
|
onProfileOpen(): void;
|
|
1198
1210
|
openSkills(): void;
|
|
@@ -1250,25 +1262,33 @@ export declare class PortfoliosComponent implements OnInit {
|
|
|
1250
1262
|
};
|
|
1251
1263
|
}, {}, never, never, true, never>;
|
|
1252
1264
|
}
|
|
1265
|
+
/** Avatar display and upload of the public user profile page (undecorated base). */
|
|
1266
|
+
declare abstract class UserProfileAvatar extends AppBaseComponent {
|
|
1267
|
+
private readonly modalService;
|
|
1268
|
+
protected readonly cdr: ChangeDetectorRef;
|
|
1269
|
+
slug: string;
|
|
1270
|
+
image: string;
|
|
1271
|
+
abstract get allowEdit(): boolean;
|
|
1272
|
+
handleImageError(event: Event, fallbackPath: any): void;
|
|
1273
|
+
openModal(content: any): void;
|
|
1274
|
+
onImageSelection(event: any): void;
|
|
1275
|
+
onClose(): void;
|
|
1276
|
+
}
|
|
1253
1277
|
declare namespace user_profile_page_component_d_exports {
|
|
1254
1278
|
export { UserProfilePageComponent };
|
|
1255
1279
|
}
|
|
1256
|
-
export declare class UserProfilePageComponent extends
|
|
1280
|
+
export declare class UserProfilePageComponent extends UserProfileAvatar implements OnInit {
|
|
1257
1281
|
private readonly profileService;
|
|
1258
|
-
private readonly modalService;
|
|
1259
1282
|
private readonly scriptLoader;
|
|
1260
|
-
private readonly cdr;
|
|
1261
1283
|
private loggedInUserDetails;
|
|
1262
1284
|
user: User;
|
|
1263
|
-
slug: string;
|
|
1264
1285
|
objectKeys: {
|
|
1265
1286
|
(o: object): string[];
|
|
1266
1287
|
(o: {}): string[];
|
|
1267
1288
|
};
|
|
1268
|
-
image: string;
|
|
1269
1289
|
isFollowing: boolean;
|
|
1270
1290
|
isLoaded: boolean;
|
|
1271
|
-
userProfile:
|
|
1291
|
+
userProfile: UserProfileDetails | null;
|
|
1272
1292
|
items: MenuItem[];
|
|
1273
1293
|
activeItem: MenuItem;
|
|
1274
1294
|
/** Current tab value for p-tabs */
|
|
@@ -1277,18 +1297,10 @@ export declare class UserProfilePageComponent extends AppBaseComponent implement
|
|
|
1277
1297
|
constructor();
|
|
1278
1298
|
get allowEdit(): boolean;
|
|
1279
1299
|
ngOnInit(): void;
|
|
1280
|
-
handleImageError(event: Event, fallbackPath: any): void;
|
|
1281
|
-
private dataURLtoBlob;
|
|
1282
|
-
openModal(content: any): void;
|
|
1283
|
-
onImageSelection(event: any): void;
|
|
1284
1300
|
getUserBySlug(): void;
|
|
1285
|
-
onClose(): void;
|
|
1286
1301
|
private getCurrentUserDetails;
|
|
1287
1302
|
sendMessageSlug(): void;
|
|
1288
1303
|
followUser(): void;
|
|
1289
|
-
private waitForJQuery;
|
|
1290
|
-
private loadJQueryForUserProfile;
|
|
1291
|
-
ngOnDestroy(): void;
|
|
1292
1304
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserProfilePageComponent, never>;
|
|
1293
1305
|
static ɵcmp: i0.ɵɵComponentDeclaration<UserProfilePageComponent, "pw-user-profile-page", never, {}, {}, never, never, true, never>;
|
|
1294
1306
|
}
|