@venulog/phasing-engine-schemas 0.10.2 → 0.11.0-alpha.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.
@@ -0,0 +1,27 @@
1
+ import { z } from './zod.js';
2
+ /**
3
+ * Basic exhibitor information
4
+ */
5
+ export declare const exhibitorSchema: z.ZodObject<{
6
+ company_name: z.ZodString;
7
+ stand_number: z.ZodString;
8
+ contact_name: z.ZodString;
9
+ contact_email: z.ZodString;
10
+ contact_phone: z.ZodString;
11
+ }, z.core.$strip>;
12
+ export type Exhibitor = z.infer<typeof exhibitorSchema>;
13
+ export declare const getExhibitorByNameBodySchema: z.ZodObject<{
14
+ exhibitorName: z.ZodString;
15
+ }, z.core.$strip>;
16
+ export declare const getExhibitorByNameResponseSchema: z.ZodObject<{
17
+ success: z.ZodBoolean;
18
+ data: z.ZodObject<{
19
+ company_name: z.ZodString;
20
+ stand_number: z.ZodString;
21
+ contact_name: z.ZodString;
22
+ contact_email: z.ZodString;
23
+ contact_phone: z.ZodString;
24
+ }, z.core.$strip>;
25
+ }, z.core.$strip>;
26
+ export type GetExhibitorByNameBody = z.infer<typeof getExhibitorByNameBodySchema>;
27
+ export type GetExhibitorByNameResponse = z.infer<typeof getExhibitorByNameResponseSchema>;
@@ -0,0 +1,45 @@
1
+ // packages/phasing-schemas/src/exhibitor.ts
2
+ import { z } from './zod.js';
3
+ import { createSuccessResponseSchema } from './common.js';
4
+ // ------------------------------
5
+ // Exhibitor Schemas
6
+ // ------------------------------
7
+ /**
8
+ * Basic exhibitor information
9
+ */
10
+ export const exhibitorSchema = z
11
+ .object({
12
+ company_name: z.string().openapi({
13
+ description: 'Name of the exhibitor company',
14
+ example: '3CX LTD'
15
+ }),
16
+ stand_number: z.string().openapi({
17
+ description: 'Stand number assigned to the exhibitor',
18
+ example: 'J039'
19
+ }),
20
+ contact_name: z.string().openapi({
21
+ description: 'Primary contact person name',
22
+ example: 'KRISTEL ASZODY'
23
+ }),
24
+ contact_email: z.string().email().openapi({
25
+ description: 'Contact email address',
26
+ example: 'kas@3cx.com'
27
+ }),
28
+ contact_phone: z.string().openapi({
29
+ description: 'Contact phone number',
30
+ example: '+35733184250060'
31
+ })
32
+ })
33
+ .openapi('Exhibitor');
34
+ // ------------------------------
35
+ // Get Exhibitor by Name Endpoint
36
+ // ------------------------------
37
+ export const getExhibitorByNameBodySchema = z
38
+ .object({
39
+ exhibitorName: z.string().min(1, 'Exhibitor name is required').openapi({
40
+ description: 'The name of the exhibitor company to search for (case-insensitive, partial matches supported)',
41
+ example: '3CX'
42
+ })
43
+ })
44
+ .openapi('GetExhibitorByNameParams');
45
+ export const getExhibitorByNameResponseSchema = createSuccessResponseSchema(exhibitorSchema, 'GetExhibitorByNameResponse', 'Exhibitor information');
package/dist/index.d.ts CHANGED
@@ -10,6 +10,7 @@ export * from './accessToken.js';
10
10
  export * from './vehiclePosition.js';
11
11
  export * from './camera.js';
12
12
  export * from './simulation.js';
13
+ export * from './exhibitor.js';
13
14
  export * from './enums/bookingStatus.js';
14
15
  export * from './enums/parkingAreaScheduleType.js';
15
16
  export * from './enums/vehicleType.js';
package/dist/index.js CHANGED
@@ -11,6 +11,7 @@ export * from './accessToken.js';
11
11
  export * from './vehiclePosition.js';
12
12
  export * from './camera.js';
13
13
  export * from './simulation.js';
14
+ export * from './exhibitor.js';
14
15
  // Enum exports
15
16
  export * from './enums/bookingStatus.js';
16
17
  export * from './enums/parkingAreaScheduleType.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@venulog/phasing-engine-schemas",
3
- "version": "0.10.2",
3
+ "version": "0.11.0-alpha.0",
4
4
  "description": "Shared schemas and types for Phasing Engine API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -61,6 +61,10 @@
61
61
  "./simulation": {
62
62
  "types": "./dist/simulation.d.ts",
63
63
  "import": "./dist/simulation.js"
64
+ },
65
+ "./exhibitor": {
66
+ "types": "./dist/exhibitor.d.ts",
67
+ "import": "./dist/exhibitor.js"
64
68
  }
65
69
  },
66
70
  "files": [