@epilot/app-client 0.0.6 → 0.0.8

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,p,t){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(p,"__esModule",{value:!0});var a=r(t(466));p.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/{appId}":{"parameters":[{"name":"appId","in":"path","required":true,"description":"ID of the app configuration"}],"get":{"operationId":"getAppConfiguration","responses":{}}},"/v1/app":{"get":{"operationId":"listInstalledApps","parameters":[{"name":"componentType","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":{}}}},"components":{"requestBodies":{"InstallAppRequest":{"content":{"application/json":{}}}}}}')}},p={},t=function t(r){var a=p[r];if(void 0!==a)return a.exports;var n=p[r]={exports:{}};return e[r].call(n.exports,n,n.exports,t),n.exports}(187),r=exports;for(var a in t)r[a]=t[a];t.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})();
1
+ (()=>{"use strict";var e={187:function(e,p,t){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(p,"__esModule",{value:!0});var s=r(t(466));p.default=s.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/upload-url":{"post":{"operationId":"getUploadUrl","requestBody":{"required":true,"content":{"application/json":{}}},"responses":{}}},"/v1/app-configurations":{"post":{"operationId":"publishApp","requestBody":{"$ref":"#/components/requestBodies/PublishAppRequest"},"responses":{}}},"/v1/app-configurations/{appId}":{"parameters":[{"name":"appId","in":"path","required":true,"description":"ID of the app configuration"}],"get":{"operationId":"getAppConfiguration","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":{}}}},"components":{"requestBodies":{"PublishAppRequest":{"required":true,"content":{"application/json":{}}},"InstallAppRequest":{"content":{"application/json":{}}}}}}')}},p={},t=function t(r){var s=p[r];if(void 0!==s)return s.exports;var n=p[r]={exports:{}};return e[r].call(n.exports,n,n.exports,t),n.exports}(187),r=exports;for(var s in t)r[s]=t[s];t.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})();
@@ -10,6 +10,27 @@
10
10
  }
11
11
  ],
12
12
  "paths": {
13
+ "/v1/app-configurations/upload-url": {
14
+ "post": {
15
+ "operationId": "getUploadUrl",
16
+ "requestBody": {
17
+ "required": true,
18
+ "content": {
19
+ "application/json": {}
20
+ }
21
+ },
22
+ "responses": {}
23
+ }
24
+ },
25
+ "/v1/app-configurations": {
26
+ "post": {
27
+ "operationId": "publishApp",
28
+ "requestBody": {
29
+ "$ref": "#/components/requestBodies/PublishAppRequest"
30
+ },
31
+ "responses": {}
32
+ }
33
+ },
13
34
  "/v1/app-configurations/{appId}": {
14
35
  "parameters": [
15
36
  {
@@ -32,6 +53,10 @@
32
53
  "name": "componentType",
33
54
  "in": "query"
34
55
  },
56
+ {
57
+ "name": "enabled",
58
+ "in": "query"
59
+ },
35
60
  {
36
61
  "name": "page",
37
62
  "in": "query"
@@ -85,6 +110,12 @@
85
110
  },
86
111
  "components": {
87
112
  "requestBodies": {
113
+ "PublishAppRequest": {
114
+ "required": true,
115
+ "content": {
116
+ "application/json": {}
117
+ }
118
+ },
88
119
  "InstallAppRequest": {
89
120
  "content": {
90
121
  "application/json": {}
package/dist/openapi.d.ts CHANGED
@@ -16,6 +16,12 @@ declare namespace Components {
16
16
  */
17
17
  option_values?: Schemas.OptionsRef[];
18
18
  }
19
+ export interface PublishAppRequest {
20
+ s3_reference: Schemas.S3Reference;
21
+ metadata?: {
22
+ access_level?: "public" | "private";
23
+ };
24
+ }
19
25
  }
20
26
  namespace Schemas {
21
27
  /**
@@ -124,55 +130,30 @@ declare namespace Components {
124
130
  access_level?: "public" | "private";
125
131
  }
126
132
  export interface Author {
127
- /**
128
- * Unique identifier for the author
129
- */
130
- id: string;
131
133
  /**
132
134
  * Name of the author
133
135
  */
134
- name: string;
136
+ name?: string;
135
137
  /**
136
138
  * Company of the author
137
139
  */
138
- company?: string;
140
+ company: string;
139
141
  /**
140
142
  * Email of the author
141
143
  */
142
144
  email?: string;
143
145
  }
144
146
  export type BaseComponent = {
145
- component_type: "CUSTOM_JOURNEY_BLOCK";
146
- configuration: JourneyBlockConfig;
147
147
  /**
148
148
  * Unique identifier for the component
149
149
  */
150
150
  id: string;
151
- /**
152
- * Name of the component
153
- */
154
- name?: string;
155
- /**
156
- * List of options for the app component
157
- */
158
- options?: /* Options for the component configuration */ Options[];
159
- } | {
160
- component_type: "PORTAL_EXTENSION";
161
- origin?: "END_CUSTOMER_PORTAL" | "INSTALLER_PORTAL";
162
- configuration: PortalExtensionConfig;
163
- /**
164
- * Unique identifier for the component
165
- */
166
- id: string;
167
- /**
168
- * Name of the component
169
- */
170
- name?: string;
151
+ name?: TranslatedString;
171
152
  /**
172
153
  * List of options for the app component
173
154
  */
174
155
  options?: /* Options for the component configuration */ Options[];
175
- };
156
+ } & (JourneyBlockComponent | PortalExtensionComponent);
176
157
  export interface BaseComponentCommon {
177
158
  /**
178
159
  * Unique identifier for the component
@@ -181,7 +162,7 @@ declare namespace Components {
181
162
  /**
182
163
  * Name of the component
183
164
  */
184
- name?: string;
165
+ name?: TranslatedString;
185
166
  /**
186
167
  * List of options for the app component
187
168
  */
@@ -217,15 +198,21 @@ declare namespace Components {
217
198
  * Type of app component
218
199
  */
219
200
  export type ComponentType = "CUSTOM_JOURNEY_BLOCK" | "PORTAL_EXTENSION";
201
+ export interface JourneyBlockComponent {
202
+ component_type: "CUSTOM_JOURNEY_BLOCK";
203
+ configuration: JourneyBlockConfig;
204
+ }
220
205
  export interface JourneyBlockConfig {
221
206
  /**
222
207
  * URL of the web component object
208
+ * example:
209
+ * https://cdn.apps.com/123/v1.0.0/bundle.js
223
210
  */
224
211
  component_url: string;
225
212
  /**
226
213
  * Custom element tag for the component
227
214
  */
228
- component_tag?: string;
215
+ component_tag: string;
229
216
  }
230
217
  export interface Option {
231
218
  /**
@@ -257,7 +244,11 @@ declare namespace Components {
257
244
  * Detailed description of what this configuration option does
258
245
  */
259
246
  description?: string;
260
- type: "string" | "number" | "boolean" | "secret";
247
+ /**
248
+ * The configured value for this option. Is only present when the component is installed.
249
+ */
250
+ value?: string;
251
+ type: "text" | "number" | "boolean" | "secret";
261
252
  }
262
253
  export interface OptionsRef {
263
254
  /**
@@ -274,12 +265,17 @@ declare namespace Components {
274
265
  [name: string]: string;
275
266
  };
276
267
  }
268
+ export interface PortalExtensionComponent {
269
+ component_type: "PORTAL_EXTENSION";
270
+ origin?: "END_CUSTOMER_PORTAL" | "INSTALLER_PORTAL";
271
+ configuration: PortalExtensionConfig;
272
+ }
277
273
  export interface PortalExtensionConfig {
278
274
  id?: string;
279
275
  hooks?: {
280
276
  id?: string;
281
277
  type?: string;
282
- name?: string;
278
+ name?: TranslatedString;
283
279
  interval?: string[];
284
280
  auth?: PortalAuth;
285
281
  call?: {
@@ -295,8 +291,8 @@ declare namespace Components {
295
291
  links?: {
296
292
  id?: string;
297
293
  type?: string;
298
- name?: string;
299
- description?: string;
294
+ name?: TranslatedString;
295
+ description?: TranslatedString;
300
296
  condition?: string;
301
297
  auth?: PortalAuth;
302
298
  redirect?: {
@@ -333,10 +329,9 @@ declare namespace Components {
333
329
  }
334
330
  export interface UploadFilePayload {
335
331
  /**
336
- * example:
337
- * example.manifest.zip
332
+ * ID of the app configuration. Required for app updates.
338
333
  */
339
- filename: string;
334
+ app_id?: string;
340
335
  }
341
336
  }
342
337
  }
@@ -361,6 +356,26 @@ declare namespace Paths {
361
356
  }
362
357
  }
363
358
  }
359
+ namespace GetUploadUrl {
360
+ export type RequestBody = Components.Schemas.UploadFilePayload;
361
+ namespace Responses {
362
+ export interface $200 {
363
+ /**
364
+ * ID of the app configuration
365
+ */
366
+ app_id?: string;
367
+ /**
368
+ * Presigned S3 URL for uploading the file
369
+ */
370
+ upload_url: string;
371
+ s3_reference: Components.Schemas.S3Reference;
372
+ /**
373
+ * Timestamp when the upload URL expires
374
+ */
375
+ expires_at?: string; // date-time
376
+ }
377
+ }
378
+ }
364
379
  namespace InstallApp {
365
380
  namespace Parameters {
366
381
  export type AppId = string;
@@ -379,11 +394,13 @@ declare namespace Paths {
379
394
  namespace ListInstalledApps {
380
395
  namespace Parameters {
381
396
  export type ComponentType = /* Type of app component */ Components.Schemas.ComponentType;
397
+ export type Enabled = boolean;
382
398
  export type Page = number;
383
399
  export type PageSize = number;
384
400
  }
385
401
  export interface QueryParameters {
386
402
  componentType?: Parameters.ComponentType;
403
+ enabled?: Parameters.Enabled;
387
404
  page?: Parameters.Page;
388
405
  pageSize?: Parameters.PageSize;
389
406
  }
@@ -398,6 +415,19 @@ declare namespace Paths {
398
415
  }
399
416
  }
400
417
  }
418
+ namespace PublishApp {
419
+ export type RequestBody = Components.RequestBodies.PublishAppRequest;
420
+ namespace Responses {
421
+ export interface $202 {
422
+ app_id: string;
423
+ status: "pending" | "published";
424
+ /**
425
+ * Step Function execution ARN for status tracking
426
+ */
427
+ execution_arn?: string;
428
+ }
429
+ }
430
+ }
401
431
  namespace UninstallApp {
402
432
  namespace Parameters {
403
433
  export type AppId = string;
@@ -423,6 +453,26 @@ declare namespace Paths {
423
453
  }
424
454
 
425
455
  export interface OperationMethods {
456
+ /**
457
+ * getUploadUrl - getUploadUrl
458
+ *
459
+ * Generate a presigned URL for uploading app package zip file
460
+ */
461
+ 'getUploadUrl'(
462
+ parameters?: Parameters<UnknownParamsObject> | null,
463
+ data?: Paths.GetUploadUrl.RequestBody,
464
+ config?: AxiosRequestConfig
465
+ ): OperationResponse<Paths.GetUploadUrl.Responses.$200>
466
+ /**
467
+ * publishApp - publishApp
468
+ *
469
+ * Publish a new app configuration from uploaded zip file
470
+ */
471
+ 'publishApp'(
472
+ parameters?: Parameters<UnknownParamsObject> | null,
473
+ data?: Paths.PublishApp.RequestBody,
474
+ config?: AxiosRequestConfig
475
+ ): OperationResponse<Paths.PublishApp.Responses.$202>
426
476
  /**
427
477
  * getAppConfiguration - getAppConfiguration
428
478
  *
@@ -476,6 +526,30 @@ export interface OperationMethods {
476
526
  }
477
527
 
478
528
  export interface PathsDictionary {
529
+ ['/v1/app-configurations/upload-url']: {
530
+ /**
531
+ * getUploadUrl - getUploadUrl
532
+ *
533
+ * Generate a presigned URL for uploading app package zip file
534
+ */
535
+ 'post'(
536
+ parameters?: Parameters<UnknownParamsObject> | null,
537
+ data?: Paths.GetUploadUrl.RequestBody,
538
+ config?: AxiosRequestConfig
539
+ ): OperationResponse<Paths.GetUploadUrl.Responses.$200>
540
+ }
541
+ ['/v1/app-configurations']: {
542
+ /**
543
+ * publishApp - publishApp
544
+ *
545
+ * Publish a new app configuration from uploaded zip file
546
+ */
547
+ 'post'(
548
+ parameters?: Parameters<UnknownParamsObject> | null,
549
+ data?: Paths.PublishApp.RequestBody,
550
+ config?: AxiosRequestConfig
551
+ ): OperationResponse<Paths.PublishApp.Responses.$202>
552
+ }
479
553
  ['/v1/app-configurations/{appId}']: {
480
554
  /**
481
555
  * getAppConfiguration - getAppConfiguration
@@ -543,11 +617,13 @@ export type BaseComponent = Components.Schemas.BaseComponent;
543
617
  export type BaseComponentCommon = Components.Schemas.BaseComponentCommon;
544
618
  export type CallerIdentity = Components.Schemas.CallerIdentity;
545
619
  export type ComponentType = Components.Schemas.ComponentType;
620
+ export type JourneyBlockComponent = Components.Schemas.JourneyBlockComponent;
546
621
  export type JourneyBlockConfig = Components.Schemas.JourneyBlockConfig;
547
622
  export type Option = Components.Schemas.Option;
548
623
  export type Options = Components.Schemas.Options;
549
624
  export type OptionsRef = Components.Schemas.OptionsRef;
550
625
  export type PortalAuth = Components.Schemas.PortalAuth;
626
+ export type PortalExtensionComponent = Components.Schemas.PortalExtensionComponent;
551
627
  export type PortalExtensionConfig = Components.Schemas.PortalExtensionConfig;
552
628
  export type S3Reference = Components.Schemas.S3Reference;
553
629
  export type TranslatedString = Components.Schemas.TranslatedString;
package/dist/openapi.json CHANGED
@@ -22,6 +22,99 @@
22
22
  }
23
23
  ],
24
24
  "paths": {
25
+ "/v1/app-configurations/upload-url": {
26
+ "post": {
27
+ "summary": "getUploadUrl",
28
+ "description": "Generate a presigned URL for uploading app package zip file",
29
+ "operationId": "getUploadUrl",
30
+ "requestBody": {
31
+ "required": true,
32
+ "content": {
33
+ "application/json": {
34
+ "schema": {
35
+ "$ref": "#/components/schemas/UploadFilePayload"
36
+ }
37
+ }
38
+ }
39
+ },
40
+ "responses": {
41
+ "200": {
42
+ "description": "Upload URL generated successfully",
43
+ "content": {
44
+ "application/json": {
45
+ "schema": {
46
+ "type": "object",
47
+ "required": [
48
+ "upload_url",
49
+ "s3_reference"
50
+ ],
51
+ "properties": {
52
+ "app_id": {
53
+ "type": "string",
54
+ "description": "ID of the app configuration"
55
+ },
56
+ "upload_url": {
57
+ "type": "string",
58
+ "description": "Presigned S3 URL for uploading the file"
59
+ },
60
+ "s3_reference": {
61
+ "$ref": "#/components/schemas/S3Reference"
62
+ },
63
+ "expires_at": {
64
+ "type": "string",
65
+ "format": "date-time",
66
+ "description": "Timestamp when the upload URL expires"
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
75
+ },
76
+ "/v1/app-configurations": {
77
+ "post": {
78
+ "summary": "publishApp",
79
+ "description": "Publish a new app configuration from uploaded zip file",
80
+ "operationId": "publishApp",
81
+ "requestBody": {
82
+ "$ref": "#/components/requestBodies/PublishAppRequest"
83
+ },
84
+ "responses": {
85
+ "202": {
86
+ "description": "App publication process started",
87
+ "content": {
88
+ "application/json": {
89
+ "schema": {
90
+ "type": "object",
91
+ "required": [
92
+ "app_id",
93
+ "status"
94
+ ],
95
+ "properties": {
96
+ "app_id": {
97
+ "type": "string"
98
+ },
99
+ "status": {
100
+ "type": "string",
101
+ "enum": [
102
+ "pending",
103
+ "published"
104
+ ]
105
+ },
106
+ "execution_arn": {
107
+ "type": "string",
108
+ "description": "Step Function execution ARN for status tracking"
109
+ }
110
+ }
111
+ }
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
117
+ },
25
118
  "/v1/app-configurations/{appId}": {
26
119
  "parameters": [
27
120
  {
@@ -70,6 +163,14 @@
70
163
  "description": "Filter apps by specific component type",
71
164
  "example": "CUSTOM_JOURNEY_BLOCK"
72
165
  },
166
+ {
167
+ "name": "enabled",
168
+ "in": "query",
169
+ "schema": {
170
+ "type": "boolean"
171
+ },
172
+ "description": "Filter apps by enabled status"
173
+ },
73
174
  {
74
175
  "name": "page",
75
176
  "in": "query",
@@ -209,6 +310,36 @@
209
310
  },
210
311
  "components": {
211
312
  "requestBodies": {
313
+ "PublishAppRequest": {
314
+ "required": true,
315
+ "content": {
316
+ "application/json": {
317
+ "schema": {
318
+ "type": "object",
319
+ "required": [
320
+ "s3_reference"
321
+ ],
322
+ "properties": {
323
+ "s3_reference": {
324
+ "$ref": "#/components/schemas/S3Reference"
325
+ },
326
+ "metadata": {
327
+ "type": "object",
328
+ "properties": {
329
+ "access_level": {
330
+ "type": "string",
331
+ "enum": [
332
+ "public",
333
+ "private"
334
+ ]
335
+ }
336
+ }
337
+ }
338
+ }
339
+ }
340
+ }
341
+ }
342
+ },
212
343
  "InstallAppRequest": {
213
344
  "content": {
214
345
  "application/json": {
@@ -267,10 +398,14 @@
267
398
  "type": "string",
268
399
  "description": "Detailed description of what this configuration option does"
269
400
  },
401
+ "value": {
402
+ "type": "string",
403
+ "description": "The configured value for this option. Is only present when the component is installed."
404
+ },
270
405
  "type": {
271
406
  "type": "string",
272
407
  "enum": [
273
- "string",
408
+ "text",
274
409
  "number",
275
410
  "boolean",
276
411
  "secret"
@@ -317,14 +452,11 @@
317
452
  "UploadFilePayload": {
318
453
  "type": "object",
319
454
  "properties": {
320
- "filename": {
455
+ "app_id": {
321
456
  "type": "string",
322
- "example": "example.manifest.zip"
457
+ "description": "ID of the app configuration. Required for app updates."
323
458
  }
324
- },
325
- "required": [
326
- "filename"
327
- ]
459
+ }
328
460
  },
329
461
  "S3Reference": {
330
462
  "type": "object",
@@ -356,14 +488,9 @@
356
488
  "Author": {
357
489
  "type": "object",
358
490
  "required": [
359
- "id",
360
- "name"
491
+ "company"
361
492
  ],
362
493
  "properties": {
363
- "id": {
364
- "type": "string",
365
- "description": "Unique identifier for the author"
366
- },
367
494
  "name": {
368
495
  "type": "string",
369
496
  "description": "Name of the author"
@@ -389,7 +516,7 @@
389
516
  "description": "Unique identifier for the component"
390
517
  },
391
518
  "name": {
392
- "type": "string",
519
+ "$ref": "#/components/schemas/TranslatedString",
393
520
  "description": "Name of the component"
394
521
  },
395
522
  "options": {
@@ -407,58 +534,65 @@
407
534
  "$ref": "#/components/schemas/BaseComponentCommon"
408
535
  },
409
536
  {
537
+ "type": "object",
538
+ "discriminator": {
539
+ "propertyName": "component_type",
540
+ "mapping": {
541
+ "CUSTOM_JOURNEY_BLOCK": "#/components/schemas/JourneyBlockComponent",
542
+ "PORTAL_EXTENSION": "#/components/schemas/PortalExtensionComponent"
543
+ }
544
+ },
410
545
  "oneOf": [
411
546
  {
412
- "type": "object",
413
- "required": [
414
- "component_type",
415
- "configuration"
416
- ],
417
- "properties": {
418
- "component_type": {
419
- "type": "string",
420
- "enum": [
421
- "CUSTOM_JOURNEY_BLOCK"
422
- ]
423
- },
424
- "configuration": {
425
- "$ref": "#/components/schemas/JourneyBlockConfig"
426
- }
427
- }
547
+ "$ref": "#/components/schemas/JourneyBlockComponent"
428
548
  },
429
549
  {
430
- "type": "object",
431
- "required": [
432
- "component_type",
433
- "configuration"
434
- ],
435
- "properties": {
436
- "component_type": {
437
- "type": "string",
438
- "enum": [
439
- "PORTAL_EXTENSION"
440
- ]
441
- },
442
- "origin": {
443
- "type": "string",
444
- "enum": [
445
- "END_CUSTOMER_PORTAL",
446
- "INSTALLER_PORTAL"
447
- ]
448
- },
449
- "configuration": {
450
- "$ref": "#/components/schemas/PortalExtensionConfig"
451
- }
452
- }
550
+ "$ref": "#/components/schemas/PortalExtensionComponent"
453
551
  }
454
552
  ]
455
553
  }
554
+ ]
555
+ },
556
+ "JourneyBlockComponent": {
557
+ "type": "object",
558
+ "required": [
559
+ "component_type",
560
+ "configuration"
456
561
  ],
457
- "discriminator": {
458
- "propertyName": "componentType",
459
- "mapping": {
460
- "CUSTOM_JOURNEY_BLOCK": "#/components/schemas/JourneyBlockConfig",
461
- "PORTAL_EXTENSION": "#/components/schemas/PortalExtensionConfig"
562
+ "properties": {
563
+ "component_type": {
564
+ "type": "string",
565
+ "enum": [
566
+ "CUSTOM_JOURNEY_BLOCK"
567
+ ]
568
+ },
569
+ "configuration": {
570
+ "$ref": "#/components/schemas/JourneyBlockConfig"
571
+ }
572
+ }
573
+ },
574
+ "PortalExtensionComponent": {
575
+ "type": "object",
576
+ "required": [
577
+ "component_type",
578
+ "configuration"
579
+ ],
580
+ "properties": {
581
+ "component_type": {
582
+ "type": "string",
583
+ "enum": [
584
+ "PORTAL_EXTENSION"
585
+ ]
586
+ },
587
+ "origin": {
588
+ "type": "string",
589
+ "enum": [
590
+ "END_CUSTOMER_PORTAL",
591
+ "INSTALLER_PORTAL"
592
+ ]
593
+ },
594
+ "configuration": {
595
+ "$ref": "#/components/schemas/PortalExtensionConfig"
462
596
  }
463
597
  }
464
598
  },
@@ -480,7 +614,7 @@
480
614
  "type": "string"
481
615
  },
482
616
  "name": {
483
- "type": "string"
617
+ "$ref": "#/components/schemas/TranslatedString"
484
618
  },
485
619
  "interval": {
486
620
  "type": "array",
@@ -526,10 +660,10 @@
526
660
  "type": "string"
527
661
  },
528
662
  "name": {
529
- "type": "string"
663
+ "$ref": "#/components/schemas/TranslatedString"
530
664
  },
531
665
  "description": {
532
- "type": "string"
666
+ "$ref": "#/components/schemas/TranslatedString"
533
667
  },
534
668
  "condition": {
535
669
  "type": "string"
@@ -580,12 +714,13 @@
580
714
  "type": "object",
581
715
  "required": [
582
716
  "component_url",
583
- "componentTag"
717
+ "component_tag"
584
718
  ],
585
719
  "properties": {
586
720
  "component_url": {
587
721
  "type": "string",
588
- "description": "URL of the web component object"
722
+ "description": "URL of the web component object",
723
+ "example": "https://cdn.apps.com/123/v1.0.0/bundle.js"
589
724
  },
590
725
  "component_tag": {
591
726
  "type": "string",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/app-client",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "JavaScript client library for the epilot App API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",