@epilot/blueprint-manifest-client 2.9.3 → 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.
- package/dist/definition.js +1 -1
- package/dist/openapi.d.ts +19 -1
- package/dist/openapi.json +26 -1
- package/package.json +5 -5
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={
|
|
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
|
@@ -766,7 +766,7 @@ declare namespace Components {
|
|
|
766
766
|
/**
|
|
767
767
|
* Type of the resource
|
|
768
768
|
*/
|
|
769
|
-
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" | "dashboard" | "custom_variable" | "coupon" | "usergroup" | "saved_view" | "app";
|
|
769
|
+
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" | "dashboard" | "custom_variable" | "coupon" | "usergroup" | "saved_view" | "app" | "role";
|
|
770
770
|
export interface ResourceReplacement {
|
|
771
771
|
/**
|
|
772
772
|
* Original resource ID to be replaced
|
|
@@ -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
|
{
|
|
@@ -768,7 +788,8 @@
|
|
|
768
788
|
"coupon",
|
|
769
789
|
"usergroup",
|
|
770
790
|
"saved_view",
|
|
771
|
-
"app"
|
|
791
|
+
"app",
|
|
792
|
+
"role"
|
|
772
793
|
]
|
|
773
794
|
},
|
|
774
795
|
"PlanChanges": {
|
|
@@ -1327,6 +1348,10 @@
|
|
|
1327
1348
|
},
|
|
1328
1349
|
"type": {
|
|
1329
1350
|
"$ref": "#/components/schemas/ResourceNodeType"
|
|
1351
|
+
},
|
|
1352
|
+
"address": {
|
|
1353
|
+
"type": "string",
|
|
1354
|
+
"description": "Terraform address of the resource"
|
|
1330
1355
|
}
|
|
1331
1356
|
},
|
|
1332
1357
|
"required": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/blueprint-manifest-client",
|
|
3
|
-
"version": "2.
|
|
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",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"test": "jest",
|
|
26
26
|
"bundle-definition": "webpack",
|
|
27
27
|
"openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/blueprint-manifest.yaml",
|
|
28
|
-
"openapi:local": "node ../../scripts/update-openapi.js ../../../
|
|
28
|
+
"openapi:local": "node ../../scripts/update-openapi.js ../../../blueprint-manifest-api/lambda/TerraformHandlerFunction/openapi.yml",
|
|
29
29
|
"typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
|
|
30
30
|
"build": "tsc && npm run build:patch && npm run bundle-definition",
|
|
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": "
|
|
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.
|
|
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.
|
|
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",
|