@epilot/blueprint-manifest-client 2.6.9 → 2.7.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-runtime.json +16 -0
- package/dist/openapi.d.ts +66 -0
- package/dist/openapi.json +81 -0
- package/package.json +1 -1
package/dist/definition.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={914:function(e,t,s){var
|
|
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
|
@@ -568,6 +568,20 @@ declare namespace Components {
|
|
|
568
568
|
changes?: PlanChanges;
|
|
569
569
|
}
|
|
570
570
|
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" | "custom_variable" | "coupon";
|
|
571
|
+
export interface ResourceReplacement {
|
|
572
|
+
/**
|
|
573
|
+
* Original resource ID to be replaced
|
|
574
|
+
*/
|
|
575
|
+
originalAddress: string;
|
|
576
|
+
/**
|
|
577
|
+
* ID of the resource that will replace the original
|
|
578
|
+
*/
|
|
579
|
+
replacementId: string;
|
|
580
|
+
/**
|
|
581
|
+
* Name of the resource that will replace the original
|
|
582
|
+
*/
|
|
583
|
+
replacementName?: string;
|
|
584
|
+
}
|
|
571
585
|
export interface RootResourceNode {
|
|
572
586
|
/**
|
|
573
587
|
* ID of the resource
|
|
@@ -672,6 +686,10 @@ declare namespace Paths {
|
|
|
672
686
|
* List of resources to ignore changes for
|
|
673
687
|
*/
|
|
674
688
|
resourcesToIgnore?: string[];
|
|
689
|
+
/**
|
|
690
|
+
* List of resource replacements to apply during import
|
|
691
|
+
*/
|
|
692
|
+
resourceReplacements?: Components.Schemas.ResourceReplacement[];
|
|
675
693
|
}
|
|
676
694
|
namespace Responses {
|
|
677
695
|
export interface $200 {
|
|
@@ -796,6 +814,10 @@ declare namespace Paths {
|
|
|
796
814
|
* List of resources to ignore changes for
|
|
797
815
|
*/
|
|
798
816
|
resourcesToIgnore?: string[];
|
|
817
|
+
/**
|
|
818
|
+
* List of resource replacements to apply during import
|
|
819
|
+
*/
|
|
820
|
+
resourceReplacements?: Components.Schemas.ResourceReplacement[];
|
|
799
821
|
} | {
|
|
800
822
|
/**
|
|
801
823
|
* Manifest s3 key uploaded via `uploadManifest`
|
|
@@ -815,6 +837,10 @@ declare namespace Paths {
|
|
|
815
837
|
* List of resources to ignore changes for
|
|
816
838
|
*/
|
|
817
839
|
resourcesToIgnore?: string[];
|
|
840
|
+
/**
|
|
841
|
+
* List of resource replacements to apply during import
|
|
842
|
+
*/
|
|
843
|
+
resourceReplacements?: Components.Schemas.ResourceReplacement[];
|
|
818
844
|
};
|
|
819
845
|
namespace Responses {
|
|
820
846
|
export interface $200 {
|
|
@@ -926,6 +952,23 @@ declare namespace Paths {
|
|
|
926
952
|
}
|
|
927
953
|
}
|
|
928
954
|
}
|
|
955
|
+
namespace UpdateManifest {
|
|
956
|
+
namespace Parameters {
|
|
957
|
+
export type ManifestId = /**
|
|
958
|
+
* ID of an imported / installed manifest
|
|
959
|
+
* example:
|
|
960
|
+
* c2d6cac8-bdd5-4ea2-8a6c-1cbdbe77b341
|
|
961
|
+
*/
|
|
962
|
+
Components.Schemas.ManifestID;
|
|
963
|
+
}
|
|
964
|
+
export interface PathParameters {
|
|
965
|
+
manifest_id: Parameters.ManifestId;
|
|
966
|
+
}
|
|
967
|
+
export type RequestBody = Components.Schemas.Manifest;
|
|
968
|
+
namespace Responses {
|
|
969
|
+
export type $200 = Components.Schemas.Manifest;
|
|
970
|
+
}
|
|
971
|
+
}
|
|
929
972
|
namespace UploadManifest {
|
|
930
973
|
export type RequestBody = Components.Schemas.UploadFilePayload;
|
|
931
974
|
namespace Responses {
|
|
@@ -1029,6 +1072,17 @@ export interface OperationMethods {
|
|
|
1029
1072
|
data?: any,
|
|
1030
1073
|
config?: AxiosRequestConfig
|
|
1031
1074
|
): OperationResponse<Paths.GetManifest.Responses.$200>
|
|
1075
|
+
/**
|
|
1076
|
+
* updateManifest - updateManifest
|
|
1077
|
+
*
|
|
1078
|
+
* Update an installed manifest
|
|
1079
|
+
*
|
|
1080
|
+
*/
|
|
1081
|
+
'updateManifest'(
|
|
1082
|
+
parameters?: Parameters<Paths.UpdateManifest.PathParameters> | null,
|
|
1083
|
+
data?: Paths.UpdateManifest.RequestBody,
|
|
1084
|
+
config?: AxiosRequestConfig
|
|
1085
|
+
): OperationResponse<Paths.UpdateManifest.Responses.$200>
|
|
1032
1086
|
/**
|
|
1033
1087
|
* deleteManifest - deleteManifest
|
|
1034
1088
|
*
|
|
@@ -1147,6 +1201,17 @@ export interface PathsDictionary {
|
|
|
1147
1201
|
data?: any,
|
|
1148
1202
|
config?: AxiosRequestConfig
|
|
1149
1203
|
): OperationResponse<Paths.GetManifest.Responses.$200>
|
|
1204
|
+
/**
|
|
1205
|
+
* updateManifest - updateManifest
|
|
1206
|
+
*
|
|
1207
|
+
* Update an installed manifest
|
|
1208
|
+
*
|
|
1209
|
+
*/
|
|
1210
|
+
'put'(
|
|
1211
|
+
parameters?: Parameters<Paths.UpdateManifest.PathParameters> | null,
|
|
1212
|
+
data?: Paths.UpdateManifest.RequestBody,
|
|
1213
|
+
config?: AxiosRequestConfig
|
|
1214
|
+
): OperationResponse<Paths.UpdateManifest.Responses.$200>
|
|
1150
1215
|
/**
|
|
1151
1216
|
* deleteManifest - deleteManifest
|
|
1152
1217
|
*
|
|
@@ -1185,6 +1250,7 @@ export type ManifestTimestampFields = Components.Schemas.ManifestTimestampFields
|
|
|
1185
1250
|
export type PlanChanges = Components.Schemas.PlanChanges;
|
|
1186
1251
|
export type ResourceNode = Components.Schemas.ResourceNode;
|
|
1187
1252
|
export type ResourceNodeType = Components.Schemas.ResourceNodeType;
|
|
1253
|
+
export type ResourceReplacement = Components.Schemas.ResourceReplacement;
|
|
1188
1254
|
export type RootResourceNode = Components.Schemas.RootResourceNode;
|
|
1189
1255
|
export type S3Reference = Components.Schemas.S3Reference;
|
|
1190
1256
|
export type SelectedResources = Components.Schemas.SelectedResources;
|
package/dist/openapi.json
CHANGED
|
@@ -336,6 +336,13 @@
|
|
|
336
336
|
"type": "string"
|
|
337
337
|
},
|
|
338
338
|
"description": "List of resources to ignore changes for"
|
|
339
|
+
},
|
|
340
|
+
"resourceReplacements": {
|
|
341
|
+
"type": "array",
|
|
342
|
+
"items": {
|
|
343
|
+
"$ref": "#/components/schemas/ResourceReplacement"
|
|
344
|
+
},
|
|
345
|
+
"description": "List of resource replacements to apply during import"
|
|
339
346
|
}
|
|
340
347
|
},
|
|
341
348
|
"required": [
|
|
@@ -377,6 +384,13 @@
|
|
|
377
384
|
"type": "string"
|
|
378
385
|
},
|
|
379
386
|
"description": "List of resources to ignore changes for"
|
|
387
|
+
},
|
|
388
|
+
"resourceReplacements": {
|
|
389
|
+
"type": "array",
|
|
390
|
+
"items": {
|
|
391
|
+
"$ref": "#/components/schemas/ResourceReplacement"
|
|
392
|
+
},
|
|
393
|
+
"description": "List of resource replacements to apply during import"
|
|
380
394
|
}
|
|
381
395
|
},
|
|
382
396
|
"required": [
|
|
@@ -440,6 +454,13 @@
|
|
|
440
454
|
"type": "string"
|
|
441
455
|
},
|
|
442
456
|
"description": "List of resources to ignore changes for"
|
|
457
|
+
},
|
|
458
|
+
"resourceReplacements": {
|
|
459
|
+
"type": "array",
|
|
460
|
+
"items": {
|
|
461
|
+
"$ref": "#/components/schemas/ResourceReplacement"
|
|
462
|
+
},
|
|
463
|
+
"description": "List of resource replacements to apply during import"
|
|
443
464
|
}
|
|
444
465
|
}
|
|
445
466
|
}
|
|
@@ -530,6 +551,45 @@
|
|
|
530
551
|
}
|
|
531
552
|
}
|
|
532
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/Manifest"
|
|
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
|
+
},
|
|
533
593
|
"delete": {
|
|
534
594
|
"operationId": "deleteManifest",
|
|
535
595
|
"summary": "deleteManifest",
|
|
@@ -1176,6 +1236,27 @@
|
|
|
1176
1236
|
"exported_root_resources",
|
|
1177
1237
|
"selected_resources"
|
|
1178
1238
|
]
|
|
1239
|
+
},
|
|
1240
|
+
"ResourceReplacement": {
|
|
1241
|
+
"type": "object",
|
|
1242
|
+
"properties": {
|
|
1243
|
+
"originalAddress": {
|
|
1244
|
+
"type": "string",
|
|
1245
|
+
"description": "Original resource ID to be replaced"
|
|
1246
|
+
},
|
|
1247
|
+
"replacementId": {
|
|
1248
|
+
"type": "string",
|
|
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"
|
|
1254
|
+
}
|
|
1255
|
+
},
|
|
1256
|
+
"required": [
|
|
1257
|
+
"originalAddress",
|
|
1258
|
+
"replacementId"
|
|
1259
|
+
]
|
|
1179
1260
|
}
|
|
1180
1261
|
},
|
|
1181
1262
|
"parameters": {
|