@posiwise/user-module 0.0.170 → 0.0.172

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.
@@ -1,1095 +1,1385 @@
1
- import * as i0 from '@angular/core';
2
- import { OnInit, ElementRef, Injector, ChangeDetectorRef, OnDestroy, EventEmitter, PipeTransform, TemplateRef, AfterViewInit, Renderer2 } from '@angular/core';
3
- import * as i34 from '@angular/router';
4
- import { Router } from '@angular/router';
5
- import { MenuItem, LazyLoadEvent } from 'primeng/api';
6
- import * as _angular_forms from '@angular/forms';
7
- import { UntypedFormGroup, UntypedFormBuilder, UntypedFormArray, NgControl } from '@angular/forms';
8
- import * as i37 from '@angular-magic/ngx-gp-autocomplete';
9
- import { NgxGpAutocompleteDirective } from '@angular-magic/ngx-gp-autocomplete';
10
- import { AppBaseComponent } from '@posiwise/app-base-component';
11
- import { AuthService, GeoService, ProfileService, ProductService, SubscriptionService, ScriptLoaderService, CommonService, PermissionService, QualificationService, TagService } from '@posiwise/common-services';
12
- import { Country, User, Product, PRODUCT_CATEGORY, Subscription, Project, TAG_TYPE, TAG_ENTITY } from '@posiwise/common-utilities';
13
- import * as i38 from '@posiwise/shared-components';
14
- import { ConfirmDialogService, PasswordValidationComponent } from '@posiwise/shared-components';
15
- import * as rxjs from 'rxjs';
16
- import { Observable, Subscription as Subscription$1 } from 'rxjs';
17
- import * as i51 from '@ng-bootstrap/ng-bootstrap';
18
- import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
19
- import { AppState } from '@posiwise/app-store';
20
- import { Store } from '@ngrx/store';
21
- import { Clipboard } from '@angular/cdk/clipboard';
22
- import { AdminService } from '@posiwise/admin-module-utils';
23
- import * as i46 from 'primeng/fileupload';
24
- import { FileUpload } from 'primeng/fileupload';
25
- import * as i30 from 'primeng/inputtext';
26
- import * as i31 from '@posiwise/app-loader';
27
- import * as i32 from '@posiwise/directives';
28
- import * as i33 from '@angular/common';
29
- import * as i36 from '@posiwise/core-transloco';
30
- import * as i39 from '@posiwise/pipes';
31
- import * as i40 from 'ngx-ui-switch';
32
- import * as i41 from 'ngx-captcha';
33
- import * as i42 from 'primeng/datepicker';
34
- import * as i43 from 'primeng/multiselect';
35
- import * as i44 from 'primeng/progressspinner';
36
- import * as i45 from 'primeng/accordion';
37
- import * as i47 from 'primeng/select';
38
- import * as i48 from 'primeng/rating';
39
- import * as i49 from 'primeng/selectbutton';
40
- import * as i50 from 'primeng/tooltip';
41
-
42
- declare class AccountComponent {
43
- private readonly router;
44
- menu: MenuItem[];
45
- items: MenuItem[];
46
- activeItem: MenuItem;
47
- path: string;
48
- constructor(router: Router);
49
- activateMenu(): void;
50
- static ɵfac: i0.ɵɵFactoryDeclaration<AccountComponent, never>;
51
- static ɵcmp: i0.ɵɵComponentDeclaration<AccountComponent, "pw-user-account", never, {}, {}, never, never, false, never>;
52
- }
53
-
54
- declare class AccountDetailsComponent extends AppBaseComponent implements OnInit {
55
- private readonly fb;
56
- private readonly modalService;
57
- private readonly authService;
58
- private readonly geoService;
59
- private readonly profileService;
60
- private readonly cdr;
61
- private readonly confirmDialog;
62
- placesRef: NgxGpAutocompleteDirective;
63
- passwordRef: ElementRef;
64
- emailForm: UntypedFormGroup;
65
- passwordForm: UntypedFormGroup;
66
- profileForm: UntypedFormGroup;
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;
77
- user: User;
78
- slug: string;
79
- isLoaded: boolean;
80
- passwordBusyButton: boolean;
81
- slugBusyButton: boolean;
82
- emailBusyButton: boolean;
83
- validatePasswordBusyButton: boolean;
84
- profileBusyButton: boolean;
85
- showApiToken: boolean;
86
- showApiClientId: boolean;
87
- refreshingTokens: boolean;
88
- updatingScope: boolean;
89
- connections: {
90
- id: number;
91
- client_name: string;
92
- created_at: string;
93
- expires_at: string;
94
- last_used_at: string | null;
95
- }[];
96
- loadingConnections: boolean;
97
- constructor(fb: UntypedFormBuilder, modalService: NgbModal, authService: AuthService, geoService: GeoService, profileService: ProfileService, injector: Injector, cdr: ChangeDetectorRef, confirmDialog: ConfirmDialogService);
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
- /**
132
- * Tenant-dynamic MCP endpoint URL, resolved from the host the user is on.
133
- * The MCP host is always `brain-api-mcp.{env}.{company-domain}`, so the
134
- * environment segment has to survive the swap:
135
- * www.dev.posiwise.com -> brain-api-mcp.dev.posiwise.com
136
- * www.go.posiwise.com -> brain-api-mcp.go.posiwise.com
137
- * www.posiwise.com -> brain-api-mcp.go.posiwise.com (apex = PROD)
138
- * Stripping the first label unconditionally (the previous behaviour) broke
139
- * PROD, where the app is also served from the apex: it produced
140
- * `brain-api-mcp.posiwise.com`, which does not exist in DNS.
141
- */
142
- 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
- /** Tenant company name (domain-metadata driven), falling back to PosiWise. */
153
- get mcpCompanyName(): string;
154
- changeApiTokenScope(scope: string): void;
155
- private performScopeUpdate;
156
- static ɵfac: i0.ɵɵFactoryDeclaration<AccountDetailsComponent, never>;
157
- static ɵcmp: i0.ɵɵComponentDeclaration<AccountDetailsComponent, "pw-account-details", never, {}, {}, never, never, false, never>;
158
- }
159
-
160
- declare class AddSubscriptionComponent extends AppBaseComponent implements OnInit, OnDestroy {
161
- private readonly productService;
162
- private readonly cdr;
163
- private readonly singleProducts;
164
- private readonly enterpriseProducts;
165
- form: UntypedFormGroup;
166
- busy: boolean;
167
- isLoaded: boolean;
168
- selectedProduct: boolean;
169
- isPurchaseAttempted: boolean;
170
- userLoggedIn: boolean;
171
- availableProducts: Product[];
172
- products: Product[];
173
- user: User;
174
- unitError: string;
175
- category: typeof PRODUCT_CATEGORY;
176
- units: number;
177
- subscribedPermissionKeys: any[];
178
- currentSubscription: Subscription;
179
- subscriptionId: number;
180
- constructor(productService: ProductService, injector: Injector, cdr: ChangeDetectorRef);
181
- ngOnInit(): void;
182
- private getProducts;
183
- private getSingleCategoryProducts;
184
- onChangeCategory(category: any): void;
185
- onSelection(product: any): void;
186
- trackByProduct(_index: number, item: Product): number;
187
- ngOnDestroy(): void;
188
- static ɵfac: i0.ɵɵFactoryDeclaration<AddSubscriptionComponent, never>;
189
- static ɵcmp: i0.ɵɵComponentDeclaration<AddSubscriptionComponent, "pw-add-subscription", never, {}, {}, never, never, false, never>;
190
- }
191
-
192
- /**
193
- * @summary Shows the saved credit card details of the user
194
- * @author anikets43
195
- *
196
- * Created at : 2020-02-08 16:56:18
197
- * Last modified : 2020-02-08 17:06:29
198
- */
199
-
200
- declare class SavedCardDetailsComponent {
201
- /**
202
- * Credit Card details like brand, exp_month, exp_year, card_number
203
- */
204
- data: {
205
- brand?: string;
206
- exp_month?: string;
207
- exp_year?: string;
208
- card_number?: string;
1
+ import * as i0 from "@angular/core";
2
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, Injector, OnDestroy, OnInit, PipeTransform, Renderer2, TemplateRef } from "@angular/core";
3
+ import * as i35 from "@angular/router";
4
+ import { Router } from "@angular/router";
5
+ import { LazyLoadEvent, MenuItem } from "primeng/api";
6
+ import * as i36 from "@angular/forms";
7
+ import { NgControl, UntypedFormArray, UntypedFormBuilder, UntypedFormGroup } from "@angular/forms";
8
+ import * as i38 from "@angular-magic/ngx-gp-autocomplete";
9
+ import { NgxGpAutocompleteDirective } from "@angular-magic/ngx-gp-autocomplete";
10
+ import { AppBaseComponent } from "@posiwise/app-base-component";
11
+ import { AuthService, CommonService, CustomToastService, GeoService, PermissionService, ProductService, ProfileService, QualificationService, ScriptLoaderService, SubscriptionService, TagService, UserService } from "@posiwise/common-services";
12
+ import { Country, PRODUCT_CATEGORY, Product, Project, Subscription, TAG_ENTITY, TAG_TYPE, User } from "@posiwise/common-utilities";
13
+ import * as i39 from "@posiwise/shared-components";
14
+ import { ConfirmDialogService, PasswordValidationComponent } from "@posiwise/shared-components";
15
+ import { Observable, Subscription as Subscription$1 } from "rxjs";
16
+ import * as i52 from "@ng-bootstrap/ng-bootstrap";
17
+ import { NgbModal } from "@ng-bootstrap/ng-bootstrap";
18
+ import { TranslocoService } from "@jsverse/transloco";
19
+ import { AppState } from "@posiwise/app-store";
20
+ import { Store } from "@ngrx/store";
21
+ import { Clipboard } from "@angular/cdk/clipboard";
22
+ import { AdminService } from "@posiwise/admin-module-utils";
23
+ import * as i47 from "primeng/fileupload";
24
+ import { FileUpload } from "primeng/fileupload";
25
+ import * as i31 from "primeng/inputtext";
26
+ import * as i32 from "@posiwise/app-loader";
27
+ import * as i33 from "@posiwise/directives";
28
+ import * as i34 from "@angular/common";
29
+ import * as i37 from "@posiwise/core-transloco";
30
+ import * as i40 from "@posiwise/pipes";
31
+ import * as i41 from "ngx-ui-switch";
32
+ import * as i42 from "ngx-captcha";
33
+ import * as i43 from "primeng/datepicker";
34
+ import * as i44 from "primeng/multiselect";
35
+ import * as i45 from "primeng/progressspinner";
36
+ import * as i46 from "primeng/accordion";
37
+ import * as i48 from "primeng/select";
38
+ import * as i49 from "primeng/rating";
39
+ import * as i50 from "primeng/selectbutton";
40
+ import * as i51 from "primeng/tooltip";
41
+ declare namespace account_component_d_exports {
42
+ export { AccountComponent };
43
+ }
44
+ export declare class AccountComponent {
45
+ private readonly router;
46
+ menu: MenuItem[];
47
+ items: MenuItem[];
48
+ activeItem: MenuItem;
49
+ path: string;
50
+ constructor(router: Router);
51
+ activateMenu(): void;
52
+ static ɵfac: i0.ɵɵFactoryDeclaration<AccountComponent, never>;
53
+ static ɵcmp: i0.ɵɵComponentDeclaration<AccountComponent, "pw-user-account", never, {}, {}, never, never, false, never>;
54
+ }
55
+ declare namespace account_details_component_d_exports {
56
+ export { AccountDetailsComponent };
57
+ }
58
+ export declare class AccountDetailsComponent extends AppBaseComponent implements OnInit {
59
+ private readonly fb;
60
+ private readonly modalService;
61
+ private readonly authService;
62
+ private readonly geoService;
63
+ private readonly profileService;
64
+ private readonly cdr;
65
+ private readonly confirmDialog;
66
+ placesRef: NgxGpAutocompleteDirective;
67
+ passwordRef: ElementRef;
68
+ emailForm: UntypedFormGroup;
69
+ passwordForm: UntypedFormGroup;
70
+ profileForm: UntypedFormGroup;
71
+ image: string;
72
+ countries$: Observable<Country[]>;
73
+ states: Country[];
74
+ validatedEmail: string;
75
+ toggleEmail: boolean;
76
+ togglePassword: boolean;
77
+ toggleNickName: boolean;
78
+ passwordVerified: boolean;
79
+ isCurrentPasswordValid: boolean;
80
+ selectedState: any;
81
+ user: User;
82
+ slug: string;
83
+ isLoaded: boolean;
84
+ passwordBusyButton: boolean;
85
+ slugBusyButton: boolean;
86
+ emailBusyButton: boolean;
87
+ validatePasswordBusyButton: boolean;
88
+ profileBusyButton: boolean;
89
+ showApiToken: boolean;
90
+ showApiClientId: boolean;
91
+ refreshingTokens: boolean;
92
+ updatingScope: boolean;
93
+ connections: {
94
+ id: number;
95
+ client_name: string;
96
+ created_at: string;
97
+ expires_at: string;
98
+ last_used_at: string | null;
99
+ }[];
100
+ loadingConnections: boolean;
101
+ constructor(fb: UntypedFormBuilder, modalService: NgbModal, authService: AuthService, geoService: GeoService, profileService: ProfileService, injector: Injector, cdr: ChangeDetectorRef, confirmDialog: ConfirmDialogService);
102
+ ngOnInit(): void;
103
+ handleAddressChange(_event: any): void;
104
+ private getUserProfile;
105
+ /**
106
+ * Updates Email Address
107
+ * this needs to be separate and requires the email to be validated from email before it's actually changed
108
+ */
109
+ onEmailFormSubmit(): void;
110
+ validatePassword(): void;
111
+ handleImageError(event: Event, fallbackPath: any): void;
112
+ checkValidity(): void;
113
+ onPasswordFormSubmit(): void;
114
+ onProfileFormSubmit(): void;
115
+ onAvatarSave(): void;
116
+ openModal(content: any): void;
117
+ onUpdateSlug(): void;
118
+ onImageSelection(event: any): void;
119
+ sendMailToResetPassword(): void;
120
+ getRegion(countryId: number | string): void;
121
+ loadConnections(): void;
122
+ deregisterConnection(id: number): void;
123
+ private getForms;
124
+ private passwordMatcher;
125
+ dataURLtoBlob(dataUrl: string): Blob;
126
+ onToggleEmail(): void;
127
+ onTogglePassword(): void;
128
+ onClose(): void;
129
+ shouldUserChangeEmail(): void;
130
+ toggleApiTokenVisibility(): void;
131
+ toggleApiClientIdVisibility(): void;
132
+ refreshApiTokens(): void;
133
+ private performTokenRefresh;
134
+ get currentApiTokenScope(): string;
135
+ /**
136
+ * Tenant-dynamic MCP endpoint URL, resolved from the host the user is on.
137
+ * The MCP host is always `brain-api-mcp.{env}.{company-domain}`, so the
138
+ * environment segment has to survive the swap:
139
+ * www.dev.posiwise.com -> brain-api-mcp.dev.posiwise.com
140
+ * www.go.posiwise.com -> brain-api-mcp.go.posiwise.com
141
+ * www.posiwise.com -> brain-api-mcp.go.posiwise.com (apex = PROD)
142
+ * Stripping the first label unconditionally (the previous behaviour) broke
143
+ * PROD, where the app is also served from the apex: it produced
144
+ * `brain-api-mcp.posiwise.com`, which does not exist in DNS.
145
+ */
146
+ get mcpEndpointUrl(): string;
147
+ /**
148
+ * Company domain prefixed by its environment segment. Resolves the company
149
+ * domain with the same `getDomain` the AppConfigService uses to identify the
150
+ * tenant, so multi-label TLDs (acme.co.uk) and arbitrary subdomains both
151
+ * reduce correctly. Only a recognised environment segment is carried over —
152
+ * anything else (`www`, a custom subdomain) falls back to PROD rather than
153
+ * being prefixed onto the host, which would misroute.
154
+ */
155
+ private mcpHostBase;
156
+ /** Tenant company name (domain-metadata driven), falling back to PosiWise. */
157
+ get mcpCompanyName(): string;
158
+ changeApiTokenScope(scope: string): void;
159
+ private performScopeUpdate;
160
+ static ɵfac: i0.ɵɵFactoryDeclaration<AccountDetailsComponent, never>;
161
+ static ɵcmp: i0.ɵɵComponentDeclaration<AccountDetailsComponent, "pw-account-details", never, {}, {}, never, never, false, never>;
162
+ }
163
+ declare namespace add_subscription_component_d_exports {
164
+ export { AddSubscriptionComponent };
165
+ }
166
+ export declare class AddSubscriptionComponent extends AppBaseComponent implements OnInit, OnDestroy {
167
+ private readonly productService;
168
+ private readonly cdr;
169
+ private readonly singleProducts;
170
+ private readonly enterpriseProducts;
171
+ form: UntypedFormGroup;
172
+ busy: boolean;
173
+ isLoaded: boolean;
174
+ selectedProduct: boolean;
175
+ isPurchaseAttempted: boolean;
176
+ userLoggedIn: boolean;
177
+ availableProducts: Product[];
178
+ products: Product[];
179
+ user: User;
180
+ unitError: string;
181
+ category: typeof PRODUCT_CATEGORY;
182
+ units: number;
183
+ subscribedPermissionKeys: any[];
184
+ currentSubscription: Subscription;
185
+ subscriptionId: number;
186
+ constructor(productService: ProductService, injector: Injector, cdr: ChangeDetectorRef);
187
+ ngOnInit(): void;
188
+ private getProducts;
189
+ private getSingleCategoryProducts;
190
+ onChangeCategory(category: any): void;
191
+ onSelection(product: any): void;
192
+ trackByProduct(_index: number, item: Product): number;
193
+ ngOnDestroy(): void;
194
+ static ɵfac: i0.ɵɵFactoryDeclaration<AddSubscriptionComponent, never>;
195
+ static ɵcmp: i0.ɵɵComponentDeclaration<AddSubscriptionComponent, "pw-add-subscription", never, {}, {}, never, never, false, never>;
196
+ }
197
+ declare namespace saved_card_details_component_d_exports {
198
+ export { SavedCardDetailsComponent };
199
+ }
200
+ export declare class SavedCardDetailsComponent {
201
+ /**
202
+ * Credit Card details like brand, exp_month, exp_year, card_number
203
+ */
204
+ data: {
205
+ brand?: string;
206
+ exp_month?: string;
207
+ exp_year?: string;
208
+ card_number?: string;
209
+ };
210
+ /**
211
+ * boolean: change payment option
212
+ */
213
+ isChangePayment: boolean;
214
+ showNewCard: boolean;
215
+ /**
216
+ * Emitter: on payment change request
217
+ */
218
+ changeEvent: EventEmitter<boolean>;
219
+ OnPaymentChange(value: any): void;
220
+ static ɵfac: i0.ɵɵFactoryDeclaration<SavedCardDetailsComponent, never>;
221
+ static ɵcmp: i0.ɵɵComponentDeclaration<SavedCardDetailsComponent, "pw-saved-card-details", never, {
222
+ "data": {
223
+ "alias": "data";
224
+ "required": false;
225
+ };
226
+ "isChangePayment": {
227
+ "alias": "isChangePayment";
228
+ "required": false;
209
229
  };
210
- /**
211
- * boolean: change payment option
212
- */
213
- isChangePayment: boolean;
214
- showNewCard: boolean;
215
- /**
216
- * Emitter: on payment change request
217
- */
218
- changeEvent: EventEmitter<boolean>;
219
- OnPaymentChange(value: any): void;
220
- static ɵfac: i0.ɵɵFactoryDeclaration<SavedCardDetailsComponent, never>;
221
- 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>;
222
- }
223
-
230
+ "showNewCard": {
231
+ "alias": "showNewCard";
232
+ "required": false;
233
+ };
234
+ }, {
235
+ "changeEvent": "changeEvent";
236
+ }, never, never, false, never>;
237
+ }
224
238
  interface CredentialData {
225
- name: string;
226
- field: string;
227
- description?: string;
228
- id?: number;
229
- is_required?: boolean;
230
- value?: string;
231
- subscription_credential_id?: number;
232
- credential_id?: number;
239
+ name: string;
240
+ field: string;
241
+ description?: string;
242
+ id?: number;
243
+ is_required?: boolean;
244
+ value?: string;
245
+ subscription_credential_id?: number;
246
+ credential_id?: number;
247
+ }
248
+ interface SubscriptionCredentialGroup {
249
+ credential_name: string;
250
+ credentials: Credential[];
233
251
  }
