@epilot/blueprint-manifest-client 2.9.4 → 2.11.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.
@@ -1 +1 @@
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})})();
1
+ (()=>{"use strict";var e={466: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}}}}')},757: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(466));t.default=o.default}},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}(757),n=exports;for(var o in s)n[o]=s[o];s.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
package/dist/openapi.d.ts CHANGED
@@ -825,6 +825,10 @@ declare namespace Components {
825
825
  exported_root_resources: {
826
826
  id: string;
827
827
  type: /* Type of the resource */ ResourceNodeType;
828
+ /**
829
+ * Terraform address of the resource
830
+ */
831
+ address?: string;
828
832
  }[];
829
833
  selected_resources: string[];
830
834
  /**
@@ -960,6 +964,12 @@ declare namespace Paths {
960
964
  * c2d6cac8-bdd5-4ea2-8a6c-1cbdbe77b341
961
965
  */
962
966
  manifest_id?: string;
967
+ /**
968
+ * ID of an import or export job (state machine)
969
+ * example:
970
+ * 4854bb2a-94f9-424d-a968-3fb17fb0bf89
971
+ */
972
+ job_id?: string;
963
973
  /**
964
974
  * Source of the manifest
965
975
  */
@@ -988,6 +998,12 @@ declare namespace Paths {
988
998
  * c2d6cac8-bdd5-4ea2-8a6c-1cbdbe77b341
989
999
  */
990
1000
  manifest_id?: string;
1001
+ /**
1002
+ * ID of an import or export job (state machine)
1003
+ * example:
1004
+ * 4854bb2a-94f9-424d-a968-3fb17fb0bf89
1005
+ */
1006
+ job_id?: string;
991
1007
  /**
992
1008
  * Source of the manifest
993
1009
  */
@@ -1159,6 +1175,7 @@ declare namespace Paths {
1159
1175
  }
1160
1176
  }
1161
1177
 
1178
+
1162
1179
  export interface OperationMethods {
1163
1180
  /**
1164
1181
  * getJob - getJob
@@ -1405,6 +1422,7 @@ export interface PathsDictionary {
1405
1422
 
1406
1423
  export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
1407
1424
 
1425
+
1408
1426
  export type BlueprintInstallStatus = Components.Schemas.BlueprintInstallStatus;
1409
1427
  export type CallerIdentity = Components.Schemas.CallerIdentity;
1410
1428
  export type CommonImportFields = Components.Schemas.CommonImportFields;
package/dist/openapi.json CHANGED
@@ -320,6 +320,16 @@
320
320
  }
321
321
  ]
322
322
  },
323
+ "job_id": {
324
+ "allOf": [
325
+ {
326
+ "description": "Continue a previous job"
327
+ },
328
+ {
329
+ "$ref": "#/components/schemas/JobID"
330
+ }
331
+ ]
332
+ },
323
333
  "source": {
324
334
  "allOf": [
325
335
  {
@@ -391,6 +401,16 @@
391
401
  }
392
402
  ]
393
403
  },
404
+ "job_id": {
405
+ "allOf": [
406
+ {
407
+ "description": "Continue a previous job"
408
+ },
409
+ {
410
+ "$ref": "#/components/schemas/JobID"
411
+ }
412
+ ]
413
+ },
394
414
  "source": {
395
415
  "allOf": [
396
416
  {
@@ -1328,6 +1348,10 @@
1328
1348
  },
1329
1349
  "type": {
1330
1350
  "$ref": "#/components/schemas/ResourceNodeType"
1351
+ },
1352
+ "address": {
1353
+ "type": "string",
1354
+ "description": "Terraform address of the resource"
1331
1355
  }
1332
1356
  },
1333
1357
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/blueprint-manifest-client",
3
- "version": "2.9.4",
3
+ "version": "2.11.0",
4
4
  "description": "Client for epilot Terraform Blueprint Manifest API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -31,7 +31,7 @@
31
31
  "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
32
32
  "build:watch": "npm run build && tsc -w",
33
33
  "prepublishOnly": "npm run typegen && npm run build",
34
- "lint": "../../node_modules/eslint/bin/eslint.js src"
34
+ "lint": "pnpm exec eslint src"
35
35
  },
36
36
  "files": [
37
37
  "*.js",
@@ -53,7 +53,7 @@
53
53
  "@dazn/lambda-powertools-correlation-ids": "^1.28.1",
54
54
  "buffer": "^6.0.3",
55
55
  "https-browserify": "^1.0.0",
56
- "openapi-client-axios": "^7.5.1",
56
+ "openapi-client-axios": "^7.6.0",
57
57
  "stream-http": "^3.1.1",
58
58
  "url": "^0.11.0",
59
59
  "util": "^0.12.3"
@@ -64,7 +64,7 @@
64
64
  "copy-webpack-plugin": "^7.0.0",
65
65
  "jest": "^26.6.3",
66
66
  "json-loader": "^0.5.7",
67
- "openapicmd": "^2.6.0",
67
+ "openapicmd": "^2.7.0",
68
68
  "ts-jest": "^26.5.0",
69
69
  "ts-loader": "^8.0.14",
70
70
  "ts-node": "^10.9.1",