UNPKG

@ozmap/ozn-sdk

Version:

OZN SDK is a powerful tool for developers to build their own applications on top of OZN using TMForum pattern.

854 lines (853 loc) 31.9 kB
import { z } from 'zod'; export declare const resourcePoolManagementInputSchema: z.ZodObject<{ relatedParty: z.ZodObject<{ role: z.ZodString; property: z.ZodArray<z.ZodObject<{ name: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; }, { value: string; name: string; }>, "many">; }, "strip", z.ZodTypeAny, { role: string; property: { value: string; name: string; }[]; }, { role: string; property: { value: string; name: string; }[]; }>; reservationItem: z.ZodArray<z.ZodObject<{ resourceCapacity: z.ZodObject<{ place: z.ZodObject<{ externalId: z.ZodUnion<[z.ZodString, z.ZodNumber]>; externalSystem: z.ZodString; }, "strip", z.ZodTypeAny, { externalId: string | number; externalSystem: string; }, { externalId: string | number; externalSystem: string; }>; }, "strip", z.ZodTypeAny, { place: { externalId: string | number; externalSystem: string; }; }, { place: { externalId: string | number; externalSystem: string; }; }>; appliedCapacityAmount: z.ZodObject<{ characteristic: z.ZodArray<z.ZodObject<{ name: z.ZodString; valueType: z.ZodString; value: z.ZodString; }, "strip", z.ZodTypeAny, { value: string; name: string; valueType: string; }, { value: string; name: string; valueType: string; }>, "many">; }, "strip", z.ZodTypeAny, { characteristic: { value: string; name: string; valueType: string; }[]; }, { characteristic: { value: string; name: string; valueType: string; }[]; }>; }, "strip", z.ZodTypeAny, { resourceCapacity: { place: { externalId: string | number; externalSystem: string; }; }; appliedCapacityAmount: { characteristic: { value: string; name: string; valueType: string; }[]; }; }, { resourceCapacity: { place: { externalId: string | number; externalSystem: string; }; }; appliedCapacityAmount: { characteristic: { value: string; name: string; valueType: string; }[]; }; }>, "many">; }, "strip", z.ZodTypeAny, { relatedParty: { role: string; property: { value: string; name: string; }[]; }; reservationItem: { resourceCapacity: { place: { externalId: string | number; externalSystem: string; }; }; appliedCapacityAmount: { characteristic: { value: string; name: string; valueType: string; }[]; }; }[]; }, { relatedParty: { role: string; property: { value: string; name: string; }[]; }; reservationItem: { resourceCapacity: { place: { externalId: string | number; externalSystem: string; }; }; appliedCapacityAmount: { characteristic: { value: string; name: string; valueType: string; }[]; }; }[]; }>; export declare const ResourcePoolManagementOutputSchema: z.ZodObject<{ reservationItem: z.ZodArray<z.ZodObject<{ id: z.ZodString; reservationState: z.ZodLiteral<"NEW">; reservationStateDate: z.ZodString; resourceCapacity: z.ZodObject<{ resourcePool: z.ZodObject<{ externalId: z.ZodUnion<[z.ZodString, z.ZodNumber]>; externalSystem: z.ZodString; }, "strip", z.ZodTypeAny, { externalId: string | number; externalSystem: string; }, { externalId: string | number; externalSystem: string; }>; }, "strip", z.ZodTypeAny, { resourcePool: { externalId: string | number; externalSystem: string; }; }, { resourcePool: { externalId: string | number; externalSystem: string; }; }>; appliedCapacityAmount: z.ZodObject<{ resource: z.ZodArray<z.ZodObject<{ id: z.ZodString; name: z.ZodString; type: z.ZodLiteral<"PTP">; resourceSpecification: z.ZodObject<{ id: z.ZodString; cellName: z.ZodNullable<z.ZodString>; type: z.ZodString; name: z.ZodString; }, "strip", z.ZodTypeAny, { type: string; name: string; id: string; cellName: string | null; }, { type: string; name: string; id: string; cellName: string | null; }>; resourceLocation: z.ZodObject<{ type: z.ZodString; labelType: z.ZodString; name: z.ZodString; description: z.ZodString; parentLocation: z.ZodString; address: z.ZodObject<{ id: z.ZodUnion<[z.ZodString, z.ZodNumber]>; city: z.ZodString; cnl: z.ZodString; country: z.ZodString; locality: z.ZodString; district: z.ZodString; name: z.ZodString; postcode: z.ZodString; stateOrProvince: z.ZodString; streetName: z.ZodString; streetNr: z.ZodUnion<[z.ZodString, z.ZodNumber]>; streetType: z.ZodString; streetTitle: z.ZodString; type: z.ZodString; geographicAddressComplement: z.ZodOptional<z.ZodString>; geographicLocation: z.ZodObject<{ name: z.ZodString; type: z.ZodString; geometry: z.ZodArray<z.ZodObject<{ x: z.ZodNumber; y: z.ZodNumber; z: z.ZodNullable<z.ZodNumber>; }, "strip", z.ZodTypeAny, { x: number; y: number; z: number | null; }, { x: number; y: number; z: number | null; }>, "many">; }, "strip", z.ZodTypeAny, { type: string; name: string; geometry: { x: number; y: number; z: number | null; }[]; }, { type: string; name: string; geometry: { x: number; y: number; z: number | null; }[]; }>; geographicSubAddress: z.ZodOptional<z.ZodString>; externalSystems: z.ZodArray<z.ZodObject<{ externalId: z.ZodUnion<[z.ZodString, z.ZodNumber]>; externalSystem: z.ZodString; }, "strip", z.ZodTypeAny, { externalId: string | number; externalSystem: string; }, { externalId: string | number; externalSystem: string; }>, "many">; }, "strip", z.ZodTypeAny, { type: string; name: string; id: string | number; postcode: string; streetNr: string | number; city: string; cnl: string; country: string; locality: string; district: string; stateOrProvince: string; streetName: string; streetType: string; streetTitle: string; geographicLocation: { type: string; name: string; geometry: { x: number; y: number; z: number | null; }[]; }; externalSystems: { externalId: string | number; externalSystem: string; }[]; geographicAddressComplement?: string | undefined; geographicSubAddress?: string | undefined; }, { type: string; name: string; id: string | number; postcode: string; streetNr: string | number; city: string; cnl: string; country: string; locality: string; district: string; stateOrProvince: string; streetName: string; streetType: string; streetTitle: string; geographicLocation: { type: string; name: string; geometry: { x: number; y: number; z: number | null; }[]; }; externalSystems: { externalId: string | number; externalSystem: string; }[]; geographicAddressComplement?: string | undefined; geographicSubAddress?: string | undefined; }>; }, "strip", z.ZodTypeAny, { type: string; name: string; labelType: string; description: string; parentLocation: string; address: { type: string; name: string; id: string | number; postcode: string; streetNr: string | number; city: string; cnl: string; country: string; locality: string; district: string; stateOrProvince: string; streetName: string; streetType: string; streetTitle: string; geographicLocation: { type: string; name: string; geometry: { x: number; y: number; z: number | null; }[]; }; externalSystems: { externalId: string | number; externalSystem: string; }[]; geographicAddressComplement?: string | undefined; geographicSubAddress?: string | undefined; }; }, { type: string; name: string; labelType: string; description: string; parentLocation: string; address: { type: string; name: string; id: string | number; postcode: string; streetNr: string | number; city: string; cnl: string; country: string; locality: string; district: string; stateOrProvince: string; streetName: string; streetType: string; streetTitle: string; geographicLocation: { type: string; name: string; geometry: { x: number; y: number; z: number | null; }[]; }; externalSystems: { externalId: string | number; externalSystem: string; }[]; geographicAddressComplement?: string | undefined; geographicSubAddress?: string | undefined; }; }>; }, "strip", z.ZodTypeAny, { type: "PTP"; name: string; id: string; resourceSpecification: { type: string; name: string; id: string; cellName: string | null; }; resourceLocation: { type: string; name: string; labelType: string; description: string; parentLocation: string; address: { type: string; name: string; id: string | number; postcode: string; streetNr: string | number; city: string; cnl: string; country: string; locality: string; district: string; stateOrProvince: string; streetName: string; streetType: string; streetTitle: string; geographicLocation: { type: string; name: string; geometry: { x: number; y: number; z: number | null; }[]; }; externalSystems: { externalId: string | number; externalSystem: string; }[]; geographicAddressComplement?: string | undefined; geographicSubAddress?: string | undefined; }; }; }, { type: "PTP"; name: string; id: string; resourceSpecification: { type: string; name: string; id: string; cellName: string | null; }; resourceLocation: { type: string; name: string; labelType: string; description: string; parentLocation: string; address: { type: string; name: string; id: string | number; postcode: string; streetNr: string | number; city: string; cnl: string; country: string; locality: string; district: string; stateOrProvince: string; streetName: string; streetType: string; streetTitle: string; geographicLocation: { type: string; name: string; geometry: { x: number; y: number; z: number | null; }[]; }; externalSystems: { externalId: string | number; externalSystem: string; }[]; geographicAddressComplement?: string | undefined; geographicSubAddress?: string | undefined; }; }; }>, "many">; }, "strip", z.ZodTypeAny, { resource: { type: "PTP"; name: string; id: string; resourceSpecification: { type: string; name: string; id: string; cellName: string | null; }; resourceLocation: { type: string; name: string; labelType: string; description: string; parentLocation: string; address: { type: string; name: string; id: string | number; postcode: string; streetNr: string | number; city: string; cnl: string; country: string; locality: string; district: string; stateOrProvince: string; streetName: string; streetType: string; streetTitle: string; geographicLocation: { type: string; name: string; geometry: { x: number; y: number; z: number | null; }[]; }; externalSystems: { externalId: string | number; externalSystem: string; }[]; geographicAddressComplement?: string | undefined; geographicSubAddress?: string | undefined; }; }; }[]; }, { resource: { type: "PTP"; name: string; id: string; resourceSpecification: { type: string; name: string; id: string; cellName: string | null; }; resourceLocation: { type: string; name: string; labelType: string; description: string; parentLocation: string; address: { type: string; name: string; id: string | number; postcode: string; streetNr: string | number; city: string; cnl: string; country: string; locality: string; district: string; stateOrProvince: string; streetName: string; streetType: string; streetTitle: string; geographicLocation: { type: string; name: string; geometry: { x: number; y: number; z: number | null; }[]; }; externalSystems: { externalId: string | number; externalSystem: string; }[]; geographicAddressComplement?: string | undefined; geographicSubAddress?: string | undefined; }; }; }[]; }>; }, "strip", z.ZodTypeAny, { id: string; resourceCapacity: { resourcePool: { externalId: string | number; externalSystem: string; }; }; appliedCapacityAmount: { resource: { type: "PTP"; name: string; id: string; resourceSpecification: { type: string; name: string; id: string; cellName: string | null; }; resourceLocation: { type: string; name: string; labelType: string; description: string; parentLocation: string; address: { type: string; name: string; id: string | number; postcode: string; streetNr: string | number; city: string; cnl: string; country: string; locality: string; district: string; stateOrProvince: string; streetName: string; streetType: string; streetTitle: string; geographicLocation: { type: string; name: string; geometry: { x: number; y: number; z: number | null; }[]; }; externalSystems: { externalId: string | number; externalSystem: string; }[]; geographicAddressComplement?: string | undefined; geographicSubAddress?: string | undefined; }; }; }[]; }; reservationState: "NEW"; reservationStateDate: string; }, { id: string; resourceCapacity: { resourcePool: { externalId: string | number; externalSystem: string; }; }; appliedCapacityAmount: { resource: { type: "PTP"; name: string; id: string; resourceSpecification: { type: string; name: string; id: string; cellName: string | null; }; resourceLocation: { type: string; name: string; labelType: string; description: string; parentLocation: string; address: { type: string; name: string; id: string | number; postcode: string; streetNr: string | number; city: string; cnl: string; country: string; locality: string; district: string; stateOrProvince: string; streetName: string; streetType: string; streetTitle: string; geographicLocation: { type: string; name: string; geometry: { x: number; y: number; z: number | null; }[]; }; externalSystems: { externalId: string | number; externalSystem: string; }[]; geographicAddressComplement?: string | undefined; geographicSubAddress?: string | undefined; }; }; }[]; }; reservationState: "NEW"; reservationStateDate: string; }>, "many">; }, "strip", z.ZodTypeAny, { reservationItem: { id: string; resourceCapacity: { resourcePool: { externalId: string | number; externalSystem: string; }; }; appliedCapacityAmount: { resource: { type: "PTP"; name: string; id: string; resourceSpecification: { type: string; name: string; id: string; cellName: string | null; }; resourceLocation: { type: string; name: string; labelType: string; description: string; parentLocation: string; address: { type: string; name: string; id: string | number; postcode: string; streetNr: string | number; city: string; cnl: string; country: string; locality: string; district: string; stateOrProvince: string; streetName: string; streetType: string; streetTitle: string; geographicLocation: { type: string; name: string; geometry: { x: number; y: number; z: number | null; }[]; }; externalSystems: { externalId: string | number; externalSystem: string; }[]; geographicAddressComplement?: string | undefined; geographicSubAddress?: string | undefined; }; }; }[]; }; reservationState: "NEW"; reservationStateDate: string; }[]; }, { reservationItem: { id: string; resourceCapacity: { resourcePool: { externalId: string | number; externalSystem: string; }; }; appliedCapacityAmount: { resource: { type: "PTP"; name: string; id: string; resourceSpecification: { type: string; name: string; id: string; cellName: string | null; }; resourceLocation: { type: string; name: string; labelType: string; description: string; parentLocation: string; address: { type: string; name: string; id: string | number; postcode: string; streetNr: string | number; city: string; cnl: string; country: string; locality: string; district: string; stateOrProvince: string; streetName: string; streetType: string; streetTitle: string; geographicLocation: { type: string; name: string; geometry: { x: number; y: number; z: number | null; }[]; }; externalSystems: { externalId: string | number; externalSystem: string; }[]; geographicAddressComplement?: string | undefined; geographicSubAddress?: string | undefined; }; }; }[]; }; reservationState: "NEW"; reservationStateDate: string; }[]; }>; export type ResourcePoolManagementInput = z.infer<typeof resourcePoolManagementInputSchema>; export type ResourcePoolManagementOutput = z.infer<typeof ResourcePoolManagementOutputSchema>;