diff --git a/package.json b/package.json index 57bad61..6d12900 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ozmap/ozn-sdk", - "version": "0.0.1-1058-5", + "version": "0.0.1-1139-1", "description": "OZN SDK is a powerful tool for developers to build their own applications on top of OZN using TMForum pattern.", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/types/service-ordering.ts b/src/types/service-ordering.ts index 04474aa..1fdf2de 100644 --- a/src/types/service-ordering.ts +++ b/src/types/service-ordering.ts @@ -21,6 +21,8 @@ const resourceSchema = z export const ServiceOrderActionEnum = z.enum(['add', 'modify', 'delete', 'modifyPort']); +export const ServiceOrderStateEnum = z.enum(['Completed', 'Held', 'InProgress', 'Cancelled', 'Failed']) + export const PortReplaceDetailEnum = z.enum([ 'crossing', 'closerCTO', @@ -91,7 +93,7 @@ export const ServiceOrderOutputSchema = z.object({ description: z.string().nullable(), category: z.string(), note: z.string(), - state: z.string(), + state: ServiceOrderStateEnum, orderDate: z.string(), requesterCallback: z.string(), relatedParty: z.array( @@ -110,7 +112,7 @@ export const ServiceOrderOutputSchema = z.object({ id: z.string(), action: ServiceOrderActionEnum, requestedCompletionDate: z.string().nullable(), - state: z.string(), + state: ServiceOrderStateEnum, statusMessage: z.string().nullable(), serviceSpecification: z.object({ id: z.string(),