@epilot/blueprint-manifest-client 2.9.2 → 2.9.4

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
@@ -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
@@ -897,58 +897,15 @@ declare namespace Paths {
897
897
  }
898
898
  namespace CreateExport {
899
899
  export interface RequestBody {
900
- resourceType: /* Type of the resource */ Components.Schemas.ResourceNodeType;
901
- resourceIds: [
902
- string,
903
- string?,
904
- string?,
905
- string?,
906
- string?,
907
- string?,
908
- string?,
909
- string?,
910
- string?,
911
- string?,
912
- string?,
913
- string?,
914
- string?,
915
- string?,
916
- string?,
917
- string?,
918
- string?,
919
- string?,
920
- string?,
921
- string?,
922
- string?,
923
- string?,
924
- string?,
925
- string?,
926
- string?,
927
- string?,
928
- string?,
929
- string?,
930
- string?,
931
- string?,
932
- string?,
933
- string?,
934
- string?,
935
- string?,
936
- string?,
937
- string?,
938
- string?,
939
- string?,
940
- string?,
941
- string?,
942
- string?,
943
- string?,
944
- string?,
945
- string?,
946
- string?,
947
- string?,
948
- string?,
949
- string?,
950
- string?,
951
- string?
900
+ resources: [
901
+ {
902
+ type: /* Type of the resource */ Components.Schemas.ResourceNodeType;
903
+ id: string;
904
+ },
905
+ ...{
906
+ type: /* Type of the resource */ Components.Schemas.ResourceNodeType;
907
+ id: string;
908
+ }[]
952
909
  ];
953
910
  jobId?: /**
954
911
  * ID of an import or export job (state machine)
package/dist/openapi.json CHANGED
@@ -78,16 +78,24 @@
78
78
  "schema": {
79
79
  "type": "object",
80
80
  "properties": {
81
- "resourceType": {
82
- "$ref": "#/components/schemas/ResourceNodeType"
83
- },
84
- "resourceIds": {
81
+ "resources": {
85
82
  "type": "array",
86
83
  "items": {
87
- "type": "string"
84
+ "type": "object",
85
+ "properties": {
86
+ "type": {
87
+ "$ref": "#/components/schemas/ResourceNodeType"
88
+ },
89
+ "id": {
90
+ "type": "string"
91
+ }
92
+ },
93
+ "required": [
94
+ "type",
95
+ "id"
96
+ ]
88
97
  },
89
- "minItems": 1,
90
- "maxItems": 50
98
+ "minItems": 1
91
99
  },
92
100
  "jobId": {
93
101
  "$ref": "#/components/schemas/JobID"
@@ -106,8 +114,7 @@
106
114
  }
107
115
  },
108
116
  "required": [
109
- "resourceType",
110
- "resourceIds"
117
+ "resources"
111
118
  ]
112
119
  }
113
120
  }
@@ -761,7 +768,8 @@
761
768
  "coupon",
762
769
  "usergroup",
763
770
  "saved_view",
764
- "app"
771
+ "app",
772
+ "role"
765
773
  ]
766
774
  },
767
775
  "PlanChanges": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/blueprint-manifest-client",
3
- "version": "2.9.2",
3
+ "version": "2.9.4",
4
4
  "description": "Client for epilot Terraform Blueprint Manifest API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,7 +25,7 @@
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 ../../../blueprints-api/lambda/TerraformHandlerFunction/openapi.yml",
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",