@ingenx-io/valets-schema-mcp-server 0.1.3 → 0.1.5

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.
Files changed (49) hide show
  1. package/data/docs/collections/firestore-paths.md +56 -3
  2. package/data/docs/enums/attention-status.md +24 -0
  3. package/data/docs/enums/booking-status.md +2 -2
  4. package/data/docs/enums/customer-payment-status.md +2 -2
  5. package/data/docs/enums/customer-payment-target-type.md +2 -2
  6. package/data/docs/enums/delivery-type.md +2 -2
  7. package/data/docs/enums/deployment-link-type.md +26 -0
  8. package/data/docs/enums/event-status.md +2 -2
  9. package/data/docs/enums/fulfillment-status.md +2 -2
  10. package/data/docs/enums/loyalty-transaction-type.md +2 -2
  11. package/data/docs/enums/order-status.md +2 -2
  12. package/data/docs/enums/payment-method.md +2 -2
  13. package/data/docs/enums/payment-proof-status.md +2 -2
  14. package/data/docs/enums/payment-status.md +2 -2
  15. package/data/docs/enums/pending-issue.md +31 -0
  16. package/data/docs/enums/return-status.md +2 -2
  17. package/data/docs/enums/session-status.md +2 -2
  18. package/data/docs/enums/site-status.md +24 -0
  19. package/data/docs/enums/ticket-status.md +2 -2
  20. package/data/docs/index.md +15 -3
  21. package/data/docs/models/allowed-user.md +188 -0
  22. package/data/docs/models/analytics-backfill.md +398 -0
  23. package/data/docs/models/analytics-daily.md +351 -0
  24. package/data/docs/models/analytics-event.md +533 -0
  25. package/data/docs/models/analytics-hourly.md +372 -0
  26. package/data/docs/models/booking-version.md +2 -2
  27. package/data/docs/models/booking.md +2 -2
  28. package/data/docs/models/customer-payment-allocation.md +2 -2
  29. package/data/docs/models/customer-payment.md +2 -2
  30. package/data/docs/models/customer.md +2 -2
  31. package/data/docs/models/event.md +2 -2
  32. package/data/docs/models/loyalty-config.md +2 -2
  33. package/data/docs/models/loyalty-reward.md +2 -2
  34. package/data/docs/models/loyalty-status.md +2 -2
  35. package/data/docs/models/loyalty-transaction.md +2 -2
  36. package/data/docs/models/magic-link-request.md +285 -0
  37. package/data/docs/models/metrics-current.md +2 -2
  38. package/data/docs/models/metrics-daily.md +2 -2
  39. package/data/docs/models/metrics-monthly.md +2 -2
  40. package/data/docs/models/order-item.md +2 -2
  41. package/data/docs/models/order.md +248 -220
  42. package/data/docs/models/sale.md +2 -2
  43. package/data/docs/models/site-payment.md +200 -0
  44. package/data/docs/models/site.md +561 -0
  45. package/data/docs/models/ticket.md +2 -2
  46. package/data/static/llms.txt +362 -2
  47. package/data/static/openapi.yaml +1068 -0
  48. package/data/static/schemas.json +1229 -44
  49. package/package.json +1 -1
