@cxtms/cx-schema 1.9.249 → 1.9.250

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": "@cxtms/cx-schema",
3
- "version": "1.9.249",
3
+ "version": "1.9.250",
4
4
  "description": "Schema validation package for CXTMS YAML modules",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11038,6 +11038,9 @@ extend type Mutation {
11038
11038
  createOrderMove(input: CreateOrderMoveInput!): CreateOrderMovePayload!
11039
11039
  updateOrderMove(input: UpdateOrderMoveInput!): UpdateOrderMovePayload!
11040
11040
  deleteOrderMove(input: DeleteOrderMoveInput!): DeleteOrderMovePayload!
11041
+ createOrderMoveLeg(input: CreateOrderMoveLegInput!): CreateOrderMoveLegPayload!
11042
+ updateOrderMoveLeg(input: UpdateOrderMoveLegInput!): UpdateOrderMoveLegPayload!
11043
+ deleteOrderMoveLeg(input: DeleteOrderMoveLegInput!): DeleteOrderMoveLegPayload!
11041
11044
  }
11042
11045
 
11043
11046
  type OrderMovesCollectionSegment {
@@ -11093,7 +11096,14 @@ input CreateOrderMoveCommandValuesInput { orderId: Int!, sequence: Int, name: St
11093
11096
  input CreateOrderMoveLegValuesInput { name: String, orderMoveLegStatusId: Int, startDate: DateTime, endDate: DateTime, customValues: MapOfObject }
11094
11097
  input UpdateOrderMoveInput { organizationId: Int!, orderMoveId: Int!, values: MapOfObject! }
11095
11098
  input DeleteOrderMoveInput { organizationId: Int!, orderMoveId: Int! }
11099
+ input CreateOrderMoveLegInput { organizationId: Int!, values: CreateOrderMoveLegCommandValuesInput! }
11100
+ input CreateOrderMoveLegCommandValuesInput { orderMoveId: Int!, sequence: Int, name: String, orderMoveLegStatusId: Int, startDate: DateTime, endDate: DateTime, customValues: MapOfObject }
11101
+ input UpdateOrderMoveLegInput { organizationId: Int!, orderMoveLegId: Int!, values: MapOfObject! }
11102
+ input DeleteOrderMoveLegInput { organizationId: Int!, orderMoveLegId: Int! }
11096
11103
  type CreateOrderMovePayload { orderMove: orderMove, query: Query! }
11097
11104
  type UpdateOrderMovePayload { orderMove: orderMove, query: Query! }
11098
11105
  type DeleteOrderMovePayload { deleteResult: DeleteResult, query: Query! }
11106
+ type CreateOrderMoveLegPayload { orderMoveLeg: orderMoveLeg, query: Query! }
11107
+ type UpdateOrderMoveLegPayload { orderMoveLeg: orderMoveLeg, query: Query! }
11108
+ type DeleteOrderMoveLegPayload { deleteResult: DeleteResult, query: Query! }
11099
11109
 
@@ -186,6 +186,7 @@ are appended and omitted existing records are not deleted.
186
186
  - Order move queries: `orderMove`, `orderMoves`, `orderMoveStatus`, `orderMoveStatuses`, `orderMoveLegStatus`, and `orderMoveLegStatuses`.
187
187
  - Nested order resolvers: `getOrderMoves(filter, orderBy)` returns pending or statusless moves (defaulted to sequence order), while `getOrderMove(filter, orderBy)` returns the first matching pending or statusless move. Moves whose status stage is no longer `Pending` are excluded.
188
188
  - Order move mutations create, sparse-update, and soft-delete moves; create/update accepts nested `orderMoveLegs`, reconciled by ID and array order. Omitted or `isDeleted: true` legs are soft-deleted, new already-deleted legs are ignored, and only active legs consume sequence positions.
189
+ - `createOrderMoveLeg`, `updateOrderMoveLeg`, and `deleteOrderMoveLeg` manage one leg without resending the parent move. Create requires `orderMoveId`, appends after the last active leg when `sequence` is omitted, and accepts name, status, dates, and custom values. Update takes a sparse values map; delete is soft. Each operation is organization-scoped through the parent move.
189
190
  - A dynamic order update can supply `orderMoves` to reconcile the full collection with the same rules. New moves inherit `organizationId` and `orderId` from the aggregate; omitted or explicitly deleted moves are soft-deleted; active moves and nested legs are resequenced from 1.
190
191
  - Mutations use `input: { organizationId, values }` and return payload fields named `dispatchRouteStatus`, `dispatchRouteStopStatus`, `dispatchRouteTemplate`, `dispatchRoute`, or `generateDispatchRoutesResult`.
191
192
  - Stop status mutations: `createDispatchRouteStopStatus`, `updateDispatchRouteStopStatus`, `deleteDispatchRouteStopStatus`.