@ingenx-io/valets-schema-mcp-server 0.2.3 → 0.2.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.
- package/README.md +26 -0
- package/data/docs/collections/firestore-paths.md +32 -20
- package/data/docs/enums/app-status.md +24 -0
- package/data/docs/enums/attention-status.md +2 -2
- package/data/docs/enums/booking-status.md +2 -2
- package/data/docs/enums/customer-payment-status.md +2 -2
- package/data/docs/enums/customer-payment-target-type.md +2 -2
- package/data/docs/enums/delivery-type.md +2 -2
- package/data/docs/enums/deployment-link-type.md +2 -2
- package/data/docs/enums/event-status.md +2 -2
- package/data/docs/enums/fulfillment-status.md +2 -2
- package/data/docs/enums/loyalty-transaction-type.md +2 -2
- package/data/docs/enums/notification-channel.md +2 -2
- package/data/docs/enums/notification-entity-type.md +2 -2
- package/data/docs/enums/notification-status.md +2 -2
- package/data/docs/enums/order-status.md +2 -2
- package/data/docs/enums/outbound-message-format.md +2 -2
- package/data/docs/enums/outbound-message-purpose.md +2 -2
- package/data/docs/enums/outbound-message-status.md +2 -2
- package/data/docs/enums/payment-method.md +2 -2
- package/data/docs/enums/payment-proof-status.md +2 -2
- package/data/docs/enums/payment-status.md +2 -2
- package/data/docs/enums/pending-issue.md +2 -2
- package/data/docs/enums/return-status.md +2 -2
- package/data/docs/enums/session-status.md +2 -2
- package/data/docs/enums/site-status.md +2 -2
- package/data/docs/enums/stocktake-frequency.md +2 -2
- package/data/docs/enums/stocktake-item-status.md +2 -2
- package/data/docs/enums/stocktake-status.md +2 -2
- package/data/docs/enums/ticket-status.md +2 -2
- package/data/docs/enums/waba-label.md +2 -2
- package/data/docs/enums/whatsapp-button-sub-type.md +2 -2
- package/data/docs/enums/whatsapp-template-component.md +2 -2
- package/data/docs/enums/whatsapp-template-status.md +2 -2
- package/data/docs/index.md +9 -5
- package/data/docs/models/allowed-user.md +7 -7
- package/data/docs/models/analytics-backfill.md +7 -7
- package/data/docs/models/analytics-daily.md +6 -6
- package/data/docs/models/analytics-event.md +7 -7
- package/data/docs/models/analytics-hourly.md +6 -6
- package/data/docs/models/app-payment.md +200 -0
- package/data/docs/models/app.md +561 -0
- package/data/docs/models/booking-version.md +2 -2
- package/data/docs/models/booking.md +127 -127
- package/data/docs/models/customer-payment-allocation.md +20 -20
- package/data/docs/models/customer-payment.md +23 -23
- package/data/docs/models/customer.md +11 -11
- package/data/docs/models/event.md +22 -22
- package/data/docs/models/loyalty-config.md +4 -4
- package/data/docs/models/loyalty-reward.md +3 -3
- package/data/docs/models/loyalty-status.md +6 -6
- package/data/docs/models/loyalty-transaction.md +2 -2
- package/data/docs/models/magic-link-request.md +9 -9
- package/data/docs/models/metrics-current.md +169 -37
- package/data/docs/models/metrics-daily.md +172 -40
- package/data/docs/models/metrics-monthly.md +172 -40
- package/data/docs/models/notification-record.md +3 -3
- package/data/docs/models/order-item.md +6 -6
- package/data/docs/models/order.md +78 -78
- package/data/docs/models/sale.md +18 -18
- package/data/docs/models/site-payment.md +2 -2
- package/data/docs/models/site.md +2 -2
- package/data/docs/models/stocktake-item.md +4 -4
- package/data/docs/models/stocktake.md +5 -5
- package/data/docs/models/ticket.md +3 -3
- package/data/docs/models/user.md +249 -0
- package/data/docs/models/whatsapp-inbound-message.md +2 -2
- package/data/docs/models/whatsapp-outbound-lifecycle-event.md +2 -2
- package/data/docs/models/whatsapp-outbound-message.md +6 -6
- package/data/docs/models/whatsapp-template.md +2 -2
- package/data/static/cookbook.json +150 -0
- package/data/static/llms.txt +179 -33
- package/data/static/openapi.yaml +626 -60
- package/data/static/schemas.json +680 -69
- package/index.js +32 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "MetricsMonthly"
|
|
3
3
|
sidebar_label: "MetricsMonthly"
|
|
4
|
-
sidebar_position:
|
|
4
|
+
sidebar_position: 21
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# MetricsMonthly
|
|
@@ -34,6 +34,11 @@ sidebar_position: 19
|
|
|
34
34
|
"lowStockItemsCount": 2,
|
|
35
35
|
"activeRecurringPaymentsCount": 2,
|
|
36
36
|
"monthlyRecurringRevenue": 0,
|
|
37
|
+
"escalatedOrdersCount": null,
|
|
38
|
+
"staleOrdersCount": null,
|
|
39
|
+
"staleBookingsCount": null,
|
|
40
|
+
"onHoldOrdersCount": null,
|
|
41
|
+
"paymentsByMethod": null,
|
|
37
42
|
"computedForDay": "computedForDay",
|
|
38
43
|
"generatedAt": "generatedAt",
|
|
39
44
|
"month": "month"
|
|
@@ -66,11 +71,17 @@ sidebar_position: 19
|
|
|
66
71
|
- [21. Property `lowStockItemsCount`](#lowStockItemsCount)
|
|
67
72
|
- [22. Property `activeRecurringPaymentsCount`](#activeRecurringPaymentsCount)
|
|
68
73
|
- [23. Property `monthlyRecurringRevenue`](#monthlyRecurringRevenue)
|
|
69
|
-
- [24. Property `
|
|
70
|
-
- [25. Property `
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
- [
|
|
74
|
+
- [24. Property `escalatedOrdersCount`](#escalatedOrdersCount)
|
|
75
|
+
- [25. Property `staleOrdersCount`](#staleOrdersCount)
|
|
76
|
+
- [26. Property `staleBookingsCount`](#staleBookingsCount)
|
|
77
|
+
- [27. Property `onHoldOrdersCount`](#onHoldOrdersCount)
|
|
78
|
+
- [28. Property `paymentsByMethod`](#paymentsByMethod)
|
|
79
|
+
- [28.1. Property `additionalProperties`](#paymentsByMethod_additionalProperties)
|
|
80
|
+
- [29. Property `computedForDay`](#computedForDay)
|
|
81
|
+
- [30. Property `generatedAt`](#generatedAt)
|
|
82
|
+
- [30.1. Property `_seconds`](#generatedAt__seconds)
|
|
83
|
+
- [30.2. Property `_nanoseconds`](#generatedAt__nanoseconds)
|
|
84
|
+
- [31. Property `month`](#month)
|
|
74
85
|
|
|
75
86
|
| | |
|
|
76
87
|
| ------------------------- | ----------------------------- |
|
|
@@ -81,34 +92,39 @@ sidebar_position: 19
|
|
|
81
92
|
|
|
82
93
|
**Description:** Monthly metrics rollup. Collection: companies/\{companyId\}/metrics_monthly/\{YYYY-MM\}. Same fields as MetricsCurrent plus `month`. Written alongside daily snapshots; reflects state at last full recalc within the month.
|
|
83
94
|
|
|
84
|
-
| Property | Pattern | Type
|
|
85
|
-
| ---------------------------------------------------------------------------- | ------- |
|
|
86
|
-
| + [todayOrdersCount](#todayOrdersCount ) | No | integer
|
|
87
|
-
| + [pendingOrdersCount](#pendingOrdersCount ) | No | integer
|
|
88
|
-
| + [orderCompletionRate30d](#orderCompletionRate30d ) | No | number
|
|
89
|
-
| + [todayPurchasesCount](#todayPurchasesCount ) | No | integer
|
|
90
|
-
| + [todayPurchasesSum](#todayPurchasesSum ) | No | number
|
|
91
|
-
| + [averagePurchaseAmount](#averagePurchaseAmount ) | No | number
|
|
92
|
-
| + [monthlyRevenue](#monthlyRevenue ) | No | number
|
|
93
|
-
| + [monthlyPurchasesCount](#monthlyPurchasesCount ) | No | integer
|
|
94
|
-
| + [todayBookingsCount](#todayBookingsCount ) | No | integer
|
|
95
|
-
| + [bookingsCreatedToday](#bookingsCreatedToday ) | No | integer
|
|
96
|
-
| + [todayBookingsConfirmedAmount](#todayBookingsConfirmedAmount ) | No | number
|
|
97
|
-
| + [monthlyBookingsConfirmedAmount](#monthlyBookingsConfirmedAmount ) | No | number
|
|
98
|
-
| + [todayCollectedAmount](#todayCollectedAmount ) | No | number
|
|
99
|
-
| + [todayRevenue](#todayRevenue ) | No | number
|
|
100
|
-
| + [bookingsPendingPaymentVerification](#bookingsPendingPaymentVerification ) | No | integer
|
|
101
|
-
| + [bookingsPendingValidation](#bookingsPendingValidation ) | No | integer
|
|
102
|
-
| + [bookingsPendingValidation24h](#bookingsPendingValidation24h ) | No | integer
|
|
103
|
-
| + [customersCount](#customersCount ) | No | integer
|
|
104
|
-
| + [newCustomersThisMonth](#newCustomersThisMonth ) | No | integer
|
|
105
|
-
| + [averageRating](#averageRating ) | No | number
|
|
106
|
-
| + [lowStockItemsCount](#lowStockItemsCount ) | No | integer
|
|
107
|
-
| + [activeRecurringPaymentsCount](#activeRecurringPaymentsCount ) | No | integer
|
|
108
|
-
| + [monthlyRecurringRevenue](#monthlyRecurringRevenue ) | No | number
|
|
109
|
-
|
|
|
110
|
-
|
|
|
111
|
-
|
|
|
95
|
+
| Property | Pattern | Type | Deprecated | Definition | Title/Description |
|
|
96
|
+
| ---------------------------------------------------------------------------- | ------- | --------------- | ---------- | ------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
97
|
+
| + [todayOrdersCount](#todayOrdersCount ) | No | integer | No | - | (Read-only) Orders created today (UTC). Resets at midnight. |
|
|
98
|
+
| + [pendingOrdersCount](#pendingOrdersCount ) | No | integer | No | - | (Read-only) Orders currently in PENDING status (all-time cumulative). Corrected by full recalc on order updates. |
|
|
99
|
+
| + [orderCompletionRate30d](#orderCompletionRate30d ) | No | number | No | - | (Read-only) Percentage of orders completed or delivered in the last 30 days. Always full recalc. |
|
|
100
|
+
| + [todayPurchasesCount](#todayPurchasesCount ) | No | integer | No | - | (Read-only) Purchases created today (UTC). Resets at midnight. |
|
|
101
|
+
| + [todayPurchasesSum](#todayPurchasesSum ) | No | number | No | - | (Read-only) Total value of purchases created today (UTC). Resets at midnight. |
|
|
102
|
+
| + [averagePurchaseAmount](#averagePurchaseAmount ) | No | number | No | - | (Read-only) Average purchase value across last 200 purchases (rolling, not time-windowed). |
|
|
103
|
+
| + [monthlyRevenue](#monthlyRevenue ) | No | number | No | - | (Read-only) Total purchase value in the current calendar month (UTC). |
|
|
104
|
+
| + [monthlyPurchasesCount](#monthlyPurchasesCount ) | No | integer | No | - | (Read-only) Number of purchases in the current calendar month (UTC). |
|
|
105
|
+
| + [todayBookingsCount](#todayBookingsCount ) | No | integer | No | - | (Read-only) Bookings with date == today AND status in [PENDING, CONFIRMED]. Resets at midnight. |
|
|
106
|
+
| + [bookingsCreatedToday](#bookingsCreatedToday ) | No | integer | No | - | (Read-only) Bookings with createdAt today (all statuses). Resets at midnight. |
|
|
107
|
+
| + [todayBookingsConfirmedAmount](#todayBookingsConfirmedAmount ) | No | number | No | - | (Read-only) Sum of totalAmount for bookings created today with status CONFIRMED or COMPLETED. Resets at midnight. |
|
|
108
|
+
| + [monthlyBookingsConfirmedAmount](#monthlyBookingsConfirmedAmount ) | No | number | No | - | (Read-only) Sum of totalAmount for bookings created this month with status CONFIRMED or COMPLETED. |
|
|
109
|
+
| + [todayCollectedAmount](#todayCollectedAmount ) | No | number | No | - | (Read-only) Sum of totalAmount for bookings where PAYMENT_PAID_AT is today. Resets at midnight. |
|
|
110
|
+
| + [todayRevenue](#todayRevenue ) | No | number | No | - | (Read-only) Sum of totalAmount for COMPLETED bookings where startDate == endDate == today (numeric YYYYMMDD). Resets at midnight. |
|
|
111
|
+
| + [bookingsPendingPaymentVerification](#bookingsPendingPaymentVerification ) | No | integer | No | - | (Read-only) Bookings with status PENDING/CANCELLATION_REQUESTED and a payment proof uploaded but not yet verified. Current state, always full recalc. |
|
|
112
|
+
| + [bookingsPendingValidation](#bookingsPendingValidation ) | No | integer | No | - | (Read-only) PENDING bookings with startDate within ±30 days of today. Rolling window, always full recalc. |
|
|
113
|
+
| + [bookingsPendingValidation24h](#bookingsPendingValidation24h ) | No | integer | No | - | (Read-only) PENDING bookings created in the last 24h with startDate >= tomorrow. Always full recalc. |
|
|
114
|
+
| + [customersCount](#customersCount ) | No | integer | No | - | (Read-only) Total customer count (all-time cumulative). |
|
|
115
|
+
| + [newCustomersThisMonth](#newCustomersThisMonth ) | No | integer | No | - | (Read-only) Customers with createdAt in the current calendar month (UTC). |
|
|
116
|
+
| + [averageRating](#averageRating ) | No | number | No | - | (Read-only) Average rating from the last 200 reviews (rolling). Always full recalc. |
|
|
117
|
+
| + [lowStockItemsCount](#lowStockItemsCount ) | No | integer | No | - | (Read-only) Active stock items where currentQuantity <= minimumQuantity. Current state, always full recalc. |
|
|
118
|
+
| + [activeRecurringPaymentsCount](#activeRecurringPaymentsCount ) | No | integer | No | - | (Read-only) Recurring payments with status ACTIVE. Current state, always full recalc. |
|
|
119
|
+
| + [monthlyRecurringRevenue](#monthlyRecurringRevenue ) | No | number | No | - | (Read-only) Sum of amount for ACTIVE + MONTHLY recurring payments. Always full recalc. |
|
|
120
|
+
| - [escalatedOrdersCount](#escalatedOrdersCount ) | No | integer or null | No | - | (Read-only, Optional) Orders currently in an escalated state. Present once the current aggregator rewrites the document. |
|
|
121
|
+
| - [staleOrdersCount](#staleOrdersCount ) | No | integer or null | No | - | (Read-only, Optional) Orders that have been in an incomplete status beyond the stale threshold. |
|
|
122
|
+
| - [staleBookingsCount](#staleBookingsCount ) | No | integer or null | No | - | (Read-only, Optional) Bookings that have been in an incomplete status beyond the stale threshold. |
|
|
123
|
+
| - [onHoldOrdersCount](#onHoldOrdersCount ) | No | integer or null | No | - | (Read-only, Optional) Orders currently in an on-hold state. |
|
|
124
|
+
| - [paymentsByMethod](#paymentsByMethod ) | No | object or null | No | - | (Read-only, Optional) Map of PaymentMethod → total amount for the current day. Empty map \{\} until first payment. |
|
|
125
|
+
| + [computedForDay](#computedForDay ) | No | string | No | - | (Read-only) YYYY-MM-DD string indicating which day these metrics reflect. Used to detect day boundaries and trigger midnight resets. |
|
|
126
|
+
| + [generatedAt](#generatedAt ) | No | object | No | In #/definitions/firestore-timestamp | (Read-only) Server timestamp of the last metrics write. |
|
|
127
|
+
| + [month](#month ) | No | string | No | - | (Read-only) YYYY-MM document ID repeated as a field. Identifies the month this rollup covers. |
|
|
112
128
|
|
|
113
129
|
## <a name="todayOrdersCount"></a>1. Property `todayOrdersCount`
|
|
114
130
|
|
|
@@ -474,7 +490,123 @@ Do not include in write requests. This field is set exclusively by the server (F
|
|
|
474
490
|
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.
|
|
475
491
|
:::
|
|
476
492
|
|
|
477
|
-
## <a name="
|
|
493
|
+
## <a name="escalatedOrdersCount"></a>24. Property `escalatedOrdersCount`
|
|
494
|
+
|
|
495
|
+
| | |
|
|
496
|
+
| ------------ | ----------------- |
|
|
497
|
+
| **Type** | `integer or null` |
|
|
498
|
+
| **Required** | No |
|
|
499
|
+
|
|
500
|
+
**Description:** (Read-only, Optional) Orders currently in an escalated state. Present once the current aggregator rewrites the document.
|
|
501
|
+
|
|
502
|
+
| Restrictions | |
|
|
503
|
+
| ------------ | ---------------------- |
|
|
504
|
+
| **Minimum** | ≥ -9007199254740991 |
|
|
505
|
+
| **Maximum** | ≤ 9007199254740991 |
|
|
506
|
+
|
|
507
|
+
:::warning Server-set
|
|
508
|
+
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.
|
|
509
|
+
:::
|
|
510
|
+
|
|
511
|
+
:::note
|
|
512
|
+
Absent on tenants whose metrics/current was last written before aggregator v2. Backfill required for universal presence (#8).
|
|
513
|
+
:::
|
|
514
|
+
|
|
515
|
+
## <a name="staleOrdersCount"></a>25. Property `staleOrdersCount`
|
|
516
|
+
|
|
517
|
+
| | |
|
|
518
|
+
| ------------ | ----------------- |
|
|
519
|
+
| **Type** | `integer or null` |
|
|
520
|
+
| **Required** | No |
|
|
521
|
+
|
|
522
|
+
**Description:** (Read-only, Optional) Orders that have been in an incomplete status beyond the stale threshold.
|
|
523
|
+
|
|
524
|
+
| Restrictions | |
|
|
525
|
+
| ------------ | ---------------------- |
|
|
526
|
+
| **Minimum** | ≥ -9007199254740991 |
|
|
527
|
+
| **Maximum** | ≤ 9007199254740991 |
|
|
528
|
+
|
|
529
|
+
:::warning Server-set
|
|
530
|
+
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.
|
|
531
|
+
:::
|
|
532
|
+
|
|
533
|
+
:::note
|
|
534
|
+
Absent on tenants whose metrics/current was last written before aggregator v2. Backfill required for universal presence (#8).
|
|
535
|
+
:::
|
|
536
|
+
|
|
537
|
+
## <a name="staleBookingsCount"></a>26. Property `staleBookingsCount`
|
|
538
|
+
|
|
539
|
+
| | |
|
|
540
|
+
| ------------ | ----------------- |
|
|
541
|
+
| **Type** | `integer or null` |
|
|
542
|
+
| **Required** | No |
|
|
543
|
+
|
|
544
|
+
**Description:** (Read-only, Optional) Bookings that have been in an incomplete status beyond the stale threshold.
|
|
545
|
+
|
|
546
|
+
| Restrictions | |
|
|
547
|
+
| ------------ | ---------------------- |
|
|
548
|
+
| **Minimum** | ≥ -9007199254740991 |
|
|
549
|
+
| **Maximum** | ≤ 9007199254740991 |
|
|
550
|
+
|
|
551
|
+
:::warning Server-set
|
|
552
|
+
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.
|
|
553
|
+
:::
|
|
554
|
+
|
|
555
|
+
:::note
|
|
556
|
+
Absent on tenants whose metrics/current was last written before aggregator v2. Backfill required for universal presence (#8).
|
|
557
|
+
:::
|
|
558
|
+
|
|
559
|
+
## <a name="onHoldOrdersCount"></a>27. Property `onHoldOrdersCount`
|
|
560
|
+
|
|
561
|
+
| | |
|
|
562
|
+
| ------------ | ----------------- |
|
|
563
|
+
| **Type** | `integer or null` |
|
|
564
|
+
| **Required** | No |
|
|
565
|
+
|
|
566
|
+
**Description:** (Read-only, Optional) Orders currently in an on-hold state.
|
|
567
|
+
|
|
568
|
+
| Restrictions | |
|
|
569
|
+
| ------------ | ---------------------- |
|
|
570
|
+
| **Minimum** | ≥ -9007199254740991 |
|
|
571
|
+
| **Maximum** | ≤ 9007199254740991 |
|
|
572
|
+
|
|
573
|
+
:::warning Server-set
|
|
574
|
+
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.
|
|
575
|
+
:::
|
|
576
|
+
|
|
577
|
+
:::note
|
|
578
|
+
Absent on tenants whose metrics/current was last written before aggregator v2. Backfill required for universal presence (#8).
|
|
579
|
+
:::
|
|
580
|
+
|
|
581
|
+
## <a name="paymentsByMethod"></a>28. Property `paymentsByMethod`
|
|
582
|
+
|
|
583
|
+
| | |
|
|
584
|
+
| ------------ | ---------------- |
|
|
585
|
+
| **Type** | `object or null` |
|
|
586
|
+
| **Required** | No |
|
|
587
|
+
|
|
588
|
+
**Description:** (Read-only, Optional) Map of PaymentMethod → total amount for the current day. Empty map \{\} until first payment.
|
|
589
|
+
|
|
590
|
+
| Property | Pattern | Type | Deprecated | Definition | Title/Description |
|
|
591
|
+
| --------------------------------------------- | ------- | ------ | ---------- | ---------- | ----------------- |
|
|
592
|
+
| - [](#paymentsByMethod_additionalProperties ) | No | number | No | - | - |
|
|
593
|
+
|
|
594
|
+
### <a name="paymentsByMethod_additionalProperties"></a>28.1. Property `additionalProperties`
|
|
595
|
+
|
|
596
|
+
| | |
|
|
597
|
+
| ------------ | -------- |
|
|
598
|
+
| **Type** | `number` |
|
|
599
|
+
| **Required** | No |
|
|
600
|
+
|
|
601
|
+
:::warning Server-set
|
|
602
|
+
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.
|
|
603
|
+
:::
|
|
604
|
+
|
|
605
|
+
:::note
|
|
606
|
+
Always \{\} until the first real payment is recorded. Present on all tenants once rewritten by current aggregator (#8).
|
|
607
|
+
:::
|
|
608
|
+
|
|
609
|
+
## <a name="computedForDay"></a>29. Property `computedForDay`
|
|
478
610
|
|
|
479
611
|
| | |
|
|
480
612
|
| ------------ | -------- |
|
|
@@ -487,7 +619,7 @@ Do not include in write requests. This field is set exclusively by the server (F
|
|
|
487
619
|
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.
|
|
488
620
|
:::
|
|
489
621
|
|
|
490
|
-
## <a name="generatedAt"></a>
|
|
622
|
+
## <a name="generatedAt"></a>30. Property `generatedAt`
|
|
491
623
|
|
|
492
624
|
| | |
|
|
493
625
|
| ------------------------- | --------------------------------- |
|
|
@@ -503,7 +635,7 @@ Do not include in write requests. This field is set exclusively by the server (F
|
|
|
503
635
|
| + [_seconds](#generatedAt__seconds ) | No | integer | No | - | - |
|
|
504
636
|
| + [_nanoseconds](#generatedAt__nanoseconds ) | No | integer | No | - | - |
|
|
505
637
|
|
|
506
|
-
### <a name="generatedAt__seconds"></a>
|
|
638
|
+
### <a name="generatedAt__seconds"></a>30.1. Property `_seconds`
|
|
507
639
|
|
|
508
640
|
| | |
|
|
509
641
|
| ------------ | --------- |
|
|
@@ -515,7 +647,7 @@ Do not include in write requests. This field is set exclusively by the server (F
|
|
|
515
647
|
| **Minimum** | ≥ -9007199254740991 |
|
|
516
648
|
| **Maximum** | ≤ 9007199254740991 |
|
|
517
649
|
|
|
518
|
-
### <a name="generatedAt__nanoseconds"></a>
|
|
650
|
+
### <a name="generatedAt__nanoseconds"></a>30.2. Property `_nanoseconds`
|
|
519
651
|
|
|
520
652
|
| | |
|
|
521
653
|
| ------------ | --------- |
|
|
@@ -531,7 +663,7 @@ Do not include in write requests. This field is set exclusively by the server (F
|
|
|
531
663
|
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.
|
|
532
664
|
:::
|
|
533
665
|
|
|
534
|
-
## <a name="month"></a>
|
|
666
|
+
## <a name="month"></a>31. Property `month`
|
|
535
667
|
|
|
536
668
|
| | |
|
|
537
669
|
| ------------ | -------- |
|
|
@@ -541,7 +673,7 @@ Do not include in write requests. This field is set exclusively by the server (F
|
|
|
541
673
|
**Description:** (Read-only) YYYY-MM document ID repeated as a field. Identifies the month this rollup covers.
|
|
542
674
|
|
|
543
675
|
----------------------------------------------------------------------------------------------------------------------------
|
|
544
|
-
Generated using [json-schema-for-humans](https://github.com/coveooss/json-schema-for-humans) on 2026-05-
|
|
676
|
+
Generated using [json-schema-for-humans](https://github.com/coveooss/json-schema-for-humans) on 2026-05-30 at 12:42:51 +0000
|
|
545
677
|
|
|
546
678
|
:::warning Server-set
|
|
547
679
|
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.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "NotificationRecord"
|
|
3
3
|
sidebar_label: "NotificationRecord"
|
|
4
|
-
sidebar_position:
|
|
4
|
+
sidebar_position: 22
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# NotificationRecord
|
|
@@ -82,7 +82,7 @@ sidebar_position: 20
|
|
|
82
82
|
| **Additional properties** | Not allowed |
|
|
83
83
|
| **Defined in** | #/definitions/notification-record |
|
|
84
84
|
|
|
85
|
-
**Description:** NotificationRecord — backend-written, multi-channel notification audit log (GH#48). Paths: companies/\{cid\}/
|
|
85
|
+
**Description:** NotificationRecord — backend-written, multi-channel notification audit log (GH#48). Paths: companies/\{cid\}/notification_records/\{id\} (always) and companies/\{cid\}/orders/\{oid\}/notification_records/\{id\} (dual-write when relatedEntity.type=order). Consumers read only. Distinct from WhatsappOutboundMessage (GH#43). Collection renamed from notifications → notification_records per decision #55 (2026-05-30).
|
|
86
86
|
|
|
87
87
|
| Property | Pattern | Type | Deprecated | Definition | Title/Description |
|
|
88
88
|
| ------------------------------------ | ------- | ---------------- | ---------- | ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
|
|
@@ -612,7 +612,7 @@ Do not include in write requests. This field is set exclusively by the server (F
|
|
|
612
612
|
| **Maximum** | ≤ 9007199254740991 |
|
|
613
613
|
|
|
614
614
|
----------------------------------------------------------------------------------------------------------------------------
|
|
615
|
-
Generated using [json-schema-for-humans](https://github.com/coveooss/json-schema-for-humans) on 2026-05-
|
|
615
|
+
Generated using [json-schema-for-humans](https://github.com/coveooss/json-schema-for-humans) on 2026-05-30 at 12:42:51 +0000
|
|
616
616
|
|
|
617
617
|
:::warning Server-set
|
|
618
618
|
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.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "OrderItem"
|
|
3
3
|
sidebar_label: "OrderItem"
|
|
4
|
-
sidebar_position:
|
|
4
|
+
sidebar_position: 24
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# OrderItem
|
|
@@ -188,7 +188,7 @@ TBD/WIP — B2B orders only. Canonical status pending cross-platform alignment.
|
|
|
188
188
|
| **Additional properties** | Not allowed |
|
|
189
189
|
| **Defined in** | #/definitions/firestore-timestamp |
|
|
190
190
|
|
|
191
|
-
**Description:** Firestore Timestamp
|
|
191
|
+
**Description:** Firestore Timestamp — Admin SDK form: \{ _seconds, _nanoseconds \}. See types/firestore.ts for REST API v1 and client SDK serialization notes (#10).
|
|
192
192
|
|
|
193
193
|
| Property | Pattern | Type | Deprecated | Definition | Title/Description |
|
|
194
194
|
| ------------------------------------------------ | ------- | ------- | ---------- | ---------- | ----------------- |
|
|
@@ -258,7 +258,7 @@ TBD/WIP — Originally from the archived Couchbase Lite (CBL) restaurant flow. C
|
|
|
258
258
|
| **Additional properties** | Not allowed |
|
|
259
259
|
| **Same definition as** | [sentAt_anyOf_i0](#sentAt_anyOf_i0) |
|
|
260
260
|
|
|
261
|
-
**Description:** Firestore Timestamp
|
|
261
|
+
**Description:** Firestore Timestamp — Admin SDK form: \{ _seconds, _nanoseconds \}. See types/firestore.ts for REST API v1 and client SDK serialization notes (#10).
|
|
262
262
|
|
|
263
263
|
### <a name="startedCookingAt_anyOf_i1"></a>10.2. Property `item 1`
|
|
264
264
|
|
|
@@ -299,7 +299,7 @@ TBD/WIP — Originally from the archived Couchbase Lite (CBL) restaurant flow. C
|
|
|
299
299
|
| **Additional properties** | Not allowed |
|
|
300
300
|
| **Same definition as** | [sentAt_anyOf_i0](#sentAt_anyOf_i0) |
|
|
301
301
|
|
|
302
|
-
**Description:** Firestore Timestamp
|
|
302
|
+
**Description:** Firestore Timestamp — Admin SDK form: \{ _seconds, _nanoseconds \}. See types/firestore.ts for REST API v1 and client SDK serialization notes (#10).
|
|
303
303
|
|
|
304
304
|
### <a name="readyAt_anyOf_i1"></a>11.2. Property `item 1`
|
|
305
305
|
|
|
@@ -340,7 +340,7 @@ TBD/WIP — Originally from the archived Couchbase Lite (CBL) restaurant flow. C
|
|
|
340
340
|
| **Additional properties** | Not allowed |
|
|
341
341
|
| **Same definition as** | [sentAt_anyOf_i0](#sentAt_anyOf_i0) |
|
|
342
342
|
|
|
343
|
-
**Description:** Firestore Timestamp
|
|
343
|
+
**Description:** Firestore Timestamp — Admin SDK form: \{ _seconds, _nanoseconds \}. See types/firestore.ts for REST API v1 and client SDK serialization notes (#10).
|
|
344
344
|
|
|
345
345
|
### <a name="servedAt_anyOf_i1"></a>12.2. Property `item 1`
|
|
346
346
|
|
|
@@ -350,7 +350,7 @@ TBD/WIP — Originally from the archived Couchbase Lite (CBL) restaurant flow. C
|
|
|
350
350
|
| **Required** | No |
|
|
351
351
|
|
|
352
352
|
----------------------------------------------------------------------------------------------------------------------------
|
|
353
|
-
Generated using [json-schema-for-humans](https://github.com/coveooss/json-schema-for-humans) on 2026-05-
|
|
353
|
+
Generated using [json-schema-for-humans](https://github.com/coveooss/json-schema-for-humans) on 2026-05-30 at 12:42:51 +0000
|
|
354
354
|
|
|
355
355
|
:::warning Server-set
|
|
356
356
|
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.
|