@posiwise/admin-module 0.0.113 → 0.0.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/admin.module.mjs +3 -1
- package/esm2022/lib/components/TOS/terms-of-service-details/terms-of-service-details.component.mjs +4 -6
- package/esm2022/lib/components/faqs/add-faq/add-faq.component.mjs +1 -4
- package/esm2022/lib/components/faqs/edit-faq/edit-faq.component.mjs +6 -7
- package/esm2022/lib/components/faqs/faqs-list/faqs-list.component.mjs +3 -1
- package/esm2022/lib/components/generic/generic-misc/generic-misc.component.mjs +1 -1
- package/esm2022/lib/components/incidents/add-edit-incident/add-edit-incident.component.mjs +3 -6
- package/esm2022/lib/components/incidents/incidents-list/incidents-list.component.mjs +1 -1
- package/esm2022/lib/components/login-notifications/login-notification-details/login-notification-details.component.mjs +1 -1
- package/esm2022/lib/components/newsletters/newsletter-item-details/newsletter-item-details.component.mjs +4 -6
- package/esm2022/lib/components/newsletters/newsletters-items/newsletters-items.component.mjs +2 -2
- package/esm2022/lib/components/permissions/role-details/role-details.component.mjs +1 -1
- package/esm2022/lib/components/products/product-details/product-details.component.mjs +4 -6
- package/esm2022/lib/components/subscriptions/subscription-agents/subscription-agents.component.mjs +1 -2
- package/esm2022/lib/components/subscriptions/subscription-agents-list/subscription-agents-list.component.mjs +3 -3
- package/esm2022/lib/components/subscriptions/subscription-details/subscription-details.component.mjs +3 -2
- package/esm2022/lib/components/subscriptions/subscription-product-details/subscription-product-details.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-list/invite-users/invite-users.component.mjs +1 -1
- package/esm2022/lib/components/subscriptions/subscriptions-list/subscriptions-list.component.mjs +1 -1
- package/esm2022/lib/components/tags/tags-category/tags-category.component.mjs +1 -1
- package/esm2022/lib/components/tags/tags-list/tags-list.component.mjs +1 -1
- package/esm2022/lib/components/tracking/ahoy-events/ahoy-events.component.mjs +1 -1
- package/esm2022/lib/components/tracking/ahoy-messages/ahoy-messages.component.mjs +1 -1
- package/esm2022/lib/components/tracking/ahoy-visits/ahoy-visits.component.mjs +1 -1
- package/esm2022/lib/components/tracking/events/events.component.mjs +1 -1
- package/esm2022/lib/components/tracking/versions/versions.component.mjs +1 -1
- package/esm2022/lib/components/users/user-details/user-details.component.mjs +1 -1
- package/esm2022/lib/components/users/users-list/users-list.component.mjs +1 -1
- package/esm2022/lib/components/users/users-tabs/users-tabs.component.mjs +1 -1
- package/esm2022/lib/shared/interface/admin-module-shared.interface.mjs +2 -0
- package/esm2022/lib/shared/interface/api-response.interface.mjs +2 -0
- package/esm2022/lib/shared/interface/credential.interface.mjs +1 -1
- package/esm2022/lib/shared/interface/newsletter.interface.mjs +1 -1
- package/esm2022/lib/shared/interface/tracking.interface.mjs +1 -1
- package/fesm2022/posiwise-admin-module.mjs +22 -29
- package/fesm2022/posiwise-admin-module.mjs.map +1 -1
- package/lib/components/TOS/terms-of-service-details/terms-of-service-details.component.d.ts +0 -1
- package/lib/components/faqs/add-faq/add-faq.component.d.ts +3 -3
- package/lib/components/faqs/edit-faq/edit-faq.component.d.ts +6 -5
- package/lib/components/faqs/faqs-list/faqs-list.component.d.ts +4 -3
- package/lib/components/generic/generic-misc/generic-misc.component.d.ts +2 -1
- package/lib/components/incidents/add-edit-incident/add-edit-incident.component.d.ts +3 -2
- package/lib/components/incidents/incidents-list/incidents-list.component.d.ts +1 -1
- package/lib/components/login-notifications/login-notification-details/login-notification-details.component.d.ts +1 -1
- package/lib/components/newsletters/newsletter-item-details/newsletter-item-details.component.d.ts +0 -1
- package/lib/components/newsletters/newsletters-items/newsletters-items.component.d.ts +3 -1
- package/lib/components/permissions/role-details/role-details.component.d.ts +2 -1
- package/lib/components/products/product-details/product-details.component.d.ts +8 -7
- package/lib/components/subscriptions/subscription-agents/subscription-agents.component.d.ts +0 -1
- package/lib/components/subscriptions/subscription-agents-list/subscription-agents-list.component.d.ts +2 -1
- package/lib/components/subscriptions/subscription-details/subscription-details.component.d.ts +6 -5
- package/lib/components/subscriptions/subscription-product-details/subscription-product-details.component.d.ts +2 -1
- package/lib/components/subscriptions/subscriptions-insight/subscription-insight-nps/subscription-insight-nps.component.d.ts +2 -1
- package/lib/components/subscriptions/subscriptions-list/invite-users/invite-users.component.d.ts +10 -6
- package/lib/components/subscriptions/subscriptions-list/subscriptions-list.component.d.ts +10 -6
- package/lib/components/tags/tags-category/tags-category.component.d.ts +2 -1
- package/lib/components/tags/tags-list/tags-list.component.d.ts +2 -1
- package/lib/components/tracking/ahoy-events/ahoy-events.component.d.ts +6 -6
- package/lib/components/tracking/ahoy-messages/ahoy-messages.component.d.ts +3 -3
- package/lib/components/tracking/ahoy-visits/ahoy-visits.component.d.ts +3 -3
- package/lib/components/tracking/events/events.component.d.ts +2 -3
- package/lib/components/tracking/versions/versions.component.d.ts +3 -3
- package/lib/components/users/user-details/user-details.component.d.ts +1 -1
- package/lib/components/users/users-list/users-list.component.d.ts +1 -1
- package/lib/components/users/users-tabs/users-tabs.component.d.ts +1 -1
- package/lib/shared/interface/admin-module-shared.interface.d.ts +98 -0
- package/lib/shared/interface/api-response.interface.d.ts +4 -0
- package/lib/shared/interface/credential.interface.d.ts +8 -1
- package/lib/shared/interface/newsletter.interface.d.ts +25 -15
- package/lib/shared/interface/tracking.interface.d.ts +14 -3
- package/package.json +1 -1
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export interface ProductList {
|
|
2
|
+
label: string;
|
|
3
|
+
value: number | null;
|
|
4
|
+
}
|
|
5
|
+
export interface InspectedData {
|
|
6
|
+
status: string;
|
|
7
|
+
details: Record<string, number>;
|
|
8
|
+
}
|
|
9
|
+
export interface Incident {
|
|
10
|
+
id: number;
|
|
11
|
+
description: string;
|
|
12
|
+
service_impacted: string;
|
|
13
|
+
url_impacted: string;
|
|
14
|
+
resolved_at: string | Date;
|
|
15
|
+
started_at: string | Date;
|
|
16
|
+
last_check_at: string | Date;
|
|
17
|
+
}
|
|
18
|
+
interface Permission {
|
|
19
|
+
id: number;
|
|
20
|
+
name: string;
|
|
21
|
+
active: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface PermissionResponse {
|
|
24
|
+
permissions: Permission[];
|
|
25
|
+
grantedPermissionNames: string[];
|
|
26
|
+
}
|
|
27
|
+
export interface CommentContext {
|
|
28
|
+
comment: string;
|
|
29
|
+
}
|
|
30
|
+
export interface CategoryModel {
|
|
31
|
+
id: number;
|
|
32
|
+
name: string;
|
|
33
|
+
}
|
|
34
|
+
export interface TagModel {
|
|
35
|
+
id: number;
|
|
36
|
+
name: string;
|
|
37
|
+
tag_category_id: number;
|
|
38
|
+
tag_type: string;
|
|
39
|
+
}
|
|
40
|
+
export interface Product {
|
|
41
|
+
id: number;
|
|
42
|
+
name: string;
|
|
43
|
+
region: string;
|
|
44
|
+
billing_frequency: string;
|
|
45
|
+
min_units: number;
|
|
46
|
+
price_per_unit: number;
|
|
47
|
+
currency: string;
|
|
48
|
+
active: boolean;
|
|
49
|
+
dependency_products?: string[];
|
|
50
|
+
}
|
|
51
|
+
export interface SubscriptionProductDetails {
|
|
52
|
+
id: number;
|
|
53
|
+
stripe_subscription_id?: string;
|
|
54
|
+
expires_at: string | null;
|
|
55
|
+
signed_up_at?: string | null;
|
|
56
|
+
product_id: number;
|
|
57
|
+
new_product_id?: number;
|
|
58
|
+
purchased_units?: number;
|
|
59
|
+
min_units?: number;
|
|
60
|
+
external_payment?: boolean;
|
|
61
|
+
}
|
|
62
|
+
export interface ResponseData extends SubscriptionProductDetails {
|
|
63
|
+
product: Product;
|
|
64
|
+
}
|
|
65
|
+
export interface PrivacyTos {
|
|
66
|
+
id: number;
|
|
67
|
+
title: string;
|
|
68
|
+
content: string;
|
|
69
|
+
}
|
|
70
|
+
export interface Role {
|
|
71
|
+
id: number;
|
|
72
|
+
name: string;
|
|
73
|
+
}
|
|
74
|
+
export interface SubscriptionRole {
|
|
75
|
+
id: number;
|
|
76
|
+
name: string;
|
|
77
|
+
}
|
|
78
|
+
export interface SubscriptionsRolesData {
|
|
79
|
+
product_roles: {
|
|
80
|
+
role_id: number;
|
|
81
|
+
}[];
|
|
82
|
+
product_id: number;
|
|
83
|
+
}
|
|
84
|
+
export interface AgentUser {
|
|
85
|
+
id: number;
|
|
86
|
+
first_name?: string;
|
|
87
|
+
last_name?: string;
|
|
88
|
+
email: string;
|
|
89
|
+
displayName?: string;
|
|
90
|
+
}
|
|
91
|
+
export interface RoleAssignment {
|
|
92
|
+
role_id: number;
|
|
93
|
+
}
|
|
94
|
+
export interface SubscriptionRolesSubscribeData {
|
|
95
|
+
subscription_id: number;
|
|
96
|
+
subscription_roles: RoleAssignment[];
|
|
97
|
+
}
|
|
98
|
+
export {};
|
|
@@ -21,13 +21,20 @@ export interface SubscriptionCredentialDetail {
|
|
|
21
21
|
field: string;
|
|
22
22
|
active: boolean;
|
|
23
23
|
}
|
|
24
|
+
interface Subscription {
|
|
25
|
+
id: number;
|
|
26
|
+
name: string;
|
|
27
|
+
startDate: string;
|
|
28
|
+
endDate: string;
|
|
29
|
+
active: boolean;
|
|
30
|
+
}
|
|
24
31
|
interface SubscriptionCredential {
|
|
25
32
|
id: number;
|
|
26
33
|
subscription_id: number;
|
|
27
34
|
credential_id: number;
|
|
28
35
|
value: string;
|
|
29
36
|
credential: Credential;
|
|
30
|
-
subscription:
|
|
37
|
+
subscription: Subscription;
|
|
31
38
|
}
|
|
32
39
|
export interface SubscriptionCredentialResponse {
|
|
33
40
|
subscription_credentials: SubscriptionCredential[];
|
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface NewsLetterUser {
|
|
2
2
|
id: number;
|
|
3
|
+
email: string;
|
|
3
4
|
name: string;
|
|
4
|
-
|
|
5
|
-
visible: boolean;
|
|
6
|
-
code: string;
|
|
7
|
-
}
|
|
8
|
-
export interface NewsLetterResponse {
|
|
9
|
-
newsletters: NewsLetter[];
|
|
10
|
-
object_count: number;
|
|
11
|
-
unfiltered_count: number;
|
|
5
|
+
subscribed_at: string;
|
|
12
6
|
}
|
|
13
7
|
export interface NewsLetterUserResponse {
|
|
14
|
-
newsletter_users:
|
|
8
|
+
newsletter_users: NewsLetterUser[];
|
|
15
9
|
object_count: number;
|
|
16
10
|
unfiltered_count: number;
|
|
17
11
|
}
|
|
12
|
+
export interface FeatureKey {
|
|
13
|
+
id: number;
|
|
14
|
+
name: string;
|
|
15
|
+
}
|
|
16
|
+
export interface Tag {
|
|
17
|
+
id: number;
|
|
18
|
+
name: string;
|
|
19
|
+
tag_category_id: number;
|
|
20
|
+
tag_type: string;
|
|
21
|
+
}
|
|
18
22
|
export interface NewsLetterItem {
|
|
19
23
|
id: number;
|
|
20
24
|
newsletter_id: number;
|
|
@@ -31,14 +35,20 @@ export interface NewsLetterItem {
|
|
|
31
35
|
days_to_wait_from_previous_newsletter: number;
|
|
32
36
|
send_at: string;
|
|
33
37
|
product_ids: number[];
|
|
34
|
-
feature_keys:
|
|
38
|
+
feature_keys: FeatureKey[];
|
|
35
39
|
only_new_users: boolean;
|
|
36
|
-
tags:
|
|
40
|
+
tags: Tag[];
|
|
37
41
|
newsletter_name: string;
|
|
38
42
|
}
|
|
39
|
-
export interface
|
|
43
|
+
export interface NewsLetterResponse {
|
|
44
|
+
newsletters: NewsLetter[];
|
|
45
|
+
object_count: number;
|
|
46
|
+
unfiltered_count: number;
|
|
47
|
+
}
|
|
48
|
+
export interface NewsLetter {
|
|
40
49
|
id: number;
|
|
41
50
|
name: string;
|
|
42
|
-
|
|
43
|
-
|
|
51
|
+
active: boolean;
|
|
52
|
+
visible: boolean;
|
|
53
|
+
code: string;
|
|
44
54
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Paging } from '@posiwise/common-utilities';
|
|
2
2
|
import { User } from '@posiwise/common-utilities';
|
|
3
|
-
interface AhoyEvent {
|
|
3
|
+
export interface AhoyEvent {
|
|
4
4
|
id: number;
|
|
5
5
|
user_id: number;
|
|
6
6
|
name: string;
|
|
@@ -87,15 +87,26 @@ export interface TrackEventResponse {
|
|
|
87
87
|
object_count: number;
|
|
88
88
|
unfiltered_count: number;
|
|
89
89
|
}
|
|
90
|
+
interface Author {
|
|
91
|
+
id: number;
|
|
92
|
+
name: string;
|
|
93
|
+
email: string;
|
|
94
|
+
}
|
|
95
|
+
interface ObjectDetails {
|
|
96
|
+
id: number;
|
|
97
|
+
name: string;
|
|
98
|
+
description?: string;
|
|
99
|
+
current_sign_in_at: string;
|
|
100
|
+
}
|
|
90
101
|
interface AhoyVersion {
|
|
91
102
|
item_id: number;
|
|
92
103
|
item_type: string;
|
|
93
104
|
event: string;
|
|
94
|
-
object:
|
|
105
|
+
object: ObjectDetails;
|
|
95
106
|
created_at: string;
|
|
96
107
|
updated_at: string;
|
|
97
108
|
whoDoneIt: number;
|
|
98
|
-
author:
|
|
109
|
+
author: Author;
|
|
99
110
|
}
|
|
100
111
|
export interface AhoyVersionResponse {
|
|
101
112
|
versions: AhoyVersion[];
|