@flipdish/events 1.26012.0 → 1.26014.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flipdish/events",
3
- "version": "1.26012.0",
3
+ "version": "1.26014.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",
@@ -117,8 +117,8 @@ export const PublicMenuSchema = BaseMenuSchema.merge(AutoGeneratedMenuFieldsSche
117
117
  });
118
118
  export const EventMenuSchema = BaseMenuSchema.merge(AutoGeneratedMenuFieldsSchema)
119
119
  .extend({
120
- isVatInclusive: z.boolean().nullable().optional().openapi({
121
- description: 'Whether the menu is VAT inclusive',
120
+ isTaxInclusive: z.boolean().nullable().optional().openapi({
121
+ description: 'Whether the menu is tax inclusive',
122
122
  example: false,
123
123
  }),
124
124
  categories: z.array(CategorySchemas.EventCategorySchema).nullable().openapi({
@@ -124,8 +124,8 @@ export const PublicMenuSchema = BaseMenuSchema.merge(AutoGeneratedMenuFieldsSche
124
124
 
125
125
  export const EventMenuSchema = BaseMenuSchema.merge(AutoGeneratedMenuFieldsSchema)
126
126
  .extend({
127
- isVatInclusive: z.boolean().nullable().optional().openapi({
128
- description: 'Whether the menu is VAT inclusive',
127
+ isTaxInclusive: z.boolean().nullable().optional().openapi({
128
+ description: 'Whether the menu is tax inclusive',
129
129
  example: false,
130
130
  }),
131
131
  categories: z.array(CategorySchemas.EventCategorySchema).nullable().openapi({
@@ -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>;