@erxes/api-shared 3.2.21-1 → 3.2.22-1

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.
Files changed (29) hide show
  1. package/core-modules/dist/erxes-api-shared-core-modules.cjs.dev.js +512 -8
  2. package/core-modules/dist/erxes-api-shared-core-modules.cjs.prod.js +512 -8
  3. package/core-modules/dist/erxes-api-shared-core-modules.esm.js +507 -10
  4. package/dist/declarations/src/core-modules/automations/conditionals.d.ts +59 -0
  5. package/dist/declarations/src/core-modules/automations/conditionals.d.ts.map +1 -0
  6. package/dist/declarations/src/core-modules/automations/definitions/executions.d.ts +10 -0
  7. package/dist/declarations/src/core-modules/automations/definitions/executions.d.ts.map +1 -1
  8. package/dist/declarations/src/core-modules/automations/index.d.ts +1 -0
  9. package/dist/declarations/src/core-modules/automations/index.d.ts.map +1 -1
  10. package/dist/declarations/src/core-modules/automations/zodTypes.d.ts +40 -0
  11. package/dist/declarations/src/core-modules/automations/zodTypes.d.ts.map +1 -1
  12. package/dist/declarations/src/core-modules/common/eventHandlers/createEventHandlers.d.ts.map +1 -1
  13. package/dist/declarations/src/core-modules/segments/joinChanges.d.ts +5 -1
  14. package/dist/declarations/src/core-modules/segments/joinChanges.d.ts.map +1 -1
  15. package/dist/{start-plugin-a2f6eca9.esm.js → start-plugin-2b3e89f5.esm.js} +73 -59
  16. package/dist/{start-plugin-b095acca.cjs.prod.js → start-plugin-46baacee.cjs.prod.js} +73 -58
  17. package/dist/{start-plugin-7dc096bc.cjs.dev.js → start-plugin-6687b329.cjs.dev.js} +73 -58
  18. package/package.json +1 -1
  19. package/src/core-modules/automations/conditionals.test.ts +302 -0
  20. package/src/core-modules/automations/conditionals.ts +403 -0
  21. package/src/core-modules/automations/definitions/executions.ts +3 -0
  22. package/src/core-modules/automations/index.ts +1 -0
  23. package/src/core-modules/automations/zodTypes.ts +1 -0
  24. package/src/core-modules/common/eventHandlers/createEventHandlers.ts +20 -2
  25. package/src/core-modules/segments/joinChanges.test.ts +62 -0
  26. package/src/core-modules/segments/joinChanges.ts +26 -11
  27. package/utils/dist/erxes-api-shared-utils.cjs.dev.js +1 -1
  28. package/utils/dist/erxes-api-shared-utils.cjs.prod.js +1 -1
  29. package/utils/dist/erxes-api-shared-utils.esm.js +2 -2
