@epilot/blueprint-manifest-client 2.6.10 → 2.7.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.
@@ -1 +1 @@
1
- (()=>{"use strict";var e={914:function(e,t,s){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var n=o(s(240));t.default=n.default},240:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"servers":[{"url":"https://blueprint-manifest.sls.epilot.io"}],"paths":{"/v1/blueprint-manifest/jobs/{job_id}":{"get":{"operationId":"getJob","parameters":[{"$ref":"#/components/parameters/JobID"}],"responses":{}}},"/v1/blueprint-manifest/jobs:createExport":{"post":{"operationId":"createExport","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/jobs/{job_id}:exportManifest":{"post":{"operationId":"exportManifest","parameters":[{"$ref":"#/components/parameters/JobID"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest:uploadManifest":{"post":{"operationId":"uploadManifest","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/jobs:createPlan":{"post":{"operationId":"createPlan","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/jobs/{job_id}:applyPlan":{"post":{"operationId":"applyPlan","parameters":[{"$ref":"#/components/parameters/JobID"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/manifests":{"get":{"operationId":"listInstalledManifests","responses":{}}},"/v1/blueprint-manifest/manifests/{manifest_id}":{"get":{"operationId":"getManifest","parameters":[{"in":"path","required":true,"name":"manifest_id"}],"responses":{}},"delete":{"operationId":"deleteManifest","parameters":[{"in":"path","required":true,"name":"manifest_id"}],"responses":{}}}},"components":{"parameters":{"JobID":{"name":"job_id","in":"path","required":true}}}}')}},t={},s=function s(o){var n=t[o];if(void 0!==n)return n.exports;var r=t[o]={exports:{}};return e[o].call(r.exports,r,r.exports,s),r.exports}(914),o=exports;for(var n in s)o[n]=s[n];s.__esModule&&Object.defineProperty(o,"__esModule",{value:!0})})();
1
+ (()=>{"use strict";var e={914:function(e,t,s){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(s(240));t.default=o.default},240:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"servers":[{"url":"https://blueprint-manifest.sls.epilot.io"}],"paths":{"/v1/blueprint-manifest/jobs/{job_id}":{"get":{"operationId":"getJob","parameters":[{"$ref":"#/components/parameters/JobID"}],"responses":{}}},"/v1/blueprint-manifest/jobs:createExport":{"post":{"operationId":"createExport","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/jobs/{job_id}:exportManifest":{"post":{"operationId":"exportManifest","parameters":[{"$ref":"#/components/parameters/JobID"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest:uploadManifest":{"post":{"operationId":"uploadManifest","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/jobs:createPlan":{"post":{"operationId":"createPlan","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/jobs/{job_id}:applyPlan":{"post":{"operationId":"applyPlan","parameters":[{"$ref":"#/components/parameters/JobID"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v1/blueprint-manifest/manifests":{"get":{"operationId":"listInstalledManifests","responses":{}}},"/v1/blueprint-manifest/manifests/{manifest_id}":{"get":{"operationId":"getManifest","parameters":[{"in":"path","required":true,"name":"manifest_id"}],"responses":{}},"put":{"operationId":"updateManifest","parameters":[{"in":"path","required":true,"name":"manifest_id"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteManifest","parameters":[{"in":"path","required":true,"name":"manifest_id"}],"responses":{}}}},"components":{"parameters":{"JobID":{"name":"job_id","in":"path","required":true}}}}')}},t={},s=function s(n){var o=t[n];if(void 0!==o)return o.exports;var r=t[n]={exports:{}};return e[n].call(r.exports,r,r.exports,s),r.exports}(914),n=exports;for(var o in s)n[o]=s[o];s.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
@@ -104,6 +104,22 @@
104
104
  ],
105
105
  "responses": {}
106
106
  },
107
+ "put": {
108
+ "operationId": "updateManifest",
109
+ "parameters": [
110
+ {
111
+ "in": "path",
112
+ "required": true,
113
+ "name": "manifest_id"
114
+ }
115
+ ],
116
+ "requestBody": {
117
+ "content": {
118
+ "application/json": {}
119
+ }
120
+ },
121
+ "responses": {}
122
+ },
107
123
  "delete": {
108
124
  "operationId": "deleteManifest",
109
125
  "parameters": [
package/dist/openapi.d.ts CHANGED
@@ -535,6 +535,16 @@ declare namespace Components {
535
535
  updated_at?: string; // date-time
536
536
  }
537
537
  export type PlanChanges = ("create" | "update" | "no-op" | "delete")[];
538
+ export interface PutManifestPayload {
539
+ /**
540
+ * Name of the source blueprint
541
+ */
542
+ source_blueprint_name: string;
543
+ /**
544
+ * Markdown content of the manifest
545
+ */
546
+ markdown?: string;
547
+ }
538
548
  export interface ResourceNode {
539
549
  /**
540
550
  * ID of the resource
@@ -577,6 +587,10 @@ declare namespace Components {
577
587
  * ID of the resource that will replace the original
578
588
  */
579
589
  replacementId: string;
590
+ /**
591
+ * Name of the resource that will replace the original
592
+ */
593
+ replacementName?: string;
580
594
  }
581
595
  export interface RootResourceNode {
582
596
  /**
@@ -948,6 +962,23 @@ declare namespace Paths {
948
962
  }
949
963
  }
950
964
  }
965
+ namespace UpdateManifest {
966
+ namespace Parameters {
967
+ export type ManifestId = /**
968
+ * ID of an imported / installed manifest
969
+ * example:
970
+ * c2d6cac8-bdd5-4ea2-8a6c-1cbdbe77b341
971
+ */
972
+ Components.Schemas.ManifestID;
973
+ }
974
+ export interface PathParameters {
975
+ manifest_id: Parameters.ManifestId;
976
+ }
977
+ export type RequestBody = Components.Schemas.PutManifestPayload;
978
+ namespace Responses {
979
+ export type $200 = Components.Schemas.Manifest;
980
+ }
981
+ }
951
982
  namespace UploadManifest {
952
983
  export type RequestBody = Components.Schemas.UploadFilePayload;
953
984
  namespace Responses {
@@ -1051,6 +1082,17 @@ export interface OperationMethods {
1051
1082
  data?: any,
1052
1083
  config?: AxiosRequestConfig
1053
1084
  ): OperationResponse<Paths.GetManifest.Responses.$200>
1085
+ /**
1086
+ * updateManifest - updateManifest
1087
+ *
1088
+ * Update an installed manifest
1089
+ *
1090
+ */
1091
+ 'updateManifest'(
1092
+ parameters?: Parameters<Paths.UpdateManifest.PathParameters> | null,
1093
+ data?: Paths.UpdateManifest.RequestBody,
1094
+ config?: AxiosRequestConfig
1095
+ ): OperationResponse<Paths.UpdateManifest.Responses.$200>
1054
1096
  /**
1055
1097
  * deleteManifest - deleteManifest
1056
1098
  *
@@ -1169,6 +1211,17 @@ export interface PathsDictionary {
1169
1211
  data?: any,
1170
1212
  config?: AxiosRequestConfig
1171
1213
  ): OperationResponse<Paths.GetManifest.Responses.$200>
1214
+ /**
1215
+ * updateManifest - updateManifest
1216
+ *
1217
+ * Update an installed manifest
1218
+ *
1219
+ */
1220
+ 'put'(
1221
+ parameters?: Parameters<Paths.UpdateManifest.PathParameters> | null,
1222
+ data?: Paths.UpdateManifest.RequestBody,
1223
+ config?: AxiosRequestConfig
1224
+ ): OperationResponse<Paths.UpdateManifest.Responses.$200>
1172
1225
  /**
1173
1226
  * deleteManifest - deleteManifest
1174
1227
  *
@@ -1205,6 +1258,7 @@ export type ManifestItem = Components.Schemas.ManifestItem;
1205
1258
  export type ManifestSource = Components.Schemas.ManifestSource;
1206
1259
  export type ManifestTimestampFields = Components.Schemas.ManifestTimestampFields;
1207
1260
  export type PlanChanges = Components.Schemas.PlanChanges;
1261
+ export type PutManifestPayload = Components.Schemas.PutManifestPayload;
1208
1262
  export type ResourceNode = Components.Schemas.ResourceNode;
1209
1263
  export type ResourceNodeType = Components.Schemas.ResourceNodeType;
1210
1264
  export type ResourceReplacement = Components.Schemas.ResourceReplacement;
package/dist/openapi.json CHANGED
@@ -551,6 +551,45 @@
551
551
  }
552
552
  }
553
553
  },
554
+ "put": {
555
+ "operationId": "updateManifest",
556
+ "summary": "updateManifest",
557
+ "description": "Update an installed manifest\n",
558
+ "tags": [
559
+ "Manifests"
560
+ ],
561
+ "parameters": [
562
+ {
563
+ "in": "path",
564
+ "required": true,
565
+ "name": "manifest_id",
566
+ "schema": {
567
+ "$ref": "#/components/schemas/ManifestID"
568
+ }
569
+ }
570
+ ],
571
+ "requestBody": {
572
+ "content": {
573
+ "application/json": {
574
+ "schema": {
575
+ "$ref": "#/components/schemas/PutManifestPayload"
576
+ }
577
+ }
578
+ }
579
+ },
580
+ "responses": {
581
+ "200": {
582
+ "description": "The updated Manifest",
583
+ "content": {
584
+ "application/json": {
585
+ "schema": {
586
+ "$ref": "#/components/schemas/Manifest"
587
+ }
588
+ }
589
+ }
590
+ }
591
+ }
592
+ },
554
593
  "delete": {
555
594
  "operationId": "deleteManifest",
556
595
  "summary": "deleteManifest",
@@ -1208,12 +1247,32 @@
1208
1247
  "replacementId": {
1209
1248
  "type": "string",
1210
1249
  "description": "ID of the resource that will replace the original"
1250
+ },
1251
+ "replacementName": {
1252
+ "type": "string",
1253
+ "description": "Name of the resource that will replace the original"
1211
1254
  }
1212
1255
  },
1213
1256
  "required": [
1214
1257
  "originalAddress",
1215
1258
  "replacementId"
1216
1259
  ]
1260
+ },
1261
+ "PutManifestPayload": {
1262
+ "type": "object",
1263
+ "properties": {
1264
+ "source_blueprint_name": {
1265
+ "type": "string",
1266
+ "description": "Name of the source blueprint"
1267
+ },
1268
+ "markdown": {
1269
+ "type": "string",
1270
+ "description": "Markdown content of the manifest"
1271
+ }
1272
+ },
1273
+ "required": [
1274
+ "source_blueprint_name"
1275
+ ]
1217
1276
  }
1218
1277
  },
1219
1278
  "parameters": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/blueprint-manifest-client",
3
- "version": "2.6.10",
3
+ "version": "2.7.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 ../../../blueprint-manifest-api/lambda/TerraformHandlerFunction/openapi.yml",
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",