@epilot/app-client 0.0.19 → 0.0.20

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.
@@ -1 +1 @@
1
- (()=>{"use strict";var e={187:function(e,r,t){var p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var a=p(t(466));r.default=a.default},466:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"servers":[{"url":"https://app.sls.epilot.io"}],"paths":{"/v1/app-configurations":{"get":{"operationId":"listAppConfigurations","parameters":[{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}},"post":{"operationId":"createAppConfiguration","requestBody":{"$ref":"#/components/requestBodies/CreateConfigRequest"},"responses":{}}},"/v1/app-configurations/{appId}":{"parameters":[{"name":"appId","in":"path","required":true,"description":"ID of the app configuration"}],"get":{"operationId":"getAppConfiguration","parameters":[{"name":"version","in":"query"}],"responses":{}},"patch":{"operationId":"patchConfigurationMetadata","requestBody":{"$ref":"#/components/requestBodies/PatchConfigMetadataRequest"},"responses":{}},"put":{"operationId":"updateAppConfigurationMetadata","requestBody":{"$ref":"#/components/requestBodies/UpdateConfigMetadataRequest"},"responses":{}}},"/v1/app-configurations/{appId}/logo":{"parameters":[{"name":"appId","in":"path","required":true,"description":"ID of the app configuration"}],"post":{"operationId":"createLogoUploadUrl","requestBody":{"$ref":"#/components/requestBodies/CreateLogoRequest"},"responses":{}},"delete":{"operationId":"deleteLogo","responses":{}}},"/v1/app-configurations/{appId}/versions":{"get":{"operationId":"listAppVersions","parameters":[{"name":"appId","in":"path","required":true},{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}}},"/v1/app-configurations/{appId}/versions/{version}":{"get":{"operationId":"getAppConfigurationVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}},"delete":{"operationId":"deleteAppVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}},"put":{"operationId":"updateAppVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/UpdateVersionRequest"},"responses":{}}},"/v1/app-configurations/{appId}/versions/{sourceVersion}/clone-to/{targetVersion}":{"post":{"operationId":"cloneAppVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"sourceVersion","in":"path","required":true},{"name":"targetVersion","in":"path","required":true}],"responses":{}}},"/v1/app":{"get":{"operationId":"listInstalledApps","parameters":[{"name":"componentType","in":"query"},{"name":"enabled","in":"query"},{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}}},"/v1/app/{appId}":{"get":{"operationId":"getInstalledApp","parameters":[{"name":"appId","in":"path","required":true}],"responses":{}},"put":{"operationId":"installApp","parameters":[{"name":"appId","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/InstallAppRequest"},"responses":{}},"delete":{"operationId":"uninstallApp","parameters":[{"name":"appId","in":"path","required":true}],"responses":{}}},"/v1/app/{appId}/promote-to/{version}":{"post":{"operationId":"promoteAppVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}}}},"components":{"requestBodies":{"CreateLogoRequest":{"required":true,"content":{"application/json":{}}},"PatchConfigMetadataRequest":{"required":true,"content":{"application/json":{}}},"UpdateConfigMetadataRequest":{"required":true,"content":{"application/json":{}}},"UpdateVersionRequest":{"required":true,"content":{"application/json":{}}},"CreateConfigRequest":{"required":true,"content":{"application/json":{}}},"InstallAppRequest":{"content":{"application/json":{}}}}}}')}},r={},t=function t(p){var a=r[p];if(void 0!==a)return a.exports;var n=r[p]={exports:{}};return e[p].call(n.exports,n,n.exports,t),n.exports}(187),p=exports;for(var a in t)p[a]=t[a];t.__esModule&&Object.defineProperty(p,"__esModule",{value:!0})})();
1
+ (()=>{"use strict";var e={187:function(e,r,t){var p=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0});var n=p(t(466));r.default=n.default},466:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"","version":""},"servers":[{"url":"https://app.sls.epilot.io"}],"paths":{"/v1/app-configurations":{"get":{"operationId":"listAppConfigurations","parameters":[{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}},"post":{"operationId":"createAppConfiguration","requestBody":{"$ref":"#/components/requestBodies/CreateConfigRequest"},"responses":{}}},"/v1/app-configurations/{appId}":{"parameters":[{"name":"appId","in":"path","required":true,"description":"ID of the app configuration"}],"get":{"operationId":"getAppConfiguration","parameters":[{"name":"version","in":"query"}],"responses":{}},"patch":{"operationId":"patchConfigurationMetadata","requestBody":{"$ref":"#/components/requestBodies/PatchConfigMetadataRequest"},"responses":{}}},"/v1/app-configurations/{appId}/logo":{"parameters":[{"name":"appId","in":"path","required":true,"description":"ID of the app configuration"}],"post":{"operationId":"createLogoUploadUrl","requestBody":{"$ref":"#/components/requestBodies/CreateLogoRequest"},"responses":{}},"delete":{"operationId":"deleteLogo","responses":{}}},"/v1/app-configurations/{appId}/versions":{"get":{"operationId":"listAppVersions","parameters":[{"name":"appId","in":"path","required":true},{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}}},"/v1/app-configurations/{appId}/versions/{version}":{"get":{"operationId":"getAppConfigurationVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}},"delete":{"operationId":"deleteAppVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}},"put":{"operationId":"updateAppVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/UpdateVersionRequest"},"responses":{}}},"/v1/app-configurations/{appId}/versions/{sourceVersion}/clone-to/{targetVersion}":{"post":{"operationId":"cloneAppVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"sourceVersion","in":"path","required":true},{"name":"targetVersion","in":"path","required":true}],"responses":{}}},"/v1/app":{"get":{"operationId":"listInstalledApps","parameters":[{"name":"componentType","in":"query"},{"name":"enabled","in":"query"},{"name":"page","in":"query"},{"name":"pageSize","in":"query"}],"responses":{}}},"/v1/app/{appId}":{"get":{"operationId":"getInstalledApp","parameters":[{"name":"appId","in":"path","required":true}],"responses":{}},"put":{"operationId":"installApp","parameters":[{"name":"appId","in":"path","required":true}],"requestBody":{"$ref":"#/components/requestBodies/InstallAppRequest"},"responses":{}},"delete":{"operationId":"uninstallApp","parameters":[{"name":"appId","in":"path","required":true}],"responses":{}}},"/v1/app/{appId}/promote-to/{version}":{"post":{"operationId":"promoteAppVersion","parameters":[{"name":"appId","in":"path","required":true},{"name":"version","in":"path","required":true}],"responses":{}}}},"components":{"requestBodies":{"CreateLogoRequest":{"required":true,"content":{"application/json":{}}},"PatchConfigMetadataRequest":{"required":true,"content":{"application/json":{}}},"UpdateVersionRequest":{"required":true,"content":{"application/json":{}}},"CreateConfigRequest":{"required":true,"content":{"application/json":{}}},"InstallAppRequest":{"content":{"application/json":{}}}}}}')}},r={},t=function t(p){var n=r[p];if(void 0!==n)return n.exports;var a=r[p]={exports:{}};return e[p].call(a.exports,a,a.exports,t),a.exports}(187),p=exports;for(var n in t)p[n]=t[n];t.__esModule&&Object.defineProperty(p,"__esModule",{value:!0})})();
@@ -58,13 +58,6 @@
58
58
  "$ref": "#/components/requestBodies/PatchConfigMetadataRequest"
59
59
  },
60
60
  "responses": {}
61
- },
62
- "put": {
63
- "operationId": "updateAppConfigurationMetadata",
64
- "requestBody": {
65
- "$ref": "#/components/requestBodies/UpdateConfigMetadataRequest"
66
- },
67
- "responses": {}
68
61
  }
69
62
  },
70
63
  "/v1/app-configurations/{appId}/logo": {
@@ -280,12 +273,6 @@
280
273
  "application/json": {}
281
274
  }
282
275
  },
