From 2152015932ec95e74be27ba527d7b48313d306a0 Mon Sep 17 00:00:00 2001 From: NestorBrasileiro Date: Fri, 13 Jun 2025 16:30:34 -0300 Subject: [PATCH 1/2] chore: updated lib version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 57bad61..7f80cb2 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-1058-6", "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", From 85e4855e7d3f317eeb4f8be3f5625e1406a354eb Mon Sep 17 00:00:00 2001 From: NestorBrasileiro Date: Mon, 16 Jun 2025 10:28:16 -0300 Subject: [PATCH 2/2] adding pending enum to states of order --- package.json | 2 +- src/types/service-ordering.ts | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 7f80cb2..6d12900 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ozmap/ozn-sdk", - "version": "0.0.1-1058-6", + "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(),