@posiwise/smart-crm 0.0.14 → 0.0.15
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/private/components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.mjs +2 -3
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.mjs +4 -1
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories-details/smart-crm-opportunity-categories-details.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.mjs +4 -1
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.mjs +4 -1
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.mjs +1 -2
- package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.mjs +1 -2
- package/esm2022/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component.mjs +4 -6
- package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.mjs +2 -2
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.mjs +1 -1
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.mjs +1 -2
- package/esm2022/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.mjs +2 -2
- package/esm2022/lib/public/components/smart-crm-newsletter-confirmation/smart-crm-newsletter-confirmation.component.mjs +1 -1
- package/esm2022/lib/public/components/smart-crm-newsletter-unsubscribe/smart-crm-newsletter-unsubscribe.component.mjs +1 -1
- package/esm2022/lib/shared/interface/crm-account.interface.mjs +1 -1
- package/esm2022/lib/shared/interface/crm-contact.interface.mjs +1 -1
- package/esm2022/lib/shared/interface/crm-lead.interface.mjs +1 -1
- package/esm2022/lib/shared/interface/crm-newsletter.interface.mjs +1 -1
- package/esm2022/lib/shared/interface/crm-opportunity.interface.mjs +1 -1
- package/esm2022/lib/shared/interface/crm-stages.interface.mjs +1 -1
- package/esm2022/lib/shared/interface/smart-crm-module.interface.mjs +2 -0
- package/fesm2022/posiwise-smart-crm.mjs +15 -12
- package/fesm2022/posiwise-smart-crm.mjs.map +1 -1
- package/lib/private/components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component.d.ts +8 -7
- package/lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component.d.ts +1 -1
- package/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.d.ts +28 -17
- package/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.d.ts +6 -5
- package/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.d.ts +1 -1
- package/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.d.ts +2 -1
- package/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories-details/smart-crm-opportunity-categories-details.component.d.ts +1 -1
- package/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.d.ts +2 -1
- package/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.d.ts +2 -2
- package/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.d.ts +1 -1
- package/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.d.ts +3 -2
- package/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.d.ts +2 -2
- package/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component.d.ts +2 -1
- package/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.d.ts +3 -3
- package/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.d.ts +7 -4
- package/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.d.ts +4 -2
- package/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.d.ts +2 -2
- package/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component.d.ts +0 -1
- package/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.d.ts +2 -2
- package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.d.ts +6 -4
- package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.d.ts +5 -4
- package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.d.ts +5 -5
- package/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.d.ts +1 -1
- package/lib/shared/interface/crm-account.interface.d.ts +24 -6
- package/lib/shared/interface/crm-contact.interface.d.ts +3 -3
- package/lib/shared/interface/crm-lead.interface.d.ts +4 -4
- package/lib/shared/interface/crm-newsletter.interface.d.ts +14 -14
- package/lib/shared/interface/crm-opportunity.interface.d.ts +9 -9
- package/lib/shared/interface/crm-stages.interface.d.ts +1 -1
- package/lib/shared/interface/smart-crm-module.interface.d.ts +180 -0
- package/package.json +1 -1
|
@@ -2,25 +2,25 @@ export interface CrmNewsLetter {
|
|
|
2
2
|
id: number;
|
|
3
3
|
title: string;
|
|
4
4
|
body: string;
|
|
5
|
-
contact_potential:
|
|
6
|
-
account_status:
|
|
7
|
-
account_priority:
|
|
5
|
+
contact_potential: string[];
|
|
6
|
+
account_status: string[];
|
|
7
|
+
account_priority: string[];
|
|
8
8
|
location: string;
|
|
9
|
-
latitude:
|
|
10
|
-
longitude:
|
|
9
|
+
latitude: number;
|
|
10
|
+
longitude: number;
|
|
11
11
|
is_sent: boolean;
|
|
12
12
|
is_pushed: boolean;
|
|
13
|
-
send_until:
|
|
13
|
+
send_until: object;
|
|
14
14
|
subscription_id: number;
|
|
15
15
|
owner_id: number;
|
|
16
|
-
days_to_wait_from_previous_newsletter:
|
|
16
|
+
days_to_wait_from_previous_newsletter: number;
|
|
17
17
|
send_at: string;
|
|
18
|
-
account_size:
|
|
19
|
-
account_source:
|
|
20
|
-
product_ids:
|
|
21
|
-
feature_keys:
|
|
18
|
+
account_size: string[];
|
|
19
|
+
account_source: string[];
|
|
20
|
+
product_ids: string;
|
|
21
|
+
feature_keys: string[];
|
|
22
22
|
contact_label: string[];
|
|
23
|
-
contact_source:
|
|
23
|
+
contact_source: string[];
|
|
24
24
|
can_reply: boolean;
|
|
25
25
|
only_new_contacts: boolean;
|
|
26
26
|
}
|
|
@@ -46,10 +46,10 @@ interface NewsLetterContact {
|
|
|
46
46
|
crm_source_id: number;
|
|
47
47
|
subscription_id: number;
|
|
48
48
|
labels: string[];
|
|
49
|
-
enquiry:
|
|
49
|
+
enquiry: string;
|
|
50
50
|
email_verified: boolean;
|
|
51
51
|
newsletter_subscribed: boolean;
|
|
52
|
-
message_insight:
|
|
52
|
+
message_insight: string;
|
|
53
53
|
}
|
|
54
54
|
export interface NewsLetterContactResponse {
|
|
55
55
|
newsletter_contacts: NewsLetterContact[];
|
|
@@ -7,7 +7,7 @@ export interface CrmOpportunityCategory {
|
|
|
7
7
|
previous_category_id: number;
|
|
8
8
|
is_visible: boolean;
|
|
9
9
|
is_default: boolean;
|
|
10
|
-
previous_category:
|
|
10
|
+
previous_category: string;
|
|
11
11
|
}
|
|
12
12
|
export interface CrmOpportunityCategoryResponse {
|
|
13
13
|
crm_opportunity_categories: CrmOpportunityCategory[];
|
|
@@ -22,8 +22,8 @@ export interface CrmOpportunity {
|
|
|
22
22
|
one_time_amount: number;
|
|
23
23
|
win_chances: number;
|
|
24
24
|
starting_at: string;
|
|
25
|
-
lost:
|
|
26
|
-
won:
|
|
25
|
+
lost: number;
|
|
26
|
+
won: number;
|
|
27
27
|
monthly_amount: number;
|
|
28
28
|
trial_start_at: string;
|
|
29
29
|
lost_reason: string;
|
|
@@ -32,12 +32,12 @@ export interface CrmOpportunity {
|
|
|
32
32
|
crm_account_id: number;
|
|
33
33
|
owner_id: number;
|
|
34
34
|
crm_opportunity_stage_id: number;
|
|
35
|
-
crm_opportunity_category_ids:
|
|
36
|
-
feature_keys:
|
|
35
|
+
crm_opportunity_category_ids: string[];
|
|
36
|
+
feature_keys: string[];
|
|
37
37
|
crm_account: CrmAccount;
|
|
38
38
|
crm_opportunity_stage: CrmStage;
|
|
39
|
-
owner:
|
|
40
|
-
crm_opportunity_categories:
|
|
39
|
+
owner: string[];
|
|
40
|
+
crm_opportunity_categories: string[];
|
|
41
41
|
}
|
|
42
42
|
export interface CrmOpportunityResponse {
|
|
43
43
|
crm_opportunities: CrmOpportunity[];
|
|
@@ -48,9 +48,9 @@ export interface CrmVersion {
|
|
|
48
48
|
item_id: number;
|
|
49
49
|
item_type: string;
|
|
50
50
|
event: string;
|
|
51
|
-
object:
|
|
51
|
+
object: object;
|
|
52
52
|
created_at: string;
|
|
53
53
|
updated_at: string;
|
|
54
54
|
whoDoneIt: number;
|
|
55
|
-
author:
|
|
55
|
+
author: object;
|
|
56
56
|
}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
export interface OpportunityData {
|
|
2
|
+
crm_contact_id?: number;
|
|
3
|
+
crm_contact?: {
|
|
4
|
+
first_name: string;
|
|
5
|
+
last_name: string;
|
|
6
|
+
displayName?: string;
|
|
7
|
+
};
|
|
8
|
+
crm_account_id?: number;
|
|
9
|
+
crm_account?: {
|
|
10
|
+
id: number;
|
|
11
|
+
name: string;
|
|
12
|
+
};
|
|
13
|
+
name: string;
|
|
14
|
+
monthly_amount?: number;
|
|
15
|
+
one_time_amount?: number;
|
|
16
|
+
id: number;
|
|
17
|
+
}
|
|
18
|
+
export interface OpportunityComment {
|
|
19
|
+
id: number;
|
|
20
|
+
when: string;
|
|
21
|
+
comment: string;
|
|
22
|
+
completed: boolean;
|
|
23
|
+
cancelled: boolean;
|
|
24
|
+
crm_account_id: number;
|
|
25
|
+
when_short_date?: string;
|
|
26
|
+
due?: string;
|
|
27
|
+
color?: boolean;
|
|
28
|
+
year?: string;
|
|
29
|
+
month?: string;
|
|
30
|
+
first_name: string;
|
|
31
|
+
}
|
|
32
|
+
export interface OpportunityContact {
|
|
33
|
+
id: number;
|
|
34
|
+
first_name: string;
|
|
35
|
+
last_name: string;
|
|
36
|
+
email: string;
|
|
37
|
+
displayName?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface CrmAction {
|
|
40
|
+
id: number;
|
|
41
|
+
visible: boolean;
|
|
42
|
+
}
|
|
43
|
+
export interface CrmVersion {
|
|
44
|
+
id: number;
|
|
45
|
+
name: string;
|
|
46
|
+
version: string;
|
|
47
|
+
}
|
|
48
|
+
export interface FilteredData {
|
|
49
|
+
id: number;
|
|
50
|
+
name: string;
|
|
51
|
+
}
|
|
52
|
+
export interface Subscription {
|
|
53
|
+
id: number;
|
|
54
|
+
[key: string]: number;
|
|
55
|
+
}
|
|
56
|
+
export interface OpportunityInsight {
|
|
57
|
+
title: string;
|
|
58
|
+
value: string;
|
|
59
|
+
reason: number;
|
|
60
|
+
}
|
|
61
|
+
export interface SmartCrmContact {
|
|
62
|
+
id: number;
|
|
63
|
+
first_name: string;
|
|
64
|
+
last_name: string;
|
|
65
|
+
email: string;
|
|
66
|
+
displayName: string;
|
|
67
|
+
crm_account?: CrmAccount;
|
|
68
|
+
}
|
|
69
|
+
export interface CrmAccount {
|
|
70
|
+
id: number;
|
|
71
|
+
name: string;
|
|
72
|
+
}
|
|
73
|
+
export interface CrmopportunityContact {
|
|
74
|
+
id: number;
|
|
75
|
+
first_name: string;
|
|
76
|
+
last_name: string;
|
|
77
|
+
email: string;
|
|
78
|
+
crm_account: CrmAccount;
|
|
79
|
+
crm_account_id: number;
|
|
80
|
+
displayName: string;
|
|
81
|
+
}
|
|
82
|
+
export interface CrmOpportunityData {
|
|
83
|
+
id: number;
|
|
84
|
+
starting_at: string;
|
|
85
|
+
trial_start_at: string;
|
|
86
|
+
one_time_amount: number;
|
|
87
|
+
monthly_amount: number;
|
|
88
|
+
crm_contact_id: number;
|
|
89
|
+
crm_account_id: number;
|
|
90
|
+
stage: string;
|
|
91
|
+
}
|
|
92
|
+
export interface OpportunityStage {
|
|
93
|
+
id: number;
|
|
94
|
+
name: string;
|
|
95
|
+
crm_opportunity_category_ids: number[];
|
|
96
|
+
}
|
|
97
|
+
export interface OpportunityCategory {
|
|
98
|
+
label: string;
|
|
99
|
+
value: number;
|
|
100
|
+
}
|
|
101
|
+
export interface FeatureKey {
|
|
102
|
+
label: string;
|
|
103
|
+
value: string;
|
|
104
|
+
}
|
|
105
|
+
export interface SubscriptionMember {
|
|
106
|
+
id: number;
|
|
107
|
+
first_name: string;
|
|
108
|
+
}
|
|
109
|
+
export interface OrganizationType {
|
|
110
|
+
id: number;
|
|
111
|
+
name: string;
|
|
112
|
+
}
|
|
113
|
+
export interface OrganizationSize {
|
|
114
|
+
id: number;
|
|
115
|
+
size: string;
|
|
116
|
+
}
|
|
117
|
+
export interface OrganizationIndustry {
|
|
118
|
+
id: number;
|
|
119
|
+
industry: string;
|
|
120
|
+
}
|
|
121
|
+
export interface AccountResponse {
|
|
122
|
+
id: number;
|
|
123
|
+
status: string[];
|
|
124
|
+
priority: string[];
|
|
125
|
+
source: string[];
|
|
126
|
+
}
|
|
127
|
+
export interface AccountDetailResponse {
|
|
128
|
+
id: number;
|
|
129
|
+
owner_id: number;
|
|
130
|
+
country: string;
|
|
131
|
+
}
|
|
132
|
+
export interface OrganizationIndustry {
|
|
133
|
+
id: number;
|
|
134
|
+
name: string;
|
|
135
|
+
}
|
|
136
|
+
export interface OrganizationSize {
|
|
137
|
+
id: number;
|
|
138
|
+
size: string;
|
|
139
|
+
}
|
|
140
|
+
export interface OrganizationType {
|
|
141
|
+
id: number;
|
|
142
|
+
name: string;
|
|
143
|
+
}
|
|
144
|
+
export interface SmartCrmAction {
|
|
145
|
+
id: number;
|
|
146
|
+
comment: string;
|
|
147
|
+
completed: boolean;
|
|
148
|
+
cancelled: boolean;
|
|
149
|
+
crm_account_id: number;
|
|
150
|
+
when: string;
|
|
151
|
+
owner_id: number;
|
|
152
|
+
visible: boolean | null;
|
|
153
|
+
}
|
|
154
|
+
export interface CrmOwner {
|
|
155
|
+
id: number;
|
|
156
|
+
first_name: string;
|
|
157
|
+
last_name: string;
|
|
158
|
+
email: string;
|
|
159
|
+
displayName?: string;
|
|
160
|
+
}
|
|
161
|
+
export interface FilteredCrmComment {
|
|
162
|
+
first_name?: string;
|
|
163
|
+
}
|
|
164
|
+
export interface UserAccount {
|
|
165
|
+
signed_up_at: string | null;
|
|
166
|
+
unsubscribed_at: string | null;
|
|
167
|
+
child_subscription_id: number | null;
|
|
168
|
+
}
|
|
169
|
+
export interface ContactAccountData {
|
|
170
|
+
id: number;
|
|
171
|
+
name: string;
|
|
172
|
+
location?: string;
|
|
173
|
+
tel?: string;
|
|
174
|
+
company_url?: string;
|
|
175
|
+
}
|
|
176
|
+
export interface TestContainerModel<T> {
|
|
177
|
+
id: string;
|
|
178
|
+
data: T[];
|
|
179
|
+
index: number;
|
|
180
|
+
}
|