@ingenx-io/valets-schema-mcp-server 0.2.2 → 0.2.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/data/docs/collections/firestore-paths.md +15 -0
- package/data/docs/enums/attention-status.md +1 -1
- package/data/docs/enums/booking-status.md +1 -1
- package/data/docs/enums/customer-payment-status.md +1 -1
- package/data/docs/enums/customer-payment-target-type.md +1 -1
- package/data/docs/enums/delivery-type.md +1 -1
- package/data/docs/enums/deployment-link-type.md +1 -1
- package/data/docs/enums/event-status.md +1 -1
- package/data/docs/enums/fulfillment-status.md +1 -1
- package/data/docs/enums/loyalty-transaction-type.md +1 -1
- package/data/docs/enums/notification-channel.md +24 -0
- package/data/docs/enums/notification-entity-type.md +26 -0
- package/data/docs/enums/notification-status.md +23 -0
- 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 +6 -2
- package/data/docs/models/allowed-user.md +1 -1
- package/data/docs/models/analytics-backfill.md +1 -1
- package/data/docs/models/analytics-daily.md +1 -1
- package/data/docs/models/analytics-event.md +1 -1
- package/data/docs/models/analytics-hourly.md +1 -1
- package/data/docs/models/booking-version.md +1 -1
- package/data/docs/models/booking.md +1 -1
- package/data/docs/models/customer-payment-allocation.md +1 -1
- package/data/docs/models/customer-payment.md +1 -1
- package/data/docs/models/customer.md +1 -1
- package/data/docs/models/event.md +1 -1
- package/data/docs/models/loyalty-config.md +1 -1
- package/data/docs/models/loyalty-reward.md +1 -1
- package/data/docs/models/loyalty-status.md +1 -1
- package/data/docs/models/loyalty-transaction.md +1 -1
- package/data/docs/models/magic-link-request.md +1 -1
- package/data/docs/models/metrics-current.md +1 -1
- package/data/docs/models/metrics-daily.md +1 -1
- package/data/docs/models/metrics-monthly.md +1 -1
- package/data/docs/models/notification-record.md +619 -0
- package/data/docs/models/order-item.md +2 -2
- package/data/docs/models/order.md +2 -2
- package/data/docs/models/sale.md +2 -2
- package/data/docs/models/site-payment.md +2 -2
- package/data/docs/models/site.md +2 -2
- package/data/docs/models/stocktake-item.md +2 -2
- package/data/docs/models/stocktake.md +2 -2
- package/data/docs/models/ticket.md +2 -2
- 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 +2 -2
- package/data/docs/models/whatsapp-template.md +2 -2
- package/data/static/llms.txt +72 -0
- package/data/static/openapi.yaml +192 -0
- package/data/static/schemas.json +258 -1
- package/package.json +1 -1
|
@@ -0,0 +1,619 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "NotificationRecord"
|
|
3
|
+
sidebar_label: "NotificationRecord"
|
|
4
|
+
sidebar_position: 20
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# NotificationRecord
|
|
8
|
+
|
|
9
|
+
<details>
|
|
10
|
+
<summary>Example JSON</summary>
|
|
11
|
+
|
|
12
|
+
```json
|
|
13
|
+
{
|
|
14
|
+
"id": null,
|
|
15
|
+
"type": "phone",
|
|
16
|
+
"status": "status",
|
|
17
|
+
"subject": null,
|
|
18
|
+
"recipients": {
|
|
19
|
+
"to": [
|
|
20
|
+
{}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"relatedEntity": {
|
|
24
|
+
"type": "phone",
|
|
25
|
+
"id": "bk_abc123def456"
|
|
26
|
+
},
|
|
27
|
+
"wamid": null,
|
|
28
|
+
"templateParams": null,
|
|
29
|
+
"metadata": null,
|
|
30
|
+
"error": null,
|
|
31
|
+
"sentAt": "sentAt",
|
|
32
|
+
"createdAt": "createdAt"
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
</details>
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
- [1. Property `id`](#id)
|
|
40
|
+
- [2. Property `type`](#type)
|
|
41
|
+
- [3. Property `status`](#status)
|
|
42
|
+
- [4. Property `subject`](#subject)
|
|
43
|
+
- [5. Property `recipients`](#recipients)
|
|
44
|
+
- [5.1. Property `to`](#recipients_to)
|
|
45
|
+
- [5.1.1. to items](#recipients_to_items)
|
|
46
|
+
- [5.1.1.1. Property `email`](#recipients_to_items_email)
|
|
47
|
+
- [5.1.1.2. Property `phone`](#recipients_to_items_phone)
|
|
48
|
+
- [5.1.1.3. Property `name`](#recipients_to_items_name)
|
|
49
|
+
- [5.1.1.4. Property `role`](#recipients_to_items_role)
|
|
50
|
+
- [5.2. Property `cc`](#recipients_cc)
|
|
51
|
+
- [5.2.1. cc items](#recipients_cc_items)
|
|
52
|
+
- [5.2.1.1. Property `email`](#recipients_cc_items_email)
|
|
53
|
+
- [5.2.1.2. Property `phone`](#recipients_cc_items_phone)
|
|
54
|
+
- [5.2.1.3. Property `name`](#recipients_cc_items_name)
|
|
55
|
+
- [5.2.1.4. Property `role`](#recipients_cc_items_role)
|
|
56
|
+
- [5.3. Property `bcc`](#recipients_bcc)
|
|
57
|
+
- [5.3.1. bcc items](#recipients_bcc_items)
|
|
58
|
+
- [5.3.1.1. Property `email`](#recipients_bcc_items_email)
|
|
59
|
+
- [5.3.1.2. Property `phone`](#recipients_bcc_items_phone)
|
|
60
|
+
- [5.3.1.3. Property `name`](#recipients_bcc_items_name)
|
|
61
|
+
- [5.3.1.4. Property `role`](#recipients_bcc_items_role)
|
|
62
|
+
- [6. Property `relatedEntity`](#relatedEntity)
|
|
63
|
+
- [6.1. Property `type`](#relatedEntity_type)
|
|
64
|
+
- [6.2. Property `id`](#relatedEntity_id)
|
|
65
|
+
- [7. Property `wamid`](#wamid)
|
|
66
|
+
- [8. Property `templateParams`](#templateParams)
|
|
67
|
+
- [8.1. Property `additionalProperties`](#templateParams_additionalProperties)
|
|
68
|
+
- [9. Property `metadata`](#metadata)
|
|
69
|
+
- [9.1. Property `additionalProperties`](#metadata_additionalProperties)
|
|
70
|
+
- [10. Property `error`](#error)
|
|
71
|
+
- [11. Property `sentAt`](#sentAt)
|
|
72
|
+
- [11.1. Property `_seconds`](#sentAt__seconds)
|
|
73
|
+
- [11.2. Property `_nanoseconds`](#sentAt__nanoseconds)
|
|
74
|
+
- [12. Property `createdAt`](#createdAt)
|
|
75
|
+
- [12.1. Property `_seconds`](#sentAt__seconds)
|
|
76
|
+
- [12.2. Property `_nanoseconds`](#sentAt__nanoseconds)
|
|
77
|
+
|
|
78
|
+
| | |
|
|
79
|
+
| ------------------------- | --------------------------------- |
|
|
80
|
+
| **Type** | `object` |
|
|
81
|
+
| **Required** | No |
|
|
82
|
+
| **Additional properties** | Not allowed |
|
|
83
|
+
| **Defined in** | #/definitions/notification-record |
|
|
84
|
+
|
|
85
|
+
**Description:** NotificationRecord — backend-written, multi-channel notification audit log (GH#48). Paths: companies/\{cid\}/notifications/\{id\} (always) and companies/\{cid\}/orders/\{oid\}/notifications/\{id\} (dual-write when relatedEntity.type=order). Consumers read only. Distinct from WhatsappOutboundMessage (GH#43).
|
|
86
|
+
|
|
87
|
+
| Property | Pattern | Type | Deprecated | Definition | Title/Description |
|
|
88
|
+
| ------------------------------------ | ------- | ---------------- | ---------- | ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
|
|
89
|
+
| - [id](#id ) | No | string or null | No | - | (Read-only) Firestore document ID, auto-generated. Same ID is used in both the company-wide and order-scoped copies. |
|
|
90
|
+
| + [type](#type ) | No | enum (of string) | No | In #/definitions/notification-channel | (Read-only) Delivery channel. |
|
|
91
|
+
| + [status](#status ) | No | enum (of string) | No | In #/definitions/notification-status | (Read-only) Delivery status after the send attempt. |
|
|
92
|
+
| - [subject](#subject ) | No | string or null | No | - | (Read-only) Subject line. Present for email notifications only. |
|
|
93
|
+
| + [recipients](#recipients ) | No | object | No | - | (Read-only) Recipients of the notification. |
|
|
94
|
+
| + [relatedEntity](#relatedEntity ) | No | object | No | - | (Read-only) Entity that triggered the notification. type=order triggers the dual-write to the order subcollection. |
|
|
95
|
+
| - [wamid](#wamid ) | No | string or null | No | - | (Read-only) WhatsApp message ID from the Meta API response. Present on successful whatsapp sends only. |
|
|
96
|
+
| - [templateParams](#templateParams ) | No | object or null | No | - | (Read-only) Filled-in template variable values at send time. Allows reconstructing the sent message without fetching from Meta. |
|
|
97
|
+
| - [metadata](#metadata ) | No | object or null | No | - | (Read-only) Channel-specific extras (e.g. senderPhoneId, templateName, orderNumber). |
|
|
98
|
+
| - [error](#error ) | No | string or null | No | - | (Read-only) Failure reason. Present on status=failed. |
|
|
99
|
+
| + [sentAt](#sentAt ) | No | object | No | In #/definitions/firestore-timestamp | (Read-only) When the send was attempted. |
|
|
100
|
+
| + [createdAt](#createdAt ) | No | object | No | In #/definitions/firestore-timestamp | (Read-only) When the record was created. |
|
|
101
|
+
|
|
102
|
+
## <a name="id"></a>1. Property `id`
|
|
103
|
+
|
|
104
|
+
| | |
|
|
105
|
+
| ------------ | ---------------- |
|
|
106
|
+
| **Type** | `string or null` |
|
|
107
|
+
| **Required** | No |
|
|
108
|
+
|
|
109
|
+
**Description:** (Read-only) Firestore document ID, auto-generated. Same ID is used in both the company-wide and order-scoped copies.
|
|
110
|
+
|
|
111
|
+
:::warning Server-set
|
|
112
|
+
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.
|
|
113
|
+
:::
|
|
114
|
+
|
|
115
|
+
## <a name="type"></a>2. Property `type`
|
|
116
|
+
|
|
117
|
+
| | |
|
|
118
|
+
| -------------- | ---------------------------------- |
|
|
119
|
+
| **Type** | `enum (of string)` |
|
|
120
|
+
| **Required** | Yes |
|
|
121
|
+
| **Defined in** | #/definitions/notification-channel |
|
|
122
|
+
|
|
123
|
+
**Description:** (Read-only) Delivery channel.
|
|
124
|
+
|
|
125
|
+
Must be one of:
|
|
126
|
+
* "email"
|
|
127
|
+
* "whatsapp"
|
|
128
|
+
* "sms"
|
|
129
|
+
* "push"
|
|
130
|
+
|
|
131
|
+
:::warning Server-set
|
|
132
|
+
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.
|
|
133
|
+
:::
|
|
134
|
+
|
|
135
|
+
## <a name="status"></a>3. Property `status`
|
|
136
|
+
|
|
137
|
+
| | |
|
|
138
|
+
| -------------- | --------------------------------- |
|
|
139
|
+
| **Type** | `enum (of string)` |
|
|
140
|
+
| **Required** | Yes |
|
|
141
|
+
| **Defined in** | #/definitions/notification-status |
|
|
142
|
+
|
|
143
|
+
**Description:** (Read-only) Delivery status after the send attempt.
|
|
144
|
+
|
|
145
|
+
Must be one of:
|
|
146
|
+
* "sent"
|
|
147
|
+
* "failed"
|
|
148
|
+
* "pending"
|
|
149
|
+
|
|
150
|
+
:::warning Server-set
|
|
151
|
+
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.
|
|
152
|
+
:::
|
|
153
|
+
|
|
154
|
+
## <a name="subject"></a>4. Property `subject`
|
|
155
|
+
|
|
156
|
+
| | |
|
|
157
|
+
| ------------ | ---------------- |
|
|
158
|
+
| **Type** | `string or null` |
|
|
159
|
+
| **Required** | No |
|
|
160
|
+
|
|
161
|
+
**Description:** (Read-only) Subject line. Present for email notifications only.
|
|
162
|
+
|
|
163
|
+
:::warning Server-set
|
|
164
|
+
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.
|
|
165
|
+
:::
|
|
166
|
+
|
|
167
|
+
## <a name="recipients"></a>5. Property `recipients`
|
|
168
|
+
|
|
169
|
+
| | |
|
|
170
|
+
| ------------------------- | ----------- |
|
|
171
|
+
| **Type** | `object` |
|
|
172
|
+
| **Required** | Yes |
|
|
173
|
+
| **Additional properties** | Not allowed |
|
|
174
|
+
|
|
175
|
+
**Description:** (Read-only) Recipients of the notification.
|
|
176
|
+
|
|
177
|
+
| Property | Pattern | Type | Deprecated | Definition | Title/Description |
|
|
178
|
+
| ------------------------- | ------- | --------------- | ---------- | ---------- | ----------------------- |
|
|
179
|
+
| + [to](#recipients_to ) | No | array of object | No | - | Primary recipients. |
|
|
180
|
+
| - [cc](#recipients_cc ) | No | array of object | No | - | CC recipients (email). |
|
|
181
|
+
| - [bcc](#recipients_bcc ) | No | array of object | No | - | BCC recipients (email). |
|
|
182
|
+
|
|
183
|
+
### <a name="recipients_to"></a>5.1. Property `to`
|
|
184
|
+
|
|
185
|
+
| | |
|
|
186
|
+
| ------------ | ----------------- |
|
|
187
|
+
| **Type** | `array of object` |
|
|
188
|
+
| **Required** | Yes |
|
|
189
|
+
|
|
190
|
+
**Description:** Primary recipients.
|
|
191
|
+
|
|
192
|
+
| | Array restrictions |
|
|
193
|
+
| -------------------- | ------------------ |
|
|
194
|
+
| **Min items** | N/A |
|
|
195
|
+
| **Max items** | N/A |
|
|
196
|
+
| **Items unicity** | False |
|
|
197
|
+
| **Additional items** | False |
|
|
198
|
+
| **Tuple validation** | See below |
|
|
199
|
+
|
|
200
|
+
| Each item of this array must be | Description |
|
|
201
|
+
| -------------------------------- | --------------------------------- |
|
|
202
|
+
| [to items](#recipients_to_items) | A notification recipient (GH#48). |
|
|
203
|
+
|
|
204
|
+
#### <a name="recipients_to_items"></a>5.1.1. to items
|
|
205
|
+
|
|
206
|
+
| | |
|
|
207
|
+
| ------------------------- | ----------- |
|
|
208
|
+
| **Type** | `object` |
|
|
209
|
+
| **Required** | No |
|
|
210
|
+
| **Additional properties** | Not allowed |
|
|
211
|
+
|
|
212
|
+
**Description:** A notification recipient (GH#48).
|
|
213
|
+
|
|
214
|
+
| Property | Pattern | Type | Deprecated | Definition | Title/Description |
|
|
215
|
+
| -------------------------------------- | ------- | ------ | ---------- | ---------- | ----------------------------------------------------------------------- |
|
|
216
|
+
| - [email](#recipients_to_items_email ) | No | string | No | - | Recipient email address. Present for email notifications. |
|
|
217
|
+
| - [phone](#recipients_to_items_phone ) | No | string | No | - | Recipient phone number (E.164). Present for whatsapp/sms notifications. |
|
|
218
|
+
| - [name](#recipients_to_items_name ) | No | string | No | - | Recipient display name. |
|
|
219
|
+
| - [role](#recipients_to_items_role ) | No | string | No | - | Recipient role (e.g. organizer, customer). |
|
|
220
|
+
|
|
221
|
+
##### <a name="recipients_to_items_email"></a>5.1.1.1. Property `email`
|
|
222
|
+
|
|
223
|
+
| | |
|
|
224
|
+
| ------------ | -------- |
|
|
225
|
+
| **Type** | `string` |
|
|
226
|
+
| **Required** | No |
|
|
227
|
+
|
|
228
|
+
**Description:** Recipient email address. Present for email notifications.
|
|
229
|
+
|
|
230
|
+
##### <a name="recipients_to_items_phone"></a>5.1.1.2. Property `phone`
|
|
231
|
+
|
|
232
|
+
| | |
|
|
233
|
+
| ------------ | -------- |
|
|
234
|
+
| **Type** | `string` |
|
|
235
|
+
| **Required** | No |
|
|
236
|
+
|
|
237
|
+
**Description:** Recipient phone number (E.164). Present for whatsapp/sms notifications.
|
|
238
|
+
|
|
239
|
+
##### <a name="recipients_to_items_name"></a>5.1.1.3. Property `name`
|
|
240
|
+
|
|
241
|
+
| | |
|
|
242
|
+
| ------------ | -------- |
|
|
243
|
+
| **Type** | `string` |
|
|
244
|
+
| **Required** | No |
|
|
245
|
+
|
|
246
|
+
**Description:** Recipient display name.
|
|
247
|
+
|
|
248
|
+
##### <a name="recipients_to_items_role"></a>5.1.1.4. Property `role`
|
|
249
|
+
|
|
250
|
+
| | |
|
|
251
|
+
| ------------ | -------- |
|
|
252
|
+
| **Type** | `string` |
|
|
253
|
+
| **Required** | No |
|
|
254
|
+
|
|
255
|
+
**Description:** Recipient role (e.g. organizer, customer).
|
|
256
|
+
|
|
257
|
+
### <a name="recipients_cc"></a>5.2. Property `cc`
|
|
258
|
+
|
|
259
|
+
| | |
|
|
260
|
+
| ------------ | ----------------- |
|
|
261
|
+
| **Type** | `array of object` |
|
|
262
|
+
| **Required** | No |
|
|
263
|
+
|
|
264
|
+
**Description:** CC recipients (email).
|
|
265
|
+
|
|
266
|
+
| | Array restrictions |
|
|
267
|
+
| -------------------- | ------------------ |
|
|
268
|
+
| **Min items** | N/A |
|
|
269
|
+
| **Max items** | N/A |
|
|
270
|
+
| **Items unicity** | False |
|
|
271
|
+
| **Additional items** | False |
|
|
272
|
+
| **Tuple validation** | See below |
|
|
273
|
+
|
|
274
|
+
| Each item of this array must be | Description |
|
|
275
|
+
| -------------------------------- | --------------------------------- |
|
|
276
|
+
| [cc items](#recipients_cc_items) | A notification recipient (GH#48). |
|
|
277
|
+
|
|
278
|
+
#### <a name="recipients_cc_items"></a>5.2.1. cc items
|
|
279
|
+
|
|
280
|
+
| | |
|
|
281
|
+
| ------------------------- | ----------- |
|
|
282
|
+
| **Type** | `object` |
|
|
283
|
+
| **Required** | No |
|
|
284
|
+
| **Additional properties** | Not allowed |
|
|
285
|
+
|
|
286
|
+
**Description:** A notification recipient (GH#48).
|
|
287
|
+
|
|
288
|
+
| Property | Pattern | Type | Deprecated | Definition | Title/Description |
|
|
289
|
+
| -------------------------------------- | ------- | ------ | ---------- | ---------- | ----------------------------------------------------------------------- |
|
|
290
|
+
| - [email](#recipients_cc_items_email ) | No | string | No | - | Recipient email address. Present for email notifications. |
|
|
291
|
+
| - [phone](#recipients_cc_items_phone ) | No | string | No | - | Recipient phone number (E.164). Present for whatsapp/sms notifications. |
|
|
292
|
+
| - [name](#recipients_cc_items_name ) | No | string | No | - | Recipient display name. |
|
|
293
|
+
| - [role](#recipients_cc_items_role ) | No | string | No | - | Recipient role (e.g. organizer, customer). |
|
|
294
|
+
|
|
295
|
+
##### <a name="recipients_cc_items_email"></a>5.2.1.1. Property `email`
|
|
296
|
+
|
|
297
|
+
| | |
|
|
298
|
+
| ------------ | -------- |
|
|
299
|
+
| **Type** | `string` |
|
|
300
|
+
| **Required** | No |
|
|
301
|
+
|
|
302
|
+
**Description:** Recipient email address. Present for email notifications.
|
|
303
|
+
|
|
304
|
+
##### <a name="recipients_cc_items_phone"></a>5.2.1.2. Property `phone`
|
|
305
|
+
|
|
306
|
+
| | |
|
|
307
|
+
| ------------ | -------- |
|
|
308
|
+
| **Type** | `string` |
|
|
309
|
+
| **Required** | No |
|
|
310
|
+
|
|
311
|
+
**Description:** Recipient phone number (E.164). Present for whatsapp/sms notifications.
|
|
312
|
+
|
|
313
|
+
##### <a name="recipients_cc_items_name"></a>5.2.1.3. Property `name`
|
|
314
|
+
|
|
315
|
+
| | |
|
|
316
|
+
| ------------ | -------- |
|
|
317
|
+
| **Type** | `string` |
|
|
318
|
+
| **Required** | No |
|
|
319
|
+
|
|
320
|
+
**Description:** Recipient display name.
|
|
321
|
+
|
|
322
|
+
##### <a name="recipients_cc_items_role"></a>5.2.1.4. Property `role`
|
|
323
|
+
|
|
324
|
+
| | |
|
|
325
|
+
| ------------ | -------- |
|
|
326
|
+
| **Type** | `string` |
|
|
327
|
+
| **Required** | No |
|
|
328
|
+
|
|
329
|
+
**Description:** Recipient role (e.g. organizer, customer).
|
|
330
|
+
|
|
331
|
+
### <a name="recipients_bcc"></a>5.3. Property `bcc`
|
|
332
|
+
|
|
333
|
+
| | |
|
|
334
|
+
| ------------ | ----------------- |
|
|
335
|
+
| **Type** | `array of object` |
|
|
336
|
+
| **Required** | No |
|
|
337
|
+
|
|
338
|
+
**Description:** BCC recipients (email).
|
|
339
|
+
|
|
340
|
+
| | Array restrictions |
|
|
341
|
+
| -------------------- | ------------------ |
|
|
342
|
+
| **Min items** | N/A |
|
|
343
|
+
| **Max items** | N/A |
|
|
344
|
+
| **Items unicity** | False |
|
|
345
|
+
| **Additional items** | False |
|
|
346
|
+
| **Tuple validation** | See below |
|
|
347
|
+
|
|
348
|
+
| Each item of this array must be | Description |
|
|
349
|
+
| ---------------------------------- | --------------------------------- |
|
|
350
|
+
| [bcc items](#recipients_bcc_items) | A notification recipient (GH#48). |
|
|
351
|
+
|
|
352
|
+
#### <a name="recipients_bcc_items"></a>5.3.1. bcc items
|
|
353
|
+
|
|
354
|
+
| | |
|
|
355
|
+
| ------------------------- | ----------- |
|
|
356
|
+
| **Type** | `object` |
|
|
357
|
+
| **Required** | No |
|
|
358
|
+
| **Additional properties** | Not allowed |
|
|
359
|
+
|
|
360
|
+
**Description:** A notification recipient (GH#48).
|
|
361
|
+
|
|
362
|
+
| Property | Pattern | Type | Deprecated | Definition | Title/Description |
|
|
363
|
+
| --------------------------------------- | ------- | ------ | ---------- | ---------- | ----------------------------------------------------------------------- |
|
|
364
|
+
| - [email](#recipients_bcc_items_email ) | No | string | No | - | Recipient email address. Present for email notifications. |
|
|
365
|
+
| - [phone](#recipients_bcc_items_phone ) | No | string | No | - | Recipient phone number (E.164). Present for whatsapp/sms notifications. |
|
|
366
|
+
| - [name](#recipients_bcc_items_name ) | No | string | No | - | Recipient display name. |
|
|
367
|
+
| - [role](#recipients_bcc_items_role ) | No | string | No | - | Recipient role (e.g. organizer, customer). |
|
|
368
|
+
|
|
369
|
+
##### <a name="recipients_bcc_items_email"></a>5.3.1.1. Property `email`
|
|
370
|
+
|
|
371
|
+
| | |
|
|
372
|
+
| ------------ | -------- |
|
|
373
|
+
| **Type** | `string` |
|
|
374
|
+
| **Required** | No |
|
|
375
|
+
|
|
376
|
+
**Description:** Recipient email address. Present for email notifications.
|
|
377
|
+
|
|
378
|
+
##### <a name="recipients_bcc_items_phone"></a>5.3.1.2. Property `phone`
|
|
379
|
+
|
|
380
|
+
| | |
|
|
381
|
+
| ------------ | -------- |
|
|
382
|
+
| **Type** | `string` |
|
|
383
|
+
| **Required** | No |
|
|
384
|
+
|
|
385
|
+
**Description:** Recipient phone number (E.164). Present for whatsapp/sms notifications.
|
|
386
|
+
|
|
387
|
+
##### <a name="recipients_bcc_items_name"></a>5.3.1.3. Property `name`
|
|
388
|
+
|
|
389
|
+
| | |
|
|
390
|
+
| ------------ | -------- |
|
|
391
|
+
| **Type** | `string` |
|
|
392
|
+
| **Required** | No |
|
|
393
|
+
|
|
394
|
+
**Description:** Recipient display name.
|
|
395
|
+
|
|
396
|
+
##### <a name="recipients_bcc_items_role"></a>5.3.1.4. Property `role`
|
|
397
|
+
|
|
398
|
+
| | |
|
|
399
|
+
| ------------ | -------- |
|
|
400
|
+
| **Type** | `string` |
|
|
401
|
+
| **Required** | No |
|
|
402
|
+
|
|
403
|
+
**Description:** Recipient role (e.g. organizer, customer).
|
|
404
|
+
|
|
405
|
+
:::warning Server-set
|
|
406
|
+
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.
|
|
407
|
+
:::
|
|
408
|
+
|
|
409
|
+
## <a name="relatedEntity"></a>6. Property `relatedEntity`
|
|
410
|
+
|
|
411
|
+
| | |
|
|
412
|
+
| ------------------------- | ----------- |
|
|
413
|
+
| **Type** | `object` |
|
|
414
|
+
| **Required** | Yes |
|
|
415
|
+
| **Additional properties** | Not allowed |
|
|
416
|
+
|
|
417
|
+
**Description:** (Read-only) Entity that triggered the notification. type=order triggers the dual-write to the order subcollection.
|
|
418
|
+
|
|
419
|
+
| Property | Pattern | Type | Deprecated | Definition | Title/Description |
|
|
420
|
+
| ------------------------------ | ------- | ---------------- | ---------- | ----------------------------------------- | -------------------------------------------------- |
|
|
421
|
+
| + [type](#relatedEntity_type ) | No | enum (of string) | No | In #/definitions/notification-entity-type | Entity type this notification relates to. |
|
|
422
|
+
| + [id](#relatedEntity_id ) | No | string | No | - | Entity document ID (e.g. orderId when type=order). |
|
|
423
|
+
|
|
424
|
+
### <a name="relatedEntity_type"></a>6.1. Property `type`
|
|
425
|
+
|
|
426
|
+
| | |
|
|
427
|
+
| -------------- | -------------------------------------- |
|
|
428
|
+
| **Type** | `enum (of string)` |
|
|
429
|
+
| **Required** | Yes |
|
|
430
|
+
| **Defined in** | #/definitions/notification-entity-type |
|
|
431
|
+
|
|
432
|
+
**Description:** Entity type this notification relates to.
|
|
433
|
+
|
|
434
|
+
Must be one of:
|
|
435
|
+
* "order"
|
|
436
|
+
* "booking"
|
|
437
|
+
* "customer"
|
|
438
|
+
* "digest"
|
|
439
|
+
* "magic_link"
|
|
440
|
+
* "other"
|
|
441
|
+
|
|
442
|
+
### <a name="relatedEntity_id"></a>6.2. Property `id`
|
|
443
|
+
|
|
444
|
+
| | |
|
|
445
|
+
| ------------ | -------- |
|
|
446
|
+
| **Type** | `string` |
|
|
447
|
+
| **Required** | Yes |
|
|
448
|
+
|
|
449
|
+
**Description:** Entity document ID (e.g. orderId when type=order).
|
|
450
|
+
|
|
451
|
+
:::warning Server-set
|
|
452
|
+
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.
|
|
453
|
+
:::
|
|
454
|
+
|
|
455
|
+
## <a name="wamid"></a>7. Property `wamid`
|
|
456
|
+
|
|
457
|
+
| | |
|
|
458
|
+
| ------------ | ---------------- |
|
|
459
|
+
| **Type** | `string or null` |
|
|
460
|
+
| **Required** | No |
|
|
461
|
+
|
|
462
|
+
**Description:** (Read-only) WhatsApp message ID from the Meta API response. Present on successful whatsapp sends only.
|
|
463
|
+
|
|
464
|
+
:::warning Server-set
|
|
465
|
+
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.
|
|
466
|
+
:::
|
|
467
|
+
|
|
468
|
+
## <a name="templateParams"></a>8. Property `templateParams`
|
|
469
|
+
|
|
470
|
+
| | |
|
|
471
|
+
| ------------ | ---------------- |
|
|
472
|
+
| **Type** | `object or null` |
|
|
473
|
+
| **Required** | No |
|
|
474
|
+
|
|
475
|
+
**Description:** (Read-only) Filled-in template variable values at send time. Allows reconstructing the sent message without fetching from Meta.
|
|
476
|
+
|
|
477
|
+
| Property | Pattern | Type | Deprecated | Definition | Title/Description |
|
|
478
|
+
| ------------------------------------------- | ------- | ------ | ---------- | ---------- | ----------------- |
|
|
479
|
+
| - [](#templateParams_additionalProperties ) | No | string | No | - | - |
|
|
480
|
+
|
|
481
|
+
### <a name="templateParams_additionalProperties"></a>8.1. Property `additionalProperties`
|
|
482
|
+
|
|
483
|
+
| | |
|
|
484
|
+
| ------------ | -------- |
|
|
485
|
+
| **Type** | `string` |
|
|
486
|
+
| **Required** | No |
|
|
487
|
+
|
|
488
|
+
:::warning Server-set
|
|
489
|
+
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.
|
|
490
|
+
:::
|
|
491
|
+
|
|
492
|
+
## <a name="metadata"></a>9. Property `metadata`
|
|
493
|
+
|
|
494
|
+
| | |
|
|
495
|
+
| ------------ | ---------------- |
|
|
496
|
+
| **Type** | `object or null` |
|
|
497
|
+
| **Required** | No |
|
|
498
|
+
|
|
499
|
+
**Description:** (Read-only) Channel-specific extras (e.g. senderPhoneId, templateName, orderNumber).
|
|
500
|
+
|
|
501
|
+
| Property | Pattern | Type | Deprecated | Definition | Title/Description |
|
|
502
|
+
| ------------------------------------- | ------- | ------ | ---------- | ---------- | ----------------- |
|
|
503
|
+
| - [](#metadata_additionalProperties ) | No | object | No | - | - |
|
|
504
|
+
|
|
505
|
+
### <a name="metadata_additionalProperties"></a>9.1. Property `additionalProperties`
|
|
506
|
+
|
|
507
|
+
| | |
|
|
508
|
+
| ------------------------- | ---------------- |
|
|
509
|
+
| **Type** | `object` |
|
|
510
|
+
| **Required** | No |
|
|
511
|
+
| **Additional properties** | Any type allowed |
|
|
512
|
+
|
|
513
|
+
:::warning Server-set
|
|
514
|
+
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.
|
|
515
|
+
:::
|
|
516
|
+
|
|
517
|
+
## <a name="error"></a>10. Property `error`
|
|
518
|
+
|
|
519
|
+
| | |
|
|
520
|
+
| ------------ | ---------------- |
|
|
521
|
+
| **Type** | `string or null` |
|
|
522
|
+
| **Required** | No |
|
|
523
|
+
|
|
524
|
+
**Description:** (Read-only) Failure reason. Present on status=failed.
|
|
525
|
+
|
|
526
|
+
:::warning Server-set
|
|
527
|
+
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.
|
|
528
|
+
:::
|
|
529
|
+
|
|
530
|
+
## <a name="sentAt"></a>11. Property `sentAt`
|
|
531
|
+
|
|
532
|
+
| | |
|
|
533
|
+
| ------------------------- | --------------------------------- |
|
|
534
|
+
| **Type** | `object` |
|
|
535
|
+
| **Required** | Yes |
|
|
536
|
+
| **Additional properties** | Not allowed |
|
|
537
|
+
| **Defined in** | #/definitions/firestore-timestamp |
|
|
538
|
+
|
|
539
|
+
**Description:** (Read-only) When the send was attempted.
|
|
540
|
+
|
|
541
|
+
| Property | Pattern | Type | Deprecated | Definition | Title/Description |
|
|
542
|
+
| --------------------------------------- | ------- | ------- | ---------- | ---------- | ----------------- |
|
|
543
|
+
| + [_seconds](#sentAt__seconds ) | No | integer | No | - | - |
|
|
544
|
+
| + [_nanoseconds](#sentAt__nanoseconds ) | No | integer | No | - | - |
|
|
545
|
+
|
|
546
|
+
### <a name="sentAt__seconds"></a>11.1. Property `_seconds`
|
|
547
|
+
|
|
548
|
+
| | |
|
|
549
|
+
| ------------ | --------- |
|
|
550
|
+
| **Type** | `integer` |
|
|
551
|
+
| **Required** | Yes |
|
|
552
|
+
|
|
553
|
+
| Restrictions | |
|
|
554
|
+
| ------------ | ---------------------- |
|
|
555
|
+
| **Minimum** | ≥ -9007199254740991 |
|
|
556
|
+
| **Maximum** | ≤ 9007199254740991 |
|
|
557
|
+
|
|
558
|
+
### <a name="sentAt__nanoseconds"></a>11.2. Property `_nanoseconds`
|
|
559
|
+
|
|
560
|
+
| | |
|
|
561
|
+
| ------------ | --------- |
|
|
562
|
+
| **Type** | `integer` |
|
|
563
|
+
| **Required** | Yes |
|
|
564
|
+
|
|
565
|
+
| Restrictions | |
|
|
566
|
+
| ------------ | ---------------------- |
|
|
567
|
+
| **Minimum** | ≥ -9007199254740991 |
|
|
568
|
+
| **Maximum** | ≤ 9007199254740991 |
|
|
569
|
+
|
|
570
|
+
:::warning Server-set
|
|
571
|
+
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.
|
|
572
|
+
:::
|
|
573
|
+
|
|
574
|
+
## <a name="createdAt"></a>12. Property `createdAt`
|
|
575
|
+
|
|
576
|
+
| | |
|
|
577
|
+
| ------------------------- | --------------------------------- |
|
|
578
|
+
| **Type** | `object` |
|
|
579
|
+
| **Required** | Yes |
|
|
580
|
+
| **Additional properties** | Not allowed |
|
|
581
|
+
| **Defined in** | #/definitions/firestore-timestamp |
|
|
582
|
+
|
|
583
|
+
**Description:** (Read-only) When the record was created.
|
|
584
|
+
|
|
585
|
+
| Property | Pattern | Type | Deprecated | Definition | Title/Description |
|
|
586
|
+
| --------------------------------------- | ------- | ------- | ---------- | ---------- | ----------------- |
|
|
587
|
+
| + [_seconds](#sentAt__seconds ) | No | integer | No | - | - |
|
|
588
|
+
| + [_nanoseconds](#sentAt__nanoseconds ) | No | integer | No | - | - |
|
|
589
|
+
|
|
590
|
+
### <a name="sentAt__seconds"></a>12.1. Property `_seconds`
|
|
591
|
+
|
|
592
|
+
| | |
|
|
593
|
+
| ------------ | --------- |
|
|
594
|
+
| **Type** | `integer` |
|
|
595
|
+
| **Required** | Yes |
|
|
596
|
+
|
|
597
|
+
| Restrictions | |
|
|
598
|
+
| ------------ | ---------------------- |
|
|
599
|
+
| **Minimum** | ≥ -9007199254740991 |
|
|
600
|
+
| **Maximum** | ≤ 9007199254740991 |
|
|
601
|
+
|
|
602
|
+
### <a name="sentAt__nanoseconds"></a>12.2. Property `_nanoseconds`
|
|
603
|
+
|
|
604
|
+
| | |
|
|
605
|
+
| ------------ | --------- |
|
|
606
|
+
| **Type** | `integer` |
|
|
607
|
+
| **Required** | Yes |
|
|
608
|
+
|
|
609
|
+
| Restrictions | |
|
|
610
|
+
| ------------ | ---------------------- |
|
|
611
|
+
| **Minimum** | ≥ -9007199254740991 |
|
|
612
|
+
| **Maximum** | ≤ 9007199254740991 |
|
|
613
|
+
|
|
614
|
+
----------------------------------------------------------------------------------------------------------------------------
|
|
615
|
+
Generated using [json-schema-for-humans](https://github.com/coveooss/json-schema-for-humans) on 2026-05-27 at 15:51:05 +0000
|
|
616
|
+
|
|
617
|
+
:::warning Server-set
|
|
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.
|
|
619
|
+
:::
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "OrderItem"
|
|
3
3
|
sidebar_label: "OrderItem"
|
|
4
|
-
sidebar_position:
|
|
4
|
+
sidebar_position: 22
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# OrderItem
|
|
@@ -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-27 at
|
|
353
|
+
Generated using [json-schema-for-humans](https://github.com/coveooss/json-schema-for-humans) on 2026-05-27 at 15:51:05 +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.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "Order"
|
|
3
3
|
sidebar_label: "Order"
|
|
4
|
-
sidebar_position:
|
|
4
|
+
sidebar_position: 21
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Order
|
|
@@ -1652,7 +1652,7 @@ Set only by the mobile app when the user manually edits the order total. Dashboa
|
|
|
1652
1652
|
**Description:** FK → Sale.id. Link to associated Sale document.
|
|
1653
1653
|
|
|
1654
1654
|
----------------------------------------------------------------------------------------------------------------------------
|
|
1655
|
-
Generated using [json-schema-for-humans](https://github.com/coveooss/json-schema-for-humans) on 2026-05-27 at
|
|
1655
|
+
Generated using [json-schema-for-humans](https://github.com/coveooss/json-schema-for-humans) on 2026-05-27 at 15:51:05 +0000
|
|
1656
1656
|
|
|
1657
1657
|
## Related Decisions
|
|
1658
1658
|
|
package/data/docs/models/sale.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
title: "Sale"
|
|
3
3
|
sidebar_label: "Sale"
|
|
4
|
-
sidebar_position:
|
|
4
|
+
sidebar_position: 23
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# Sale
|
|
@@ -524,7 +524,7 @@ Set at creation only. This field cannot be modified after the document is create
|
|
|
524
524
|
| **Required** | No |
|
|
525
525
|
|
|
526
526
|
----------------------------------------------------------------------------------------------------------------------------
|
|
527
|
-
Generated using [json-schema-for-humans](https://github.com/coveooss/json-schema-for-humans) on 2026-05-27 at
|
|
527
|
+
Generated using [json-schema-for-humans](https://github.com/coveooss/json-schema-for-humans) on 2026-05-27 at 15:51:05 +0000
|
|
528
528
|
|
|
529
529
|
:::warning Server-set
|
|
530
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.
|