@claspo/editor 1.0.12 → 1.0.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claspo/editor",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "Claspo Editor SDK and types",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
package/src/index.js CHANGED
@@ -44,7 +44,7 @@ exports.ClComponentSyncState = Object.freeze({
44
44
  ONLY_THIS_CROSS_ENV_WHILE_VALUES_MATCH: "ONLY_THIS_CROSS_ENV_WHILE_VALUES_MATCH",
45
45
  });
46
46
 
47
- exports.PlacementInsertType = Object.freeze({
47
+ exports.WidgetPlacementInsertType = Object.freeze({
48
48
  BEFORE_BEGIN: "BEFORE_BEGIN",
49
49
  AFTER_BEGIN: "AFTER_BEGIN",
50
50
  BEFORE_END: "BEFORE_END",
@@ -76,7 +76,7 @@ exports.ContactMappingOptionType = Object.freeze({
76
76
  UNKNOWN: "unknown",
77
77
  });
78
78
 
79
- exports.FormPublishStatus = Object.freeze({
79
+ exports.WidgetPublishStatus = Object.freeze({
80
80
  FOR_ALL: "FOR_ALL",
81
81
  PAUSED: "PAUSED",
82
82
  DEBUG: "DEBUG",
@@ -87,53 +87,11 @@ exports.FormTestingStatus = Object.freeze({
87
87
  OFF: "OFF",
88
88
  });
89
89
 
90
- exports.EsWidgetLayoutType = Object.freeze({
91
- BUILT_IN: "BUILT_IN",
92
- DETACHED: "DETACHED",
93
- FLOATING_BOX: "FLOATING_BOX",
94
- FLOATING_BAR: "FLOATING_BAR",
95
- LAUNCHER: "LAUNCHER",
96
- CONTENT_LOCKER: "CONTENT_LOCKER",
97
- SLIDE_UP: "SLIDE_UP",
98
- POP_UP: "POP_UP",
99
- BOTTOM_BAR: "BOTTOM_BAR",
100
- });
101
-
102
- exports.EsWidgetType = Object.freeze({
103
- SUBSCRIPTION_FORM: "SUBSCRIPTION_FORM",
104
- INFORMER: "INFORMER",
105
- REQUEST_FORM: "REQUEST_FORM",
106
- LAUNCHER: "LAUNCHER",
107
- AGE_VERIFY: "AGE_VERIFY",
108
- TEASER: "TEASER",
109
- });
110
-
111
90
  exports.EsFormIntegrationType = Object.freeze({
112
91
  WEBHOOK: "webhook",
113
92
  EMBEDDED: "embedded",
114
93
  });
115
94
 
116
- exports.EsFormVariantIntegrationErrorCode = Object.freeze({
117
- NO_PLACEMENT: "NO_PLACEMENT",
118
- DELETED_SEGMENT: "DELETED_SEGMENT",
119
- DELETED_WELCOME_MESSAGE: "DELETED_WELCOME_MESSAGE",
120
- DELETED_WELCOME_EVENT_TYPE: "DELETED_WELCOME_EVENT_TYPE",
121
- DELETED_DOUBLE_OPT_IN_MESSAGE: "DELETED_DOUBLE_OPT_IN_MESSAGE",
122
- WRONG_CATEGORY_FOR_DOUBLE_OPT_IN_MESSAGE: "WRONG_CATEGORY_FOR_DOUBLE_OPT_IN_MESSAGE",
123
- });
124
-
125
- exports.EsFormIntegrationContactCollectingType = Object.freeze({
126
- NEW_ONLY: "NEW_ONLY",
127
- ALL: "ALL",
128
- DATA_FOR_EXISTING: "DATA_FOR_EXISTING",
129
- });
130
-
131
- exports.EsFormIntegrationActionName = Object.freeze({
132
- SEND_OPT_IN_MESSAGE: "sendOptInMessage",
133
- ADD_TO_SEGMENTS: "addToSegments",
134
- SEND_EVENT: "sendEvent",
135
- });
136
-
137
95
  exports.WidgetProjectConfigId = Object.freeze({
138
96
  ANNOYANCE_SAFEGUARD: "ANNOYANCE_SAFEGUARD",
139
97
  COUNTRY_CODES_PRIORITY: "COUNTRY_CODES_PRIORITY",
package/src/types.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import { ClPropertyPaneManifestModelName } from '@claspo/common/component-manifest/PropertyPaneManifest.interface';
2
2
  import { ClBaseComponentI, ClComponentType, ClDocumentActionType, ClDocumentI as CommonDocumentI, ClDocumentSharedI as CommonDocumentSharedI } from '@claspo/common/document/Document.interface';
3
+ import { LayoutType } from '@claspo/common/LayoutType';
3
4
  import { PrizePoolModelI, PrizePoolOptionI } from '@claspo/common/PrizePool.interface';
5
+ import { WidgetType } from '@claspo/common/WidgetType';
4
6
  import LayoutFactory from '@claspo/document-connector/layouts/LayoutFactory';
5
7
  import { Observable } from 'rxjs';
6
8
  declare enum BaseListSortOption {
@@ -64,7 +66,31 @@ export interface ClComponentSyncMapI {
64
66
  syncState: ClComponentSyncState | null;
65
67
  env?: ClPreviewEnvironment;
66
68
  }
67
- declare enum PlacementInsertType {
69
+ export interface BaseListDtoI<T> {
70
+ totalCount: number;
71
+ items: T[];
72
+ }
73
+ export interface UserInfoI {
74
+ userId: number;
75
+ userName: string;
76
+ language: string;
77
+ }
78
+ export interface ComponentTranslateMapI {
79
+ [propPath: string]: string;
80
+ }
81
+ export interface LanguageTranslateState {
82
+ [id: string]: ComponentTranslateMapI;
83
+ }
84
+ export interface TranslateRequestI {
85
+ json: TranslateRequestJsonI;
86
+ sourceLanguage: string;
87
+ targetLanguage: string;
88
+ }
89
+ export interface TranslateRequestJsonI {
90
+ widgetTranslations: LanguageTranslateState;
91
+ teaserTranslations?: LanguageTranslateState;
92
+ }
93
+ declare enum WidgetPlacementInsertType {
68
94
  BEFORE_BEGIN = "BEFORE_BEGIN",
69
95
  AFTER_BEGIN = "AFTER_BEGIN",
70
96
  BEFORE_END = "BEFORE_END",
@@ -132,36 +158,10 @@ export interface ContactMappingOptionLimitsI {
132
158
  MIN_VALUE?: number;
133
159
  ANNUAL?: boolean;
134
160
  }
135
- export interface IntegrationMappingI {
136
- fields: IntegrationMappingFieldI[];
137
- }
138
- export interface IntegrationMappingFieldI {
139
- source: string;
140
- target: string;
141
- type?: ContactMappingOptionType | "SUBSCRIPTION_CATEGORY" | null;
142
- format?: string;
143
- values_mapping?: IntegrationMappingFieldValuesMappingI;
144
- }
145
- export interface IntegrationMappingFieldValuesMappingI {
146
- [index: string]: string;
147
- }
148
- export interface IntegratedConfigI {
149
- doubleOptIn: boolean;
150
- contactCollectingType: EsFormIntegrationContactCollectingType;
151
- actions: EsFormIntegrationActionsI;
152
- errors?: EsFormVariantIntegrationErrorI[];
153
- }
154
- export interface UpdateIntegrationParamsI {
155
- name: string;
156
- integrationUuid: string;
157
- fullyConfigured: boolean;
158
- mapping: IntegrationMappingI;
159
- config: IntegratedConfigI;
160
- }
161
- export interface FormsListItemI {
161
+ export interface WidgetsListItemI {
162
162
  id: number;
163
163
  name: string;
164
- publishStatus: FormPublishStatus;
164
+ publishStatus: WidgetPublishStatus;
165
165
  testingStatus: FormTestingStatus;
166
166
  fullyConfigured: boolean;
167
167
  createdDate: string;
@@ -169,11 +169,11 @@ export interface FormsListItemI {
169
169
  draft: boolean;
170
170
  variantIds: number[];
171
171
  abTestId: number | null;
172
- config: EsFormVariantI;
172
+ config: WidgetVariantDtoI;
173
173
  restrictions?: EsFormRestrictionI;
174
174
  deleted?: boolean;
175
175
  }
176
- export declare enum FormPublishStatus {
176
+ export declare enum WidgetPublishStatus {
177
177
  FOR_ALL = "FOR_ALL",
178
178
  PAUSED = "PAUSED",// teaser disabled. Any other status means that teaser is enabled and status works as usual
179
179
  DEBUG = "DEBUG"
@@ -182,14 +182,14 @@ declare enum FormTestingStatus {
182
182
  TESTING = "TESTING",
183
183
  OFF = "OFF"
184
184
  }
185
- export interface EsFormI {
185
+ export interface WidgetModelI {
186
186
  id: number;
187
187
  name: string;
188
- publishStatus: FormPublishStatus;
188
+ publishStatus: WidgetPublishStatus;
189
189
  createdDate: string;
190
190
  updatedDate: string;
191
- variants: EsFormVariantI[];
192
- config: EsFormVariantI;
191
+ variants: WidgetVariantDtoI[];
192
+ config: WidgetVariantDtoI;
193
193
  }
194
194
  export interface EsFormRestrictionI {
195
195
  BRANDED?: EsFormBrandingI;
@@ -197,45 +197,26 @@ export interface EsFormRestrictionI {
197
197
  export interface EsFormBrandingI {
198
198
  reason?: string;
199
199
  }
200
- export interface EsFormVariantI {
200
+ export interface WidgetVariantDtoI {
201
201
  formId: number;
202
202
  id: number;
203
- config: EsFormVariantConfigI;
204
- appearances: EsFormVariantAppearanceI[];
203
+ config: WidgetVariantConfigDtoI;
204
+ appearances: WidgetAppearanceBriefI[];
205
205
  linkedToVariantId: number;
206
- type: EsWidgetType;
206
+ type: WidgetType;
207
207
  revision?: string;
208
208
  publishedRevision?: string;
209
209
  }
210
- export interface EsFormVariantConfigI {
211
- type: EsWidgetLayoutType;
212
- placements?: EsFormVariantPlacementI[];
210
+ export interface WidgetVariantConfigDtoI {
211
+ type: LayoutType;
212
+ placements?: WidgetPlacementI[];
213
213
  prizePoolIds?: string[];
214
214
  }
215
- export declare enum EsWidgetLayoutType {
216
- BUILT_IN = "BUILT_IN",
217
- DETACHED = "DETACHED",
218
- FLOATING_BOX = "FLOATING_BOX",
219
- FLOATING_BAR = "FLOATING_BAR",
220
- LAUNCHER = "LAUNCHER",
221
- CONTENT_LOCKER = "CONTENT_LOCKER",
222
- SLIDE_UP = "SLIDE_UP",
223
- POP_UP = "POP_UP",
224
- BOTTOM_BAR = "BOTTOM_BAR"
225
- }
226
- export declare enum EsWidgetType {
227
- SUBSCRIPTION_FORM = "SUBSCRIPTION_FORM",
228
- INFORMER = "INFORMER",
229
- REQUEST_FORM = "REQUEST_FORM",
230
- LAUNCHER = "LAUNCHER",
231
- AGE_VERIFY = "AGE_VERIFY",
232
- TEASER = "TEASER"
233
- }
234
- export interface EsFormVariantPlacementI {
215
+ export interface WidgetPlacementI {
235
216
  selector: string | null;
236
- insertType: PlacementInsertType | null;
217
+ insertType: WidgetPlacementInsertType | null;
237
218
  }
238
- export interface EsFormVariantAppearanceI {
219
+ export interface WidgetAppearanceBriefI {
239
220
  id: number | string;
240
221
  language: string | null;
241
222
  origin: boolean | null;
@@ -258,56 +239,7 @@ export interface EsFormIntegrationParamsI {
258
239
  uuid: string;
259
240
  consumers?: string[];
260
241
  }
261
- export interface EsFormVariantIntegrationErrorI {
262
- code: EsFormVariantIntegrationErrorCode;
263
- description: string;
264
- }
265
- declare enum EsFormVariantIntegrationErrorCode {
266
- NO_PLACEMENT = "NO_PLACEMENT",
267
- DELETED_SEGMENT = "DELETED_SEGMENT",
268
- DELETED_WELCOME_MESSAGE = "DELETED_WELCOME_MESSAGE",
269
- DELETED_WELCOME_EVENT_TYPE = "DELETED_WELCOME_EVENT_TYPE",
270
- DELETED_DOUBLE_OPT_IN_MESSAGE = "DELETED_DOUBLE_OPT_IN_MESSAGE",
271
- WRONG_CATEGORY_FOR_DOUBLE_OPT_IN_MESSAGE = "WRONG_CATEGORY_FOR_DOUBLE_OPT_IN_MESSAGE"
272
- }
273
- declare enum EsFormIntegrationContactCollectingType {
274
- NEW_ONLY = "NEW_ONLY",
275
- ALL = "ALL",
276
- DATA_FOR_EXISTING = "DATA_FOR_EXISTING"
277
- }
278
- export interface EsFormIntegrationActionsI {
279
- addToSegments: EsFormIntegrationActionI<EsFormIntegrationAddToSegmentsI>;
280
- sendOptInMessage?: EsFormIntegrationActionI<EsFormIntegrationSendOptInMessageI>;
281
- [key: string]: EsFormIntegrationActionI<EsFormIntegrationActionEventTypeI | EsFormIntegrationAddToSegmentsI | EsFormIntegrationSendOptInMessageI>;
282
- }
283
- export interface EsFormIntegrationActionMappingI {
284
- [key: string]: string;
285
- }
286
- export interface EsFormIntegrationActionEventTypeI {
287
- eventTypeId: number;
288
- mappings: EsFormIntegrationActionMappingI;
289
- }
290
- export interface EsFormIntegrationActionI<T = any> {
291
- name: EsFormIntegrationActionName;
292
- params: T;
293
- }
294
- declare enum EsFormIntegrationActionName {
295
- SEND_OPT_IN_MESSAGE = "sendOptInMessage",
296
- ADD_TO_SEGMENTS = "addToSegments",
297
- SEND_EVENT = "sendEvent"
298
- }
299
- export interface EsFormIntegrationSendOptInMessageI {
300
- messageId: number | null;
301
- redirectAfterClick: string | null;
302
- welcomeEventTypeId: number | null;
303
- welcomeMessageId: number | null;
304
- runWelcomeSeriesToNewOnly: boolean;
305
- }
306
- export interface EsFormIntegrationAddToSegmentsI {
307
- segmentsIds: number[];
308
- newOnly: boolean;
309
- }
310
- export interface EsFormAppearanceI {
242
+ export interface WidgetAppearanceI {
311
243
  id: number | string;
312
244
  origin: boolean;
313
245
  language: string | null;
@@ -319,67 +251,40 @@ export interface EsFormAppearanceI {
319
251
  revision?: string;
320
252
  publishedRevision?: string;
321
253
  }
322
- export interface FormLanguageI {
254
+ export interface WidgetLanguageI {
323
255
  languageCode: string;
324
256
  name: string;
325
257
  localisation: MessageLanguageLocalisationI;
326
258
  }
327
- export interface FormVariantI {
259
+ export interface WidgetVariantI {
328
260
  formId: number;
329
261
  id: number;
330
- config: FormVariantConfigI;
331
- appearances: EsFormVariantAppearanceI[];
262
+ config: WidgetVariantConfigI;
263
+ appearances: WidgetAppearanceBriefI[];
332
264
  linkedToVariantId: number | null;
333
- type: EsWidgetType;
265
+ type: WidgetType;
334
266
  revision: string | null;
335
267
  publishedRevision: string | null;
336
268
  }
337
- export interface FormVariantConfigI {
338
- type: EsWidgetLayoutType;
339
- placements: EsFormVariantPlacementI[];
269
+ export interface WidgetVariantConfigI {
270
+ type: LayoutType;
271
+ placements: WidgetPlacementI[];
340
272
  prizePoolIds?: string[];
341
273
  }
342
- export interface BaseListDtoI<T> {
343
- totalCount: number;
344
- items: T[];
345
- }
346
- export interface UserInfoI {
347
- userId: number;
348
- userName: string;
349
- language: string;
350
- }
351
- export interface ComponentTranslateMapI {
352
- [propPath: string]: string;
353
- }
354
- export interface LanguageTranslateState {
355
- [id: string]: ComponentTranslateMapI;
356
- }
357
- export interface TranslateRequestI {
358
- json: TranslateRequestJsonI;
359
- sourceLanguage: string;
360
- targetLanguage: string;
361
- }
362
- export interface TranslateRequestJsonI {
363
- widgetTranslations: LanguageTranslateState;
364
- teaserTranslations?: LanguageTranslateState;
365
- }
366
274
  export interface CreateWidgetRevisionRequestI {
367
275
  changesSaved: boolean;
368
276
  payload: WidgetRevisionPayloadI;
369
277
  }
370
278
  export interface WidgetRevisionPayloadI {
371
- type: EsWidgetType;
279
+ type: WidgetType;
372
280
  presentation: WidgetRevisionPresentationI;
373
- integration: UpdateIntegrationParamsI | null;
374
- linkedTo: number | null;
375
281
  appearances: WidgetRevisionAppearanceI[];
376
282
  prizePoolIds?: string[];
377
- publishStatus?: FormPublishStatus;
378
- templateId?: number;
379
- linkedToRevision?: string | null;
283
+ publishStatus?: WidgetPublishStatus;
284
+ linkedTo?: number | null;
380
285
  }
381
286
  export interface WidgetRevisionPresentationI {
382
- type: EsWidgetLayoutType;
287
+ type: LayoutType;
383
288
  }
384
289
  export interface WidgetRevisionAppearanceI {
385
290
  id: number | string;
@@ -416,16 +321,16 @@ export declare enum WidgetProjectConfigId {
416
321
  CABINET_AB_TESTS = "CABINET_AB_TESTS"
417
322
  }
418
323
  export interface BaseFormsListRequestParamsI {
419
- layoutTypes?: EsWidgetLayoutType[];
324
+ layoutTypes?: LayoutType[];
420
325
  order?: BaseListOrderOption;
421
326
  search?: string;
422
327
  offset?: number;
423
328
  limit?: number;
424
329
  sort?: BaseListSortOption;
425
- types?: EsWidgetType[];
330
+ types?: WidgetType[];
426
331
  projectId?: number;
427
332
  filters?: FormListRequestFilter;
428
- publishStatus?: FormPublishStatus;
333
+ publishStatus?: WidgetPublishStatus;
429
334
  publishDateFrom?: string;
430
335
  publishDateTo?: string;
431
336
  withDeleted?: boolean;
@@ -439,14 +344,14 @@ declare enum FormListRequestFilter {
439
344
  export interface CreateFormParamsI {
440
345
  name: string;
441
346
  variant: CreateFormParamsVariantI;
442
- publishStatus?: FormPublishStatus;
347
+ publishStatus?: WidgetPublishStatus;
443
348
  }
444
349
  export interface CreateFormParamsVariantI {
445
350
  description: string;
446
- type: EsWidgetType;
447
- config: EsFormVariantConfigI;
351
+ type: WidgetType;
352
+ config: WidgetVariantConfigDtoI;
448
353
  integration: EsFormVariantIntegrationV2I | null;
449
- appearances: EsFormAppearanceI[];
354
+ appearances: WidgetAppearanceI[];
450
355
  draft: boolean;
451
356
  linkedToVariantId?: number;
452
357
  }
@@ -604,7 +509,7 @@ export interface EditorConfigI {
604
509
  /** Available languages for multilingual versions of the same widget
605
510
  * @default A set of popular languages will be used
606
511
  * */
607
- languagesForMultilingualVersions?: FormLanguageI[];
512
+ languagesForMultilingualVersions?: WidgetLanguageI[];
608
513
  /**
609
514
  * Callback fired on initial data loading errors.
610
515
  * If not provided, default error UI will be shown.
@@ -772,7 +677,7 @@ export interface TeaserFeatureConfigI {
772
677
  /** Default document model for new teasers */
773
678
  defaultDocumentModel: ClDocumentI;
774
679
  /** Layouts where teaser is available */
775
- enabledForLayouts?: EsWidgetLayoutType[];
680
+ enabledForLayouts?: LayoutType[];
776
681
  /** Component panel configuration for teaser editor */
777
682
  availableComponentsPanel?: AvailableComponentsPanelConfigI;
778
683
  }
@@ -781,18 +686,18 @@ export interface TeaserFeatureConfigI {
781
686
  */
782
687
  export interface CloseEditorCallbackPayloadI {
783
688
  /** Current widget variant data */
784
- variant: FormVariantI;
689
+ variant: WidgetVariantI;
785
690
  }
786
691
  /**
787
692
  * Payload passed to {@link EditorConfigI.getRevisionPayloadCallback}.
788
693
  */
789
694
  export interface GetRevisionPayloadCallbackPayloadI {
790
695
  /** Current widget variant */
791
- variant: FormVariantI;
696
+ variant: WidgetVariantI;
792
697
  /** All widget appearances (desktop, mobile, etc.) */
793
- appearances: EsFormAppearanceI[];
698
+ appearances: WidgetAppearanceI[];
794
699
  /** Current publish status */
795
- publishStatus: FormPublishStatus | null;
700
+ publishStatus: WidgetPublishStatus | null;
796
701
  }
797
702
  /**
798
703
  * Payload passed to {@link EditorConfigI.initialLoadErrorCallback}.
@@ -1038,7 +943,7 @@ export interface ResolvedDataI {
1038
943
  /** Teaser (minimized widget) data, if enabled */
1039
944
  teaserData: ResolvedWidgetDataI | null;
1040
945
  /** List of widgets that can be linked */
1041
- linkedWidgets: FormsListItemI[];
946
+ linkedWidgets: WidgetsListItemI[];
1042
947
  /** Prize pools for gamification widgets */
1043
948
  prizePools?: PrizePoolModelI[];
1044
949
  }
@@ -1047,15 +952,15 @@ export interface ResolvedDataI {
1047
952
  */
1048
953
  export interface ResolvedWidgetDataI {
1049
954
  /** Widget variant (form) data */
1050
- variant: EsFormVariantI;
955
+ variant: WidgetVariantDtoI;
1051
956
  /** All appearances (desktop, mobile, etc.) */
1052
- appearances: EsFormAppearanceI[];
957
+ appearances: WidgetAppearanceI[];
1053
958
  /** Latest saved revision */
1054
959
  latestRevision: WidgetRevisionI | null;
1055
960
  /** Currently loaded revision */
1056
961
  currentRevision: WidgetRevisionI | null;
1057
962
  /** Current publish status */
1058
- publishStatus: FormPublishStatus | null;
963
+ publishStatus: WidgetPublishStatus | null;
1059
964
  }
1060
965
  /**
1061
966
  * Data passed to {@link EditorApiConfigI.saveWidgetData}.
@@ -1078,15 +983,15 @@ export interface DataToSaveI {
1078
983
  */
1079
984
  export interface WidgetDataToSaveI {
1080
985
  /** Original appearances (for comparison) */
1081
- pristineAppearances: EsFormAppearanceI[];
986
+ pristineAppearances: WidgetAppearanceI[];
1082
987
  /** Modified appearances */
1083
- updatedAppearances: EsFormAppearanceI[];
988
+ updatedAppearances: WidgetAppearanceI[];
1084
989
  /** Original variant (for comparison) */
1085
- pristineVariant: FormVariantI;
990
+ pristineVariant: WidgetVariantI;
1086
991
  /** Modified variant */
1087
- updatedVariant: FormVariantI;
992
+ updatedVariant: WidgetVariantI;
1088
993
  /** Current publish status */
1089
- publishStatus: FormPublishStatus | null;
994
+ publishStatus: WidgetPublishStatus | null;
1090
995
  }
1091
996
  /**
1092
997
  * HTTP API configuration for all editor operations.
@@ -1110,11 +1015,11 @@ export interface EditorApiConfigI {
1110
1015
  /** Save widget data (appearances, variant, configs) */
1111
1016
  saveWidgetData: (data: DataToSaveI) => Observable<void> | Promise<void>;
1112
1017
  /** Fetch appearances for a specific widget */
1113
- getWidgetAppearances: (payload: GetWidgetAppearancesPayloadI) => Observable<EsFormAppearanceI[]> | Promise<EsFormAppearanceI[]>;
1018
+ getWidgetAppearances: (payload: GetWidgetAppearancesPayloadI) => Observable<WidgetAppearanceI[]> | Promise<WidgetAppearanceI[]>;
1114
1019
  /** Create a new widget revision (save point) */
1115
1020
  createWidgetRevision: (payload: CreateWidgetRevisionPayloadI) => Observable<CreateWidgetRevisionResponseI> | Promise<CreateWidgetRevisionResponseI>;
1116
1021
  /** Fetch list of widgets for linking */
1117
- getWidgetsList: (params: BaseFormsListRequestParamsI) => Observable<BaseListDtoI<FormsListItemI>> | Promise<BaseListDtoI<FormsListItemI>>;
1022
+ getWidgetsList: (params: BaseFormsListRequestParamsI) => Observable<BaseListDtoI<WidgetsListItemI>> | Promise<BaseListDtoI<WidgetsListItemI>>;
1118
1023
  /** Get files from common directory (icons, backgrounds, etc.) */
1119
1024
  getFilesFromCommonDir: (payload: GetFilesFromCommonDirPayloadI) => Observable<Array<{
1120
1025
  url: string;
@@ -1259,9 +1164,9 @@ export interface GetTemplatePayloadI {
1259
1164
  */
1260
1165
  export interface CreateWidgetResponseI {
1261
1166
  /** Created widget variant */
1262
- variant: FormVariantI;
1167
+ variant: WidgetVariantI;
1263
1168
  /** Created widget appearances */
1264
- appearances: EsFormAppearanceI[];
1169
+ appearances: WidgetAppearanceI[];
1265
1170
  }
1266
1171
  /**
1267
1172
  * Logo configuration for the editor header.
@@ -1307,8 +1212,10 @@ export interface ClContactMappingOptionI {
1307
1212
  }
1308
1213
 
1309
1214
  export {
1215
+ LayoutType,
1310
1216
  PrizePoolModelI,
1311
1217
  PrizePoolOptionI,
1218
+ WidgetType,
1312
1219
  };
1313
1220
 
1314
1221
  export {};