@posiwise/user-module 0.0.93 → 0.0.94
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/esm2022/lib/account/account-details/account-details.component.mjs +1 -1
- package/esm2022/lib/account/subscriptions/add-subscription/add-subscription.component.mjs +1 -1
- package/esm2022/lib/account/subscriptions/saved-card-details/saved-card-details.component.mjs +1 -1
- package/esm2022/lib/account/subscriptions/subscription-credential/subscription-credential.component.mjs +1 -1
- package/esm2022/lib/account/subscriptions/update-payment-details/update-payment-details.component.mjs +1 -1
- package/esm2022/lib/account/subscriptions/upgrade-subscription/upgrade-subscription.component.mjs +1 -1
- package/esm2022/lib/account/subscriptions/user-subscription-details/user-subscription-details.component.mjs +1 -1
- package/esm2022/lib/account/subscriptions/user-subscriptions-list/user-subscriptions-list.component.mjs +1 -1
- package/esm2022/lib/settings-tabs/security-tab/security-tab.component.mjs +1 -1
- package/esm2022/lib/shared/interface/user-module.interface.mjs +2 -0
- package/esm2022/lib/user-profile/edit-portfolios/edit-portfolios.component.mjs +1 -1
- package/esm2022/lib/user-profile/edit-project-modal/edit-project-modal.component.mjs +2 -1
- package/esm2022/lib/user-profile/edit-qualifications-modal/edit-qualifications-modal.component.mjs +1 -1
- package/esm2022/lib/user-profile/edit-recommendation-modal/edit-recommendation-modal.component.mjs +1 -1
- package/esm2022/lib/user-profile/edit-skills-modal/edit-skills-modal.component.mjs +1 -1
- package/esm2022/lib/user-profile/edit-social-links/edit-social-links.component.mjs +1 -1
- package/esm2022/lib/user-profile/edit-user-profile-modal/edit-user-profile-modal.component.mjs +1 -1
- package/esm2022/lib/user-profile/user-about/user-about.component.mjs +3 -3
- package/esm2022/lib/user-profile/user-portfolios/user-portfolios.component.mjs +1 -1
- package/esm2022/lib/user-profile/user-profile-page.component.mjs +1 -1
- package/esm2022/lib/user-profile/user-projects/user-projects.component.mjs +1 -1
- package/fesm2022/posiwise-user-module.mjs +3 -2
- package/fesm2022/posiwise-user-module.mjs.map +1 -1
- package/lib/account/account-details/account-details.component.d.ts +1 -1
- package/lib/account/subscriptions/add-subscription/add-subscription.component.d.ts +2 -2
- package/lib/account/subscriptions/saved-card-details/saved-card-details.component.d.ts +7 -2
- package/lib/account/subscriptions/subscription-credential/subscription-credential.component.d.ts +6 -5
- package/lib/account/subscriptions/update-payment-details/update-payment-details.component.d.ts +2 -1
- package/lib/account/subscriptions/upgrade-subscription/upgrade-subscription.component.d.ts +2 -1
- package/lib/account/subscriptions/user-subscription-details/user-subscription-details.component.d.ts +4 -4
- package/lib/account/subscriptions/user-subscriptions-list/user-subscriptions-list.component.d.ts +12 -4
- package/lib/settings-tabs/security-tab/security-tab.component.d.ts +1 -1
- package/lib/shared/interface/user-module.interface.d.ts +144 -0
- package/lib/user-profile/edit-portfolios/edit-portfolios.component.d.ts +6 -3
- package/lib/user-profile/edit-project-modal/edit-project-modal.component.d.ts +7 -6
- package/lib/user-profile/edit-qualifications-modal/edit-qualifications-modal.component.d.ts +3 -2
- package/lib/user-profile/edit-recommendation-modal/edit-recommendation-modal.component.d.ts +2 -1
- package/lib/user-profile/edit-skills-modal/edit-skills-modal.component.d.ts +3 -2
- package/lib/user-profile/edit-social-links/edit-social-links.component.d.ts +4 -3
- package/lib/user-profile/edit-user-profile-modal/edit-user-profile-modal.component.d.ts +6 -5
- package/lib/user-profile/user-about/user-about.component.d.ts +8 -5
- package/lib/user-profile/user-portfolios/user-portfolios.component.d.ts +3 -1
- package/lib/user-profile/user-profile-page.component.d.ts +2 -1
- package/lib/user-profile/user-projects/user-projects.component.d.ts +3 -4
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ export declare class AccountDetailsComponent extends AppBaseComponent implements
|
|
|
18
18
|
passwordForm: UntypedFormGroup;
|
|
19
19
|
profileForm: UntypedFormGroup;
|
|
20
20
|
image: string;
|
|
21
|
-
countries$: Observable<
|
|
21
|
+
countries$: Observable<Country[]>;
|
|
22
22
|
states: Country[];
|
|
23
23
|
validatedEmail: string;
|
|
24
24
|
toggleEmail: boolean;
|
|
@@ -14,7 +14,7 @@ export declare class AddSubscriptionComponent extends AppBaseComponent implement
|
|
|
14
14
|
isLoaded: boolean;
|
|
15
15
|
availableProducts: Product[];
|
|
16
16
|
products: Product[];
|
|
17
|
-
selectedProduct:
|
|
17
|
+
selectedProduct: boolean;
|
|
18
18
|
user: User;
|
|
19
19
|
unitError: string;
|
|
20
20
|
category: typeof PRODUCT_CATEGORY;
|
|
@@ -32,7 +32,7 @@ export declare class AddSubscriptionComponent extends AppBaseComponent implement
|
|
|
32
32
|
private getSingleCategoryProducts;
|
|
33
33
|
onChangeCategory(category: any): void;
|
|
34
34
|
onSelection(product: any): void;
|
|
35
|
-
trackByProduct(_index: number, item:
|
|
35
|
+
trackByProduct(_index: number, item: Product): number;
|
|
36
36
|
ngOnDestroy(): void;
|
|
37
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<AddSubscriptionComponent, never>;
|
|
38
38
|
static ɵcmp: i0.ɵɵComponentDeclaration<AddSubscriptionComponent, "pw-add-subscription", never, {}, {}, never, never, false, never>;
|
|
@@ -11,7 +11,12 @@ export declare class SavedCardDetailsComponent {
|
|
|
11
11
|
/**
|
|
12
12
|
* Credit Card details like brand, exp_month, exp_year, card_number
|
|
13
13
|
*/
|
|
14
|
-
data:
|
|
14
|
+
data: {
|
|
15
|
+
brand?: string;
|
|
16
|
+
exp_month?: string;
|
|
17
|
+
exp_year?: string;
|
|
18
|
+
card_number?: string;
|
|
19
|
+
};
|
|
15
20
|
/**
|
|
16
21
|
* boolean: change payment option
|
|
17
22
|
*/
|
|
@@ -20,7 +25,7 @@ export declare class SavedCardDetailsComponent {
|
|
|
20
25
|
/**
|
|
21
26
|
* Emitter: on payment change request
|
|
22
27
|
*/
|
|
23
|
-
changeEvent: EventEmitter<
|
|
28
|
+
changeEvent: EventEmitter<boolean>;
|
|
24
29
|
OnPaymentChange(value: any): void;
|
|
25
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<SavedCardDetailsComponent, never>;
|
|
26
31
|
static ɵcmp: i0.ɵɵComponentDeclaration<SavedCardDetailsComponent, "pw-saved-card-details", never, { "data": { "alias": "data"; "required": false; }; "isChangePayment": { "alias": "isChangePayment"; "required": false; }; "showNewCard": { "alias": "showNewCard"; "required": false; }; }, { "changeEvent": "changeEvent"; }, never, never, false, never>;
|
package/lib/account/subscriptions/subscription-credential/subscription-credential.component.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { UntypedFormArray, UntypedFormBuilder, UntypedFormGroup } from '@angular
|
|
|
3
3
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
4
4
|
import { PasswordValidationComponent } from '@posiwise/shared-components';
|
|
5
5
|
import { SubscriptionService } from '@posiwise/common-services';
|
|
6
|
+
import { CredentialData } from '../../../shared/interface/user-module.interface';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class SubscriptionCredentialComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
8
9
|
private fb;
|
|
@@ -14,18 +15,18 @@ export declare class SubscriptionCredentialComponent extends AppBaseComponent im
|
|
|
14
15
|
data: any[];
|
|
15
16
|
subscriptionId: number;
|
|
16
17
|
isEdit: boolean;
|
|
17
|
-
allSubscriptionCredentials:
|
|
18
|
+
allSubscriptionCredentials: CredentialData[];
|
|
18
19
|
totalRecords: number;
|
|
19
20
|
submitted: boolean;
|
|
20
21
|
buttonBusy: boolean;
|
|
21
|
-
availableCredentials:
|
|
22
|
+
availableCredentials: CredentialData[];
|
|
22
23
|
isLoaded: boolean;
|
|
23
24
|
credentials: any[];
|
|
24
|
-
credentialsSelect:
|
|
25
|
+
credentialsSelect: CredentialData[];
|
|
25
26
|
uniqueCredential: any[];
|
|
26
|
-
updatedCredential:
|
|
27
|
+
updatedCredential: CredentialData;
|
|
27
28
|
showForm: boolean;
|
|
28
|
-
credentialSaved:
|
|
29
|
+
credentialSaved: string;
|
|
29
30
|
credentialName: string;
|
|
30
31
|
credentialToReveal: any;
|
|
31
32
|
private credentialToEdit;
|
package/lib/account/subscriptions/update-payment-details/update-payment-details.component.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { Injector, OnInit } from '@angular/core';
|
|
|
2
2
|
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
4
4
|
import { SubscriptionService, ScriptLoaderService, ProductService } from '@posiwise/common-services';
|
|
5
|
+
import { CardDetails } from '../../../shared/interface/user-module.interface';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class UpdatePaymentDetailsComponent extends AppBaseComponent implements OnInit {
|
|
7
8
|
private fb;
|
|
@@ -12,7 +13,7 @@ export declare class UpdatePaymentDetailsComponent extends AppBaseComponent impl
|
|
|
12
13
|
years: any[];
|
|
13
14
|
errorMsg: string;
|
|
14
15
|
busy: boolean;
|
|
15
|
-
cardDetails:
|
|
16
|
+
cardDetails: CardDetails[];
|
|
16
17
|
isChangePayment: boolean;
|
|
17
18
|
loading: boolean;
|
|
18
19
|
months: any[];
|
|
@@ -7,6 +7,7 @@ import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
|
7
7
|
import { PasswordValidationComponent } from '@posiwise/shared-components';
|
|
8
8
|
import { User, Product, Subscription } from '@posiwise/common-utilities';
|
|
9
9
|
import { ScriptLoaderService, SubscriptionService, ProductService } from '@posiwise/common-services';
|
|
10
|
+
import { CardDetails } from '../../../shared/interface/user-module.interface';
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
export declare class UpgradeSubscriptionComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
12
13
|
private productService;
|
|
@@ -27,7 +28,7 @@ export declare class UpgradeSubscriptionComponent extends AppBaseComponent imple
|
|
|
27
28
|
busy: boolean;
|
|
28
29
|
isPurchaseAttempted: boolean;
|
|
29
30
|
user: User;
|
|
30
|
-
cardDetails:
|
|
31
|
+
cardDetails: CardDetails;
|
|
31
32
|
months: any[];
|
|
32
33
|
years: any[];
|
|
33
34
|
showNewCard: boolean;
|
package/lib/account/subscriptions/user-subscription-details/user-subscription-details.component.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { AppState } from '@posiwise/app-store';
|
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
7
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
8
8
|
import { PasswordValidationComponent } from '@posiwise/shared-components';
|
|
9
|
-
import { User } from '@posiwise/common-utilities';
|
|
9
|
+
import { Country, Product, Subscription, User } from '@posiwise/common-utilities';
|
|
10
10
|
import { GeoService } from '@posiwise/common-services';
|
|
11
11
|
import { SubscriptionService } from '@posiwise/common-services';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
@@ -22,9 +22,9 @@ export declare class UserSubscriptionDetailsComponent extends AppBaseComponent i
|
|
|
22
22
|
subscriptionId: number;
|
|
23
23
|
form: UntypedFormGroup;
|
|
24
24
|
unitError: string;
|
|
25
|
-
subscription:
|
|
25
|
+
subscription: Subscription;
|
|
26
26
|
units: number;
|
|
27
|
-
countries$: Observable<
|
|
27
|
+
countries$: Observable<Country[]>;
|
|
28
28
|
squaredLogo: string;
|
|
29
29
|
fullLogo: string;
|
|
30
30
|
slug: string;
|
|
@@ -51,7 +51,7 @@ export declare class UserSubscriptionDetailsComponent extends AppBaseComponent i
|
|
|
51
51
|
onUnitChange(event: any): void;
|
|
52
52
|
/** Function to execute on location select */
|
|
53
53
|
handleAddressChange(event: any): void;
|
|
54
|
-
trackByProduct(_index: number, item:
|
|
54
|
+
trackByProduct(_index: number, item: Product): number;
|
|
55
55
|
ngOnDestroy(): void;
|
|
56
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserSubscriptionDetailsComponent, never>;
|
|
57
57
|
static ɵcmp: i0.ɵɵComponentDeclaration<UserSubscriptionDetailsComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
package/lib/account/subscriptions/user-subscriptions-list/user-subscriptions-list.component.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
|
10
10
|
import { PasswordValidationComponent } from '@posiwise/shared-components';
|
|
11
11
|
import { Product, User, Subscription } from '@posiwise/common-utilities';
|
|
12
12
|
import { SubscriptionService } from '@posiwise/common-services';
|
|
13
|
+
import { CurrentItem } from '../../../shared/interface/user-module.interface';
|
|
13
14
|
import * as i0 from "@angular/core";
|
|
14
15
|
export declare class UserSubscriptionListComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
15
16
|
private subscriptionService;
|
|
@@ -29,10 +30,13 @@ export declare class UserSubscriptionListComponent extends AppBaseComponent impl
|
|
|
29
30
|
isAddNew: boolean;
|
|
30
31
|
user: User;
|
|
31
32
|
isUpdatePayment: false;
|
|
32
|
-
selectedSubscription:
|
|
33
|
+
selectedSubscription: {
|
|
34
|
+
id: number;
|
|
35
|
+
productId: number;
|
|
36
|
+
};
|
|
33
37
|
editing: boolean;
|
|
34
38
|
isLoaded: boolean;
|
|
35
|
-
currentItem:
|
|
39
|
+
currentItem: CurrentItem;
|
|
36
40
|
showTos: boolean;
|
|
37
41
|
objectKeys: {
|
|
38
42
|
(o: object): string[];
|
|
@@ -61,8 +65,12 @@ export declare class UserSubscriptionListComponent extends AppBaseComponent impl
|
|
|
61
65
|
deleteUser(_event: any): void;
|
|
62
66
|
showPrivacyAndTos(product: Product): void;
|
|
63
67
|
onCancel(): void;
|
|
64
|
-
trackBySubscription(_index: number, item:
|
|
65
|
-
|
|
68
|
+
trackBySubscription(_index: number, item: {
|
|
69
|
+
id: number;
|
|
70
|
+
}): number;
|
|
71
|
+
trackByProduct(_index: number, item: {
|
|
72
|
+
id: number;
|
|
73
|
+
}): number;
|
|
66
74
|
ngOnDestroy(): void;
|
|
67
75
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserSubscriptionListComponent, never>;
|
|
68
76
|
static ɵcmp: i0.ɵɵComponentDeclaration<UserSubscriptionListComponent, "pw-user-subscriptions-list", never, {}, {}, never, never, false, never>;
|
|
@@ -8,7 +8,7 @@ export declare class SecurityTabComponent extends AppBaseComponent implements On
|
|
|
8
8
|
isCurrentPasswordValid: boolean;
|
|
9
9
|
passwordVerified: boolean;
|
|
10
10
|
show2FA: boolean;
|
|
11
|
-
created2faDetails:
|
|
11
|
+
created2faDetails: object;
|
|
12
12
|
constructor(injector: Injector);
|
|
13
13
|
ngOnInit(): void;
|
|
14
14
|
private getUser;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
export interface CredentialData {
|
|
2
|
+
name: string;
|
|
3
|
+
field: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
id?: number;
|
|
6
|
+
is_required?: boolean;
|
|
7
|
+
value?: string;
|
|
8
|
+
subscription_credential_id?: number;
|
|
9
|
+
credential_id?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface SubscriptionCredentialGroup {
|
|
12
|
+
credential_name: string;
|
|
13
|
+
credentials: Credential[];
|
|
14
|
+
}
|
|
15
|
+
export interface CardDetails {
|
|
16
|
+
card_number?: string;
|
|
17
|
+
cvc: string;
|
|
18
|
+
exp_month: string;
|
|
19
|
+
exp_year: string;
|
|
20
|
+
}
|
|
21
|
+
export interface StripeCardResponse {
|
|
22
|
+
id: string;
|
|
23
|
+
object: string;
|
|
24
|
+
card: {
|
|
25
|
+
id: string;
|
|
26
|
+
object: string;
|
|
27
|
+
address_city: string | null;
|
|
28
|
+
address_country: string | null;
|
|
29
|
+
address_line1: string | null;
|
|
30
|
+
address_line1_check: string | null;
|
|
31
|
+
address_line2: string | null;
|
|
32
|
+
address_state: string | null;
|
|
33
|
+
address_zip: string | null;
|
|
34
|
+
address_zip_check: string | null;
|
|
35
|
+
brand: string;
|
|
36
|
+
country: string;
|
|
37
|
+
cvc_check: string | null;
|
|
38
|
+
dynamic_last4: string | null;
|
|
39
|
+
exp_month: string;
|
|
40
|
+
exp_year: number;
|
|
41
|
+
funding: string;
|
|
42
|
+
last4: string;
|
|
43
|
+
name: string | null;
|
|
44
|
+
tokenization_method: string | null;
|
|
45
|
+
};
|
|
46
|
+
client_ip: string | null;
|
|
47
|
+
created: number;
|
|
48
|
+
email: string | null;
|
|
49
|
+
livemode: boolean;
|
|
50
|
+
type: string;
|
|
51
|
+
used: boolean;
|
|
52
|
+
error?: {
|
|
53
|
+
message: string;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export interface UserProfile {
|
|
57
|
+
slug: string;
|
|
58
|
+
headline: string;
|
|
59
|
+
}
|
|
60
|
+
export interface UserRelationship {
|
|
61
|
+
followed_id: number;
|
|
62
|
+
follower_id: number;
|
|
63
|
+
}
|
|
64
|
+
export interface AboutUser {
|
|
65
|
+
id: number;
|
|
66
|
+
slug: string;
|
|
67
|
+
email: string;
|
|
68
|
+
joined_at: string;
|
|
69
|
+
profile?: AboutUserProfile;
|
|
70
|
+
}
|
|
71
|
+
export interface AboutUserProfile {
|
|
72
|
+
description: string;
|
|
73
|
+
dob: string;
|
|
74
|
+
country: string;
|
|
75
|
+
website_url: string;
|
|
76
|
+
gender: string;
|
|
77
|
+
phone_number: string;
|
|
78
|
+
}
|
|
79
|
+
export interface Qualification {
|
|
80
|
+
id: number;
|
|
81
|
+
degree: string;
|
|
82
|
+
course: string;
|
|
83
|
+
school: string;
|
|
84
|
+
started_on: string;
|
|
85
|
+
ended_on: string;
|
|
86
|
+
}
|
|
87
|
+
export interface UserLink {
|
|
88
|
+
[key: string]: string;
|
|
89
|
+
}
|
|
90
|
+
export interface Skill {
|
|
91
|
+
category_name: string;
|
|
92
|
+
tags: {
|
|
93
|
+
name: string;
|
|
94
|
+
}[];
|
|
95
|
+
}
|
|
96
|
+
export interface ModalContext {
|
|
97
|
+
modal: {
|
|
98
|
+
dismiss: () => void;
|
|
99
|
+
close: () => void;
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
export interface EditUser {
|
|
103
|
+
id: number;
|
|
104
|
+
slug: string;
|
|
105
|
+
email: string;
|
|
106
|
+
joined_at: string;
|
|
107
|
+
first_name: string;
|
|
108
|
+
last_name: string;
|
|
109
|
+
profile?: EditUserProfile;
|
|
110
|
+
}
|
|
111
|
+
export interface EditUserProfile {
|
|
112
|
+
description: string;
|
|
113
|
+
dob: string;
|
|
114
|
+
country: string;
|
|
115
|
+
website_url: string;
|
|
116
|
+
gender: string;
|
|
117
|
+
phone_number: string;
|
|
118
|
+
postcode: string;
|
|
119
|
+
location?: string;
|
|
120
|
+
state: string;
|
|
121
|
+
province: string;
|
|
122
|
+
}
|
|
123
|
+
export interface SocialLinks {
|
|
124
|
+
youtube: string;
|
|
125
|
+
skype: string;
|
|
126
|
+
linkedin: string;
|
|
127
|
+
twitter: string;
|
|
128
|
+
instagram: string;
|
|
129
|
+
facebook: string;
|
|
130
|
+
stackoverflow: string;
|
|
131
|
+
github: string;
|
|
132
|
+
bitbucket: string;
|
|
133
|
+
gitlab: string;
|
|
134
|
+
}
|
|
135
|
+
export interface ValidationError {
|
|
136
|
+
urlMalformed?: {
|
|
137
|
+
value: string;
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
export interface CurrentItem {
|
|
141
|
+
id: number;
|
|
142
|
+
api_access_token?: string;
|
|
143
|
+
masked?: string;
|
|
144
|
+
}
|
|
@@ -2,16 +2,17 @@ import { EventEmitter, TemplateRef } from '@angular/core';
|
|
|
2
2
|
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
3
3
|
import { FileUpload } from 'primeng/fileupload';
|
|
4
4
|
import { ProfileService } from '@posiwise/common-services';
|
|
5
|
+
import { ModalContext } from '../../shared/interface/user-module.interface';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class EditPortfoliosComponent {
|
|
7
8
|
private modalService;
|
|
8
9
|
private profileService;
|
|
9
|
-
content: TemplateRef<
|
|
10
|
+
content: TemplateRef<ModalContext>;
|
|
10
11
|
uploader: FileUpload;
|
|
11
12
|
uploadedFiles: any[];
|
|
12
13
|
project: any[];
|
|
13
14
|
projectPictures: any[];
|
|
14
|
-
successEvent: EventEmitter<
|
|
15
|
+
successEvent: EventEmitter<boolean>;
|
|
15
16
|
id: number;
|
|
16
17
|
slug: string;
|
|
17
18
|
busy: boolean;
|
|
@@ -26,7 +27,9 @@ export declare class EditPortfoliosComponent {
|
|
|
26
27
|
*/
|
|
27
28
|
onSave(form: any): void;
|
|
28
29
|
deleteProjectPicture(id: number): void;
|
|
29
|
-
trackByImage(_index: number, item:
|
|
30
|
+
trackByImage(_index: number, item: {
|
|
31
|
+
id: number;
|
|
32
|
+
}): number;
|
|
30
33
|
onRemove(event: any): void;
|
|
31
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<EditPortfoliosComponent, never>;
|
|
32
35
|
static ɵcmp: i0.ɵɵComponentDeclaration<EditPortfoliosComponent, "pw-edit-portfolios", never, { "id": { "alias": "id"; "required": false; }; "slug": { "alias": "slug"; "required": false; }; }, { "successEvent": "successEvent"; }, never, never, false, never>;
|
|
@@ -3,19 +3,20 @@ import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
|
3
3
|
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
4
4
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
5
5
|
import { ProfileService } from '@posiwise/common-services';
|
|
6
|
+
import { ModalContext } from '../../shared/interface/user-module.interface';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class EditProjectModalComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
8
9
|
modalService: NgbModal;
|
|
9
10
|
private fb;
|
|
10
11
|
private profileService;
|
|
11
|
-
content: TemplateRef<
|
|
12
|
-
cancelEvent: EventEmitter<
|
|
13
|
-
saveEvent: EventEmitter<
|
|
12
|
+
content: TemplateRef<ModalContext>;
|
|
13
|
+
cancelEvent: EventEmitter<void>;
|
|
14
|
+
saveEvent: EventEmitter<boolean>;
|
|
14
15
|
form: UntypedFormGroup;
|
|
15
|
-
weeks:
|
|
16
|
+
weeks: number[];
|
|
16
17
|
title: string;
|
|
17
|
-
startYears:
|
|
18
|
-
endYears:
|
|
18
|
+
startYears: number[];
|
|
19
|
+
endYears: number[];
|
|
19
20
|
submitted: boolean;
|
|
20
21
|
private currentProject;
|
|
21
22
|
userId: number;
|
|
@@ -3,13 +3,14 @@ import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
|
3
3
|
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
4
4
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
5
5
|
import { QualificationService } from '@posiwise/common-services';
|
|
6
|
+
import { ModalContext } from '../../shared/interface/user-module.interface';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class EditQualificationsModalComponent extends AppBaseComponent implements OnInit {
|
|
8
9
|
modalService: NgbModal;
|
|
9
10
|
private fb;
|
|
10
11
|
private qualificationService;
|
|
11
|
-
saveEvent: EventEmitter<
|
|
12
|
-
content: TemplateRef<
|
|
12
|
+
saveEvent: EventEmitter<void>;
|
|
13
|
+
content: TemplateRef<ModalContext>;
|
|
13
14
|
title: string;
|
|
14
15
|
form: UntypedFormGroup;
|
|
15
16
|
userId: number;
|
|
@@ -4,13 +4,14 @@ import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
|
4
4
|
import { User } from '@posiwise/common-utilities';
|
|
5
5
|
import { Project } from '@posiwise/common-utilities';
|
|
6
6
|
import { ProfileService } from '@posiwise/common-services';
|
|
7
|
+
import { ModalContext } from '../../shared/interface/user-module.interface';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class EditRecommendationModalComponent {
|
|
9
10
|
modalService: NgbModal;
|
|
10
11
|
private fb;
|
|
11
12
|
private profileService;
|
|
12
13
|
title: string;
|
|
13
|
-
content: TemplateRef<
|
|
14
|
+
content: TemplateRef<ModalContext>;
|
|
14
15
|
form: UntypedFormGroup;
|
|
15
16
|
user: User;
|
|
16
17
|
project: Project;
|
|
@@ -3,16 +3,17 @@ import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
|
3
3
|
import { TAG_ENTITY, TAG_TYPE } from '@posiwise/common-utilities';
|
|
4
4
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
5
5
|
import { TagService } from '@posiwise/common-services';
|
|
6
|
+
import { ModalContext } from '../../shared/interface/user-module.interface';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class EditSkillsModalComponent extends AppBaseComponent {
|
|
8
9
|
private modalService;
|
|
9
10
|
private tagService;
|
|
10
|
-
content: TemplateRef<
|
|
11
|
+
content: TemplateRef<ModalContext>;
|
|
11
12
|
userId: number;
|
|
12
13
|
slug: string;
|
|
13
14
|
entityType: TAG_TYPE;
|
|
14
15
|
entityEntity: TAG_ENTITY;
|
|
15
|
-
saveEvent: EventEmitter<
|
|
16
|
+
saveEvent: EventEmitter<boolean>;
|
|
16
17
|
allSkills: any[];
|
|
17
18
|
searchSkills: any[];
|
|
18
19
|
selectedSkills: any[];
|
|
@@ -3,16 +3,17 @@ import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
|
3
3
|
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
4
4
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
5
5
|
import { ProfileService } from '@posiwise/common-services';
|
|
6
|
+
import { ModalContext, SocialLinks } from '../../shared/interface/user-module.interface';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class EditSocialLinksComponent extends AppBaseComponent implements OnInit {
|
|
8
9
|
private modalService;
|
|
9
10
|
private fb;
|
|
10
11
|
private profileService;
|
|
11
|
-
content: TemplateRef<
|
|
12
|
+
content: TemplateRef<ModalContext>;
|
|
12
13
|
form: UntypedFormGroup;
|
|
13
|
-
links:
|
|
14
|
+
links: SocialLinks;
|
|
14
15
|
userId: number;
|
|
15
|
-
saveEvent: EventEmitter<
|
|
16
|
+
saveEvent: EventEmitter<void>;
|
|
16
17
|
constructor(injector: Injector, modalService: NgbModal, fb: UntypedFormBuilder, profileService: ProfileService);
|
|
17
18
|
private urlValidator;
|
|
18
19
|
ngOnInit(): void;
|
|
@@ -3,22 +3,23 @@ import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
|
3
3
|
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
6
|
-
import {
|
|
6
|
+
import { Country } from '@posiwise/common-utilities';
|
|
7
7
|
import { GeoService, ProfileService } from '@posiwise/common-services';
|
|
8
8
|
import { NgxGpAutocompleteDirective } from '@angular-magic/ngx-gp-autocomplete';
|
|
9
|
+
import { EditUser, ModalContext, UserProfile } from '../../shared/interface/user-module.interface';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class EditUserProfileModalComponent extends AppBaseComponent implements OnInit {
|
|
11
12
|
modalService: NgbModal;
|
|
12
13
|
private fb;
|
|
13
14
|
private profileService;
|
|
14
15
|
private geoService;
|
|
15
|
-
content: TemplateRef<
|
|
16
|
+
content: TemplateRef<ModalContext>;
|
|
16
17
|
slug: string;
|
|
17
|
-
saveEvent: EventEmitter<
|
|
18
|
-
user:
|
|
18
|
+
saveEvent: EventEmitter<UserProfile>;
|
|
19
|
+
user: EditUser;
|
|
19
20
|
placesRef: NgxGpAutocompleteDirective;
|
|
20
21
|
form: UntypedFormGroup;
|
|
21
|
-
countries$: Observable<
|
|
22
|
+
countries$: Observable<Country>;
|
|
22
23
|
states: Country[];
|
|
23
24
|
constructor(modalService: NgbModal, fb: UntypedFormBuilder, profileService: ProfileService, geoService: GeoService, injector: Injector);
|
|
24
25
|
ngOnInit(): void;
|
|
@@ -6,6 +6,7 @@ import { EditUserProfileModalComponent } from '../edit-user-profile-modal/edit-u
|
|
|
6
6
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
7
7
|
import { User } from '@posiwise/common-utilities';
|
|
8
8
|
import { ProfileService, QualificationService, TagService } from '@posiwise/common-services';
|
|
9
|
+
import { AboutUserProfile, Qualification, Skill, UserLink } from '../../shared/interface/user-module.interface';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class UserAboutComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
11
12
|
private profileService;
|
|
@@ -21,14 +22,14 @@ export declare class UserAboutComponent extends AppBaseComponent implements OnIn
|
|
|
21
22
|
private navigationSubscription;
|
|
22
23
|
allSkills: any[];
|
|
23
24
|
searchSkills: any[];
|
|
24
|
-
selectedSkills:
|
|
25
|
+
selectedSkills: Skill[];
|
|
25
26
|
objectKeys: {
|
|
26
27
|
(o: object): string[];
|
|
27
28
|
(o: {}): string[];
|
|
28
29
|
};
|
|
29
|
-
user_profile:
|
|
30
|
-
qualifications:
|
|
31
|
-
userLinks:
|
|
30
|
+
user_profile: AboutUserProfile;
|
|
31
|
+
qualifications: Qualification[];
|
|
32
|
+
userLinks: UserLink[];
|
|
32
33
|
noUserLinks: boolean;
|
|
33
34
|
loading: boolean;
|
|
34
35
|
constructor(profileService: ProfileService, qualificationService: QualificationService, tagService: TagService, injector: Injector);
|
|
@@ -45,7 +46,9 @@ export declare class UserAboutComponent extends AppBaseComponent implements OnIn
|
|
|
45
46
|
editQualification(item: any): void;
|
|
46
47
|
deleteQualification(item: any): void;
|
|
47
48
|
onSaveUserLinks(): void;
|
|
48
|
-
trackByQualification(_index: number, item:
|
|
49
|
+
trackByQualification(_index: number, item: {
|
|
50
|
+
id: number;
|
|
51
|
+
}): number;
|
|
49
52
|
ngOnDestroy(): void;
|
|
50
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserAboutComponent, never>;
|
|
51
54
|
static ɵcmp: i0.ɵɵComponentDeclaration<UserAboutComponent, "pw-user-about", never, { "user": { "alias": "user"; "required": false; }; "isEdit": { "alias": "isEdit"; "required": false; }; }, { "saveEvent": "saveEvent"; }, never, never, false, never>;
|
|
@@ -15,7 +15,9 @@ export declare class PortfoliosComponent implements OnInit {
|
|
|
15
15
|
ngOnInit(): void;
|
|
16
16
|
private getProjectPictures;
|
|
17
17
|
deletePicture(id: any): void;
|
|
18
|
-
trackByImage(_index: number, item:
|
|
18
|
+
trackByImage(_index: number, item: {
|
|
19
|
+
id: number;
|
|
20
|
+
}): number;
|
|
19
21
|
showFullImage(picture: any, content: any, evt: any): void;
|
|
20
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<PortfoliosComponent, never>;
|
|
21
23
|
static ɵcmp: i0.ɵɵComponentDeclaration<PortfoliosComponent, "pw-portfolios", never, { "user": { "alias": "user"; "required": false; }; "isEdit": { "alias": "isEdit"; "required": false; }; }, {}, never, never, false, never>;
|
|
@@ -4,6 +4,7 @@ import { MenuItem } from 'primeng/api';
|
|
|
4
4
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
5
5
|
import { User } from '@posiwise/common-utilities';
|
|
6
6
|
import { ProfileService } from '@posiwise/common-services';
|
|
7
|
+
import { UserProfile } from '../shared/interface/user-module.interface';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class UserProfilePageComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
9
10
|
private profileService;
|
|
@@ -18,7 +19,7 @@ export declare class UserProfilePageComponent extends AppBaseComponent implement
|
|
|
18
19
|
image: string;
|
|
19
20
|
isFollowing: boolean;
|
|
20
21
|
isLoaded: boolean;
|
|
21
|
-
userProfile:
|
|
22
|
+
userProfile: UserProfile;
|
|
22
23
|
private loggedInUserDetails;
|
|
23
24
|
items: MenuItem[];
|
|
24
25
|
activeItem: MenuItem;
|
|
@@ -4,7 +4,7 @@ import { EditProjectModalComponent } from '../edit-project-modal/edit-project-mo
|
|
|
4
4
|
import { EditRecommendationModalComponent } from '../edit-recommendation-modal/edit-recommendation-modal.component';
|
|
5
5
|
import { EditSkillsModalComponent } from '../edit-skills-modal/edit-skills-modal.component';
|
|
6
6
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
7
|
-
import { User } from '@posiwise/common-utilities';
|
|
7
|
+
import { Project, User } from '@posiwise/common-utilities';
|
|
8
8
|
import { ProfileService } from '@posiwise/common-services';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class UserProjectsComponent extends AppBaseComponent implements OnInit {
|
|
@@ -15,9 +15,8 @@ export declare class UserProjectsComponent extends AppBaseComponent implements O
|
|
|
15
15
|
skillModal: EditSkillsModalComponent;
|
|
16
16
|
recommendationModal: EditRecommendationModalComponent;
|
|
17
17
|
portfolios: EditPortfoliosComponent;
|
|
18
|
-
projects:
|
|
18
|
+
projects: Project[];
|
|
19
19
|
submitted: boolean;
|
|
20
|
-
weeks: any[];
|
|
21
20
|
isLoaded: boolean;
|
|
22
21
|
constructor(service: ProfileService, injector: Injector);
|
|
23
22
|
ngOnInit(): void;
|
|
@@ -29,7 +28,7 @@ export declare class UserProjectsComponent extends AppBaseComponent implements O
|
|
|
29
28
|
onSaveProject(_event: any): void;
|
|
30
29
|
openPortfolios(id: number): void;
|
|
31
30
|
onDeleteProject(project: any): void;
|
|
32
|
-
trackByProject(_index: number, item:
|
|
31
|
+
trackByProject(_index: number, item: Project): number;
|
|
33
32
|
deletePicture(project: any): void;
|
|
34
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserProjectsComponent, never>;
|
|
35
34
|
static ɵcmp: i0.ɵɵComponentDeclaration<UserProjectsComponent, "pw-user-projects", never, { "user": { "alias": "user"; "required": false; }; "isEdit": { "alias": "isEdit"; "required": false; }; }, {}, never, never, false, never>;
|