@cxtms/cx-schema 1.7.2 → 1.7.4
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/.claude/skills/cx-core/SKILL.md +11 -115
- package/.claude/skills/cx-core/ref-cli-auth.md +87 -0
- package/.claude/skills/cx-core/ref-entity-accounting.md +7 -0
- package/.claude/skills/cx-core/ref-entity-commodity.md +12 -0
- package/.claude/skills/cx-core/ref-entity-contact.md +10 -0
- package/.claude/skills/cx-core/ref-entity-geography.md +9 -0
- package/.claude/skills/cx-core/ref-entity-order-sub.md +7 -0
- package/.claude/skills/cx-core/ref-entity-order.md +10 -0
- package/.claude/skills/cx-core/ref-entity-rate.md +8 -0
- package/.claude/skills/cx-core/ref-entity-shared.md +9 -0
- package/.claude/skills/cx-core/ref-entity-warehouse.md +5 -0
- package/.claude/skills/cx-module/SKILL.md +4 -21
- package/.claude/skills/cx-module/ref-components-data.md +7 -0
- package/.claude/skills/cx-module/ref-components-display.md +13 -0
- package/.claude/skills/cx-module/ref-components-forms.md +6 -0
- package/.claude/skills/cx-module/ref-components-interactive.md +11 -0
- package/.claude/skills/cx-module/ref-components-layout.md +11 -0
- package/.claude/skills/cx-module/ref-components-specialized.md +10 -0
- package/.claude/skills/cx-workflow/SKILL.md +4 -18
- package/.claude/skills/cx-workflow/ref-communication.md +8 -0
- package/.claude/skills/cx-workflow/ref-entity.md +17 -0
- package/.claude/skills/cx-workflow/ref-expressions.md +5 -0
- package/.claude/skills/cx-workflow/ref-flow.md +7 -0
- package/.claude/skills/cx-workflow/ref-other.md +9 -0
- package/.claude/skills/cx-workflow/ref-utilities.md +12 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cx-core
|
|
3
3
|
description: >
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
Provides shared CargoXplorer entity field reference — domain entities, field names, enums, and customValues patterns.
|
|
5
|
+
Use when the user asks about CX entity fields, enums, customValues, entity relationships, or needs domain reference for Orders, Contacts, Commodities, Jobs, etc.
|
|
6
6
|
argument-hint: <entity name or question about fields>
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -10,88 +10,7 @@ Shared domain reference for CargoXplorer entities. Used by `cx-workflow` and `cx
|
|
|
10
10
|
|
|
11
11
|
## CX Server Authentication & Management
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
### Authentication
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
# Login to a CX environment (OAuth2 + PKCE — opens browser)
|
|
19
|
-
npx cxtms login https://tms-v3-dev.usatrt.com
|
|
20
|
-
|
|
21
|
-
# Logout from current session
|
|
22
|
-
npx cxtms logout
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
The session is stored at `~/.cxtms/<project-dir>/.session.json`, scoped by project directory name. Each project gets its own server session. The CLI auto-refreshes expired tokens.
|
|
26
|
-
|
|
27
|
-
### PAT Tokens (alternative to OAuth)
|
|
28
|
-
|
|
29
|
-
For CI/CD or headless environments, use Personal Access Tokens instead of interactive OAuth:
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
# Check PAT status and setup instructions
|
|
33
|
-
npx cxtms pat setup
|
|
34
|
-
|
|
35
|
-
# Create a new PAT token (requires OAuth login first)
|
|
36
|
-
npx cxtms pat create "my-ci-token"
|
|
37
|
-
|
|
38
|
-
# List active PAT tokens
|
|
39
|
-
npx cxtms pat list
|
|
40
|
-
|
|
41
|
-
# Revoke a PAT token
|
|
42
|
-
npx cxtms pat revoke <tokenId>
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
After creating a PAT, add to `.env` in your project root:
|
|
46
|
-
```
|
|
47
|
-
CXTMS_AUTH=pat_xxxxx...
|
|
48
|
-
CXTMS_SERVER=https://tms-v3-dev.usatrt.com
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
When `CXTMS_AUTH` is set, the CLI skips OAuth and uses the PAT token directly. `CXTMS_SERVER` provides the server URL (or set `server` in `app.yaml`).
|
|
52
|
-
|
|
53
|
-
### Organization Management
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
# List organizations on the server
|
|
57
|
-
npx cxtms orgs list
|
|
58
|
-
|
|
59
|
-
# Select an organization interactively
|
|
60
|
-
npx cxtms orgs select
|
|
61
|
-
|
|
62
|
-
# Set active organization by ID
|
|
63
|
-
npx cxtms orgs use <orgId>
|
|
64
|
-
|
|
65
|
-
# Show current context (server, org, app)
|
|
66
|
-
npx cxtms orgs use
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
The active org is cached in the session file and used by all server commands. Override with `--org <id>`.
|
|
70
|
-
|
|
71
|
-
### Session Resolution
|
|
72
|
-
|
|
73
|
-
Server commands resolve the target session in this order:
|
|
74
|
-
1. `CXTMS_AUTH` env var → PAT token auth (with `CXTMS_SERVER` or `app.yaml` server field)
|
|
75
|
-
2. `~/.cxtms/<project-dir>/.session.json` → project-scoped OAuth session
|
|
76
|
-
3. Not logged in → error
|
|
77
|
-
|
|
78
|
-
### Publish
|
|
79
|
-
|
|
80
|
-
```bash
|
|
81
|
-
# Publish all modules and workflows from current project
|
|
82
|
-
npx cxtms publish
|
|
83
|
-
|
|
84
|
-
# Publish only a specific feature directory
|
|
85
|
-
npx cxtms publish --feature billing
|
|
86
|
-
npx cxtms publish billing
|
|
87
|
-
|
|
88
|
-
# Publish with explicit org ID
|
|
89
|
-
npx cxtms publish --org 42
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
Validates all YAML files first, then pushes modules and workflows to the server. Skips files with validation errors and reports results.
|
|
93
|
-
|
|
94
|
-
---
|
|
13
|
+
For CLI authentication, PAT tokens, org management, and publishing: see [ref-cli-auth.md](ref-cli-auth.md)
|
|
95
14
|
|
|
96
15
|
## Feature File Layout
|
|
97
16
|
|
|
@@ -112,40 +31,17 @@ Use `--feature <feature_name>` with `cxtms create` to automatically place files
|
|
|
112
31
|
|
|
113
32
|
## Entity Field Reference
|
|
114
33
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
!cat .claude/skills/cx-core/ref-entity-order.md
|
|
118
|
-
!cat .claude/skills/cx-core/ref-entity-contact.md
|
|
119
|
-
!cat .claude/skills/cx-core/ref-entity-commodity.md
|
|
120
|
-
!cat .claude/skills/cx-core/ref-entity-accounting.md
|
|
121
|
-
|
|
122
|
-
### Order Sub-Entities & Related
|
|
123
|
-
|
|
124
|
-
!cat .claude/skills/cx-core/ref-entity-order-sub.md
|
|
125
|
-
!cat .claude/skills/cx-core/ref-entity-job.md
|
|
126
|
-
|
|
127
|
-
### Pricing & Accounting Lookups
|
|
128
|
-
|
|
129
|
-
!cat .claude/skills/cx-core/ref-entity-rate.md
|
|
130
|
-
|
|
131
|
-
### Shared & Lookup Entities
|
|
132
|
-
|
|
133
|
-
!cat .claude/skills/cx-core/ref-entity-shared.md
|
|
134
|
-
!cat .claude/skills/cx-core/ref-entity-geography.md
|
|
135
|
-
|
|
136
|
-
### Warehouse & Inventory
|
|
137
|
-
|
|
138
|
-
!cat .claude/skills/cx-core/ref-entity-warehouse.md
|
|
34
|
+
Read the relevant entity reference file when needed for the current task. Do not load all files upfront.
|
|
139
35
|
|
|
140
36
|
| Category | Entities | Reference |
|
|
141
37
|
|----------|----------|-----------|
|
|
142
|
-
| **Primary** | Order, Contact, Commodity, AccountingTransaction | ref-entity-order
|
|
143
|
-
| **Order sub** | OrderEntity, TrackingEvent, EventDefinition, LinkedOrder, OrderDocument | ref-entity-order-sub.md |
|
|
144
|
-
| **Job** | Job, JobOrder, JobStatus | ref-entity-job.md |
|
|
145
|
-
| **Pricing** | Rate, Lane, Discount, AccountingItem, AccountingAccount, PaymentTerm | ref-entity-rate.md |
|
|
146
|
-
| **Shared** | Tag, Attachment, Division, EquipmentType, PackageType, Note/NoteThread | ref-entity-shared.md |
|
|
147
|
-
| **Geography** | Country, State, City, Port, Vessel, CustomCode, ModeOfTransportation | ref-entity-geography.md |
|
|
148
|
-
| **Warehouse** | InventoryItem, WarehouseLocation, CargoMovement (Order variant) | ref-entity-warehouse.md |
|
|
38
|
+
| **Primary** | Order, Contact, Commodity, AccountingTransaction | [ref-entity-order.md](ref-entity-order.md), [ref-entity-contact.md](ref-entity-contact.md), [ref-entity-commodity.md](ref-entity-commodity.md), [ref-entity-accounting.md](ref-entity-accounting.md) |
|
|
39
|
+
| **Order sub** | OrderEntity, TrackingEvent, EventDefinition, LinkedOrder, OrderDocument | [ref-entity-order-sub.md](ref-entity-order-sub.md) |
|
|
40
|
+
| **Job** | Job, JobOrder, JobStatus | [ref-entity-job.md](ref-entity-job.md) |
|
|
41
|
+
| **Pricing** | Rate, Lane, Discount, AccountingItem, AccountingAccount, PaymentTerm | [ref-entity-rate.md](ref-entity-rate.md) |
|
|
42
|
+
| **Shared** | Tag, Attachment, Division, EquipmentType, PackageType, Note/NoteThread | [ref-entity-shared.md](ref-entity-shared.md) |
|
|
43
|
+
| **Geography** | Country, State, City, Port, Vessel, CustomCode, ModeOfTransportation | [ref-entity-geography.md](ref-entity-geography.md) |
|
|
44
|
+
| **Warehouse** | InventoryItem, WarehouseLocation, CargoMovement (Order variant) | [ref-entity-warehouse.md](ref-entity-warehouse.md) |
|
|
149
45
|
|
|
150
46
|
## CustomValues Pattern
|
|
151
47
|
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# CX Server Authentication & Management
|
|
2
|
+
|
|
3
|
+
## Contents
|
|
4
|
+
- Authentication (OAuth2 login/logout)
|
|
5
|
+
- PAT Tokens (CI/CD alternative to OAuth)
|
|
6
|
+
- Organization Management
|
|
7
|
+
- Session Resolution
|
|
8
|
+
- Publish (push modules and workflows to server)
|
|
9
|
+
|
|
10
|
+
## Authentication
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
# Login to a CX environment (OAuth2 + PKCE — opens browser)
|
|
14
|
+
npx cxtms login https://tms-v3-dev.usatrt.com
|
|
15
|
+
|
|
16
|
+
# Logout from current session
|
|
17
|
+
npx cxtms logout
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
The session is stored at `~/.cxtms/<project-dir>/.session.json`, scoped by project directory name. Each project gets its own server session. The CLI auto-refreshes expired tokens.
|
|
21
|
+
|
|
22
|
+
## PAT Tokens (alternative to OAuth)
|
|
23
|
+
|
|
24
|
+
For CI/CD or headless environments, use Personal Access Tokens instead of interactive OAuth:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# Check PAT status and setup instructions
|
|
28
|
+
npx cxtms pat setup
|
|
29
|
+
|
|
30
|
+
# Create a new PAT token (requires OAuth login first)
|
|
31
|
+
npx cxtms pat create "my-ci-token"
|
|
32
|
+
|
|
33
|
+
# List active PAT tokens
|
|
34
|
+
npx cxtms pat list
|
|
35
|
+
|
|
36
|
+
# Revoke a PAT token
|
|
37
|
+
npx cxtms pat revoke <tokenId>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
After creating a PAT, add to `.env` in your project root:
|
|
41
|
+
```
|
|
42
|
+
CXTMS_AUTH=pat_xxxxx...
|
|
43
|
+
CXTMS_SERVER=https://tms-v3-dev.usatrt.com
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
When `CXTMS_AUTH` is set, the CLI skips OAuth and uses the PAT token directly. `CXTMS_SERVER` provides the server URL (or set `server` in `app.yaml`).
|
|
47
|
+
|
|
48
|
+
## Organization Management
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# List organizations on the server
|
|
52
|
+
npx cxtms orgs list
|
|
53
|
+
|
|
54
|
+
# Select an organization interactively
|
|
55
|
+
npx cxtms orgs select
|
|
56
|
+
|
|
57
|
+
# Set active organization by ID
|
|
58
|
+
npx cxtms orgs use <orgId>
|
|
59
|
+
|
|
60
|
+
# Show current context (server, org, app)
|
|
61
|
+
npx cxtms orgs use
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
The active org is cached in the session file and used by all server commands. Override with `--org <id>`.
|
|
65
|
+
|
|
66
|
+
## Session Resolution
|
|
67
|
+
|
|
68
|
+
Server commands resolve the target session in this order:
|
|
69
|
+
1. `CXTMS_AUTH` env var → PAT token auth (with `CXTMS_SERVER` or `app.yaml` server field)
|
|
70
|
+
2. `~/.cxtms/<project-dir>/.session.json` → project-scoped OAuth session
|
|
71
|
+
3. Not logged in → error
|
|
72
|
+
|
|
73
|
+
## Publish
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
# Publish all modules and workflows from current project
|
|
77
|
+
npx cxtms publish
|
|
78
|
+
|
|
79
|
+
# Publish only a specific feature directory
|
|
80
|
+
npx cxtms publish --feature billing
|
|
81
|
+
npx cxtms publish billing
|
|
82
|
+
|
|
83
|
+
# Publish with explicit org ID
|
|
84
|
+
npx cxtms publish --org 42
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Validates all YAML files first, then pushes modules and workflows to the server. Skips files with validation errors and reports results.
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Accounting Transaction Entity Field Reference
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
- AccountingTransaction Fields
|
|
5
|
+
- Charge Entity
|
|
6
|
+
- Payment Entity
|
|
7
|
+
- Accounting Enums
|
|
8
|
+
- Accounting CustomValues
|
|
9
|
+
|
|
3
10
|
Field names as used in workflow expressions: `{{ entity.transactionNumber }}`, `{{ entity.customValues.myField }}`.
|
|
4
11
|
|
|
5
12
|
## AccountingTransaction Fields
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Commodity Entity Field Reference
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
- Commodity Scalar Fields
|
|
5
|
+
- Commodity Navigation Properties
|
|
6
|
+
- Commodity Collection Properties
|
|
7
|
+
- Commodity Computed/Resolved GraphQL Fields
|
|
8
|
+
- Commodity Container/Child Pattern (Self-Referencing)
|
|
9
|
+
- CommodityTrackingNumber Sub-Entity
|
|
10
|
+
- OrderCommodity Join Entity
|
|
11
|
+
- Commodity Enums
|
|
12
|
+
- Commodity CustomValues
|
|
13
|
+
- CommodityEvent (Bridge Entity)
|
|
14
|
+
|
|
3
15
|
Field names as used in workflow expressions: `{{ entity.description }}`, `{{ entity.customValues.myField }}`.
|
|
4
16
|
|
|
5
17
|
## Scalar Fields
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Contact Entity Field Reference
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
- Contact Scalar Fields
|
|
5
|
+
- Contact Navigation Properties
|
|
6
|
+
- Contact Collection Properties
|
|
7
|
+
- Contact Computed/Resolved GraphQL Fields
|
|
8
|
+
- ContactType Enum
|
|
9
|
+
- ContactAddress Sub-Entity
|
|
10
|
+
- Contact Other Related Enums
|
|
11
|
+
- Contact CustomValues
|
|
12
|
+
|
|
3
13
|
Field names as used in workflow expressions: `{{ entity.name }}`, `{{ entity.customValues.myField }}`.
|
|
4
14
|
|
|
5
15
|
## Scalar Fields
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Order Sub-Entity Field Reference
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
- OrderEntity
|
|
5
|
+
- TrackingEvent
|
|
6
|
+
- EventDefinition
|
|
7
|
+
- LinkedOrder
|
|
8
|
+
- OrderDocument
|
|
9
|
+
|
|
3
10
|
Entities associated with orders: OrderEntity (parties), TrackingEvent, LinkedOrder, OrderDocument.
|
|
4
11
|
|
|
5
12
|
## OrderEntity
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Order Entity Field Reference
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
- Order Scalar Fields
|
|
5
|
+
- Order Navigation Properties
|
|
6
|
+
- Order Collection Properties
|
|
7
|
+
- Pre-filtered OrderEntity Collections (GraphQL)
|
|
8
|
+
- Order Computed/Resolved GraphQL Fields
|
|
9
|
+
- OrderTypes Enum
|
|
10
|
+
- EntityTypes Enum (for OrderEntity)
|
|
11
|
+
- Order CustomValues
|
|
12
|
+
|
|
3
13
|
Field names as used in workflow expressions: `{{ entity.orderId }}`, `{{ entity.customValues.myField }}`.
|
|
4
14
|
|
|
5
15
|
## Scalar Fields
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cx-module
|
|
3
3
|
description: >
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
Generates schema-valid CargoXplorer app module YAML files (UI screens, forms, grids, routes).
|
|
5
|
+
Use when the user asks to create, modify, or fix a module YAML file, references *-module.yaml files, or asks about UI components/forms/grids/routes in a CX project.
|
|
6
|
+
Not for workflow YAML files, TypeScript code, or non-YAML tasks.
|
|
7
7
|
argument-hint: <description of what to build>
|
|
8
8
|
---
|
|
9
9
|
|
|
@@ -400,24 +400,7 @@ Reusable select components (e.g., `Countries/Select`, `Ports/Select`) follow thi
|
|
|
400
400
|
|
|
401
401
|
## Server Module Commands
|
|
402
402
|
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
```bash
|
|
406
|
-
# Deploy a module YAML to the server (creates or updates)
|
|
407
|
-
npx cxtms appmodule deploy modules/my-module.yaml
|
|
408
|
-
|
|
409
|
-
# Deploy with explicit org ID
|
|
410
|
-
npx cxtms appmodule deploy modules/my-module.yaml --org 42
|
|
411
|
-
|
|
412
|
-
# Undeploy an app module by UUID
|
|
413
|
-
npx cxtms appmodule undeploy <appModuleId>
|
|
414
|
-
|
|
415
|
-
# Publish all modules and workflows (validates first)
|
|
416
|
-
npx cxtms publish
|
|
417
|
-
npx cxtms publish --feature billing
|
|
418
|
-
```
|
|
419
|
-
|
|
420
|
-
Deploy reads `module.appModuleId` from the YAML, queries the server, and creates or updates accordingly. Requires an active session (`cxtms login` or PAT token — see cx-core skill).
|
|
403
|
+
Deploy, undeploy, and publish commands are listed in the CLI section at the top of this file. For authentication setup (login, PAT tokens, org management): see [cx-core/ref-cli-auth.md](.claude/skills/cx-core/ref-cli-auth.md)
|
|
421
404
|
|
|
422
405
|
---
|
|
423
406
|
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Data & Collection Components
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
- Collection component
|
|
5
|
+
- List component
|
|
6
|
+
- ListItem component
|
|
7
|
+
- Datasource component
|
|
8
|
+
- Script component
|
|
9
|
+
|
|
3
10
|
## collection
|
|
4
11
|
|
|
5
12
|
Iterates over data items and renders children as templates. Supports drag-and-drop reordering.
|
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Data Display Components
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
- DataGrid component
|
|
5
|
+
- Text component
|
|
6
|
+
- Markup component
|
|
7
|
+
- Badge component
|
|
8
|
+
- Icon component
|
|
9
|
+
- Image component
|
|
10
|
+
- Photo component
|
|
11
|
+
- Summary component
|
|
12
|
+
- Diff component
|
|
13
|
+
- Viewer component
|
|
14
|
+
- Embed component
|
|
15
|
+
|
|
3
16
|
## dataGrid
|
|
4
17
|
|
|
5
18
|
Full-featured data table with views, filtering, sorting, pagination, and row actions.
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Interactive & Navigation Components
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
- Button component
|
|
5
|
+
- Dropdown component
|
|
6
|
+
- MenuButton component
|
|
7
|
+
- Link component
|
|
8
|
+
- Redirect component
|
|
9
|
+
- Navbar component
|
|
10
|
+
- NavbarItem component
|
|
11
|
+
- NavbarLink component
|
|
12
|
+
- NavDropdown component
|
|
13
|
+
|
|
3
14
|
## button
|
|
4
15
|
|
|
5
16
|
MUI Button with icon, label, loading state, and action dispatch.
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Layout & Structure Components
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
- Layout component
|
|
5
|
+
- Row component
|
|
6
|
+
- Col component
|
|
7
|
+
- Header component
|
|
8
|
+
- Tabs component
|
|
9
|
+
- Toolbar component
|
|
10
|
+
- Card component
|
|
11
|
+
- Line component
|
|
12
|
+
- Slot component
|
|
13
|
+
|
|
3
14
|
## layout
|
|
4
15
|
|
|
5
16
|
General-purpose container. Renders MUI Grid or Box with flexbox.
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Specialized Components
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
- Calendar component
|
|
5
|
+
- Notes component
|
|
6
|
+
- Dashboard component
|
|
7
|
+
- DashboardWidget component
|
|
8
|
+
- Widget component
|
|
9
|
+
- Timeline component
|
|
10
|
+
- TimelineGrid component
|
|
11
|
+
- OAuth2 component
|
|
12
|
+
|
|
3
13
|
## calendar
|
|
4
14
|
|
|
5
15
|
FullCalendar integration with GraphQL event sources, timezone support, and programmatic control.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cx-workflow
|
|
3
3
|
description: >
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
Generates schema-valid CargoXplorer workflow YAML files (standard process and Flow state machine workflows).
|
|
5
|
+
Use when the user asks to create, modify, or fix a workflow YAML file, references workflow/*.yaml files, or asks about workflow tasks/triggers/activities in a CX project.
|
|
6
|
+
Not for module YAML files, TypeScript code, or non-YAML tasks.
|
|
7
7
|
argument-hint: <description of what to build>
|
|
8
8
|
---
|
|
9
9
|
|
|
@@ -318,21 +318,7 @@ Implicit variable: `iteration` (zero-based).
|
|
|
318
318
|
|
|
319
319
|
## Server Workflow Commands
|
|
320
320
|
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
```bash
|
|
324
|
-
# Push a workflow YAML to the server (creates or updates)
|
|
325
|
-
npx cxtms workflow deploy workflows/my-workflow.yaml
|
|
326
|
-
|
|
327
|
-
# Delete a workflow by UUID
|
|
328
|
-
npx cxtms workflow undeploy <workflowId>
|
|
329
|
-
|
|
330
|
-
# Publish all modules and workflows (validates first)
|
|
331
|
-
npx cxtms publish
|
|
332
|
-
npx cxtms publish --feature billing
|
|
333
|
-
```
|
|
334
|
-
|
|
335
|
-
Deploy reads `workflow.workflowId` from the YAML, queries the server, and creates or updates accordingly. Requires an active session (`cxtms login` or PAT token — see cx-core skill).
|
|
321
|
+
Deploy, undeploy, and publish commands are listed in the CLI section at the top of this file. For authentication setup (login, PAT tokens, org management): see [cx-core/ref-cli-auth.md](.claude/skills/cx-core/ref-cli-auth.md)
|
|
336
322
|
|
|
337
323
|
### Execute
|
|
338
324
|
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Communication & Document Tasks Reference
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
- Email/Send task (send emails with templates and attachments)
|
|
5
|
+
- Email/VerifyCode task (send and verify email verification codes)
|
|
6
|
+
- Document/Render task (render PDF or Excel from HTML templates)
|
|
7
|
+
- Document/Send task (send a previously rendered document)
|
|
8
|
+
- Attachment tasks (Create, Update, Thumbnail, PdfThumbnail, RegenerateThumbnails)
|
|
9
|
+
- PdfDocument/Merge task (merge multiple PDFs into one)
|
|
10
|
+
|
|
3
11
|
## Email/Send
|
|
4
12
|
|
|
5
13
|
Sends emails with optional templates and attachments.
|
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Entity CRUD Tasks Reference
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
- Entity/Change task (generic entity modification in Before triggers)
|
|
5
|
+
- Order tasks (Create, Update, Delete, Get, Copy, Split, Import, etc.)
|
|
6
|
+
- Contact tasks (Create, Update, Delete)
|
|
7
|
+
- ContactAddress tasks (Create, Update, Delete, Import)
|
|
8
|
+
- ContactPaymentMethod tasks (Create, Update, SendChargedAmount, VerifyChargedAmount)
|
|
9
|
+
- Commodity tasks (Create, Update, Split, Repack, Unpack)
|
|
10
|
+
- CommodityTrackingNumber tasks (Create, Update, Delete)
|
|
11
|
+
- Job tasks (Create, Update, Delete, Assign, Unassign)
|
|
12
|
+
- Charge tasks (Create, Update, Delete, DynamicUpdate, Calculate)
|
|
13
|
+
- Discount task (Update)
|
|
14
|
+
- Order sub-entity tasks (OrderCommodity, OrderCharge, OrderDocument, OrderTrackingEvent, OrderEntity)
|
|
15
|
+
- Inventory tasks (InventoryItem Create, Update, Delete)
|
|
16
|
+
- Other entity tasks (Movement, Country, Cities, Rate, TrackingEvent/Import)
|
|
17
|
+
- Note tasks (Create, Update, Delete, Import, Export, RenameThread)
|
|
18
|
+
- AccountingTransaction/ApplyCredit task
|
|
19
|
+
|
|
3
20
|
All entity tasks follow the `Namespace/Operation@Version` pattern. Outputs are stored as `ActivityName.StepName.outputKey`.
|
|
4
21
|
|
|
5
22
|
## Generic Entity Change
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Variable References & Expressions
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
- Template Expressions: `{{ path }}` (in step inputs)
|
|
5
|
+
- NCalc Expressions: `[variable]` (in conditions and expression directives)
|
|
6
|
+
- Property Path Syntax (in collection, mapping, variable paths)
|
|
7
|
+
|
|
3
8
|
There are **two distinct syntaxes** for referencing variables, used in different contexts.
|
|
4
9
|
|
|
5
10
|
## Template Expressions: `{{ path }}` (in step inputs)
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Flow Workflow YAML Reference
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
- Flow top-level structure (workflowType, entity, states, transitions, aggregations)
|
|
5
|
+
- Flow entity section (entity name, type, includes, query)
|
|
6
|
+
- Flow states section (initial, final, parent hierarchy, onEnter/onExit steps)
|
|
7
|
+
- Flow transitions section (manual, auto, event triggers; from/to states; conditions)
|
|
8
|
+
- Flow aggregations section (reusable collection expressions: all, any, sum, count)
|
|
9
|
+
|
|
3
10
|
Flow workflows are declarative state machines for entity lifecycle management. Use `workflowType: Flow` in the workflow section.
|
|
4
11
|
|
|
5
12
|
## Top-Level Structure
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Other Tasks Reference
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
- User & Auth tasks (User CRUD, verification codes, OAuth2 authentication)
|
|
5
|
+
- Caching tasks (SetCache and GetCache for in-memory key-value storage)
|
|
6
|
+
- EDI & Structured File Parsing tasks (EDI/Parse for X12/EDIFACT, StructuredFile/Parse)
|
|
7
|
+
- Flow/Transition task (trigger state machine transitions programmatically)
|
|
8
|
+
- Note tasks (Create, Update, Delete, NoteThread/Rename, bulk Import/Export)
|
|
9
|
+
- AppModule tasks (Create, Update, Delete app modules)
|
|
10
|
+
- ActionEvent/Create task (trigger UI notifications or webhooks)
|
|
11
|
+
|
|
3
12
|
## User & Auth
|
|
4
13
|
|
|
5
14
|
| Task | Description |
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Utilities Tasks Reference
|
|
2
2
|
|
|
3
|
+
## Contents
|
|
4
|
+
- Available utility tasks (summary table of all Utilities/* tasks)
|
|
5
|
+
- SetVariable task (set variables in activity and global scope)
|
|
6
|
+
- Log task (log variables and messages to workflow logger)
|
|
7
|
+
- Error task (throw workflow error to halt execution)
|
|
8
|
+
- HttpRequest task (HTTP calls to external APIs with action events)
|
|
9
|
+
- Map task (extract and reshape data into new variables)
|
|
10
|
+
- Template task (Handlebars template rendering)
|
|
11
|
+
- CsvParse task (parse CSV content into structured data)
|
|
12
|
+
- Export task (export data to file format)
|
|
13
|
+
- Import task (import data from file content)
|
|
14
|
+
|
|
3
15
|
## Available Tasks
|
|
4
16
|
|
|
5
17
|
| Task | Description |
|