@claspo/editor 1.0.12 → 1.0.13

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.13",
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
@@ -113,27 +113,6 @@ exports.EsFormIntegrationType = Object.freeze({
113
113
  EMBEDDED: "embedded",
114
114
  });
115
115
 
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
116
  exports.WidgetProjectConfigId = Object.freeze({
138
117
  ANNOYANCE_SAFEGUARD: "ANNOYANCE_SAFEGUARD",
139
118
  COUNTRY_CODES_PRIORITY: "COUNTRY_CODES_PRIORITY",
package/src/types.d.ts CHANGED
@@ -132,32 +132,6 @@ export interface ContactMappingOptionLimitsI {
132
132
  MIN_VALUE?: number;
133
133
  ANNUAL?: boolean;
134
134
  }
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
135
  export interface FormsListItemI {
162
136
  id: number;
163
137
  name: string;
@@ -258,55 +232,6 @@ export interface EsFormIntegrationParamsI {
258
232
  uuid: string;
259
233
  consumers?: string[];
260
234
  }
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
235
  export interface EsFormAppearanceI {
311
236
  id: number | string;
312
237
  origin: boolean;
@@ -370,13 +295,10 @@ export interface CreateWidgetRevisionRequestI {
370
295
  export interface WidgetRevisionPayloadI {
371
296
  type: EsWidgetType;
372
297
  presentation: WidgetRevisionPresentationI;
373
- integration: UpdateIntegrationParamsI | null;
374
- linkedTo: number | null;
375
298
  appearances: WidgetRevisionAppearanceI[];
376
299
  prizePoolIds?: string[];
377
300
  publishStatus?: FormPublishStatus;
378
- templateId?: number;
379
- linkedToRevision?: string | null;
301
+ linkedTo?: number | null;
380
302
  }
381
303
  export interface WidgetRevisionPresentationI {
382
304
  type: EsWidgetLayoutType;