@epilot/app-client 0.5.0 → 0.5.1

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
@@ -193,36 +193,12 @@ declare namespace Components {
193
193
  * c451c26a-cc7a-4c1c-92bf-1c6246cbfe88
194
194
  */
195
195
  app_id: string;
196
- }
197
- export interface BasicCustomActionConfig {
198
- /**
199
- * Name of the custom action
200
- */
201
- name?: string;
202
- /**
203
- * Description of the custom action
204
- */
205
- description?: string;
206
196
  /**
207
- * The ID of the app to fetch configuration from the app API
197
+ * The ID of the component to fetch configuration from the app API
208
198
  * example:
209
- * c451c26a-cc7a-4c1c-92bf-1c6246cbfe88
199
+ * 12345678-1234-1234-1234-123456789012
210
200
  */
211
- app_id: string;
212
- type: "basic";
213
- basic_settings?: {
214
- /**
215
- * URL to call
216
- */
217
- url?: string;
218
- headers?: {
219
- [name: string]: any;
220
- };
221
- /**
222
- * SSM Reference to the auth token to use for the request
223
- */
224
- auth_token_ref?: string;
225
- };
201
+ component_id: string;
226
202
  }
227
203
  /**
228
204
  * How often the subscription is billed
@@ -591,7 +567,7 @@ declare namespace Components {
591
567
  component_type: "CUSTOM_FLOW_ACTION";
592
568
  configuration: CustomFlowConfig;
593
569
  }
594
- export type CustomFlowConfig = BasicCustomActionConfig;
570
+ export type CustomFlowConfig = ExternalIntegrationCustomActionConfig;
595
571
  export interface EnumArg {
596
572
  type?: "enum";
597
573
  /**
@@ -642,6 +618,42 @@ declare namespace Components {
642
618
  }[]
643
619
  ];
644
620
  }
621
+ export interface ExternalIntegrationCustomActionConfig {
622
+ /**
623
+ * Name of the custom action
624
+ */
625
+ name?: string;
626
+ /**
627
+ * Description of the custom action
628
+ */
629
+ description?: string;
630
+ /**
631
+ * The ID of the app to fetch configuration from the app API
632
+ * example:
633
+ * c451c26a-cc7a-4c1c-92bf-1c6246cbfe88
634
+ */
635
+ app_id: string;
636
+ /**
637
+ * The ID of the component to fetch configuration from the app API
638
+ * example:
639
+ * 12345678-1234-1234-1234-123456789012
640
+ */
641
+ component_id: string;
642
+ type: "external_integration";
643
+ external_integration_settings?: {
644
+ /**
645
+ * URL to call
646
+ */
647
+ url?: string;
648
+ headers?: {
649
+ [name: string]: any;
650
+ };
651
+ /**
652
+ * SSM Reference to the auth token to use for the request
653
+ */
654
+ auth_token_ref?: string;
655
+ };
656
+ }
645
657
  /**
646
658
  * Information about the installed app. Has configuration data of the installed version
647
659
  */
@@ -1814,7 +1826,6 @@ export type Author = Components.Schemas.Author;
1814
1826
  export type BaseComponent = Components.Schemas.BaseComponent;
1815
1827
  export type BaseComponentCommon = Components.Schemas.BaseComponentCommon;
1816
1828
  export type BaseCustomActionConfig = Components.Schemas.BaseCustomActionConfig;
1817
- export type BasicCustomActionConfig = Components.Schemas.BasicCustomActionConfig;
1818
1829
  export type BillingFrequency = Components.Schemas.BillingFrequency;
1819
1830
  export type BooleanArg = Components.Schemas.BooleanArg;
1820
1831
  export type CallerIdentity = Components.Schemas.CallerIdentity;
@@ -1825,6 +1836,7 @@ export type ConfigurationVersion = Components.Schemas.ConfigurationVersion;
1825
1836
  export type CustomFlowActionComponent = Components.Schemas.CustomFlowActionComponent;
1826
1837
  export type CustomFlowConfig = Components.Schemas.CustomFlowConfig;
1827
1838
  export type EnumArg = Components.Schemas.EnumArg;
1839
+ export type ExternalIntegrationCustomActionConfig = Components.Schemas.ExternalIntegrationCustomActionConfig;
1828
1840
  export type Installation = Components.Schemas.Installation;
1829
1841
  export type JourneyBlockComponent = Components.Schemas.JourneyBlockComponent;
1830
1842
  export type JourneyBlockComponentArgs = Components.Schemas.JourneyBlockComponentArgs;
package/dist/openapi.json CHANGED
@@ -1435,13 +1435,19 @@
1435
1435
  "type": "string",
1436
1436
  "description": "The ID of the app to fetch configuration from the app API",
1437
1437
  "example": "c451c26a-cc7a-4c1c-92bf-1c6246cbfe88"
1438
+ },
1439
+ "component_id": {
1440
+ "type": "string",
1441
+ "description": "The ID of the component to fetch configuration from the app API",
1442
+ "example": "12345678-1234-1234-1234-123456789012"
1438
1443
  }
1439
1444
  },
1440
1445
  "required": [
1441
- "app_id"
1446
+ "app_id",
1447
+ "component_id"
1442
1448
  ]
1443
1449
  },
1444
- "BasicCustomActionConfig": {
1450
+ "ExternalIntegrationCustomActionConfig": {
1445
1451
  "allOf": [
1446
1452
  {
1447
1453
  "$ref": "#/components/schemas/BaseCustomActionConfig"
@@ -1452,10 +1458,10 @@
1452
1458
  "type": {
1453
1459
  "type": "string",
1454
1460
  "enum": [
1455
- "basic"
1461
+ "external_integration"
1456
1462
  ]
1457
1463
  },
1458
- "basic_settings": {
1464
+ "external_integration_settings": {
1459
1465
  "type": "object",
1460
1466
  "properties": {
1461
1467
  "url": {
@@ -1483,13 +1489,13 @@
1483
1489
  "type": "object",
1484
1490
  "oneOf": [
1485
1491
  {
1486
- "$ref": "#/components/schemas/BasicCustomActionConfig"
1492
+ "$ref": "#/components/schemas/ExternalIntegrationCustomActionConfig"
1487
1493
  }
1488
1494
  ],
1489
1495
  "discriminator": {
1490
1496
  "propertyName": "type",
1491
1497
  "mapping": {
1492
- "basic": "#/components/schemas/BasicCustomActionConfig"
1498
+ "external_integration": "#/components/schemas/ExternalIntegrationCustomActionConfig"
1493
1499
  }
1494
1500
  }
1495
1501
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/app-client",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "JavaScript client library for the epilot App API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",