@claspo/editor 1.0.11 → 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.11",
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
@@ -185,15 +185,11 @@ declare enum FormTestingStatus {
185
185
  export interface EsFormI {
186
186
  id: number;
187
187
  name: string;
188
- restrictions: EsFormRestrictionI;
189
188
  publishStatus: FormPublishStatus;
190
- testingStatus: FormTestingStatus;
191
189
  createdDate: string;
192
190
  updatedDate: string;
193
191
  variants: EsFormVariantI[];
194
- abTestId: number | null;
195
192
  config: EsFormVariantI;
196
- deleted: boolean;
197
193
  }
198
194
  export interface EsFormRestrictionI {
199
195
  BRANDED?: EsFormBrandingI;
@@ -216,8 +212,6 @@ export interface EsFormVariantConfigI {
216
212
  placements?: EsFormVariantPlacementI[];
217
213
  prizePoolIds?: string[];
218
214
  }
219
- export interface EsFormFieldIntegrationI {
220
- }
221
215
  export declare enum EsWidgetLayoutType {
222
216
  BUILT_IN = "BUILT_IN",
223
217
  DETACHED = "DETACHED",
@@ -241,25 +235,6 @@ export interface EsFormVariantPlacementI {
241
235
  selector: string | null;
242
236
  insertType: PlacementInsertType | null;
243
237
  }
244
- declare enum EsFormFieldType {
245
- CHECKBOX_LIST = "CHECKBOX_LIST",
246
- DROPDOWN = "DROPDOWN",
247
- RADIO_GROUP = "RADIO_GROUP",
248
- GIFT_BOX = "GIFT_BOX",
249
- SCRATCH_CARD = "SCRATCH_CARD",
250
- WHEEL_OF_FORTUNE = "WHEEL_OF_FORTUNE"
251
- }
252
- export interface EsFormFieldIntegrationI {
253
- id: string;
254
- label: string;
255
- options: EsFormFieldIntegrationOptionI[];
256
- type?: EsFormFieldType;
257
- }
258
- export interface EsFormFieldIntegrationOptionI {
259
- id: string;
260
- label: string;
261
- exportId: string;
262
- }
263
238
  export interface EsFormVariantAppearanceI {
264
239
  id: number | string;
265
240
  language: string | null;
@@ -405,7 +380,6 @@ export interface WidgetRevisionPayloadI {
405
380
  }
406
381
  export interface WidgetRevisionPresentationI {
407
382
  type: EsWidgetLayoutType;
408
- fields: EsFormFieldIntegrationI[];
409
383
  }
410
384
  export interface WidgetRevisionAppearanceI {
411
385
  id: number | string;
@@ -436,7 +410,7 @@ export interface WidgetProjectConfigI {
436
410
  id: WidgetProjectConfigId;
437
411
  value: string;
438
412
  }
439
- declare enum WidgetProjectConfigId {
413
+ export declare enum WidgetProjectConfigId {
440
414
  ANNOYANCE_SAFEGUARD = "ANNOYANCE_SAFEGUARD",
441
415
  COUNTRY_CODES_PRIORITY = "COUNTRY_CODES_PRIORITY",
442
416
  CABINET_AB_TESTS = "CABINET_AB_TESTS"