@epilot/blueprint-manifest-client 2.8.7 → 2.8.9

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
@@ -129,6 +129,23 @@ declare namespace Components {
129
129
  * https://blueprint-manifest-prod.s3.eu-central-1.amazonaws.com/ready_imported_resources.json
130
130
  */
131
131
  ready_imported_resources_url?: string;
132
+ /**
133
+ * Information about the manifest that was deployed from, used to update existing deployments instead of always creating new ones
134
+ */
135
+ deployed_from?: {
136
+ /**
137
+ * ID of the organization that deployed the manifest
138
+ */
139
+ source_organization_id?: string;
140
+ /**
141
+ * ID of the manifest that was deployed
142
+ */
143
+ source_manifest_id?: string;
144
+ /**
145
+ * When the deployment was last triggered
146
+ */
147
+ last_triggered_at?: string; // date-time
148
+ };
132
149
  }
133
150
  export interface CommonMarkdownFields {
134
151
  /**
@@ -200,6 +217,10 @@ declare namespace Components {
200
217
  */
201
218
  JobID;
202
219
  job_status?: JobStatus;
220
+ /**
221
+ * The S3 key of the manifest file
222
+ */
223
+ manifest_file_path?: string;
203
224
  message?: string;
204
225
  timestamp?: string; // date-time
205
226
  /**
@@ -327,6 +348,23 @@ declare namespace Components {
327
348
  * https://blueprint-manifest-prod.s3.eu-central-1.amazonaws.com/ready_imported_resources.json
328
349
  */
329
350
  ready_imported_resources_url?: string;
351
+ /**
352
+ * Information about the manifest that was deployed from, used to update existing deployments instead of always creating new ones
353
+ */
354
+ deployed_from?: {
355
+ /**
356
+ * ID of the organization that deployed the manifest
357
+ */
358
+ source_organization_id?: string;
359
+ /**
360
+ * ID of the manifest that was deployed
361
+ */
362
+ source_manifest_id?: string;
363
+ /**
364
+ * When the deployment was last triggered
365
+ */
366
+ last_triggered_at?: string; // date-time
367
+ };
330
368
  }
331
369
  /**
332
370
  * ID of an import or export job (state machine)
@@ -417,6 +455,23 @@ declare namespace Components {
417
455
  * https://blueprint-manifest-prod.s3.eu-central-1.amazonaws.com/ready_imported_resources.json
418
456
  */
419
457
  ready_imported_resources_url?: string;
458
+ /**
459
+ * Information about the manifest that was deployed from, used to update existing deployments instead of always creating new ones
460
+ */
461
+ deployed_from?: {
462
+ /**
463
+ * ID of the organization that deployed the manifest
464
+ */
465
+ source_organization_id?: string;
466
+ /**
467
+ * ID of the manifest that was deployed
468
+ */
469
+ source_manifest_id?: string;
470
+ /**
471
+ * When the deployment was last triggered
472
+ */
473
+ last_triggered_at?: string; // date-time
474
+ };
420
475
  /**
421
476
  * Markdown content part of a manifest file
422
477
  */
