@flipdish/events 1.26020.0 → 1.26023.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/package.json
CHANGED
|
@@ -2,6 +2,7 @@ import { extendZodWithOpenApi } from '@asteasolutions/zod-to-openapi';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { orgIdSchema, propertyIdSchema } from '../../../common-schemas.js';
|
|
4
4
|
import { metadataSchema } from '../../../metadata.js';
|
|
5
|
+
import { SalesChannelTypes } from '../../constants.js';
|
|
5
6
|
import { menuIdSchema, menuPublishIdSchema, revisionIdSchema } from '../schemas/common-schemas.js';
|
|
6
7
|
import { eventTypes } from './constants.js';
|
|
7
8
|
import { MENU_VALIDATION_FAILED_V1_WEBHOOK_EXAMPLE } from './webhook-examples.js';
|
|
@@ -12,7 +13,7 @@ export const MenuValidationFailedEventPropertiesSchema = z
|
|
|
12
13
|
.object({
|
|
13
14
|
orgId: orgIdSchema,
|
|
14
15
|
brandId: z.string().openapi({
|
|
15
|
-
description: 'Unique ID of the client’s Brand that owns this menu. This ID remains the same for subsequent updates / revisions of the same menu
|
|
16
|
+
description: 'Unique ID of the client’s Brand that owns this menu. This ID remains the same for subsequent updates / revisions of the same menu',
|
|
16
17
|
example: 'br456',
|
|
17
18
|
}),
|
|
18
19
|
propertyId: propertyIdSchema,
|
|
@@ -20,6 +21,10 @@ export const MenuValidationFailedEventPropertiesSchema = z
|
|
|
20
21
|
description: 'Unique ID of a Sales Channel, a digital channel tied to a Property and Brand (e.g., kiosk, web, mobile app). This ID remains the same for subsequent updates / revisions of the same menu.',
|
|
21
22
|
example: 'sc123',
|
|
22
23
|
}),
|
|
24
|
+
salesChannelType: z.nativeEnum(SalesChannelTypes).openapi({
|
|
25
|
+
description: 'Type of channel where orders are captured',
|
|
26
|
+
example: 'UberEats',
|
|
27
|
+
}),
|
|
23
28
|
menuId: menuIdSchema,
|
|
24
29
|
menuRevisionId: revisionIdSchema,
|
|
25
30
|
menuPublishId: menuPublishIdSchema,
|
|
@@ -2,6 +2,7 @@ import { extendZodWithOpenApi } from '@asteasolutions/zod-to-openapi';
|
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { orgIdSchema, propertyIdSchema } from '../../../common-schemas.js';
|
|
4
4
|
import { metadataSchema } from '../../../metadata.js';
|
|
5
|
+
import { SalesChannelTypes } from '../../constants.js';
|
|
5
6
|
import { menuIdSchema, menuPublishIdSchema, revisionIdSchema } from '../schemas/common-schemas.js';
|
|
6
7
|
import { eventTypes } from './constants.js';
|
|
7
8
|
import { MENU_VALIDATION_FAILED_V1_WEBHOOK_EXAMPLE } from './webhook-examples.js';
|
|
@@ -15,7 +16,7 @@ export const MenuValidationFailedEventPropertiesSchema = z
|
|
|
15
16
|
orgId: orgIdSchema,
|
|
16
17
|
brandId: z.string().openapi({
|
|
17
18
|
description:
|
|
18
|
-
'Unique ID of the client’s Brand that owns this menu. This ID remains the same for subsequent updates / revisions of the same menu
|
|
19
|
+
'Unique ID of the client’s Brand that owns this menu. This ID remains the same for subsequent updates / revisions of the same menu',
|
|
19
20
|
example: 'br456',
|
|
20
21
|
}),
|
|
21
22
|
propertyId: propertyIdSchema,
|
|
@@ -24,6 +25,10 @@ export const MenuValidationFailedEventPropertiesSchema = z
|
|
|
24
25
|
'Unique ID of a Sales Channel, a digital channel tied to a Property and Brand (e.g., kiosk, web, mobile app). This ID remains the same for subsequent updates / revisions of the same menu.',
|
|
25
26
|
example: 'sc123',
|
|
26
27
|
}),
|
|
28
|
+
salesChannelType: z.nativeEnum(SalesChannelTypes).openapi({
|
|
29
|
+
description: 'Type of channel where orders are captured',
|
|
30
|
+
example: 'UberEats',
|
|
31
|
+
}),
|
|
27
32
|
menuId: menuIdSchema,
|
|
28
33
|
menuRevisionId: revisionIdSchema,
|
|
29
34
|
menuPublishId: menuPublishIdSchema,
|
|
@@ -362,6 +362,7 @@ export const MENU_VALIDATION_FAILED_V1_WEBHOOK_EXAMPLE = {
|
|
|
362
362
|
brandId: 'br456',
|
|
363
363
|
propertyId: 'p789',
|
|
364
364
|
salesChannelId: 'sc123',
|
|
365
|
+
salesChannelType: 'UberEats',
|
|
365
366
|
menuId: '123e4567-e89b-12d3-a456-426614174000',
|
|
366
367
|
menuPublishId: '123e4567-e89b-12d3-a456-426614174000',
|
|
367
368
|
menuRevisionId: 1,
|
|
@@ -367,6 +367,7 @@ export const MENU_VALIDATION_FAILED_V1_WEBHOOK_EXAMPLE = {
|
|
|
367
367
|
brandId: 'br456',
|
|
368
368
|
propertyId: 'p789',
|
|
369
369
|
salesChannelId: 'sc123',
|
|
370
|
+
salesChannelType: 'UberEats',
|
|
370
371
|
menuId: '123e4567-e89b-12d3-a456-426614174000',
|
|
371
372
|
menuPublishId: '123e4567-e89b-12d3-a456-426614174000',
|
|
372
373
|
menuRevisionId: 1,
|