234
252
  interface CardDetails {
235
- card_number?: string;
236
- cvc: string;
253
+ card_number?: string;
254
+ cvc: string;
255
+ exp_month: string;
256
+ exp_year: string;
257
+ }
258
+ interface StripeCardResponse {
259
+ id: string;
260
+ object: string;
261
+ card: {
262
+ id: string;
263
+ object: string;
264
+ address_city: string | null;
265
+ address_country: string | null;
266
+ address_line1: string | null;
267
+ address_line1_check: string | null;
268
+ address_line2: string | null;
269
+ address_state: string | null;
270
+ address_zip: string | null;
271
+ address_zip_check: string | null;
272
+ brand: string;
273
+ country: string;
274
+ cvc_check: string | null;
275
+ dynamic_last4: string | null;
237
276
  exp_month: string;
238
- exp_year: string;
277
+ exp_year: number;
278
+ funding: string;
279
+ last4: string;
280
+ name: string | null;
281
+ tokenization_method: string | null;
282
+ };
283
+ client_ip: string | null;
284
+ created: number;
285
+ email: string | null;
286
+ liveMode: boolean;
287
+ type: string;
288
+ used: boolean;
289
+ error?: {
290
+ message: string;
291
+ };
239
292
  }
240
293
  interface UserProfile {
241
- slug: string;
242
- headline: string;
294
+ slug: string;
295
+ headline: string;
296
+ }
297
+ interface UserRelationship {
298
+ followed_id: number;
299
+ follower_id: number;
300
+ }
301
+ interface AboutUser {
302
+ id: number;
303
+ slug: string;
304
+ email: string;
305
+ joined_at: string;
306
+ profile?: AboutUserProfile;
243
307
  }
244
308
  interface AboutUserProfile {
245
- description: string;
246
- dob: string;
247
- country: string;
248
- website_url: string;
249
- gender: string;
250
- phone_number: string;
309
+ description: string;
310
+ dob: string;
311
+ country: string;
312
+ website_url: string;
313
+ gender: string;
314
+ phone_number: string;
251
315
  }
252
316
  interface Qualification {
253
- id: number;
254
- degree: string;
255
- course: string;
256
- school: string;
257
- started_on: string;
258
- ended_on: string;
317
+ id: number;
318
+ degree: string;
319
+ course: string;
320
+ school: string;
321
+ started_on: string;
322
+ ended_on: string;
323
+ }
324
+ interface UserLink {
325
+ [key: string]: string;
259
326
  }
260
327
  interface Skill {
261
- category_name: string;
262
- tags: {
263
- name: string;
264
- }[];
328
+ category_name: string;
329
+ tags: {
330
+ name: string;
331
+ }[];
265
332
  }
266
333
  interface ModalContext {
267
- modal: {
268
- dismiss: () => void;
269
- close: () => void;
270
- };
334
+ modal: {
335
+ dismiss: () => void;
336
+ close: () => void;
337
+ };
271
338
  }
272
339
  interface EditUser {
273
- id: number;
274
- slug: string;
275
- email: string;
276
- joined_at: string;
277
- first_name: string;
278
- last_name: string;
279
- profile?: EditUserProfile;
340
+ id: number;
341
+ slug: string;
342
+ email: string;
343
+ joined_at: string;
344
+ first_name: string;
345
+ last_name: string;
346
+ profile?: EditUserProfile;
280
347
  }
281
348
  interface EditUserProfile {
282
- description: string;
283
- dob: string;
284
- country: string;
285
- website_url: string;
286
- gender: string;
287
- phone_number: string;
288
- postcode: string;
289
- location?: string;
290
- state: string;
291
- province: string;
349
+ description: string;
350
+ dob: string;
351
+ country: string;
352
+ website_url: string;
353
+ gender: string;
354
+ phone_number: string;
355
+ postcode: string;
356
+ location?: string;
357
+ state: string;
358
+ province: string;
359
+ }
360
+ interface SocialLinks {
361
+ youtube: string;
362
+ skype: string;
363
+ linkedin: string;
364
+ twitter: string;
365
+ instagram: string;
366
+ facebook: string;
367
+ stackOverflow: string;
368
+ github: string;
369
+ bitbucket: string;
370
+ gitlab: string;
371
+ }
372
+ interface ValidationError {
373
+ urlMalformed?: {
374
+ value: string;
375
+ };
292
376
  }
