@posiwise/user-module 0.0.187 → 0.0.189
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -32,6 +32,7 @@ import { LazyLoadEvent, MenuItem } from "primeng/api";
|
|
|
32
32
|
import { AppBaseComponent } from "@posiwise/app-base-component";
|
|
33
33
|
import { Country, PRODUCT_CATEGORY, Product, Project, Subscription, TAG_ENTITY, TAG_TYPE, User } from "@posiwise/common-utilities";
|
|
34
34
|
import { Observable, Subscription as Subscription$1 } from "rxjs";
|
|
35
|
+
import { Qualification, SavedStripeCard, SecondaryCardSummary, SecondaryProvider, Skill, StripeCardSummary, UserNewsletter, UserProfileDetails } from "@posiwise/common-services";
|
|
35
36
|
declare namespace account_component_d_exports {
|
|
36
37
|
export { AccountComponent };
|
|
37
38
|
}
|
|
@@ -293,10 +294,6 @@ interface UserProfile {
|
|
|
293
294
|
slug: string;
|
|
294
295
|
headline: string;
|
|
295
296
|
}
|
|
296
|
-
interface UserRelationship {
|
|
297
|
-
followed_id: number;
|
|
298
|
-
follower_id: number;
|
|
299
|
-
}
|
|
300
297
|
interface AboutUser {
|
|
301
298
|
id: number;
|
|
302
299
|
slug: string;
|
|
@@ -312,23 +309,6 @@ interface AboutUserProfile {
|
|
|
312
309
|
gender: string;
|
|
313
310
|
phone_number: string;
|
|
314
311
|
}
|
|
315
|
-
interface Qualification {
|
|
316
|
-
id: number;
|
|
317
|
-
degree: string;
|
|
318
|
-
course: string;
|
|
319
|
-
school: string;
|
|
320
|
-
started_on: string;
|
|
321
|
-
ended_on: string;
|
|
322
|
-
}
|
|
323
|
-
interface UserLink {
|
|
324
|
-
[key: string]: string;
|
|
325
|
-
}
|
|
326
|
-
interface Skill {
|
|
327
|
-
category_name: string;
|
|
328
|
-
tags: {
|
|
329
|
-
name: string;
|
|
330
|
-
}[];
|
|
331
|
-
}
|
|
332
312
|
interface ModalContext {
|
|
333
313
|
modal: {
|
|
334
314
|
dismiss: () => void;
|
|
@@ -451,33 +431,6 @@ export declare class ClearMaskedOnFocusDirective {
|
|
|
451
431
|
static ɵfac: i0.ɵɵFactoryDeclaration<ClearMaskedOnFocusDirective, never>;
|
|
452
432
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ClearMaskedOnFocusDirective, "input[pwClearMaskedOnFocus]", never, {}, {}, never, never, true, never>;
|
|
453
433
|
}
|
|
454
|
-
interface BraintreeCardSummary {
|
|
455
|
-
provider: 'braintree';
|
|
456
|
-
token: string;
|
|
457
|
-
card_number: string;
|
|
458
|
-
exp_month: number;
|
|
459
|
-
exp_year: number;
|
|
460
|
-
}
|
|
461
|
-
interface AirwallexCardSummary {
|
|
462
|
-
provider: 'airwallex';
|
|
463
|
-
brand: string;
|
|
464
|
-
card_number: string;
|
|
465
|
-
exp_month: number;
|
|
466
|
-
exp_year: number;
|
|
467
|
-
}
|
|
468
|
-
type SecondaryCardSummary = BraintreeCardSummary | AirwallexCardSummary;
|
|
469
|
-
type SecondaryProvider = 'braintree' | 'airwallex';
|
|
470
|
-
interface PaymentMethods {
|
|
471
|
-
primary: CardDetails | null;
|
|
472
|
-
secondary: SecondaryCardSummary | null;
|
|
473
|
-
secondary_provider: SecondaryProvider | null;
|
|
474
|
-
}
|
|
475
|
-
interface StripeJsApi {
|
|
476
|
-
setPublishableKey(key: string): void;
|
|
477
|
-
card: {
|
|
478
|
-
createToken(card: CardDetails, callback: (status: number, response: StripeCardResponse) => void): void;
|
|
479
|
-
};
|
|
480
|
-
}
|
|
481
434
|
declare namespace update_payment_details_component_d_exports {
|
|
482
435
|
export { UpdatePaymentDetailsComponent };
|
|
483
436
|
}
|
|
@@ -492,7 +445,7 @@ export declare class UpdatePaymentDetailsComponent extends AppBaseComponent impl
|
|
|
492
445
|
months: any[];
|
|
493
446
|
busy: boolean;
|
|
494
447
|
isChangePayment: boolean;
|
|
495
|
-
cardDetails:
|
|
448
|
+
cardDetails: StripeCardSummary | null;
|
|
496
449
|
secondaryCard: SecondaryCardSummary | null;
|
|
497
450
|
secondaryProvider: SecondaryProvider;
|
|
498
451
|
loading: boolean;
|
|
@@ -583,7 +536,7 @@ export declare class UpgradeSubscriptionComponent extends AppBaseComponent imple
|
|
|
583
536
|
product: Product;
|
|
584
537
|
subscription: Subscription;
|
|
585
538
|
user: User;
|
|
586
|
-
cardDetails:
|
|
539
|
+
cardDetails: SavedStripeCard | null;
|
|
587
540
|
units: number;
|
|
588
541
|
subscriptionId: number;
|
|
589
542
|
productId: number;
|
|
@@ -846,7 +799,7 @@ export declare class CommunicationTabComponent extends AppBaseComponent implemen
|
|
|
846
799
|
private readonly store;
|
|
847
800
|
private readonly cdr;
|
|
848
801
|
subscriptions: any[];
|
|
849
|
-
userSubscription:
|
|
802
|
+
userSubscription: UserNewsletter[];
|
|
850
803
|
isLoaded: boolean;
|
|
851
804
|
user: User;
|
|
852
805
|
ngOnInit(): void;
|
|
@@ -1230,7 +1183,7 @@ export declare class UserAboutComponent extends AppBaseComponent implements OnIn
|
|
|
1230
1183
|
(o: object): string[];
|
|
1231
1184
|
(o: {}): string[];
|
|
1232
1185
|
};
|
|
1233
|
-
user_profile:
|
|
1186
|
+
user_profile: UserProfileDetails | null;
|
|
1234
1187
|
qualifications: Qualification[];
|
|
1235
1188
|
userLinks: Record<string, string>;
|
|
1236
1189
|
noUserLinks: boolean;
|
|
@@ -1315,7 +1268,7 @@ export declare class UserProfilePageComponent extends AppBaseComponent implement
|
|
|
1315
1268
|
image: string;
|
|
1316
1269
|
isFollowing: boolean;
|
|
1317
1270
|
isLoaded: boolean;
|
|
1318
|
-
userProfile:
|
|
1271
|
+
userProfile: UserProfileDetails | null;
|
|
1319
1272
|
items: MenuItem[];
|
|
1320
1273
|
activeItem: MenuItem;
|
|
1321
1274
|
/** Current tab value for p-tabs */
|