@flipdish/events 1.26012.1 → 1.26015.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.
@@ -12,6 +12,7 @@ export const OnlineOrderingCommonPropertiesSchema = z.object({
12
12
  publishId: z.string().uuid(),
13
13
  menuRevisionId: z.number().int(),
14
14
  legacyMenuId: z.number().int(),
15
+ hasConcessionStores: z.boolean().optional().nullable(), // optional for backwards compatibility
15
16
  referencePriceDispatchType: z.string(),
16
17
  publishedAt: z.string().datetime(),
17
18
  });
@@ -14,6 +14,7 @@ export const OnlineOrderingCommonPropertiesSchema = z.object({
14
14
  publishId: z.string().uuid(),
15
15
  menuRevisionId: z.number().int(),
16
16
  legacyMenuId: z.number().int(),
17
+ hasConcessionStores: z.boolean().optional().nullable(), // optional for backwards compatibility
17
18
  referencePriceDispatchType: z.string(),
18
19
  publishedAt: z.string().datetime(),
19
20
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flipdish/events",
3
- "version": "1.26012.1",
3
+ "version": "1.26015.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "test": "node --max-old-space-size=4096 --max-semi-space-size=512 ./node_modules/.bin/jest --config=jest.config.ts --verbose",
@@ -0,0 +1,10 @@
1
+ import { eventType as LOGIN_REQUESTPHONELOGINCODESMS_V3, Login_requestphonelogincodesms_v3Schema, } from './login.requestphonelogincodesms.v3.js';
2
+ // Export schemas
3
+ export { Login_requestphonelogincodesms_v3Schema };
4
+ // Export event types
5
+ export const eventTypes = {
6
+ LOGIN_REQUESTPHONELOGINCODESMS_V3,
7
+ };
8
+ export const eventSchemaMap = Object.fromEntries([
9
+ [LOGIN_REQUESTPHONELOGINCODESMS_V3, Login_requestphonelogincodesms_v3Schema],
10
+ ]);
@@ -0,0 +1,19 @@
1
+ import {
2
+ eventType as LOGIN_REQUESTPHONELOGINCODESMS_V3,
3
+ Login_requestphonelogincodesms_v3Schema,
4
+ } from './login.requestphonelogincodesms.v3.js';
5
+
6
+ // Export schemas
7
+ export { Login_requestphonelogincodesms_v3Schema };
8
+
9
+ // Re-export specific types from each module with renamed exports to avoid conflicts
10
+ export { LoginRequestPhoneLoginCodeSmsV3 } from './login.requestphonelogincodesms.v3.js';
11
+
12
+ // Export event types
13
+ export const eventTypes = {
14
+ LOGIN_REQUESTPHONELOGINCODESMS_V3,
15
+ };
16
+
17
+ export const eventSchemaMap = Object.fromEntries([
18
+ [LOGIN_REQUESTPHONELOGINCODESMS_V3, Login_requestphonelogincodesms_v3Schema],
19
+ ]);
@@ -0,0 +1,28 @@
1
+ import { z } from 'zod';
2
+ import { UserSchema } from '../common-schemas.js';
3
+ export const eventType = 'login.requestphonelogincodesms.v3';
4
+ export const Login_requestphonelogincodesms_v3Schema = z.object({
5
+ HCaptcha: z.object({
6
+ Score: z.number().nullable(),
7
+ Reasons: z.string().nullable(),
8
+ Token: z.string().nullable(),
9
+ }),
10
+ UserAgent: z.string().nullable(),
11
+ User: UserSchema.nullable(),
12
+ Cloudflare: z.object({
13
+ RayId: z.string().nullable(),
14
+ IPCountry: z.string().nullable(),
15
+ ConnectingIpAddress: z.string().nullable(),
16
+ }),
17
+ Scenario: z.string().nullable(),
18
+ SubScenario: z.string().nullable(),
19
+ AppType: z.string().nullable(),
20
+ ClientVersion: z.string().nullable(),
21
+ ClientSiteType: z.string().nullable(),
22
+ WhiteLabelCountryPhoneCode: z.string().nullable(),
23
+ WhiteLabelCountryCode: z.string().nullable(),
24
+ PhoneNumberConfirmed: z.boolean(),
25
+ RawWhiteLabelId: z.string().nullable(),
26
+ RawPhoneNumber: z.string().nullable(),
27
+ IpAddress: z.string().nullable(),
28
+ });
@@ -0,0 +1,32 @@
1
+ import { z } from 'zod';
2
+ import { UserSchema } from '../common-schemas.js';
3
+
4
+ export const eventType = 'login.requestphonelogincodesms.v3';
5
+
6
+ export const Login_requestphonelogincodesms_v3Schema = z.object({
7
+ HCaptcha: z.object({
8
+ Score: z.number().nullable(),
9
+ Reasons: z.string().nullable(),
10
+ Token: z.string().nullable(),
11
+ }),
12
+ UserAgent: z.string().nullable(),
13
+ User: UserSchema.nullable(),
14
+ Cloudflare: z.object({
15
+ RayId: z.string().nullable(),
16
+ IPCountry: z.string().nullable(),
17
+ ConnectingIpAddress: z.string().nullable(),
18
+ }),
19
+ Scenario: z.string().nullable(),
20
+ SubScenario: z.string().nullable(),
21
+ AppType: z.string().nullable(),
22
+ ClientVersion: z.string().nullable(),
23
+ ClientSiteType: z.string().nullable(),
24
+ WhiteLabelCountryPhoneCode: z.string().nullable(),
25
+ WhiteLabelCountryCode: z.string().nullable(),
26
+ PhoneNumberConfirmed: z.boolean(),
27
+ RawWhiteLabelId: z.string().nullable(),
28
+ RawPhoneNumber: z.string().nullable(),
29
+ IpAddress: z.string().nullable(),
30
+ });
31
+
32
+ export type LoginRequestPhoneLoginCodeSmsV3 = z.infer<typeof Login_requestphonelogincodesms_v3Schema>;