@epilot/blueprint-manifest-client 2.8.0 → 2.8.1
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 +38 -13
- package/dist/openapi.json +5 -4
- package/package.json +2 -2
package/dist/openapi.d.ts
CHANGED
|
@@ -157,10 +157,7 @@ declare namespace Components {
|
|
|
157
157
|
* ID of the resource
|
|
158
158
|
*/
|
|
159
159
|
id: string;
|
|
160
|
-
|
|
161
|
-
* Type of the resource
|
|
162
|
-
*/
|
|
163
|
-
type: ResourceNodeType;
|
|
160
|
+
type: /* Type of the resource */ ResourceNodeType;
|
|
164
161
|
/**
|
|
165
162
|
* Name of the resource
|
|
166
163
|
*/
|
|
@@ -181,7 +178,7 @@ declare namespace Components {
|
|
|
181
178
|
code?: FormattedErrorCodes;
|
|
182
179
|
data?: FormattedErrorData;
|
|
183
180
|
}
|
|
184
|
-
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" | "terraform_init_error" | "terraform_plan_error" | "terraform_apply_error" | "terraform_show_error";
|
|
181
|
+
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" | "terraform_init_error" | "terraform_plan_error" | "terraform_apply_error" | "terraform_show_error" | "generic_error";
|
|
185
182
|
export interface FormattedErrorData {
|
|
186
183
|
resource?: {
|
|
187
184
|
id?: string;
|
|
@@ -551,7 +548,7 @@ declare namespace Components {
|
|
|
551
548
|
* ID of the resource
|
|
552
549
|
*/
|
|
553
550
|
id: string;
|
|
554
|
-
type: ResourceNodeType;
|
|
551
|
+
type: /* Type of the resource */ ResourceNodeType;
|
|
555
552
|
/**
|
|
556
553
|
* Name of the resource
|
|
557
554
|
*/
|
|
@@ -574,10 +571,13 @@ declare namespace Components {
|
|
|
574
571
|
dependencies?: ResourceNode[] | null;
|
|
575
572
|
parents?: {
|
|
576
573
|
id?: string;
|
|
577
|
-
type?: ResourceNodeType;
|
|
574
|
+
type?: /* Type of the resource */ ResourceNodeType;
|
|
578
575
|
}[];
|
|
579
576
|
changes?: PlanChanges;
|
|
580
577
|
}
|
|
578
|
+
/**
|
|
579
|
+
* Type of the resource
|
|
580
|
+
*/
|
|
581
581
|
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" | "coupon" | "usergroup";
|
|
582
582
|
export interface ResourceReplacement {
|
|
583
583
|
/**
|
|
@@ -598,7 +598,7 @@ declare namespace Components {
|
|
|
598
598
|
* ID of the resource
|
|
599
599
|
*/
|
|
600
600
|
id: string;
|
|
601
|
-
type: ResourceNodeType;
|
|
601
|
+
type: /* Type of the resource */ ResourceNodeType;
|
|
602
602
|
/**
|
|
603
603
|
* Name of the resource
|
|
604
604
|
*/
|
|
@@ -636,7 +636,7 @@ declare namespace Components {
|
|
|
636
636
|
export interface SelectedResources {
|
|
637
637
|
exported_root_resources: {
|
|
638
638
|
id: string;
|
|
639
|
-
type: ResourceNodeType;
|
|
639
|
+
type: /* Type of the resource */ ResourceNodeType;
|
|
640
640
|
}[];
|
|
641
641
|
selected_resources: string[];
|
|
642
642
|
/**
|
|
@@ -656,7 +656,7 @@ declare namespace Components {
|
|
|
656
656
|
* ID of the resource
|
|
657
657
|
*/
|
|
658
658
|
id: string;
|
|
659
|
-
type: ResourceNodeType;
|
|
659
|
+
type: /* Type of the resource */ ResourceNodeType;
|
|
660
660
|
/**
|
|
661
661
|
* Name of the resource
|
|
662
662
|
*/
|
|
@@ -715,7 +715,7 @@ declare namespace Paths {
|
|
|
715
715
|
}
|
|
716
716
|
namespace CreateExport {
|
|
717
717
|
export type RequestBody = {
|
|
718
|
-
resourceType: Components.Schemas.ResourceNodeType;
|
|
718
|
+
resourceType: /* Type of the resource */ Components.Schemas.ResourceNodeType;
|
|
719
719
|
resourceIds: [
|
|
720
720
|
string,
|
|
721
721
|
string?,
|
|
@@ -741,6 +741,31 @@ declare namespace Paths {
|
|
|
741
741
|
string?,
|
|
742
742
|
string?,
|
|
743
743
|
string?,
|
|
744
|
+
string?,
|
|
745
|
+
string?,
|
|
746
|
+
string?,
|
|
747
|
+
string?,
|
|
748
|
+
string?,
|
|
749
|
+
string?,
|
|
750
|
+
string?,
|
|
751
|
+
string?,
|
|
752
|
+
string?,
|
|
753
|
+
string?,
|
|
754
|
+
string?,
|
|
755
|
+
string?,
|
|
756
|
+
string?,
|
|
757
|
+
string?,
|
|
758
|
+
string?,
|
|
759
|
+
string?,
|
|
760
|
+
string?,
|
|
761
|
+
string?,
|
|
762
|
+
string?,
|
|
763
|
+
string?,
|
|
764
|
+
string?,
|
|
765
|
+
string?,
|
|
766
|
+
string?,
|
|
767
|
+
string?,
|
|
768
|
+
string?,
|
|
744
769
|
string?
|
|
745
770
|
];
|
|
746
771
|
jobId?: /**
|
|
@@ -760,11 +785,11 @@ declare namespace Paths {
|
|
|
760
785
|
} | {
|
|
761
786
|
resources: [
|
|
762
787
|
{
|
|
763
|
-
type: Components.Schemas.ResourceNodeType;
|
|
788
|
+
type: /* Type of the resource */ Components.Schemas.ResourceNodeType;
|
|
764
789
|
id: string;
|
|
765
790
|
},
|
|
766
791
|
...{
|
|
767
|
-
type: Components.Schemas.ResourceNodeType;
|
|
792
|
+
type: /* Type of the resource */ Components.Schemas.ResourceNodeType;
|
|
768
793
|
id: string;
|
|
769
794
|
}[]
|
|
770
795
|
];
|
package/dist/openapi.json
CHANGED
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"type": "string"
|
|
90
90
|
},
|
|
91
91
|
"minItems": 1,
|
|
92
|
-
"maxItems":
|
|
92
|
+
"maxItems": 50
|
|
93
93
|
},
|
|
94
94
|
"jobId": {
|
|
95
95
|
"$ref": "#/components/schemas/JobID"
|
|
@@ -704,6 +704,7 @@
|
|
|
704
704
|
},
|
|
705
705
|
"ResourceNodeType": {
|
|
706
706
|
"type": "string",
|
|
707
|
+
"description": "Type of the resource",
|
|
707
708
|
"enum": [
|
|
708
709
|
"designbuilder",
|
|
709
710
|
"journey",
|
|
@@ -748,8 +749,7 @@
|
|
|
748
749
|
"description": "ID of the resource"
|
|
749
750
|
},
|
|
750
751
|
"type": {
|
|
751
|
-
"$ref": "#/components/schemas/ResourceNodeType"
|
|
752
|
-
"description": "Type of the resource"
|
|
752
|
+
"$ref": "#/components/schemas/ResourceNodeType"
|
|
753
753
|
},
|
|
754
754
|
"name": {
|
|
755
755
|
"type": "string",
|
|
@@ -1137,7 +1137,8 @@
|
|
|
1137
1137
|
"terraform_init_error",
|
|
1138
1138
|
"terraform_plan_error",
|
|
1139
1139
|
"terraform_apply_error",
|
|
1140
|
-
"terraform_show_error"
|
|
1140
|
+
"terraform_show_error",
|
|
1141
|
+
"generic_error"
|
|
1141
1142
|
]
|
|
1142
1143
|
},
|
|
1143
1144
|
"FormattedErrorData": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/blueprint-manifest-client",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.1",
|
|
4
4
|
"description": "Client for epilot Terraform Blueprint Manifest API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"test": "jest",
|
|
25
25
|
"bundle-definition": "webpack",
|
|
26
26
|
"openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/blueprint-manifest.yaml",
|
|
27
|
-
"openapi:local": "node ../../scripts/update-openapi.js ../../../
|
|
27
|
+
"openapi:local": "node ../../scripts/update-openapi.js ../../../blueprints-api/lambda/TerraformHandlerFunction/openapi.yml",
|
|
28
28
|
"typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
|
|
29
29
|
"build": "tsc && npm run build:patch && npm run bundle-definition",
|
|
30
30
|
"build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
|