@epilot/blueprint-manifest-client 2.5.5 → 2.5.6

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/openapi.d.ts CHANGED
@@ -48,6 +48,7 @@ declare namespace Components {
48
48
  token_id?: string;
49
49
  }
50
50
  export interface CommonImportFields {
51
+ source_type?: ManifestSource;
51
52
  /**
52
53
  * An array of tree-like JSON objects or a singular tree-like JSON object representing the resources to import
53
54
  */
@@ -196,6 +197,7 @@ declare namespace Components {
196
197
  */
197
198
  is_verified?: boolean;
198
199
  errors?: FormattedError[];
200
+ source_type?: ManifestSource;
199
201
  /**
200
202
  * An array of tree-like JSON objects or a singular tree-like JSON object representing the resources to import
201
203
  */
@@ -339,6 +341,7 @@ declare namespace Components {
339
341
  */
340
342
  postinstall?: string;
341
343
  };
344
+ source_type?: ManifestSource;
342
345
  /**
343
346
  * An array of tree-like JSON objects or a singular tree-like JSON object representing the resources to import
344
347
  */
@@ -409,6 +412,7 @@ declare namespace Components {
409
412
  */
410
413
  updated_at?: string; // date-time
411
414
  }
415
+ export type ManifestSource = "file" | "marketplace" | "sandbox";
412
416
  export interface ManifestTimestampFields {
413
417
  /**
414
418
  * When the manifest was first installed (applied)
@@ -629,6 +633,10 @@ declare namespace Paths {
629
633
  * c2d6cac8-bdd5-4ea2-8a6c-1cbdbe77b341
630
634
  */
631
635
  manifest_id?: string;
636
+ /**
637
+ * Source of the manifest
638
+ */
639
+ source?: "file" | "marketplace" | "sandbox";
632
640
  } | {
633
641
  /**
634
642
  * Manifest s3 key uploaded via `uploadManifest`
@@ -640,6 +648,10 @@ declare namespace Paths {
640
648
  * c2d6cac8-bdd5-4ea2-8a6c-1cbdbe77b341
641
649
  */
642
650
  manifest_id?: string;
651
+ /**
652
+ * Source of the manifest
653
+ */
654
+ source?: "file" | "marketplace" | "sandbox";
643
655
  };
644
656
  namespace Responses {
645
657
  export interface $200 {
@@ -1002,6 +1014,7 @@ export type JobStatus = Components.Schemas.JobStatus;
1002
1014
  export type Manifest = Components.Schemas.Manifest;
1003
1015
  export type ManifestID = Components.Schemas.ManifestID;
1004
1016
  export type ManifestItem = Components.Schemas.ManifestItem;
1017
+ export type ManifestSource = Components.Schemas.ManifestSource;
1005
1018
  export type ManifestTimestampFields = Components.Schemas.ManifestTimestampFields;
1006
1019
  export type PlanChanges = Components.Schemas.PlanChanges;
1007
1020
  export type ResourceNode = Components.Schemas.ResourceNode;
package/dist/openapi.json CHANGED
@@ -262,6 +262,16 @@
262
262
  "$ref": "#/components/schemas/ManifestID"
263
263
  }
264
264
  ]
265
+ },
266
+ "source": {
267
+ "allOf": [
268
+ {
269
+ "description": "Source of the manifest"
270
+ },
271
+ {
272
+ "$ref": "#/components/schemas/ManifestSource"
273
+ }
274
+ ]
265
275
  }
266
276
  },
267
277
  "required": [
@@ -286,6 +296,16 @@
286
296
  "$ref": "#/components/schemas/ManifestID"
287
297
  }
288
298
  ]
299
+ },
300
+ "source": {
301
+ "allOf": [
302
+ {
303
+ "description": "Source of the manifest"
304
+ },
305
+ {
306
+ "$ref": "#/components/schemas/ManifestSource"
307
+ }
308
+ ]
289
309
  }
290
310
  },
291
311
  "required": [
@@ -476,6 +496,14 @@
476
496
  "description": "ID of an import or export job (state machine)",
477
497
  "example": "4854bb2a-94f9-424d-a968-3fb17fb0bf89"
478
498
  },
499
+ "ManifestSource": {
500
+ "type": "string",
501
+ "enum": [
502
+ "file",
503
+ "marketplace",
504
+ "sandbox"
505
+ ]
506
+ },
479
507
  "Manifest": {
480
508
  "allOf": [
481
509
  {
@@ -848,6 +876,9 @@
848
876
  "CommonImportFields": {
849
877
  "type": "object",
850
878
  "properties": {
879
+ "source_type": {
880
+ "$ref": "#/components/schemas/ManifestSource"
881
+ },
851
882
  "imported_resources": {
852
883
  "description": "An array of tree-like JSON objects or a singular tree-like JSON object representing the resources to import",
853
884
  "oneOf": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/blueprint-manifest-client",
3
- "version": "2.5.5",
3
+ "version": "2.5.6",
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",