293
377
  interface CurrentItem {
294
- id: number;
295
- api_access_token?: string;
296
- masked?: string;
297
- }
298
-
299
- declare class SubscriptionCredentialComponent extends AppBaseComponent implements OnInit, OnDestroy {
300
- private readonly fb;
301
- private readonly subscriptionService;
302
- private readonly cdr;
303
- private credentialToEdit;
304
- passwordValidationModalForRevealCredential: PasswordValidationComponent;
305
- passwordValidationModalForEditCredential: PasswordValidationComponent;
306
- passwordValidationModalForAddCredential: PasswordValidationComponent;
307
- form: UntypedFormGroup;
308
- data: any[];
309
- subscriptionId: number;
310
- totalRecords: number;
311
- allSubscriptionCredentials: CredentialData[];
312
- availableCredentials: CredentialData[];
313
- credentialsSelect: CredentialData[];
314
- updatedCredential: CredentialData;
315
- uniqueCredential: any[];
316
- isEdit: boolean;
317
- submitted: boolean;
318
- buttonBusy: boolean;
319
- isLoaded: boolean;
320
- credentials: any[];
321
- showForm: boolean;
322
- credentialSaved: string;
323
- credentialName: string;
324
- credentialToReveal: any;
325
- constructor(fb: UntypedFormBuilder, subscriptionService: SubscriptionService, injector: Injector, cdr: ChangeDetectorRef);
326
- ngOnInit(): void;
327
- get credentialsGroup(): UntypedFormArray;
328
- /** Function to get all credentials */
329
- private getAllCredentials;
330
- /** Function to get available Credentials */
331
- private getAllAvailableCredentials;
332
- /** Function to get credential on select */
333
- selectedOption(event: any): void;
334
- /** Function to post credentials */
335
- saveCredentials(): void;
336
- revealCredentials(credential: any): void;
337
- hideCredentials(): void;
338
- showCredentials(): void;
339
- /** Function to get form controls */
340
- get f(): {
341
- [key: string]: _angular_forms.AbstractControl<any, any, any>;
342
- };
343
- onCancel(): void;
344
- openCredentialsForAdd(): void;
345
- openCredentialsForEdit(credential: any): void;
346
- editCredentials(): void;
347
- showEditForm(): void;
348
- ngOnDestroy(): void;
349
- static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionCredentialComponent, never>;
350
- static ɵcmp: i0.ɵɵComponentDeclaration<SubscriptionCredentialComponent, "pw-subscription-credential", never, {}, {}, never, never, false, never>;
351
- }
352
-
353
- declare class SubscriptionNameByIdPipe implements PipeTransform {
354
- transform(subs: {
355
- id: number | string;
356
- organisation?: string;
357
- organization?: string;
358
- name?: string;
359
- }[] | null | undefined, id: number | string | null | undefined): string;
360
- static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionNameByIdPipe, never>;
361
- static ɵpipe: i0.ɵɵPipeDeclaration<SubscriptionNameByIdPipe, "subscriptionNameById", false>;
362
- }
363
- declare class CredentialAvatarHuePipe implements PipeTransform {
364
- transform(value: string | null | undefined): number;
365
- static ɵfac: i0.ɵɵFactoryDeclaration<CredentialAvatarHuePipe, never>;
366
- static ɵpipe: i0.ɵɵPipeDeclaration<CredentialAvatarHuePipe, "credentialAvatarHue", false>;
367
- }
368
- declare class HumanizeCredentialNamePipe implements PipeTransform {
369
- transform(value: string | null | undefined): string;
370
- static ɵfac: i0.ɵɵFactoryDeclaration<HumanizeCredentialNamePipe, never>;
371
- static ɵpipe: i0.ɵɵPipeDeclaration<HumanizeCredentialNamePipe, "humanizeCredentialName", false>;
372
- }
373
-
374
- declare class ClearMaskedOnFocusDirective {
375
- private readonly control;
376
- constructor(control: NgControl);
377
- onFocus(event: FocusEvent): void;
378
- static ɵfac: i0.ɵɵFactoryDeclaration<ClearMaskedOnFocusDirective, [{ optional: true; self: true; }]>;
379
- static ɵdir: i0.ɵɵDirectiveDeclaration<ClearMaskedOnFocusDirective, "input[pwClearMaskedOnFocus]", never, {}, {}, never, never, false, never>;
380
- }
381
-
378
+ id: number;
379
+ api_access_token?: string;
380
+ masked?: string;
381
+ }
382
+ declare namespace subscription_credential_component_d_exports {
383
+ export { SubscriptionCredentialComponent };
384
+ }
385
+ export declare class SubscriptionCredentialComponent extends AppBaseComponent implements OnInit, OnDestroy {
386
+ private readonly fb;
387
+ private readonly subscriptionService;
388
+ private readonly cdr;
389
+ private credentialToEdit;
390
+ passwordValidationModalForRevealCredential: PasswordValidationComponent;
391
+ passwordValidationModalForEditCredential: PasswordValidationComponent;
392
+ passwordValidationModalForAddCredential: PasswordValidationComponent;
393
+ form: UntypedFormGroup;
394
+ data: any[];
395
+ subscriptionId: number;
396
+ totalRecords: number;
397
+ allSubscriptionCredentials: CredentialData[];
398
+ availableCredentials: CredentialData[];
399
+ credentialsSelect: CredentialData[];
400
+ updatedCredential: CredentialData;
401
+ uniqueCredential: any[];
402
+ isEdit: boolean;
403
+ submitted: boolean;
404
+ buttonBusy: boolean;
405
+ isLoaded: boolean;
406
+ credentials: any[];
407
+ showForm: boolean;
408
+ credentialSaved: string;
409
+ credentialName: string;
410
+ credentialToReveal: any;
411
+ constructor(fb: UntypedFormBuilder, subscriptionService: SubscriptionService, injector: Injector, cdr: ChangeDetectorRef);
412
+ ngOnInit(): void;
413
+ get credentialsGroup(): UntypedFormArray;
414
+ /** Function to get all credentials */
415
+ private getAllCredentials;
416
+ /** Function to get available Credentials */
417
+ private getAllAvailableCredentials;
418
+ /** Function to get credential on select */
419
+ selectedOption(event: any): void;
420
+ /** Function to post credentials */
421
+ saveCredentials(): void;
422
+ revealCredentials(credential: any): void;
423
+ hideCredentials(): void;
424
+ showCredentials(): void;
425
+ /** Function to get form controls */
426
+ get f(): {
427
+ [key: string]: import("@angular/forms").AbstractControl<any, any, any>;
428
+ };
429
+ onCancel(): void;
430
+ openCredentialsForAdd(): void;
431
+ openCredentialsForEdit(credential: any): void;
432
+ editCredentials(): void;
433
+ showEditForm(): void;
434
+ ngOnDestroy(): void;
435
+ static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionCredentialComponent, never>;
436
+ static ɵcmp: i0.ɵɵComponentDeclaration<SubscriptionCredentialComponent, "pw-subscription-credential", never, {}, {}, never, never, false, never>;
437
+ }
438
+ declare namespace humanize_credential_name_pipe_d_exports {
439
+ export { CredentialAvatarHuePipe, HumanizeCredentialNamePipe, SubscriptionNameByIdPipe };
440
+ }
441
+ export declare class SubscriptionNameByIdPipe implements PipeTransform {
442
+ transform(subs: {
443
+ id: number | string;
444
+ organisation?: string;
445
+ organization?: string;
446
+ name?: string;
447
+ }[] | null | undefined, id: number | string | null | undefined): string;
448
+ static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionNameByIdPipe, never>;
449
+ static ɵpipe: i0.ɵɵPipeDeclaration<SubscriptionNameByIdPipe, "subscriptionNameById", false>;
450
+ }
451
+ export declare class CredentialAvatarHuePipe implements PipeTransform {
452
+ transform(value: string | null | undefined): number;
453
+ static ɵfac: i0.ɵɵFactoryDeclaration<CredentialAvatarHuePipe, never>;
454
+ static ɵpipe: i0.ɵɵPipeDeclaration<CredentialAvatarHuePipe, "credentialAvatarHue", false>;
455
+ }
456
+ export declare class HumanizeCredentialNamePipe implements PipeTransform {
457
+ transform(value: string | null | undefined): string;
458
+ static ɵfac: i0.ɵɵFactoryDeclaration<HumanizeCredentialNamePipe, never>;
459
+ static ɵpipe: i0.ɵɵPipeDeclaration<HumanizeCredentialNamePipe, "humanizeCredentialName", false>;
460
+ }
461
+ declare namespace clear_masked_on_focus_directive_d_exports {
462
+ export { ClearMaskedOnFocusDirective };
463
+ }
464
+ export declare class ClearMaskedOnFocusDirective {
465
+ private readonly control;
466
+ constructor(control: NgControl);
467
+ onFocus(event: FocusEvent): void;
468
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClearMaskedOnFocusDirective, [{
469
+ optional: true;
470
+ self: true;
471
+ }]>;
472
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ClearMaskedOnFocusDirective, "input[pwClearMaskedOnFocus]", never, {}, {}, never, never, false, never>;
473
+ }
382
474
  interface BraintreeCardSummary {
383
- provider: 'braintree';
384
- token: string;
385
- card_number: string;
386
- exp_month: number;
387
- exp_year: number;
475
+ provider: 'braintree';
476
+ token: string;
477
+ card_number: string;
478
+ exp_month: number;
479
+ exp_year: number;
388
480
  }
