@posiwise/admin-module 0.0.149 → 0.0.150
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/index.mjs +2 -1
- package/esm2022/lib/admin-module.routing.mjs +50 -5
- package/esm2022/lib/admin.module.mjs +16 -1
- package/esm2022/lib/components/TOS/terms-of-service/terms-of-service.component.mjs +3 -3
- package/esm2022/lib/components/config/global-config-details/global-config-details.component.mjs +11 -10
- package/esm2022/lib/components/contact-us/contact-us-list/contact-us-list.component.mjs +12 -11
- package/esm2022/lib/components/credentials/credentials/credentials.component.mjs +3 -3
- package/esm2022/lib/components/credentials/credentials-tab/credentials-tab.component.mjs +2 -2
- package/esm2022/lib/components/credentials/subscription-credentials-details/subscription-credentials-details.component.mjs +21 -9
- package/esm2022/lib/components/domain-config/domain-config-details/domain-config-build/domain-config-build.component.mjs +15 -13
- package/esm2022/lib/components/domain-config/domain-config-details/domain-config-core/domain-config-core.component.mjs +3 -3
- package/esm2022/lib/components/domain-config/domain-config-details/domain-config-details.component.mjs +3 -3
- package/esm2022/lib/components/domain-config/domain-config-details/domain-config-interface/domain-config-interface.component.mjs +3 -3
- package/esm2022/lib/components/domain-config/domain-config-details/domain-config-organization/domain-config-organization.component.mjs +3 -3
- package/esm2022/lib/components/domain-config/domain-config-details/domain-config-security/domain-config-security.component.mjs +3 -3
- package/esm2022/lib/components/domain-config/domain-config-list/domain-config-list.component.mjs +3 -3
- package/esm2022/lib/components/domain-config/domain-config-tabs/domain-config-tabs.component.mjs +2 -2
- package/esm2022/lib/components/faqs/add-faq/add-faq.component.mjs +3 -3
- package/esm2022/lib/components/incidents/incidents-list/incidents-list.component.mjs +3 -3
- package/esm2022/lib/components/login-notifications/login-notification-details/login-notification-details.component.mjs +14 -13
- package/esm2022/lib/components/login-notifications/login-notifications-list/login-notifications-list.component.mjs +3 -3
- package/esm2022/lib/components/mailer/mailer-list/mailer-list.component.mjs +3 -3
- package/esm2022/lib/components/newsletters/newsletter-details/newsletter-details.component.mjs +3 -3
- package/esm2022/lib/components/newsletters/newsletter-item-details/newsletter-item-details.component.mjs +3 -3
- package/esm2022/lib/components/newsletters/newsletters-items/newsletters-items.component.mjs +5 -3
- package/esm2022/lib/components/newsletters/newsletters-list/newsletters-list.component.mjs +3 -3
- package/esm2022/lib/components/newsletters/newsletters-tabs/newsletters-tabs.component.mjs +3 -3
- package/esm2022/lib/components/permissions/permissions-list/permissions-list.component.mjs +3 -3
- package/esm2022/lib/components/products/product-details/product-details.component.mjs +3 -3
- package/esm2022/lib/components/products/products-list/products-list.component.mjs +3 -3
- package/esm2022/lib/components/resources/resources-admin-details/resources-admin-details.component.mjs +231 -0
- package/esm2022/lib/components/resources/resources-admin-tabs/resources-admin-tabs.component.mjs +33 -0
- package/esm2022/lib/components/resources/resources-admin-tabs/resources-index/resources-index.component.mjs +108 -0
- package/esm2022/lib/components/resources/resources-admin-tabs/resources-insight/resources-insight.component.mjs +54 -0
- package/esm2022/lib/components/resources/resources-lists-insight/resources-lists-insight.component.mjs +61 -0
- package/esm2022/lib/components/subscriptions/subscription-details/subscription-details.component.mjs +16 -15
- package/esm2022/lib/components/subscriptions/subscriptions-insight/subscription-insight-average-price/subscription-insight-average-price.component.mjs +1 -1
- package/esm2022/lib/components/subscriptions/subscriptions-insight/subscription-insight-average-user/subscription-insight-average-user.component.mjs +1 -1
- package/esm2022/lib/components/subscriptions/subscriptions-insight/subscription-insight-nps/subscription-insight-nps.component.mjs +1 -1
- package/esm2022/lib/components/subscriptions/subscriptions-insight/subscription-insight-product-session/subscription-insight-product-session.component.mjs +1 -1
- package/esm2022/lib/components/subscriptions/subscriptions-list/invite-users/invite-users.component.mjs +8 -7
- package/esm2022/lib/components/subscriptions/subscriptions-list/subscriptions-list.component.mjs +16 -15
- package/esm2022/lib/components/tips/tips-list/tips-list.component.mjs +3 -3
- package/esm2022/lib/components/tracking/ahoy-events/ahoy-events.component.mjs +16 -15
- package/esm2022/lib/components/tracking/ahoy-messages/ahoy-messages.component.mjs +15 -14
- package/esm2022/lib/components/tracking/ahoy-visits/ahoy-visits.component.mjs +15 -14
- package/esm2022/lib/components/tracking/events/events.component.mjs +15 -14
- package/esm2022/lib/components/tracking/versions/versions.component.mjs +16 -15
- package/esm2022/lib/components/users/users-list/users-list.component.mjs +3 -3
- package/esm2022/lib/shared/interface/resource.interface.mjs +2 -0
- package/esm2022/lib/shared/routers/routers.mjs +5 -2
- package/fesm2022/posiwise-admin-module.mjs +679 -202
- package/fesm2022/posiwise-admin-module.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/admin.module.d.ts +73 -68
- package/lib/components/TOS/terms-of-service/terms-of-service.component.d.ts +3 -0
- package/lib/components/config/global-config-list/global-config-list.component.d.ts +3 -0
- package/lib/components/credentials/credentials/credentials.component.d.ts +3 -0
- package/lib/components/credentials/subscription-credentials/subscription-credentials.component.d.ts +3 -0
- package/lib/components/credentials/subscription-credentials-details/subscription-credentials-details.component.d.ts +2 -0
- package/lib/components/domain-config/domain-config-details/domain-config-build/domain-config-build.component.d.ts +3 -0
- package/lib/components/domain-config/domain-config-details/domain-config-core/domain-config-core.component.d.ts +3 -0
- package/lib/components/domain-config/domain-config-details/domain-config-details.component.d.ts +3 -0
- package/lib/components/domain-config/domain-config-details/domain-config-integrations/domain-config-integrations.component.d.ts +3 -0
- package/lib/components/domain-config/domain-config-details/domain-config-interface/domain-config-interface.component.d.ts +3 -0
- package/lib/components/domain-config/domain-config-details/domain-config-organization/domain-config-organization.component.d.ts +3 -0
- package/lib/components/domain-config/domain-config-details/domain-config-security/domain-config-security.component.d.ts +3 -0
- package/lib/components/domain-config/domain-config-details/domain-config-social/domain-config-social.component.d.ts +3 -0
- package/lib/components/domain-config/domain-config-list/domain-config-list.component.d.ts +3 -0
- package/lib/components/faqs/add-faq/add-faq.component.d.ts +3 -0
- package/lib/components/faqs/edit-faq/edit-faq.component.d.ts +3 -0
- package/lib/components/faqs/faqs-list/faqs-list.component.d.ts +3 -0
- package/lib/components/feedback-questions/feedback-questions-details/feedback-questions-details.component.d.ts +3 -0
- package/lib/components/feedback-questions/feedback-questions-list/feedback-questions-list.component.d.ts +3 -0
- package/lib/components/incidents/add-edit-incident/add-edit-incident.component.d.ts +3 -0
- package/lib/components/incidents/incidents-list/incidents-list.component.d.ts +3 -0
- package/lib/components/login-notifications/login-notification-details/login-notification-details.component.d.ts +3 -0
- package/lib/components/login-notifications/login-notifications-list/login-notifications-list.component.d.ts +3 -0
- package/lib/components/mailer/mailer-details/mailer-details.component.d.ts +3 -0
- package/lib/components/mailer/mailer-list/mailer-list.component.d.ts +3 -0
- package/lib/components/newsletters/newsletter-details/newsletter-details.component.d.ts +3 -0
- package/lib/components/newsletters/newsletter-item-details/newsletter-item-details.component.d.ts +3 -0
- package/lib/components/newsletters/newsletters-items/newsletters-items-view-details/newsletters-items-view-details.component.d.ts +3 -0
- package/lib/components/newsletters/newsletters-items/newsletters-items.component.d.ts +4 -0
- package/lib/components/newsletters/newsletters-list/newsletters-list.component.d.ts +3 -0
- package/lib/components/permissions/permissions-details/permissions-details.component.d.ts +3 -0
- package/lib/components/permissions/permissions-list/permissions-list.component.d.ts +3 -0
- package/lib/components/permissions/roles-list/roles-list.component.d.ts +3 -0
- package/lib/components/products/products-list/products-list.component.d.ts +3 -0
- package/lib/components/resources/resources-admin-details/resources-admin-details.component.d.ts +62 -0
- package/lib/components/resources/resources-admin-tabs/resources-admin-tabs.component.d.ts +10 -0
- package/lib/components/resources/resources-admin-tabs/resources-index/resources-index.component.d.ts +70 -0
- package/lib/components/resources/resources-admin-tabs/resources-insight/resources-insight.component.d.ts +24 -0
- package/lib/components/resources/resources-lists-insight/resources-lists-insight.component.d.ts +22 -0
- package/lib/components/subscriptions/subscription-product-details/subscription-product-details.component.d.ts +3 -0
- package/lib/components/subscriptions/subscription-products/subscription-products.component.d.ts +3 -0
- package/lib/components/subscriptions/subscription-users/subscription-users.component.d.ts +3 -0
- package/lib/components/subscriptions/subscriptions-insight/subscription-insight-average-price/subscription-insight-average-price.component.d.ts +1 -1
- package/lib/components/subscriptions/subscriptions-insight/subscription-insight-average-user/subscription-insight-average-user.component.d.ts +1 -1
- package/lib/components/subscriptions/subscriptions-insight/subscription-insight-nps/subscription-insight-nps.component.d.ts +1 -1
- package/lib/components/subscriptions/subscriptions-insight/subscription-insight-product-session/subscription-insight-product-session.component.d.ts +1 -1
- package/lib/components/subscriptions/subscriptions-list/invite-users/invite-users.component.d.ts +4 -1
- package/lib/components/subscriptions/subscriptions-list/subscriptions-list.component.d.ts +4 -1
- package/lib/components/tips/tips-list/tips-list.component.d.ts +3 -0
- package/lib/components/users/users-list/users-list.component.d.ts +3 -0
- package/lib/shared/interface/resource.interface.d.ts +73 -0
- package/lib/shared/routers/routers.d.ts +3 -0
- package/package.json +1 -1
package/lib/components/resources/resources-admin-details/resources-admin-details.component.d.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { AfterViewInit, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { AdminService } from '@posiwise/admin-module-utils';
|
|
4
|
+
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
5
|
+
import { TagService } from '@posiwise/common-services';
|
|
6
|
+
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class ResourceAdminDetailsComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
9
|
+
private readonly modalService;
|
|
10
|
+
private readonly adminService;
|
|
11
|
+
private readonly tagService;
|
|
12
|
+
form: UntypedFormGroup;
|
|
13
|
+
submitted: boolean;
|
|
14
|
+
id: number;
|
|
15
|
+
slug: string;
|
|
16
|
+
blog: {
|
|
17
|
+
id: string;
|
|
18
|
+
title: string;
|
|
19
|
+
body: string;
|
|
20
|
+
view: string;
|
|
21
|
+
slug: string;
|
|
22
|
+
published_at: string;
|
|
23
|
+
accepted_at: string;
|
|
24
|
+
picture: {
|
|
25
|
+
url: string;
|
|
26
|
+
};
|
|
27
|
+
post_comments: any[];
|
|
28
|
+
};
|
|
29
|
+
file: File;
|
|
30
|
+
image: string;
|
|
31
|
+
allTags: {
|
|
32
|
+
name: string;
|
|
33
|
+
}[];
|
|
34
|
+
tagsSuggestion: any[];
|
|
35
|
+
selectedTags: any[];
|
|
36
|
+
subscriptionId: number;
|
|
37
|
+
isLoading: boolean;
|
|
38
|
+
isBlogAdmin: boolean;
|
|
39
|
+
editorConfig: any;
|
|
40
|
+
constructor(modalService: NgbModal, adminService: AdminService, injector: Injector, tagService: TagService);
|
|
41
|
+
ngAfterViewInit(): void;
|
|
42
|
+
ngOnInit(): void;
|
|
43
|
+
get f(): {
|
|
44
|
+
[key: string]: import("@angular/forms").AbstractControl<any, any>;
|
|
45
|
+
};
|
|
46
|
+
private getBlogItem;
|
|
47
|
+
fileChangeListener($event: any): void;
|
|
48
|
+
openModal(content: any): void;
|
|
49
|
+
onClose(): void;
|
|
50
|
+
handleImageError(event: Event, fallbackPath: any): void;
|
|
51
|
+
onImageSelection(event: any): void;
|
|
52
|
+
dataURLtoBlob(dataUrl: string): Blob;
|
|
53
|
+
onSave(): void;
|
|
54
|
+
onAdd(): void;
|
|
55
|
+
onUpdate(): void;
|
|
56
|
+
private getPostTags;
|
|
57
|
+
search(event: any): void;
|
|
58
|
+
postTags(id: number | string): void;
|
|
59
|
+
ngOnDestroy(): void;
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceAdminDetailsComponent, never>;
|
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResourceAdminDetailsComponent, "pw-resources-details-index", never, {}, {}, never, never, false, never>;
|
|
62
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
3
|
+
import { MenuItem } from 'primeng/api';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ResourcesAdminIndexComponent extends AppBaseComponent {
|
|
6
|
+
constructor(injector: Injector);
|
|
7
|
+
items: MenuItem[];
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourcesAdminIndexComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResourcesAdminIndexComponent, "pw-post-admin-tabs", never, {}, {}, never, never, false, never>;
|
|
10
|
+
}
|
package/lib/components/resources/resources-admin-tabs/resources-index/resources-index.component.d.ts
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { AfterViewChecked, ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { AdminService } from '@posiwise/admin-module-utils';
|
|
3
|
+
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
4
|
+
import { Subscription } from '@posiwise/common-utilities';
|
|
5
|
+
import { LazyLoadEvent } from 'primeng/api';
|
|
6
|
+
import { ResourcePost } from '../../../../shared/interface/resource.interface';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class ResourcesIndexComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
9
|
+
private readonly adminService;
|
|
10
|
+
private readonly cdr;
|
|
11
|
+
private readonly postsTotal;
|
|
12
|
+
private page;
|
|
13
|
+
data: {
|
|
14
|
+
posts: any[];
|
|
15
|
+
object_count: number;
|
|
16
|
+
unfiltered_count: number;
|
|
17
|
+
};
|
|
18
|
+
loading: boolean;
|
|
19
|
+
isLoaded: boolean;
|
|
20
|
+
searchTextItems: string;
|
|
21
|
+
subscriptionId: any;
|
|
22
|
+
subscription: Subscription;
|
|
23
|
+
routers: {
|
|
24
|
+
globalConfigDetails: string;
|
|
25
|
+
adminCredentialsDetails: string;
|
|
26
|
+
subscriptionCredentialDetails: string;
|
|
27
|
+
newsletter: string;
|
|
28
|
+
mailerDetails: string;
|
|
29
|
+
newsletterItemDetails: string;
|
|
30
|
+
newsletterItemView: string;
|
|
31
|
+
newslettersUserList: string;
|
|
32
|
+
newsletterDetails: string;
|
|
33
|
+
permissionsList: string;
|
|
34
|
+
permissionsDetails: string;
|
|
35
|
+
rolesDetails: string;
|
|
36
|
+
productDetails: string;
|
|
37
|
+
productsUserList: string;
|
|
38
|
+
feedbackQuestions: string;
|
|
39
|
+
feedbackQuestionsDetails: string;
|
|
40
|
+
subscriptionDetails: string;
|
|
41
|
+
subscriptionProductDetails: string;
|
|
42
|
+
tipsDetails: string;
|
|
43
|
+
tosAndPrivacyDetails: string;
|
|
44
|
+
tosAndPrivacyView: string;
|
|
45
|
+
usersDetails: string;
|
|
46
|
+
domainConfig: string;
|
|
47
|
+
domainConfigDetails: string;
|
|
48
|
+
loginNotifications: string;
|
|
49
|
+
incidentConfig: string;
|
|
50
|
+
incidentDetails: string;
|
|
51
|
+
faqConfig: string;
|
|
52
|
+
faqDetails: string;
|
|
53
|
+
inviteUsers: string;
|
|
54
|
+
subscriptionList: string;
|
|
55
|
+
createResource: string;
|
|
56
|
+
posts: string;
|
|
57
|
+
resourcesList: string;
|
|
58
|
+
};
|
|
59
|
+
blogPermission: string;
|
|
60
|
+
isBlogAdmin: string;
|
|
61
|
+
constructor(adminService: AdminService, injector: Injector, cdr: ChangeDetectorRef);
|
|
62
|
+
ngOnInit(): void;
|
|
63
|
+
ngAfterViewChecked(): void;
|
|
64
|
+
onLazyLoad(event: LazyLoadEvent): void;
|
|
65
|
+
private getPosts;
|
|
66
|
+
onDeletePost(item: ResourcePost): void;
|
|
67
|
+
ngOnDestroy(): void;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourcesIndexComponent, never>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResourcesIndexComponent, "pw-resources-index", never, {}, {}, never, never, false, never>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { AdminService } from '@posiwise/admin-module-utils';
|
|
3
|
+
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
4
|
+
import { Plotly } from '@posiwise/common-utilities';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ResourcesInsightComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
7
|
+
private readonly blogService;
|
|
8
|
+
graph: Plotly.Figure;
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
subscriptionId: number;
|
|
11
|
+
selectedDateRange: any;
|
|
12
|
+
dateRanges: any;
|
|
13
|
+
constructor(blogService: AdminService, injector: Injector);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
/** Function to get the data for the graph */
|
|
16
|
+
private getChartData;
|
|
17
|
+
onDateRangeSelect(event: {
|
|
18
|
+
startDate: moment.Moment;
|
|
19
|
+
endDate: moment.Moment;
|
|
20
|
+
}): void;
|
|
21
|
+
ngOnDestroy(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourcesInsightComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResourcesInsightComponent, "pw-resources-insight", never, {}, {}, never, never, false, never>;
|
|
24
|
+
}
|
package/lib/components/resources/resources-lists-insight/resources-lists-insight.component.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { AdminService } from '@posiwise/admin-module-utils';
|
|
3
|
+
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
4
|
+
import { Subscription } from '@posiwise/common-utilities';
|
|
5
|
+
import { ResourceInsightResponse } from '../../../shared/interface/resource.interface';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ResourcesListsInsightComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
8
|
+
private readonly adminService;
|
|
9
|
+
data: ResourceInsightResponse;
|
|
10
|
+
searchText: string;
|
|
11
|
+
loading: boolean;
|
|
12
|
+
isLoaded: boolean;
|
|
13
|
+
id: number;
|
|
14
|
+
insightName: string;
|
|
15
|
+
subscription: Subscription;
|
|
16
|
+
constructor(adminService: AdminService, injector: Injector);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
private getPostsInsight;
|
|
19
|
+
ngOnDestroy(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourcesListsInsightComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResourcesListsInsightComponent, "resources-posts-lists-insight", never, {}, {}, never, never, false, never>;
|
|
22
|
+
}
|
|
@@ -48,6 +48,9 @@ export declare class SubscriptionProductDetailsComponent extends AppBaseComponen
|
|
|
48
48
|
faqDetails: string;
|
|
49
49
|
inviteUsers: string;
|
|
50
50
|
subscriptionList: string;
|
|
51
|
+
createResource: string;
|
|
52
|
+
posts: string;
|
|
53
|
+
resourcesList: string;
|
|
51
54
|
};
|
|
52
55
|
isLoading: boolean;
|
|
53
56
|
id: number;
|
package/lib/components/subscriptions/subscription-products/subscription-products.component.d.ts
CHANGED
|
@@ -46,6 +46,9 @@ export declare class SubscriptionProductsComponent extends AppBaseComponent impl
|
|
|
46
46
|
faqDetails: string;
|
|
47
47
|
inviteUsers: string;
|
|
48
48
|
subscriptionList: string;
|
|
49
|
+
createResource: string;
|
|
50
|
+
posts: string;
|
|
51
|
+
resourcesList: string;
|
|
49
52
|
};
|
|
50
53
|
subscriptionProducts: any[];
|
|
51
54
|
currency: any[];
|
|
@@ -57,6 +57,9 @@ export declare class SubscriptionUsersComponent extends AppBaseComponent impleme
|
|
|
57
57
|
faqDetails: string;
|
|
58
58
|
inviteUsers: string;
|
|
59
59
|
subscriptionList: string;
|
|
60
|
+
createResource: string;
|
|
61
|
+
posts: string;
|
|
62
|
+
resourcesList: string;
|
|
60
63
|
};
|
|
61
64
|
totalUnfilteredCount: number;
|
|
62
65
|
subscriptionId: number;
|
|
@@ -2,7 +2,7 @@ import { AfterViewChecked, ChangeDetectorRef, Injector, OnDestroy, OnInit, Templ
|
|
|
2
2
|
import { AdminService } from '@posiwise/admin-module-utils';
|
|
3
3
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
4
4
|
import { Plotly, User } from '@posiwise/common-utilities';
|
|
5
|
-
import { CommentContext } from '
|
|
5
|
+
import { CommentContext } from '../../../../shared/interface/admin-module-shared.interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class SubscriptionInsightAveragePriceComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
8
8
|
private readonly adminService;
|
|
@@ -2,7 +2,7 @@ import { AfterViewChecked, ChangeDetectorRef, Injector, OnDestroy, OnInit, Templ
|
|
|
2
2
|
import { AdminService } from '@posiwise/admin-module-utils';
|
|
3
3
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
4
4
|
import { Plotly, User } from '@posiwise/common-utilities';
|
|
5
|
-
import { CommentContext } from '
|
|
5
|
+
import { CommentContext } from '../../../../shared/interface/admin-module-shared.interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class SubscriptionInsightAverageUserComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
8
8
|
private readonly adminService;
|
|
@@ -3,9 +3,9 @@ import { AdminService } from '@posiwise/admin-module-utils';
|
|
|
3
3
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
4
4
|
import { CommonService } from '@posiwise/common-services';
|
|
5
5
|
import { Plotly, User } from '@posiwise/common-utilities';
|
|
6
|
-
import { CommentContext } from 'libs/admin-module/src/lib/shared/interface/admin-module-shared.interface';
|
|
7
6
|
import { LazyLoadEvent } from 'primeng/api';
|
|
8
7
|
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
8
|
+
import { CommentContext } from '../../../../shared/interface/admin-module-shared.interface';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class SubscriptionInsightNpsComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
11
11
|
private readonly adminService;
|
|
@@ -2,7 +2,7 @@ import { AfterViewChecked, ChangeDetectorRef, Injector, OnDestroy, OnInit, Templ
|
|
|
2
2
|
import { AdminService } from '@posiwise/admin-module-utils';
|
|
3
3
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
4
4
|
import { Plotly, User } from '@posiwise/common-utilities';
|
|
5
|
-
import { CommentContext } from '
|
|
5
|
+
import { CommentContext } from '../../../../shared/interface/admin-module-shared.interface';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class SubscriptionInsightProcuctSessionComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
8
8
|
private readonly adminService;
|
package/lib/components/subscriptions/subscriptions-list/invite-users/invite-users.component.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
|
3
3
|
import { AdminService } from '@posiwise/admin-module-utils';
|
|
4
4
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
5
5
|
import { CommonService, ProductService } from '@posiwise/common-services';
|
|
6
|
-
import { FeatureKey } from 'libs/admin-module/src/lib/shared/interface/newsletter.interface';
|
|
7
6
|
import { LazyLoadEvent } from 'primeng/api';
|
|
8
7
|
import { AutoComplete } from 'primeng/autocomplete';
|
|
9
8
|
import { Observable } from 'rxjs';
|
|
9
|
+
import { FeatureKey } from '../../../../shared/interface/newsletter.interface';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
export declare class InviteUsersComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
|
|
12
12
|
private readonly fb;
|
|
@@ -65,6 +65,9 @@ export declare class InviteUsersComponent extends AppBaseComponent implements On
|
|
|
65
65
|
faqDetails: string;
|
|
66
66
|
inviteUsers: string;
|
|
67
67
|
subscriptionList: string;
|
|
68
|
+
createResource: string;
|
|
69
|
+
posts: string;
|
|
70
|
+
resourcesList: string;
|
|
68
71
|
};
|
|
69
72
|
status: string;
|
|
70
73
|
unitsText: string;
|
|
@@ -65,6 +65,9 @@ export declare class SubscriptionsListComponent extends AppBaseComponent impleme
|
|
|
65
65
|
faqDetails: string;
|
|
66
66
|
inviteUsers: string;
|
|
67
67
|
subscriptionList: string;
|
|
68
|
+
createResource: string;
|
|
69
|
+
posts: string;
|
|
70
|
+
resourcesList: string;
|
|
68
71
|
};
|
|
69
72
|
subscriptionStatus: string[];
|
|
70
73
|
status: string;
|
|
@@ -91,7 +94,7 @@ export declare class SubscriptionsListComponent extends AppBaseComponent impleme
|
|
|
91
94
|
onDelete(item: any): void;
|
|
92
95
|
private getProductsList;
|
|
93
96
|
onSearchOptionChange(event: any): void;
|
|
94
|
-
filterByStatus(
|
|
97
|
+
filterByStatus(value: string): void;
|
|
95
98
|
sortObj(obj: any): {};
|
|
96
99
|
searchProduct(event: any): void;
|
|
97
100
|
onProductChange(event: any): void;
|
|
@@ -39,6 +39,9 @@ export declare class TipsComponent extends AppBaseComponent implements OnInit, O
|
|
|
39
39
|
faqDetails: string;
|
|
40
40
|
inviteUsers: string;
|
|
41
41
|
subscriptionList: string;
|
|
42
|
+
createResource: string;
|
|
43
|
+
posts: string;
|
|
44
|
+
resourcesList: string;
|
|
42
45
|
};
|
|
43
46
|
subscription_id: number;
|
|
44
47
|
constructor(tipService: TipsService, inject: Injector);
|
|
@@ -71,6 +71,9 @@ export declare class UserListComponent extends AppBaseComponent implements OnIni
|
|
|
71
71
|
faqDetails: string;
|
|
72
72
|
inviteUsers: string;
|
|
73
73
|
subscriptionList: string;
|
|
74
|
+
createResource: string;
|
|
75
|
+
posts: string;
|
|
76
|
+
resourcesList: string;
|
|
74
77
|
};
|
|
75
78
|
masterProductId: any;
|
|
76
79
|
totalRecordsUnFiltered: number;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export interface ResourcePost {
|
|
2
|
+
id: number;
|
|
3
|
+
title: string;
|
|
4
|
+
body: string;
|
|
5
|
+
view: number;
|
|
6
|
+
slug: string;
|
|
7
|
+
published_at: string;
|
|
8
|
+
picture: string;
|
|
9
|
+
commented: boolean;
|
|
10
|
+
tweeted: boolean;
|
|
11
|
+
accepted_at: string;
|
|
12
|
+
subscription_id: number;
|
|
13
|
+
tags: Tag[];
|
|
14
|
+
author: Author;
|
|
15
|
+
}
|
|
16
|
+
export interface ResourcePostResponse {
|
|
17
|
+
posts: ResourcePost[];
|
|
18
|
+
object_count: number;
|
|
19
|
+
unfiltered_count: number;
|
|
20
|
+
}
|
|
21
|
+
export interface ResourceInsightResponse {
|
|
22
|
+
post_users: [];
|
|
23
|
+
object_count: number;
|
|
24
|
+
unfiltered_count: number;
|
|
25
|
+
}
|
|
26
|
+
export interface Resource {
|
|
27
|
+
id: number;
|
|
28
|
+
slug: string;
|
|
29
|
+
title: string;
|
|
30
|
+
body: string;
|
|
31
|
+
author: Author;
|
|
32
|
+
entity_comments: ResourceComment[];
|
|
33
|
+
tags: Tag[];
|
|
34
|
+
view: number;
|
|
35
|
+
picture: {
|
|
36
|
+
url: string;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export interface Author {
|
|
40
|
+
slug: string;
|
|
41
|
+
avatar: {
|
|
42
|
+
url: string;
|
|
43
|
+
}[];
|
|
44
|
+
first_name: string;
|
|
45
|
+
last_name: string;
|
|
46
|
+
published_at: string;
|
|
47
|
+
}
|
|
48
|
+
export interface Tag {
|
|
49
|
+
id: number;
|
|
50
|
+
name: string;
|
|
51
|
+
tag_category_id: number;
|
|
52
|
+
}
|
|
53
|
+
export interface RecentPost {
|
|
54
|
+
id: number;
|
|
55
|
+
slug: string;
|
|
56
|
+
title: string;
|
|
57
|
+
picture: {
|
|
58
|
+
url: string;
|
|
59
|
+
};
|
|
60
|
+
view: number;
|
|
61
|
+
tags: Tag[];
|
|
62
|
+
}
|
|
63
|
+
export interface ResourceComment {
|
|
64
|
+
user: {
|
|
65
|
+
avatar: {
|
|
66
|
+
url: string;
|
|
67
|
+
}[];
|
|
68
|
+
first_name: string;
|
|
69
|
+
last_name: string;
|
|
70
|
+
};
|
|
71
|
+
comment: string;
|
|
72
|
+
created_at: string;
|
|
73
|
+
}
|