@erxes/api-shared 3.2.20-3 → 3.2.21-2

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 (23) 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/{start-plugin-a2f6eca9.esm.js → start-plugin-6a677721.esm.js} +5 -1
  13. package/dist/{start-plugin-b095acca.cjs.prod.js → start-plugin-8812291a.cjs.prod.js} +5 -0
  14. package/dist/{start-plugin-7dc096bc.cjs.dev.js → start-plugin-b6f1292f.cjs.dev.js} +5 -0
  15. package/package.json +1 -1
  16. package/src/core-modules/automations/conditionals.test.ts +302 -0
  17. package/src/core-modules/automations/conditionals.ts +403 -0
  18. package/src/core-modules/automations/definitions/executions.ts +3 -0
  19. package/src/core-modules/automations/index.ts +1 -0
  20. package/src/core-modules/automations/zodTypes.ts +1 -0
  21. package/utils/dist/erxes-api-shared-utils.cjs.dev.js +1 -1
  22. package/utils/dist/erxes-api-shared-utils.cjs.prod.js +1 -1
  23. 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,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,GAAG,CAAC;IAEb,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,gBAAgB,CAAC,EAAE,MAAM,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;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,EAAE,GAAG,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,GAAG,CAAC;IAEb,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,kBAAkB,CAAC,EAAE,MAAM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f,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQlC,CAAC;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C,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"}