389
-
390
- declare class UpdatePaymentDetailsComponent extends AppBaseComponent implements OnInit, OnDestroy {
391
- private readonly fb;
392
- private readonly scriptLoader;
393
- private readonly productService;
394
- private readonly subscriptionService;
395
- private readonly cdr;
396
- form: UntypedFormGroup;
397
- years: any[];
398
- months: any[];
399
- busy: boolean;
400
- isChangePayment: boolean;
401
- cardDetails: CardDetails | null;
402
- secondaryCard: BraintreeCardSummary | null;
403
- showBraintreeForm: boolean;
404
- braintreeBusy: boolean;
405
- loading: boolean;
406
- errorMessage: string;
407
- stripePublishKey: string;
408
- errorMsg: string;
409
- subscriptionId: number;
410
- productId: number;
411
- braintreeContainer?: ElementRef<HTMLDivElement>;
412
- private readonly braintreeHelper;
413
- constructor(fb: UntypedFormBuilder, scriptLoader: ScriptLoaderService, productService: ProductService, subscriptionService: SubscriptionService, injector: Injector, cdr: ChangeDetectorRef);
414
- ngOnInit(): void;
415
- ngOnDestroy(): void;
416
- private refreshPaymentMethods;
417
- onUpdatePaymentDetailsCancel(): void;
418
- onSave(): void;
419
- private onStripeToken;
420
- cancel(): void;
421
- onChange(value: any): void;
422
- startBraintreeFlow(): Promise<void>;
423
- submitBraintree(): Promise<void>;
424
- cancelBraintreeFlow(): void;
425
- static ɵfac: i0.ɵɵFactoryDeclaration<UpdatePaymentDetailsComponent, never>;
426
- static ɵcmp: i0.ɵɵComponentDeclaration<UpdatePaymentDetailsComponent, "pw-update-payment-details", never, {}, {}, never, never, false, never>;
427
- }
428
-
429
- declare class UpgradeSubscriptionComponent extends AppBaseComponent implements OnInit, OnDestroy {
430
- private readonly productService;
431
- private readonly fb;
432
- private readonly modalService;
433
- private readonly subscriptionService;
434
- private readonly store;
435
- private readonly scriptLoader;
436
- private readonly cdr;
437
- private readonly confirmDialog;
438
- passwordValidationModal: PasswordValidationComponent;
439
- form: UntypedFormGroup;
440
- product: Product;
441
- subscription: Subscription;
442
- user: User;
443
- cardDetails: CardDetails;
444
- units: number;
445
- subscriptionId: number;
446
- productId: number;
447
- unitError: string;
448
- password: string;
449
- stripePublishKey: string;
450
- busy: boolean;
451
- isPurchaseAttempted: boolean;
452
- months: any[];
453
- years: any[];
454
- showNewCard: boolean;
455
- passwordModalVisible: boolean;
456
- errorMsg: any;
457
- get totalAmount(): number;
458
- constructor(injector: Injector, productService: ProductService, fb: UntypedFormBuilder, modalService: NgbModal, subscriptionService: SubscriptionService, store: Store<AppState>, scriptLoader: ScriptLoaderService, cdr: ChangeDetectorRef, confirmDialog: ConfirmDialogService);
459
- ngOnInit(): void;
460
- getSubscriptionDetails(): void;
461
- getProductDetails(): void;
462
- onMaxReached(event: any): void;
463
- onMinReached(event: any): void;
464
- onUnitChange(event: any): void;
465
- onValidatePassword(isSuccess: boolean): void;
466
- private postCreateToken;
467
- attemptPurchase(): void;
468
- private onPurchaseSubmit;
469
- private enrollUserToSubscription;
470
- private noPasswordModal;
471
- private getCardDetails;
472
- onDiscardToggle(): void;
473
- updateCardDetails(): void;
474
- ngOnDestroy(): void;
475
- static ɵfac: i0.ɵɵFactoryDeclaration<UpgradeSubscriptionComponent, never>;
476
- static ɵcmp: i0.ɵɵComponentDeclaration<UpgradeSubscriptionComponent, "pw-upgrade-subscription", never, {}, {}, never, never, false, never>;
477
- }
478
-
479
- declare class UserSubscriptionDetailsComponent extends AppBaseComponent implements OnInit, OnDestroy {
480
- private readonly fb;
481
- private readonly geoService;
482
- private readonly modalService;
483
- private readonly subscriptionService;
484
- private readonly store;
485
- private readonly cdr;
486
- private readonly confirmDialog;
487
- modal: PasswordValidationComponent;
488
- allowUpdate: boolean;
489
- hasUnitChanged: boolean;
490
- busyButton: boolean;
491
- form: UntypedFormGroup;
492
- unitError: string;
493
- subscription: Subscription;
494
- units: number;
495
- countries$: Observable<Country[]>;
496
- squaredLogo: string;
497
- fullLogo: string;
498
- fullLogoBroken: boolean;
499
- squaredLogoBroken: boolean;
500
- slug: string;
501
- userId: number;
502
- subscriptionId: number;
503
- user: User;
504
- showApiToken: boolean;
505
- showApiClientId: boolean;
506
- refreshingTokens: boolean;
507
- totalAmount(): number;
508
- constructor(fb: UntypedFormBuilder, geoService: GeoService, modalService: NgbModal, subscriptionService: SubscriptionService, store: Store<AppState>, injector: Injector, cdr: ChangeDetectorRef, confirmDialog: ConfirmDialogService);
509
- ngOnInit(): void;
510
- private fetchData;
511
- /** White-label company name for "Your {brand} AI assistant" (same source as the login page and chat widget). */
512
- get brandName(): string;
513
- private getForm;
514
- private commaSeparatedEmailsValidator;
515
- /** *
516
- * Update seats for all the products of subscription
517
- */
518
- updateUnits(): void;
519
- openModal(content: any): void;
520
- onImageSelection(event: any): void;
521
- uploadSquaredLogo(event: any): void;
522
- onClose(): void;
523
- dataURLtoBlob(dataUrl: any): Blob;
524
- onSaveDetails(): void;
525
- onPasswordValidation(_event: any): void;
526
- onMaxReached(event: any): void;
527
- onMinReached(event: any): void;
528
- onUnitChange(event: any): void;
529
- /** Function to execute on location select */
530
- handleAddressChange(event: any): void;
531
- toggleApiTokenVisibility(): void;
532
- toggleApiClientIdVisibility(): void;
533
- refreshApiTokens(): void;
534
- private performTokenRefresh;
535
- trackByProduct(_index: number, item: Product): number;
536
- ngOnDestroy(): void;
537
- static ɵfac: i0.ɵɵFactoryDeclaration<UserSubscriptionDetailsComponent, never>;
538
- static ɵcmp: i0.ɵɵComponentDeclaration<UserSubscriptionDetailsComponent, "ng-component", never, {}, {}, never, never, false, never>;
539
- }
540
-
541
- declare class UserSubscriptionListComponent extends AppBaseComponent implements OnInit, OnDestroy {
542
- private readonly subscriptionService;
543
- private readonly adminService;
544
- private readonly modalService;
545
- private readonly store;
546
- private readonly clipboard;
547
- private readonly cdr;
548
- private readonly confirmDialog;
549
- menu: MenuItem[];
550
- changeSubscriptionRef: AddSubscriptionComponent;
551
- passwordValidationModalForAccountDelete: PasswordValidationComponent;
552
- passwordValidationModalForKey: PasswordValidationComponent;
553
- passwordValidationForUnsubscribe: PasswordValidationComponent;
554
- cancelSubscriptionModal: TemplateRef<unknown>;
555
- showApiKey: boolean;
556
- password: string;
557
- productName: string;
558
- subscribedSubscriptions: any[];
559
- activeItem: MenuItem;
560
- isAddNew: boolean;
561
- user: User;
562
- isUpdatePayment: false;
563
- selectedSubscription: {
564
- id: number;
565
- productId: number;
481
+ interface AirwallexCardSummary {
482
+ provider: 'airwallex';
483
+ brand: string;
484
+ card_number: string;
485
+ exp_month: number;
486
+ exp_year: number;
487
+ }
488
+ type SecondaryCardSummary = BraintreeCardSummary | AirwallexCardSummary;
489
+ type SecondaryProvider = 'braintree' | 'airwallex';
490
+ interface StripeJsApi {
491
+ setPublishableKey(key: string): void;
492
+ card: {
493
+ createToken(card: CardDetails, callback: (status: number, response: StripeCardResponse) => void): void;
494
+ };
495
+ }
496
+ declare namespace update_payment_details_component_d_exports {
497
+ export { UpdatePaymentDetailsComponent };
498
+ }
499
+ export declare class UpdatePaymentDetailsComponent extends AppBaseComponent implements OnInit {
500
+ private readonly fb;
501
+ private readonly scriptLoader;
502
+ private readonly productService;
503
+ private readonly subscriptionService;
504
+ private readonly cdr;
505
+ form: UntypedFormGroup;
506
+ years: any[];
507
+ months: any[];
508
+ busy: boolean;
509
+ isChangePayment: boolean;
510
+ cardDetails: CardDetails | null;
511
+ secondaryCard: SecondaryCardSummary | null;
512
+ secondaryProvider: SecondaryProvider;
513
+ loading: boolean;
514
+ errorMessage: string;
515
+ stripePublishKey: string;
516
+ errorMsg: string;
517
+ subscriptionId: number;
518
+ productId: number;
519
+ constructor(fb: UntypedFormBuilder, scriptLoader: ScriptLoaderService, productService: ProductService, subscriptionService: SubscriptionService, injector: Injector, cdr: ChangeDetectorRef);
520
+ ngOnInit(): void;
521
+ refreshPaymentMethods(): void;
522
+ onUpdatePaymentDetailsCancel(): void;
523
+ onSave(): void;
524
+ private onStripeToken;
525
+ cancel(): void;
526
+ onChange(value: any): void;
527
+ static ɵfac: i0.ɵɵFactoryDeclaration<UpdatePaymentDetailsComponent, never>;
528
+ static ɵcmp: i0.ɵɵComponentDeclaration<UpdatePaymentDetailsComponent, "pw-update-payment-details", never, {}, {}, never, never, false, never>;
529
+ }
530
+ declare namespace secondary_payment_method_component_d_exports {
531
+ export { SecondaryPaymentMethodComponent };
532
+ }
533
+ declare class SecondaryPaymentMethodComponent implements OnDestroy {
534
+ private readonly subscriptionService;
535
+ private readonly userService;
536
+ private readonly toast;
537
+ private readonly transloco;
538
+ private readonly cdr;
539
+ subscriptionId: number;
540
+ card: SecondaryCardSummary | null;
541
+ provider: SecondaryProvider;
542
+ loading: boolean;
543
+ saved: EventEmitter<void>;
544
+ formHost?: ElementRef<HTMLDivElement>;
545
+ showForm: boolean;
546
+ mounting: boolean;
547
+ busy: boolean;
548
+ private readonly braintree;
549
+ private readonly airwallex;
550
+ constructor(subscriptionService: SubscriptionService, userService: UserService, toast: CustomToastService, transloco: TranslocoService, cdr: ChangeDetectorRef);
551
+ ngOnDestroy(): void;
552
+ startFlow(): Promise<void>;
553
+ submit(): Promise<void>;
554
+ cancel(): void;
555
+ private onSaved;
556
+ private mountForm;
557
+ /** Braintree yields a nonce; Airwallex yields the confirmed intent id (after 3DS). */
558
+ private collectCard;
559
+ private register;
560
+ private teardown;
561
+ private fail;
562
+ static ɵfac: i0.ɵɵFactoryDeclaration<SecondaryPaymentMethodComponent, never>;
563
+ static ɵcmp: i0.ɵɵComponentDeclaration<SecondaryPaymentMethodComponent, "pw-secondary-payment-method", never, {
564
+ "subscriptionId": {
565
+ "alias": "subscriptionId";
566
+ "required": false;
567
+ };
568
+ "card": {
569
+ "alias": "card";
570
+ "required": false;
571
+ };
572
+ "provider": {
573
+ "alias": "provider";
574
+ "required": false;
566
575
  };
567
- editing: boolean;
568
- isLoaded: boolean;
569
- reasonToCancel: string;
570
- currentItem: CurrentItem;
571
- showTos: boolean;
572
- objectKeys: {
573
- (o: object): string[];
574
- (o: {}): string[];
576
+ "loading": {
577
+ "alias": "loading";
578
+ "required": false;
575
579
  };
576
- items: MenuItem[];
580
+ }, {
581
+ "saved": "saved";
582
+ }, never, never, false, never>;
583
+ }
584
+ declare namespace upgrade_subscription_component_d_exports {
585
+ export { UpgradeSubscriptionComponent };
586
+ }
587
+ export declare class UpgradeSubscriptionComponent extends AppBaseComponent implements OnInit, OnDestroy {
588
+ private readonly productService;
589
+ private readonly fb;
590
+ private readonly modalService;
591
+ private readonly subscriptionService;
592
+ private readonly store;
593
+ private readonly scriptLoader;
594
+ private readonly cdr;
595
+ private readonly confirmDialog;
596
+ passwordValidationModal: PasswordValidationComponent;
597
+ form: UntypedFormGroup;
598
+ product: Product;
599
+ subscription: Subscription;
600
+ user: User;
601
+ cardDetails: CardDetails;
602
+ units: number;
603
+ subscriptionId: number;
604
+ productId: number;
605
+ unitError: string;
606
+ password: string;
607
+ stripePublishKey: string;
608
+ busy: boolean;
609
+ isPurchaseAttempted: boolean;
610
+ months: any[];
611
+ years: any[];
612
+ showNewCard: boolean;
613
+ passwordModalVisible: boolean;
614
+ errorMsg: any;
615
+ get totalAmount(): number;
616
+ constructor(injector: Injector, productService: ProductService, fb: UntypedFormBuilder, modalService: NgbModal, subscriptionService: SubscriptionService, store: Store<AppState>, scriptLoader: ScriptLoaderService, cdr: ChangeDetectorRef, confirmDialog: ConfirmDialogService);
617
+ ngOnInit(): void;
618
+ getSubscriptionDetails(): void;
619
+ getProductDetails(): void;
620
+ onMaxReached(event: any): void;
621
+ onMinReached(event: any): void;
622
+ onUnitChange(event: any): void;
623
+ onValidatePassword(isSuccess: boolean): void;
624
+ private postCreateToken;
625
+ attemptPurchase(): void;
626
+ private onPurchaseSubmit;
627
+ private enrollUserToSubscription;
628
+ private noPasswordModal;
629
+ private getCardDetails;
630
+ onDiscardToggle(): void;
631
+ updateCardDetails(): void;
632
+ ngOnDestroy(): void;
633
+ static ɵfac: i0.ɵɵFactoryDeclaration<UpgradeSubscriptionComponent, never>;
634
+ static ɵcmp: i0.ɵɵComponentDeclaration<UpgradeSubscriptionComponent, "pw-upgrade-subscription", never, {}, {}, never, never, false, never>;
635
+ }
636
+ declare namespace user_subscription_details_component_d_exports {
637
+ export { UserSubscriptionDetailsComponent };
638
+ }
639
+ export declare class UserSubscriptionDetailsComponent extends AppBaseComponent implements OnInit, OnDestroy {
640
+ private readonly fb;
641
+ private readonly geoService;
642
+ private readonly modalService;
643
+ private readonly subscriptionService;
644
+ private readonly store;
645
+ private readonly cdr;
646
+ private readonly confirmDialog;
647
+ modal: PasswordValidationComponent;
648
+ allowUpdate: boolean;
649
+ hasUnitChanged: boolean;
650
+ busyButton: boolean;
651
+ form: UntypedFormGroup;
652
+ unitError: string;
653
+ subscription: Subscription;
654
+ units: number;
655
+ countries$: Observable<Country[]>;
656
+ squaredLogo: string;
657
+ fullLogo: string;
658
+ fullLogoBroken: boolean;
659
+ squaredLogoBroken: boolean;
660
+ slug: string;
661
+ userId: number;
662
+ subscriptionId: number;
663
+ user: User;
664
+ showApiToken: boolean;
665
+ showApiClientId: boolean;
666
+ refreshingTokens: boolean;
667
+ totalAmount(): number;
668
+ constructor(fb: UntypedFormBuilder, geoService: GeoService, modalService: NgbModal, subscriptionService: SubscriptionService, store: Store<AppState>, injector: Injector, cdr: ChangeDetectorRef, confirmDialog: ConfirmDialogService);
669
+ ngOnInit(): void;
670
+ private fetchData;
671
+ /** White-label company name for "Your {brand} AI assistant" (same source as the login page and chat widget). */
672
+ get brandName(): string;
673
+ private getForm;
674
+ private commaSeparatedEmailsValidator;
675
+ /** *
676
+ * Update seats for all the products of subscription
677
+ */
678
+ updateUnits(): void;
679
+ openModal(content: any): void;
680
+ onImageSelection(event: any): void;
681
+ uploadSquaredLogo(event: any): void;
682
+ onClose(): void;
683
+ dataURLtoBlob(dataUrl: any): Blob;
684
+ onSaveDetails(): void;
685
+ onPasswordValidation(_event: any): void;
686
+ onMaxReached(event: any): void;
687
+ onMinReached(event: any): void;
688
+ onUnitChange(event: any): void;
689
+ /** Function to execute on location select */
690
+ handleAddressChange(event: any): void;
691
+ toggleApiTokenVisibility(): void;
692
+ toggleApiClientIdVisibility(): void;
693
+ refreshApiTokens(): void;
694
+ private performTokenRefresh;
695
+ trackByProduct(_index: number, item: Product): number;
696
+ ngOnDestroy(): void;
697
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserSubscriptionDetailsComponent, never>;
698
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserSubscriptionDetailsComponent, "ng-component", never, {}, {}, never, never, false, never>;
699
+ }
700
+ declare namespace user_subscriptions_list_component_d_exports {
701
+ export { UserSubscriptionListComponent };
702
+ }
703
+ export declare class UserSubscriptionListComponent extends AppBaseComponent implements OnInit, OnDestroy {
704
+ private readonly subscriptionService;
705
+ private readonly adminService;
706
+ private readonly modalService;
707
+ private readonly store;
708
+ private readonly clipboard;
709
+ private readonly cdr;
710
+ private readonly confirmDialog;
711
+ menu: MenuItem[];
712
+ changeSubscriptionRef: AddSubscriptionComponent;
713
+ passwordValidationModalForAccountDelete: PasswordValidationComponent;
714
+ passwordValidationModalForKey: PasswordValidationComponent;
715
+ passwordValidationForUnsubscribe: PasswordValidationComponent;
716
+ cancelSubscriptionModal: TemplateRef<unknown>;
717
+ showApiKey: boolean;
718
+ password: string;
719
+ productName: string;
720
+ subscribedSubscriptions: any[];
721
+ activeItem: MenuItem;
722
+ isAddNew: boolean;
723
+ user: User;
724
+ isUpdatePayment: false;
725
+ selectedSubscription: {
726
+ id: number;
577
727
  productId: number;
578
- constructor(subscriptionService: SubscriptionService, adminService: AdminService, modalService: NgbModal, store: Store<AppState>, clipboard: Clipboard, injector: Injector, cdr: ChangeDetectorRef, confirmDialog: ConfirmDialogService);
579
- ngOnInit(): void;
580
- onClipboardCopy(accessCode: string): void;
581
- attemptUnsubscribe(item: any, productId: number): void;
582
- openCancelSubscriptionModal(): void;
583
- private getSubscribedProduct;
584
- updateApiKey(subscription: any, product: any): void;
585
- showKey(item: any): void;
586
- displayApiKey(): void;
587
- activateMenu(): void;
588
- onUnsubscribe(item: any, reasonToCancel: string): void;
589
- onValidatePassword(isSuccess: boolean): void;
590
- onConfirmCancel(): void;
591
- discardEdit(): void;
592
- onSaveDetails(): void;
593
- onUpdatePaymentDetailsCancel(): void;
594
- attemptUpgrade(subscription: Subscription, product: Product): void;
595
- private noPasswordModal;
596
- showModalForAccountDeletion(): void;
597
- deleteUser(_event: any): void;
598
- showPrivacyAndTos(product: Product): void;
599
- onCancel(): void;
600
- trackBySubscription(_index: number, item: {
601
- id: number;
602
- }): number;
603
- trackByProduct(_index: number, item: {
604
- id: number;
605
- }): number;
606
- ngOnDestroy(): void;
607
- static ɵfac: i0.ɵɵFactoryDeclaration<UserSubscriptionListComponent, never>;
608
- static ɵcmp: i0.ɵɵComponentDeclaration<UserSubscriptionListComponent, "pw-user-subscriptions-list", never, {}, {}, never, never, false, never>;
609
- }
610
-
611
- declare class UserInvoiceComponent extends AppBaseComponent implements OnDestroy {
612
- private readonly cdr;
613
- invoices: any[];
614
- buttonBusy: boolean;
615
- userId: number;
616
- totalRecordsUnFiltered: number;
617
- searchText: string;
618
- subscription: Subscription$1;
619
- intervalTimer: rxjs.Observable<number>;
620
- isLoaded: boolean;
621
- page: number;
622
- totalRecords: number;
623
- invoiceFrequency: string[];
624
- constructor(injector: Injector, cdr: ChangeDetectorRef);
625
- onLazyLoad(event: LazyLoadEvent): void;
626
- private fetchInvoices;
627
- private pollForInvoices;
628
- ngOnDestroy(): void;
629
- static ɵfac: i0.ɵɵFactoryDeclaration<UserInvoiceComponent, never>;
630
- static ɵcmp: i0.ɵɵComponentDeclaration<UserInvoiceComponent, "pw-user-invoice", never, {}, {}, never, never, false, never>;
631
- }
632
-
633
- declare class CommunicationTabComponent extends AppBaseComponent implements OnInit {
634
- private readonly commonService;
635
- private readonly profileService;
636
- private readonly store;
637
- private readonly cdr;
638
- subscriptions: any[];
639
- userSubscription: any[];
640
- isLoaded: boolean;
641
- user: User;
642
- constructor(commonService: CommonService, profileService: ProfileService, store: Store<AppState>, injector: Injector, cdr: ChangeDetectorRef);
643
- ngOnInit(): void;
644
- private getAllSubscription;
645
- onValueChange(item: any, value: any): void;
646
- updateUser(): void;
647
- static ɵfac: i0.ɵɵFactoryDeclaration<CommunicationTabComponent, never>;
648
- static ɵcmp: i0.ɵɵComponentDeclaration<CommunicationTabComponent, "pw-communication-tab", never, {}, {}, never, never, false, never>;
649
- }
650
-
651
- declare class OthersTabComponent extends AppBaseComponent implements OnInit, OnDestroy {
652
- private readonly commonService;
653
- private readonly cdr;
654
- subscriptionConfigs: any[];
655
- globalConfigs: any[];
656
- userId: number;
657
- isLoaded: boolean;
658
- constructor(commonService: CommonService, injector: Injector, cdr: ChangeDetectorRef);
659
- ngOnInit(): void;
660
- private getGlobalSubscriptionConfig;
661
- private getGlobalConfigs;
662
- onValueChange(item: any, value: any): void;
663
- ngOnDestroy(): void;
664
- static ɵfac: i0.ɵɵFactoryDeclaration<OthersTabComponent, never>;
665
- static ɵcmp: i0.ɵɵComponentDeclaration<OthersTabComponent, "pw-others-tab", never, {}, {}, never, never, false, never>;
666
- }
667
-
668
- declare class SecurityTabComponent extends AppBaseComponent implements OnInit {
669
- private readonly cdr;
670
- passwordRef: ElementRef;
671
- verificationCode: ElementRef;
672
- ssoPasswordRef: ElementRef;
673
- showSSOSection: boolean;
674
- ssoPasswordVerified: boolean;
675
- isSSOPasswordInvalid: boolean;
676
- user: any;
677
- isCurrentPasswordValid: boolean;
678
- passwordVerified: boolean;
679
- show2FA: boolean;
680
- created2faDetails: object;
681
- constructor(injector: Injector, cdr: ChangeDetectorRef);
682
- ngOnInit(): void;
683
- private getUser;
684
- validatePassword(): void;
685
- checkValidity(): void;
686
- private create2FA;
687
- verify2FA(): void;
688
- private enable2FA;
689
- private disable2FA;
690
- reset(): void;
691
- checkSSOPasswordValidity(): void;
692
- validateSSOPassword(): void;
693
- triggerSSO(): void;
694
- resetSSO(): void;
695
- static ɵfac: i0.ɵɵFactoryDeclaration<SecurityTabComponent, never>;
696
- static ɵcmp: i0.ɵɵComponentDeclaration<SecurityTabComponent, "pw-security-tab", never, {}, {}, never, never, false, never>;
697
- }
698
-
699
- declare class SettingsComponent {
700
- private readonly router;
701
- private readonly permissionService;
702
- menu: MenuItem[];
703
- items: MenuItem[];
704
- activeItem: MenuItem;
705
- constructor(router: Router, permissionService: PermissionService);
706
- activateMenu(): void;
707
- static ɵfac: i0.ɵɵFactoryDeclaration<SettingsComponent, never>;
708
- static ɵcmp: i0.ɵɵComponentDeclaration<SettingsComponent, "pw-settings", never, {}, {}, never, never, false, never>;
709
- }
710
-
711
- declare class SupportComponent extends AppBaseComponent implements OnInit {
712
- private readonly commonService;
713
- private readonly cdr;
714
- supports: any[];
715
- subscriptionId: number;
716
- isLoading: boolean;
717
- isLoaded: boolean;
718
- constructor(injector: Injector, commonService: CommonService, cdr: ChangeDetectorRef);
719
- ngOnInit(): void;
720
- private getAllSupport;
721
- static ɵfac: i0.ɵɵFactoryDeclaration<SupportComponent, never>;
722
- static ɵcmp: i0.ɵɵComponentDeclaration<SupportComponent, "pw-support", never, {}, {}, never, never, false, never>;
723
- }
724
-
725
- declare class EditPortfoliosComponent {
726
- private readonly modalService;
727
- private readonly profileService;
728
- private readonly cdr;
729
- content: TemplateRef<ModalContext>;
730
- uploader: FileUpload;
731
- successEvent: EventEmitter<boolean>;
728
+ };
729
+ editing: boolean;
730
+ isLoaded: boolean;
731
+ reasonToCancel: string;
732
+ currentItem: CurrentItem;
733
+ showTos: boolean;
734
+ objectKeys: {
735
+ (o: object): string[];
736
+ (o: {}): string[];
737
+ };
738
+ items: MenuItem[];
739
+ productId: number;
740
+ constructor(subscriptionService: SubscriptionService, adminService: AdminService, modalService: NgbModal, store: Store<AppState>, clipboard: Clipboard, injector: Injector, cdr: ChangeDetectorRef, confirmDialog: ConfirmDialogService);
741
+ ngOnInit(): void;
742
+ onClipboardCopy(accessCode: string): void;
743
+ attemptUnsubscribe(item: any, productId: number): void;
744
+ openCancelSubscriptionModal(): void;
745
+ private getSubscribedProduct;
746
+ updateApiKey(subscription: any, product: any): void;
747
+ showKey(item: any): void;
748
+ displayApiKey(): void;
749
+ activateMenu(): void;
750
+ onUnsubscribe(item: any, reasonToCancel: string): void;
751
+ onValidatePassword(isSuccess: boolean): void;
752
+ onConfirmCancel(): void;
753
+ discardEdit(): void;
754
+ onSaveDetails(): void;
755
+ onUpdatePaymentDetailsCancel(): void;
756
+ attemptUpgrade(subscription: Subscription, product: Product): void;
757
+ private noPasswordModal;
758
+ showModalForAccountDeletion(): void;
759
+ deleteUser(_event: any): void;
760
+ showPrivacyAndTos(product: Product): void;
761
+ onCancel(): void;
762
+ trackBySubscription(_index: number, item: {
732
763
  id: number;
733
- slug: string;
734
- uploadedFiles: any[];
735
- project: any[];
736
- projectPictures: any[];
737
- busy: boolean;
738
- filesUploaded: boolean;
739
- constructor(modalService: NgbModal, profileService: ProfileService, cdr: ChangeDetectorRef);
740
- openModal(id: number): void;
741
- onSelect(event?: any): void;
742
- getProjectPictures(): void;
743
- /**
744
- * Uploads multiple images for the project
745
- * @param form
746
- */
747
- onSave(form: any): void;
748
- deleteProjectPicture(id: number): void;
749
- trackByImage(_index: number, item: {
750
- id: number;
751
- }): number;
752
- onRemove(event: any): void;
753
- onUploadError(event: any): void;
754
- static ɵfac: i0.ɵɵFactoryDeclaration<EditPortfoliosComponent, never>;
755
- 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>;
756
- }
757
-
758
- declare class EditProjectModalComponent extends AppBaseComponent implements OnInit, OnDestroy {
759
- modalService: NgbModal;
760
- private readonly fb;
761
- private readonly profileService;
762
- private readonly cdr;
763
- content: TemplateRef<ModalContext>;
764
- cancelEvent: EventEmitter<void>;
765
- saveEvent: EventEmitter<boolean>;
766
- form: UntypedFormGroup;
767
- weeks: number[];
768
- startYears: number[];
769
- endYears: number[];
770
- title: string;
771
- submitted: boolean;
772
- buttonBusy: boolean;
773
- private currentProject;
774
- userId: number;
775
- constructor(modalService: NgbModal, fb: UntypedFormBuilder, profileService: ProfileService, injector: Injector, cdr: ChangeDetectorRef);
776
- get f(): {
777
- [key: string]: _angular_forms.AbstractControl<any, any, any>;
764
+ }): number;
765
+ trackByProduct(_index: number, item: {
766
+ id: number;
767
+ }): number;
768
+ ngOnDestroy(): void;
769
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserSubscriptionListComponent, never>;
770
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserSubscriptionListComponent, "pw-user-subscriptions-list", never, {}, {}, never, never, false, never>;
771
+ }
772
+ declare namespace user_invoice_component_d_exports {
773
+ export { UserInvoiceComponent };
774
+ }
775
+ export declare class UserInvoiceComponent extends AppBaseComponent implements OnDestroy {
776
+ private readonly cdr;
777
+ invoices: any[];
778
+ buttonBusy: boolean;
779
+ userId: number;
780
+ totalRecordsUnFiltered: number;
781
+ searchText: string;
782
+ subscription: Subscription$1;
783
+ intervalTimer: import("rxjs").Observable<number>;
784
+ isLoaded: boolean;
785
+ page: number;
786
+ totalRecords: number;
787
+ invoiceFrequency: string[];
788
+ constructor(injector: Injector, cdr: ChangeDetectorRef);
789
+ onLazyLoad(event: LazyLoadEvent): void;
790
+ private fetchInvoices;
791
+ private pollForInvoices;
792
+ ngOnDestroy(): void;
793
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserInvoiceComponent, never>;
794
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserInvoiceComponent, "pw-user-invoice", never, {}, {}, never, never, false, never>;
795
+ }
796
+ declare namespace communication_tab_component_d_exports {
797
+ export { CommunicationTabComponent };
798
+ }
799
+ export declare class CommunicationTabComponent extends AppBaseComponent implements OnInit {
800
+ private readonly commonService;
801
+ private readonly profileService;
802
+ private readonly store;
803
+ private readonly cdr;
804
+ subscriptions: any[];
805
+ userSubscription: any[];
806
+ isLoaded: boolean;
807
+ user: User;
808
+ constructor(commonService: CommonService, profileService: ProfileService, store: Store<AppState>, injector: Injector, cdr: ChangeDetectorRef);
809
+ ngOnInit(): void;
810
+ private getAllSubscription;
811
+ onValueChange(item: any, value: any): void;
812
+ updateUser(): void;
813
+ static ɵfac: i0.ɵɵFactoryDeclaration<CommunicationTabComponent, never>;
814
+ static ɵcmp: i0.ɵɵComponentDeclaration<CommunicationTabComponent, "pw-communication-tab", never, {}, {}, never, never, false, never>;
815
+ }
816
+ declare namespace others_tab_component_d_exports {
817
+ export { OthersTabComponent };
818
+ }
819
+ export declare class OthersTabComponent extends AppBaseComponent implements OnInit, OnDestroy {
820
+ private readonly commonService;
821
+ private readonly cdr;
822
+ subscriptionConfigs: any[];
823
+ globalConfigs: any[];
824
+ userId: number;
825
+ isLoaded: boolean;
826
+ constructor(commonService: CommonService, injector: Injector, cdr: ChangeDetectorRef);
827
+ ngOnInit(): void;
828
+ private getGlobalSubscriptionConfig;
829
+ private getGlobalConfigs;
830
+ onValueChange(item: any, value: any): void;
831
+ ngOnDestroy(): void;
832
+ static ɵfac: i0.ɵɵFactoryDeclaration<OthersTabComponent, never>;
833
+ static ɵcmp: i0.ɵɵComponentDeclaration<OthersTabComponent, "pw-others-tab", never, {}, {}, never, never, false, never>;
834
+ }
835
+ declare namespace security_tab_component_d_exports {
836
+ export { SecurityTabComponent };
837
+ }
838
+ export declare class SecurityTabComponent extends AppBaseComponent implements OnInit {
839
+ private readonly cdr;
840
+ passwordRef: ElementRef;
841
+ verificationCode: ElementRef;
842
+ ssoPasswordRef: ElementRef;
843
+ showSSOSection: boolean;
844
+ ssoPasswordVerified: boolean;
845
+ isSSOPasswordInvalid: boolean;
846
+ user: any;
847
+ isCurrentPasswordValid: boolean;
848
+ passwordVerified: boolean;
849
+ show2FA: boolean;
850
+ created2faDetails: object;
851
+ constructor(injector: Injector, cdr: ChangeDetectorRef);
852
+ ngOnInit(): void;
853
+ private getUser;
854
+ validatePassword(): void;
855
+ checkValidity(): void;
856
+ private create2FA;
857
+ verify2FA(): void;
858
+ private enable2FA;
859
+ private disable2FA;
860
+ reset(): void;
861
+ checkSSOPasswordValidity(): void;
862
+ validateSSOPassword(): void;
863
+ triggerSSO(): void;
864
+ resetSSO(): void;
865
+ static ɵfac: i0.ɵɵFactoryDeclaration<SecurityTabComponent, never>;
866
+ static ɵcmp: i0.ɵɵComponentDeclaration<SecurityTabComponent, "pw-security-tab", never, {}, {}, never, never, false, never>;
867
+ }
868
+ declare namespace settings_tabs_component_d_exports {
869
+ export { SettingsComponent };
870
+ }
871
+ export declare class SettingsComponent {
872
+ private readonly router;
873
+ private readonly permissionService;
874
+ menu: MenuItem[];
875
+ items: MenuItem[];
876
+ activeItem: MenuItem;
877
+ constructor(router: Router, permissionService: PermissionService);
878
+ activateMenu(): void;
879
+ static ɵfac: i0.ɵɵFactoryDeclaration<SettingsComponent, never>;
880
+ static ɵcmp: i0.ɵɵComponentDeclaration<SettingsComponent, "pw-settings", never, {}, {}, never, never, false, never>;
881
+ }
882
+ declare namespace support_component_d_exports {
883
+ export { SupportComponent };
884
+ }
885
+ export declare class SupportComponent extends AppBaseComponent implements OnInit {
886
+ private readonly commonService;
887
+ private readonly cdr;
888
+ supports: any[];
889
+ subscriptionId: number;
890
+ isLoading: boolean;
891
+ isLoaded: boolean;
892
+ constructor(injector: Injector, commonService: CommonService, cdr: ChangeDetectorRef);
893
+ ngOnInit(): void;
894
+ private getAllSupport;
895
+ static ɵfac: i0.ɵɵFactoryDeclaration<SupportComponent, never>;
896
+ static ɵcmp: i0.ɵɵComponentDeclaration<SupportComponent, "pw-support", never, {}, {}, never, never, false, never>;
897
+ }
898
+ declare namespace edit_portfolios_component_d_exports {
899
+ export { EditPortfoliosComponent };
900
+ }
901
+ export declare class EditPortfoliosComponent {
902
+ private readonly modalService;
903
+ private readonly profileService;
904
+ private readonly cdr;
905
+ content: TemplateRef<ModalContext>;
906
+ uploader: FileUpload;
907
+ successEvent: EventEmitter<boolean>;
908
+ id: number;
909
+ slug: string;
910
+ uploadedFiles: any[];
911
+ project: any[];
912
+ projectPictures: any[];
913
+ busy: boolean;
914
+ filesUploaded: boolean;
915
+ constructor(modalService: NgbModal, profileService: ProfileService, cdr: ChangeDetectorRef);
916
+ openModal(id: number): void;
917
+ onSelect(event?: any): void;
918
+ getProjectPictures(): void;
919
+ /**
920
+ * Uploads multiple images for the project
921
+ * @param form
922
+ */
923
+ onSave(form: any): void;
924
+ deleteProjectPicture(id: number): void;
925
+ trackByImage(_index: number, item: {
926
+ id: number;
927
+ }): number;
928
+ onRemove(event: any): void;
929
+ onUploadError(event: any): void;
930
+ static ɵfac: i0.ɵɵFactoryDeclaration<EditPortfoliosComponent, never>;
931
+ static ɵcmp: i0.ɵɵComponentDeclaration<EditPortfoliosComponent, "pw-edit-portfolios", never, {
932
+ "id": {
933
+ "alias": "id";
934
+ "required": false;
935
+ };
936
+ "slug": {
937
+ "alias": "slug";
938
+ "required": false;
939
+ };
940
+ }, {
941
+ "successEvent": "successEvent";
942
+ }, never, never, false, never>;
943
+ }
944
+ declare namespace edit_project_modal_component_d_exports {
945
+ export { EditProjectModalComponent };
946
+ }
947
+ export declare class EditProjectModalComponent extends AppBaseComponent implements OnInit, OnDestroy {
948
+ modalService: NgbModal;
949
+ private readonly fb;
950
+ private readonly profileService;
951
+ private readonly cdr;
952
+ content: TemplateRef<ModalContext>;
953
+ cancelEvent: EventEmitter<void>;
954
+ saveEvent: EventEmitter<boolean>;
955
+ form: UntypedFormGroup;
956
+ weeks: number[];
957
+ startYears: number[];
958
+ endYears: number[];
959
+ title: string;
960
+ submitted: boolean;
961
+ buttonBusy: boolean;
962
+ private currentProject;
963
+ userId: number;
964
+ constructor(modalService: NgbModal, fb: UntypedFormBuilder, profileService: ProfileService, injector: Injector, cdr: ChangeDetectorRef);
965
+ get f(): {
966
+ [key: string]: import("@angular/forms").AbstractControl<any, any, any>;
967
+ };
968
+ ngOnInit(): void;
969
+ ngOnDestroy(): void;
970
+ getStartYear(): void;
971
+ getEndYears(start_year: any): void;
972
+ private getWeeks;
973
+ onOpen(item?: any): void;
974
+ onSaveDetail(): void;
975
+ private getForm;
976
+ static ɵfac: i0.ɵɵFactoryDeclaration<EditProjectModalComponent, never>;
977
+ static ɵcmp: i0.ɵɵComponentDeclaration<EditProjectModalComponent, "pw-edit-project-modal", never, {}, {
978
+ "cancelEvent": "cancelEvent";
979
+ "saveEvent": "saveEvent";
980
+ }, never, never, false, never>;
981
+ }
982
+ declare namespace edit_qualifications_modal_component_d_exports {
983
+ export { EditQualificationsModalComponent };
984
+ }
985
+ export declare class EditQualificationsModalComponent extends AppBaseComponent implements OnInit {
986
+ modalService: NgbModal;
987
+ private readonly fb;
988
+ private readonly qualificationService;
989
+ private readonly cdr;
990
+ saveEvent: EventEmitter<void>;
991
+ content: TemplateRef<ModalContext>;
992
+ title: string;
993
+ form: UntypedFormGroup;
994
+ userId: number;
995
+ now: Date;
996
+ minToDate: Date;
997
+ qualifications: {
998
+ value: number;
999
+ label: string;
1000
+ }[];
1001
+ buttonBusy: boolean;
1002
+ constructor(modalService: NgbModal, fb: UntypedFormBuilder, qualificationService: QualificationService, injector: Injector, cdr: ChangeDetectorRef);
1003
+ ngOnInit(): void;
1004
+ onOpen(value?: any): void;
1005
+ onDateChange(): void;
1006
+ onSaveDetail(): void;
1007
+ static ɵfac: i0.ɵɵFactoryDeclaration<EditQualificationsModalComponent, never>;
1008
+ static ɵcmp: i0.ɵɵComponentDeclaration<EditQualificationsModalComponent, "pw-edit-qualifications-modal", never, {}, {
1009
+ "saveEvent": "saveEvent";
1010
+ }, never, never, false, never>;
1011
+ }
1012
+ declare namespace edit_recommendation_modal_component_d_exports {
1013
+ export { EditRecommendationModalComponent };
1014
+ }
1015
+ export declare class EditRecommendationModalComponent {
1016
+ modalService: NgbModal;
1017
+ private readonly fb;
1018
+ private readonly profileService;
1019
+ private readonly cdr;
1020
+ content: TemplateRef<ModalContext>;
1021
+ user: User;
1022
+ form: UntypedFormGroup;
1023
+ title: string;
1024
+ buttonBusy: boolean;
1025
+ project: Project;
1026
+ constructor(modalService: NgbModal, fb: UntypedFormBuilder, profileService: ProfileService, cdr: ChangeDetectorRef);
1027
+ onOpen(value?: any): void;
1028
+ onSaveDetail(): void;
1029
+ static ɵfac: i0.ɵɵFactoryDeclaration<EditRecommendationModalComponent, never>;
1030
+ static ɵcmp: i0.ɵɵComponentDeclaration<EditRecommendationModalComponent, "pw-edit-recommendation-modal", never, {
1031
+ "user": {
1032
+ "alias": "user";
1033
+ "required": false;
1034
+ };
1035
+ }, {}, never, never, false, never>;
1036
+ }
1037
+ declare namespace edit_skills_modal_component_d_exports {
1038
+ export { EditSkillsModalComponent };
1039
+ }
1040
+ export declare class EditSkillsModalComponent extends AppBaseComponent {
1041
+ private readonly modalService;
1042
+ private readonly tagService;
1043
+ private readonly cdr;
1044
+ content: TemplateRef<ModalContext>;
1045
+ userId: number;
1046
+ slug: string;
1047
+ entityType: TAG_TYPE;
1048
+ entityEntity: TAG_ENTITY;
1049
+ saveEvent: EventEmitter<boolean>;
1050
+ allSkills: any[];
1051
+ searchSkills: any[];
1052
+ selectedSkills: any[];
1053
+ constructor(modalService: NgbModal, tagService: TagService, injector: Injector, cdr: ChangeDetectorRef);
1054
+ open(): void;
1055
+ /**
1056
+ * Populate all the skills for the dropdown
1057
+ */
1058
+ private getSkills;
1059
+ /**
1060
+ * Skills Search
1061
+ * @param event: keyword to search
1062
+ */
1063
+ search(event: any): void;
1064
+ close(modal: any): void;
1065
+ private getEntitySkills;
1066
+ saveUserSkills(): void;
1067
+ static ɵfac: i0.ɵɵFactoryDeclaration<EditSkillsModalComponent, never>;
1068
+ static ɵcmp: i0.ɵɵComponentDeclaration<EditSkillsModalComponent, "pw-edit-skills-modal", never, {
1069
+ "userId": {
1070
+ "alias": "userId";
1071
+ "required": false;
1072
+ };
1073
+ "slug": {
1074
+ "alias": "slug";
1075
+ "required": false;
778
1076
  };
779
- ngOnInit(): void;
780
- ngOnDestroy(): void;
781
- getStartYear(): void;
782
- getEndYears(start_year: any): void;
783
- private getWeeks;
784
- onOpen(item?: any): void;
785
- onSaveDetail(): void;
786
- private getForm;
787
- static ɵfac: i0.ɵɵFactoryDeclaration<EditProjectModalComponent, never>;
788
- static ɵcmp: i0.ɵɵComponentDeclaration<EditProjectModalComponent, "pw-edit-project-modal", never, {}, { "cancelEvent": "cancelEvent"; "saveEvent": "saveEvent"; }, never, never, false, never>;
789
- }
790
-
791
- declare class EditQualificationsModalComponent extends AppBaseComponent implements OnInit {
792
- modalService: NgbModal;
793
- private readonly fb;
794
- private readonly qualificationService;
795
- private readonly cdr;
796
- saveEvent: EventEmitter<void>;
797
- content: TemplateRef<ModalContext>;
798
- title: string;
799
- form: UntypedFormGroup;
800
- userId: number;
801
- now: Date;
802
- minToDate: Date;
803
- qualifications: {
804
- value: number;
805
- label: string;
806
- }[];
807
- buttonBusy: boolean;
808
- constructor(modalService: NgbModal, fb: UntypedFormBuilder, qualificationService: QualificationService, injector: Injector, cdr: ChangeDetectorRef);
809
- ngOnInit(): void;
810
- onOpen(value?: any): void;
811
- onDateChange(): void;
812
- onSaveDetail(): void;
813
- static ɵfac: i0.ɵɵFactoryDeclaration<EditQualificationsModalComponent, never>;
814
- static ɵcmp: i0.ɵɵComponentDeclaration<EditQualificationsModalComponent, "pw-edit-qualifications-modal", never, {}, { "saveEvent": "saveEvent"; }, never, never, false, never>;
815
- }
816
-
817
- declare class EditRecommendationModalComponent {
818
- modalService: NgbModal;
819
- private readonly fb;
820
- private readonly profileService;
821
- private readonly cdr;
822
- content: TemplateRef<ModalContext>;
823
- user: User;
824
- form: UntypedFormGroup;
825
- title: string;
826
- buttonBusy: boolean;
827
- project: Project;
828
- constructor(modalService: NgbModal, fb: UntypedFormBuilder, profileService: ProfileService, cdr: ChangeDetectorRef);
829
- onOpen(value?: any): void;
830
- onSaveDetail(): void;
831
- static ɵfac: i0.ɵɵFactoryDeclaration<EditRecommendationModalComponent, never>;
832
- static ɵcmp: i0.ɵɵComponentDeclaration<EditRecommendationModalComponent, "pw-edit-recommendation-modal", never, { "user": { "alias": "user"; "required": false; }; }, {}, never, never, false, never>;
833
- }
834
-
835
- declare class EditSkillsModalComponent extends AppBaseComponent {
836
- private readonly modalService;
837
- private readonly tagService;
838
- private readonly cdr;
839
- content: TemplateRef<ModalContext>;
840
- userId: number;
841
- slug: string;
842
- entityType: TAG_TYPE;
843
- entityEntity: TAG_ENTITY;
844
- saveEvent: EventEmitter<boolean>;
845
- allSkills: any[];
846
- searchSkills: any[];
847
- selectedSkills: any[];
848
- constructor(modalService: NgbModal, tagService: TagService, injector: Injector, cdr: ChangeDetectorRef);
849
- open(): void;
850
- /**
851
- * Populate all the skills for the dropdown
852
- */
853
- private getSkills;
854
- /**
855
- * Skills Search
856
- * @param event: keyword to search
857
- */
858
- search(event: any): void;
859
- close(modal: any): void;
860
- private getEntitySkills;
861
- saveUserSkills(): void;
862
- static ɵfac: i0.ɵɵFactoryDeclaration<EditSkillsModalComponent, never>;
863
- static ɵcmp: i0.ɵɵComponentDeclaration<EditSkillsModalComponent, "pw-edit-skills-modal", never, { "userId": { "alias": "userId"; "required": false; }; "slug": { "alias": "slug"; "required": false; }; "entityType": { "alias": "entityType"; "required": false; }; "entityEntity": { "alias": "entityEntity"; "required": false; }; }, { "saveEvent": "saveEvent"; }, never, never, false, never>;
864
- }
865
-
866
- declare class EditSocialLinksComponent extends AppBaseComponent implements OnInit {
867
- private readonly modalService;
868
- private readonly fb;
869
- private readonly profileService;
870
- private readonly cdr;
871
- content: TemplateRef<ModalContext>;
872
- links: Record<string, string>;
873
- userId: number;
874
- saveEvent: EventEmitter<void>;
875
- form: UntypedFormGroup;
876
- buttonBusy: boolean;
877
- readonly socialNetworks: ReadonlyArray<{
878
- key: string;
879
- labelKey: string;
880
- icon: string;
881
- placeholder: string;
882
- }>;
883
- constructor(injector: Injector, modalService: NgbModal, fb: UntypedFormBuilder, profileService: ProfileService, cdr: ChangeDetectorRef);
884
- /** Tenant company name (domain-metadata driven), falling back to PosiWise. */
885
- get companyName(): string;
886
- private urlValidator;
887
- ngOnInit(): void;
888
- onOpen(links: any): void;
889
- onSaveDetail(): void;
890
- static ɵfac: i0.ɵɵFactoryDeclaration<EditSocialLinksComponent, never>;
891
- static ɵcmp: i0.ɵɵComponentDeclaration<EditSocialLinksComponent, "pw-edit-social-links", never, { "links": { "alias": "links"; "required": false; }; "userId": { "alias": "userId"; "required": false; }; }, { "saveEvent": "saveEvent"; }, never, never, false, never>;
892
- }
893
-
894
- declare class EditUserProfileModalComponent extends AppBaseComponent implements OnInit {
895
- modalService: NgbModal;
896
- private readonly fb;
897
- private readonly profileService;
898
- private readonly geoService;
899
- private readonly cdr;
900
- content: TemplateRef<ModalContext>;
901
- slug: string;
902
- user: EditUser;
903
- saveEvent: EventEmitter<UserProfile>;
904
- placesRef: NgxGpAutocompleteDirective;
905
- form: UntypedFormGroup;
906
- countries$: Observable<Country[]>;
907
- states: Country[];
908
- buttonBusy: boolean;
909
- constructor(modalService: NgbModal, fb: UntypedFormBuilder, profileService: ProfileService, geoService: GeoService, injector: Injector, cdr: ChangeDetectorRef);
910
- ngOnInit(): void;
911
- getValues(): void;
912
- handleAddressChange(_event: any): void;
913
- onOpen(): void;
914
- getRegion(countryId: any): void;
915
- onSaveDetail(): void;
916
- save(): void;
917
- static ɵfac: i0.ɵɵFactoryDeclaration<EditUserProfileModalComponent, never>;
918
- static ɵcmp: i0.ɵɵComponentDeclaration<EditUserProfileModalComponent, "pw-edit-user-profile-modal", never, { "slug": { "alias": "slug"; "required": false; }; "user": { "alias": "user"; "required": false; }; }, { "saveEvent": "saveEvent"; }, never, never, false, never>;
919
- }
920
-
921
- declare class UserAboutComponent extends AppBaseComponent implements OnInit, OnDestroy {
922
- private readonly profileService;
923
- private readonly qualificationService;
924
- private readonly tagService;
925
- private readonly cdr;
926
- private readonly confirmDialog;
927
- user: User;
928
- isEdit: boolean;
929
- saveEvent: EventEmitter<boolean>;
930
- modal: EditUserProfileModalComponent;
931
- qualificationModal: EditQualificationsModalComponent;
932
- skillsModal: EditSkillsModalComponent;
933
- socialModal: EditSocialLinksComponent;
934
- private readonly navigationSubscription;
935
- allSkills: any[];
936
- searchSkills: any[];
937
- selectedSkills: Skill[];
938
- objectKeys: {
939
- (o: object): string[];
940
- (o: {}): string[];
1077
+ "entityType": {
1078
+ "alias": "entityType";
1079
+ "required": false;
941
1080
  };
942
- user_profile: AboutUserProfile;
943
- qualifications: Qualification[];
944
- userLinks: Record<string, string>;
945
- noUserLinks: boolean;
946
- loading: boolean;
947
- constructor(profileService: ProfileService, qualificationService: QualificationService, tagService: TagService, injector: Injector, cdr: ChangeDetectorRef, confirmDialog: ConfirmDialogService);
948
- ngOnInit(): void;
949
- getUserDetails(): void;
950
- /**
951
- * Populate all the skills for the dropdown
952
- */
953
- private getSkills;
954
- onProfileOpen(): void;
955
- openSkills(): void;
956
- onProfileSaved(_event: any): void;
957
- onOpenSocial(): void;
958
- editQualification(item: any): void;
959
- deleteQualification(item: any): void;
960
- onSaveUserLinks(): void;
961
- trackByQualification(_index: number, item: {
962
- id: number;
963
- }): number;
964
- ngOnDestroy(): void;
965
- static ɵfac: i0.ɵɵFactoryDeclaration<UserAboutComponent, never>;
966
- 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>;
967
- }
968
-
969
- declare class PortfoliosComponent implements OnInit {
970
- private readonly service;
971
- private readonly modalService;
972
- private readonly cdr;
973
- user: User;
974
- isEdit: boolean;
975
- projectPictures: any[];
976
- selectedPicURL: string;
977
- isLoaded: boolean;
978
- constructor(service: ProfileService, modalService: NgbModal, cdr: ChangeDetectorRef);
979
- ngOnInit(): void;
980
- private getProjectPictures;
981
- deletePicture(id: any): void;
982
- trackByImage(_index: number, item: {
983
- id: number;
984
- }): number;
985
- showFullImage(picture: any, content: any, evt: any): void;
986
- static ɵfac: i0.ɵɵFactoryDeclaration<PortfoliosComponent, never>;
987
- static ɵcmp: i0.ɵɵComponentDeclaration<PortfoliosComponent, "pw-portfolios", never, { "user": { "alias": "user"; "required": false; }; "isEdit": { "alias": "isEdit"; "required": false; }; }, {}, never, never, false, never>;
988
- }
989
-
990
- declare class UserProfilePageComponent extends AppBaseComponent implements OnInit, OnDestroy {
991
- private readonly profileService;
992
- private readonly modalService;
993
- private readonly scriptLoader;
994
- private readonly cdr;
995
- private loggedInUserDetails;
996
- user: User;
997
- slug: string;
998
- objectKeys: {
999
- (o: object): string[];
1000
- (o: {}): string[];
1081
+ "entityEntity": {
1082
+ "alias": "entityEntity";
1083
+ "required": false;
1001
1084
  };
1002
- image: string;
1003
- isFollowing: boolean;
1004
- isLoaded: boolean;
1005
- userProfile: UserProfile;
1006
- items: MenuItem[];
1007
- activeItem: MenuItem;
1008
- /** Current tab value for p-tabs */
1009
- activeTabValue: string;
1010
- onTabChange(value: string): void;
1011
- constructor(injector: Injector, profileService: ProfileService, modalService: NgbModal, scriptLoader: ScriptLoaderService, cdr: ChangeDetectorRef);
1012
- get allowEdit(): boolean;
1013
- ngOnInit(): void;
1014
- handleImageError(event: Event, fallbackPath: any): void;
1015
- private dataURLtoBlob;
1016
- openModal(content: any): void;
1017
- onImageSelection(event: any): void;
1018
- getUserBySlug(): void;
1019
- onClose(): void;
1020
- private getCurrentUserDetails;
1021
- sendMessageSlug(): void;
1022
- followUser(): void;
1023
- private waitForJQuery;
1024
- private loadJQueryForUserProfile;
1025
- ngOnDestroy(): void;
1026
- static ɵfac: i0.ɵɵFactoryDeclaration<UserProfilePageComponent, never>;
1027
- static ɵcmp: i0.ɵɵComponentDeclaration<UserProfilePageComponent, "pw-user-profile-page", never, {}, {}, never, never, false, never>;
1028
- }
1029
-
1030
- declare class UserProjectsComponent extends AppBaseComponent implements OnInit {
1031
- private readonly service;
1032
- private readonly cdr;
1033
- private readonly confirmDialog;
1034
- user: User;
1035
- isEdit: boolean;
1036
- slug: string;
1037
- projectModal: EditProjectModalComponent;
1038
- skillModal: EditSkillsModalComponent;
1039
- recommendationModal: EditRecommendationModalComponent;
1040
- portfolios: EditPortfoliosComponent;
1041
- projects: Project[];
1042
- submitted: boolean;
1043
- isLoaded: boolean;
1044
- constructor(service: ProfileService, injector: Injector, cdr: ChangeDetectorRef, confirmDialog: ConfirmDialogService);
1045
- ngOnInit(): void;
1046
- onEditProject(item: any): void;
1047
- editRecommendation(item: any): void;
1048
- openSkills(project: any): void;
1049
- getProjects(): void;
1050
- onSkillsSave(): void;
1051
- onSaveProject(_event: any): void;
1052
- openPortfolios(id: number): void;
1053
- onDeleteProject(project: any): void;
1054
- trackByProject(_index: number, item: Project): number;
1055
- deletePicture(project: any): void;
1056
- static ɵfac: i0.ɵɵFactoryDeclaration<UserProjectsComponent, never>;
1057
- static ɵcmp: i0.ɵɵComponentDeclaration<UserProjectsComponent, "pw-user-projects", never, { "user": { "alias": "user"; "required": false; }; "isEdit": { "alias": "isEdit"; "required": false; }; "slug": { "alias": "slug"; "required": false; }; }, {}, never, never, false, never>;
1058
- }
1059
-
1060
- declare class SupportDetailsComponent extends AppBaseComponent implements AfterViewInit, OnInit {
1061
- private readonly commonService;
1062
- private readonly authService;
1063
- private readonly renderer;
1064
- private readonly el;
1065
- private readonly cdr;
1066
- form: UntypedFormGroup;
1067
- uploadedFiles: any[];
1068
- invalidFile: boolean;
1069
- isSubmitClicked: boolean;
1070
- siteKey: string;
1071
- recaptcha: any;
1072
- isLoading: boolean;
1073
- filesUploaded: boolean;
1074
- subscriptionId: any;
1075
- constructor(injector: Injector, commonService: CommonService, authService: AuthService, renderer: Renderer2, el: ElementRef, cdr: ChangeDetectorRef);
1076
- ngOnInit(): void;
1077
- ngAfterViewInit(): void;
1078
- onSave(): void;
1079
- handleSuccess(token: string): void;
1080
- onSelect(event?: any): void;
1081
- onRemove(event: any): void;
1082
- attachCloseButtonListener(): void;
1083
- handleCloseButtonClick(): void;
1084
- onUploadError(event: any): void;
1085
- static ɵfac: i0.ɵɵFactoryDeclaration<SupportDetailsComponent, never>;
1086
- static ɵcmp: i0.ɵɵComponentDeclaration<SupportDetailsComponent, "pw-support-details", never, {}, {}, never, never, false, never>;
1087
- }
1088
-
1089
- declare class UserModuleModule {
1090
- static ɵfac: i0.ɵɵFactoryDeclaration<UserModuleModule, never>;
1091
- static ɵmod: i0.ɵɵNgModuleDeclaration<UserModuleModule, [typeof AccountComponent, typeof AccountDetailsComponent, typeof AddSubscriptionComponent, typeof SavedCardDetailsComponent, typeof SubscriptionCredentialComponent, typeof HumanizeCredentialNamePipe, typeof CredentialAvatarHuePipe, typeof SubscriptionNameByIdPipe, typeof ClearMaskedOnFocusDirective, typeof UpdatePaymentDetailsComponent, typeof UpgradeSubscriptionComponent, typeof UserSubscriptionDetailsComponent, typeof UserSubscriptionListComponent, typeof UserInvoiceComponent, typeof CommunicationTabComponent, typeof OthersTabComponent, typeof SecurityTabComponent, typeof SettingsComponent, typeof SupportComponent, typeof EditPortfoliosComponent, typeof EditProjectModalComponent, typeof EditQualificationsModalComponent, typeof EditRecommendationModalComponent, typeof EditSkillsModalComponent, typeof EditSocialLinksComponent, typeof EditUserProfileModalComponent, typeof UserAboutComponent, typeof PortfoliosComponent, typeof UserProfilePageComponent, typeof UserProjectsComponent, typeof SupportDetailsComponent], [typeof i30.InputTextModule, typeof i31.AppLoaderModule, typeof i32.DirectivesModule, typeof i33.CommonModule, typeof i34.RouterModule, typeof _angular_forms.ReactiveFormsModule, typeof i36.CoreTranslocoModule, typeof i37.NgxGpAutocompleteModule, typeof i38.SharedComponentsModule, typeof i39.PipesModule, typeof i40.UiSwitchModule, typeof i41.NgxCaptchaModule, typeof _angular_forms.FormsModule, typeof i42.DatePickerModule, typeof i43.MultiSelectModule, typeof i44.ProgressSpinnerModule, typeof i45.AccordionModule, typeof i46.FileUploadModule, typeof i47.SelectModule, typeof i48.RatingModule, typeof i49.SelectButtonModule, typeof i50.TooltipModule, typeof i51.NgbModalModule, typeof i51.NgbDatepickerModule], [typeof AccountComponent, typeof AccountDetailsComponent, typeof AddSubscriptionComponent, typeof SavedCardDetailsComponent, typeof SubscriptionCredentialComponent, typeof HumanizeCredentialNamePipe, typeof CredentialAvatarHuePipe, typeof SubscriptionNameByIdPipe, typeof ClearMaskedOnFocusDirective, typeof UpdatePaymentDetailsComponent, typeof UpgradeSubscriptionComponent, typeof UserSubscriptionDetailsComponent, typeof UserSubscriptionListComponent, typeof UserInvoiceComponent, typeof CommunicationTabComponent, typeof OthersTabComponent, typeof SecurityTabComponent, typeof SettingsComponent, typeof SupportComponent, typeof EditPortfoliosComponent, typeof EditProjectModalComponent, typeof EditQualificationsModalComponent, typeof EditRecommendationModalComponent, typeof EditSkillsModalComponent, typeof EditSocialLinksComponent, typeof EditUserProfileModalComponent, typeof UserAboutComponent, typeof PortfoliosComponent, typeof UserProfilePageComponent, typeof UserProjectsComponent, typeof SupportDetailsComponent]>;
1092
- static ɵinj: i0.ɵɵInjectorDeclaration<UserModuleModule>;
1093
- }
1094
-
1095
- export { AccountComponent, AccountDetailsComponent, AddSubscriptionComponent, ClearMaskedOnFocusDirective, CommunicationTabComponent, CredentialAvatarHuePipe, EditPortfoliosComponent, EditProjectModalComponent, EditQualificationsModalComponent, EditRecommendationModalComponent, EditSkillsModalComponent, EditSocialLinksComponent, EditUserProfileModalComponent, HumanizeCredentialNamePipe, OthersTabComponent, PortfoliosComponent, SavedCardDetailsComponent, SecurityTabComponent, SettingsComponent, SubscriptionCredentialComponent, SubscriptionNameByIdPipe, SupportComponent, SupportDetailsComponent, UpdatePaymentDetailsComponent, UpgradeSubscriptionComponent, UserAboutComponent, UserInvoiceComponent, UserModuleModule, UserProfilePageComponent, UserProjectsComponent, UserSubscriptionDetailsComponent, UserSubscriptionListComponent };
1085
+ }, {
1086
+ "saveEvent": "saveEvent";
1087
+ }, never, never, false, never>;
1088
+ }
1089
+ declare namespace edit_social_links_component_d_exports {
1090
+ export { EditSocialLinksComponent };
1091
+ }
1092
+ export declare class EditSocialLinksComponent extends AppBaseComponent implements OnInit {
1093
+ private readonly modalService;
1094
+ private readonly fb;
1095
+ private readonly profileService;
1096
+ private readonly cdr;
1097
+ content: TemplateRef<ModalContext>;
1098
+ links: Record<string, string>;
1099
+ userId: number;
1100
+ saveEvent: EventEmitter<void>;
1101
+ form: UntypedFormGroup;
1102
+ buttonBusy: boolean;
1103
+ readonly socialNetworks: ReadonlyArray<{
1104
+ key: string;
1105
+ labelKey: string;
1106
+ icon: string;
1107
+ placeholder: string;
1108
+ }>;
1109
+ constructor(injector: Injector, modalService: NgbModal, fb: UntypedFormBuilder, profileService: ProfileService, cdr: ChangeDetectorRef);
1110
+ /** Tenant company name (domain-metadata driven), falling back to PosiWise. */
1111
+ get companyName(): string;
1112
+ private urlValidator;
1113
+ ngOnInit(): void;
1114
+ onOpen(links: any): void;
1115
+ onSaveDetail(): void;
1116
+ static ɵfac: i0.ɵɵFactoryDeclaration<EditSocialLinksComponent, never>;
1117
+ static ɵcmp: i0.ɵɵComponentDeclaration<EditSocialLinksComponent, "pw-edit-social-links", never, {
1118
+ "links": {
1119
+ "alias": "links";
1120
+ "required": false;
1121
+ };
1122
+ "userId": {
1123
+ "alias": "userId";
1124
+ "required": false;
1125
+ };
1126
+ }, {
1127
+ "saveEvent": "saveEvent";
1128
+ }, never, never, false, never>;
1129
+ }
1130
+ declare namespace edit_user_profile_modal_component_d_exports {
1131
+ export { EditUserProfileModalComponent };
1132
+ }
1133
+ export declare class EditUserProfileModalComponent extends AppBaseComponent implements OnInit {
1134
+ modalService: NgbModal;
1135
+ private readonly fb;
1136
+ private readonly profileService;
1137
+ private readonly geoService;
1138
+ private readonly cdr;
1139
+ content: TemplateRef<ModalContext>;
1140
+ slug: string;
1141
+ user: EditUser;
1142
+ saveEvent: EventEmitter<UserProfile>;
1143
+ placesRef: NgxGpAutocompleteDirective;
1144
+ form: UntypedFormGroup;
1145
+ countries$: Observable<Country[]>;
1146
+ states: Country[];
1147
+ buttonBusy: boolean;
1148
+ constructor(modalService: NgbModal, fb: UntypedFormBuilder, profileService: ProfileService, geoService: GeoService, injector: Injector, cdr: ChangeDetectorRef);
1149
+ ngOnInit(): void;
1150
+ getValues(): void;
1151
+ handleAddressChange(_event: any): void;
1152
+ onOpen(): void;
1153
+ getRegion(countryId: any): void;
1154
+ onSaveDetail(): void;
1155
+ save(): void;
1156
+ static ɵfac: i0.ɵɵFactoryDeclaration<EditUserProfileModalComponent, never>;
1157
+ static ɵcmp: i0.ɵɵComponentDeclaration<EditUserProfileModalComponent, "pw-edit-user-profile-modal", never, {
1158
+ "slug": {
1159
+ "alias": "slug";
1160
+ "required": false;
1161
+ };
1162
+ "user": {
1163
+ "alias": "user";
1164
+ "required": false;
1165
+ };
1166
+ }, {
1167
+ "saveEvent": "saveEvent";
1168
+ }, never, never, false, never>;
1169
+ }
1170
+ declare namespace user_about_component_d_exports {
1171
+ export { UserAboutComponent };
1172
+ }
1173
+ export declare class UserAboutComponent extends AppBaseComponent implements OnInit, OnDestroy {
1174
+ private readonly profileService;
1175
+ private readonly qualificationService;
1176
+ private readonly tagService;
1177
+ private readonly cdr;
1178
+ private readonly confirmDialog;
1179
+ user: User;
1180
+ isEdit: boolean;
1181
+ saveEvent: EventEmitter<boolean>;
1182
+ modal: EditUserProfileModalComponent;
1183
+ qualificationModal: EditQualificationsModalComponent;
1184
+ skillsModal: EditSkillsModalComponent;
1185
+ socialModal: EditSocialLinksComponent;
1186
+ private readonly navigationSubscription;
1187
+ allSkills: any[];
1188
+ searchSkills: any[];
1189
+ selectedSkills: Skill[];
1190
+ objectKeys: {
1191
+ (o: object): string[];
1192
+ (o: {}): string[];
1193
+ };
1194
+ user_profile: AboutUserProfile;
1195
+ qualifications: Qualification[];
1196
+ userLinks: Record<string, string>;
1197
+ noUserLinks: boolean;
1198
+ loading: boolean;
1199
+ constructor(profileService: ProfileService, qualificationService: QualificationService, tagService: TagService, injector: Injector, cdr: ChangeDetectorRef, confirmDialog: ConfirmDialogService);
1200
+ ngOnInit(): void;
1201
+ getUserDetails(): void;
1202
+ /**
1203
+ * Populate all the skills for the dropdown
1204
+ */
1205
+ private getSkills;
1206
+ onProfileOpen(): void;
1207
+ openSkills(): void;
1208
+ onProfileSaved(_event: any): void;
1209
+ onOpenSocial(): void;
1210
+ editQualification(item: any): void;
1211
+ deleteQualification(item: any): void;
1212
+ onSaveUserLinks(): void;
1213
+ trackByQualification(_index: number, item: {
1214
+ id: number;
1215
+ }): number;
1216
+ ngOnDestroy(): void;
1217
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserAboutComponent, never>;
1218
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserAboutComponent, "pw-user-about", never, {
1219
+ "user": {
1220
+ "alias": "user";
1221
+ "required": false;
1222
+ };
1223
+ "isEdit": {
1224
+ "alias": "isEdit";
1225
+ "required": false;
1226
+ };
1227
+ }, {
1228
+ "saveEvent": "saveEvent";
1229
+ }, never, never, false, never>;
1230
+ }
1231
+ declare namespace user_portfolios_component_d_exports {
1232
+ export { PortfoliosComponent };
1233
+ }
1234
+ export declare class PortfoliosComponent implements OnInit {
1235
+ private readonly service;
1236
+ private readonly modalService;
1237
+ private readonly cdr;
1238
+ user: User;
1239
+ isEdit: boolean;
1240
+ projectPictures: any[];
1241
+ selectedPicURL: string;
1242
+ isLoaded: boolean;
1243
+ constructor(service: ProfileService, modalService: NgbModal, cdr: ChangeDetectorRef);
1244
+ ngOnInit(): void;
1245
+ private getProjectPictures;
1246
+ deletePicture(id: any): void;
1247
+ trackByImage(_index: number, item: {
1248
+ id: number;
1249
+ }): number;
1250
+ showFullImage(picture: any, content: any, evt: any): void;
1251
+ static ɵfac: i0.ɵɵFactoryDeclaration<PortfoliosComponent, never>;
1252
+ static ɵcmp: i0.ɵɵComponentDeclaration<PortfoliosComponent, "pw-portfolios", never, {
1253
+ "user": {
1254
+ "alias": "user";
1255
+ "required": false;
1256
+ };
1257
+ "isEdit": {
1258
+ "alias": "isEdit";
1259
+ "required": false;
1260
+ };
1261
+ }, {}, never, never, false, never>;
1262
+ }
1263
+ declare namespace user_profile_page_component_d_exports {
1264
+ export { UserProfilePageComponent };
1265
+ }
1266
+ export declare class UserProfilePageComponent extends AppBaseComponent implements OnInit, OnDestroy {
1267
+ private readonly profileService;
1268
+ private readonly modalService;
1269
+ private readonly scriptLoader;
1270
+ private readonly cdr;
1271
+ private loggedInUserDetails;
1272
+ user: User;
1273
+ slug: string;
1274
+ objectKeys: {
1275
+ (o: object): string[];
1276
+ (o: {}): string[];
1277
+ };
1278
+ image: string;
1279
+ isFollowing: boolean;
1280
+ isLoaded: boolean;
1281
+ userProfile: UserProfile;
1282
+ items: MenuItem[];
1283
+ activeItem: MenuItem;
1284
+ /** Current tab value for p-tabs */
1285
+ activeTabValue: string;
1286
+ onTabChange(value: string): void;
1287
+ constructor(injector: Injector, profileService: ProfileService, modalService: NgbModal, scriptLoader: ScriptLoaderService, cdr: ChangeDetectorRef);
1288
+ get allowEdit(): boolean;
1289
+ ngOnInit(): void;
1290
+ handleImageError(event: Event, fallbackPath: any): void;
1291
+ private dataURLtoBlob;
1292
+ openModal(content: any): void;
1293
+ onImageSelection(event: any): void;
1294
+ getUserBySlug(): void;
1295
+ onClose(): void;
1296
+ private getCurrentUserDetails;
1297
+ sendMessageSlug(): void;
1298
+ followUser(): void;
1299
+ private waitForJQuery;
1300
+ private loadJQueryForUserProfile;
1301
+ ngOnDestroy(): void;
1302
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserProfilePageComponent, never>;
1303
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserProfilePageComponent, "pw-user-profile-page", never, {}, {}, never, never, false, never>;
1304
+ }
1305
+ declare namespace user_projects_component_d_exports {
1306
+ export { UserProjectsComponent };
1307
+ }
1308
+ export declare class UserProjectsComponent extends AppBaseComponent implements OnInit {
1309
+ private readonly service;
1310
+ private readonly cdr;
1311
+ private readonly confirmDialog;
1312
+ user: User;
1313
+ isEdit: boolean;
1314
+ slug: string;
1315
+ projectModal: EditProjectModalComponent;
1316
+ skillModal: EditSkillsModalComponent;
1317
+ recommendationModal: EditRecommendationModalComponent;
1318
+ portfolios: EditPortfoliosComponent;
1319
+ projects: Project[];
1320
+ submitted: boolean;
1321
+ isLoaded: boolean;
1322
+ constructor(service: ProfileService, injector: Injector, cdr: ChangeDetectorRef, confirmDialog: ConfirmDialogService);
1323
+ ngOnInit(): void;
1324
+ onEditProject(item: any): void;
1325
+ editRecommendation(item: any): void;
1326
+ openSkills(project: any): void;
1327
+ getProjects(): void;
1328
+ onSkillsSave(): void;
1329
+ onSaveProject(_event: any): void;
1330
+ openPortfolios(id: number): void;
1331
+ onDeleteProject(project: any): void;
1332
+ trackByProject(_index: number, item: Project): number;
1333
+ deletePicture(project: any): void;
1334
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserProjectsComponent, never>;
1335
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserProjectsComponent, "pw-user-projects", never, {
1336
+ "user": {
1337
+ "alias": "user";
1338
+ "required": false;
1339
+ };
1340
+ "isEdit": {
1341
+ "alias": "isEdit";
1342
+ "required": false;
1343
+ };
1344
+ "slug": {
1345
+ "alias": "slug";
1346
+ "required": false;
1347
+ };
1348
+ }, {}, never, never, false, never>;
1349
+ }
1350
+ declare namespace support_details_component_d_exports {
1351
+ export { SupportDetailsComponent };
1352
+ }
1353
+ export declare class SupportDetailsComponent extends AppBaseComponent implements AfterViewInit, OnInit {
1354
+ private readonly commonService;
1355
+ private readonly authService;
1356
+ private readonly renderer;
1357
+ private readonly el;
1358
+ private readonly cdr;
1359
+ form: UntypedFormGroup;
1360
+ uploadedFiles: any[];
1361
+ invalidFile: boolean;
1362
+ isSubmitClicked: boolean;
1363
+ siteKey: string;
1364
+ recaptcha: any;
1365
+ isLoading: boolean;
1366
+ filesUploaded: boolean;
1367
+ subscriptionId: any;
1368
+ constructor(injector: Injector, commonService: CommonService, authService: AuthService, renderer: Renderer2, el: ElementRef, cdr: ChangeDetectorRef);
1369
+ ngOnInit(): void;
1370
+ ngAfterViewInit(): void;
1371
+ onSave(): void;
1372
+ handleSuccess(token: string): void;
1373
+ onSelect(event?: any): void;
1374
+ onRemove(event: any): void;
1375
+ attachCloseButtonListener(): void;
1376
+ handleCloseButtonClick(): void;
1377
+ onUploadError(event: any): void;
1378
+ static ɵfac: i0.ɵɵFactoryDeclaration<SupportDetailsComponent, never>;
1379
+ static ɵcmp: i0.ɵɵComponentDeclaration<SupportDetailsComponent, "pw-support-details", never, {}, {}, never, never, false, never>;
1380
+ }
1381
+ export declare class UserModuleModule {
1382
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserModuleModule, never>;
1383
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UserModuleModule, [typeof AccountComponent, typeof AccountDetailsComponent, typeof AddSubscriptionComponent, typeof SavedCardDetailsComponent, typeof SubscriptionCredentialComponent, typeof HumanizeCredentialNamePipe, typeof CredentialAvatarHuePipe, typeof SubscriptionNameByIdPipe, typeof ClearMaskedOnFocusDirective, typeof UpdatePaymentDetailsComponent, typeof SecondaryPaymentMethodComponent, typeof UpgradeSubscriptionComponent, typeof UserSubscriptionDetailsComponent, typeof UserSubscriptionListComponent, typeof UserInvoiceComponent, typeof CommunicationTabComponent, typeof OthersTabComponent, typeof SecurityTabComponent, typeof SettingsComponent, typeof SupportComponent, typeof EditPortfoliosComponent, typeof EditProjectModalComponent, typeof EditQualificationsModalComponent, typeof EditRecommendationModalComponent, typeof EditSkillsModalComponent, typeof EditSocialLinksComponent, typeof EditUserProfileModalComponent, typeof UserAboutComponent, typeof PortfoliosComponent, typeof UserProfilePageComponent, typeof UserProjectsComponent, typeof SupportDetailsComponent], [typeof i31.InputTextModule, typeof i32.AppLoaderModule, typeof i33.DirectivesModule, typeof i34.CommonModule, typeof i35.RouterModule, typeof i36.ReactiveFormsModule, typeof i37.CoreTranslocoModule, typeof i38.NgxGpAutocompleteModule, typeof i39.SharedComponentsModule, typeof i40.PipesModule, typeof i41.UiSwitchModule, typeof i42.NgxCaptchaModule, typeof i36.FormsModule, typeof i43.DatePickerModule, typeof i44.MultiSelectModule, typeof i45.ProgressSpinnerModule, typeof i46.AccordionModule, typeof i47.FileUploadModule, typeof i48.SelectModule, typeof i49.RatingModule, typeof i50.SelectButtonModule, typeof i51.TooltipModule, typeof i52.NgbModalModule, typeof i52.NgbDatepickerModule], [typeof AccountComponent, typeof AccountDetailsComponent, typeof AddSubscriptionComponent, typeof SavedCardDetailsComponent, typeof SubscriptionCredentialComponent, typeof HumanizeCredentialNamePipe, typeof CredentialAvatarHuePipe, typeof SubscriptionNameByIdPipe, typeof ClearMaskedOnFocusDirective, typeof UpdatePaymentDetailsComponent, typeof UpgradeSubscriptionComponent, typeof UserSubscriptionDetailsComponent, typeof UserSubscriptionListComponent, typeof UserInvoiceComponent, typeof CommunicationTabComponent, typeof OthersTabComponent, typeof SecurityTabComponent, typeof SettingsComponent, typeof SupportComponent, typeof EditPortfoliosComponent, typeof EditProjectModalComponent, typeof EditQualificationsModalComponent, typeof EditRecommendationModalComponent, typeof EditSkillsModalComponent, typeof EditSocialLinksComponent, typeof EditUserProfileModalComponent, typeof UserAboutComponent, typeof PortfoliosComponent, typeof UserProfilePageComponent, typeof UserProjectsComponent, typeof SupportDetailsComponent]>;
1384
+ static ɵinj: i0.ɵɵInjectorDeclaration<UserModuleModule>;
1385
+ }