@epilot/cli 0.1.22 → 0.1.24
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/README.md +1 -1
- package/definitions/automation.json +42 -0
- package/definitions/entity.json +391 -4
- package/definitions/kanban.json +2 -1
- package/definitions/pricing.json +158 -83
- package/dist/bin/epilot.js +6 -6
- package/dist/{chunk-KI2MVPE4.js → chunk-U5JW65I3.js} +4 -1
- package/dist/{completion-A3BQFVLK.js → completion-76TTN5FM.js} +1 -1
- package/dist/{upgrade-XAY377R6.js → upgrade-3SGNJUWL.js} +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,6 +70,15 @@
|
|
|
70
70
|
"example": "600945fe-212e-4b97-acf7-391d64648384"
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
|
+
{
|
|
74
|
+
"name": "target_workflow",
|
|
75
|
+
"in": "query",
|
|
76
|
+
"description": "Filter by target workflow ID. Returns only automations that have a trigger-workflow action targeting this workflow.",
|
|
77
|
+
"schema": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"example": "wfABCDEFGH"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
73
82
|
{
|
|
74
83
|
"name": "include_flows",
|
|
75
84
|
"in": "query",
|
|
@@ -2239,6 +2248,11 @@
|
|
|
2239
2248
|
"type": "boolean",
|
|
2240
2249
|
"description": "When enabled, the email thread will be automatically marked as done after this action completes.",
|
|
2241
2250
|
"default": false
|
|
2251
|
+
},
|
|
2252
|
+
"mark_as_read": {
|
|
2253
|
+
"type": "boolean",
|
|
2254
|
+
"description": "When enabled, the email thread will be marked as read after this action completes.",
|
|
2255
|
+
"default": true
|
|
2242
2256
|
}
|
|
2243
2257
|
},
|
|
2244
2258
|
"required": [
|
|
@@ -2323,6 +2337,11 @@
|
|
|
2323
2337
|
"type": "boolean",
|
|
2324
2338
|
"description": "When enabled, the email thread will be automatically marked as done after this action completes.",
|
|
2325
2339
|
"default": false
|
|
2340
|
+
},
|
|
2341
|
+
"mark_as_read": {
|
|
2342
|
+
"type": "boolean",
|
|
2343
|
+
"description": "When enabled, the email thread will be marked as read after this action completes.",
|
|
2344
|
+
"default": false
|
|
2326
2345
|
}
|
|
2327
2346
|
}
|
|
2328
2347
|
},
|
|
@@ -2373,6 +2392,11 @@
|
|
|
2373
2392
|
"description": "When enabled, the email thread will be automatically marked as done after this action completes.",
|
|
2374
2393
|
"default": true
|
|
2375
2394
|
},
|
|
2395
|
+
"mark_as_read": {
|
|
2396
|
+
"type": "boolean",
|
|
2397
|
+
"description": "When enabled, the email thread will be marked as read after this action completes.",
|
|
2398
|
+
"default": true
|
|
2399
|
+
},
|
|
2376
2400
|
"attachments": {
|
|
2377
2401
|
"type": "array",
|
|
2378
2402
|
"description": "Include extra file attachments in sent email.\nAttachments in email template will be sent regardless of this configuration.\n",
|
|
@@ -3438,6 +3462,24 @@
|
|
|
3438
3462
|
},
|
|
3439
3463
|
"_execution_chain": {
|
|
3440
3464
|
"$ref": "#/components/schemas/ExecutionChain"
|
|
3465
|
+
},
|
|
3466
|
+
"entity_contexts": {
|
|
3467
|
+
"type": "array",
|
|
3468
|
+
"description": "Additional entity contexts from the parent flow execution. Used when an automation is triggered from a workflow task to carry all flow contexts into the automation, not just the primary entity.\n",
|
|
3469
|
+
"items": {
|
|
3470
|
+
"type": "object",
|
|
3471
|
+
"properties": {
|
|
3472
|
+
"entity_id": {
|
|
3473
|
+
"type": "string"
|
|
3474
|
+
},
|
|
3475
|
+
"entity_schema": {
|
|
3476
|
+
"type": "string"
|
|
3477
|
+
},
|
|
3478
|
+
"is_primary": {
|
|
3479
|
+
"type": "boolean"
|
|
3480
|
+
}
|
|
3481
|
+
}
|
|
3482
|
+
}
|
|
3441
3483
|
}
|
|
3442
3484
|
}
|
|
3443
3485
|
},
|
package/definitions/entity.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.0.2",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Entity API",
|
|
5
|
-
"version": "2.
|
|
5
|
+
"version": "2.9.0",
|
|
6
6
|
"description": "Flexible data layer for epilot Entities.\n\nUse this API configure and access your business objects like Contacts, Opportunities and Products.\n\n[Feature Documentation](https://docs.epilot.io/docs/entities/flexible-entities)\n"
|
|
7
7
|
},
|
|
8
8
|
"tags": [
|
|
@@ -1428,6 +1428,9 @@
|
|
|
1428
1428
|
"schema": {
|
|
1429
1429
|
"$ref": "#/components/schemas/FieldsParam"
|
|
1430
1430
|
}
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
"$ref": "#/components/parameters/ApplyChangesetsQueryParam"
|
|
1431
1434
|
}
|
|
1432
1435
|
],
|
|
1433
1436
|
"responses": {
|
|
@@ -1619,6 +1622,9 @@
|
|
|
1619
1622
|
},
|
|
1620
1623
|
{
|
|
1621
1624
|
"$ref": "#/components/parameters/ValidateEntityQueryParam"
|
|
1625
|
+
},
|
|
1626
|
+
{
|
|
1627
|
+
"$ref": "#/components/parameters/DirectQueryParam"
|
|
1622
1628
|
}
|
|
1623
1629
|
],
|
|
1624
1630
|
"requestBody": {
|
|
@@ -1682,6 +1688,9 @@
|
|
|
1682
1688
|
},
|
|
1683
1689
|
{
|
|
1684
1690
|
"$ref": "#/components/parameters/ValidateEntityQueryParam"
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
"$ref": "#/components/parameters/DirectQueryParam"
|
|
1685
1694
|
}
|
|
1686
1695
|
],
|
|
1687
1696
|
"requestBody": {
|
|
@@ -2023,6 +2032,138 @@
|
|
|
2023
2032
|
}
|
|
2024
2033
|
}
|
|
2025
2034
|
},
|
|
2035
|
+
"/v1/entity/{slug}/{id}/changesets/{attribute}:apply": {
|
|
2036
|
+
"post": {
|
|
2037
|
+
"operationId": "applyChangeset",
|
|
2038
|
+
"summary": "applyChangeset",
|
|
2039
|
+
"description": "Applies the proposed value from a pending changeset to the entity attribute\nand removes the changeset. Used for human approval of pending changes.\n",
|
|
2040
|
+
"tags": [
|
|
2041
|
+
"Entities"
|
|
2042
|
+
],
|
|
2043
|
+
"parameters": [
|
|
2044
|
+
{
|
|
2045
|
+
"$ref": "#/components/parameters/EntitySlugPathParam"
|
|
2046
|
+
},
|
|
2047
|
+
{
|
|
2048
|
+
"$ref": "#/components/parameters/EntityIdPathParam"
|
|
2049
|
+
},
|
|
2050
|
+
{
|
|
2051
|
+
"in": "path",
|
|
2052
|
+
"name": "attribute",
|
|
2053
|
+
"required": true,
|
|
2054
|
+
"description": "Attribute name of the changeset to apply",
|
|
2055
|
+
"schema": {
|
|
2056
|
+
"type": "string"
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2059
|
+
],
|
|
2060
|
+
"responses": {
|
|
2061
|
+
"200": {
|
|
2062
|
+
"description": "Changeset applied successfully — returns updated entity",
|
|
2063
|
+
"content": {
|
|
2064
|
+
"application/json": {
|
|
2065
|
+
"schema": {
|
|
2066
|
+
"$ref": "#/components/schemas/EntityItem"
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
}
|
|
2070
|
+
},
|
|
2071
|
+
"404": {
|
|
2072
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
2073
|
+
}
|
|
2074
|
+
}
|
|
2075
|
+
}
|
|
2076
|
+
},
|
|
2077
|
+
"/v1/entity/{slug}/{id}/changesets/{attribute}:dismiss": {
|
|
2078
|
+
"post": {
|
|
2079
|
+
"operationId": "dismissChangeset",
|
|
2080
|
+
"summary": "dismissChangeset",
|
|
2081
|
+
"description": "Removes a pending changeset without applying it. The attribute value remains unchanged.\n",
|
|
2082
|
+
"tags": [
|
|
2083
|
+
"Entities"
|
|
2084
|
+
],
|
|
2085
|
+
"parameters": [
|
|
2086
|
+
{
|
|
2087
|
+
"$ref": "#/components/parameters/EntitySlugPathParam"
|
|
2088
|
+
},
|
|
2089
|
+
{
|
|
2090
|
+
"$ref": "#/components/parameters/EntityIdPathParam"
|
|
2091
|
+
},
|
|
2092
|
+
{
|
|
2093
|
+
"in": "path",
|
|
2094
|
+
"name": "attribute",
|
|
2095
|
+
"required": true,
|
|
2096
|
+
"description": "Attribute name of the changeset to dismiss",
|
|
2097
|
+
"schema": {
|
|
2098
|
+
"type": "string"
|
|
2099
|
+
}
|
|
2100
|
+
}
|
|
2101
|
+
],
|
|
2102
|
+
"requestBody": {
|
|
2103
|
+
"content": {
|
|
2104
|
+
"application/json": {
|
|
2105
|
+
"schema": {
|
|
2106
|
+
"type": "object",
|
|
2107
|
+
"properties": {
|
|
2108
|
+
"reason": {
|
|
2109
|
+
"type": "string",
|
|
2110
|
+
"description": "Optional reason for dismissing the changeset"
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2113
|
+
}
|
|
2114
|
+
}
|
|
2115
|
+
}
|
|
2116
|
+
},
|
|
2117
|
+
"responses": {
|
|
2118
|
+
"200": {
|
|
2119
|
+
"description": "Changeset dismissed successfully — returns updated entity",
|
|
2120
|
+
"content": {
|
|
2121
|
+
"application/json": {
|
|
2122
|
+
"schema": {
|
|
2123
|
+
"$ref": "#/components/schemas/EntityItem"
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
},
|
|
2128
|
+
"404": {
|
|
2129
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
2130
|
+
}
|
|
2131
|
+
}
|
|
2132
|
+
}
|
|
2133
|
+
},
|
|
2134
|
+
"/v1/entity/{slug}/{id}/changesets": {
|
|
2135
|
+
"get": {
|
|
2136
|
+
"operationId": "listChangesets",
|
|
2137
|
+
"summary": "listChangesets",
|
|
2138
|
+
"description": "Returns all pending changesets for an entity.",
|
|
2139
|
+
"tags": [
|
|
2140
|
+
"Entities"
|
|
2141
|
+
],
|
|
2142
|
+
"parameters": [
|
|
2143
|
+
{
|
|
2144
|
+
"$ref": "#/components/parameters/EntitySlugPathParam"
|
|
2145
|
+
},
|
|
2146
|
+
{
|
|
2147
|
+
"$ref": "#/components/parameters/EntityIdPathParam"
|
|
2148
|
+
}
|
|
2149
|
+
],
|
|
2150
|
+
"responses": {
|
|
2151
|
+
"200": {
|
|
2152
|
+
"description": "Pending changesets for the entity",
|
|
2153
|
+
"content": {
|
|
2154
|
+
"application/json": {
|
|
2155
|
+
"schema": {
|
|
2156
|
+
"$ref": "#/components/schemas/ChangesetMap"
|
|
2157
|
+
}
|
|
2158
|
+
}
|
|
2159
|
+
}
|
|
2160
|
+
},
|
|
2161
|
+
"404": {
|
|
2162
|
+
"$ref": "#/components/responses/NotFoundError"
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
2165
|
+
}
|
|
2166
|
+
},
|
|
2026
2167
|
"/v1/entity/{slug}/{id}/activity": {
|
|
2027
2168
|
"get": {
|
|
2028
2169
|
"operationId": "getEntityActivityFeed",
|
|
@@ -3704,7 +3845,7 @@
|
|
|
3704
3845
|
"description": "ISO 8601 timestamp to filter jobs created after this time (e.g., 2023-01-01T00:00:00Z).",
|
|
3705
3846
|
"type": "string",
|
|
3706
3847
|
"format": "date-time",
|
|
3707
|
-
"example": "2023-01-01T00:00:
|
|
3848
|
+
"example": "2023-01-01T00:00:00Z"
|
|
3708
3849
|
}
|
|
3709
3850
|
},
|
|
3710
3851
|
{
|
|
@@ -5497,6 +5638,24 @@
|
|
|
5497
5638
|
},
|
|
5498
5639
|
"has_primary": {
|
|
5499
5640
|
"type": "boolean"
|
|
5641
|
+
},
|
|
5642
|
+
"edit_mode": {
|
|
5643
|
+
"type": "string",
|
|
5644
|
+
"description": "Controls how updates to this attribute are handled.\n- `direct` (default): update is applied immediately. No changeset created.\n- `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).\n- `approval`: update creates a changeset, requires explicit human approval.\n",
|
|
5645
|
+
"enum": [
|
|
5646
|
+
"direct",
|
|
5647
|
+
"external",
|
|
5648
|
+
"approval"
|
|
5649
|
+
],
|
|
5650
|
+
"default": "direct"
|
|
5651
|
+
},
|
|
5652
|
+
"edit_mode_config": {
|
|
5653
|
+
"description": "Configuration for auto-clear matching on `edit_mode: external` attributes.\n`match_strategy` and `fuzzy_config` are only consulted for `external` mode —\nthey are ignored for `approval` mode, which resolves via explicit\n`:apply` / `:dismiss` endpoints and never auto-clears.\n",
|
|
5654
|
+
"allOf": [
|
|
5655
|
+
{
|
|
5656
|
+
"$ref": "#/components/schemas/EditModeConfig"
|
|
5657
|
+
}
|
|
5658
|
+
]
|
|
5500
5659
|
}
|
|
5501
5660
|
},
|
|
5502
5661
|
"required": [
|
|
@@ -7417,6 +7576,15 @@
|
|
|
7417
7576
|
"example": "123e4567-e89b-12d3-a456-426614174000"
|
|
7418
7577
|
},
|
|
7419
7578
|
"nullable": true
|
|
7579
|
+
},
|
|
7580
|
+
"_changesets": {
|
|
7581
|
+
"readOnly": true,
|
|
7582
|
+
"type": "object",
|
|
7583
|
+
"nullable": true,
|
|
7584
|
+
"description": "Pending attribute changesets for attributes configured with external or approval edit mode.\nRead-only via normal entity PATCH/PUT operations — cannot be set directly.\nUse the changeset management endpoints to apply or dismiss changesets.\n",
|
|
7585
|
+
"additionalProperties": {
|
|
7586
|
+
"$ref": "#/components/schemas/Changeset"
|
|
7587
|
+
}
|
|
7420
7588
|
}
|
|
7421
7589
|
},
|
|
7422
7590
|
"example": {
|
|
@@ -8350,6 +8518,11 @@
|
|
|
8350
8518
|
"type": "boolean",
|
|
8351
8519
|
"description": "If true, return full entity objects in entityNodes instead of just entity IDs in nodes",
|
|
8352
8520
|
"default": false
|
|
8521
|
+
},
|
|
8522
|
+
"apply_changesets": {
|
|
8523
|
+
"type": "boolean",
|
|
8524
|
+
"description": "When true and hydrate is also true, entity objects in entityNodes have pending changeset proposed values applied in-place. The _changesets field is still included in the response.",
|
|
8525
|
+
"default": false
|
|
8353
8526
|
}
|
|
8354
8527
|
}
|
|
8355
8528
|
},
|
|
@@ -8646,11 +8819,16 @@
|
|
|
8646
8819
|
"float",
|
|
8647
8820
|
"date",
|
|
8648
8821
|
"flattened",
|
|
8649
|
-
"nested"
|
|
8822
|
+
"nested",
|
|
8823
|
+
"object"
|
|
8650
8824
|
]
|
|
8651
8825
|
},
|
|
8652
8826
|
"fields": {
|
|
8653
8827
|
"additionalProperties": true
|
|
8828
|
+
},
|
|
8829
|
+
"dynamic": {
|
|
8830
|
+
"type": "boolean",
|
|
8831
|
+
"description": "When false, prevents ES from inferring types for nested fields. Used for _changesets where values can be any type."
|
|
8654
8832
|
}
|
|
8655
8833
|
}
|
|
8656
8834
|
}
|
|
@@ -8717,7 +8895,7 @@
|
|
|
8717
8895
|
},
|
|
8718
8896
|
"ActivityType": {
|
|
8719
8897
|
"type": "string",
|
|
8720
|
-
"description": "A type for the activity. Used to categorize activities in the activity feed and for event subscriptions.\n\nBuilt-in entity activity types (custom activities can be defined as well):\n- EntityCreated\n- EntityUpdated\n- EntityDeleted\n- EntitySoftDeleted\n- EntityRestored\n- RelationsAdded\n- RelationsRemoved\n- RelationsSoftDeleted\n- RelationsRestored\n- RelationsDeleted\n"
|
|
8898
|
+
"description": "A type for the activity. Used to categorize activities in the activity feed and for event subscriptions.\n\nBuilt-in entity activity types (custom activities can be defined as well):\n- EntityCreated\n- EntityUpdated\n- EntityDeleted\n- EntitySoftDeleted\n- EntityRestored\n- RelationsAdded\n- RelationsRemoved\n- RelationsSoftDeleted\n- RelationsRestored\n- RelationsDeleted\n- ChangesetCreated\n- ChangesetAutoCleared\n- ChangesetApplied\n- ChangesetDismissed\n"
|
|
8721
8899
|
},
|
|
8722
8900
|
"Activity": {
|
|
8723
8901
|
"type": "object",
|
|
@@ -9505,6 +9683,195 @@
|
|
|
9505
9683
|
"example": "Bad Request"
|
|
9506
9684
|
}
|
|
9507
9685
|
}
|
|
9686
|
+
},
|
|
9687
|
+
"ChangesetCreator": {
|
|
9688
|
+
"type": "object",
|
|
9689
|
+
"description": "Identifies the actor that created the changeset.",
|
|
9690
|
+
"properties": {
|
|
9691
|
+
"type": {
|
|
9692
|
+
"type": "string",
|
|
9693
|
+
"description": "Type of actor that created the changeset",
|
|
9694
|
+
"enum": [
|
|
9695
|
+
"user",
|
|
9696
|
+
"portal_user",
|
|
9697
|
+
"api_client",
|
|
9698
|
+
"automation"
|
|
9699
|
+
]
|
|
9700
|
+
},
|
|
9701
|
+
"id": {
|
|
9702
|
+
"type": "string",
|
|
9703
|
+
"description": "ID of the actor (user ID, portal user ID, API client ID, etc.)"
|
|
9704
|
+
}
|
|
9705
|
+
}
|
|
9706
|
+
},
|
|
9707
|
+
"Changeset": {
|
|
9708
|
+
"type": "object",
|
|
9709
|
+
"description": "A pending proposed change for a single entity attribute, awaiting external confirmation or human approval.",
|
|
9710
|
+
"required": [
|
|
9711
|
+
"proposed_value",
|
|
9712
|
+
"created_at",
|
|
9713
|
+
"edit_mode"
|
|
9714
|
+
],
|
|
9715
|
+
"properties": {
|
|
9716
|
+
"proposed_value": {
|
|
9717
|
+
"description": "The proposed new value for the attribute. Type matches the attribute type."
|
|
9718
|
+
},
|
|
9719
|
+
"previous_value": {
|
|
9720
|
+
"description": "The attribute value at the time the changeset was created. Stored for reference."
|
|
9721
|
+
},
|
|
9722
|
+
"created_at": {
|
|
9723
|
+
"type": "string",
|
|
9724
|
+
"format": "date-time",
|
|
9725
|
+
"description": "Timestamp when the changeset was created"
|
|
9726
|
+
},
|
|
9727
|
+
"created_by": {
|
|
9728
|
+
"$ref": "#/components/schemas/ChangesetCreator"
|
|
9729
|
+
},
|
|
9730
|
+
"edit_mode": {
|
|
9731
|
+
"type": "string",
|
|
9732
|
+
"description": "The edit mode that triggered this changeset.\n- `external`: auto-cleared by a matching `?direct=true` write (see `match_strategy`).\n- `approval`: resolved only via explicit `:apply` / `:dismiss` endpoints; never auto-clears.\n",
|
|
9733
|
+
"enum": [
|
|
9734
|
+
"external",
|
|
9735
|
+
"approval"
|
|
9736
|
+
]
|
|
9737
|
+
},
|
|
9738
|
+
"match_strategy": {
|
|
9739
|
+
"description": "Match strategy copied from the attribute's `edit_mode_config` at changeset\ncreation time. Only consulted when `edit_mode` is `external`; ignored for\n`approval` (which never auto-clears).\n",
|
|
9740
|
+
"allOf": [
|
|
9741
|
+
{
|
|
9742
|
+
"$ref": "#/components/schemas/MatchStrategy"
|
|
9743
|
+
}
|
|
9744
|
+
]
|
|
9745
|
+
},
|
|
9746
|
+
"source": {
|
|
9747
|
+
"type": "string",
|
|
9748
|
+
"description": "Optional label indicating where the change originated (e.g. end_customer_portal, installer_portal, journey, automation)"
|
|
9749
|
+
},
|
|
9750
|
+
"related_values": {
|
|
9751
|
+
"type": "object",
|
|
9752
|
+
"description": "Proposed and previous values for related fields in a multi-field attribute group (e.g. currency _decimal/_currency suffixes). Keyed by full field name.",
|
|
9753
|
+
"additionalProperties": {
|
|
9754
|
+
"type": "object",
|
|
9755
|
+
"properties": {
|
|
9756
|
+
"proposed_value": {
|
|
9757
|
+
"description": "The proposed new value for the related field."
|
|
9758
|
+
},
|
|
9759
|
+
"previous_value": {
|
|
9760
|
+
"description": "The value of the related field when the changeset was created."
|
|
9761
|
+
}
|
|
9762
|
+
}
|
|
9763
|
+
}
|
|
9764
|
+
}
|
|
9765
|
+
}
|
|
9766
|
+
},
|
|
9767
|
+
"ChangesetMap": {
|
|
9768
|
+
"type": "object",
|
|
9769
|
+
"description": "Map of attribute name to pending changeset. At most one changeset per attribute.",
|
|
9770
|
+
"additionalProperties": {
|
|
9771
|
+
"$ref": "#/components/schemas/Changeset"
|
|
9772
|
+
}
|
|
9773
|
+
},
|
|
9774
|
+
"EditModeConfig": {
|
|
9775
|
+
"type": "object",
|
|
9776
|
+
"description": "Configuration for `edit_mode: external` auto-clear matching.\nFields here (`match_strategy`, `fuzzy_config`) only take effect when\n`edit_mode` is `external`. They are ignored for `edit_mode: approval`,\nwhich never auto-clears and is resolved exclusively via the\n`:apply` / `:dismiss` changeset endpoints.\n",
|
|
9777
|
+
"properties": {
|
|
9778
|
+
"match_strategy": {
|
|
9779
|
+
"$ref": "#/components/schemas/MatchStrategy"
|
|
9780
|
+
},
|
|
9781
|
+
"fuzzy_config": {
|
|
9782
|
+
"$ref": "#/components/schemas/FuzzyConfig"
|
|
9783
|
+
}
|
|
9784
|
+
}
|
|
9785
|
+
},
|
|
9786
|
+
"FuzzyConfig": {
|
|
9787
|
+
"type": "object",
|
|
9788
|
+
"description": "Configuration for fuzzy auto-clear matching on `edit_mode: external` attributes.\nNot used for `edit_mode: approval`.\n\nType compatibility with attribute shape is enforced at schema save time:\n- scalar string attributes: `suffix`, `digits_only`, `regex`\n- repeatable attributes: `set_equivalent`, `entry_match`, `ignore_fields`, `normalize_phone`\n- relation attributes: `relation_set`\n",
|
|
9789
|
+
"required": [
|
|
9790
|
+
"type"
|
|
9791
|
+
],
|
|
9792
|
+
"properties": {
|
|
9793
|
+
"type": {
|
|
9794
|
+
"type": "string",
|
|
9795
|
+
"description": "Which fuzzy algorithm to apply.",
|
|
9796
|
+
"enum": [
|
|
9797
|
+
"suffix",
|
|
9798
|
+
"digits_only",
|
|
9799
|
+
"normalize_phone",
|
|
9800
|
+
"ignore_fields",
|
|
9801
|
+
"set_equivalent",
|
|
9802
|
+
"entry_match",
|
|
9803
|
+
"relation_set",
|
|
9804
|
+
"regex"
|
|
9805
|
+
]
|
|
9806
|
+
},
|
|
9807
|
+
"suffix_length": {
|
|
9808
|
+
"type": "integer",
|
|
9809
|
+
"description": "For type=suffix: number of characters to compare from end of string."
|
|
9810
|
+
},
|
|
9811
|
+
"fields_to_ignore": {
|
|
9812
|
+
"type": "array",
|
|
9813
|
+
"items": {
|
|
9814
|
+
"type": "string"
|
|
9815
|
+
},
|
|
9816
|
+
"description": "For type=ignore_fields and type=set_equivalent: field names to exclude when comparing array entries. `_id` is always stripped by the platform regardless of this config."
|
|
9817
|
+
},
|
|
9818
|
+
"regex_flags": {
|
|
9819
|
+
"type": "string",
|
|
9820
|
+
"description": "For type=regex: flags to apply to the regex (e.g. 'i' for case-insensitive)."
|
|
9821
|
+
},
|
|
9822
|
+
"country_code": {
|
|
9823
|
+
"type": "string",
|
|
9824
|
+
"description": "For type=normalize_phone: country dialing code digits to strip (e.g. '49' for Germany). No '+' prefix."
|
|
9825
|
+
},
|
|
9826
|
+
"match_on": {
|
|
9827
|
+
"type": "string",
|
|
9828
|
+
"description": "For type=normalize_phone: attribute key within array entries to compare on (e.g. 'phone_number')."
|
|
9829
|
+
},
|
|
9830
|
+
"key": {
|
|
9831
|
+
"description": "For type=entry_match: business key(s) within each entry used to match proposed entries against incoming entries.",
|
|
9832
|
+
"oneOf": [
|
|
9833
|
+
{
|
|
9834
|
+
"type": "string"
|
|
9835
|
+
},
|
|
9836
|
+
{
|
|
9837
|
+
"type": "array",
|
|
9838
|
+
"items": {
|
|
9839
|
+
"type": "string"
|
|
9840
|
+
}
|
|
9841
|
+
}
|
|
9842
|
+
]
|
|
9843
|
+
},
|
|
9844
|
+
"mode": {
|
|
9845
|
+
"type": "string",
|
|
9846
|
+
"description": "For type=entry_match and type=set_equivalent: how strict the comparison is.\n- `subset` (default for entry_match): every proposed entry must exist in incoming; extra incoming entries are allowed.\n- `exact_set` (default for set_equivalent): the two sides must contain the same entries (order-insensitive, multiset semantics).\n",
|
|
9847
|
+
"enum": [
|
|
9848
|
+
"subset",
|
|
9849
|
+
"exact_set"
|
|
9850
|
+
]
|
|
9851
|
+
},
|
|
9852
|
+
"ordered": {
|
|
9853
|
+
"type": "boolean",
|
|
9854
|
+
"description": "For type=relation_set: when true, relation order is significant. Defaults to false (order-insensitive)."
|
|
9855
|
+
},
|
|
9856
|
+
"require_tags_match": {
|
|
9857
|
+
"type": "boolean",
|
|
9858
|
+
"description": "For type=relation_set: when true, each relation item's `_tags` must match on both sides (order-insensitive). Defaults to false — `_tags` are stripped before compare."
|
|
9859
|
+
},
|
|
9860
|
+
"pattern": {
|
|
9861
|
+
"type": "string",
|
|
9862
|
+
"description": "For type=regex: regular expression pattern to test the incoming value against."
|
|
9863
|
+
}
|
|
9864
|
+
}
|
|
9865
|
+
},
|
|
9866
|
+
"MatchStrategy": {
|
|
9867
|
+
"type": "string",
|
|
9868
|
+
"description": "Strategy for auto-clearing a changeset on an `edit_mode: external` attribute\nwhen a direct write (`?direct=true`) arrives — typically an ERP inbound sync.\nIgnored for `edit_mode: approval`, which does not auto-clear and is resolved\nexclusively via the `:apply` / `:dismiss` changeset endpoints.\n- `exact`: The inbound value must exactly match the proposed value (deep equality).\n- `fuzzy`: The inbound value is compared using the configured `fuzzy_config` algorithm.\n- `any`: Any update to the attribute clears the changeset, regardless of value.\n",
|
|
9869
|
+
"enum": [
|
|
9870
|
+
"exact",
|
|
9871
|
+
"fuzzy",
|
|
9872
|
+
"any"
|
|
9873
|
+
],
|
|
9874
|
+
"default": "exact"
|
|
9508
9875
|
}
|
|
9509
9876
|
},
|
|
9510
9877
|
"parameters": {
|
|
@@ -9741,6 +10108,26 @@
|
|
|
9741
10108
|
"default": false,
|
|
9742
10109
|
"type": "boolean"
|
|
9743
10110
|
}
|
|
10111
|
+
},
|
|
10112
|
+
"DirectQueryParam": {
|
|
10113
|
+
"name": "direct",
|
|
10114
|
+
"description": "When true, bypasses changeset interception: attribute values in the payload\nare written directly to the entity regardless of each attribute's `edit_mode`.\nThe write always lands, independently of any auto-clear outcome below.\n\nAfter the direct write, for each attribute in the payload that also has a\npending changeset:\n- `edit_mode: external` — the incoming value is checked against the\n changeset's `match_strategy` (and `fuzzy_config` when `fuzzy`). On match,\n `_changesets[attr]` is cleared. On no-match, the write still stands and\n the changeset stays pending (signalling the ERP/trusted source applied a\n different correction than originally proposed; resolve via a later\n matching direct write, or via the `:apply` / `:dismiss` endpoints).\n- `edit_mode: approval` — never auto-cleared. The write lands but the\n pending changeset remains until explicitly resolved via `:apply` or\n `:dismiss`.\n\nIntended for trusted integrations (e.g. ERP inbound sync). ERP middleware\nmust always use `?direct=true` — without it, an inbound sync on an\n`external` attribute would create a new changeset instead of confirming\nthe pending one.\n\nDefaults to false — no breaking change for existing callers.\n",
|
|
10115
|
+
"in": "query",
|
|
10116
|
+
"required": false,
|
|
10117
|
+
"schema": {
|
|
10118
|
+
"type": "boolean",
|
|
10119
|
+
"default": false
|
|
10120
|
+
}
|
|
10121
|
+
},
|
|
10122
|
+
"ApplyChangesetsQueryParam": {
|
|
10123
|
+
"name": "apply_changesets",
|
|
10124
|
+
"description": "When true, applies pending changeset proposed values in-place on the response entity.\nThe response includes both the hydrated values and the raw _changesets field.\nDoes not mutate stored data — pure read-time transform.\n",
|
|
10125
|
+
"in": "query",
|
|
10126
|
+
"required": false,
|
|
10127
|
+
"schema": {
|
|
10128
|
+
"type": "boolean",
|
|
10129
|
+
"default": false
|
|
10130
|
+
}
|
|
9744
10131
|
}
|
|
9745
10132
|
},
|
|
9746
10133
|
"examples": {
|
package/definitions/kanban.json
CHANGED
package/definitions/pricing.json
CHANGED
|
@@ -2036,7 +2036,6 @@
|
|
|
2036
2036
|
"unit_amount_gross_decimal": "25",
|
|
2037
2037
|
"unit_amount_net": 25,
|
|
2038
2038
|
"unit_amount_net_decimal": "25",
|
|
2039
|
-
"billing_period": null,
|
|
2040
2039
|
"type": "one_time",
|
|
2041
2040
|
"taxes": [],
|
|
2042
2041
|
"pricing_model": "per_unit",
|
|
@@ -2109,20 +2108,22 @@
|
|
|
2109
2108
|
"amount_subtotal_decimal": "25",
|
|
2110
2109
|
"amount_subtotal": 2500,
|
|
2111
2110
|
"unit_amount": 25,
|
|
2112
|
-
"unit_amount_gross":
|
|
2111
|
+
"unit_amount_gross": 2975,
|
|
2113
2112
|
"unit_amount_gross_decimal": "29.75",
|
|
2114
2113
|
"unit_amount_net": 25,
|
|
2115
2114
|
"unit_amount_net_decimal": "25",
|
|
2116
|
-
"billing_period": null,
|
|
2117
2115
|
"type": "one_time",
|
|
2118
2116
|
"taxes": [
|
|
2119
2117
|
{
|
|
2120
2118
|
"tax": {
|
|
2121
|
-
"_id": "
|
|
2122
|
-
"
|
|
2119
|
+
"_id": "24641e82-0690-4135-8b43-ef12a9b1c5dc",
|
|
2120
|
+
"_title": "VAT 19%",
|
|
2121
|
+
"_org": "728",
|
|
2122
|
+
"_schema": "tax",
|
|
2123
|
+
"_created_at": "2024-01-01T00:00:00.000Z",
|
|
2124
|
+
"_updated_at": "2024-01-01T00:00:00.000Z",
|
|
2123
2125
|
"type": "VAT",
|
|
2124
|
-
"rate": 19
|
|
2125
|
-
"region": "DE"
|
|
2126
|
+
"rate": 19
|
|
2126
2127
|
},
|
|
2127
2128
|
"amount": 475
|
|
2128
2129
|
}
|
|
@@ -2140,15 +2141,16 @@
|
|
|
2140
2141
|
"is_composite_price": false,
|
|
2141
2142
|
"pricing_model": "per_unit",
|
|
2142
2143
|
"price_display_in_journeys": "show_price",
|
|
2143
|
-
"tax":
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2144
|
+
"tax": {
|
|
2145
|
+
"_id": "24641e82-0690-4135-8b43-ef12a9b1c5dc",
|
|
2146
|
+
"_title": "VAT 19%",
|
|
2147
|
+
"_org": "728",
|
|
2148
|
+
"_schema": "tax",
|
|
2149
|
+
"_created_at": "2024-01-01T00:00:00.000Z",
|
|
2150
|
+
"_updated_at": "2024-01-01T00:00:00.000Z",
|
|
2151
|
+
"type": "VAT",
|
|
2152
|
+
"rate": 19
|
|
2153
|
+
}
|
|
2152
2154
|
},
|
|
2153
2155
|
"_product": {
|
|
2154
2156
|
"_id": "product-93f857a4",
|
|
@@ -2168,11 +2170,14 @@
|
|
|
2168
2170
|
"taxes": [
|
|
2169
2171
|
{
|
|
2170
2172
|
"tax": {
|
|
2171
|
-
"_id": "
|
|
2172
|
-
"
|
|
2173
|
+
"_id": "24641e82-0690-4135-8b43-ef12a9b1c5dc",
|
|
2174
|
+
"_title": "VAT 19%",
|
|
2175
|
+
"_org": "728",
|
|
2176
|
+
"_schema": "tax",
|
|
2177
|
+
"_created_at": "2024-01-01T00:00:00.000Z",
|
|
2178
|
+
"_updated_at": "2024-01-01T00:00:00.000Z",
|
|
2173
2179
|
"type": "VAT",
|
|
2174
|
-
"rate": 19
|
|
2175
|
-
"region": "DE"
|
|
2180
|
+
"rate": 19
|
|
2176
2181
|
},
|
|
2177
2182
|
"amount": 475
|
|
2178
2183
|
}
|
|
@@ -2722,6 +2727,17 @@
|
|
|
2722
2727
|
"tags": [
|
|
2723
2728
|
"External Catalog API"
|
|
2724
2729
|
],
|
|
2730
|
+
"parameters": [
|
|
2731
|
+
{
|
|
2732
|
+
"in": "header",
|
|
2733
|
+
"name": "x-epilot-org-id",
|
|
2734
|
+
"schema": {
|
|
2735
|
+
"type": "string"
|
|
2736
|
+
},
|
|
2737
|
+
"required": false,
|
|
2738
|
+
"description": "Organization ID (required when not using EpilotPublicAuth token)"
|
|
2739
|
+
}
|
|
2740
|
+
],
|
|
2725
2741
|
"requestBody": {
|
|
2726
2742
|
"required": true,
|
|
2727
2743
|
"content": {
|
|
@@ -2872,6 +2888,17 @@
|
|
|
2872
2888
|
"tags": [
|
|
2873
2889
|
"External Catalog API"
|
|
2874
2890
|
],
|
|
2891
|
+
"parameters": [
|
|
2892
|
+
{
|
|
2893
|
+
"in": "header",
|
|
2894
|
+
"name": "x-epilot-org-id",
|
|
2895
|
+
"schema": {
|
|
2896
|
+
"type": "string"
|
|
2897
|
+
},
|
|
2898
|
+
"required": false,
|
|
2899
|
+
"description": "Organization ID (required when not using EpilotPublicAuth token)"
|
|
2900
|
+
}
|
|
2901
|
+
],
|
|
2875
2902
|
"requestBody": {
|
|
2876
2903
|
"required": true,
|
|
2877
2904
|
"content": {
|
|
@@ -3003,7 +3030,6 @@
|
|
|
3003
3030
|
"unit_amount_gross_decimal": "25",
|
|
3004
3031
|
"unit_amount_net": 25,
|
|
3005
3032
|
"unit_amount_net_decimal": "25",
|
|
3006
|
-
"billing_period": null,
|
|
3007
3033
|
"type": "one_time",
|
|
3008
3034
|
"taxes": [],
|
|
3009
3035
|
"pricing_model": "per_unit",
|
|
@@ -3076,20 +3102,22 @@
|
|
|
3076
3102
|
"amount_subtotal_decimal": "25",
|
|
3077
3103
|
"amount_subtotal": 2500,
|
|
3078
3104
|
"unit_amount": 25,
|
|
3079
|
-
"unit_amount_gross":
|
|
3105
|
+
"unit_amount_gross": 2975,
|
|
3080
3106
|
"unit_amount_gross_decimal": "29.75",
|
|
3081
3107
|
"unit_amount_net": 25,
|
|
3082
3108
|
"unit_amount_net_decimal": "25",
|
|
3083
|
-
"billing_period": null,
|
|
3084
3109
|
"type": "one_time",
|
|
3085
3110
|
"taxes": [
|
|
3086
3111
|
{
|
|
3087
3112
|
"tax": {
|
|
3088
|
-
"_id": "
|
|
3089
|
-
"
|
|
3113
|
+
"_id": "24641e82-0690-4135-8b43-ef12a9b1c5dc",
|
|
3114
|
+
"_title": "VAT 19%",
|
|
3115
|
+
"_org": "728",
|
|
3116
|
+
"_schema": "tax",
|
|
3117
|
+
"_created_at": "2024-01-01T00:00:00.000Z",
|
|
3118
|
+
"_updated_at": "2024-01-01T00:00:00.000Z",
|
|
3090
3119
|
"type": "VAT",
|
|
3091
|
-
"rate": 19
|
|
3092
|
-
"region": "DE"
|
|
3120
|
+
"rate": 19
|
|
3093
3121
|
},
|
|
3094
3122
|
"amount": 475
|
|
3095
3123
|
}
|
|
@@ -3107,15 +3135,16 @@
|
|
|
3107
3135
|
"is_composite_price": false,
|
|
3108
3136
|
"pricing_model": "per_unit",
|
|
3109
3137
|
"price_display_in_journeys": "show_price",
|
|
3110
|
-
"tax":
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3138
|
+
"tax": {
|
|
3139
|
+
"_id": "24641e82-0690-4135-8b43-ef12a9b1c5dc",
|
|
3140
|
+
"_title": "VAT 19%",
|
|
3141
|
+
"_org": "728",
|
|
3142
|
+
"_schema": "tax",
|
|
3143
|
+
"_created_at": "2024-01-01T00:00:00.000Z",
|
|
3144
|
+
"_updated_at": "2024-01-01T00:00:00.000Z",
|
|
3145
|
+
"type": "VAT",
|
|
3146
|
+
"rate": 19
|
|
3147
|
+
}
|
|
3119
3148
|
},
|
|
3120
3149
|
"_product": {
|
|
3121
3150
|
"_id": "product-93f857a4",
|
|
@@ -3135,11 +3164,14 @@
|
|
|
3135
3164
|
"taxes": [
|
|
3136
3165
|
{
|
|
3137
3166
|
"tax": {
|
|
3138
|
-
"_id": "
|
|
3139
|
-
"
|
|
3167
|
+
"_id": "24641e82-0690-4135-8b43-ef12a9b1c5dc",
|
|
3168
|
+
"_title": "VAT 19%",
|
|
3169
|
+
"_org": "728",
|
|
3170
|
+
"_schema": "tax",
|
|
3171
|
+
"_created_at": "2024-01-01T00:00:00.000Z",
|
|
3172
|
+
"_updated_at": "2024-01-01T00:00:00.000Z",
|
|
3140
3173
|
"type": "VAT",
|
|
3141
|
-
"rate": 19
|
|
3142
|
-
"region": "DE"
|
|
3174
|
+
"rate": 19
|
|
3143
3175
|
},
|
|
3144
3176
|
"amount": 475
|
|
3145
3177
|
}
|
|
@@ -9112,8 +9144,8 @@
|
|
|
9112
9144
|
"description": "Description of the contract"
|
|
9113
9145
|
},
|
|
9114
9146
|
"billing_account": {
|
|
9115
|
-
"type": "
|
|
9116
|
-
"description": "Billing Account relation
|
|
9147
|
+
"type": "object",
|
|
9148
|
+
"description": "Billing Account relation"
|
|
9117
9149
|
},
|
|
9118
9150
|
"account_number": {
|
|
9119
9151
|
"type": "string",
|
|
@@ -9121,14 +9153,7 @@
|
|
|
9121
9153
|
},
|
|
9122
9154
|
"branch": {
|
|
9123
9155
|
"type": "string",
|
|
9124
|
-
"description": "Branch/commodity type"
|
|
9125
|
-
"enum": [
|
|
9126
|
-
"power",
|
|
9127
|
-
"gas",
|
|
9128
|
-
"water",
|
|
9129
|
-
"waste_water",
|
|
9130
|
-
"district_heating"
|
|
9131
|
-
]
|
|
9156
|
+
"description": "Branch/commodity type (e.g. power, gas, water, waste_water, district_heating, or any custom value)"
|
|
9132
9157
|
},
|
|
9133
9158
|
"move_in_date": {
|
|
9134
9159
|
"type": "string",
|
|
@@ -9141,12 +9166,15 @@
|
|
|
9141
9166
|
"description": "Move Out Date"
|
|
9142
9167
|
},
|
|
9143
9168
|
"billing_address": {
|
|
9144
|
-
"
|
|
9145
|
-
"
|
|
9169
|
+
"description": "Billing Address",
|
|
9170
|
+
"type": "object"
|
|
9146
9171
|
},
|
|
9147
9172
|
"delivery_address": {
|
|
9148
|
-
"
|
|
9149
|
-
"
|
|
9173
|
+
"description": "Delivery Address",
|
|
9174
|
+
"type": "array",
|
|
9175
|
+
"items": {
|
|
9176
|
+
"type": "object"
|
|
9177
|
+
}
|
|
9150
9178
|
},
|
|
9151
9179
|
"additional_addresses": {
|
|
9152
9180
|
"type": "array",
|
|
@@ -9175,11 +9203,8 @@
|
|
|
9175
9203
|
"description": "End Date"
|
|
9176
9204
|
},
|
|
9177
9205
|
"customer": {
|
|
9178
|
-
"type": "
|
|
9179
|
-
"description": "Customer relation (contact or account)"
|
|
9180
|
-
"items": {
|
|
9181
|
-
"type": "string"
|
|
9182
|
-
}
|
|
9206
|
+
"type": "object",
|
|
9207
|
+
"description": "Customer relation (contact or account)"
|
|
9183
9208
|
},
|
|
9184
9209
|
"order": {
|
|
9185
9210
|
"type": "string",
|
|
@@ -9265,30 +9290,11 @@
|
|
|
9265
9290
|
"description": "Billing Due Day"
|
|
9266
9291
|
},
|
|
9267
9292
|
"installment_amount": {
|
|
9268
|
-
"type": "
|
|
9269
|
-
"description": "Installment Amount",
|
|
9270
|
-
"properties": {
|
|
9271
|
-
"value": {
|
|
9272
|
-
"type": "number"
|
|
9273
|
-
},
|
|
9274
|
-
"currency": {
|
|
9275
|
-
"type": "string",
|
|
9276
|
-
"default": "EUR"
|
|
9277
|
-
}
|
|
9278
|
-
}
|
|
9293
|
+
"type": "number"
|
|
9279
9294
|
},
|
|
9280
9295
|
"balance": {
|
|
9281
|
-
"type": "
|
|
9282
|
-
"description": "Balance"
|
|
9283
|
-
"properties": {
|
|
9284
|
-
"value": {
|
|
9285
|
-
"type": "number"
|
|
9286
|
-
},
|
|
9287
|
-
"currency": {
|
|
9288
|
-
"type": "string",
|
|
9289
|
-
"default": "EUR"
|
|
9290
|
-
}
|
|
9291
|
-
}
|
|
9296
|
+
"type": "number",
|
|
9297
|
+
"description": "Balance"
|
|
9292
9298
|
},
|
|
9293
9299
|
"meters": {
|
|
9294
9300
|
"type": "array",
|
|
@@ -9298,8 +9304,8 @@
|
|
|
9298
9304
|
}
|
|
9299
9305
|
},
|
|
9300
9306
|
"payment": {
|
|
9301
|
-
"type": "
|
|
9302
|
-
"description": "Payment Details relation
|
|
9307
|
+
"type": "object",
|
|
9308
|
+
"description": "Payment Details relation"
|
|
9303
9309
|
},
|
|
9304
9310
|
"last_sync_at": {
|
|
9305
9311
|
"type": "string",
|
|
@@ -9507,6 +9513,65 @@
|
|
|
9507
9513
|
"readOnly": true
|
|
9508
9514
|
}
|
|
9509
9515
|
}
|
|
9516
|
+
},
|
|
9517
|
+
"availability_address": {
|
|
9518
|
+
"type": "object",
|
|
9519
|
+
"description": "Address to use for product availability checks. Include when the catalog should filter products by serviceable area (e.g. postal code coverage).\n",
|
|
9520
|
+
"properties": {
|
|
9521
|
+
"postal_code": {
|
|
9522
|
+
"type": "string",
|
|
9523
|
+
"description": "Postal Code"
|
|
9524
|
+
},
|
|
9525
|
+
"city": {
|
|
9526
|
+
"type": "string",
|
|
9527
|
+
"description": "City"
|
|
9528
|
+
},
|
|
9529
|
+
"street": {
|
|
9530
|
+
"type": "string",
|
|
9531
|
+
"description": "Street"
|
|
9532
|
+
},
|
|
9533
|
+
"street_number": {
|
|
9534
|
+
"type": "string",
|
|
9535
|
+
"description": "Street Number"
|
|
9536
|
+
},
|
|
9537
|
+
"journey_target_block": {
|
|
9538
|
+
"type": "string",
|
|
9539
|
+
"description": "The journey target block of the availability address <step_index>/<block_name>"
|
|
9540
|
+
}
|
|
9541
|
+
}
|
|
9542
|
+
},
|
|
9543
|
+
"variable_inputs": {
|
|
9544
|
+
"type": "array",
|
|
9545
|
+
"description": "Variable inputs (e.g. energy or water consumption) extracted/provided by the portal so the external catalog service can compute amounts for variable prices.\n",
|
|
9546
|
+
"items": {
|
|
9547
|
+
"type": "object",
|
|
9548
|
+
"properties": {
|
|
9549
|
+
"value": {
|
|
9550
|
+
"type": "number",
|
|
9551
|
+
"description": "The value of the variable input"
|
|
9552
|
+
},
|
|
9553
|
+
"unit": {
|
|
9554
|
+
"type": "string",
|
|
9555
|
+
"description": "The unit of the variable input"
|
|
9556
|
+
},
|
|
9557
|
+
"frequency_unit": {
|
|
9558
|
+
"type": "string",
|
|
9559
|
+
"description": "The frequency unit of the variable input",
|
|
9560
|
+
"enum": [
|
|
9561
|
+
"weekly",
|
|
9562
|
+
"monthly",
|
|
9563
|
+
"every_quarter",
|
|
9564
|
+
"every_6_months",
|
|
9565
|
+
"yearly",
|
|
9566
|
+
"one_time"
|
|
9567
|
+
]
|
|
9568
|
+
},
|
|
9569
|
+
"journey_target_block": {
|
|
9570
|
+
"type": "string",
|
|
9571
|
+
"description": "The journey target block of the variable input <step_index>/<block_name>"
|
|
9572
|
+
}
|
|
9573
|
+
}
|
|
9574
|
+
}
|
|
9510
9575
|
}
|
|
9511
9576
|
},
|
|
9512
9577
|
"required": [
|
|
@@ -9858,6 +9923,11 @@
|
|
|
9858
9923
|
{
|
|
9859
9924
|
"tax": {
|
|
9860
9925
|
"_id": "936db2a1-3748-45b6-bb9d-04943280ceeb",
|
|
9926
|
+
"_title": "VAT 23%",
|
|
9927
|
+
"_org": "728",
|
|
9928
|
+
"_schema": "tax",
|
|
9929
|
+
"_created_at": "2021-09-24T15:06:13.859Z",
|
|
9930
|
+
"_updated_at": "2021-09-24T15:06:13.859Z",
|
|
9861
9931
|
"type": "VAT",
|
|
9862
9932
|
"rate": 23
|
|
9863
9933
|
},
|
|
@@ -9866,6 +9936,11 @@
|
|
|
9866
9936
|
{
|
|
9867
9937
|
"tax": {
|
|
9868
9938
|
"_id": "936db2a1-3748-45b6-bb9d-04943280cee4",
|
|
9939
|
+
"_title": "VAT 7%",
|
|
9940
|
+
"_org": "728",
|
|
9941
|
+
"_schema": "tax",
|
|
9942
|
+
"_created_at": "2021-09-24T15:06:13.859Z",
|
|
9943
|
+
"_updated_at": "2021-09-24T15:06:13.859Z",
|
|
9869
9944
|
"type": "VAT",
|
|
9870
9945
|
"rate": 7
|
|
9871
9946
|
},
|
package/dist/bin/epilot.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
API_LIST
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-U5JW65I3.js";
|
|
5
5
|
|
|
6
6
|
// bin/epilot.ts
|
|
7
7
|
import { runMain } from "citty";
|
|
@@ -11,7 +11,7 @@ import { defineCommand } from "citty";
|
|
|
11
11
|
var main = defineCommand({
|
|
12
12
|
meta: {
|
|
13
13
|
name: "epilot",
|
|
14
|
-
version: "0.1.
|
|
14
|
+
version: "0.1.24",
|
|
15
15
|
description: "CLI for epilot APIs"
|
|
16
16
|
},
|
|
17
17
|
args: {
|
|
@@ -30,8 +30,8 @@ var main = defineCommand({
|
|
|
30
30
|
auth: () => import("../auth-CN5EFFDE.js").then((m) => m.default),
|
|
31
31
|
profile: () => import("../profile-OZJL5ZPT.js").then((m) => m.default),
|
|
32
32
|
config: () => import("../config-DGZIMLZK.js").then((m) => m.default),
|
|
33
|
-
completion: () => import("../completion-
|
|
34
|
-
upgrade: () => import("../upgrade-
|
|
33
|
+
completion: () => import("../completion-76TTN5FM.js").then((m) => m.default),
|
|
34
|
+
upgrade: () => import("../upgrade-3SGNJUWL.js").then((m) => m.default),
|
|
35
35
|
"access-token": () => import("../access-token-WWE6BDJH.js").then((m) => m.default),
|
|
36
36
|
address: () => import("../address-EH3C4CVB.js").then((m) => m.default),
|
|
37
37
|
"address-suggestions": () => import("../address-suggestions-RRSLOBFW.js").then((m) => m.default),
|
|
@@ -132,13 +132,13 @@ process.stderr.on("error", (err) => {
|
|
|
132
132
|
if (err.code === "EPIPE") process.exit(0);
|
|
133
133
|
throw err;
|
|
134
134
|
});
|
|
135
|
-
var VERSION = true ? "0.1.
|
|
135
|
+
var VERSION = true ? "0.1.24" : (await null).default.version;
|
|
136
136
|
var reorderedArgv = hoistFlagsAfterSubcommand(process.argv.slice(2));
|
|
137
137
|
process.argv = [process.argv[0], process.argv[1], ...reorderedArgv];
|
|
138
138
|
var args = process.argv.slice(2);
|
|
139
139
|
var completionsIdx = args.indexOf("--_completions");
|
|
140
140
|
if (completionsIdx >= 0) {
|
|
141
|
-
const { handleCompletions } = await import("../completion-
|
|
141
|
+
const { handleCompletions } = await import("../completion-76TTN5FM.js");
|
|
142
142
|
handleCompletions(args[completionsIdx + 1], args[completionsIdx + 2]);
|
|
143
143
|
process.exit(0);
|
|
144
144
|
}
|
|
@@ -515,7 +515,7 @@ var API_LIST = [
|
|
|
515
515
|
kebabName: "entity",
|
|
516
516
|
title: "Entity API",
|
|
517
517
|
serverUrl: "https://entity.sls.epilot.io",
|
|
518
|
-
operationCount:
|
|
518
|
+
operationCount: 87,
|
|
519
519
|
operationIds: [
|
|
520
520
|
"listSchemas",
|
|
521
521
|
"listSchemasV2",
|
|
@@ -548,6 +548,9 @@ var API_LIST = [
|
|
|
548
548
|
"createActivity",
|
|
549
549
|
"getActivity",
|
|
550
550
|
"attachActivity",
|
|
551
|
+
"applyChangeset",
|
|
552
|
+
"dismissChangeset",
|
|
553
|
+
"listChangesets",
|
|
551
554
|
"getEntityActivityFeed",
|
|
552
555
|
"getRelations",
|
|
553
556
|
"addRelations",
|
|
@@ -72,7 +72,7 @@ ${GREEN}${BOLD}Upgraded to @epilot/cli@${latest}${RESET}
|
|
|
72
72
|
}
|
|
73
73
|
});
|
|
74
74
|
var getCurrentVersion = () => {
|
|
75
|
-
if (true) return "0.1.
|
|
75
|
+
if (true) return "0.1.24";
|
|
76
76
|
try {
|
|
77
77
|
const output = execSync("npm ls -g @epilot/cli --depth=0 --json 2>/dev/null", {
|
|
78
78
|
encoding: "utf-8",
|