@epilot/blueprint-manifest-client 2.5.0 → 2.5.2
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/openapi.d.ts +26 -1
- package/dist/openapi.json +66 -3
- package/package.json +1 -1
package/dist/openapi.d.ts
CHANGED
|
@@ -112,6 +112,21 @@ declare namespace Components {
|
|
|
112
112
|
*/
|
|
113
113
|
is_virtual?: boolean;
|
|
114
114
|
}
|
|
115
|
+
export interface FormattedError {
|
|
116
|
+
error?: string | {
|
|
117
|
+
[key: string]: any;
|
|
118
|
+
};
|
|
119
|
+
code?: FormattedErrorCodes;
|
|
120
|
+
data?: FormattedErrorData;
|
|
121
|
+
}
|
|
122
|
+
export type FormattedErrorCodes = "dependency_extraction" | "resource_not_found" | "resource_fetch_api_error" | "resource_fetch_unknown_error" | "terraform_cli_process_error" | "terraform_import_block_process_error";
|
|
123
|
+
export interface FormattedErrorData {
|
|
124
|
+
resource?: {
|
|
125
|
+
id?: string;
|
|
126
|
+
name?: string;
|
|
127
|
+
type?: string;
|
|
128
|
+
};
|
|
129
|
+
}
|
|
115
130
|
export interface Job {
|
|
116
131
|
job_id?: /**
|
|
117
132
|
* ID of an import or export job (state machine)
|
|
@@ -146,6 +161,7 @@ declare namespace Components {
|
|
|
146
161
|
* Whether the manifest comes from a trusted source and is signed by epilot
|
|
147
162
|
*/
|
|
148
163
|
is_verified?: boolean;
|
|
164
|
+
errors?: FormattedError[];
|
|
149
165
|
/**
|
|
150
166
|
* An array of tree-like JSON objects or a singular tree-like JSON object representing the resources to import
|
|
151
167
|
*/
|
|
@@ -214,6 +230,12 @@ declare namespace Components {
|
|
|
214
230
|
export type JobID = string;
|
|
215
231
|
export type JobStatus = "PENDING" | "STARTED" | "WAITING_USER_ACTION" | "CANCELED" | "IN_PROGRESS" | "SUCCESS" | "FAILED";
|
|
216
232
|
export interface Manifest {
|
|
233
|
+
import_job_id?: /**
|
|
234
|
+
* ID of an import or export job (state machine)
|
|
235
|
+
* example:
|
|
236
|
+
* 4854bb2a-94f9-424d-a968-3fb17fb0bf89
|
|
237
|
+
*/
|
|
238
|
+
JobID;
|
|
217
239
|
manifest_id?: /**
|
|
218
240
|
* ID of an imported / installed manifest
|
|
219
241
|
* example:
|
|
@@ -372,7 +394,7 @@ declare namespace Components {
|
|
|
372
394
|
}[];
|
|
373
395
|
changes?: PlanChanges;
|
|
374
396
|
}
|
|
375
|
-
export type ResourceNodeType = "designbuilder" | "journey" | "product" | "price" | "tax" | "automation_flow" | "entity_mapping" | "file" | "emailtemplate" | "schema" | "schema_attribute" | "schema_capability" | "schema_group" | "workflow_definition" | "closing_reason" | "taxonomy_classification" | "webhook" | "custom_variable";
|
|
397
|
+
export type ResourceNodeType = "designbuilder" | "journey" | "product" | "price" | "tax" | "automation_flow" | "entity_mapping" | "file" | "emailtemplate" | "schema" | "schema_attribute" | "schema_capability" | "schema_group" | "schema_group_headline" | "workflow_definition" | "closing_reason" | "taxonomy_classification" | "webhook" | "custom_variable";
|
|
376
398
|
export interface RootResourceNode {
|
|
377
399
|
/**
|
|
378
400
|
* ID of the resource
|
|
@@ -911,6 +933,9 @@ export type CommonImportFields = Components.Schemas.CommonImportFields;
|
|
|
911
933
|
export type CommonManifestFields = Components.Schemas.CommonManifestFields;
|
|
912
934
|
export type CommonMarkdownFields = Components.Schemas.CommonMarkdownFields;
|
|
913
935
|
export type CommonResourceNode = Components.Schemas.CommonResourceNode;
|
|
936
|
+
export type FormattedError = Components.Schemas.FormattedError;
|
|
937
|
+
export type FormattedErrorCodes = Components.Schemas.FormattedErrorCodes;
|
|
938
|
+
export type FormattedErrorData = Components.Schemas.FormattedErrorData;
|
|
914
939
|
export type Job = Components.Schemas.Job;
|
|
915
940
|
export type JobID = Components.Schemas.JobID;
|
|
916
941
|
export type JobStatus = Components.Schemas.JobStatus;
|
package/dist/openapi.json
CHANGED
|
@@ -32,9 +32,6 @@
|
|
|
32
32
|
{
|
|
33
33
|
"url": "https://blueprint-manifest.sls.epilot.io"
|
|
34
34
|
},
|
|
35
|
-
{
|
|
36
|
-
"url": "https://blueprint-manifest.sls.epilot.io"
|
|
37
|
-
},
|
|
38
35
|
{
|
|
39
36
|
"url": "https://blueprint-manifest.sls.epilot.io"
|
|
40
37
|
}
|
|
@@ -478,6 +475,14 @@
|
|
|
478
475
|
},
|
|
479
476
|
"Manifest": {
|
|
480
477
|
"allOf": [
|
|
478
|
+
{
|
|
479
|
+
"type": "object",
|
|
480
|
+
"properties": {
|
|
481
|
+
"import_job_id": {
|
|
482
|
+
"$ref": "#/components/schemas/JobID"
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
},
|
|
481
486
|
{
|
|
482
487
|
"$ref": "#/components/schemas/CommonManifestFields"
|
|
483
488
|
},
|
|
@@ -530,6 +535,7 @@
|
|
|
530
535
|
"schema_attribute",
|
|
531
536
|
"schema_capability",
|
|
532
537
|
"schema_group",
|
|
538
|
+
"schema_group_headline",
|
|
533
539
|
"workflow_definition",
|
|
534
540
|
"closing_reason",
|
|
535
541
|
"taxonomy_classification",
|
|
@@ -735,6 +741,12 @@
|
|
|
735
741
|
"is_verified": {
|
|
736
742
|
"type": "boolean",
|
|
737
743
|
"description": "Whether the manifest comes from a trusted source and is signed by epilot"
|
|
744
|
+
},
|
|
745
|
+
"errors": {
|
|
746
|
+
"type": "array",
|
|
747
|
+
"items": {
|
|
748
|
+
"$ref": "#/components/schemas/FormattedError"
|
|
749
|
+
}
|
|
738
750
|
}
|
|
739
751
|
}
|
|
740
752
|
},
|
|
@@ -870,6 +882,57 @@
|
|
|
870
882
|
}
|
|
871
883
|
}
|
|
872
884
|
}
|
|
885
|
+
},
|
|
886
|
+
"FormattedErrorCodes": {
|
|
887
|
+
"type": "enum",
|
|
888
|
+
"enum": [
|
|
889
|
+
"dependency_extraction",
|
|
890
|
+
"resource_not_found",
|
|
891
|
+
"resource_fetch_api_error",
|
|
892
|
+
"resource_fetch_unknown_error",
|
|
893
|
+
"terraform_cli_process_error",
|
|
894
|
+
"terraform_import_block_process_error"
|
|
895
|
+
]
|
|
896
|
+
},
|
|
897
|
+
"FormattedErrorData": {
|
|
898
|
+
"type": "object",
|
|
899
|
+
"properties": {
|
|
900
|
+
"resource": {
|
|
901
|
+
"type": "object",
|
|
902
|
+
"properties": {
|
|
903
|
+
"id": {
|
|
904
|
+
"type": "string"
|
|
905
|
+
},
|
|
906
|
+
"name": {
|
|
907
|
+
"type": "string"
|
|
908
|
+
},
|
|
909
|
+
"type": {
|
|
910
|
+
"type": "string"
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
},
|
|
916
|
+
"FormattedError": {
|
|
917
|
+
"type": "object",
|
|
918
|
+
"properties": {
|
|
919
|
+
"error": {
|
|
920
|
+
"oneOf": [
|
|
921
|
+
{
|
|
922
|
+
"type": "string"
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
"type": "object"
|
|
926
|
+
}
|
|
927
|
+
]
|
|
928
|
+
},
|
|
929
|
+
"code": {
|
|
930
|
+
"$ref": "#/components/schemas/FormattedErrorCodes"
|
|
931
|
+
},
|
|
932
|
+
"data": {
|
|
933
|
+
"$ref": "#/components/schemas/FormattedErrorData"
|
|
934
|
+
}
|
|
935
|
+
}
|
|
873
936
|
}
|
|
874
937
|
},
|
|
875
938
|
"parameters": {
|