@@ -0,0 +1,59 @@
1
+ import { IAutomationExecution } from "./definitions/executions.js";
2
+ /**
3
+ * A field whose value depends on the run holds a token instead of a value;
4
+ * the rules behind it live in the action config under this key. The engine
5
+ * swaps tokens for the first matching row before the action ever sees its
6
+ * config, so no action has to know conditionals exist.
7
+ */
8
+ export declare const AUTOMATION_CONDITIONALS_KEY = "_conditionals";
9
+ export declare const formatConditionalToken: (id: string) => string;
10
+ export declare const parseConditionalToken: (value: unknown) => string | null;
11
+ export type TAutomationValueCondition = {
12
+ kind: 'value';
13
+ left: string;
14
+ operator: string;
15
+ right?: string;
16
+ meta?: Record<string, unknown>;
17
+ };
18
+ export type TAutomationSegmentCondition = {
19
+ kind: 'segment';
20
+ segmentId: string;
21
+ };
22
+ export type TAutomationCondition = TAutomationValueCondition | TAutomationSegmentCondition;
23
+ export type TAutomationConditionalRow = {
24
+ id: string;
25
+ conjunction?: 'and' | 'or';
26
+ conditions: TAutomationCondition[];
27
+ values: Record<string, unknown>;
28
+ };
29
+ export type TAutomationConditional = {
30
+ keys: string[];
31
+ label?: string;
32
+ rows: TAutomationConditionalRow[];
33
+ otherwise: Record<string, unknown>;
34
+ };
35
+ export type TAutomationConditionals = Record<string, TAutomationConditional>;
36
+ export declare const AUTOMATION_UNARY_OPERATORS: string[];
37
+ /** Split and conditional values share one meaning per operator. */
38
+ export declare const isAutomationConditionMatched: (actualValue: unknown, operator: string | undefined, expectedValue: unknown) => boolean;
39
+ /** Problems that keep a conditional from running; empty when it can. */
40
+ export declare const validateAutomationConditional: (conditional: TAutomationConditional, { requiredKeys }?: {
41
+ requiredKeys?: string[];
42
+ }) => string[];
43
+ /**
44
+ * Returns the config the action should run with: every token replaced by its
45
+ * first matching row (or otherwise), the conditionals key removed, and which
46
+ * row each conditional used. Tokens without a conditional are reported, never
47
+ * passed through as text.
48
+ */
49
+ export declare const applyAutomationConditionals: ({ subdomain, execution, config, isInSegment, }: {
50
+ subdomain: string;
51
+ execution: IAutomationExecution;
52
+ config: Record<string, unknown> | undefined;
53
+ isInSegment: (segmentId: string) => Promise<boolean>;
54
+ }) => Promise<{
55
+ config: Record<string, unknown>;
56
+ matches: Record<string, string>;
57
+ missing: string[];
58
+ }>;
59
+ //# sourceMappingURL=conditionals.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conditionals.d.ts","sourceRoot":"../../../../../src/core-modules/automations","sources":["conditionals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,oCAAiC;AAGhE;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,kBAAkB,CAAC;AAI3D,eAAO,MAAM,sBAAsB,GAAI,IAAI,MAAM,WAAuB,CAAC;AAGzE,eAAO,MAAM,qBAAqB,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,IAQ/D,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,IAAI,EAAE,SAAS,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAC5B,yBAAyB,GACzB,2BAA2B,CAAC;AAEhC,MAAM,MAAM,yBAAyB,GAAG;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,oBAAoB,EAAE,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,yBAAyB,EAAE,CAAC;IAClC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;AAG7E,eAAO,MAAM,0BAA0B,UAOtC,CAAC;AA4BF,mEAAmE;AACnE,eAAO,MAAM,4BAA4B,GACvC,aAAa,OAAO,EACpB,UAAU,MAAM,GAAG,SAAS,EAC5B,eAAe,OAAO,YAsDvB,CAAC;AAEF,wEAAwE;AACxE,eAAO,MAAM,6BAA6B,GACxC,aAAa,sBAAsB,EACnC,mBAAuB;IAAE,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;CAAO,aAwDxD,CAAC;AAqFF;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,GAAU,gDAK/C;IACD,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,oBAAoB,CAAC;IAChC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IAC5C,WAAW,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CACtD;YAmFiC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;EAIxD,CAAC"}
@@ -15,6 +15,7 @@ export interface IAutomationExecAction {
15
15
  skipReason?: string;
16
16
  attempt?: number;
17
17
  childExecutionId?: string;
18
+ conditionalMatches?: Record<string, string>;
18
19
  jobId?: string;
19
20
  queuedAt?: Date | string;
20
21
  expiresAt?: Date | string;
@@ -86,6 +87,7 @@ export declare const automationExecutionSchema: Schema<any, import("mongoose").M
86
87
  actionId?: string | null | undefined;
87
88
  actionConfig?: any;
88
89
  skipReason?: string | null | undefined;
90
+ conditionalMatches?: any;
89
91
  attempt?: number | null | undefined;
90
92
  queuedAt?: NativeDate | null | undefined;
91
93
  expiresAt?: NativeDate | null | undefined;
@@ -104,6 +106,7 @@ export declare const automationExecutionSchema: Schema<any, import("mongoose").M
104
106
  actionId?: string | null | undefined;
105
107
  actionConfig?: any;
106
108
  skipReason?: string | null | undefined;
109
+ conditionalMatches?: any;
107
110
  attempt?: number | null | undefined;
108
111
  queuedAt?: NativeDate | null | undefined;
109
112
  expiresAt?: NativeDate | null | undefined;
@@ -122,6 +125,7 @@ export declare const automationExecutionSchema: Schema<any, import("mongoose").M
122
125
  actionId?: string | null | undefined;
123
126
  actionConfig?: any;
124
127
  skipReason?: string | null | undefined;
128
+ conditionalMatches?: any;
125
129
  attempt?: number | null | undefined;
126
130
  queuedAt?: NativeDate | null | undefined;
127
131
  expiresAt?: NativeDate | null | undefined;
@@ -167,6 +171,7 @@ export declare const automationExecutionSchema: Schema<any, import("mongoose").M
167
171
  actionId?: string | null | undefined;
168
172
  actionConfig?: any;
169
173
  skipReason?: string | null | undefined;
174
+ conditionalMatches?: any;
170
175
  attempt?: number | null | undefined;
171
176
  queuedAt?: NativeDate | null | undefined;
172
177
  expiresAt?: NativeDate | null | undefined;
@@ -185,6 +190,7 @@ export declare const automationExecutionSchema: Schema<any, import("mongoose").M
185
190
  actionId?: string | null | undefined;
186
191
  actionConfig?: any;
187
192
  skipReason?: string | null | undefined;
193
+ conditionalMatches?: any;
188
194
  attempt?: number | null | undefined;
189
195
  queuedAt?: NativeDate | null | undefined;
190
196
  expiresAt?: NativeDate | null | undefined;
@@ -203,6 +209,7 @@ export declare const automationExecutionSchema: Schema<any, import("mongoose").M
203
209
  actionId?: string | null | undefined;
204
210
  actionConfig?: any;
205
211
  skipReason?: string | null | undefined;
212
+ conditionalMatches?: any;
206
213
  attempt?: number | null | undefined;
207
214
  queuedAt?: NativeDate | null | undefined;
208
215
  expiresAt?: NativeDate | null | undefined;
@@ -248,6 +255,7 @@ export declare const automationExecutionSchema: Schema<any, import("mongoose").M
248
255
  actionId?: string | null | undefined;
249
256
  actionConfig?: any;
250
257
  skipReason?: string | null | undefined;
258
+ conditionalMatches?: any;
251
259
  attempt?: number | null | undefined;
252
260
  queuedAt?: NativeDate | null | undefined;
253
261
  expiresAt?: NativeDate | null | undefined;
@@ -266,6 +274,7 @@ export declare const automationExecutionSchema: Schema<any, import("mongoose").M
266
274
  actionId?: string | null | undefined;
267
275
  actionConfig?: any;
268
276
  skipReason?: string | null | undefined;
277
+ conditionalMatches?: any;
269
278
  attempt?: number | null | undefined;
270
279
  queuedAt?: NativeDate | null | undefined;
271
280
  expiresAt?: NativeDate | null | undefined;
@@ -284,6 +293,7 @@ export declare const automationExecutionSchema: Schema<any, import("mongoose").M
284
293
  actionId?: string | null | undefined;
285
294
  actionConfig?: any;
286
295
  skipReason?: string | null | undefined;
296
+ conditionalMatches?: any;
287
297
  attempt?: number | null | undefined;
288
298
  queuedAt?: NativeDate | null | undefined;
289
299
  expiresAt?: NativeDate | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"executions.d.ts","sourceRoot":"../../../../../../src/core-modules/automations/definitions","sources":["executions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,sCAAmC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EACH,SAAS,GACT,SAAS,GACT,OAAO,GACP,SAAS,GACT,QAAQ,GACR,SAAS,GACT,SAAS,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,E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AAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,4BACf,SAAQ,oBAAoB,EAC1B,QAAQ;IACV,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,2BAA2B;;;;;;;;CASvC,CAAC;AAiCF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCpC,CAAC"}
1
+ {"version":3,"file":"executions.d.ts","sourceRoot":"../../../../../../src/core-modules/automations/definitions","sources":["executions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,sCAAmC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EACH,SAAS,GACT,SAAS,GACT,OAAO,GACP,SAAS,GACT,QAAQ,GACR,SAAS,GACT,SAAS,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAA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AAC,EAAE,GAAG,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,4BACf,SAAQ,oBAAoB,EAC1B,QAAQ;IACV,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,2BAA2B;;;;;;;;CASvC,CAAC;AAkCF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCpC,CAAC"}
@@ -11,4 +11,5 @@ export * from "./zodTypes.js";
11
11
  export * from "./sendAutomationMessage.js";
12
12
  export * from "./segmentMembership.js";
13
13
  export * from "./reEnrollment.js";
14
+ export * from "./conditionals.js";
14
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"../../../../../src/core-modules/automations","sources":["index.ts"],"names":[],"mappings":"AAAA,2BAAwB;AACxB,8CAA2C;AAC3C,uCAAoC;AACpC,mCAAgC;AAChC,+BAA4B;AAC5B,2BAAwB;AACxB,uCAA8B;AAC9B,qCAAkC;AAClC,wCAAqC;AACrC,8BAA2B;AAC3B,2CAAwC;AACxC,uCAAoC;AACpC,kCAA+B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"../../../../../src/core-modules/automations","sources":["index.ts"],"names":[],"mappings":"AAAA,2BAAwB;AACxB,8CAA2C;AAC3C,uCAAoC;AACpC,mCAAgC;AAChC,+BAA4B;AAC5B,2BAAwB;AACxB,uCAA8B;AAC9B,qCAAkC;AAClC,wCAAqC;AACrC,8BAA2B;AAC3B,2CAAwC;AACxC,uCAAoC;AACpC,kCAA+B;AAC/B,kCAA+B"}
@@ -22,6 +22,7 @@ export declare const AutomationExecActionInput: z.ZodObject<{
22
22
  nextActionId: z.ZodOptional<z.ZodString>;
23
23
  result: z.ZodOptional<z.ZodAny>;
24
24
  skipReason: z.ZodOptional<z.ZodString>;
25
+ conditionalMatches: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
25
26
  attempt: z.ZodOptional<z.ZodNumber>;
26
27
  jobId: z.ZodOptional<z.ZodString>;
27
28
  queuedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
@@ -39,6 +40,7 @@ export declare const AutomationExecActionInput: z.ZodObject<{
39
40
  finishedAt?: string | undefined;
40
41
  actionConfig?: any;
41
42
  skipReason?: string | undefined;
43
+ conditionalMatches?: Record<string, string> | undefined;
42
44
  attempt?: number | undefined;
43
45
  queuedAt?: string | Date | undefined;
44
46
  expiresAt?: string | Date | undefined;
@@ -55,6 +57,7 @@ export declare const AutomationExecActionInput: z.ZodObject<{
55
57
  finishedAt?: string | undefined;
56
58
  actionConfig?: any;
57
59
  skipReason?: string | undefined;
60
+ conditionalMatches?: Record<string, string> | undefined;
58
61
  attempt?: number | undefined;
59
62
  queuedAt?: string | Date | undefined;
60
63
  expiresAt?: string | Date | undefined;
@@ -103,6 +106,7 @@ export declare const AutomationExecutionInput: z.ZodObject<{
103
106
  nextActionId: z.ZodOptional<z.ZodString>;
104
107
  result: z.ZodOptional<z.ZodAny>;
105
108
  skipReason: z.ZodOptional<z.ZodString>;
109
+ conditionalMatches: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
106
110
  attempt: z.ZodOptional<z.ZodNumber>;
107
111
  jobId: z.ZodOptional<z.ZodString>;
108
112
  queuedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
@@ -120,6 +124,7 @@ export declare const AutomationExecutionInput: z.ZodObject<{
120
124
  finishedAt?: string | undefined;
121
125
  actionConfig?: any;
122
126
  skipReason?: string | undefined;
127
+ conditionalMatches?: Record<string, string> | undefined;
123
128
  attempt?: number | undefined;
124
129
  queuedAt?: string | Date | undefined;
125
130
  expiresAt?: string | Date | undefined;
@@ -136,6 +141,7 @@ export declare const AutomationExecutionInput: z.ZodObject<{
136
141
  finishedAt?: string | undefined;
137
142
  actionConfig?: any;
138
143
  skipReason?: string | undefined;
144
+ conditionalMatches?: Record<string, string> | undefined;
139
145
  attempt?: number | undefined;
140
146
  queuedAt?: string | Date | undefined;
141
147
  expiresAt?: string | Date | undefined;
@@ -177,6 +183,7 @@ export declare const AutomationExecutionInput: z.ZodObject<{
177
183
  finishedAt?: string | undefined;
178
184
  actionConfig?: any;
179
185
  skipReason?: string | undefined;
186
+ conditionalMatches?: Record<string, string> | undefined;
180
187
  attempt?: number | undefined;
181
188
  queuedAt?: string | Date | undefined;
182
189
  expiresAt?: string | Date | undefined;
@@ -218,6 +225,7 @@ export declare const AutomationExecutionInput: z.ZodObject<{
218
225
  finishedAt?: string | undefined;
219
226
  actionConfig?: any;
220
227
  skipReason?: string | undefined;
228
+ conditionalMatches?: Record<string, string> | undefined;
221
229
  attempt?: number | undefined;
222
230
  queuedAt?: string | Date | undefined;
223
231
  expiresAt?: string | Date | undefined;
@@ -342,6 +350,7 @@ export declare const ReceiveActionsInputData: z.ZodObject<{
342
350
  nextActionId: z.ZodOptional<z.ZodString>;
343
351
  result: z.ZodOptional<z.ZodAny>;
344
352
  skipReason: z.ZodOptional<z.ZodString>;
353
+ conditionalMatches: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
345
354
  attempt: z.ZodOptional<z.ZodNumber>;
346
355
  jobId: z.ZodOptional<z.ZodString>;
347
356
  queuedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
@@ -359,6 +368,7 @@ export declare const ReceiveActionsInputData: z.ZodObject<{
359
368
  finishedAt?: string | undefined;
360
369
  actionConfig?: any;
361
370
  skipReason?: string | undefined;
371
+ conditionalMatches?: Record<string, string> | undefined;
362
372
  attempt?: number | undefined;
363
373
  queuedAt?: string | Date | undefined;
364
374
  expiresAt?: string | Date | undefined;
@@ -375,6 +385,7 @@ export declare const ReceiveActionsInputData: z.ZodObject<{
375
385
  finishedAt?: string | undefined;
376
386
  actionConfig?: any;
377
387
  skipReason?: string | undefined;
388
+ conditionalMatches?: Record<string, string> | undefined;
378
389
  attempt?: number | undefined;
379
390
  queuedAt?: string | Date | undefined;
380
391
  expiresAt?: string | Date | undefined;
@@ -416,6 +427,7 @@ export declare const ReceiveActionsInputData: z.ZodObject<{
416
427
  finishedAt?: string | undefined;
417
428
  actionConfig?: any;
418
429
  skipReason?: string | undefined;
430
+ conditionalMatches?: Record<string, string> | undefined;
419
431
  attempt?: number | undefined;
420
432
  queuedAt?: string | Date | undefined;
421
433
  expiresAt?: string | Date | undefined;
@@ -457,6 +469,7 @@ export declare const ReceiveActionsInputData: z.ZodObject<{
457
469
  finishedAt?: string | undefined;
458
470
  actionConfig?: any;
459
471
  skipReason?: string | undefined;
472
+ conditionalMatches?: Record<string, string> | undefined;
460
473
  attempt?: number | undefined;
461
474
  queuedAt?: string | Date | undefined;
462
475
  expiresAt?: string | Date | undefined;
@@ -516,6 +529,7 @@ export declare const ReceiveActionsInputData: z.ZodObject<{
516
529
  finishedAt?: string | undefined;
517
530
  actionConfig?: any;
518
531
  skipReason?: string | undefined;
532
+ conditionalMatches?: Record<string, string> | undefined;
519
533
  attempt?: number | undefined;
520
534
  queuedAt?: string | Date | undefined;
521
535
  expiresAt?: string | Date | undefined;
@@ -575,6 +589,7 @@ export declare const ReceiveActionsInputData: z.ZodObject<{
575
589
  finishedAt?: string | undefined;
576
590
  actionConfig?: any;
577
591
  skipReason?: string | undefined;
592
+ conditionalMatches?: Record<string, string> | undefined;
578
593
  attempt?: number | undefined;
579
594
  queuedAt?: string | Date | undefined;
580
595
  expiresAt?: string | Date | undefined;
@@ -672,6 +687,7 @@ export declare const ReceiveActionsInput: z.ZodObject<z.objectUtil.extendShape<{
672
687
  nextActionId: z.ZodOptional<z.ZodString>;
673
688
  result: z.ZodOptional<z.ZodAny>;
674
689
  skipReason: z.ZodOptional<z.ZodString>;
690
+ conditionalMatches: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
675
691
  attempt: z.ZodOptional<z.ZodNumber>;
676
692
  jobId: z.ZodOptional<z.ZodString>;
677
693
  queuedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
@@ -689,6 +705,7 @@ export declare const ReceiveActionsInput: z.ZodObject<z.objectUtil.extendShape<{
689
705
  finishedAt?: string | undefined;
690
706
  actionConfig?: any;
691
707
  skipReason?: string | undefined;
708
+ conditionalMatches?: Record<string, string> | undefined;
692
709
  attempt?: number | undefined;
693
710
  queuedAt?: string | Date | undefined;
694
711
  expiresAt?: string | Date | undefined;
@@ -705,6 +722,7 @@ export declare const ReceiveActionsInput: z.ZodObject<z.objectUtil.extendShape<{
705
722
  finishedAt?: string | undefined;
706
723
  actionConfig?: any;
707
724
  skipReason?: string | undefined;
725
+ conditionalMatches?: Record<string, string> | undefined;
708
726
  attempt?: number | undefined;
709
727
  queuedAt?: string | Date | undefined;
710
728
  expiresAt?: string | Date | undefined;
@@ -746,6 +764,7 @@ export declare const ReceiveActionsInput: z.ZodObject<z.objectUtil.extendShape<{
746
764
  finishedAt?: string | undefined;
747
765
  actionConfig?: any;
748
766
  skipReason?: string | undefined;
767
+ conditionalMatches?: Record<string, string> | undefined;
749
768
  attempt?: number | undefined;
750
769
  queuedAt?: string | Date | undefined;
751
770
  expiresAt?: string | Date | undefined;
@@ -787,6 +806,7 @@ export declare const ReceiveActionsInput: z.ZodObject<z.objectUtil.extendShape<{
787
806
  finishedAt?: string | undefined;
788
807
  actionConfig?: any;
789
808
  skipReason?: string | undefined;
809
+ conditionalMatches?: Record<string, string> | undefined;
790
810
  attempt?: number | undefined;
791
811
  queuedAt?: string | Date | undefined;
792
812
  expiresAt?: string | Date | undefined;
@@ -846,6 +866,7 @@ export declare const ReceiveActionsInput: z.ZodObject<z.objectUtil.extendShape<{
846
866
  finishedAt?: string | undefined;
847
867
  actionConfig?: any;
848
868
  skipReason?: string | undefined;
869
+ conditionalMatches?: Record<string, string> | undefined;
849
870
  attempt?: number | undefined;
850
871
  queuedAt?: string | Date | undefined;
851
872
  expiresAt?: string | Date | undefined;
@@ -905,6 +926,7 @@ export declare const ReceiveActionsInput: z.ZodObject<z.objectUtil.extendShape<{
905
926
  finishedAt?: string | undefined;
906
927
  actionConfig?: any;
907
928
  skipReason?: string | undefined;
929
+ conditionalMatches?: Record<string, string> | undefined;
908
930
  attempt?: number | undefined;
909
931
  queuedAt?: string | Date | undefined;
910
932
  expiresAt?: string | Date | undefined;
@@ -966,6 +988,7 @@ export declare const ReceiveActionsInput: z.ZodObject<z.objectUtil.extendShape<{
966
988
  finishedAt?: string | undefined;
967
989
  actionConfig?: any;
968
990
  skipReason?: string | undefined;
991
+ conditionalMatches?: Record<string, string> | undefined;
969
992
  attempt?: number | undefined;
970
993
  queuedAt?: string | Date | undefined;
971
994
  expiresAt?: string | Date | undefined;
@@ -1028,6 +1051,7 @@ export declare const ReceiveActionsInput: z.ZodObject<z.objectUtil.extendShape<{
1028
1051
  finishedAt?: string | undefined;
1029
1052
  actionConfig?: any;
1030
1053
  skipReason?: string | undefined;
1054
+ conditionalMatches?: Record<string, string> | undefined;
1031
1055
  attempt?: number | undefined;
1032
1056
  queuedAt?: string | Date | undefined;
1033
1057
  expiresAt?: string | Date | undefined;
@@ -1237,6 +1261,7 @@ export declare const SetPropertiesInputData: z.ZodObject<{
1237
1261
  nextActionId: z.ZodOptional<z.ZodString>;
1238
1262
  result: z.ZodOptional<z.ZodAny>;
1239
1263
  skipReason: z.ZodOptional<z.ZodString>;
1264
+ conditionalMatches: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1240
1265
  attempt: z.ZodOptional<z.ZodNumber>;
1241
1266
  jobId: z.ZodOptional<z.ZodString>;
1242
1267
  queuedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
@@ -1254,6 +1279,7 @@ export declare const SetPropertiesInputData: z.ZodObject<{
1254
1279
  finishedAt?: string | undefined;
1255
1280
  actionConfig?: any;
1256
1281
  skipReason?: string | undefined;
1282
+ conditionalMatches?: Record<string, string> | undefined;
1257
1283
  attempt?: number | undefined;
1258
1284
  queuedAt?: string | Date | undefined;
1259
1285
  expiresAt?: string | Date | undefined;
@@ -1270,6 +1296,7 @@ export declare const SetPropertiesInputData: z.ZodObject<{
1270
1296
  finishedAt?: string | undefined;
1271
1297
  actionConfig?: any;
1272
1298
  skipReason?: string | undefined;
1299
+ conditionalMatches?: Record<string, string> | undefined;
1273
1300
  attempt?: number | undefined;
1274
1301
  queuedAt?: string | Date | undefined;
1275
1302
  expiresAt?: string | Date | undefined;
@@ -1311,6 +1338,7 @@ export declare const SetPropertiesInputData: z.ZodObject<{
1311
1338
  finishedAt?: string | undefined;
1312
1339
  actionConfig?: any;
1313
1340
  skipReason?: string | undefined;
1341
+ conditionalMatches?: Record<string, string> | undefined;
1314
1342
  attempt?: number | undefined;
1315
1343
  queuedAt?: string | Date | undefined;
1316
1344
  expiresAt?: string | Date | undefined;
@@ -1352,6 +1380,7 @@ export declare const SetPropertiesInputData: z.ZodObject<{
1352
1380
  finishedAt?: string | undefined;
1353
1381
  actionConfig?: any;
1354
1382
  skipReason?: string | undefined;
1383
+ conditionalMatches?: Record<string, string> | undefined;
1355
1384
  attempt?: number | undefined;
1356
1385
  queuedAt?: string | Date | undefined;
1357
1386
  expiresAt?: string | Date | undefined;
@@ -1411,6 +1440,7 @@ export declare const SetPropertiesInputData: z.ZodObject<{
1411
1440
  finishedAt?: string | undefined;
1412
1441
  actionConfig?: any;
1413
1442
  skipReason?: string | undefined;
1443
+ conditionalMatches?: Record<string, string> | undefined;
1414
1444
  attempt?: number | undefined;
1415
1445
  queuedAt?: string | Date | undefined;
1416
1446
  expiresAt?: string | Date | undefined;
@@ -1471,6 +1501,7 @@ export declare const SetPropertiesInputData: z.ZodObject<{
1471
1501
  finishedAt?: string | undefined;
1472
1502
  actionConfig?: any;
1473
1503
  skipReason?: string | undefined;
1504
+ conditionalMatches?: Record<string, string> | undefined;
1474
1505
  attempt?: number | undefined;
1475
1506
  queuedAt?: string | Date | undefined;
1476
1507
  expiresAt?: string | Date | undefined;
@@ -1839,6 +1870,7 @@ export declare const SetPropertiesInput: z.ZodObject<z.objectUtil.extendShape<{
1839
1870
  nextActionId: z.ZodOptional<z.ZodString>;
1840
1871
  result: z.ZodOptional<z.ZodAny>;
1841
1872
  skipReason: z.ZodOptional<z.ZodString>;
1873
+ conditionalMatches: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1842
1874
  attempt: z.ZodOptional<z.ZodNumber>;
1843
1875
  jobId: z.ZodOptional<z.ZodString>;
1844
1876
  queuedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
@@ -1856,6 +1888,7 @@ export declare const SetPropertiesInput: z.ZodObject<z.objectUtil.extendShape<{
1856
1888
  finishedAt?: string | undefined;
1857
1889
  actionConfig?: any;
1858
1890
  skipReason?: string | undefined;
1891
+ conditionalMatches?: Record<string, string> | undefined;
1859
1892
  attempt?: number | undefined;
1860
1893
  queuedAt?: string | Date | undefined;
1861
1894
  expiresAt?: string | Date | undefined;
@@ -1872,6 +1905,7 @@ export declare const SetPropertiesInput: z.ZodObject<z.objectUtil.extendShape<{
1872
1905
  finishedAt?: string | undefined;
1873
1906
  actionConfig?: any;
1874
1907
  skipReason?: string | undefined;
1908
+ conditionalMatches?: Record<string, string> | undefined;
1875
1909
  attempt?: number | undefined;
1876
1910
  queuedAt?: string | Date | undefined;
1877
1911
  expiresAt?: string | Date | undefined;
@@ -1913,6 +1947,7 @@ export declare const SetPropertiesInput: z.ZodObject<z.objectUtil.extendShape<{
1913
1947
  finishedAt?: string | undefined;
1914
1948
  actionConfig?: any;
1915
1949
  skipReason?: string | undefined;
1950
+ conditionalMatches?: Record<string, string> | undefined;
1916
1951
  attempt?: number | undefined;
1917
1952
  queuedAt?: string | Date | undefined;
1918
1953
  expiresAt?: string | Date | undefined;
@@ -1954,6 +1989,7 @@ export declare const SetPropertiesInput: z.ZodObject<z.objectUtil.extendShape<{
1954
1989
  finishedAt?: string | undefined;
1955
1990
  actionConfig?: any;
1956
1991
  skipReason?: string | undefined;
1992
+ conditionalMatches?: Record<string, string> | undefined;
1957
1993
  attempt?: number | undefined;
1958
1994
  queuedAt?: string | Date | undefined;
1959
1995
  expiresAt?: string | Date | undefined;
@@ -2013,6 +2049,7 @@ export declare const SetPropertiesInput: z.ZodObject<z.objectUtil.extendShape<{
2013
2049
  finishedAt?: string | undefined;
2014
2050
  actionConfig?: any;
2015
2051
  skipReason?: string | undefined;
2052
+ conditionalMatches?: Record<string, string> | undefined;
2016
2053
  attempt?: number | undefined;
2017
2054
  queuedAt?: string | Date | undefined;
2018
2055
  expiresAt?: string | Date | undefined;
@@ -2073,6 +2110,7 @@ export declare const SetPropertiesInput: z.ZodObject<z.objectUtil.extendShape<{
2073
2110
  finishedAt?: string | undefined;
2074
2111
  actionConfig?: any;
2075
2112
  skipReason?: string | undefined;
2113
+ conditionalMatches?: Record<string, string> | undefined;
2076
2114
  attempt?: number | undefined;
2077
2115
  queuedAt?: string | Date | undefined;
2078
2116
  expiresAt?: string | Date | undefined;
@@ -2135,6 +2173,7 @@ export declare const SetPropertiesInput: z.ZodObject<z.objectUtil.extendShape<{
2135
2173
  finishedAt?: string | undefined;
2136
2174
  actionConfig?: any;
2137
2175
  skipReason?: string | undefined;
2176
+ conditionalMatches?: Record<string, string> | undefined;
2138
2177
  attempt?: number | undefined;
2139
2178
  queuedAt?: string | Date | undefined;
2140
2179
  expiresAt?: string | Date | undefined;
@@ -2198,6 +2237,7 @@ export declare const SetPropertiesInput: z.ZodObject<z.objectUtil.extendShape<{
2198
2237
  finishedAt?: string | undefined;
2199
2238
  actionConfig?: any;
2200
2239
  skipReason?: string | undefined;
2240
+ conditionalMatches?: Record<string, string> | undefined;
2201
2241
  attempt?: number | undefined;
2202
2242
  queuedAt?: string | Date | undefined;
2203
2243
  expiresAt?: string | Date | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"zodTypes.d.ts","sourceRoot":"../../../../../src/core-modules/automations","sources":["zodTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,mBAAgB;AAE/C,eAAO,MAAM,mBAAmB;;;;;;;;;EAG9B,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BpC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCnC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWhC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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H,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE5B,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG;IACtC,CAAC,oBAAoB,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC,KAAK,CAC7C,OAAO,uBAAuB,CAC/B,CAAC;IACF,CAAC,oBAAoB,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC,KAAK,CAClD,OAAO,2BAA2B,CACnC,CAAC;IACF,CAAC,oBAAoB,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;IACxE,CAAC,oBAAoB,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC,KAAK,CAClD,OAAO,2BAA2B,CACnC,CAAC;IACF,CAAC,oBAAoB,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;IAE9E,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC,KAAK,CACjD,OAAO,0BAA0B,CAClC,CAAC;IACF,CAAC,oBAAoB,CAAC,gCAAgC,CAAC,EAAE,CAAC,CAAC,KAAK,CAC9D,OAAO,qCAAqC,CAC7C,CAAC;IACF,CAAC,oBAAoB,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;CAC9E,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"createEventHandlers.d.ts","sourceRoot":"../../../../../../src/core-modules/common/eventHandlers","sources":["createEventHandlers.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,qBAAqB,EAErB,0BAA0B,EAG3B,mBAAgB;AAkBjB;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,0BAA0B,GACjC,qBAAqB,CAyMvB"}
1
+ {"version":3,"file":"createEventHandlers.d.ts","sourceRoot":"../../../../../../src/core-modules/common/eventHandlers","sources":["createEventHandlers.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,qBAAqB,EAErB,0BAA0B,EAG3B,mBAAgB;AAgCjB;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,0BAA0B,GACjC,qBAAqB,CA6MvB"}
@@ -7,5 +7,9 @@ export type SegmentDiff = {
7
7
  removed?: Record<string, unknown>;
8
8
  updated?: Record<string, unknown>;
9
9
  };
10
- export declare const segmentJoinChanges: (contentType: string, diff: SegmentDiff | undefined) => Promise<SegmentJoinChanges | undefined>;
10
+ export type SegmentTouched = {
11
+ prev?: unknown[];
12
+ current?: unknown[];
13
+ };
14
+ export declare const segmentJoinChanges: (contentType: string, diff: SegmentDiff | undefined, touched?: SegmentTouched) => Promise<SegmentJoinChanges | undefined>;
11
15
  //# sourceMappingURL=joinChanges.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"joinChanges.d.ts","sourceRoot":"../../../../../src/core-modules/segments","sources":["joinChanges.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,kBAAkB,GAAG,MAAM,CACrC,MAAM,EACN;IAAE,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,CACnC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACnC,CAAC;AAoBF,eAAO,MAAM,kBAAkB,GAC7B,aAAa,MAAM,EACnB,MAAM,WAAW,GAAG,SAAS,KAC5B,OAAO,CAAC,kBAAkB,GAAG,SAAS,CAgCxC,CAAC"}
1
+ {"version":3,"file":"joinChanges.d.ts","sourceRoot":"../../../../../src/core-modules/segments","sources":["joinChanges.ts"],"names":[],"mappings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