@@ -8904,6 +8904,7 @@ var AutomationExecActionInput = z.object({
8904
8904
  nextActionId: z.string().optional(),
8905
8905
  result: z.any().optional(),
8906
8906
  skipReason: z.string().optional(),
8907
+ conditionalMatches: z.record(z.string()).optional(),
8907
8908
  attempt: z.number().optional(),
8908
8909
  jobId: z.string().optional(),
8909
8910
  // Dates arrive serialized across the producer boundary, but stay Date
@@ -9609,6 +9610,9 @@ var execActionSchema = new Schema({
9609
9610
  childExecutionId: {
9610
9611
  type: String
9611
9612
  },
9613
+ conditionalMatches: {
9614
+ type: Object
9615
+ },
9612
9616
  errorCode: {
9613
9617
  type: String
9614
9618
  },
@@ -23069,4 +23073,4 @@ function _startPlugin() {
23069
23073
  return _startPlugin.apply(this, arguments);
23070
23074
  }
23071
23075
 
23072
- export { setClientPortalHeader as $, wrapApolloResolvers as A, markResolvers as B, startBeforeResolvers as C, checkBeforeResolvers as D, expectedErrorPlugin as E, agentToolsAuthHeaderName as F, encodeAgentToolsAuthHeader as G, decodeAgentToolsAuthHeader as H, buildAgentToolManifest as I, mountAgentTools as J, AGENT_TOOL_DEFAULT_MAX_RESPONSE_BYTES as K, getAgentToolMaxResponseBytes as L, oversizedAgentToolResultBytes as M, agentToolResponseTooLargeError as N, graphqlPubsub as O, clientPortalHeaderName as P, cpUserHeaderName as Q, extractUserFromHeader as R, extractCPUserFromHeader as S, TBeforeResolversProducers as T, extractClientPortalFromHeader as U, USER_HEADER_OMITTED_FIELDS as V, HEADER_SIZE_WARN_BYTES as W, compactUserForHeader as X, setUserHeader as Y, setCPUserHeader as Z, _asyncToGenerator as _, _regeneratorRuntime as a, isDev as a$, startAfterProcess as a0, mongooseStringRandomId as a1, mongooseStringNonBlank as a2, mongoStringRequired as a3, mongooseStringRequiredNonBlank as a4, mongooseField as a5, updateMongoDocumentOrder as a6, defaultPaginate as a7, cursorPaginate as a8, cursorPaginateAggregation as a9, ORGANIZATION_ID_MAPPING as aA, getSaasOrganizationIdBySubdomain as aB, getSaasOrgsCache as aC, getSaasOrganizations as aD, getSaasOrganizationsByFilter as aE, updateSaasOrganization as aF, helpCenterDomainsOf as aG, getSaasOrganizationByHelpCenterDomain as aH, getSaasOrganizationHelpCenterDomains as aI, getSaasOrganizationsWithPendingHelpCenterDomain as aJ, saveSaasOrganizationHelpCenterDomain as aK, removeSaasOrganizationHelpCenterDomain as aL, getSaasOrganizationDetail as aM, getSaasOrganizationPlanHistories as aN, getSaasOrganizationActiveAddons as aO, removeOrgsCache as aP, getSaasPlugins as aQ, getSaasPlugin as aR, getSaasPromoCodes as aS, getSaasOrgPromoCodes as aT, GP_STATUS as aU, isGlobalProfileV2 as aV, pluginsOfStripeItem as aW, pluginsFromStripe as aX, getGlobalProfileV2Plugins as aY, sanitizeFilename as aZ, sanitizeKey as a_, checkCollectionCodeDuplication as aa, schemaWrapper as ab, mongooseConnectionOptions as ac, closeMongooose as ad, splitSearchWords as ae, generateConfiguredSearchTokens as af, buildSearchTokenFilter as ag, configureSchemaSearchTokens as ah, getSchemaSearchTokenConfig as ai, toSerializablePayload as aj, DEFAULT_JOB_OPTIONS as ak, createMQWorkerWithListeners as al, sendWorkerMessage as am, randomAlphanumeric as an, randomLowercase as ao, redis as ap, resetConfigsCache as aq, coreModelAddons as ar, coreModelBundles as as, coreModelInstallations as at, coreModelUsers as au, coreModelEndpoints as av, coreModelPromoCodes as aw, coreModelPlugins as ax, coreModelExperiences as ay, coreModelOrganizationPlanHistories as az, coreModelOrganizations as b, cleanHtml as b$, keyForConfig as b0, getPlugins as b1, setActivePlugins as b2, getActivePlugins as b3, getAvailablePlugins as b4, clearServiceDiscoveryCache as b5, getPlugin as b6, joinErxesGateway as b7, leaveErxesGateway as b8, isEnabled as b9, getDate as bA, getToday as bB, getFullDate as bC, getPureDate as bD, getTomorrow as bE, getNextMonth as bF, fixNum as bG, dateToShortStr as bH, shortStrToDate as bI, isImage as bJ, isVideo as bK, createHealthRoute as bL, checkServiceRunning as bM, generateRequestProcess as bN, getDiffObjects as bO, flattenObject as bP, readFileUrl as bQ, readFileFromStorage as bR, readFileStreamFromStorage as bS, uploadFileToStorage as bT, encodeCursor as bU, decodeCursor as bV, buildCursorQuery as bW, stripAnsi as bX, removeLastTrailingSlash as bY, removeExtraSpaces as bZ, splitStr as b_, getPluginAddress as ba, initializePluginConfig as bb, MAX_HEADER_BYTES as bc, startPlugin as bd, trpcContextHeaderName as be, encodeTRPCContextHeader as bf, decodeTRPCContextHeader as bg, createPluginTRPCContext as bh, createTRPCContext as bi, ok as bj, err as bk, sendCoreModuleProducer as bl, getTrustProxySetting as bm, applyTrustProxy as bn, connectionOptions as bo, authCookieOptions as bp, paginate as bq, validSearchText as br, regexSearchText as bs, getCoreDomain as bt, escapeRegExp as bu, updateOrder as bv, pluralFormation as bw, fixDate as bx, checkUserIds as by, getUniqueValue as bz, connect as c, userMovemmentSchema as c$, random as c0, EXPECTED_ERROR_NAME as c1, ExpectedError as c2, createExpectedError as c3, classifyError as c4, isExpectedError as c5, extractMessage as c6, sentryExpectedErrorFilter as c7, initErxesSentry as c8, isSameRecordReferenceType as c9, compileSegmentMongoFilter as cA, gatherSegmentRelations as cB, mergePropertyRowConditions as cC, parsePropertyColumnKey as cD, isPropertyGroupKey as cE, propertyGroupIdFromKey as cF, toPropertyRowColumnKey as cG, PROPERTIES_DATA as cH, logActivityLogError as cI, matchesFieldPattern as cJ, findResolver as cK, getSnapshot as cL, detectAssignmentDelta as cM, permissionGroupSchema as cN, userGroupSchema as cO, permissionSchema as cP, roleSchema as cQ, checkLogin as cR, wrapPermission as cS, getGroupActionsMap as cT, clearGroupActionsCache as cU, canGroup as cV, hasDeclaredOAuthScopes as cW, resolveActionOAuthScopes as cX, checkPermissionGroup as cY, wrapPublicResolver as cZ, userSchema as c_, normalizeRecordReferenceTypes as ca, normalizeRecordReferenceExtensions as cb, propertyDataPath as cc, toPropertyRowKey as cd, getLocalRecordReferenceType as ce, getRecordReferencePluginName as cf, _typeof as cg, resolveRecordReferenceValue as ch, _toArray as ci, AUTOMATION_ERROR_CODES as cj, SEGMENT_MEMBERSHIP_FIELD as ck, parsePropertyDataKey as cl, toPropertyGroupKey as cm, walkSegmentNodes as cn, segmentFieldRef as co, segmentReferenceRef as cp, segmentRelationRef as cq, DEFAULT_SEGMENT_TIME_ZONE as cr, normalizeSegmentOperator as cs, SegmentOperator as ct, PERIOD_OPERATORS as cu, zonedPeriodRange as cv, shiftZonedDays as cw, zonedDate as cx, isAnniversary as cy, _objectWithoutProperties as cz, getSubdomain as d, getAutomationNodeType as d$, STATUSES as d0, COMPANY_BUSINESS_TYPES as d1, DEFAULT_COMPANY_INDUSTRY_TYPES as d2, COMPANY_INDUSTRY_TYPES as d3, DEFAULT_SOCIAL_LINKS as d4, SOCIAL_LINKS as d5, DEFAULT_SEX_CHOICES as d6, SEX_OPTIONS as d7, DEFAULT_CONSTANT_VALUES as d8, USER_ROLES as d9, AUTOMATION_STATUSES as dA, AUTOMATION_CORE_ACTIONS as dB, AUTOMATION_CORE_TRIGGER_TYPES as dC, TAutomationFindObjectType as dD, AUTOMATION_EMAIL_RECIPIENTS_TYPES as dE, AUTOMATION_NON_DEFERRABLE_CORE_ACTIONS as dF, AUTOMATION_CORE_ACTION_DEFERRED as dG, AUTOMATION_DEFERRED_TIMEOUT as dH, BROADCAST_TRIGGER_TYPE as dI, BROADCAST_TARGET_TYPE as dJ, getTriggerTargetType as dK, EXECUTE_WAIT_TYPES as dL, TAutomationProducers as dM, TAutomationActionFolks as dN, automationSchema as dO, AUTOMATION_EXECUTION_STATUS as dP, automationExecutionSchema as dQ, aiAgentSchema as dR, resolveFromSourceField as dS, matchAutomationResolverKey as dT, getValueByPath as dU, AUTOMATION_OUTPUT_ITEM_COUNT as dV, isReEnrollableTrigger as dW, isReEnrollingTrigger as dX, resolveAutomationActionInputs as dY, resolveOutputPathsByNodeType as dZ, replaceOutputPlaceholders as d_, USER_PROPERTIES_INFO as da, STRUCTURE_STATUSES as db, USER_MOVEMENT_STATUSES as dc, CUSTOMER_SELECT_OPTIONS as dd, USER_EXTENDED_FIELDS as de, USER_EXPORT_EXTENDED_FIELDS as df, INPUT_TYPE as dg, customFieldSchema as dh, ruleSchema as di, attachmentSchema as dj, initRecordReferences as dk, createEventHandlers as dl, setEventHandlerRuntimeContext as dm, generateEventHandlersFromRequest as dn, appSchema as dp, buildSetPropertyModifier as dq, getSetPropertySelector as dr, setProperty as ds, getContentType as dt, getModuleName as du, getPluginName as dv, splitType as dw, startAutomations as dx, AUTOMATION_PROPERTY_OPERATORS as dy, STATIC_PLACEHOLDER as dz, getSaasCoreConnection as e, EvaluateFieldsInput as e$, toTransportOutput as e0, normalizeAutomationConstantsForTransport as e1, buildRuntimeOutputsIndex as e2, AutomationBaseInput as e3, AutomationExecActionInput as e4, AutomationExecutionInput as e5, AutomationActionInput as e6, ReceiveActionsInputData as e7, ReceiveActionsInput as e8, CheckCustomTriggerInputData as e9, segmentQueueFor as eA, scheduleSegmentReconcile as eB, sendSegmentChanged as eC, sendSegmentReconcile as eD, sendSegmentRebuild as eE, sendSegmentForget as eF, segmentJoinChanges as eG, gatherSegmentEventTypes as eH, gatherSegmentRecordTypes as eI, gatherSegmentFieldSources as eJ, gatherSegmentJoinPaths as eK, zonedDayStart as eL, isLeapYear as eM, anniversaryRanges as eN, collectSegmentValueRefs as eO, collectSegmentReferences as eP, hasSegmentReferenceInRelation as eQ, DEFAULT_SEGMENT_VALUE_FIELD as eR, resolveSegmentFieldOperators as eS, resolveSegmentFieldDependencies as eT, resolveSegmentValueField as eU, SEGMENT_OPERATOR_SPECS as eV, SEGMENT_IMPLICIT_OPERATORS as eW, initSegmentProducers as eX, TSegmentProducers as eY, SegmentNodeSchema as eZ, SegmentBaseInput as e_, FindObjectInputData as ea, ResolveOutputPathsInputData as eb, SetPropertiesInputData as ec, GenerateAiContextInputData as ed, LoadAiKnowledgeDocumentBatchInputData as ee, LookupAiToolInputData as ef, CheckCustomTriggerInput as eg, FindObjectInput as eh, ResolveOutputPathsInput as ei, SetPropertiesInput as ej, GenerateAiContextInput as ek, LoadAiKnowledgeDocumentBatchInput as el, LookupAiToolInput as em, sendAutomationTrigger as en, sendAutomationRun as eo, sendAutomationDeferredCompletion as ep, SEGMENT_TEXT_OPERATORS as eq, SEGMENT_ID_OPERATORS as er, SEGMENT_NUMBER_OPERATORS as es, SEGMENT_DATE_OPERATORS as et, SEGMENT_BOOLEAN_OPERATORS as eu, SegmentField as ev, segmentDependencyKey as ew, segmentDependencies as ex, segmentDependsOnClock as ey, SEGMENT_QUEUES as ez, createScopedEventHandlers as f, InsertImportRowsInputSchema as f$, ListSegmentMembersInput as f0, CountSegmentMembersInput as f1, ApplyMembershipInput as f2, PROPERTY_GROUP_KEY_PREFIX as f3, PROPERTY_ROW_KEY_SEP as f4, PROPERTY_ANY_ROW_KEY_SEP as f5, isPropertyDataPath as f6, fieldIdFromPropertyDataPath as f7, propertyDataExistsFilter as f8, propertyDataRegexFilter as f9, normalizeApprovalConfig as fA, initApproval as fB, APPROVAL_LOCK_STATUSES as fC, APPROVAL_APPROVER_SCOPES as fD, APPROVAL_MODES as fE, APPROVAL_REQUEST_STATUSES as fF, APPROVAL_REQUEST_KINDS as fG, APPROVAL_DECISIONS as fH, APPROVAL_NOTIFICATION_CONTENT_TYPE as fI, APPROVAL_NOTIFICATION_ACTIONS as fJ, TApprovalChangeProducers as fK, approvalLockCheckInputSchema as fL, approvalLockStatesInputSchema as fM, approvalLockCreateInputSchema as fN, approvalRequestCreateInputSchema as fO, approvalChangeApplyInputSchema as fP, clientPortalSchema as fQ, cpNotificationConfigUserSchema as fR, cpTwoFactor as fS, cpNotificationSettingsSchema as fT, refreshTokenSchema as fU, socialAuthProviderSchema as fV, fcmDeviceSchema as fW, cpUserSchema as fX, USER_TYPES as fY, commentSchema as fZ, cpNotificationSchema as f_, PROPERTY_ROW_INDEX_SEP as fa, initPropertyProducers as fb, TPropertyProducers as fc, PropertyValueUsageInput as fd, UNKNOWN_VALUE_SAMPLES as fe, UNKNOWN_VALUE_COUNTS as ff, unknownValueUsage as fg, measurePropertyValueSamples as fh, measurePropertyValueCounts as fi, measurePropertyValueUsage as fj, logsSchema as fk, activityLogsSchema as fl, EMAIL_LANES as fm, emailAddressSchema as fn, emailDeliverySchema as fo, EMAIL_RAMP_ID as fp, emailRampSchema as fq, emailSenderSchema as fr, notificationSchema as fs, notificationSettingsSchema as ft, notificationZTypeSchema as fu, sendNotification as fv, sendNotificationChannels as fw, approvalChangePluginName as fx, normalizeApprovalChangeType as fy, localApprovalChangeType as fz, getEnv as g, TImportExportProducers as g0, startImportExportWorker as g1, InsertImportRowsInput as g2, GetExportHeadersInput as g3, BatchSkipRowInput as g4, GetExportDataInput as g5, InsertImportRowsOutput as g6, GetImportHeadersInput as g7, GetImportHeadersOutput as g8, getImportExportJobOptions as g9, toTerminalImportExportError as ga, logImportExportEvent as gb, safeCleanup as gc, AUTO_MATCH_CONFIDENCE as gd, SUGGEST_CONFIDENCE as ge, normalizeHeader as gf, matchImportHeaders as gg, processCSVStream as gh, countCsvDataRows as gi, _slicedToArray as h, _objectSpread2 as i, chunkArray as j, _createForOfIteratorHelper as k, logHandler as l, _createClass as m, _classCallCheck as n, isValidURL as o, sendTRPCMessage as p, _inherits as q, runBeforeResolvers as r, sendWorkerQueue as s, _wrapNativeSuper as t, userHeaderName as u, _callSuper as v, _defineProperty as w, _toConsumableArray as x, apolloCustomScalars as y, generateApolloContext as z };
23076
+ export { setClientPortalHeader as $, wrapApolloResolvers as A, markResolvers as B, startBeforeResolvers as C, checkBeforeResolvers as D, expectedErrorPlugin as E, agentToolsAuthHeaderName as F, encodeAgentToolsAuthHeader as G, decodeAgentToolsAuthHeader as H, buildAgentToolManifest as I, mountAgentTools as J, AGENT_TOOL_DEFAULT_MAX_RESPONSE_BYTES as K, getAgentToolMaxResponseBytes as L, oversizedAgentToolResultBytes as M, agentToolResponseTooLargeError as N, graphqlPubsub as O, clientPortalHeaderName as P, cpUserHeaderName as Q, extractUserFromHeader as R, extractCPUserFromHeader as S, TBeforeResolversProducers as T, extractClientPortalFromHeader as U, USER_HEADER_OMITTED_FIELDS as V, HEADER_SIZE_WARN_BYTES as W, compactUserForHeader as X, setUserHeader as Y, setCPUserHeader as Z, _asyncToGenerator as _, _regeneratorRuntime as a, isDev as a$, startAfterProcess as a0, mongooseStringRandomId as a1, mongooseStringNonBlank as a2, mongoStringRequired as a3, mongooseStringRequiredNonBlank as a4, mongooseField as a5, updateMongoDocumentOrder as a6, defaultPaginate as a7, cursorPaginate as a8, cursorPaginateAggregation as a9, ORGANIZATION_ID_MAPPING as aA, getSaasOrganizationIdBySubdomain as aB, getSaasOrgsCache as aC, getSaasOrganizations as aD, getSaasOrganizationsByFilter as aE, updateSaasOrganization as aF, helpCenterDomainsOf as aG, getSaasOrganizationByHelpCenterDomain as aH, getSaasOrganizationHelpCenterDomains as aI, getSaasOrganizationsWithPendingHelpCenterDomain as aJ, saveSaasOrganizationHelpCenterDomain as aK, removeSaasOrganizationHelpCenterDomain as aL, getSaasOrganizationDetail as aM, getSaasOrganizationPlanHistories as aN, getSaasOrganizationActiveAddons as aO, removeOrgsCache as aP, getSaasPlugins as aQ, getSaasPlugin as aR, getSaasPromoCodes as aS, getSaasOrgPromoCodes as aT, GP_STATUS as aU, isGlobalProfileV2 as aV, pluginsOfStripeItem as aW, pluginsFromStripe as aX, getGlobalProfileV2Plugins as aY, sanitizeFilename as aZ, sanitizeKey as a_, checkCollectionCodeDuplication as aa, schemaWrapper as ab, mongooseConnectionOptions as ac, closeMongooose as ad, splitSearchWords as ae, generateConfiguredSearchTokens as af, buildSearchTokenFilter as ag, configureSchemaSearchTokens as ah, getSchemaSearchTokenConfig as ai, toSerializablePayload as aj, DEFAULT_JOB_OPTIONS as ak, createMQWorkerWithListeners as al, sendWorkerMessage as am, randomAlphanumeric as an, randomLowercase as ao, redis as ap, resetConfigsCache as aq, coreModelAddons as ar, coreModelBundles as as, coreModelInstallations as at, coreModelUsers as au, coreModelEndpoints as av, coreModelPromoCodes as aw, coreModelPlugins as ax, coreModelExperiences as ay, coreModelOrganizationPlanHistories as az, coreModelOrganizations as b, cleanHtml as b$, keyForConfig as b0, getPlugins as b1, setActivePlugins as b2, getActivePlugins as b3, getAvailablePlugins as b4, clearServiceDiscoveryCache as b5, getPlugin as b6, joinErxesGateway as b7, leaveErxesGateway as b8, isEnabled as b9, getDate as bA, getToday as bB, getFullDate as bC, getPureDate as bD, getTomorrow as bE, getNextMonth as bF, fixNum as bG, dateToShortStr as bH, shortStrToDate as bI, isImage as bJ, isVideo as bK, createHealthRoute as bL, checkServiceRunning as bM, generateRequestProcess as bN, getDiffObjects as bO, flattenObject as bP, readFileUrl as bQ, readFileFromStorage as bR, readFileStreamFromStorage as bS, uploadFileToStorage as bT, encodeCursor as bU, decodeCursor as bV, buildCursorQuery as bW, stripAnsi as bX, removeLastTrailingSlash as bY, removeExtraSpaces as bZ, splitStr as b_, getPluginAddress as ba, initializePluginConfig as bb, MAX_HEADER_BYTES as bc, startPlugin as bd, trpcContextHeaderName as be, encodeTRPCContextHeader as bf, decodeTRPCContextHeader as bg, createPluginTRPCContext as bh, createTRPCContext as bi, ok as bj, err as bk, sendCoreModuleProducer as bl, getTrustProxySetting as bm, applyTrustProxy as bn, connectionOptions as bo, authCookieOptions as bp, paginate as bq, validSearchText as br, regexSearchText as bs, getCoreDomain as bt, escapeRegExp as bu, updateOrder as bv, pluralFormation as bw, fixDate as bx, checkUserIds as by, getUniqueValue as bz, connect as c, wrapPublicResolver as c$, random as c0, EXPECTED_ERROR_NAME as c1, ExpectedError as c2, createExpectedError as c3, classifyError as c4, isExpectedError as c5, extractMessage as c6, sentryExpectedErrorFilter as c7, initErxesSentry as c8, isSameRecordReferenceType as c9, zonedDate as cA, isAnniversary as cB, compileSegmentMongoFilter as cC, gatherSegmentRelations as cD, mergePropertyRowConditions as cE, parsePropertyColumnKey as cF, isPropertyGroupKey as cG, propertyGroupIdFromKey as cH, toPropertyRowColumnKey as cI, PROPERTIES_DATA as cJ, logActivityLogError as cK, matchesFieldPattern as cL, findResolver as cM, getSnapshot as cN, detectAssignmentDelta as cO, permissionGroupSchema as cP, userGroupSchema as cQ, permissionSchema as cR, roleSchema as cS, checkLogin as cT, wrapPermission as cU, getGroupActionsMap as cV, clearGroupActionsCache as cW, canGroup as cX, hasDeclaredOAuthScopes as cY, resolveActionOAuthScopes as cZ, checkPermissionGroup as c_, normalizeRecordReferenceTypes as ca, normalizeRecordReferenceExtensions as cb, propertyDataPath as cc, toPropertyRowKey as cd, getLocalRecordReferenceType as ce, getRecordReferencePluginName as cf, _typeof as cg, resolveRecordReferenceValue as ch, _toArray as ci, AUTOMATION_ERROR_CODES as cj, _objectWithoutProperties as ck, _toPropertyKey as cl, replaceOutputPlaceholders as cm, SEGMENT_MEMBERSHIP_FIELD as cn, parsePropertyDataKey as co, toPropertyGroupKey as cp, walkSegmentNodes as cq, segmentFieldRef as cr, segmentReferenceRef as cs, segmentRelationRef as ct, DEFAULT_SEGMENT_TIME_ZONE as cu, normalizeSegmentOperator as cv, SegmentOperator as cw, PERIOD_OPERATORS as cx, zonedPeriodRange as cy, shiftZonedDays as cz, getSubdomain as d, resolveOutputPathsByNodeType as d$, userSchema as d0, userMovemmentSchema as d1, STATUSES as d2, COMPANY_BUSINESS_TYPES as d3, DEFAULT_COMPANY_INDUSTRY_TYPES as d4, COMPANY_INDUSTRY_TYPES as d5, DEFAULT_SOCIAL_LINKS as d6, SOCIAL_LINKS as d7, DEFAULT_SEX_CHOICES as d8, SEX_OPTIONS as d9, AUTOMATION_PROPERTY_OPERATORS as dA, STATIC_PLACEHOLDER as dB, AUTOMATION_STATUSES as dC, AUTOMATION_CORE_ACTIONS as dD, AUTOMATION_CORE_TRIGGER_TYPES as dE, TAutomationFindObjectType as dF, AUTOMATION_EMAIL_RECIPIENTS_TYPES as dG, AUTOMATION_NON_DEFERRABLE_CORE_ACTIONS as dH, AUTOMATION_CORE_ACTION_DEFERRED as dI, AUTOMATION_DEFERRED_TIMEOUT as dJ, BROADCAST_TRIGGER_TYPE as dK, BROADCAST_TARGET_TYPE as dL, getTriggerTargetType as dM, EXECUTE_WAIT_TYPES as dN, TAutomationProducers as dO, TAutomationActionFolks as dP, automationSchema as dQ, AUTOMATION_EXECUTION_STATUS as dR, automationExecutionSchema as dS, aiAgentSchema as dT, resolveFromSourceField as dU, matchAutomationResolverKey as dV, getValueByPath as dW, AUTOMATION_OUTPUT_ITEM_COUNT as dX, isReEnrollableTrigger as dY, isReEnrollingTrigger as dZ, resolveAutomationActionInputs as d_, DEFAULT_CONSTANT_VALUES as da, USER_ROLES as db, USER_PROPERTIES_INFO as dc, STRUCTURE_STATUSES as dd, USER_MOVEMENT_STATUSES as de, CUSTOMER_SELECT_OPTIONS as df, USER_EXTENDED_FIELDS as dg, USER_EXPORT_EXTENDED_FIELDS as dh, INPUT_TYPE as di, customFieldSchema as dj, ruleSchema as dk, attachmentSchema as dl, initRecordReferences as dm, createEventHandlers as dn, setEventHandlerRuntimeContext as dp, generateEventHandlersFromRequest as dq, appSchema as dr, buildSetPropertyModifier as ds, getSetPropertySelector as dt, setProperty as du, getContentType as dv, getModuleName as dw, getPluginName as dx, splitType as dy, startAutomations as dz, getSaasCoreConnection as e, SegmentBaseInput as e$, getAutomationNodeType as e0, toTransportOutput as e1, normalizeAutomationConstantsForTransport as e2, buildRuntimeOutputsIndex as e3, AutomationBaseInput as e4, AutomationExecActionInput as e5, AutomationExecutionInput as e6, AutomationActionInput as e7, ReceiveActionsInputData as e8, ReceiveActionsInput as e9, SEGMENT_QUEUES as eA, segmentQueueFor as eB, scheduleSegmentReconcile as eC, sendSegmentChanged as eD, sendSegmentReconcile as eE, sendSegmentRebuild as eF, sendSegmentForget as eG, segmentJoinChanges as eH, gatherSegmentEventTypes as eI, gatherSegmentRecordTypes as eJ, gatherSegmentFieldSources as eK, gatherSegmentJoinPaths as eL, zonedDayStart as eM, isLeapYear as eN, anniversaryRanges as eO, collectSegmentValueRefs as eP, collectSegmentReferences as eQ, hasSegmentReferenceInRelation as eR, DEFAULT_SEGMENT_VALUE_FIELD as eS, resolveSegmentFieldOperators as eT, resolveSegmentFieldDependencies as eU, resolveSegmentValueField as eV, SEGMENT_OPERATOR_SPECS as eW, SEGMENT_IMPLICIT_OPERATORS as eX, initSegmentProducers as eY, TSegmentProducers as eZ, SegmentNodeSchema as e_, CheckCustomTriggerInputData as ea, FindObjectInputData as eb, ResolveOutputPathsInputData as ec, SetPropertiesInputData as ed, GenerateAiContextInputData as ee, LoadAiKnowledgeDocumentBatchInputData as ef, LookupAiToolInputData as eg, CheckCustomTriggerInput as eh, FindObjectInput as ei, ResolveOutputPathsInput as ej, SetPropertiesInput as ek, GenerateAiContextInput as el, LoadAiKnowledgeDocumentBatchInput as em, LookupAiToolInput as en, sendAutomationTrigger as eo, sendAutomationRun as ep, sendAutomationDeferredCompletion as eq, SEGMENT_TEXT_OPERATORS as er, SEGMENT_ID_OPERATORS as es, SEGMENT_NUMBER_OPERATORS as et, SEGMENT_DATE_OPERATORS as eu, SEGMENT_BOOLEAN_OPERATORS as ev, SegmentField as ew, segmentDependencyKey as ex, segmentDependencies as ey, segmentDependsOnClock as ez, createScopedEventHandlers as f, cpNotificationSchema as f$, EvaluateFieldsInput as f0, ListSegmentMembersInput as f1, CountSegmentMembersInput as f2, ApplyMembershipInput as f3, PROPERTY_GROUP_KEY_PREFIX as f4, PROPERTY_ROW_KEY_SEP as f5, PROPERTY_ANY_ROW_KEY_SEP as f6, isPropertyDataPath as f7, fieldIdFromPropertyDataPath as f8, propertyDataExistsFilter as f9, localApprovalChangeType as fA, normalizeApprovalConfig as fB, initApproval as fC, APPROVAL_LOCK_STATUSES as fD, APPROVAL_APPROVER_SCOPES as fE, APPROVAL_MODES as fF, APPROVAL_REQUEST_STATUSES as fG, APPROVAL_REQUEST_KINDS as fH, APPROVAL_DECISIONS as fI, APPROVAL_NOTIFICATION_CONTENT_TYPE as fJ, APPROVAL_NOTIFICATION_ACTIONS as fK, TApprovalChangeProducers as fL, approvalLockCheckInputSchema as fM, approvalLockStatesInputSchema as fN, approvalLockCreateInputSchema as fO, approvalRequestCreateInputSchema as fP, approvalChangeApplyInputSchema as fQ, clientPortalSchema as fR, cpNotificationConfigUserSchema as fS, cpTwoFactor as fT, cpNotificationSettingsSchema as fU, refreshTokenSchema as fV, socialAuthProviderSchema as fW, fcmDeviceSchema as fX, cpUserSchema as fY, USER_TYPES as fZ, commentSchema as f_, propertyDataRegexFilter as fa, PROPERTY_ROW_INDEX_SEP as fb, initPropertyProducers as fc, TPropertyProducers as fd, PropertyValueUsageInput as fe, UNKNOWN_VALUE_SAMPLES as ff, UNKNOWN_VALUE_COUNTS as fg, unknownValueUsage as fh, measurePropertyValueSamples as fi, measurePropertyValueCounts as fj, measurePropertyValueUsage as fk, logsSchema as fl, activityLogsSchema as fm, EMAIL_LANES as fn, emailAddressSchema as fo, emailDeliverySchema as fp, EMAIL_RAMP_ID as fq, emailRampSchema as fr, emailSenderSchema as fs, notificationSchema as ft, notificationSettingsSchema as fu, notificationZTypeSchema as fv, sendNotification as fw, sendNotificationChannels as fx, approvalChangePluginName as fy, normalizeApprovalChangeType as fz, getEnv as g, InsertImportRowsInputSchema as g0, TImportExportProducers as g1, startImportExportWorker as g2, InsertImportRowsInput as g3, GetExportHeadersInput as g4, BatchSkipRowInput as g5, GetExportDataInput as g6, InsertImportRowsOutput as g7, GetImportHeadersInput as g8, GetImportHeadersOutput as g9, getImportExportJobOptions as ga, toTerminalImportExportError as gb, logImportExportEvent as gc, safeCleanup as gd, AUTO_MATCH_CONFIDENCE as ge, SUGGEST_CONFIDENCE as gf, normalizeHeader as gg, matchImportHeaders as gh, processCSVStream as gi, countCsvDataRows as gj, _slicedToArray as h, _objectSpread2 as i, chunkArray as j, _createForOfIteratorHelper as k, logHandler as l, _createClass as m, _classCallCheck as n, isValidURL as o, sendTRPCMessage as p, _inherits as q, runBeforeResolvers as r, sendWorkerQueue as s, _wrapNativeSuper as t, userHeaderName as u, _callSuper as v, _defineProperty as w, _toConsumableArray as x, apolloCustomScalars as y, generateApolloContext as z };
@@ -8945,6 +8945,7 @@ var AutomationExecActionInput = zod.z.object({
8945
8945
  nextActionId: zod.z.string().optional(),
8946
8946
  result: zod.z.any().optional(),
8947
8947
  skipReason: zod.z.string().optional(),
8948
+ conditionalMatches: zod.z.record(zod.z.string()).optional(),
8948
8949
  attempt: zod.z.number().optional(),
8949
8950
  jobId: zod.z.string().optional(),
8950
8951
  // Dates arrive serialized across the producer boundary, but stay Date
@@ -9650,6 +9651,9 @@ var execActionSchema = new mongoose.Schema({
9650
9651
  childExecutionId: {
9651
9652
  type: String
9652
9653
  },
9654
+ conditionalMatches: {
9655
+ type: Object
9656
+ },
9653
9657
  errorCode: {
9654
9658
  type: String
9655
9659
  },
@@ -23241,6 +23245,7 @@ exports._regeneratorRuntime = _regeneratorRuntime;
23241
23245
  exports._slicedToArray = _slicedToArray;
23242
23246
  exports._toArray = _toArray;
23243
23247
  exports._toConsumableArray = _toConsumableArray;
23248
+ exports._toPropertyKey = _toPropertyKey;
23244
23249
  exports._typeof = _typeof;
23245
23250
  exports._wrapNativeSuper = _wrapNativeSuper;
23246
23251
  exports.activityLogsSchema = activityLogsSchema;
@@ -8947,6 +8947,7 @@ var AutomationExecActionInput = zod.z.object({
8947
8947
  nextActionId: zod.z.string().optional(),
8948
8948
  result: zod.z.any().optional(),
8949
8949
  skipReason: zod.z.string().optional(),
8950
+ conditionalMatches: zod.z.record(zod.z.string()).optional(),
8950
8951
  attempt: zod.z.number().optional(),
8951
8952
  jobId: zod.z.string().optional(),
8952
8953
  // Dates arrive serialized across the producer boundary, but stay Date
@@ -9652,6 +9653,9 @@ var execActionSchema = new mongoose.Schema({
9652
9653
  childExecutionId: {
9653
9654
  type: String
9654
9655
  },
9656
+ conditionalMatches: {
9657
+ type: Object
9658
+ },
9655
9659
  errorCode: {
9656
9660
  type: String
9657
9661
  },
@@ -23243,6 +23247,7 @@ exports._regeneratorRuntime = _regeneratorRuntime;
23243
23247
  exports._slicedToArray = _slicedToArray;
23244
23248
  exports._toArray = _toArray;
23245
23249
  exports._toConsumableArray = _toConsumableArray;
23250
+ exports._toPropertyKey = _toPropertyKey;
23246
23251
  exports._typeof = _typeof;
23247
23252
  exports._wrapNativeSuper = _wrapNativeSuper;
23248
23253
  exports.activityLogsSchema = activityLogsSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@erxes/api-shared",
3
- "version": "3.2.20-3",
3
+ "version": "3.2.21-2",
4
4
  "description": "Shared platform utilities for erxes backend plugins: plugin startup, tenant-scoped models, service discovery, messaging and core types.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {