@posiwise/user-module 0.0.93 → 0.0.95

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.
Files changed (46) hide show
  1. package/esm2022/lib/account/account-details/account-details.component.mjs +43 -8
  2. package/esm2022/lib/account/account.component.mjs +2 -2
  3. package/esm2022/lib/account/subscriptions/add-subscription/add-subscription.component.mjs +1 -1
  4. package/esm2022/lib/account/subscriptions/saved-card-details/saved-card-details.component.mjs +1 -1
  5. package/esm2022/lib/account/subscriptions/subscription-credential/subscription-credential.component.mjs +3 -3
  6. package/esm2022/lib/account/subscriptions/update-payment-details/update-payment-details.component.mjs +1 -1
  7. package/esm2022/lib/account/subscriptions/upgrade-subscription/upgrade-subscription.component.mjs +1 -1
  8. package/esm2022/lib/account/subscriptions/user-subscription-details/user-subscription-details.component.mjs +8 -3
  9. package/esm2022/lib/account/subscriptions/user-subscriptions-list/user-subscriptions-list.component.mjs +1 -1
  10. package/esm2022/lib/settings-tabs/security-tab/security-tab.component.mjs +1 -1
  11. package/esm2022/lib/shared/interface/user-module.interface.mjs +2 -0
  12. package/esm2022/lib/user-profile/edit-portfolios/edit-portfolios.component.mjs +1 -1
  13. package/esm2022/lib/user-profile/edit-project-modal/edit-project-modal.component.mjs +10 -5
  14. package/esm2022/lib/user-profile/edit-qualifications-modal/edit-qualifications-modal.component.mjs +11 -6
  15. package/esm2022/lib/user-profile/edit-recommendation-modal/edit-recommendation-modal.component.mjs +14 -6
  16. package/esm2022/lib/user-profile/edit-skills-modal/edit-skills-modal.component.mjs +1 -1
  17. package/esm2022/lib/user-profile/edit-social-links/edit-social-links.component.mjs +11 -4
  18. package/esm2022/lib/user-profile/edit-user-profile-modal/edit-user-profile-modal.component.mjs +34 -24
  19. package/esm2022/lib/user-profile/user-about/user-about.component.mjs +3 -3
  20. package/esm2022/lib/user-profile/user-portfolios/user-portfolios.component.mjs +1 -1
  21. package/esm2022/lib/user-profile/user-profile-page.component.mjs +1 -1
  22. package/esm2022/lib/user-profile/user-projects/user-projects.component.mjs +1 -1
  23. package/fesm2022/posiwise-user-module.mjs +142 -71
  24. package/fesm2022/posiwise-user-module.mjs.map +1 -1
  25. package/lib/account/account-details/account-details.component.d.ts +6 -1
  26. package/lib/account/subscriptions/add-subscription/add-subscription.component.d.ts +2 -2
  27. package/lib/account/subscriptions/saved-card-details/saved-card-details.component.d.ts +7 -2
  28. package/lib/account/subscriptions/subscription-credential/subscription-credential.component.d.ts +6 -5
  29. package/lib/account/subscriptions/update-payment-details/update-payment-details.component.d.ts +2 -1
  30. package/lib/account/subscriptions/upgrade-subscription/upgrade-subscription.component.d.ts +2 -1
  31. package/lib/account/subscriptions/user-subscription-details/user-subscription-details.component.d.ts +5 -4
  32. package/lib/account/subscriptions/user-subscriptions-list/user-subscriptions-list.component.d.ts +12 -4
  33. package/lib/settings-tabs/security-tab/security-tab.component.d.ts +1 -1
  34. package/lib/shared/interface/user-module.interface.d.ts +144 -0
  35. package/lib/user-profile/edit-portfolios/edit-portfolios.component.d.ts +6 -3
  36. package/lib/user-profile/edit-project-modal/edit-project-modal.component.d.ts +8 -6
  37. package/lib/user-profile/edit-qualifications-modal/edit-qualifications-modal.component.d.ts +4 -2
  38. package/lib/user-profile/edit-recommendation-modal/edit-recommendation-modal.component.d.ts +3 -1
  39. package/lib/user-profile/edit-skills-modal/edit-skills-modal.component.d.ts +3 -2
  40. package/lib/user-profile/edit-social-links/edit-social-links.component.d.ts +5 -3
  41. package/lib/user-profile/edit-user-profile-modal/edit-user-profile-modal.component.d.ts +7 -5
  42. package/lib/user-profile/user-about/user-about.component.d.ts +8 -5
  43. package/lib/user-profile/user-portfolios/user-portfolios.component.d.ts +3 -1
  44. package/lib/user-profile/user-profile-page.component.d.ts +2 -1
  45. package/lib/user-profile/user-projects/user-projects.component.d.ts +3 -4
  46. 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<any>;
21
+ countries$: Observable<Country[]>;
22
22
  states: Country[];
23
23
  validatedEmail: string;
24
24
  toggleEmail: boolean;
@@ -31,6 +31,11 @@ export declare class AccountDetailsComponent extends AppBaseComponent implements
31
31
  isCurrentPasswordValid: boolean;
32
32
  placesRef: NgxGpAutocompleteDirective;
33
33
  isLoaded: boolean;
34
+ passwordBusyButton: boolean;
35
+ slugBusyButton: boolean;
36
+ emailBusyButton: boolean;
37
+ validatePasswordBusyButton: boolean;
38
+ profileBusyButton: boolean;
34
39
  constructor(fb: UntypedFormBuilder, modalService: NgbModal, authService: AuthService, geoService: GeoService, profileService: ProfileService, injector: Injector);
35
40
  ngOnInit(): void;
36
41
  handleAddressChange(_event: any): void;
@@ -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: any;
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: any): any;
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: any;
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<any>;
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>;
@@ -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: any[];
18
+ allSubscriptionCredentials: CredentialData[];
18
19
  totalRecords: number;
19
20
  submitted: boolean;
20
21
  buttonBusy: boolean;
21
- availableCredentials: any[];
22
+ availableCredentials: CredentialData[];
22
23
  isLoaded: boolean;
23
24
  credentials: any[];
24
- credentialsSelect: any;
25
+ credentialsSelect: CredentialData[];
25
26
  uniqueCredential: any[];
26
- updatedCredential: any;
27
+ updatedCredential: CredentialData;
27
28
  showForm: boolean;
28
- credentialSaved: any;
29
+ credentialSaved: string;
29
30
  credentialName: string;
30
31
  credentialToReveal: any;
31
32
  private credentialToEdit;
@@ -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: any;
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: any;
31
+ cardDetails: CardDetails;
31
32
  months: any[];
32
33
  years: any[];
33
34
  showNewCard: boolean;
@@ -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";
@@ -19,12 +19,13 @@ export declare class UserSubscriptionDetailsComponent extends AppBaseComponent i
19
19
  modal: PasswordValidationComponent;
20
20
  allowUpdate: boolean;
21
21
  hasUnitChanged: boolean;
22
+ busyButton: boolean;
22
23
  subscriptionId: number;
23
24
  form: UntypedFormGroup;
24
25
  unitError: string;
25
- subscription: any;
26
+ subscription: Subscription;
26
27
  units: number;
27
- countries$: Observable<any>;
28
+ countries$: Observable<Country[]>;
28
29
  squaredLogo: string;
29
30
  fullLogo: string;
30
31
  slug: string;
@@ -51,7 +52,7 @@ export declare class UserSubscriptionDetailsComponent extends AppBaseComponent i
51
52
  onUnitChange(event: any): void;
52
53
  /** Function to execute on location select */
53
54
  handleAddressChange(event: any): void;
54
- trackByProduct(_index: number, item: any): any;
55
+ trackByProduct(_index: number, item: Product): number;
55
56
  ngOnDestroy(): void;
56
57
  static ɵfac: i0.ɵɵFactoryDeclaration<UserSubscriptionDetailsComponent, never>;
57
58
  static ɵcmp: i0.ɵɵComponentDeclaration<UserSubscriptionDetailsComponent, "ng-component", never, {}, {}, never, never, false, never>;
@@ -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: any;
33
+ selectedSubscription: {
34
+ id: number;
35
+ productId: number;
36
+ };
33
37
  editing: boolean;
34
38
  isLoaded: boolean;
35
- currentItem: any;
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: any): any;
65
- trackByProduct(_index: number, item: any): any;
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: any;
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<any>;
10
+ content: TemplateRef<ModalContext>;
10
11
  uploader: FileUpload;
