@epilot/entity-client 4.36.0 → 4.38.0-alpha.0
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/dist/definition.js +1 -1
- package/dist/openapi-runtime.json +17 -1
- package/dist/openapi.d.ts +905 -147
- package/dist/openapi.json +247 -38
- package/package.json +1 -1
package/dist/openapi.json
CHANGED
|
@@ -2901,11 +2901,19 @@
|
|
|
2901
2901
|
{
|
|
2902
2902
|
"in": "query",
|
|
2903
2903
|
"name": "archived",
|
|
2904
|
-
"description": "Filter by archived status",
|
|
2904
|
+
"description": "Filter by archived status. Deprecated. Use `include_archived` instead.",
|
|
2905
|
+
"deprecated": true,
|
|
2905
2906
|
"schema": {
|
|
2906
2907
|
"type": "boolean",
|
|
2907
2908
|
"example": false
|
|
2908
2909
|
}
|
|
2910
|
+
},
|
|
2911
|
+
{
|
|
2912
|
+
"in": "query",
|
|
2913
|
+
"name": "include_archived",
|
|
2914
|
+
"schema": {
|
|
2915
|
+
"$ref": "#/components/schemas/TaxonomySearchIncludeArchivedParam"
|
|
2916
|
+
}
|
|
2909
2917
|
}
|
|
2910
2918
|
],
|
|
2911
2919
|
"requestBody": {
|
|
@@ -3134,6 +3142,62 @@
|
|
|
3134
3142
|
}
|
|
3135
3143
|
}
|
|
3136
3144
|
},
|
|
3145
|
+
"/v1/entity/taxonomies/classifications:merge": {
|
|
3146
|
+
"post": {
|
|
3147
|
+
"operationId": "bulkMergeClassifications",
|
|
3148
|
+
"summary": "bulkMergeClassifications",
|
|
3149
|
+
"description": "Merges classifications from one taxonomy into one individual classification, through a bulk async operation which\nalso updates all references from the old Classifications to the new one.\n",
|
|
3150
|
+
"tags": [
|
|
3151
|
+
"Taxonomy"
|
|
3152
|
+
],
|
|
3153
|
+
"requestBody": {
|
|
3154
|
+
"content": {
|
|
3155
|
+
"application/json": {
|
|
3156
|
+
"schema": {
|
|
3157
|
+
"type": "object",
|
|
3158
|
+
"properties": {
|
|
3159
|
+
"job_id": {
|
|
3160
|
+
"description": "Job ID for tracking the status of a bulk operation request",
|
|
3161
|
+
"type": "string"
|
|
3162
|
+
},
|
|
3163
|
+
"target_classification": {
|
|
3164
|
+
"description": "The target classification id to which the classifications will be merged into",
|
|
3165
|
+
"$ref": "#/components/schemas/TaxonomySlug"
|
|
3166
|
+
},
|
|
3167
|
+
"classification_ids": {
|
|
3168
|
+
"type": "array",
|
|
3169
|
+
"items": {
|
|
3170
|
+
"$ref": "#/components/schemas/ClassificationId"
|
|
3171
|
+
}
|
|
3172
|
+
}
|
|
3173
|
+
}
|
|
3174
|
+
},
|
|
3175
|
+
"example": {
|
|
3176
|
+
"classification_ids": [
|
|
3177
|
+
"taxonomy-slug:classification-slug"
|
|
3178
|
+
]
|
|
3179
|
+
}
|
|
3180
|
+
}
|
|
3181
|
+
}
|
|
3182
|
+
},
|
|
3183
|
+
"responses": {
|
|
3184
|
+
"200": {
|
|
3185
|
+
"description": "Returns the job id for the async job and current status",
|
|
3186
|
+
"content": {
|
|
3187
|
+
"application/json": {
|
|
3188
|
+
"schema": {
|
|
3189
|
+
"$ref": "#/components/schemas/TaxonomyBulkJobTriggerResponse"
|
|
3190
|
+
},
|
|
3191
|
+
"example": {
|
|
3192
|
+
"job_id": "123",
|
|
3193
|
+
"status": "PENDING"
|
|
3194
|
+
}
|
|
3195
|
+
}
|
|
3196
|
+
}
|
|
3197
|
+
}
|
|
3198
|
+
}
|
|
3199
|
+
}
|
|
3200
|
+
},
|
|
3137
3201
|
"/v1/entity/taxonomies/classifications:delete": {
|
|
3138
3202
|
"post": {
|
|
3139
3203
|
"operationId": "bulkDeleteClassifications",
|
|
@@ -4372,9 +4436,6 @@
|
|
|
4372
4436
|
{
|
|
4373
4437
|
"$ref": "#/components/schemas/CurrencyAttribute"
|
|
4374
4438
|
},
|
|
4375
|
-
{
|
|
4376
|
-
"$ref": "#/components/schemas/RepeatableAttribute"
|
|
4377
|
-
},
|
|
4378
4439
|
{
|
|
4379
4440
|
"$ref": "#/components/schemas/TagsAttribute"
|
|
4380
4441
|
},
|
|
@@ -4416,6 +4477,18 @@
|
|
|
4416
4477
|
},
|
|
4417
4478
|
{
|
|
4418
4479
|
"$ref": "#/components/schemas/PartnerOrganisationAttribute"
|
|
4480
|
+
},
|
|
4481
|
+
{
|
|
4482
|
+
"$ref": "#/components/schemas/PhoneAttribute"
|
|
4483
|
+
},
|
|
4484
|
+
{
|
|
4485
|
+
"$ref": "#/components/schemas/EmailAttribute"
|
|
4486
|
+
},
|
|
4487
|
+
{
|
|
4488
|
+
"$ref": "#/components/schemas/PaymentAttribute"
|
|
4489
|
+
},
|
|
4490
|
+
{
|
|
4491
|
+
"$ref": "#/components/schemas/PriceComponentAttribute"
|
|
4419
4492
|
}
|
|
4420
4493
|
]
|
|
4421
4494
|
},
|
|
@@ -4583,6 +4656,13 @@
|
|
|
4583
4656
|
"example": "top"
|
|
4584
4657
|
}
|
|
4585
4658
|
}
|
|
4659
|
+
},
|
|
4660
|
+
"repeatable": {
|
|
4661
|
+
"description": "The attribute is a repeatable",
|
|
4662
|
+
"type": "boolean"
|
|
4663
|
+
},
|
|
4664
|
+
"has_primary": {
|
|
4665
|
+
"type": "boolean"
|
|
4586
4666
|
}
|
|
4587
4667
|
},
|
|
4588
4668
|
"required": [
|
|
@@ -4610,6 +4690,18 @@
|
|
|
4610
4690
|
},
|
|
4611
4691
|
"rich_text": {
|
|
4612
4692
|
"type": "boolean"
|
|
4693
|
+
},
|
|
4694
|
+
"rows": {
|
|
4695
|
+
"description": "Number of rows for rich_text textarea",
|
|
4696
|
+
"oneOf": [
|
|
4697
|
+
{
|
|
4698
|
+
"type": "integer"
|
|
4699
|
+
},
|
|
4700
|
+
{
|
|
4701
|
+
"type": "string"
|
|
4702
|
+
}
|
|
4703
|
+
],
|
|
4704
|
+
"example": 3
|
|
4613
4705
|
}
|
|
4614
4706
|
}
|
|
4615
4707
|
}
|
|
@@ -4667,6 +4759,14 @@
|
|
|
4667
4759
|
"enum": [
|
|
4668
4760
|
"boolean"
|
|
4669
4761
|
]
|
|
4762
|
+
},
|
|
4763
|
+
"display_type": {
|
|
4764
|
+
"type": "string",
|
|
4765
|
+
"enum": [
|
|
4766
|
+
"switch",
|
|
4767
|
+
"checkbox"
|
|
4768
|
+
],
|
|
4769
|
+
"default": "switch"
|
|
4670
4770
|
}
|
|
4671
4771
|
}
|
|
4672
4772
|
}
|
|
@@ -5106,6 +5206,19 @@
|
|
|
5106
5206
|
"default": false,
|
|
5107
5207
|
"description": "Enables the preview, edition, and creation of relation items on a Master-Details view mode."
|
|
5108
5208
|
},
|
|
5209
|
+
"relation_picker_filter": {
|
|
5210
|
+
"description": "Additional entity search filter for relation picker",
|
|
5211
|
+
"type": "object",
|
|
5212
|
+
"properties": {
|
|
5213
|
+
"q": {
|
|
5214
|
+
"type": "string",
|
|
5215
|
+
"example": "AND is_composite_price:true"
|
|
5216
|
+
}
|
|
5217
|
+
},
|
|
5218
|
+
"required": [
|
|
5219
|
+
"q"
|
|
5220
|
+
]
|
|
5221
|
+
},
|
|
5109
5222
|
"actions": {
|
|
5110
5223
|
"type": "array",
|
|
5111
5224
|
"items": {
|
|
@@ -5140,12 +5253,13 @@
|
|
|
5140
5253
|
}
|
|
5141
5254
|
},
|
|
5142
5255
|
"new_entity_item": {
|
|
5256
|
+
"description": "Default field values for new entity to create",
|
|
5257
|
+
"nullable": true,
|
|
5143
5258
|
"type": "object",
|
|
5144
|
-
"
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
]
|
|
5259
|
+
"additionalProperties": true,
|
|
5260
|
+
"example": {
|
|
5261
|
+
"_schema": "order"
|
|
5262
|
+
}
|
|
5149
5263
|
}
|
|
5150
5264
|
}
|
|
5151
5265
|
},
|
|
@@ -5213,6 +5327,11 @@
|
|
|
5213
5327
|
"search_placeholder": {
|
|
5214
5328
|
"type": "string",
|
|
5215
5329
|
"description": "Optional placeholder text for the relation search input. The translated value for search_placeholder is used, if found else the string is used as is."
|
|
5330
|
+
},
|
|
5331
|
+
"repeatable": {
|
|
5332
|
+
"description": "Relations are always repeatables",
|
|
5333
|
+
"type": "boolean",
|
|
5334
|
+
"default": true
|
|
5216
5335
|
}
|
|
5217
5336
|
}
|
|
5218
5337
|
}
|
|
@@ -5454,33 +5573,6 @@
|
|
|
5454
5573
|
},
|
|
5455
5574
|
"has_primary": {
|
|
5456
5575
|
"type": "boolean"
|
|
5457
|
-
},
|
|
5458
|
-
"relation_affinity_mode": {
|
|
5459
|
-
"description": "Weak repeatable attributes are kept when duplicating an entity. Strong repeatable attributes are discarded when duplicating an entity.",
|
|
5460
|
-
"type": "string",
|
|
5461
|
-
"enum": [
|
|
5462
|
-
"weak",
|
|
5463
|
-
"strong"
|
|
5464
|
-
]
|
|
5465
|
-
},
|
|
5466
|
-
"type": {
|
|
5467
|
-
"type": "string",
|
|
5468
|
-
"enum": [
|
|
5469
|
-
"string",
|
|
5470
|
-
"phone",
|
|
5471
|
-
"email",
|
|
5472
|
-
"address",
|
|
5473
|
-
"relation",
|
|
5474
|
-
"payment",
|
|
5475
|
-
"price_component",
|
|
5476
|
-
"date",
|
|
5477
|
-
"message_email_address"
|
|
5478
|
-
]
|
|
5479
|
-
},
|
|
5480
|
-
"enable_relation_picker": {
|
|
5481
|
-
"type": "boolean",
|
|
5482
|
-
"default": true,
|
|
5483
|
-
"description": "when enable_relation_picker is set to true the user will be able to pick existing relations as values. Otherwise, the user will need to create new relation to link."
|
|
5484
5576
|
}
|
|
5485
5577
|
}
|
|
5486
5578
|
}
|
|
@@ -5547,7 +5639,6 @@
|
|
|
5547
5639
|
},
|
|
5548
5640
|
"required": [
|
|
5549
5641
|
"type",
|
|
5550
|
-
"address",
|
|
5551
5642
|
"name"
|
|
5552
5643
|
]
|
|
5553
5644
|
}
|
|
@@ -5631,6 +5722,82 @@
|
|
|
5631
5722
|
}
|
|
5632
5723
|
]
|
|
5633
5724
|
},
|
|
5725
|
+
"EmailAttribute": {
|
|
5726
|
+
"allOf": [
|
|
5727
|
+
{
|
|
5728
|
+
"$ref": "#/components/schemas/BaseAttribute"
|
|
5729
|
+
},
|
|
5730
|
+
{
|
|
5731
|
+
"type": "object",
|
|
5732
|
+
"description": "Email address",
|
|
5733
|
+
"properties": {
|
|
5734
|
+
"type": {
|
|
5735
|
+
"type": "string",
|
|
5736
|
+
"enum": [
|
|
5737
|
+
"email"
|
|
5738
|
+
]
|
|
5739
|
+
}
|
|
5740
|
+
}
|
|
5741
|
+
}
|
|
5742
|
+
]
|
|
5743
|
+
},
|
|
5744
|
+
"PhoneAttribute": {
|
|
5745
|
+
"allOf": [
|
|
5746
|
+
{
|
|
5747
|
+
"$ref": "#/components/schemas/BaseAttribute"
|
|
5748
|
+
},
|
|
5749
|
+
{
|
|
5750
|
+
"type": "object",
|
|
5751
|
+
"description": "Phone number",
|
|
5752
|
+
"properties": {
|
|
5753
|
+
"type": {
|
|
5754
|
+
"type": "string",
|
|
5755
|
+
"enum": [
|
|
5756
|
+
"phone"
|
|
5757
|
+
]
|
|
5758
|
+
}
|
|
5759
|
+
}
|
|
5760
|
+
}
|
|
5761
|
+
]
|
|
5762
|
+
},
|
|
5763
|
+
"PaymentAttribute": {
|
|
5764
|
+
"allOf": [
|
|
5765
|
+
{
|
|
5766
|
+
"$ref": "#/components/schemas/BaseAttribute"
|
|
5767
|
+
},
|
|
5768
|
+
{
|
|
5769
|
+
"type": "object",
|
|
5770
|
+
"description": "Payment method",
|
|
5771
|
+
"properties": {
|
|
5772
|
+
"type": {
|
|
5773
|
+
"type": "string",
|
|
5774
|
+
"enum": [
|
|
5775
|
+
"payment"
|
|
5776
|
+
]
|
|
5777
|
+
}
|
|
5778
|
+
}
|
|
5779
|
+
}
|
|
5780
|
+
]
|
|
5781
|
+
},
|
|
5782
|
+
"PriceComponentAttribute": {
|
|
5783
|
+
"allOf": [
|
|
5784
|
+
{
|
|
5785
|
+
"$ref": "#/components/schemas/BaseAttribute"
|
|
5786
|
+
},
|
|
5787
|
+
{
|
|
5788
|
+
"type": "object",
|
|
5789
|
+
"description": "Price component",
|
|
5790
|
+
"properties": {
|
|
5791
|
+
"type": {
|
|
5792
|
+
"type": "string",
|
|
5793
|
+
"enum": [
|
|
5794
|
+
"price_component"
|
|
5795
|
+
]
|
|
5796
|
+
}
|
|
5797
|
+
}
|
|
5798
|
+
}
|
|
5799
|
+
]
|
|
5800
|
+
},
|
|
5634
5801
|
"ComputedAttribute": {
|
|
5635
5802
|
"allOf": [
|
|
5636
5803
|
{
|
|
@@ -5645,8 +5812,33 @@
|
|
|
5645
5812
|
"enum": [
|
|
5646
5813
|
"computed"
|
|
5647
5814
|
]
|
|
5815
|
+
},
|
|
5816
|
+
"computed": {
|
|
5817
|
+
"type": "boolean",
|
|
5818
|
+
"default": true
|
|
5819
|
+
},
|
|
5820
|
+
"value_formatter": {
|
|
5821
|
+
"type": "string",
|
|
5822
|
+
"description": "Variable template used to format the computed value",
|
|
5823
|
+
"example": "{{formatCurrencyAttribute entity attribute locale}}"
|
|
5824
|
+
},
|
|
5825
|
+
"preview_value_formatter": {
|
|
5826
|
+
"type": "string",
|
|
5827
|
+
"description": "Variable template used to format a preview for the computed value",
|
|
5828
|
+
"example": "{{formatCurrencyAttribute entity attribute locale}}"
|
|
5829
|
+
},
|
|
5830
|
+
"amount_field": {
|
|
5831
|
+
"type": "string",
|
|
5832
|
+
"description": "A source amount field that is used to compute the value of the attribute"
|
|
5833
|
+
},
|
|
5834
|
+
"currency_field": {
|
|
5835
|
+
"type": "string",
|
|
5836
|
+
"description": "A currency field used to format a computed currency value"
|
|
5648
5837
|
}
|
|
5649
|
-
}
|
|
5838
|
+
},
|
|
5839
|
+
"required": [
|
|
5840
|
+
"value_formatter"
|
|
5841
|
+
]
|
|
5650
5842
|
}
|
|
5651
5843
|
]
|
|
5652
5844
|
},
|
|
@@ -7593,6 +7785,16 @@
|
|
|
7593
7785
|
"comment"
|
|
7594
7786
|
]
|
|
7595
7787
|
},
|
|
7788
|
+
"TaxonomySearchIncludeArchivedParam": {
|
|
7789
|
+
"type": "string",
|
|
7790
|
+
"enum": [
|
|
7791
|
+
"true",
|
|
7792
|
+
"false",
|
|
7793
|
+
"only"
|
|
7794
|
+
],
|
|
7795
|
+
"description": "Whether to include archived labels in the search results\n- `true`: include archived labels\n- `false`: exclude archived labels\n- `only`: include only archived labels\n\nBy default, no archived labels are included in the search results.\n",
|
|
7796
|
+
"default": "false"
|
|
7797
|
+
},
|
|
7596
7798
|
"TaxonomyClassification": {
|
|
7597
7799
|
"type": "object",
|
|
7598
7800
|
"properties": {
|
|
@@ -7718,6 +7920,7 @@
|
|
|
7718
7920
|
"type": "string",
|
|
7719
7921
|
"enum": [
|
|
7720
7922
|
"MOVE_CLASSIFICATIONS",
|
|
7923
|
+
"MERGE_CLASSIFICATIONS",
|
|
7721
7924
|
"DELETE_CLASSIFICATIONS"
|
|
7722
7925
|
]
|
|
7723
7926
|
},
|
|
@@ -7731,6 +7934,9 @@
|
|
|
7731
7934
|
"job_status": {
|
|
7732
7935
|
"$ref": "#/components/schemas/TaxonomyBulkJobStatus"
|
|
7733
7936
|
},
|
|
7937
|
+
"failure_reason": {
|
|
7938
|
+
"type": "string"
|
|
7939
|
+
},
|
|
7734
7940
|
"action_type": {
|
|
7735
7941
|
"$ref": "#/components/schemas/TaxonomyBulkJobActionType"
|
|
7736
7942
|
},
|
|
@@ -7740,6 +7946,9 @@
|
|
|
7740
7946
|
"target_taxonomy": {
|
|
7741
7947
|
"$ref": "#/components/schemas/TaxonomySlug"
|
|
7742
7948
|
},
|
|
7949
|
+
"target_classification": {
|
|
7950
|
+
"$ref": "#/components/schemas/ClassificationId"
|
|
7951
|
+
},
|
|
7743
7952
|
"classification_ids": {
|
|
7744
7953
|
"type": "array",
|
|
7745
7954
|
"items": {
|