@baack-software/baack-ts-crm 0.0.0-stage → 0.0.3
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/LICENSE +201 -0
- package/README.md +74 -2
- package/dist/account.d.ts +36 -0
- package/dist/account.d.ts.map +1 -0
- package/dist/account.js +48 -0
- package/dist/account.js.map +1 -0
- package/dist/backend.d.ts +104 -0
- package/dist/backend.d.ts.map +1 -0
- package/dist/backend.js +328 -0
- package/dist/backend.js.map +1 -0
- package/dist/crm-client.d.ts +164 -0
- package/dist/crm-client.d.ts.map +1 -0
- package/dist/crm-client.js +252 -0
- package/dist/crm-client.js.map +1 -0
- package/dist/deal-order.d.ts +42 -0
- package/dist/deal-order.d.ts.map +1 -0
- package/dist/deal-order.js +80 -0
- package/dist/deal-order.js.map +1 -0
- package/dist/errors.d.ts +21 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +33 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -0
- package/dist/invoices.d.ts +53 -0
- package/dist/invoices.d.ts.map +1 -0
- package/dist/invoices.js +155 -0
- package/dist/invoices.js.map +1 -0
- package/dist/leads.d.ts +29 -0
- package/dist/leads.d.ts.map +1 -0
- package/dist/leads.js +56 -0
- package/dist/leads.js.map +1 -0
- package/dist/mock/index.d.ts +43 -0
- package/dist/mock/index.d.ts.map +1 -0
- package/dist/mock/index.js +303 -0
- package/dist/mock/index.js.map +1 -0
- package/dist/money.d.ts +29 -0
- package/dist/money.d.ts.map +1 -0
- package/dist/money.js +82 -0
- package/dist/money.js.map +1 -0
- package/dist/period.d.ts +30 -0
- package/dist/period.d.ts.map +1 -0
- package/dist/period.js +49 -0
- package/dist/period.js.map +1 -0
- package/dist/pipeline.d.ts +36 -0
- package/dist/pipeline.d.ts.map +1 -0
- package/dist/pipeline.js +58 -0
- package/dist/pipeline.js.map +1 -0
- package/dist/react/Charts.d.ts +19 -0
- package/dist/react/Charts.d.ts.map +1 -0
- package/dist/react/Charts.js +38 -0
- package/dist/react/Charts.js.map +1 -0
- package/dist/react/ChoiceCombobox.d.ts +36 -0
- package/dist/react/ChoiceCombobox.d.ts.map +1 -0
- package/dist/react/ChoiceCombobox.js +105 -0
- package/dist/react/ChoiceCombobox.js.map +1 -0
- package/dist/react/CompanyAccountView.d.ts +21 -0
- package/dist/react/CompanyAccountView.d.ts.map +1 -0
- package/dist/react/CompanyAccountView.js +27 -0
- package/dist/react/CompanyAccountView.js.map +1 -0
- package/dist/react/DashboardCards.d.ts +32 -0
- package/dist/react/DashboardCards.d.ts.map +1 -0
- package/dist/react/DashboardCards.js +38 -0
- package/dist/react/DashboardCards.js.map +1 -0
- package/dist/react/DealsBoard.d.ts +49 -0
- package/dist/react/DealsBoard.d.ts.map +1 -0
- package/dist/react/DealsBoard.js +82 -0
- package/dist/react/DealsBoard.js.map +1 -0
- package/dist/react/Details.d.ts +85 -0
- package/dist/react/Details.d.ts.map +1 -0
- package/dist/react/Details.js +268 -0
- package/dist/react/Details.js.map +1 -0
- package/dist/react/Forms.d.ts +190 -0
- package/dist/react/Forms.d.ts.map +1 -0
- package/dist/react/Forms.js +494 -0
- package/dist/react/Forms.js.map +1 -0
- package/dist/react/LeadsTable.d.ts +22 -0
- package/dist/react/LeadsTable.d.ts.map +1 -0
- package/dist/react/LeadsTable.js +79 -0
- package/dist/react/LeadsTable.js.map +1 -0
- package/dist/react/Sales.d.ts +68 -0
- package/dist/react/Sales.d.ts.map +1 -0
- package/dist/react/Sales.js +270 -0
- package/dist/react/Sales.js.map +1 -0
- package/dist/react/SidePanel.d.ts +31 -0
- package/dist/react/SidePanel.d.ts.map +1 -0
- package/dist/react/SidePanel.js +49 -0
- package/dist/react/SidePanel.js.map +1 -0
- package/dist/react/format.d.ts +28 -0
- package/dist/react/format.d.ts.map +1 -0
- package/dist/react/format.js +30 -0
- package/dist/react/format.js.map +1 -0
- package/dist/react/index.d.ts +15 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +15 -0
- package/dist/react/index.js.map +1 -0
- package/dist/react/parts.d.ts +55 -0
- package/dist/react/parts.d.ts.map +1 -0
- package/dist/react/parts.js +82 -0
- package/dist/react/parts.js.map +1 -0
- package/dist/react/pipeline-choice.d.ts +19 -0
- package/dist/react/pipeline-choice.d.ts.map +1 -0
- package/dist/react/pipeline-choice.js +39 -0
- package/dist/react/pipeline-choice.js.map +1 -0
- package/dist/react/text.d.ts +232 -0
- package/dist/react/text.d.ts.map +1 -0
- package/dist/react/text.js +229 -0
- package/dist/react/text.js.map +1 -0
- package/dist/react/ui/alert.d.ts +11 -0
- package/dist/react/ui/alert.d.ts.map +1 -0
- package/dist/react/ui/alert.js +29 -0
- package/dist/react/ui/alert.js.map +1 -0
- package/dist/react/ui/badge.d.ts +10 -0
- package/dist/react/ui/badge.d.ts.map +1 -0
- package/dist/react/ui/badge.js +26 -0
- package/dist/react/ui/badge.js.map +1 -0
- package/dist/react/ui/button.d.ts +11 -0
- package/dist/react/ui/button.d.ts.map +1 -0
- package/dist/react/ui/button.js +37 -0
- package/dist/react/ui/button.js.map +1 -0
- package/dist/react/ui/card.d.ts +12 -0
- package/dist/react/ui/card.d.ts.map +1 -0
- package/dist/react/ui/card.js +26 -0
- package/dist/react/ui/card.js.map +1 -0
- package/dist/react/ui/chart.d.ts +45 -0
- package/dist/react/ui/chart.d.ts.map +1 -0
- package/dist/react/ui/chart.js +116 -0
- package/dist/react/ui/chart.js.map +1 -0
- package/dist/react/ui/input.d.ts +4 -0
- package/dist/react/ui/input.d.ts.map +1 -0
- package/dist/react/ui/input.js +8 -0
- package/dist/react/ui/input.js.map +1 -0
- package/dist/react/ui/label.d.ts +5 -0
- package/dist/react/ui/label.d.ts.map +1 -0
- package/dist/react/ui/label.js +10 -0
- package/dist/react/ui/label.js.map +1 -0
- package/dist/react/ui/progress.d.ts +5 -0
- package/dist/react/ui/progress.d.ts.map +1 -0
- package/dist/react/ui/progress.js +10 -0
- package/dist/react/ui/progress.js.map +1 -0
- package/dist/react/ui/select.d.ts +16 -0
- package/dist/react/ui/select.d.ts.map +1 -0
- package/dist/react/ui/select.js +37 -0
- package/dist/react/ui/select.js.map +1 -0
- package/dist/react/ui/separator.d.ts +5 -0
- package/dist/react/ui/separator.d.ts.map +1 -0
- package/dist/react/ui/separator.js +10 -0
- package/dist/react/ui/separator.js.map +1 -0
- package/dist/react/ui/sheet.d.ts +15 -0
- package/dist/react/ui/sheet.d.ts.map +1 -0
- package/dist/react/ui/sheet.js +38 -0
- package/dist/react/ui/sheet.js.map +1 -0
- package/dist/react/ui/skeleton.d.ts +3 -0
- package/dist/react/ui/skeleton.d.ts.map +1 -0
- package/dist/react/ui/skeleton.js +7 -0
- package/dist/react/ui/skeleton.js.map +1 -0
- package/dist/react/ui/table.d.ts +11 -0
- package/dist/react/ui/table.d.ts.map +1 -0
- package/dist/react/ui/table.js +29 -0
- package/dist/react/ui/table.js.map +1 -0
- package/dist/react/ui/tabs.d.ts +12 -0
- package/dist/react/ui/tabs.d.ts.map +1 -0
- package/dist/react/ui/tabs.js +31 -0
- package/dist/react/ui/tabs.js.map +1 -0
- package/dist/react/views.d.ts +82 -0
- package/dist/react/views.d.ts.map +1 -0
- package/dist/react/views.js +241 -0
- package/dist/react/views.js.map +1 -0
- package/dist/sales.d.ts +82 -0
- package/dist/sales.d.ts.map +1 -0
- package/dist/sales.js +87 -0
- package/dist/sales.js.map +1 -0
- package/dist/store.d.ts +159 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/store.js +305 -0
- package/dist/store.js.map +1 -0
- package/dist/target.d.ts +22 -0
- package/dist/target.d.ts.map +1 -0
- package/dist/target.js +40 -0
- package/dist/target.js.map +1 -0
- package/dist/types.d.ts +204 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +100 -4
- package/src/account.ts +79 -0
- package/src/backend.ts +501 -0
- package/src/crm-client.ts +393 -0
- package/src/deal-order.ts +116 -0
- package/src/errors.ts +34 -0
- package/src/index.ts +13 -0
- package/src/invoices.ts +177 -0
- package/src/leads.ts +78 -0
- package/src/mock/index.ts +398 -0
- package/src/money.ts +104 -0
- package/src/period.ts +71 -0
- package/src/pipeline.ts +82 -0
- package/src/react/Charts.tsx +143 -0
- package/src/react/ChoiceCombobox.tsx +227 -0
- package/src/react/CompanyAccountView.tsx +198 -0
- package/src/react/DashboardCards.tsx +171 -0
- package/src/react/DealsBoard.tsx +344 -0
- package/src/react/Details.tsx +870 -0
- package/src/react/Forms.tsx +1486 -0
- package/src/react/LeadsTable.tsx +234 -0
- package/src/react/Sales.tsx +827 -0
- package/src/react/SidePanel.tsx +104 -0
- package/src/react/format.ts +53 -0
- package/src/react/index.ts +14 -0
- package/src/react/parts.tsx +183 -0
- package/src/react/pipeline-choice.ts +54 -0
- package/src/react/text.ts +232 -0
- package/src/react/ui/README.md +6 -0
- package/src/react/ui/alert.tsx +75 -0
- package/src/react/ui/badge.tsx +48 -0
- package/src/react/ui/button.tsx +66 -0
- package/src/react/ui/card.tsx +102 -0
- package/src/react/ui/chart.tsx +304 -0
- package/src/react/ui/input.tsx +18 -0
- package/src/react/ui/label.tsx +23 -0
- package/src/react/ui/progress.tsx +30 -0
- package/src/react/ui/select.tsx +189 -0
- package/src/react/ui/separator.tsx +27 -0
- package/src/react/ui/sheet.tsx +145 -0
- package/src/react/ui/skeleton.tsx +13 -0
- package/src/react/ui/table.tsx +113 -0
- package/src/react/ui/tabs.tsx +89 -0
- package/src/react/views.tsx +633 -0
- package/src/sales.ts +167 -0
- package/src/store.ts +528 -0
- package/src/target.ts +54 -0
- package/src/types.ts +230 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,75 @@
|
|
|
1
|
-
#
|
|
1
|
+
# baack-ts-crm
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
TypeScript tools for a [Baack](https://www.baack.co) CRM, built on
|
|
4
|
+
[`@baack-software/baack-ts-client`](https://github.com/Baack-Software/baack-ts-client): leads, deals and pipelines,
|
|
5
|
+
invoices and payments, with helpers for CRM views and sample data to build them with before the API has every
|
|
6
|
+
concept. Used first by the Baack console. See [docs/PLAN.md](docs/PLAN.md) for the proposed concepts.
|
|
7
|
+
|
|
8
|
+
## Usage
|
|
9
|
+
|
|
10
|
+
```ts
|
|
11
|
+
import { BaackClient } from '@baack-software/baack-ts-client';
|
|
12
|
+
import {
|
|
13
|
+
createCrmClient,
|
|
14
|
+
formatMoney,
|
|
15
|
+
leadsBySource,
|
|
16
|
+
memoryBackend,
|
|
17
|
+
outstandingTotals,
|
|
18
|
+
pipelineByStage,
|
|
19
|
+
salesTarget,
|
|
20
|
+
totalsToMoney,
|
|
21
|
+
} from '@baack-software/baack-ts-crm';
|
|
22
|
+
import { sampleCrm } from '@baack-software/baack-ts-crm/mock';
|
|
23
|
+
|
|
24
|
+
const client = new BaackClient({ baseUrl: 'https://api.baack.co', credentials: 'include' });
|
|
25
|
+
|
|
26
|
+
// Leads, deals, invoices and payments from sample data; pipelines (workflows) from the API.
|
|
27
|
+
const crm = createCrmClient({
|
|
28
|
+
client,
|
|
29
|
+
sample: { backend: memoryBackend(sampleCrm({ owner })), concepts: ['leads', 'deals', 'invoices', 'remittances'] },
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
const [leads, deals, pipelines, invoices] = await Promise.all([
|
|
33
|
+
crm.leads.list(owner),
|
|
34
|
+
crm.deals.list(owner),
|
|
35
|
+
crm.pipelines.list(owner),
|
|
36
|
+
crm.invoices.list(owner),
|
|
37
|
+
]);
|
|
38
|
+
|
|
39
|
+
const bySource = leadsBySource(leads);
|
|
40
|
+
const stages = pipelineByStage(deals, pipelines[0]);
|
|
41
|
+
const { target, won, progress } = salesTarget(leads, deals, pipelines);
|
|
42
|
+
const due = totalsToMoney(outstandingTotals(invoices)).map((money) => formatMoney(money));
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
With React, a store holds the records and the views render them (shadcn/ui, styled by the host's theme):
|
|
46
|
+
|
|
47
|
+
```tsx
|
|
48
|
+
import { CrmStore } from '@baack-software/baack-ts-crm/store';
|
|
49
|
+
import { CrmCompanyAccount, CrmDashboard, CrmDealsView, CrmLeadsView } from '@baack-software/baack-ts-crm/react';
|
|
50
|
+
|
|
51
|
+
const store = new CrmStore(crm, { owner });
|
|
52
|
+
void store.load();
|
|
53
|
+
const names = { company: (urn) => companyNames.get(urn), person: (urn) => personNames.get(urn) };
|
|
54
|
+
|
|
55
|
+
<CrmDashboard store={store} names={names} tasks={<TasksAbout store={taskStore} about={about} />} />
|
|
56
|
+
<CrmLeadsView store={store} names={names} onConverted={(deal) => openDeal(deal)} />
|
|
57
|
+
<CrmDealsView store={store} names={names} />
|
|
58
|
+
<CrmCompanyAccount store={store} names={names} company={customerUrn} people={peoplePanel} tasks={tasksPanel} />
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Add `@source "../node_modules/@baack-software/baack-ts-crm/dist";` (adjusted to your CSS file) so Tailwind sees the
|
|
62
|
+
components' classes. `npm run demo` shows every view on sample data.
|
|
63
|
+
|
|
64
|
+
Amounts are whole minor units with a currency code (`unitValue`, `currencyCode`), as the API writes money. Totals
|
|
65
|
+
(`MoneyTotals`) are kept per currency in minor units, so they add up exactly and different currencies are never
|
|
66
|
+
mixed.
|
|
67
|
+
|
|
68
|
+
## Development
|
|
69
|
+
|
|
70
|
+
```sh
|
|
71
|
+
npm install
|
|
72
|
+
npm run typecheck
|
|
73
|
+
npm test
|
|
74
|
+
npm run build
|
|
75
|
+
```
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type MoneyTotals } from './money.ts';
|
|
2
|
+
import type { Deal, Invoice, Lead, Pipeline, Remittance } from './types.ts';
|
|
3
|
+
/** Everything a CRM knows about one customer company, for its account page. */
|
|
4
|
+
export interface CompanyAccount {
|
|
5
|
+
company: string;
|
|
6
|
+
leads: Lead[];
|
|
7
|
+
openLeads: Lead[];
|
|
8
|
+
deals: Deal[];
|
|
9
|
+
openDeals: Deal[];
|
|
10
|
+
/** Open deals' target values. */
|
|
11
|
+
openValue: MoneyTotals;
|
|
12
|
+
/** Won deals' target values. */
|
|
13
|
+
wonValue: MoneyTotals;
|
|
14
|
+
/** Invoices to or paid by the company. */
|
|
15
|
+
invoices: Invoice[];
|
|
16
|
+
outstanding: MoneyTotals;
|
|
17
|
+
overdue: MoneyTotals;
|
|
18
|
+
/** Payments against the company's invoices, newest first. */
|
|
19
|
+
payments: Remittance[];
|
|
20
|
+
/** Received less refunded. */
|
|
21
|
+
received: MoneyTotals;
|
|
22
|
+
}
|
|
23
|
+
export interface AccountData {
|
|
24
|
+
leads: readonly Lead[];
|
|
25
|
+
deals: readonly Deal[];
|
|
26
|
+
pipelines: readonly Pipeline[];
|
|
27
|
+
invoices: readonly Invoice[];
|
|
28
|
+
remittances: readonly Remittance[];
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* One company's account, from a CRM owner's records: the company's leads and deals, the invoices it was sent or pays,
|
|
32
|
+
* and the payments against them. People and tasks about the company come from the identity search and
|
|
33
|
+
* baack-ts-tasks, which the host already has.
|
|
34
|
+
*/
|
|
35
|
+
export declare function companyAccount(company: string, data: AccountData, now?: Date): CompanyAccount;
|
|
36
|
+
//# sourceMappingURL=account.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../src/account.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAIxD,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAgB,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAE1F,+EAA+E;AAC/E,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,SAAS,EAAE,IAAI,EAAE,CAAC;IAClB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,SAAS,EAAE,IAAI,EAAE,CAAC;IAClB,iCAAiC;IACjC,SAAS,EAAE,WAAW,CAAC;IACvB,gCAAgC;IAChC,QAAQ,EAAE,WAAW,CAAC;IACtB,0CAA0C;IAC1C,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,WAAW,CAAC;IACrB,6DAA6D;IAC7D,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,8BAA8B;IAC9B,QAAQ,EAAE,WAAW,CAAC;CACvB;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;IACvB,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;IACvB,SAAS,EAAE,SAAS,QAAQ,EAAE,CAAC;IAC/B,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAC;IAC7B,WAAW,EAAE,SAAS,UAAU,EAAE,CAAC;CACpC;AAID;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,OAAa,GAAG,cAAc,CAmCnG"}
|
package/dist/account.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { isOpenLead } from "./leads.js";
|
|
2
|
+
import { addMoney } from "./money.js";
|
|
3
|
+
import { dealOutcome, isDealWith } from "./pipeline.js";
|
|
4
|
+
import { outstandingTotals, overdueTotals, paymentsReceived } from "./invoices.js";
|
|
5
|
+
import { withPayments } from "./sales.js";
|
|
6
|
+
const isParty = (party, company) => party?.company?.urn === company;
|
|
7
|
+
/**
|
|
8
|
+
* One company's account, from a CRM owner's records: the company's leads and deals, the invoices it was sent or pays,
|
|
9
|
+
* and the payments against them. People and tasks about the company come from the identity search and
|
|
10
|
+
* baack-ts-tasks, which the host already has.
|
|
11
|
+
*/
|
|
12
|
+
export function companyAccount(company, data, now = new Date()) {
|
|
13
|
+
const leads = data.leads.filter((lead) => lead.contactCompany?.urn === company);
|
|
14
|
+
const deals = data.deals.filter((deal) => isDealWith(deal, company));
|
|
15
|
+
let openValue = {};
|
|
16
|
+
let wonValue = {};
|
|
17
|
+
const openDeals = [];
|
|
18
|
+
for (const deal of deals) {
|
|
19
|
+
const outcome = dealOutcome(deal);
|
|
20
|
+
if (outcome === 'OPEN') {
|
|
21
|
+
openDeals.push(deal);
|
|
22
|
+
openValue = addMoney(openValue, deal.targetValue);
|
|
23
|
+
}
|
|
24
|
+
else if (outcome === 'WON')
|
|
25
|
+
wonValue = addMoney(wonValue, deal.targetValue);
|
|
26
|
+
}
|
|
27
|
+
// Paid amounts follow the payments, so one just recorded shows on its invoice.
|
|
28
|
+
const invoices = withPayments(data.invoices, data.remittances).filter((invoice) => isParty(invoice.recipient, company) || isParty(invoice.remitter, company));
|
|
29
|
+
const invoiceUrns = new Set(invoices.map((invoice) => invoice.urn));
|
|
30
|
+
const payments = data.remittances
|
|
31
|
+
.filter((remittance) => invoiceUrns.has(remittance.paymentInvoice.urn))
|
|
32
|
+
.toSorted((a, b) => b.receivedTimestamp.localeCompare(a.receivedTimestamp));
|
|
33
|
+
return {
|
|
34
|
+
company,
|
|
35
|
+
leads,
|
|
36
|
+
openLeads: leads.filter(isOpenLead),
|
|
37
|
+
deals,
|
|
38
|
+
openDeals,
|
|
39
|
+
openValue,
|
|
40
|
+
wonValue,
|
|
41
|
+
invoices,
|
|
42
|
+
outstanding: outstandingTotals(invoices),
|
|
43
|
+
overdue: overdueTotals(invoices, now),
|
|
44
|
+
payments,
|
|
45
|
+
received: paymentsReceived(payments),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=account.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../src/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAoB,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAgC1C,MAAM,OAAO,GAAG,CAAC,KAAsC,EAAE,OAAe,EAAE,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,KAAK,OAAO,CAAC;AAE7G;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,OAAe,EAAE,IAAiB,EAAE,GAAG,GAAG,IAAI,IAAI,EAAE;IACjF,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,GAAG,KAAK,OAAO,CAAC,CAAC;IAChF,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IACrE,IAAI,SAAS,GAAgB,EAAE,CAAC;IAChC,IAAI,QAAQ,GAAgB,EAAE,CAAC;IAC/B,MAAM,SAAS,GAAW,EAAE,CAAC;IAC7B,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACzB,MAAM,OAAO,GAAG,WAAW,CA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AQ,EAAE,GAAG,CAAC;QACrC,QAAQ;QACR,QAAQ,EAAE,gBAAgB,CAAC,QAAQ,CAAC;KACrC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { type BaackClient, type Company } from '@baack-software/baack-ts-client';
|
|
2
|
+
import { type Ref, type RefLike } from '@baack-software/baack-ts-tasks';
|
|
3
|
+
import type { ContactDetails, CrmPerson, Deal, Invoice, InvoiceLine, Lead, NewContact, Pipeline, Remittance } from './types.ts';
|
|
4
|
+
/** Fields of a new record: everything but what the server sets. */
|
|
5
|
+
export type RecordInput<T> = Omit<T, 'urn' | 'url' | 'createdTimestamp' | 'updatedTimestamp'>;
|
|
6
|
+
export type LeadInput = RecordInput<Lead>;
|
|
7
|
+
export type DealInput = RecordInput<Deal>;
|
|
8
|
+
/** A new invoice: its lines and remittances are made on their own endpoints, once it exists. */
|
|
9
|
+
export type InvoiceInput = Omit<RecordInput<Invoice>, 'lines' | 'remittances'>;
|
|
10
|
+
export type RemittanceInput = RecordInput<Remittance>;
|
|
11
|
+
/** A new line on an existing invoice. */
|
|
12
|
+
export type InvoiceLineInput = Omit<InvoiceLine, 'urn'> & {
|
|
13
|
+
paymentInvoice: Ref;
|
|
14
|
+
};
|
|
15
|
+
/** A concept that can only be read. */
|
|
16
|
+
export interface ReadApi<T> {
|
|
17
|
+
/** Every record a company owns. */
|
|
18
|
+
list(owner: RefLike): Promise<T[]>;
|
|
19
|
+
get(record: RefLike): Promise<T>;
|
|
20
|
+
}
|
|
21
|
+
/** A concept with full create, read, update and delete. */
|
|
22
|
+
export interface RecordApi<T, TInput> extends ReadApi<T> {
|
|
23
|
+
create(input: TInput): Promise<T>;
|
|
24
|
+
/** Applies `changes` and returns the record as stored. */
|
|
25
|
+
update(record: RefLike, changes: Partial<TInput>): Promise<T>;
|
|
26
|
+
delete(record: RefLike): Promise<void>;
|
|
27
|
+
}
|
|
28
|
+
/** Making client companies (baack-ts-client's `Company`): a company owned by the CRM's company, named. */
|
|
29
|
+
export interface CompanyApi {
|
|
30
|
+
create(input: {
|
|
31
|
+
owner: RefLike;
|
|
32
|
+
name: string;
|
|
33
|
+
}): Promise<Company>;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Making people: an identity owned by the CRM's company, linked to `company` (a customer) when given, with a person,
|
|
37
|
+
* the person's name, an email address and a telephone number. A person's email and telephone can be read and changed
|
|
38
|
+
* later, each kept as one record on their identity.
|
|
39
|
+
*/
|
|
40
|
+
export interface PeopleApi {
|
|
41
|
+
createContact(input: {
|
|
42
|
+
owner: RefLike;
|
|
43
|
+
contact: NewContact;
|
|
44
|
+
company?: RefLike | null;
|
|
45
|
+
}): Promise<CrmPerson>;
|
|
46
|
+
/** A person's email and telephone: the first of each on their identity. */
|
|
47
|
+
contactDetails(identity: RefLike): Promise<ContactDetails>;
|
|
48
|
+
/**
|
|
49
|
+
* Sets a person's email and telephone: the first of each on their identity is changed, made when there's none, and
|
|
50
|
+
* deleted when emptied. Fields left out are kept.
|
|
51
|
+
*/
|
|
52
|
+
setContactDetails(identity: RefLike, details: Partial<ContactDetails>): Promise<ContactDetails>;
|
|
53
|
+
}
|
|
54
|
+
/** A contact's name, as shown: given and family name. */
|
|
55
|
+
export declare const contactName: ({ givenName, familyName }: NewContact) => string;
|
|
56
|
+
/**
|
|
57
|
+
* A contact's identity label: their initials, such as "J.S.". A label isn't held securely, so it never carries a
|
|
58
|
+
* person's name, which goes in the person name instead.
|
|
59
|
+
*/
|
|
60
|
+
export declare const contactLabel: ({ givenName, familyName }: NewContact) => string;
|
|
61
|
+
/** Where each CRM concept is read and written. */
|
|
62
|
+
export interface CrmBackend {
|
|
63
|
+
/** Client companies, made when a lead is created or converted with a business name. */
|
|
64
|
+
companies: CompanyApi;
|
|
65
|
+
/** People, made as a lead's contact or a customer's person. */
|
|
66
|
+
people: PeopleApi;
|
|
67
|
+
leads: RecordApi<Lead, LeadInput>;
|
|
68
|
+
deals: RecordApi<Deal, DealInput>;
|
|
69
|
+
pipelines: ReadApi<Pipeline>;
|
|
70
|
+
invoices: RecordApi<Invoice, InvoiceInput>;
|
|
71
|
+
/** An invoice's lines are made on their own, once the invoice exists; they're read with it. */
|
|
72
|
+
invoiceLines: {
|
|
73
|
+
create(input: InvoiceLineInput): Promise<InvoiceLine>;
|
|
74
|
+
};
|
|
75
|
+
remittances: RecordApi<Remittance, RemittanceInput>;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Every CRM concept on the Baack API: leads, deals and payment invoices found by search; remittances, which have no
|
|
79
|
+
* owner, through their invoices; pipelines are the company's workflows.
|
|
80
|
+
*/
|
|
81
|
+
export declare function apiBackend(client: BaackClient): CrmBackend;
|
|
82
|
+
/** The records an in-memory backend starts with. */
|
|
83
|
+
export interface CrmData {
|
|
84
|
+
leads: Lead[];
|
|
85
|
+
deals: Deal[];
|
|
86
|
+
pipelines: Pipeline[];
|
|
87
|
+
invoices: Invoice[];
|
|
88
|
+
/** Kept apart from their invoices here; the API lists them on the invoice. */
|
|
89
|
+
remittances: Remittance[];
|
|
90
|
+
}
|
|
91
|
+
export interface MemoryOptions {
|
|
92
|
+
/** Delay before each answer, to show loading states in demos. Default 0. */
|
|
93
|
+
latencyMs?: number;
|
|
94
|
+
/** New records' URNs. Default `crypto.randomUUID()`. */
|
|
95
|
+
newUrn?: () => string;
|
|
96
|
+
/** The time new and changed records are stamped with. Default now. */
|
|
97
|
+
now?: () => Date;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Every CRM concept held in memory, starting from `data` (copied, so the caller's arrays aren't changed). Writes
|
|
101
|
+
* behave as the API's would: create stamps a URN and times, update merges the changes, delete removes.
|
|
102
|
+
*/
|
|
103
|
+
export declare function memoryBackend(data: CrmData, options?: MemoryOptions): CrmBackend;
|
|
104
|
+
//# sourceMappingURL=backend.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backend.d.ts","sourceRoot":"","sources":["../src/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