@epilot/blueprint-manifest-client 3.0.0-beta.2 → 3.0.1-beta.3
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-runtime.json +9 -14
- package/dist/openapi.d.ts +37 -16
- package/dist/openapi.json +34 -25
- package/package.json +15 -14
- package/LICENSE +0 -21
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={
|
|
1
|
+
(()=>{"use strict";var e={914:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(r(240));t.default=s.default},240:e=>{e.exports=JSON.parse('{"openapi":"3.1.0","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":{}}},"/v2/blueprint-manifest/blueprints":{"get":{"operationId":"listBlueprints","responses":{}},"post":{"operationId":"createBlueprint","requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/blueprint:install":{"post":{"operationId":"installBlueprint","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}":{"get":{"operationId":"getBlueprint","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"responses":{}},"put":{"operationId":"updateBlueprint","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteBlueprint","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}:export":{"post":{"operationId":"exportBlueprint","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}/resources":{"post":{"operationId":"addBlueprintResource","parameters":[{"in":"path","required":true,"name":"blueprint_id"},{"in":"query","name":"add_dependencies"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}/resources:syncDependencies":{"post":{"operationId":"syncDependencies","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/bulk":{"post":{"operationId":"bulkAddBlueprintResources","parameters":[{"in":"path","required":true,"name":"blueprint_id"},{"in":"query","name":"add_dependencies"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"put":{"operationId":"bulkUpdateBlueprintResources","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"bulkDeleteBlueprintResources","parameters":[{"in":"path","required":true,"name":"blueprint_id"}],"requestBody":{"content":{"application/json":{}}},"responses":{}}},"/v2/blueprint-manifest/blueprints/{blueprint_id}/resources/{resource_id}":{"put":{"operationId":"updateBlueprintResource","parameters":[{"in":"path","required":true,"name":"blueprint_id"},{"in":"path","required":true,"name":"resource_id"}],"requestBody":{"content":{"application/json":{}}},"responses":{}},"delete":{"operationId":"deleteBlueprintResource","parameters":[{"in":"path","required":true,"name":"blueprint_id"},{"in":"path","required":true,"name":"resource_id"}],"responses":{}}},"/v2/blueprint-manifest/jobs":{"get":{"operationId":"listBlueprintJobs","responses":{}}},"/v2/blueprint-manifest/jobs/{job_id}":{"get":{"operationId":"getBlueprintJob","parameters":[{"in":"path","required":true,"name":"job_id"}],"responses":{}}},"/v2/blueprint-manifest/jobs/{job_id}:continue":{"post":{"operationId":"continueInstallationJob","parameters":[{"in":"path","required":true,"name":"job_id"}],"responses":{}}},"/v2/blueprint-manifest/jobs/{job_id}:cancel":{"post":{"operationId":"cancelBlueprintJob","parameters":[{"in":"path","required":true,"name":"job_id"}],"responses":{}}}},"components":{"parameters":{"JobID":{"name":"job_id","in":"path","required":true}}}}')}},t={},r=function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,r),i.exports}(914),n=exports;for(var s in r)n[s]=r[s];r.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();
|
|
@@ -373,21 +373,16 @@
|
|
|
373
373
|
}
|
|
374
374
|
},
|
|
375
375
|
"/v2/blueprint-manifest/jobs/{job_id}:cancel": {
|
|
376
|
-
"
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
],
|
|
384
|
-
"responses": {
|
|
385
|
-
"200": {
|
|
386
|
-
"description": "Blueprint job cancelled",
|
|
387
|
-
"content": {
|
|
388
|
-
"application/json": {}
|
|
376
|
+
"post": {
|
|
377
|
+
"operationId": "cancelBlueprintJob",
|
|
378
|
+
"parameters": [
|
|
379
|
+
{
|
|
380
|
+
"in": "path",
|
|
381
|
+
"required": true,
|
|
382
|
+
"name": "job_id"
|
|
389
383
|
}
|
|
390
|
-
|
|
384
|
+
],
|
|
385
|
+
"responses": {}
|
|
391
386
|
}
|
|
392
387
|
}
|
|
393
388
|
},
|
package/dist/openapi.d.ts
CHANGED
|
@@ -1132,7 +1132,7 @@ declare namespace Components {
|
|
|
1132
1132
|
/**
|
|
1133
1133
|
* Type of the resource
|
|
1134
1134
|
*/
|
|
1135
|
-
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";
|
|
1135
|
+
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" | "portal_config";
|
|
1136
1136
|
export interface ResourceReplacement {
|
|
1137
1137
|
/**
|
|
1138
1138
|
* Original resource ID to be replaced
|
|
@@ -1360,6 +1360,22 @@ declare namespace Paths {
|
|
|
1360
1360
|
}
|
|
1361
1361
|
}
|
|
1362
1362
|
}
|
|
1363
|
+
namespace CancelBlueprintJob {
|
|
1364
|
+
namespace Parameters {
|
|
1365
|
+
export type JobId = /**
|
|
1366
|
+
* ID of a job
|
|
1367
|
+
* example:
|
|
1368
|
+
* c2d6cac8-bdd5-4ea2-8a6c-1cbdbe77b341
|
|
1369
|
+
*/
|
|
1370
|
+
Components.Schemas.BlueprintJobID;
|
|
1371
|
+
}
|
|
1372
|
+
export interface PathParameters {
|
|
1373
|
+
job_id: Parameters.JobId;
|
|
1374
|
+
}
|
|
1375
|
+
namespace Responses {
|
|
1376
|
+
export type $200 = Components.Schemas.BlueprintJob;
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1363
1379
|
namespace ContinueInstallationJob {
|
|
1364
1380
|
namespace Parameters {
|
|
1365
1381
|
export type JobId = /**
|
|
@@ -1858,22 +1874,8 @@ declare namespace Paths {
|
|
|
1858
1874
|
}
|
|
1859
1875
|
}
|
|
1860
1876
|
}
|
|
1861
|
-
namespace V2BlueprintManifestJobs$JobIdCancel {
|
|
1862
|
-
namespace Parameters {
|
|
1863
|
-
export type JobId = /**
|
|
1864
|
-
* ID of a job
|
|
1865
|
-
* example:
|
|
1866
|
-
* c2d6cac8-bdd5-4ea2-8a6c-1cbdbe77b341
|
|
1867
|
-
*/
|
|
1868
|
-
Components.Schemas.BlueprintJobID;
|
|
1869
|
-
}
|
|
1870
|
-
export interface PathParameters {
|
|
1871
|
-
job_id: Parameters.JobId;
|
|
1872
|
-
}
|
|
1873
|
-
}
|
|
1874
1877
|
}
|
|
1875
1878
|
|
|
1876
|
-
|
|
1877
1879
|
export interface OperationMethods {
|
|
1878
1880
|
/**
|
|
1879
1881
|
* getJob - getJob
|
|
@@ -2158,6 +2160,16 @@ export interface OperationMethods {
|
|
|
2158
2160
|
data?: any,
|
|
2159
2161
|
config?: AxiosRequestConfig
|
|
2160
2162
|
): OperationResponse<Paths.ContinueInstallationJob.Responses.$200>
|
|
2163
|
+
/**
|
|
2164
|
+
* cancelBlueprintJob - Cancel Blueprint Job
|
|
2165
|
+
*
|
|
2166
|
+
* Cancel a blueprint job if it is still running.
|
|
2167
|
+
*/
|
|
2168
|
+
'cancelBlueprintJob'(
|
|
2169
|
+
parameters?: Parameters<Paths.CancelBlueprintJob.PathParameters> | null,
|
|
2170
|
+
data?: any,
|
|
2171
|
+
config?: AxiosRequestConfig
|
|
2172
|
+
): OperationResponse<Paths.CancelBlueprintJob.Responses.$200>
|
|
2161
2173
|
}
|
|
2162
2174
|
|
|
2163
2175
|
export interface PathsDictionary {
|
|
@@ -2483,12 +2495,21 @@ export interface PathsDictionary {
|
|
|
2483
2495
|
): OperationResponse<Paths.ContinueInstallationJob.Responses.$200>
|
|
2484
2496
|
}
|
|
2485
2497
|
['/v2/blueprint-manifest/jobs/{job_id}:cancel']: {
|
|
2498
|
+
/**
|
|
2499
|
+
* cancelBlueprintJob - Cancel Blueprint Job
|
|
2500
|
+
*
|
|
2501
|
+
* Cancel a blueprint job if it is still running.
|
|
2502
|
+
*/
|
|
2503
|
+
'post'(
|
|
2504
|
+
parameters?: Parameters<Paths.CancelBlueprintJob.PathParameters> | null,
|
|
2505
|
+
data?: any,
|
|
2506
|
+
config?: AxiosRequestConfig
|
|
2507
|
+
): OperationResponse<Paths.CancelBlueprintJob.Responses.$200>
|
|
2486
2508
|
}
|
|
2487
2509
|
}
|
|
2488
2510
|
|
|
2489
2511
|
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
2490
2512
|
|
|
2491
|
-
|
|
2492
2513
|
export type AppBlueprint = Components.Schemas.AppBlueprint;
|
|
2493
2514
|
export type Blueprint = Components.Schemas.Blueprint;
|
|
2494
2515
|
export type BlueprintExportJob = Components.Schemas.BlueprintExportJob;
|
package/dist/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.1.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Blueprint Manifest API",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "1.0.0",
|
|
6
6
|
"description": "Service to create and install Blueprint Manifest files"
|
|
7
7
|
},
|
|
8
8
|
"tags": [
|
|
@@ -756,6 +756,9 @@
|
|
|
756
756
|
"operationId": "installBlueprint",
|
|
757
757
|
"summary": "installBlueprint",
|
|
758
758
|
"description": "Kick off a new blueprint installation job. Returns 202 Accepted with Location header pointing to the job resource\n",
|
|
759
|
+
"tags": [
|
|
760
|
+
"Blueprints"
|
|
761
|
+
],
|
|
759
762
|
"requestBody": {
|
|
760
763
|
"required": true,
|
|
761
764
|
"content": {
|
|
@@ -1428,6 +1431,9 @@
|
|
|
1428
1431
|
"operationId": "getBlueprintJob",
|
|
1429
1432
|
"summary": "Get Job",
|
|
1430
1433
|
"description": "Poll current state of a job.",
|
|
1434
|
+
"tags": [
|
|
1435
|
+
"Jobs"
|
|
1436
|
+
],
|
|
1431
1437
|
"parameters": [
|
|
1432
1438
|
{
|
|
1433
1439
|
"in": "path",
|
|
@@ -1458,7 +1464,7 @@
|
|
|
1458
1464
|
"summary": "Continue Installation Job",
|
|
1459
1465
|
"description": "Continue an installation job if it is waiting for user action.",
|
|
1460
1466
|
"tags": [
|
|
1461
|
-
"
|
|
1467
|
+
"Jobs"
|
|
1462
1468
|
],
|
|
1463
1469
|
"parameters": [
|
|
1464
1470
|
{
|
|
@@ -1485,29 +1491,31 @@
|
|
|
1485
1491
|
}
|
|
1486
1492
|
},
|
|
1487
1493
|
"/v2/blueprint-manifest/jobs/{job_id}:cancel": {
|
|
1488
|
-
"
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
"
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
"
|
|
1494
|
+
"post": {
|
|
1495
|
+
"operationId": "cancelBlueprintJob",
|
|
1496
|
+
"summary": "Cancel Blueprint Job",
|
|
1497
|
+
"description": "Cancel a blueprint job if it is still running.",
|
|
1498
|
+
"tags": [
|
|
1499
|
+
"Jobs"
|
|
1500
|
+
],
|
|
1501
|
+
"parameters": [
|
|
1502
|
+
{
|
|
1503
|
+
"in": "path",
|
|
1504
|
+
"required": true,
|
|
1505
|
+
"name": "job_id",
|
|
1506
|
+
"schema": {
|
|
1507
|
+
"$ref": "#/components/schemas/BlueprintJobID"
|
|
1508
|
+
}
|
|
1501
1509
|
}
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1510
|
+
],
|
|
1511
|
+
"responses": {
|
|
1512
|
+
"200": {
|
|
1513
|
+
"description": "Blueprint job cancelled",
|
|
1514
|
+
"content": {
|
|
1515
|
+
"application/json": {
|
|
1516
|
+
"schema": {
|
|
1517
|
+
"$ref": "#/components/schemas/BlueprintJob"
|
|
1518
|
+
}
|
|
1511
1519
|
}
|
|
1512
1520
|
}
|
|
1513
1521
|
}
|
|
@@ -2048,7 +2056,8 @@
|
|
|
2048
2056
|
"usergroup",
|
|
2049
2057
|
"saved_view",
|
|
2050
2058
|
"app",
|
|
2051
|
-
"role"
|
|
2059
|
+
"role",
|
|
2060
|
+
"portal_config"
|
|
2052
2061
|
]
|
|
2053
2062
|
},
|
|
2054
2063
|
"PlanChanges": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/blueprint-manifest-client",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1-beta.3",
|
|
4
4
|
"description": "Client for epilot Terraform Blueprint Manifest API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -21,6 +21,18 @@
|
|
|
21
21
|
"manifest",
|
|
22
22
|
"terraform"
|
|
23
23
|
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"test": "jest",
|
|
26
|
+
"bundle-definition": "webpack",
|
|
27
|
+
"openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/blueprint-manifest.yaml",
|
|
28
|
+
"openapi:local": "node ../../scripts/update-openapi.js ../../../blueprint-manifest-api/lambda/TerraformHandlerFunction/openapi.yml",
|
|
29
|
+
"typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
|
|
30
|
+
"build": "tsc && npm run build:patch && npm run bundle-definition",
|
|
31
|
+
"build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
|
|
32
|
+
"build:watch": "npm run build && tsc -w",
|
|
33
|
+
"prepublishOnly": "npm run typegen && npm run build",
|
|
34
|
+
"lint": "pnpm exec eslint src"
|
|
35
|
+
},
|
|
24
36
|
"files": [
|
|
25
37
|
"*.js",
|
|
26
38
|
"*.d.ts",
|
|
@@ -60,16 +72,5 @@
|
|
|
60
72
|
"webpack": "^5.18.0",
|
|
61
73
|
"webpack-cli": "^4.4.0"
|
|
62
74
|
},
|
|
63
|
-
"gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
|
|
64
|
-
|
|
65
|
-
"test": "jest",
|
|
66
|
-
"bundle-definition": "webpack",
|
|
67
|
-
"openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/blueprint-manifest.yaml",
|
|
68
|
-
"openapi:local": "node ../../scripts/update-openapi.js ../../../blueprint-manifest-api/lambda/TerraformHandlerFunction/openapi.yml",
|
|
69
|
-
"typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
|
|
70
|
-
"build": "tsc && npm run build:patch && npm run bundle-definition",
|
|
71
|
-
"build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
|
|
72
|
-
"build:watch": "npm run build && tsc -w",
|
|
73
|
-
"lint": "pnpm exec eslint src"
|
|
74
|
-
}
|
|
75
|
-
}
|
|
75
|
+
"gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
|
|
76
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 epilot GmbH
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|