@cxtms/cx-schema 1.7.16 → 1.7.17
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.
|
@@ -65,6 +65,8 @@ Field names as used in workflow expressions: `{{ entity.orderId }}`, `{{ entity.
|
|
|
65
65
|
| `orderCarriers` | `[OrderCarrier]` | |
|
|
66
66
|
| `allTags` | `[OrderAllTagsView]` | View: all tags including from commodities |
|
|
67
67
|
| `allRelatedOrders` | `[OrderRelatedOrdersView]` | Orders sharing commodities |
|
|
68
|
+
| `attachmentsSummary` | `OrderAttachmentSummaryView?` | DB view: `.totalCount`, `.hasAny` (active attachments) |
|
|
69
|
+
| `notesSummary` | `OrderNoteSummaryView?` | DB view: `.totalCount`, `.hasAny` (non-deleted notes) |
|
|
68
70
|
| `outgoingLinks` | `[LinkedOrder]` | |
|
|
69
71
|
| `incomingLinks` | `[LinkedOrder]` | |
|
|
70
72
|
|
|
@@ -107,6 +109,8 @@ These are virtual fields that filter `orderEntities` by type:
|
|
|
107
109
|
| `getChargesByChargeType(chargeType)` | `[Charge]` | Charges filtered by type |
|
|
108
110
|
| `getOrderSummary(weightUnit, volumeUnit, dimensionsUnit)` | `OrderSummary` | |
|
|
109
111
|
| `lastTrackingEvent(eventDefinitionName)` | `TrackingEvent` | Most recent |
|
|
112
|
+
| `attachmentsSummary` | `OrderAttachmentSummaryGqlDto` | `.totalCount` (int), `.hasAny` (bool) — batched DataLoader, backed by DB view |
|
|
113
|
+
| `notesSummary` | `OrderNoteSummaryGqlDto` | `.totalCount` (int), `.hasAny` (bool) — batched DataLoader, backed by DB view |
|
|
110
114
|
| `notesCount(threadFilter)` | `int` | |
|
|
111
115
|
| `changeHistory(startDate, endDate, maxResults)` | `[ChangeHistory]` | Audit trail |
|
|
112
116
|
|
package/package.json
CHANGED
|
@@ -130,6 +130,10 @@
|
|
|
130
130
|
"$ref": "../schemas.json#/definitions/component",
|
|
131
131
|
"description": "Template for items; receives 'item' context"
|
|
132
132
|
},
|
|
133
|
+
"summaryComponent": {
|
|
134
|
+
"$ref": "../schemas.json#/definitions/component",
|
|
135
|
+
"description": "Custom component for the summary row. When set, the built-in overall total row is hidden and replaced with this component. Receives aggregated data."
|
|
136
|
+
},
|
|
133
137
|
"isHidden": {
|
|
134
138
|
"$ref": "../schemas.json#/definitions/templateExpression",
|
|
135
139
|
"description": "Boolean expression for conditional rendering"
|
package/schemas/schemas.json
CHANGED
|
@@ -115,6 +115,18 @@
|
|
|
115
115
|
"isHidden": {
|
|
116
116
|
"type": "boolean",
|
|
117
117
|
"description": "Whether column is hidden"
|
|
118
|
+
},
|
|
119
|
+
"enableEdit": {
|
|
120
|
+
"type": "boolean",
|
|
121
|
+
"description": "Enables inline cell editing for this column"
|
|
122
|
+
},
|
|
123
|
+
"editor": {
|
|
124
|
+
"$ref": "#/definitions/component",
|
|
125
|
+
"description": "Component rendered via ComponentRender when enableEdit is true. Uses same pattern as showAs."
|
|
126
|
+
},
|
|
127
|
+
"onEdit": {
|
|
128
|
+
"$ref": "#/definitions/actionsList",
|
|
129
|
+
"description": "Action array executed sequentially when the cell value changes. Receives changedValues and value variables."
|
|
118
130
|
}
|
|
119
131
|
}
|
|
120
132
|
}
|