@@ -0,0 +1,351 @@
1
+ ---
2
+ title: "AnalyticsDaily"
3
+ sidebar_label: "AnalyticsDaily"
4
+ sidebar_position: 3
5
+ ---
6
+
7
+ # AnalyticsDaily
8
+
9
+ <details>
10
+ <summary>Example JSON</summary>
11
+
12
+ ```json
13
+ {
14
+ "totalEvents": 0,
15
+ "pageViews": 0,
16
+ "sessions": 0,
17
+ "uniqueUsers": 0,
18
+ "anonymousSessions": 0,
19
+ "orders": 0,
20
+ "paymentsCompleted": 0,
21
+ "paymentsFailed": 0,
22
+ "errors": 0,
23
+ "eventCounts": {},
24
+ "id": null,
25
+ "companyId": "comp_xyz789",
26
+ "siteId": "sit_ref123",
27
+ "date": "2026-02-15",
28
+ "computedAt": "computedAt",
29
+ "sourceEventCount": null
30
+ }
31
+ ```
32
+
33
+ </details>
34
+
35
+
36
+ - [1. Property `totalEvents`](#totalEvents)
37
+ - [2. Property `pageViews`](#pageViews)
38
+ - [3. Property `sessions`](#sessions)
39
+ - [4. Property `uniqueUsers`](#uniqueUsers)
40
+ - [5. Property `anonymousSessions`](#anonymousSessions)
41
+ - [6. Property `orders`](#orders)
42
+ - [7. Property `paymentsCompleted`](#paymentsCompleted)
43
+ - [8. Property `paymentsFailed`](#paymentsFailed)
44
+ - [9. Property `errors`](#errors)
45
+ - [10. Property `eventCounts`](#eventCounts)
46
+ - [10.1. Property `additionalProperties`](#eventCounts_additionalProperties)
47
+ - [11. Property `id`](#id)
48
+ - [12. Property `companyId`](#companyId)
49
+ - [13. Property `siteId`](#siteId)
50
+ - [14. Property `date`](#date)
51
+ - [15. Property `computedAt`](#computedAt)
52
+ - [15.1. Property `_seconds`](#computedAt__seconds)
53
+ - [15.2. Property `_nanoseconds`](#computedAt__nanoseconds)
54
+ - [16. Property `sourceEventCount`](#sourceEventCount)
55
+
56
+ | | |
57
+ | ------------------------- | ----------------------------- |
58
+ | **Type** | `object` |
59
+ | **Required** | No |
60
+ | **Additional properties** | Not allowed |
61
+ | **Defined in** | #/definitions/analytics-daily |
62
+
63
+ **Description:** AnalyticsDaily rollup (D42 / ING-304). Collection: companies/\{companyId\}/sites/\{siteId\}/analytics_daily/\{YYYY-MM-DD\}. Idempotent set/merge — reruns overwrite. Fall back to raw analytics_events for uncovered slices.
64
+
65
+ | Property | Pattern | Type | Deprecated | Definition | Title/Description |
66
+ | ------------------------------------------ | ------- | --------------- | ---------- | ------------------------------------ | ---------------------------------------------------------------------------------------------------------- |
67
+ | + [totalEvents](#totalEvents ) | No | integer | No | - | Total event count within the bucket. |
68
+ | + [pageViews](#pageViews ) | No | integer | No | - | Count of \`page_view\` + \`screen_view\` events. |
69
+ | + [sessions](#sessions ) | No | integer | No | - | Distinct session count within the bucket (by \`sessionId\`). |
70
+ | + [uniqueUsers](#uniqueUsers ) | No | integer | No | - | Distinct identified \`userId\` count. Anonymous sessions (userId=null) are excluded. |
71
+ | + [anonymousSessions](#anonymousSessions ) | No | integer | No | - | Distinct session count where \`userId\` was null for the entire session. |
72
+ | + [orders](#orders ) | No | integer | No | - | Count of \`order_submitted\` events (or Order documents scoped to this site, D43) within the bucket. |
73
+ | + [paymentsCompleted](#paymentsCompleted ) | No | integer | No | - | Count of \`payment_completed\` events within the bucket. |
74
+ | + [paymentsFailed](#paymentsFailed ) | No | integer | No | - | Count of \`payment_failed\` events within the bucket. |
75
+ | + [errors](#errors ) | No | integer | No | - | Count of \`error_occurred\` + \`exception_caught\` events within the bucket. |
76
+ | + [eventCounts](#eventCounts ) | No | object | No | - | Per-event-name counts — key is the event name (canonical or custom), value is the count within the bucket. |
77
+ | - [id](#id ) | No | string or null | No | - | (Read-only) Firestore document ID = \`YYYY-MM-DD\`. |
78
+ | + [companyId](#companyId ) | No | string | No | - | (Immutable) FK → Company document ID. |
79
+ | + [siteId](#siteId ) | No | string | No | - | (Immutable) FK → Site document ID (D40). |
80
+ | + [date](#date ) | No | string | No | - | (Immutable) \`YYYY-MM-DD\` UTC — matches document ID. |
81
+ | + [computedAt](#computedAt ) | No | object | No | In #/definitions/firestore-timestamp | (Read-only) When this rollup was last (re)computed. Updated on every set/merge. |
82
+ | - [sourceEventCount](#sourceEventCount ) | No | integer or null | No | - | (Read-only, Optional) Total source events scanned when producing this rollup. Useful for dry-run diffing. |
83
+
84
+ ## <a name="totalEvents"></a>1. Property `totalEvents`
85
+
86
+ | | |
87
+ | ------------ | --------- |
88
+ | **Type** | `integer` |
89
+ | **Required** | Yes |
90
+
91
+ **Description:** Total event count within the bucket.
92
+
93
+ | Restrictions | |
94
+ | ------------ | ---------------------- |
95
+ | **Minimum** | &ge; -9007199254740991 |
96
+ | **Maximum** | &le; 9007199254740991 |
97
+
98
+ ## <a name="pageViews"></a>2. Property `pageViews`
99
+
100
+ | | |
101
+ | ------------ | --------- |
102
+ | **Type** | `integer` |
103
+ | **Required** | Yes |
104
+
105
+ **Description:** Count of `page_view` + `screen_view` events.
106
+
107
+ | Restrictions | |
108
+ | ------------ | ---------------------- |
109
+ | **Minimum** | &ge; -9007199254740991 |
110
+ | **Maximum** | &le; 9007199254740991 |
111
+
112
+ ## <a name="sessions"></a>3. Property `sessions`
113
+
114
+ | | |
115
+ | ------------ | --------- |
116
+ | **Type** | `integer` |
117
+ | **Required** | Yes |
118
+
119
+ **Description:** Distinct session count within the bucket (by `sessionId`).
120
+
121
+ | Restrictions | |
122
+ | ------------ | ---------------------- |
123
+ | **Minimum** | &ge; -9007199254740991 |
124
+ | **Maximum** | &le; 9007199254740991 |
125
+
126
+ ## <a name="uniqueUsers"></a>4. Property `uniqueUsers`
127
+
128
+ | | |
129
+ | ------------ | --------- |
130
+ | **Type** | `integer` |
131
+ | **Required** | Yes |
132
+
133
+ **Description:** Distinct identified `userId` count. Anonymous sessions (userId=null) are excluded.
134
+
135
+ | Restrictions | |
136
+ | ------------ | ---------------------- |
137
+ | **Minimum** | &ge; -9007199254740991 |
138
+ | **Maximum** | &le; 9007199254740991 |
139
+
140
+ ## <a name="anonymousSessions"></a>5. Property `anonymousSessions`
141
+
142
+ | | |
143
+ | ------------ | --------- |
144
+ | **Type** | `integer` |
145
+ | **Required** | Yes |
146
+
147
+ **Description:** Distinct session count where `userId` was null for the entire session.
148
+
149
+ | Restrictions | |
150
+ | ------------ | ---------------------- |
151
+ | **Minimum** | &ge; -9007199254740991 |
152
+ | **Maximum** | &le; 9007199254740991 |
153
+
154
+ ## <a name="orders"></a>6. Property `orders`
155
+
156
+ | | |
157
+ | ------------ | --------- |
158
+ | **Type** | `integer` |
159
+ | **Required** | Yes |
160
+
161
+ **Description:** Count of `order_submitted` events (or Order documents scoped to this site, D43) within the bucket.
162
+
163
+ | Restrictions | |
164
+ | ------------ | ---------------------- |
165
+ | **Minimum** | &ge; -9007199254740991 |
166
+ | **Maximum** | &le; 9007199254740991 |
167
+
168
+ ## <a name="paymentsCompleted"></a>7. Property `paymentsCompleted`
169
+
170
+ | | |
171
+ | ------------ | --------- |
172
+ | **Type** | `integer` |
173
+ | **Required** | Yes |
174
+
175
+ **Description:** Count of `payment_completed` events within the bucket.
176
+
177
+ | Restrictions | |
178
+ | ------------ | ---------------------- |
179
+ | **Minimum** | &ge; -9007199254740991 |
180
+ | **Maximum** | &le; 9007199254740991 |
181
+
182
+ ## <a name="paymentsFailed"></a>8. Property `paymentsFailed`
183
+
184
+ | | |
185
+ | ------------ | --------- |
186
+ | **Type** | `integer` |
187
+ | **Required** | Yes |
188
+
189
+ **Description:** Count of `payment_failed` events within the bucket.
190
+
191
+ | Restrictions | |
192
+ | ------------ | ---------------------- |
193
+ | **Minimum** | &ge; -9007199254740991 |
194
+ | **Maximum** | &le; 9007199254740991 |
195
+
196
+ ## <a name="errors"></a>9. Property `errors`
197
+
198
+ | | |
199
+ | ------------ | --------- |
200
+ | **Type** | `integer` |
201
+ | **Required** | Yes |
202
+
203
+ **Description:** Count of `error_occurred` + `exception_caught` events within the bucket.
204
+
205
+ | Restrictions | |
206
+ | ------------ | ---------------------- |
207
+ | **Minimum** | &ge; -9007199254740991 |
208
+ | **Maximum** | &le; 9007199254740991 |
209
+
210
+ ## <a name="eventCounts"></a>10. Property `eventCounts`
211
+
212
+ | | |
213
+ | ------------------------- | ---------------------------------------------------------------------------------------- |
214
+ | **Type** | `object` |
215
+ | **Required** | Yes |
216
+ | **Additional properties** | [Each additional property must conform to the schema](#eventCounts_additionalProperties) |
217
+
218
+ **Description:** Per-event-name counts — key is the event name (canonical or custom), value is the count within the bucket.
219
+
220
+ | Property | Pattern | Type | Deprecated | Definition | Title/Description |
221
+ | ---------------------------------------- | ------- | ------- | ---------- | ---------- | ----------------- |
222
+ | - [](#eventCounts_additionalProperties ) | No | integer | No | - | - |
223
+
224
+ ### <a name="eventCounts_additionalProperties"></a>10.1. Property `additionalProperties`
225
+
226
+ | | |
227
+ | ------------ | --------- |
228
+ | **Type** | `integer` |
229
+ | **Required** | No |
230
+
231
+ | Restrictions | |
232
+ | ------------ | ---------------------- |
233
+ | **Minimum** | &ge; -9007199254740991 |
234
+ | **Maximum** | &le; 9007199254740991 |
235
+
236
+ ## <a name="id"></a>11. Property `id`
237
+
238
+ | | |
239
+ | ------------ | ---------------- |
240
+ | **Type** | `string or null` |
241
+ | **Required** | No |
242
+
243
+ **Description:** (Read-only) Firestore document ID = `YYYY-MM-DD`.
244
+
245
+ :::warning Server-set
246
+ Do not include in write requests. This field is set exclusively by the server (Firestore trigger or Admin SDK). Clients that send it will have the value silently ignored or may receive a validation error.
247
+ :::
248
+
249
+ ## <a name="companyId"></a>12. Property `companyId`
250
+
251
+ | | |
252
+ | ------------ | -------- |
253
+ | **Type** | `string` |
254
+ | **Required** | Yes |
255
+
256
+ **Description:** (Immutable) FK → Company document ID.
257
+
258
+ :::info Immutable
259
+ Set at creation only. This field cannot be modified after the document is created. Include it in CREATE payloads; omit it (or leave unchanged) in UPDATE payloads.
260
+ :::
261
+
262
+ ## <a name="siteId"></a>13. Property `siteId`
263
+
264
+ | | |
265
+ | ------------ | -------- |
266
+ | **Type** | `string` |
267
+ | **Required** | Yes |
268
+
269
+ **Description:** (Immutable) FK → Site document ID (D40).
270
+
271
+ :::info Immutable
272
+ Set at creation only. This field cannot be modified after the document is created. Include it in CREATE payloads; omit it (or leave unchanged) in UPDATE payloads.
273
+ :::
274
+
275
+ ## <a name="date"></a>14. Property `date`
276
+
277
+ | | |
278
+ | ------------ | -------- |
279
+ | **Type** | `string` |
280
+ | **Required** | Yes |
281
+
282
+ **Description:** (Immutable) `YYYY-MM-DD` UTC — matches document ID.
283
+
284
+ :::info Immutable
285
+ Set at creation only. This field cannot be modified after the document is created. Include it in CREATE payloads; omit it (or leave unchanged) in UPDATE payloads.
286
+ :::
287
+
288
+ ## <a name="computedAt"></a>15. Property `computedAt`
289
+
290
+ | | |
291
+ | ------------------------- | --------------------------------- |
292
+ | **Type** | `object` |
293
+ | **Required** | Yes |
294
+ | **Additional properties** | Not allowed |
295
+ | **Defined in** | #/definitions/firestore-timestamp |
296
+
297
+ **Description:** (Read-only) When this rollup was last (re)computed. Updated on every set/merge.
298
+
299
+ | Property | Pattern | Type | Deprecated | Definition | Title/Description |
300
+ | ------------------------------------------- | ------- | ------- | ---------- | ---------- | ----------------- |
301
+ | + [_seconds](#computedAt__seconds ) | No | integer | No | - | - |
302
+ | + [_nanoseconds](#computedAt__nanoseconds ) | No | integer | No | - | - |
303
+
304
+ ### <a name="computedAt__seconds"></a>15.1. Property `_seconds`
305
+
306
+ | | |
307
+ | ------------ | --------- |
308
+ | **Type** | `integer` |
309
+ | **Required** | Yes |
310
+
311
+ | Restrictions | |
312
+ | ------------ | ---------------------- |
313
+ | **Minimum** | &ge; -9007199254740991 |
314
+ | **Maximum** | &le; 9007199254740991 |
315
+
316
+ ### <a name="computedAt__nanoseconds"></a>15.2. Property `_nanoseconds`
317
+
318
+ | | |
319
+ | ------------ | --------- |
320
+ | **Type** | `integer` |
321
+ | **Required** | Yes |
322
+
323
+ | Restrictions | |
324
+ | ------------ | ---------------------- |
325
+ | **Minimum** | &ge; -9007199254740991 |
326
+ | **Maximum** | &le; 9007199254740991 |
327
+
328
+ :::warning Server-set
329
+ Do not include in write requests. This field is set exclusively by the server (Firestore trigger or Admin SDK). Clients that send it will have the value silently ignored or may receive a validation error.
330
+ :::
331
+
332
+ ## <a name="sourceEventCount"></a>16. Property `sourceEventCount`
333
+
334
+ | | |
335
+ | ------------ | ----------------- |
336
+ | **Type** | `integer or null` |
337
+ | **Required** | No |
338
+
339
+ **Description:** (Read-only, Optional) Total source events scanned when producing this rollup. Useful for dry-run diffing.
340
+
341
+ | Restrictions | |
342
+ | ------------ | ---------------------- |
343
+ | **Minimum** | &ge; -9007199254740991 |
344
+ | **Maximum** | &le; 9007199254740991 |
345
+
346
+ ----------------------------------------------------------------------------------------------------------------------------
347
+ Generated using [json-schema-for-humans](https://github.com/coveooss/json-schema-for-humans) on 2026-04-18 at 22:24:54 +0000
348
+
349
+ :::warning Server-set
350
+ Do not include in write requests. This field is set exclusively by the server (Firestore trigger or Admin SDK). Clients that send it will have the value silently ignored or may receive a validation error.
351
+ :::