283
- "UpdateConfigMetadataRequest": {
284
- "required": true,
285
- "content": {
286
- "application/json": {}
287
- }
288
- },
289
276
  "UpdateVersionRequest": {
290
277
  "required": true,
291
278
  "content": {
package/dist/openapi.d.ts CHANGED
@@ -56,23 +56,6 @@ declare namespace Components {
56
56
  */
57
57
  support_email?: string;
58
58
  }
59
- export interface UpdateConfigMetadataRequest {
60
- name: Schemas.TranslatedString;
61
- description: Schemas.TranslatedString;
62
- category?: string;
63
- documentation_url?: string;
64
- homepage_url?: string;
65
- notifications?: Schemas.NotificationConfig;
66
- pricing?: Schemas.Pricing;
67
- /**
68
- * S3 key of the logo file
69
- */
70
- logo_url_key?: string;
71
- /**
72
- * Email address for support requests
73
- */
74
- support_email?: string;
75
- }
76
59
  export interface UpdateVersionRequest {
77
60
  /**
78
61
  * Updated full list of app components
@@ -477,9 +460,6 @@ declare namespace Components {
477
460
  }[]
478
461
  ];
479
462
  }
480
- export interface FreePricing {
481
- pricing_type: "FREE";
482
- }
483
463
  export interface JourneyBlockComponent {
484
464
  component_type: "CUSTOM_JOURNEY_BLOCK";
485
465
  configuration: JourneyBlockConfig;
@@ -621,7 +601,10 @@ declare namespace Components {
621
601
  };
622
602
  }[];
623
603
  }
624
- export type Pricing = FreePricing | SubscriptionPricing | UsageBasedPricing;
604
+ export interface Pricing {
605
+ pricing_type?: "FREE" | "SUBSCRIPTION" | "USAGE_BASED";
606
+ billing_frequency?: /* How often the subscription is billed */ BillingFrequency;
607
+ }
625
608
  export interface S3Reference {
626
609
  /**
627
610
  * The name of the S3 bucket where the JSON file for import is stored.
@@ -636,10 +619,6 @@ declare namespace Components {
636
619
  */
637
620
  key: string;
638
621
  }
639
- export interface SubscriptionPricing {
640
- pricing_type: "SUBSCRIPTION";
641
- billing_frequency: /* How often the subscription is billed */ BillingFrequency;
642
- }
643
622
  export interface TextArg {
644
623
  type?: "text";
645
624
  }
@@ -659,9 +638,6 @@ declare namespace Components {
659
638
  */
660
639
  app_id?: string;
661
640
  }
662
- export interface UsageBasedPricing {
663
- pricing_type: "USAGE_BASED";
664
- }
665
641
  }
666
642
  }