11
12
  uploadedFiles: any[];
12
13
  project: any[];
13
14
  projectPictures: any[];
14
- successEvent: EventEmitter<any>;
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: any): any;
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,20 +3,22 @@ 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<any>;
12
- cancelEvent: EventEmitter<any>;
13
- saveEvent: EventEmitter<any>;
12
+ content: TemplateRef<ModalContext>;
13
+ cancelEvent: EventEmitter<void>;
14
+ saveEvent: EventEmitter<boolean>;
14
15
  form: UntypedFormGroup;
15
- weeks: any;
16
+ weeks: number[];
16
17
  title: string;
17
- startYears: any[];
18
- endYears: any[];
18
+ startYears: number[];
19
+ endYears: number[];
19
20
  submitted: boolean;
21
+ buttonBusy: boolean;
20
22
  private currentProject;
21
23
  userId: number;
22
24
  constructor(modalService: NgbModal, fb: UntypedFormBuilder, profileService: ProfileService, injector: Injector);
@@ -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<any>;
12
- content: TemplateRef<any>;
12
+ saveEvent: EventEmitter<void>;
13
+ content: TemplateRef<ModalContext>;
13
14
  title: string;
14
15
  form: UntypedFormGroup;
15
16
  userId: number;
@@ -19,6 +20,7 @@ export declare class EditQualificationsModalComponent extends AppBaseComponent i
19
20
  value: number;
20
21
  label: string;
21
22
  }[];
23
+ buttonBusy: boolean;
22
24
  constructor(modalService: NgbModal, fb: UntypedFormBuilder, qualificationService: QualificationService, injector: Injector);
23
25
  ngOnInit(): void;
24
26
  onOpen(value?: any): void;
@@ -4,14 +4,16 @@ 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<any>;
14
+ content: TemplateRef<ModalContext>;
14
15
  form: UntypedFormGroup;
16
+ buttonBusy: boolean;
15
17
  user: User;
16
18
  project: Project;
17
19
  constructor(modalService: NgbModal, fb: UntypedFormBuilder, profileService: ProfileService);
@@ -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<any>;
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<any>;
16
+ saveEvent: EventEmitter<boolean>;
16
17
  allSkills: any[];
17
18
  searchSkills: any[];
18
19
  selectedSkills: any[];
@@ -3,16 +3,18 @@ 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<any>;
12
+ content: TemplateRef<ModalContext>;
12
13
  form: UntypedFormGroup;
13
- links: any;
14
+ buttonBusy: boolean;
15
+ links: SocialLinks;
14
16
  userId: number;
15
- saveEvent: EventEmitter<any>;
17
+ saveEvent: EventEmitter<void>;
16
18
  constructor(injector: Injector, modalService: NgbModal, fb: UntypedFormBuilder, profileService: ProfileService);
17
19
  private urlValidator;
18
20
  ngOnInit(): void;
@@ -3,23 +3,25 @@ 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 { User, Country } from '@posiwise/common-utilities';
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<any>;
16
+ content: TemplateRef<ModalContext>;
16
17
  slug: string;
17
- saveEvent: EventEmitter<any>;
18
- user: User | any;
18
+ saveEvent: EventEmitter<UserProfile>;
19
+ user: EditUser;
19
20
  placesRef: NgxGpAutocompleteDirective;
20
21
  form: UntypedFormGroup;
21
- countries$: Observable<any>;
22
+ countries$: Observable<Country>;
22
23
  states: Country[];
24
+ buttonBusy: boolean;
23
25
  constructor(modalService: NgbModal, fb: UntypedFormBuilder, profileService: ProfileService, geoService: GeoService, injector: Injector);
24
26
  ngOnInit(): void;
25
27
  getValues(): 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: any;
25
+ selectedSkills: Skill[];
25
26
  objectKeys: {
26
27
  (o: object): string[];
27
28
  (o: {}): string[];
28
29
  };
29
- user_profile: any;
30
- qualifications: any;
31
- userLinks: any;
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: any): any;
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: any): any;
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: any;
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: any;
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: any): any;
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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posiwise/user-module",
3
- "version": "0.0.93",
3
+ "version": "0.0.95",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "17.3.11",
6
6
  "@angular/core": "17.3.11",