@@ -536,6 +591,23 @@ declare namespace Components {
536
591
  * https://blueprint-manifest-prod.s3.eu-central-1.amazonaws.com/ready_imported_resources.json
537
592
  */
538
593
  ready_imported_resources_url?: string;
594
+ /**
595
+ * Information about the manifest that was deployed from, used to update existing deployments instead of always creating new ones
596
+ */
597
+ deployed_from?: {
598
+ /**
599
+ * ID of the organization that deployed the manifest
600
+ */
601
+ source_organization_id?: string;
602
+ /**
603
+ * ID of the manifest that was deployed
604
+ */
605
+ source_manifest_id?: string;
606
+ /**
607
+ * When the deployment was last triggered
608
+ */
609
+ last_triggered_at?: string; // date-time
610
+ };
539
611
  /**
540
612
  * When the manifest was first installed (applied)
541
613
  */
@@ -561,7 +633,7 @@ declare namespace Components {
561
633
  /**
562
634
  * Name of the source blueprint
563
635
  */
564
- source_blueprint_name: string;
636
+ source_blueprint_name?: string;
565
637
  /**
566
638
  * Markdown content of the manifest
567
639
  */
@@ -606,7 +678,7 @@ declare namespace Components {
606
678
  /**
607
679
  * Type of the resource
608
680
  */
609
- 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" | "usergroup" | "saved_view";
681
+ 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" | "usergroup" | "saved_view" | "app";
610
682
  export interface ResourceReplacement {
611
683
  /**
612
684
  * Original resource ID to be replaced
@@ -715,12 +787,6 @@ declare namespace Paths {
715
787
  job_id: Parameters.JobId;
716
788
  }
717
789
  export interface RequestBody {
718
- /**
719
- * This is no longer used
720
- * example:
721
- * example.tf
722
- */
723
- manifestFilePath?: string | null;
724
790
  /**
725
791
  * List of resources to ignore changes for
726
792
  */
@@ -882,6 +948,10 @@ declare namespace Paths {
882
948
  * List of resource replacements to apply during import
883
949
  */
884
950
  resourceReplacements?: Components.Schemas.ResourceReplacement[];
951
+ deployedFrom?: {
952
+ sourceOrganizationId: string;
953
+ sourceManifestId: string;
954
+ };
885
955
  } | {
886
956
  /**
887
957
  * Manifest s3 key uploaded via `uploadManifest`
@@ -905,6 +975,10 @@ declare namespace Paths {
905
975
  * List of resource replacements to apply during import
906
976
  */
907
977
  resourceReplacements?: Components.Schemas.ResourceReplacement[];
978
+ deployedFrom?: {
979
+ sourceOrganizationId: string;
980
+ sourceManifestId: string;
981
+ };
908
982
  };
909
983
  namespace Responses {
910
984
  export interface $200 {
@@ -954,6 +1028,17 @@ declare namespace Paths {
954
1028
  * journey_HouseConnectionJourney
955
1029
  */
956
1030
  resourceName: string;
1031
+ metadata?: {
1032
+ markdown?: {
1033
+ manifest?: string;
1034
+ preinstall?: string;
1035
+ postinstall?: string;
1036
+ };
1037
+ docs_link?: string;
1038
+ source_blueprint_name?: string;
1039
+ source_blueprint_slug?: string;
1040
+ source_blueprint_version?: string;
1041
+ };
957
1042
  /**
958
1043
  * Temporary flag to indicate if multiple resources are being exported
959
1044
  */
package/dist/openapi.json CHANGED
@@ -200,6 +200,37 @@
200
200
  "type": "string",
201
201
  "example": "journey_HouseConnectionJourney"
202
202
  },
203
+ "metadata": {
204
+ "type": "object",
205
+ "properties": {
206
+ "markdown": {
207
+ "type": "object",
208
+ "properties": {
209
+ "manifest": {
210
+ "type": "string"
211
+ },
212
+ "preinstall": {
213
+ "type": "string"
214
+ },
215
+ "postinstall": {
216
+ "type": "string"
217
+ }
218
+ }
219
+ },
220
+ "docs_link": {
221
+ "type": "string"
222
+ },
223
+ "source_blueprint_name": {
224
+ "type": "string"
225
+ },
226
+ "source_blueprint_slug": {
227
+ "type": "string"
228
+ },
229
+ "source_blueprint_version": {
230
+ "type": "string"
231
+ }
232
+ }
233
+ },
203
234
  "isExportingMultipleResources": {
204
235
  "type": "boolean",
205
236
  "description": "Temporary flag to indicate if multiple resources are being exported"
@@ -343,6 +374,21 @@
343
374
  "$ref": "#/components/schemas/ResourceReplacement"
344
375
  },
345
376
  "description": "List of resource replacements to apply during import"
377
+ },
378
+ "deployedFrom": {
379
+ "type": "object",
380
+ "properties": {
381
+ "sourceOrganizationId": {
382
+ "type": "string"
383
+ },
384
+ "sourceManifestId": {
385
+ "type": "string"
386
+ }
387
+ },
388
+ "required": [
389
+ "sourceOrganizationId",
390
+ "sourceManifestId"
391
+ ]
346
392
  }
347
393
  },
348
394
  "required": [
@@ -391,6 +437,21 @@
391
437
  "$ref": "#/components/schemas/ResourceReplacement"
392
438
  },
393
439
  "description": "List of resource replacements to apply during import"
440
+ },
441
+ "deployedFrom": {
442
+ "type": "object",
443
+ "properties": {
444
+ "sourceOrganizationId": {
445
+ "type": "string"
446
+ },
447
+ "sourceManifestId": {
448
+ "type": "string"
449
+ }
450
+ },
451
+ "required": [
452
+ "sourceOrganizationId",
453
+ "sourceManifestId"
454
+ ]
394
455
  }
395
456
  },
396
457
  "required": [
@@ -441,13 +502,6 @@
441
502
  "schema": {
442
503
  "type": "object",
443
504
  "properties": {
444
- "manifestFilePath": {
445
- "description": "This is no longer used",
446
- "type": "string",
447
- "example": "example.tf",
448
- "deprecated": true,
449
- "nullable": true
450
- },
451
505
  "resourcesToIgnore": {
452
506
  "type": "array",
453
507
  "items": {
@@ -727,7 +781,8 @@
727
781
  "custom_variable",
728
782
  "coupon",
729
783
  "usergroup",
730
- "saved_view"
784
+ "saved_view",
785
+ "app"
731
786
  ]
732
787
  },
733
788
  "PlanChanges": {
@@ -877,6 +932,10 @@
877
932
  "job_status": {
878
933
  "$ref": "#/components/schemas/JobStatus"
879
934
  },
935
+ "manifest_file_path": {
936
+ "type": "string",
937
+ "description": "The S3 key of the manifest file"
938
+ },
880
939
  "message": {
881
940
  "type": "string"
882
941
  },
@@ -1050,6 +1109,25 @@
1050
1109
  "type": "string",
1051
1110
  "description": "All the resources that were marked as ready by the user",
1052
1111
  "example": "https://blueprint-manifest-prod.s3.eu-central-1.amazonaws.com/ready_imported_resources.json"
1112
+ },
1113
+ "deployed_from": {
1114
+ "type": "object",
1115
+ "properties": {
1116
+ "source_organization_id": {
1117
+ "type": "string",
1118
+ "description": "ID of the organization that deployed the manifest"
1119
+ },
1120
+ "source_manifest_id": {
1121
+ "type": "string",
1122
+ "description": "ID of the manifest that was deployed"
1123
+ },
1124
+ "last_triggered_at": {
1125
+ "type": "string",
1126
+ "format": "date-time",
1127
+ "description": "When the deployment was last triggered"
1128
+ }
1129
+ },
1130
+ "description": "Information about the manifest that was deployed from, used to update existing deployments instead of always creating new ones"
1053
1131
  }
1054
1132
  }
1055
1133
  },
@@ -1290,10 +1368,7 @@
1290
1368
  },
1291
1369
  "description": "Array of ids of resources selected to be ready by the user"
1292
1370
  }
1293
- },
1294
- "required": [
1295
- "source_blueprint_name"
1296
- ]
1371
+ }
1297
1372
  }
1298
1373
  },
1299
1374
  "parameters": {
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@epilot/blueprint-manifest-client",
3
- "version": "2.8.7",
3
+ "version": "2.8.9",
4
4
  "description": "Client for epilot Terraform Blueprint Manifest API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "author": "epilot GmbH",
8
8
  "license": "MIT",
9
+ "private": false,
9
10
  "repository": {
10
11
  "type": "git",
11
12
  "url": "git+https://github.com/epilot-dev/sdk-js.git",
@@ -24,7 +25,7 @@
24
25
  "test": "jest",
25
26
  "bundle-definition": "webpack",
26
27
  "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",
28
+ "openapi:local": "node ../../scripts/update-openapi.js ../../../blueprints-api/lambda/TerraformHandlerFunction/openapi.yml",
28
29
  "typegen": "openapi typegen src/openapi.json --client -b '/* eslint-disable */' > src/openapi.d.ts",
29
30
  "build": "tsc && npm run build:patch && npm run bundle-definition",
30
31
  "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",