@nativesquare/soma 0.1.0
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 +142 -0
- package/dist/client/_generated/_ignore.d.ts +1 -0
- package/dist/client/_generated/_ignore.d.ts.map +1 -0
- package/dist/client/_generated/_ignore.js +3 -0
- package/dist/client/_generated/_ignore.js.map +1 -0
- package/dist/client/index.d.ts +279 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +264 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/types.d.ts +5 -0
- package/dist/client/types.d.ts.map +1 -0
- package/dist/client/types.js +2 -0
- package/dist/client/types.js.map +1 -0
- package/dist/component/_generated/api.d.ts +62 -0
- package/dist/component/_generated/api.d.ts.map +1 -0
- package/dist/component/_generated/api.js +31 -0
- package/dist/component/_generated/api.js.map +1 -0
- package/dist/component/_generated/component.d.ts +1063 -0
- package/dist/component/_generated/component.d.ts.map +1 -0
- package/dist/component/_generated/component.js +11 -0
- package/dist/component/_generated/component.js.map +1 -0
- package/dist/component/_generated/dataModel.d.ts +46 -0
- package/dist/component/_generated/dataModel.d.ts.map +1 -0
- package/dist/component/_generated/dataModel.js +11 -0
- package/dist/component/_generated/dataModel.js.map +1 -0
- package/dist/component/_generated/server.d.ts +121 -0
- package/dist/component/_generated/server.d.ts.map +1 -0
- package/dist/component/_generated/server.js +78 -0
- package/dist/component/_generated/server.js.map +1 -0
- package/dist/component/convex.config.d.ts +3 -0
- package/dist/component/convex.config.d.ts.map +1 -0
- package/dist/component/convex.config.js +3 -0
- package/dist/component/convex.config.js.map +1 -0
- package/dist/component/private.d.ts +33 -0
- package/dist/component/private.d.ts.map +1 -0
- package/dist/component/private.js +45 -0
- package/dist/component/private.js.map +1 -0
- package/dist/component/public.d.ts +1107 -0
- package/dist/component/public.d.ts.map +1 -0
- package/dist/component/public.js +310 -0
- package/dist/component/public.js.map +1 -0
- package/dist/component/schema.d.ts +4419 -0
- package/dist/component/schema.d.ts.map +1 -0
- package/dist/component/schema.js +106 -0
- package/dist/component/schema.js.map +1 -0
- package/dist/component/validators/activity.d.ts +747 -0
- package/dist/component/validators/activity.d.ts.map +1 -0
- package/dist/component/validators/activity.js +146 -0
- package/dist/component/validators/activity.js.map +1 -0
- package/dist/component/validators/athlete.d.ts +18 -0
- package/dist/component/validators/athlete.d.ts.map +1 -0
- package/dist/component/validators/athlete.js +25 -0
- package/dist/component/validators/athlete.js.map +1 -0
- package/dist/component/validators/body.d.ts +634 -0
- package/dist/component/validators/body.d.ts.map +1 -0
- package/dist/component/validators/body.js +70 -0
- package/dist/component/validators/body.js.map +1 -0
- package/dist/component/validators/connection.d.ts +7 -0
- package/dist/component/validators/connection.d.ts.map +1 -0
- package/dist/component/validators/connection.js +16 -0
- package/dist/component/validators/connection.js.map +1 -0
- package/dist/component/validators/daily.d.ts +650 -0
- package/dist/component/validators/daily.d.ts.map +1 -0
- package/dist/component/validators/daily.js +119 -0
- package/dist/component/validators/daily.js.map +1 -0
- package/dist/component/validators/enums.d.ts +24 -0
- package/dist/component/validators/enums.d.ts.map +1 -0
- package/dist/component/validators/enums.js +69 -0
- package/dist/component/validators/enums.js.map +1 -0
- package/dist/component/validators/index.d.ts +13 -0
- package/dist/component/validators/index.d.ts.map +1 -0
- package/dist/component/validators/index.js +16 -0
- package/dist/component/validators/index.js.map +1 -0
- package/dist/component/validators/menstruation.d.ts +51 -0
- package/dist/component/validators/menstruation.d.ts.map +1 -0
- package/dist/component/validators/menstruation.js +32 -0
- package/dist/component/validators/menstruation.js.map +1 -0
- package/dist/component/validators/nutrition.d.ts +498 -0
- package/dist/component/validators/nutrition.d.ts.map +1 -0
- package/dist/component/validators/nutrition.js +31 -0
- package/dist/component/validators/nutrition.js.map +1 -0
- package/dist/component/validators/plannedWorkout.d.ts +277 -0
- package/dist/component/validators/plannedWorkout.d.ts.map +1 -0
- package/dist/component/validators/plannedWorkout.js +105 -0
- package/dist/component/validators/plannedWorkout.js.map +1 -0
- package/dist/component/validators/samples.d.ts +609 -0
- package/dist/component/validators/samples.d.ts.map +1 -0
- package/dist/component/validators/samples.js +336 -0
- package/dist/component/validators/samples.js.map +1 -0
- package/dist/component/validators/shared.d.ts +402 -0
- package/dist/component/validators/shared.d.ts.map +1 -0
- package/dist/component/validators/shared.js +146 -0
- package/dist/component/validators/shared.js.map +1 -0
- package/dist/component/validators/sleep.d.ts +438 -0
- package/dist/component/validators/sleep.d.ts.map +1 -0
- package/dist/component/validators/sleep.js +95 -0
- package/dist/component/validators/sleep.js.map +1 -0
- package/dist/healthkit/activity.d.ts +75 -0
- package/dist/healthkit/activity.d.ts.map +1 -0
- package/dist/healthkit/activity.js +93 -0
- package/dist/healthkit/activity.js.map +1 -0
- package/dist/healthkit/athlete.d.ts +26 -0
- package/dist/healthkit/athlete.d.ts.map +1 -0
- package/dist/healthkit/athlete.js +34 -0
- package/dist/healthkit/athlete.js.map +1 -0
- package/dist/healthkit/body.d.ts +102 -0
- package/dist/healthkit/body.d.ts.map +1 -0
- package/dist/healthkit/body.js +167 -0
- package/dist/healthkit/body.js.map +1 -0
- package/dist/healthkit/daily.d.ts +119 -0
- package/dist/healthkit/daily.d.ts.map +1 -0
- package/dist/healthkit/daily.js +160 -0
- package/dist/healthkit/daily.js.map +1 -0
- package/dist/healthkit/index.d.ts +21 -0
- package/dist/healthkit/index.d.ts.map +1 -0
- package/dist/healthkit/index.js +21 -0
- package/dist/healthkit/index.js.map +1 -0
- package/dist/healthkit/maps/activity-type.d.ts +6 -0
- package/dist/healthkit/maps/activity-type.d.ts.map +1 -0
- package/dist/healthkit/maps/activity-type.js +184 -0
- package/dist/healthkit/maps/activity-type.js.map +1 -0
- package/dist/healthkit/maps/menstruation-flow.d.ts +6 -0
- package/dist/healthkit/maps/menstruation-flow.d.ts.map +1 -0
- package/dist/healthkit/maps/menstruation-flow.js +21 -0
- package/dist/healthkit/maps/menstruation-flow.js.map +1 -0
- package/dist/healthkit/maps/sleep-level.d.ts +11 -0
- package/dist/healthkit/maps/sleep-level.d.ts.map +1 -0
- package/dist/healthkit/maps/sleep-level.js +32 -0
- package/dist/healthkit/maps/sleep-level.js.map +1 -0
- package/dist/healthkit/menstruation.d.ts +35 -0
- package/dist/healthkit/menstruation.d.ts.map +1 -0
- package/dist/healthkit/menstruation.js +37 -0
- package/dist/healthkit/menstruation.js.map +1 -0
- package/dist/healthkit/nutrition.d.ts +77 -0
- package/dist/healthkit/nutrition.d.ts.map +1 -0
- package/dist/healthkit/nutrition.js +135 -0
- package/dist/healthkit/nutrition.js.map +1 -0
- package/dist/healthkit/sleep.d.ts +60 -0
- package/dist/healthkit/sleep.d.ts.map +1 -0
- package/dist/healthkit/sleep.js +108 -0
- package/dist/healthkit/sleep.js.map +1 -0
- package/dist/healthkit/types.d.ts +94 -0
- package/dist/healthkit/types.d.ts.map +1 -0
- package/dist/healthkit/types.js +26 -0
- package/dist/healthkit/types.js.map +1 -0
- package/dist/healthkit/utils.d.ts +63 -0
- package/dist/healthkit/utils.d.ts.map +1 -0
- package/dist/healthkit/utils.js +93 -0
- package/dist/healthkit/utils.js.map +1 -0
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +6 -0
- package/dist/react/index.js.map +1 -0
- package/package.json +112 -0
- package/src/client/_generated/_ignore.ts +1 -0
- package/src/client/index.ts +371 -0
- package/src/client/types.ts +18 -0
- package/src/component/_generated/api.ts +78 -0
- package/src/component/_generated/component.ts +1090 -0
- package/src/component/_generated/dataModel.ts +60 -0
- package/src/component/_generated/server.ts +156 -0
- package/src/component/convex.config.ts +3 -0
- package/src/component/private.ts +50 -0
- package/src/component/public.ts +358 -0
- package/src/component/schema.ts +115 -0
- package/src/component/validators/activity.ts +216 -0
- package/src/component/validators/athlete.ts +25 -0
- package/src/component/validators/body.ts +114 -0
- package/src/component/validators/connection.ts +16 -0
- package/src/component/validators/daily.ts +173 -0
- package/src/component/validators/enums.ts +119 -0
- package/src/component/validators/index.ts +16 -0
- package/src/component/validators/menstruation.ts +36 -0
- package/src/component/validators/nutrition.ts +37 -0
- package/src/component/validators/plannedWorkout.ts +110 -0
- package/src/component/validators/samples.ts +380 -0
- package/src/component/validators/shared.ts +165 -0
- package/src/component/validators/sleep.ts +133 -0
- package/src/healthkit/activity.ts +120 -0
- package/src/healthkit/athlete.ts +43 -0
- package/src/healthkit/body.ts +266 -0
- package/src/healthkit/daily.ts +245 -0
- package/src/healthkit/index.ts +59 -0
- package/src/healthkit/maps/activity-type.ts +185 -0
- package/src/healthkit/maps/menstruation-flow.ts +23 -0
- package/src/healthkit/maps/sleep-level.ts +37 -0
- package/src/healthkit/menstruation.ts +52 -0
- package/src/healthkit/nutrition.ts +162 -0
- package/src/healthkit/sleep.ts +136 -0
- package/src/healthkit/types.ts +219 -0
- package/src/healthkit/utils.ts +122 -0
- package/src/react/index.ts +7 -0
- package/src/test.ts +18 -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
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
# Convex Component Template
|
|
2
|
+
|
|
3
|
+
This is a Convex component, ready to be published on npm.
|
|
4
|
+
|
|
5
|
+
To create your own component:
|
|
6
|
+
|
|
7
|
+
1. Write code in src/component for your component. Component-specific tables,
|
|
8
|
+
queries, mutations, and actions go here.
|
|
9
|
+
2. Write code in src/client for the Class that interfaces with the component.
|
|
10
|
+
This is the bridge your users will access to get information into and out of
|
|
11
|
+
your component
|
|
12
|
+
3. Write example usage in example/convex/example.ts.
|
|
13
|
+
4. Delete the text in this readme until `---` and flesh out the README.
|
|
14
|
+
5. Publish to npm with `pnpm run alpha` or `pnpm run release`.
|
|
15
|
+
|
|
16
|
+
To develop your component run a dev process in the example project:
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
pnpm i
|
|
20
|
+
pnpm run dev
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
`pnpm i` will do the install and an initial build. `pnpm run dev` will start a
|
|
24
|
+
file watcher to re-build the component, as well as the example project frontend
|
|
25
|
+
and backend, which does codegen and installs the component.
|
|
26
|
+
|
|
27
|
+
Modify the schema and index files in src/component/ to define your component.
|
|
28
|
+
|
|
29
|
+
Write a client for using this component in src/client/index.ts.
|
|
30
|
+
|
|
31
|
+
If you won't be adding frontend code (e.g. React components) to this component
|
|
32
|
+
you can delete "./react" references in package.json and "src/react/" directory.
|
|
33
|
+
If you will be adding frontend code, add a peer dependency on React in
|
|
34
|
+
package.json.
|
|
35
|
+
|
|
36
|
+
### Component Directory structure
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
.
|
|
40
|
+
├── README.md documentation of your component
|
|
41
|
+
├── package.json component name, version number, other metadata
|
|
42
|
+
├── pnpm-lock.yaml Components are like libraries, pnpm-lock.yaml
|
|
43
|
+
│ is .gitignored and ignored by consumers.
|
|
44
|
+
├── src
|
|
45
|
+
│ ├── component/
|
|
46
|
+
│ │ ├── _generated/ Files here are generated for the component.
|
|
47
|
+
│ │ ├── convex.config.ts Name your component here and use other components
|
|
48
|
+
│ │ ├── lib.ts Define functions here and in new files in this directory
|
|
49
|
+
│ │ └── schema.ts schema specific to this component
|
|
50
|
+
│ ├── client/
|
|
51
|
+
│ │ └── index.ts Code that needs to run in the app that uses the
|
|
52
|
+
│ │ component. Generally the app interacts directly with
|
|
53
|
+
│ │ the component's exposed API (src/component/*).
|
|
54
|
+
│ └── react/ Code intended to be used on the frontend goes here.
|
|
55
|
+
│ │ Your are free to delete this if this component
|
|
56
|
+
│ │ does not provide code.
|
|
57
|
+
│ └── index.ts
|
|
58
|
+
├── example/ example Convex app that uses this component
|
|
59
|
+
│ └── convex/
|
|
60
|
+
│ ├── _generated/ Files here are generated for the example app.
|
|
61
|
+
│ ├── convex.config.ts Imports and uses this component
|
|
62
|
+
│ ├── myFunctions.ts Functions that use the component
|
|
63
|
+
│ └── schema.ts Example app schema
|
|
64
|
+
└── dist/ Publishing artifacts will be created here.
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
# My Convex Component
|
|
70
|
+
|
|
71
|
+
[](https://badge.fury.io/js/@nativesquare%2Fmy-component)
|
|
72
|
+
|
|
73
|
+
<!-- START: Include on https://convex.dev/components -->
|
|
74
|
+
|
|
75
|
+
- [ ] What is some compelling syntax as a hook?
|
|
76
|
+
- [ ] Why should you use this component?
|
|
77
|
+
- [ ] Links to docs / other resources?
|
|
78
|
+
|
|
79
|
+
Found a bug? Feature request?
|
|
80
|
+
[File it here](https://github.com/NativeSquare/my-component/issues).
|
|
81
|
+
|
|
82
|
+
## Installation
|
|
83
|
+
|
|
84
|
+
Create a `convex.config.ts` file in your app's `convex/` folder and install the
|
|
85
|
+
component by calling `use`:
|
|
86
|
+
|
|
87
|
+
```ts
|
|
88
|
+
// convex/convex.config.ts
|
|
89
|
+
import { defineApp } from "convex/server";
|
|
90
|
+
import myComponent from "@nativesquare/my-component/convex.config.js";
|
|
91
|
+
|
|
92
|
+
const app = defineApp();
|
|
93
|
+
app.use(myComponent);
|
|
94
|
+
|
|
95
|
+
export default app;
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Usage
|
|
99
|
+
|
|
100
|
+
```ts
|
|
101
|
+
import { components } from "./_generated/api";
|
|
102
|
+
|
|
103
|
+
export const doSomething = mutation({
|
|
104
|
+
args: { text: v.string() },
|
|
105
|
+
handler: async (ctx, args) => {
|
|
106
|
+
return await ctx.runMutation(components.myComponent.lib.doSomething, {
|
|
107
|
+
text: args.text,
|
|
108
|
+
});
|
|
109
|
+
},
|
|
110
|
+
});
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
See more example usage in [example.ts](./example/convex/example.ts).
|
|
114
|
+
|
|
115
|
+
### HTTP Routes
|
|
116
|
+
|
|
117
|
+
You can register HTTP routes for the component to expose HTTP endpoints:
|
|
118
|
+
|
|
119
|
+
```ts
|
|
120
|
+
import { httpRouter } from "convex/server";
|
|
121
|
+
import { registerRoutes } from "@nativesquare/my-component";
|
|
122
|
+
import { components } from "./_generated/api";
|
|
123
|
+
|
|
124
|
+
const http = httpRouter();
|
|
125
|
+
|
|
126
|
+
registerRoutes(http, components.myComponent, {
|
|
127
|
+
pathPrefix: "/my-component",
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
export default http;
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
See [http.ts](./example/convex/http.ts) for a complete example.
|
|
134
|
+
|
|
135
|
+
<!-- END: Include on https://convex.dev/components -->
|
|
136
|
+
|
|
137
|
+
Run the example:
|
|
138
|
+
|
|
139
|
+
```sh
|
|
140
|
+
pnpm i
|
|
141
|
+
pnpm run dev
|
|
142
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=_ignore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_ignore.d.ts","sourceRoot":"","sources":["../../../src/client/_generated/_ignore.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_ignore.js","sourceRoot":"","sources":["../../../src/client/_generated/_ignore.ts"],"names":[],"mappings":";AAAA,kEAAkE"}
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import type { ComponentApi } from "../component/_generated/component.js";
|
|
2
|
+
import type { MutationCtx, QueryCtx } from "./types.js";
|
|
3
|
+
export type SomaComponent = ComponentApi;
|
|
4
|
+
/**
|
|
5
|
+
* Client class for the @nativesquare/soma Convex component.
|
|
6
|
+
*
|
|
7
|
+
* Provides a type-safe interface for managing wearable provider connections
|
|
8
|
+
* and querying normalized health & fitness data.
|
|
9
|
+
*
|
|
10
|
+
* All capabilities are also accessible via direct component function calls:
|
|
11
|
+
* `ctx.runMutation(components.soma.public.connect, { userId, provider: "GARMIN" })`
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* // In your Convex function file:
|
|
16
|
+
* import { Soma } from "@nativesquare/soma";
|
|
17
|
+
* import { components } from "./_generated/api";
|
|
18
|
+
*
|
|
19
|
+
* const soma = new Soma(components.soma);
|
|
20
|
+
*
|
|
21
|
+
* // Connect a user to a provider:
|
|
22
|
+
* const connectionId = await soma.connect(ctx, {
|
|
23
|
+
* userId: "user_123",
|
|
24
|
+
* provider: "GARMIN",
|
|
25
|
+
* });
|
|
26
|
+
*
|
|
27
|
+
* // List all connections:
|
|
28
|
+
* const connections = await soma.listConnections(ctx, { userId: "user_123" });
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare class Soma {
|
|
32
|
+
component: SomaComponent;
|
|
33
|
+
constructor(component: SomaComponent);
|
|
34
|
+
/**
|
|
35
|
+
* Connect a user to a wearable provider.
|
|
36
|
+
*
|
|
37
|
+
* Creates the connection if it doesn't exist, or re-activates it if it was
|
|
38
|
+
* previously disconnected. Idempotent — calling twice is a no-op.
|
|
39
|
+
*
|
|
40
|
+
* Use this when the host app has completed the provider's auth flow and
|
|
41
|
+
* wants to register the connection in Soma.
|
|
42
|
+
*
|
|
43
|
+
* @param ctx - Mutation context from the host app
|
|
44
|
+
* @param args.userId - The host app's user identifier (Clerk ID, etc.)
|
|
45
|
+
* @param args.provider - The wearable provider name ("GARMIN", "FITBIT", "OURA", etc.)
|
|
46
|
+
* @returns The connection document ID
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* // "Connect to Garmin" button handler
|
|
51
|
+
* const connectionId = await soma.connect(ctx, {
|
|
52
|
+
* userId: "user_123",
|
|
53
|
+
* provider: "GARMIN",
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
connect(ctx: MutationCtx, args: {
|
|
58
|
+
userId: string;
|
|
59
|
+
provider: string;
|
|
60
|
+
}): Promise<string>;
|
|
61
|
+
/**
|
|
62
|
+
* Disconnect a user from a wearable provider.
|
|
63
|
+
*
|
|
64
|
+
* Sets the connection to inactive. Does not delete any synced data,
|
|
65
|
+
* so re-connecting later preserves historical records.
|
|
66
|
+
*
|
|
67
|
+
* @param ctx - Mutation context from the host app
|
|
68
|
+
* @param args.userId - The host app's user identifier
|
|
69
|
+
* @param args.provider - The wearable provider name
|
|
70
|
+
*
|
|
71
|
+
* @throws Error if no connection exists for the given user–provider pair
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* // "Disconnect Garmin" button handler
|
|
76
|
+
* await soma.disconnect(ctx, {
|
|
77
|
+
* userId: "user_123",
|
|
78
|
+
* provider: "GARMIN",
|
|
79
|
+
* });
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
disconnect(ctx: MutationCtx, args: {
|
|
83
|
+
userId: string;
|
|
84
|
+
provider: string;
|
|
85
|
+
}): Promise<null>;
|
|
86
|
+
/**
|
|
87
|
+
* Get a connection by its document ID.
|
|
88
|
+
*
|
|
89
|
+
* @param ctx - Query context from the host app
|
|
90
|
+
* @param args.connectionId - The connection document ID
|
|
91
|
+
* @returns The connection document, or null if not found
|
|
92
|
+
*/
|
|
93
|
+
getConnection(ctx: QueryCtx, args: {
|
|
94
|
+
connectionId: string;
|
|
95
|
+
}): Promise<{
|
|
96
|
+
_creationTime: number;
|
|
97
|
+
_id: string;
|
|
98
|
+
active?: boolean;
|
|
99
|
+
lastDataUpdate?: string;
|
|
100
|
+
provider: string;
|
|
101
|
+
userId: string;
|
|
102
|
+
} | null>;
|
|
103
|
+
/**
|
|
104
|
+
* Get the connection for a specific user–provider pair.
|
|
105
|
+
*
|
|
106
|
+
* Useful for checking whether a user is connected to a specific provider
|
|
107
|
+
* (e.g., rendering a "Connected" badge on a provider card).
|
|
108
|
+
*
|
|
109
|
+
* @param ctx - Query context from the host app
|
|
110
|
+
* @param args.userId - The host app's user identifier
|
|
111
|
+
* @param args.provider - The wearable provider name
|
|
112
|
+
* @returns The connection document, or null if never connected
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* ```ts
|
|
116
|
+
* const garmin = await soma.getConnectionByProvider(ctx, {
|
|
117
|
+
* userId: "user_123",
|
|
118
|
+
* provider: "GARMIN",
|
|
119
|
+
* });
|
|
120
|
+
* const isConnected = garmin?.active === true;
|
|
121
|
+
* ```
|
|
122
|
+
*/
|
|
123
|
+
getConnectionByProvider(ctx: QueryCtx, args: {
|
|
124
|
+
userId: string;
|
|
125
|
+
provider: string;
|
|
126
|
+
}): Promise<{
|
|
127
|
+
_creationTime: number;
|
|
128
|
+
_id: string;
|
|
129
|
+
active?: boolean;
|
|
130
|
+
lastDataUpdate?: string;
|
|
131
|
+
provider: string;
|
|
132
|
+
userId: string;
|
|
133
|
+
} | null>;
|
|
134
|
+
/**
|
|
135
|
+
* List all connections for a user (active and inactive).
|
|
136
|
+
*
|
|
137
|
+
* @param ctx - Query context from the host app
|
|
138
|
+
* @param args.userId - The host app's user identifier
|
|
139
|
+
* @returns Array of connection documents
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* ```ts
|
|
143
|
+
* const connections = await soma.listConnections(ctx, { userId: "user_123" });
|
|
144
|
+
* const activeProviders = connections
|
|
145
|
+
* .filter(c => c.active)
|
|
146
|
+
* .map(c => c.provider);
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
149
|
+
listConnections(ctx: QueryCtx, args: {
|
|
150
|
+
userId: string;
|
|
151
|
+
}): Promise<{
|
|
152
|
+
_creationTime: number;
|
|
153
|
+
_id: string;
|
|
154
|
+
active?: boolean;
|
|
155
|
+
lastDataUpdate?: string;
|
|
156
|
+
provider: string;
|
|
157
|
+
userId: string;
|
|
158
|
+
}[]>;
|
|
159
|
+
/**
|
|
160
|
+
* Update a connection's mutable fields.
|
|
161
|
+
*
|
|
162
|
+
* @param ctx - Mutation context from the host app
|
|
163
|
+
* @param args.connectionId - The connection document ID
|
|
164
|
+
* @param args.active - Optional new active status
|
|
165
|
+
* @param args.lastDataUpdate - Optional ISO-8601 timestamp of last data sync
|
|
166
|
+
*
|
|
167
|
+
* @throws Error if the connection does not exist
|
|
168
|
+
*/
|
|
169
|
+
updateConnection(ctx: MutationCtx, args: {
|
|
170
|
+
connectionId: string;
|
|
171
|
+
active?: boolean;
|
|
172
|
+
lastDataUpdate?: string;
|
|
173
|
+
}): Promise<null>;
|
|
174
|
+
/**
|
|
175
|
+
* Delete a connection record entirely.
|
|
176
|
+
*
|
|
177
|
+
* This is a hard delete — the connection row is removed.
|
|
178
|
+
* Synced health data linked to this connection is NOT cascade-deleted.
|
|
179
|
+
*
|
|
180
|
+
* @param ctx - Mutation context from the host app
|
|
181
|
+
* @param args.connectionId - The connection document ID
|
|
182
|
+
*
|
|
183
|
+
* @throws Error if the connection does not exist
|
|
184
|
+
*/
|
|
185
|
+
deleteConnection(ctx: MutationCtx, args: {
|
|
186
|
+
connectionId: string;
|
|
187
|
+
}): Promise<null>;
|
|
188
|
+
/**
|
|
189
|
+
* Ingest an activity (workout) record.
|
|
190
|
+
*
|
|
191
|
+
* Upserts by `connectionId + metadata.summary_id` — re-ingesting the same
|
|
192
|
+
* workout updates the existing record rather than creating a duplicate.
|
|
193
|
+
*
|
|
194
|
+
* @param ctx - Mutation context from the host app
|
|
195
|
+
* @param args - Activity data including connectionId, userId, metadata, and all activity fields
|
|
196
|
+
* @returns The activity document ID
|
|
197
|
+
*
|
|
198
|
+
* @example
|
|
199
|
+
* ```ts
|
|
200
|
+
* import { transformWorkout } from "@nativesquare/soma/healthkit";
|
|
201
|
+
* const data = transformWorkout(hkWorkout);
|
|
202
|
+
* const id = await soma.ingestActivity(ctx, { connectionId, userId, ...data });
|
|
203
|
+
* ```
|
|
204
|
+
*/
|
|
205
|
+
ingestActivity(ctx: MutationCtx, args: IngestArgs): Promise<string>;
|
|
206
|
+
/**
|
|
207
|
+
* Ingest a sleep session record.
|
|
208
|
+
*
|
|
209
|
+
* Upserts by `connectionId + metadata.summary_id`.
|
|
210
|
+
*
|
|
211
|
+
* @param ctx - Mutation context from the host app
|
|
212
|
+
* @param args - Sleep data including connectionId, userId, metadata, and all sleep fields
|
|
213
|
+
* @returns The sleep document ID
|
|
214
|
+
*/
|
|
215
|
+
ingestSleep(ctx: MutationCtx, args: IngestArgs): Promise<string>;
|
|
216
|
+
/**
|
|
217
|
+
* Ingest a body metrics record.
|
|
218
|
+
*
|
|
219
|
+
* Upserts by `connectionId + metadata.start_time + metadata.end_time`.
|
|
220
|
+
*
|
|
221
|
+
* @param ctx - Mutation context from the host app
|
|
222
|
+
* @param args - Body data including connectionId, userId, metadata, and all body fields
|
|
223
|
+
* @returns The body document ID
|
|
224
|
+
*/
|
|
225
|
+
ingestBody(ctx: MutationCtx, args: IngestArgs): Promise<string>;
|
|
226
|
+
/**
|
|
227
|
+
* Ingest a daily activity summary record.
|
|
228
|
+
*
|
|
229
|
+
* Upserts by `connectionId + metadata.start_time + metadata.end_time`.
|
|
230
|
+
*
|
|
231
|
+
* @param ctx - Mutation context from the host app
|
|
232
|
+
* @param args - Daily data including connectionId, userId, metadata, and all daily fields
|
|
233
|
+
* @returns The daily document ID
|
|
234
|
+
*/
|
|
235
|
+
ingestDaily(ctx: MutationCtx, args: IngestArgs): Promise<string>;
|
|
236
|
+
/**
|
|
237
|
+
* Ingest a nutrition record.
|
|
238
|
+
*
|
|
239
|
+
* Upserts by `connectionId + metadata.start_time + metadata.end_time`.
|
|
240
|
+
*
|
|
241
|
+
* @param ctx - Mutation context from the host app
|
|
242
|
+
* @param args - Nutrition data including connectionId, userId, metadata, and all nutrition fields
|
|
243
|
+
* @returns The nutrition document ID
|
|
244
|
+
*/
|
|
245
|
+
ingestNutrition(ctx: MutationCtx, args: IngestArgs): Promise<string>;
|
|
246
|
+
/**
|
|
247
|
+
* Ingest a menstruation record.
|
|
248
|
+
*
|
|
249
|
+
* Append-only — each call creates a new document.
|
|
250
|
+
*
|
|
251
|
+
* @param ctx - Mutation context from the host app
|
|
252
|
+
* @param args - Menstruation data including connectionId, userId, metadata, and menstruation fields
|
|
253
|
+
* @returns The menstruation document ID
|
|
254
|
+
*/
|
|
255
|
+
ingestMenstruation(ctx: MutationCtx, args: IngestArgs): Promise<string>;
|
|
256
|
+
/**
|
|
257
|
+
* Ingest an athlete (user profile) record.
|
|
258
|
+
*
|
|
259
|
+
* Upserts by `connectionId` — one athlete record per connection.
|
|
260
|
+
*
|
|
261
|
+
* @param ctx - Mutation context from the host app
|
|
262
|
+
* @param args - Athlete data including connectionId, userId, and profile fields
|
|
263
|
+
* @returns The athlete document ID
|
|
264
|
+
*/
|
|
265
|
+
ingestAthlete(ctx: MutationCtx, args: IngestArgs): Promise<string>;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Common args shape for all ingestion methods.
|
|
269
|
+
*
|
|
270
|
+
* Requires `connectionId` and `userId` at minimum — additional fields
|
|
271
|
+
* come from the transformer output (e.g., `metadata`, `calories_data`, etc.)
|
|
272
|
+
* and are validated server-side by Convex validators.
|
|
273
|
+
*/
|
|
274
|
+
type IngestArgs = {
|
|
275
|
+
connectionId: string;
|
|
276
|
+
userId: string;
|
|
277
|
+
} & Record<string, unknown>;
|
|
278
|
+
export {};
|
|
279
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"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"}
|