@epilot/app-client 0.0.2 → 0.0.3
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 +47 -34
- package/dist/openapi.json +40 -15
- package/package.json +1 -1
package/dist/openapi.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ declare namespace Components {
|
|
|
14
14
|
/**
|
|
15
15
|
* Configuration values for the app components
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
option_values?: Schemas.OptionsRef[];
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
namespace Schemas {
|
|
@@ -38,7 +38,14 @@ declare namespace Components {
|
|
|
38
38
|
description?: string;
|
|
39
39
|
created_by?: string;
|
|
40
40
|
created_at?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Timestamp of the last update
|
|
43
|
+
*/
|
|
41
44
|
updated_at?: string;
|
|
45
|
+
/**
|
|
46
|
+
* User ID of the user who last updated the app
|
|
47
|
+
*/
|
|
48
|
+
updated_by?: string;
|
|
42
49
|
version?: string;
|
|
43
50
|
author?: Author;
|
|
44
51
|
status?: "published" | "pending";
|
|
@@ -76,9 +83,9 @@ declare namespace Components {
|
|
|
76
83
|
*/
|
|
77
84
|
enabled?: boolean;
|
|
78
85
|
/**
|
|
79
|
-
* Configuration values for the app components
|
|
86
|
+
* Configuration values for the app components options
|
|
80
87
|
*/
|
|
81
|
-
|
|
88
|
+
option_values?: OptionsRef[];
|
|
82
89
|
}
|
|
83
90
|
/**
|
|
84
91
|
* Configuration of the published app
|
|
@@ -101,6 +108,7 @@ declare namespace Components {
|
|
|
101
108
|
created_by?: string;
|
|
102
109
|
created_at?: string;
|
|
103
110
|
updated_at?: string;
|
|
111
|
+
updated_by?: string;
|
|
104
112
|
version?: string;
|
|
105
113
|
author?: Author;
|
|
106
114
|
status?: "published" | "pending";
|
|
@@ -144,20 +152,21 @@ declare namespace Components {
|
|
|
144
152
|
*/
|
|
145
153
|
id: string;
|
|
146
154
|
/**
|
|
147
|
-
* List of
|
|
155
|
+
* List of options for the app component
|
|
148
156
|
*/
|
|
149
|
-
|
|
157
|
+
options?: /* Options for the component configuration */ Options[];
|
|
150
158
|
} | {
|
|
151
159
|
component_type?: "PORTAL_EXTENSION";
|
|
160
|
+
origin?: "END_CUSTOMER_PORTAL" | "INSTALLER_PORTAL";
|
|
152
161
|
configuration: PortalExtensionConfig;
|
|
153
162
|
/**
|
|
154
163
|
* Unique identifier for the component
|
|
155
164
|
*/
|
|
156
165
|
id: string;
|
|
157
166
|
/**
|
|
158
|
-
* List of
|
|
167
|
+
* List of options for the app component
|
|
159
168
|
*/
|
|
160
|
-
|
|
169
|
+
options?: /* Options for the component configuration */ Options[];
|
|
161
170
|
};
|
|
162
171
|
export interface BaseComponentCommon {
|
|
163
172
|
/**
|
|
@@ -165,9 +174,9 @@ declare namespace Components {
|
|
|
165
174
|
*/
|
|
166
175
|
id: string;
|
|
167
176
|
/**
|
|
168
|
-
* List of
|
|
177
|
+
* List of options for the app component
|
|
169
178
|
*/
|
|
170
|
-
|
|
179
|
+
options?: /* Options for the component configuration */ Options[];
|
|
171
180
|
}
|
|
172
181
|
export interface CallerIdentity {
|
|
173
182
|
/**
|
|
@@ -195,7 +204,21 @@ declare namespace Components {
|
|
|
195
204
|
*/
|
|
196
205
|
token_id?: string;
|
|
197
206
|
}
|
|
198
|
-
|
|
207
|
+
/**
|
|
208
|
+
* Type of app component
|
|
209
|
+
*/
|
|
210
|
+
export type ComponentType = "CUSTOM_JOURNEY_BLOCK" | "PORTAL_EXTENSION";
|
|
211
|
+
export interface JourneyBlockConfig {
|
|
212
|
+
/**
|
|
213
|
+
* URL of the web component object
|
|
214
|
+
*/
|
|
215
|
+
component_url: string;
|
|
216
|
+
/**
|
|
217
|
+
* Custom element tag for the component
|
|
218
|
+
*/
|
|
219
|
+
component_tag?: string;
|
|
220
|
+
}
|
|
221
|
+
export interface Option {
|
|
199
222
|
/**
|
|
200
223
|
* Key matching a config_option from the component
|
|
201
224
|
*/
|
|
@@ -205,21 +228,10 @@ declare namespace Components {
|
|
|
205
228
|
*/
|
|
206
229
|
value: string;
|
|
207
230
|
}
|
|
208
|
-
export interface ComponentConfigValues {
|
|
209
|
-
/**
|
|
210
|
-
* ID of the component these values are for
|
|
211
|
-
*/
|
|
212
|
-
component_id: string;
|
|
213
|
-
options: ComponentConfigValue[];
|
|
214
|
-
}
|
|
215
|
-
/**
|
|
216
|
-
* Type of app component
|
|
217
|
-
*/
|
|
218
|
-
export type ComponentType = "CUSTOM_JOURNEY_BLOCK" | "PORTAL_EXTENSION";
|
|
219
231
|
/**
|
|
220
232
|
* Options for the component configuration
|
|
221
233
|
*/
|
|
222
|
-
export interface
|
|
234
|
+
export interface Options {
|
|
223
235
|
/**
|
|
224
236
|
* Unique identifier for this configuration option
|
|
225
237
|
*/
|
|
@@ -228,21 +240,22 @@ declare namespace Components {
|
|
|
228
240
|
* Human-readable label for the configuration option
|
|
229
241
|
*/
|
|
230
242
|
label?: string;
|
|
243
|
+
/**
|
|
244
|
+
* Flag to indicate if this option is required
|
|
245
|
+
*/
|
|
246
|
+
required?: boolean;
|
|
231
247
|
/**
|
|
232
248
|
* Detailed description of what this configuration option does
|
|
233
249
|
*/
|
|
234
250
|
description?: string;
|
|
235
251
|
type: "string" | "number" | "boolean" | "secret";
|
|
236
252
|
}
|
|
237
|
-
export interface
|
|
238
|
-
/**
|
|
239
|
-
* URL of the web component object
|
|
240
|
-
*/
|
|
241
|
-
object_url: string;
|
|
253
|
+
export interface OptionsRef {
|
|
242
254
|
/**
|
|
243
|
-
*
|
|
255
|
+
* ID of the component these values are for
|
|
244
256
|
*/
|
|
245
|
-
|
|
257
|
+
component_id: string;
|
|
258
|
+
options: Option[];
|
|
246
259
|
}
|
|
247
260
|
export interface PortalAuth {
|
|
248
261
|
type?: string;
|
|
@@ -424,7 +437,7 @@ export interface OperationMethods {
|
|
|
424
437
|
/**
|
|
425
438
|
* installApp - installApp
|
|
426
439
|
*
|
|
427
|
-
*
|
|
440
|
+
* Upsert app installation by its ID.
|
|
428
441
|
*/
|
|
429
442
|
'installApp'(
|
|
430
443
|
parameters?: Parameters<Paths.InstallApp.PathParameters> | null,
|
|
@@ -482,7 +495,7 @@ export interface PathsDictionary {
|
|
|
482
495
|
/**
|
|
483
496
|
* installApp - installApp
|
|
484
497
|
*
|
|
485
|
-
*
|
|
498
|
+
* Upsert app installation by its ID.
|
|
486
499
|
*/
|
|
487
500
|
'put'(
|
|
488
501
|
parameters?: Parameters<Paths.InstallApp.PathParameters> | null,
|
|
@@ -510,11 +523,11 @@ export type Author = Components.Schemas.Author;
|
|
|
510
523
|
export type BaseComponent = Components.Schemas.BaseComponent;
|
|
511
524
|
export type BaseComponentCommon = Components.Schemas.BaseComponentCommon;
|
|
512
525
|
export type CallerIdentity = Components.Schemas.CallerIdentity;
|
|
513
|
-
export type ComponentConfigValue = Components.Schemas.ComponentConfigValue;
|
|
514
|
-
export type ComponentConfigValues = Components.Schemas.ComponentConfigValues;
|
|
515
526
|
export type ComponentType = Components.Schemas.ComponentType;
|
|
516
|
-
export type ConfigurationOptions = Components.Schemas.ConfigurationOptions;
|
|
517
527
|
export type JourneyBlockConfig = Components.Schemas.JourneyBlockConfig;
|
|
528
|
+
export type Option = Components.Schemas.Option;
|
|
529
|
+
export type Options = Components.Schemas.Options;
|
|
530
|
+
export type OptionsRef = Components.Schemas.OptionsRef;
|
|
518
531
|
export type PortalAuth = Components.Schemas.PortalAuth;
|
|
519
532
|
export type PortalExtensionConfig = Components.Schemas.PortalExtensionConfig;
|
|
520
533
|
export type S3Reference = Components.Schemas.S3Reference;
|
package/dist/openapi.json
CHANGED
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
},
|
|
159
159
|
"put": {
|
|
160
160
|
"summary": "installApp",
|
|
161
|
-
"description": "
|
|
161
|
+
"description": "Upsert app installation by its ID.",
|
|
162
162
|
"operationId": "installApp",
|
|
163
163
|
"parameters": [
|
|
164
164
|
{
|
|
@@ -215,10 +215,10 @@
|
|
|
215
215
|
"schema": {
|
|
216
216
|
"type": "object",
|
|
217
217
|
"properties": {
|
|
218
|
-
"
|
|
218
|
+
"option_values": {
|
|
219
219
|
"type": "array",
|
|
220
220
|
"items": {
|
|
221
|
-
"$ref": "#/components/schemas/
|
|
221
|
+
"$ref": "#/components/schemas/OptionsRef"
|
|
222
222
|
},
|
|
223
223
|
"description": "Configuration values for the app components"
|
|
224
224
|
}
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
}
|
|
244
244
|
},
|
|
245
245
|
"schemas": {
|
|
246
|
-
"
|
|
246
|
+
"Options": {
|
|
247
247
|
"type": "object",
|
|
248
248
|
"description": "Options for the component configuration",
|
|
249
249
|
"required": [
|
|
@@ -259,6 +259,10 @@
|
|
|
259
259
|
"type": "string",
|
|
260
260
|
"description": "Human-readable label for the configuration option"
|
|
261
261
|
},
|
|
262
|
+
"required": {
|
|
263
|
+
"type": "boolean",
|
|
264
|
+
"description": "Flag to indicate if this option is required"
|
|
265
|
+
},
|
|
262
266
|
"description": {
|
|
263
267
|
"type": "string",
|
|
264
268
|
"description": "Detailed description of what this configuration option does"
|
|
@@ -274,7 +278,7 @@
|
|
|
274
278
|
}
|
|
275
279
|
}
|
|
276
280
|
},
|
|
277
|
-
"
|
|
281
|
+
"Option": {
|
|
278
282
|
"type": "object",
|
|
279
283
|
"required": [
|
|
280
284
|
"key",
|
|
@@ -291,7 +295,7 @@
|
|
|
291
295
|
}
|
|
292
296
|
}
|
|
293
297
|
},
|
|
294
|
-
"
|
|
298
|
+
"OptionsRef": {
|
|
295
299
|
"type": "object",
|
|
296
300
|
"required": [
|
|
297
301
|
"component_id",
|
|
@@ -305,7 +309,7 @@
|
|
|
305
309
|
"options": {
|
|
306
310
|
"type": "array",
|
|
307
311
|
"items": {
|
|
308
|
-
"$ref": "#/components/schemas/
|
|
312
|
+
"$ref": "#/components/schemas/Option"
|
|
309
313
|
}
|
|
310
314
|
}
|
|
311
315
|
}
|
|
@@ -384,12 +388,12 @@
|
|
|
384
388
|
"type": "string",
|
|
385
389
|
"description": "Unique identifier for the component"
|
|
386
390
|
},
|
|
387
|
-
"
|
|
391
|
+
"options": {
|
|
388
392
|
"type": "array",
|
|
389
393
|
"items": {
|
|
390
|
-
"$ref": "#/components/schemas/
|
|
394
|
+
"$ref": "#/components/schemas/Options"
|
|
391
395
|
},
|
|
392
|
-
"description": "List of
|
|
396
|
+
"description": "List of options for the app component"
|
|
393
397
|
}
|
|
394
398
|
}
|
|
395
399
|
},
|
|
@@ -431,6 +435,13 @@
|
|
|
431
435
|
"PORTAL_EXTENSION"
|
|
432
436
|
]
|
|
433
437
|
},
|
|
438
|
+
"origin": {
|
|
439
|
+
"type": "string",
|
|
440
|
+
"enum": [
|
|
441
|
+
"END_CUSTOMER_PORTAL",
|
|
442
|
+
"INSTALLER_PORTAL"
|
|
443
|
+
]
|
|
444
|
+
},
|
|
434
445
|
"configuration": {
|
|
435
446
|
"$ref": "#/components/schemas/PortalExtensionConfig"
|
|
436
447
|
}
|
|
@@ -564,11 +575,11 @@
|
|
|
564
575
|
"JourneyBlockConfig": {
|
|
565
576
|
"type": "object",
|
|
566
577
|
"required": [
|
|
567
|
-
"
|
|
578
|
+
"component_url",
|
|
568
579
|
"componentTag"
|
|
569
580
|
],
|
|
570
581
|
"properties": {
|
|
571
|
-
"
|
|
582
|
+
"component_url": {
|
|
572
583
|
"type": "string",
|
|
573
584
|
"description": "URL of the web component object"
|
|
574
585
|
},
|
|
@@ -607,17 +618,27 @@
|
|
|
607
618
|
"description": "User ID of the user who installed the app",
|
|
608
619
|
"readOnly": true
|
|
609
620
|
},
|
|
621
|
+
"updated_by": {
|
|
622
|
+
"type": "string",
|
|
623
|
+
"description": "User ID of the user who last updated the app",
|
|
624
|
+
"readOnly": true
|
|
625
|
+
},
|
|
626
|
+
"updated_at": {
|
|
627
|
+
"type": "string",
|
|
628
|
+
"description": "Timestamp of the last update",
|
|
629
|
+
"readOnly": true
|
|
630
|
+
},
|
|
610
631
|
"enabled": {
|
|
611
632
|
"readOnly": true,
|
|
612
633
|
"type": "boolean",
|
|
613
634
|
"default": true,
|
|
614
635
|
"description": "Flag to indicate if the app is enabled."
|
|
615
636
|
},
|
|
616
|
-
"
|
|
617
|
-
"description": "Configuration values for the app components",
|
|
637
|
+
"option_values": {
|
|
638
|
+
"description": "Configuration values for the app components options",
|
|
618
639
|
"type": "array",
|
|
619
640
|
"items": {
|
|
620
|
-
"$ref": "#/components/schemas/
|
|
641
|
+
"$ref": "#/components/schemas/OptionsRef"
|
|
621
642
|
}
|
|
622
643
|
}
|
|
623
644
|
}
|
|
@@ -656,6 +677,10 @@
|
|
|
656
677
|
"type": "string",
|
|
657
678
|
"readOnly": true
|
|
658
679
|
},
|
|
680
|
+
"updated_by": {
|
|
681
|
+
"type": "string",
|
|
682
|
+
"readOnly": true
|
|
683
|
+
},
|
|
659
684
|
"version": {
|
|
660
685
|
"type": "string",
|
|
661
686
|
"readOnly": true
|