cxtms 1.9.27 → 1.9.29
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
package/schemas/schema.graphql
CHANGED
|
@@ -5515,6 +5515,10 @@ type commodity {
|
|
|
5515
5515
|
allTagNames: [String!]! @cost(weight: "10")
|
|
5516
5516
|
"Gets only the tags directly assigned to this commodity"
|
|
5517
5517
|
directTagNames: [String!]! @cost(weight: "10")
|
|
5518
|
+
lastTrackingEvent(
|
|
5519
|
+
eventDefinitionName: String
|
|
5520
|
+
orderBy: String
|
|
5521
|
+
): trackingEvent @cost(weight: "10")
|
|
5518
5522
|
}
|
|
5519
5523
|
|
|
5520
5524
|
type commodityStatus {
|
|
@@ -119,6 +119,7 @@ Field names as used in workflow expressions: `{{ entity.description }}`, `{{ ent
|
|
|
119
119
|
| `getRelatedOrder(filter)` | `Order` | First related order |
|
|
120
120
|
| `getCommodityTrackingNumber(idPropertyName)` | `TrackingNumber` | Lookup |
|
|
121
121
|
| `getCommodityAttachments(filter)` | `[Attachment]` | |
|
|
122
|
+
| `lastTrackingEvent(eventDefinitionName, orderBy?)` | `TrackingEvent` | Most recent tracking event. Resolved via batched DataLoader. `orderBy` is accepted for backward compatibility but **ignored** — ordering is always `COALESCE(EventDate, Created) DESC, TrackingEventId DESC`. |
|
|
122
123
|
| `changeHistory(startDate, endDate, maxResults)` | `[ChangeHistory]` | Audit trail |
|
|
123
124
|
|
|
124
125
|
## Container/Child Pattern (Self-Referencing)
|
|
@@ -108,7 +108,7 @@ These are virtual fields that filter `orderEntities` by type:
|
|
|
108
108
|
| `getCharge(chargeDescription)` | `Charge` | Single charge by description |
|
|
109
109
|
| `getChargesByChargeType(chargeType)` | `[Charge]` | Charges filtered by type |
|
|
110
110
|
| `getOrderSummary(weightUnit, volumeUnit, dimensionsUnit)` | `OrderSummary` | |
|
|
111
|
-
| `lastTrackingEvent(eventDefinitionName)` | `TrackingEvent` | Most recent |
|
|
111
|
+
| `lastTrackingEvent(eventDefinitionName, orderBy?)` | `TrackingEvent` | Most recent tracking event. Resolved via batched DataLoader. `orderBy` is accepted for backward compatibility but **ignored** — ordering is always `COALESCE(EventDate, Created) DESC, TrackingEventId DESC`. |
|
|
112
112
|
| `businessDays(path: String!)` | `int?` | Business days from the date at `path` to today, using the org's business calendar. `path` is a dot-separated property path on the order (e.g. `"customValues.leg.pickup.scheduledAt"`). Returns `null` if path doesn't resolve or value isn't a parseable date. |
|
|
113
113
|
| `attachmentsSummary` | `OrderAttachmentSummaryGqlDto` | `.totalCount` (int), `.hasAny` (bool) — batched DataLoader, backed by DB view |
|
|
114
114
|
| `notesSummary` | `OrderNoteSummaryGqlDto` | `.totalCount` (int), `.hasAny` (bool) — batched DataLoader, backed by DB view |
|