667
643
  declare namespace Paths {
@@ -906,15 +882,6 @@ declare namespace Paths {
906
882
  }
907
883
  }
908
884
  }
909
- namespace UpdateAppConfigurationMetadata {
910
- export type RequestBody = Components.RequestBodies.UpdateConfigMetadataRequest;
911
- namespace Responses {
912
- export interface $204 {
913
- }
914
- export interface $404 {
915
- }
916
- }
917
- }
918
885
  namespace UpdateAppVersion {
919
886
  namespace Parameters {
920
887
  export type AppId = string;
@@ -983,16 +950,6 @@ export interface OperationMethods {
983
950
  data?: any,
984
951
  config?: AxiosRequestConfig
985
952
  ): OperationResponse<Paths.GetAppConfiguration.Responses.$200>
986
- /**
987
- * updateAppConfigurationMetadata - updateAppConfigurationMetadata
988
- *
989
- * Update non-versioned configuration metadata of a given app configuration.
990
- */
991
- 'updateAppConfigurationMetadata'(
992
- parameters?: Parameters<Paths.V1AppConfigurations$AppId.PathParameters> | null,
993
- data?: Paths.UpdateAppConfigurationMetadata.RequestBody,
994
- config?: AxiosRequestConfig
995
- ): OperationResponse<Paths.UpdateAppConfigurationMetadata.Responses.$204>
996
953
  /**
997
954
  * patchConfigurationMetadata - patchConfigurationMetadata
998
955
  *
@@ -1169,16 +1126,6 @@ export interface PathsDictionary {
1169
1126
  data?: Paths.PatchConfigurationMetadata.RequestBody,
1170
1127
  config?: AxiosRequestConfig
1171
1128
  ): OperationResponse<Paths.PatchConfigurationMetadata.Responses.$204>
1172
- /**
1173
- * updateAppConfigurationMetadata - updateAppConfigurationMetadata
1174
- *
1175
- * Update non-versioned configuration metadata of a given app configuration.
1176
- */
1177
- 'put'(
1178
- parameters?: Parameters<Paths.V1AppConfigurations$AppId.PathParameters> | null,
1179
- data?: Paths.UpdateAppConfigurationMetadata.RequestBody,
1180
- config?: AxiosRequestConfig
1181
- ): OperationResponse<Paths.UpdateAppConfigurationMetadata.Responses.$204>
1182
1129
  }
1183
1130
  ['/v1/app-configurations/{appId}/logo']: {
1184
1131
  /**
@@ -1330,7 +1277,6 @@ export type BooleanArg = Components.Schemas.BooleanArg;
1330
1277
  export type CallerIdentity = Components.Schemas.CallerIdentity;
1331
1278
  export type ComponentType = Components.Schemas.ComponentType;
1332
1279
  export type EnumArg = Components.Schemas.EnumArg;
1333
- export type FreePricing = Components.Schemas.FreePricing;
1334
1280
  export type JourneyBlockComponent = Components.Schemas.JourneyBlockComponent;
1335
1281
  export type JourneyBlockComponentArgs = Components.Schemas.JourneyBlockComponentArgs;
1336
1282
  export type JourneyBlockConfig = Components.Schemas.JourneyBlockConfig;
@@ -1344,8 +1290,6 @@ export type PortalExtensionComponent = Components.Schemas.PortalExtensionCompone
1344
1290
  export type PortalExtensionConfig = Components.Schemas.PortalExtensionConfig;
1345
1291
  export type Pricing = Components.Schemas.Pricing;
1346
1292
  export type S3Reference = Components.Schemas.S3Reference;
1347
- export type SubscriptionPricing = Components.Schemas.SubscriptionPricing;
1348
1293
  export type TextArg = Components.Schemas.TextArg;
1349
1294
  export type TranslatedString = Components.Schemas.TranslatedString;
1350
1295
  export type UploadFilePayload = Components.Schemas.UploadFilePayload;
1351
- export type UsageBasedPricing = Components.Schemas.UsageBasedPricing;
package/dist/openapi.json CHANGED
@@ -168,22 +168,6 @@
168
168
  "description": "App configuration not found"
169
169
  }
170
170
  }
171
- },
172
- "put": {
173
- "summary": "updateAppConfigurationMetadata",
174
- "description": "Update non-versioned configuration metadata of a given app configuration.",
175
- "operationId": "updateAppConfigurationMetadata",
176
- "requestBody": {
177
- "$ref": "#/components/requestBodies/UpdateConfigMetadataRequest"
178
- },
179
- "responses": {
180
- "204": {
181
- "description": "Configuration updated successfully"
182
- },
183
- "404": {
184
- "description": "App configuration not found"
185
- }
186
- }
187
171
  }
188
172
  },
189
173
  "/v1/app-configurations/{appId}/logo": {
@@ -788,51 +772,6 @@
788
772
  }
789
773
  }
790
774
  },
791
- "UpdateConfigMetadataRequest": {
792
- "required": true,
793
- "content": {
794
- "application/json": {
795
- "schema": {
796
- "type": "object",
797
- "required": [
798
- "name",
799
- "description"
800
- ],
801
- "properties": {
802
- "name": {
803
- "$ref": "#/components/schemas/TranslatedString"
804
- },
805
- "description": {
806
- "$ref": "#/components/schemas/TranslatedString"
807
- },
808
- "category": {
809
- "type": "string"
810
- },
811
- "documentation_url": {
812
- "type": "string"
813
- },
814
- "homepage_url": {
815
- "type": "string"
816
- },
817
- "notifications": {
818
- "$ref": "#/components/schemas/NotificationConfig"
819
- },
820
- "pricing": {
821
- "$ref": "#/components/schemas/Pricing"
822
- },
823
- "logo_url_key": {
824
- "type": "string",
825
- "description": "S3 key of the logo file"
826
- },
827
- "support_email": {
828
- "type": "string",
829
- "description": "Email address for support requests"
830
- }
831
- }
832
- }
833
- }
834
- }
835
- },
836
775
  "UpdateVersionRequest": {
837
776
  "required": true,
838
777
  "content": {
@@ -1453,72 +1392,20 @@
1453
1392
  "description": "How often the subscription is billed"
1454
1393
  },
1455
1394
  "Pricing": {
1456
- "type": "object",
1457
- "discriminator": {
1458
- "propertyName": "pricing_type",
1459
- "mapping": {
1460
- "FREE": "#/components/schemas/FreePricing",
1461
- "SUBSCRIPTION": "#/components/schemas/SubscriptionPricing",
1462
- "USAGE_BASED": "#/components/schemas/UsageBasedPricing"
1463
- }
1464
- },
1465
- "oneOf": [
1466
- {
1467
- "$ref": "#/components/schemas/FreePricing"
1468
- },
1469
- {
1470
- "$ref": "#/components/schemas/SubscriptionPricing"
1471
- },
1472
- {
1473
- "$ref": "#/components/schemas/UsageBasedPricing"
1474
- }
1475
- ]
1476
- },
1477
- "FreePricing": {
1478
1395
  "type": "object",
1479
1396
  "properties": {
1480
1397
  "pricing_type": {
1481
1398
  "type": "string",
1482
1399
  "enum": [
1483
- "FREE"
1484
- ]
1485
- }
1486
- },
1487
- "required": [
1488
- "pricing_type"
1489
- ]
1490
- },
1491
- "SubscriptionPricing": {
1492
- "type": "object",
1493
- "properties": {
1494
- "pricing_type": {
1495
- "type": "string",
1496
- "enum": [
1497
- "SUBSCRIPTION"
1400
+ "FREE",
1401
+ "SUBSCRIPTION",
1402
+ "USAGE_BASED"
1498
1403
  ]
1499
1404
  },
1500
1405
  "billing_frequency": {
1501
1406
  "$ref": "#/components/schemas/BillingFrequency"
1502
1407
  }
1503
- },
1504
- "required": [
1505
- "pricing_type",
1506
- "billing_frequency"
1507
- ]
1508
- },
1509
- "UsageBasedPricing": {
1510
- "type": "object",
1511
- "properties": {
1512
- "pricing_type": {
1513
- "type": "string",
1514
- "enum": [
1515
- "USAGE_BASED"
1516
- ]
1517
- }
1518
- },
1519
- "required": [
1520
- "pricing_type"
1521
- ]
1408
+ }
1522
1409
  },
1523
1410
  "AppMetadata": {
1524
1411
  "description": "Basic metadata about your app configuration which does not get versioned",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/app-client",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "JavaScript client library for the epilot App API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",