@claspo/editor 1.0.10 → 1.0.12

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.10",
3
+ "version": "1.0.12",
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
@@ -108,15 +108,6 @@ exports.EsWidgetType = Object.freeze({
108
108
  TEASER: "TEASER",
109
109
  });
110
110
 
111
- exports.EsFormFieldType = Object.freeze({
112
- CHECKBOX_LIST: "CHECKBOX_LIST",
113
- DROPDOWN: "DROPDOWN",
114
- RADIO_GROUP: "RADIO_GROUP",
115
- GIFT_BOX: "GIFT_BOX",
116
- SCRATCH_CARD: "SCRATCH_CARD",
117
- WHEEL_OF_FORTUNE: "WHEEL_OF_FORTUNE",
118
- });
119
-
120
111
  exports.EsFormIntegrationType = Object.freeze({
121
112
  WEBHOOK: "webhook",
122
113
  EMBEDDED: "embedded",
package/src/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { ClPropertyPaneManifestModelName } from '@claspo/common/component-manifest/ComponentManifest.interface';
2
- import { ClBaseComponentI, ClBaseComponentI as ClBaseComponentI$1, ClComponentType, ClDocumentActionType, ClDocumentI as CommonDocumentI, ClDocumentSharedI as CommonDocumentSharedI } from '@claspo/common/document/Document.interface';
1
+ import { ClPropertyPaneManifestModelName } from '@claspo/common/component-manifest/PropertyPaneManifest.interface';
2
+ import { ClBaseComponentI, ClComponentType, ClDocumentActionType, ClDocumentI as CommonDocumentI, ClDocumentSharedI as CommonDocumentSharedI } from '@claspo/common/document/Document.interface';
3
3
  import { PrizePoolModelI, PrizePoolOptionI } from '@claspo/common/PrizePool.interface';
4
4
  import LayoutFactory from '@claspo/document-connector/layouts/LayoutFactory';
5
5
  import { Observable } from 'rxjs';
@@ -34,8 +34,6 @@ declare enum BaseListOrderOption {
34
34
  export interface MessageLanguageLocalisationI {
35
35
  native: string;
36
36
  en: string;
37
- ru: string;
38
- uk: string;
39
37
  [key: string]: string;
40
38
  }
41
39
  export interface ClDocumentI extends CommonDocumentI {
@@ -184,6 +182,15 @@ declare enum FormTestingStatus {
184
182
  TESTING = "TESTING",
185
183
  OFF = "OFF"
186
184
  }
185
+ export interface EsFormI {
186
+ id: number;
187
+ name: string;
188
+ publishStatus: FormPublishStatus;
189
+ createdDate: string;
190
+ updatedDate: string;
191
+ variants: EsFormVariantI[];
192
+ config: EsFormVariantI;
193
+ }
187
194
  export interface EsFormRestrictionI {
188
195
  BRANDED?: EsFormBrandingI;
189
196
  }
@@ -205,8 +212,6 @@ export interface EsFormVariantConfigI {
205
212
  placements?: EsFormVariantPlacementI[];
206
213
  prizePoolIds?: string[];
207
214
  }
208
- export interface EsFormFieldIntegrationI {
209
- }
210
215
  export declare enum EsWidgetLayoutType {
211
216
  BUILT_IN = "BUILT_IN",
212
217
  DETACHED = "DETACHED",
@@ -230,25 +235,6 @@ export interface EsFormVariantPlacementI {
230
235
  selector: string | null;
231
236
  insertType: PlacementInsertType | null;
232
237
  }
233
- declare enum EsFormFieldType {
234
- CHECKBOX_LIST = "CHECKBOX_LIST",
235
- DROPDOWN = "DROPDOWN",
236
- RADIO_GROUP = "RADIO_GROUP",
237
- GIFT_BOX = "GIFT_BOX",
238
- SCRATCH_CARD = "SCRATCH_CARD",
239
- WHEEL_OF_FORTUNE = "WHEEL_OF_FORTUNE"
240
- }
241
- export interface EsFormFieldIntegrationI {
242
- id: string;
243
- label: string;
244
- options: EsFormFieldIntegrationOptionI[];
245
- type?: EsFormFieldType;
246
- }
247
- export interface EsFormFieldIntegrationOptionI {
248
- id: string;
249
- label: string;
250
- exportId: string;
251
- }
252
238
  export interface EsFormVariantAppearanceI {
253
239
  id: number | string;
254
240
  language: string | null;
@@ -394,7 +380,6 @@ export interface WidgetRevisionPayloadI {
394
380
  }
395
381
  export interface WidgetRevisionPresentationI {
396
382
  type: EsWidgetLayoutType;
397
- fields: EsFormFieldIntegrationI[];
398
383
  }
399
384
  export interface WidgetRevisionAppearanceI {
400
385
  id: number | string;
@@ -425,7 +410,7 @@ export interface WidgetProjectConfigI {
425
410
  id: WidgetProjectConfigId;
426
411
  value: string;
427
412
  }
428
- declare enum WidgetProjectConfigId {
413
+ export declare enum WidgetProjectConfigId {
429
414
  ANNOYANCE_SAFEGUARD = "ANNOYANCE_SAFEGUARD",
430
415
  COUNTRY_CODES_PRIORITY = "COUNTRY_CODES_PRIORITY",
431
416
  CABINET_AB_TESTS = "CABINET_AB_TESTS"