@epilot/blueprint-manifest-client 2.6.4 → 2.6.6
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 +67 -2
- package/dist/openapi.json +109 -21
- package/package.json +2 -2
package/dist/openapi.d.ts
CHANGED
|
@@ -117,6 +117,12 @@ declare namespace Components {
|
|
|
117
117
|
* 1.0.0
|
|
118
118
|
*/
|
|
119
119
|
manifest_version?: string;
|
|
120
|
+
/**
|
|
121
|
+
* All the resources that were selected to be exported, used to pre-select the resources when updating a sandbox manifest
|
|
122
|
+
* example:
|
|
123
|
+
* https://blueprint-manifest-prod.s3.eu-central-1.amazonaws.com/selected_resources.json
|
|
124
|
+
*/
|
|
125
|
+
selected_resources_url?: string;
|
|
120
126
|
}
|
|
121
127
|
export interface CommonMarkdownFields {
|
|
122
128
|
/**
|
|
@@ -305,6 +311,12 @@ declare namespace Components {
|
|
|
305
311
|
* 1.0.0
|
|
306
312
|
*/
|
|
307
313
|
manifest_version?: string;
|
|
314
|
+
/**
|
|
315
|
+
* All the resources that were selected to be exported, used to pre-select the resources when updating a sandbox manifest
|
|
316
|
+
* example:
|
|
317
|
+
* https://blueprint-manifest-prod.s3.eu-central-1.amazonaws.com/selected_resources.json
|
|
318
|
+
*/
|
|
319
|
+
selected_resources_url?: string;
|
|
308
320
|
}
|
|
309
321
|
/**
|
|
310
322
|
* ID of an import or export job (state machine)
|
|
@@ -383,6 +395,12 @@ declare namespace Components {
|
|
|
383
395
|
* 1.0.0
|
|
384
396
|
*/
|
|
385
397
|
manifest_version?: string;
|
|
398
|
+
/**
|
|
399
|
+
* All the resources that were selected to be exported, used to pre-select the resources when updating a sandbox manifest
|
|
400
|
+
* example:
|
|
401
|
+
* https://blueprint-manifest-prod.s3.eu-central-1.amazonaws.com/selected_resources.json
|
|
402
|
+
*/
|
|
403
|
+
selected_resources_url?: string;
|
|
386
404
|
/**
|
|
387
405
|
* Markdown content part of a manifest file
|
|
388
406
|
*/
|
|
@@ -490,6 +508,12 @@ declare namespace Components {
|
|
|
490
508
|
* 1.0.0
|
|
491
509
|
*/
|
|
492
510
|
manifest_version?: string;
|
|
511
|
+
/**
|
|
512
|
+
* All the resources that were selected to be exported, used to pre-select the resources when updating a sandbox manifest
|
|
513
|
+
* example:
|
|
514
|
+
* https://blueprint-manifest-prod.s3.eu-central-1.amazonaws.com/selected_resources.json
|
|
515
|
+
*/
|
|
516
|
+
selected_resources_url?: string;
|
|
493
517
|
/**
|
|
494
518
|
* When the manifest was first installed (applied)
|
|
495
519
|
*/
|
|
@@ -584,6 +608,17 @@ declare namespace Components {
|
|
|
584
608
|
*/
|
|
585
609
|
key: string;
|
|
586
610
|
}
|
|
611
|
+
export interface SelectedResources {
|
|
612
|
+
exported_root_resources: {
|
|
613
|
+
id: string;
|
|
614
|
+
type: ResourceNodeType;
|
|
615
|
+
}[];
|
|
616
|
+
selected_resources: string[];
|
|
617
|
+
/**
|
|
618
|
+
* Pipeline ID selected when doing the sandbox sync
|
|
619
|
+
*/
|
|
620
|
+
pipeline_id?: string;
|
|
621
|
+
}
|
|
587
622
|
export interface UploadFilePayload {
|
|
588
623
|
/**
|
|
589
624
|
* example:
|
|
@@ -646,7 +681,7 @@ declare namespace Paths {
|
|
|
646
681
|
}
|
|
647
682
|
}
|
|
648
683
|
namespace CreateExport {
|
|
649
|
-
export
|
|
684
|
+
export type RequestBody = {
|
|
650
685
|
resourceType: Components.Schemas.ResourceNodeType;
|
|
651
686
|
resourceIds: [
|
|
652
687
|
string,
|
|
@@ -685,7 +720,36 @@ declare namespace Paths {
|
|
|
685
720
|
* Temporary flag to indicate if multiple resources are being exported
|
|
686
721
|
*/
|
|
687
722
|
isExportingMultipleResources?: boolean;
|
|
688
|
-
|
|
723
|
+
/**
|
|
724
|
+
* Pipeline ID selected when doing the sandbox sync
|
|
725
|
+
*/
|
|
726
|
+
pipelineId?: string;
|
|
727
|
+
} | {
|
|
728
|
+
resources: [
|
|
729
|
+
{
|
|
730
|
+
type: Components.Schemas.ResourceNodeType;
|
|
731
|
+
id: string;
|
|
732
|
+
},
|
|
733
|
+
...{
|
|
734
|
+
type: Components.Schemas.ResourceNodeType;
|
|
735
|
+
id: string;
|
|
736
|
+
}[]
|
|
737
|
+
];
|
|
738
|
+
jobId?: /**
|
|
739
|
+
* ID of an import or export job (state machine)
|
|
740
|
+
* example:
|
|
741
|
+
* 4854bb2a-94f9-424d-a968-3fb17fb0bf89
|
|
742
|
+
*/
|
|
743
|
+
Components.Schemas.JobID;
|
|
744
|
+
/**
|
|
745
|
+
* Temporary flag to indicate if multiple resources are being exported
|
|
746
|
+
*/
|
|
747
|
+
isExportingMultipleResources?: boolean;
|
|
748
|
+
/**
|
|
749
|
+
* Pipeline ID selected when doing the sandbox sync
|
|
750
|
+
*/
|
|
751
|
+
pipelineId?: string;
|
|
752
|
+
};
|
|
689
753
|
namespace Responses {
|
|
690
754
|
export interface $200 {
|
|
691
755
|
jobId?: /**
|
|
@@ -1110,5 +1174,6 @@ export type ResourceNode = Components.Schemas.ResourceNode;
|
|
|
1110
1174
|
export type ResourceNodeType = Components.Schemas.ResourceNodeType;
|
|
1111
1175
|
export type RootResourceNode = Components.Schemas.RootResourceNode;
|
|
1112
1176
|
export type S3Reference = Components.Schemas.S3Reference;
|
|
1177
|
+
export type SelectedResources = Components.Schemas.SelectedResources;
|
|
1113
1178
|
export type UploadFilePayload = Components.Schemas.UploadFilePayload;
|
|
1114
1179
|
export type VirtualResourceNodeGroup = Components.Schemas.VirtualResourceNodeGroup;
|
package/dist/openapi.json
CHANGED
|
@@ -76,30 +76,76 @@
|
|
|
76
76
|
"content": {
|
|
77
77
|
"application/json": {
|
|
78
78
|
"schema": {
|
|
79
|
-
"
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
79
|
+
"oneOf": [
|
|
80
|
+
{
|
|
81
|
+
"type": "object",
|
|
82
|
+
"properties": {
|
|
83
|
+
"resourceType": {
|
|
84
|
+
"$ref": "#/components/schemas/ResourceNodeType"
|
|
85
|
+
},
|
|
86
|
+
"resourceIds": {
|
|
87
|
+
"type": "array",
|
|
88
|
+
"items": {
|
|
89
|
+
"type": "string"
|
|
90
|
+
},
|
|
91
|
+
"minItems": 1,
|
|
92
|
+
"maxItems": 25
|
|
93
|
+
},
|
|
94
|
+
"jobId": {
|
|
95
|
+
"$ref": "#/components/schemas/JobID"
|
|
96
|
+
},
|
|
97
|
+
"isExportingMultipleResources": {
|
|
98
|
+
"type": "boolean",
|
|
99
|
+
"description": "Temporary flag to indicate if multiple resources are being exported"
|
|
100
|
+
},
|
|
101
|
+
"pipelineId": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"description": "Pipeline ID selected when doing the sandbox sync"
|
|
104
|
+
}
|
|
88
105
|
},
|
|
89
|
-
"
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
"$ref": "#/components/schemas/JobID"
|
|
106
|
+
"required": [
|
|
107
|
+
"resourceType",
|
|
108
|
+
"resourceIds"
|
|
109
|
+
]
|
|
94
110
|
},
|
|
95
|
-
|
|
96
|
-
"type": "
|
|
97
|
-
"
|
|
111
|
+
{
|
|
112
|
+
"type": "object",
|
|
113
|
+
"properties": {
|
|
114
|
+
"resources": {
|
|
115
|
+
"type": "array",
|
|
116
|
+
"items": {
|
|
117
|
+
"type": "object",
|
|
118
|
+
"properties": {
|
|
119
|
+
"type": {
|
|
120
|
+
"$ref": "#/components/schemas/ResourceNodeType"
|
|
121
|
+
},
|
|
122
|
+
"id": {
|
|
123
|
+
"type": "string"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"required": [
|
|
127
|
+
"type",
|
|
128
|
+
"id"
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
"minItems": 1
|
|
132
|
+
},
|
|
133
|
+
"jobId": {
|
|
134
|
+
"$ref": "#/components/schemas/JobID"
|
|
135
|
+
},
|
|
136
|
+
"isExportingMultipleResources": {
|
|
137
|
+
"type": "boolean",
|
|
138
|
+
"description": "Temporary flag to indicate if multiple resources are being exported"
|
|
139
|
+
},
|
|
140
|
+
"pipelineId": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"description": "Pipeline ID selected when doing the sandbox sync"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"required": [
|
|
146
|
+
"resources"
|
|
147
|
+
]
|
|
98
148
|
}
|
|
99
|
-
},
|
|
100
|
-
"required": [
|
|
101
|
-
"resourceType",
|
|
102
|
-
"resourceIds"
|
|
103
149
|
]
|
|
104
150
|
}
|
|
105
151
|
}
|
|
@@ -897,6 +943,11 @@
|
|
|
897
943
|
"type": "string",
|
|
898
944
|
"description": "Version of the manifest (semver)",
|
|
899
945
|
"example": "1.0.0"
|
|
946
|
+
},
|
|
947
|
+
"selected_resources_url": {
|
|
948
|
+
"type": "string",
|
|
949
|
+
"description": "All the resources that were selected to be exported, used to pre-select the resources when updating a sandbox manifest",
|
|
950
|
+
"example": "https://blueprint-manifest-prod.s3.eu-central-1.amazonaws.com/selected_resources.json"
|
|
900
951
|
}
|
|
901
952
|
}
|
|
902
953
|
},
|
|
@@ -1059,6 +1110,43 @@
|
|
|
1059
1110
|
"required": [
|
|
1060
1111
|
"org_id"
|
|
1061
1112
|
]
|
|
1113
|
+
},
|
|
1114
|
+
"SelectedResources": {
|
|
1115
|
+
"type": "object",
|
|
1116
|
+
"properties": {
|
|
1117
|
+
"exported_root_resources": {
|
|
1118
|
+
"type": "array",
|
|
1119
|
+
"items": {
|
|
1120
|
+
"type": "object",
|
|
1121
|
+
"properties": {
|
|
1122
|
+
"id": {
|
|
1123
|
+
"type": "string"
|
|
1124
|
+
},
|
|
1125
|
+
"type": {
|
|
1126
|
+
"$ref": "#/components/schemas/ResourceNodeType"
|
|
1127
|
+
}
|
|
1128
|
+
},
|
|
1129
|
+
"required": [
|
|
1130
|
+
"id",
|
|
1131
|
+
"type"
|
|
1132
|
+
]
|
|
1133
|
+
}
|
|
1134
|
+
},
|
|
1135
|
+
"selected_resources": {
|
|
1136
|
+
"type": "array",
|
|
1137
|
+
"items": {
|
|
1138
|
+
"type": "string"
|
|
1139
|
+
}
|
|
1140
|
+
},
|
|
1141
|
+
"pipeline_id": {
|
|
1142
|
+
"type": "string",
|
|
1143
|
+
"description": "Pipeline ID selected when doing the sandbox sync"
|
|
1144
|
+
}
|
|
1145
|
+
},
|
|
1146
|
+
"required": [
|
|
1147
|
+
"exported_root_resources",
|
|
1148
|
+
"selected_resources"
|
|
1149
|
+
]
|
|
1062
1150
|
}
|
|
1063
1151
|
},
|
|
1064
1152
|
"parameters": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/blueprint-manifest-client",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.6",
|
|
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",
|