@degenerate/generic 0.1.10 → 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authorization/jwt/sign/create-authorization-issuer.d.ts +2 -2
- package/dist/authorization/jwt/sign/create-authorization-issuer.d.ts.map +1 -1
- package/dist/authorization/jwt/sign/create-authorization-subject.d.ts +2 -2
- package/dist/authorization/jwt/sign/create-authorization-subject.d.ts.map +1 -1
- package/dist/authorization/jwt/sign/create-jwt-options.d.ts +2 -2
- package/dist/authorization/jwt/sign/create-jwt-options.d.ts.map +1 -1
- package/dist/authorization/safe/authorization/authorized-authorities.d.ts +5 -5
- package/dist/authorization/safe/authorization/authorized-authorities.d.ts.map +1 -1
- package/dist/authorization/safe/request/determine-issuer-from-request.d.ts +2 -2
- package/dist/authorization/safe/request/determine-issuer-from-request.d.ts.map +1 -1
- package/dist/authorization/safe/request/issuer/determine-issuer-from-bearer-token.d.ts +2 -2
- package/dist/authorization/safe/request/issuer/determine-issuer-from-bearer-token.d.ts.map +1 -1
- package/dist/authorization/safe/validation/jwt/payload/verify-authorization-issuer.d.ts +2 -2
- package/dist/authorization/safe/validation/jwt/payload/verify-authorization-issuer.d.ts.map +1 -1
- package/dist/authorization/safe/validation/jwt/payload/verify-authorization-subject.d.ts +2 -2
- package/dist/authorization/safe/validation/jwt/payload/verify-authorization-subject.d.ts.map +1 -1
- package/dist/models/authorization/authorization-models.d.ts +3 -3
- package/dist/models/authorization/authorization-models.d.ts.map +1 -1
- package/dist/models/authorization/authorization-models.js +3 -1
- package/dist/models/crypto/crypto-models.d.ts +10 -2
- package/dist/models/crypto/crypto-models.d.ts.map +1 -1
- package/dist/models/crypto/crypto-models.js +6 -0
- package/dist/models/data/data-models.d.ts +18 -5
- package/dist/models/data/data-models.d.ts.map +1 -1
- package/dist/models/data/data-models.js +24 -1
- package/dist/models/dynamic-execution/dynamic-execution-models.d.ts +13 -3
- package/dist/models/dynamic-execution/dynamic-execution-models.d.ts.map +1 -1
- package/dist/models/dynamic-execution/dynamic-execution-models.js +10 -0
- package/dist/models/events/share-event-models.d.ts +145 -24
- package/dist/models/events/share-event-models.d.ts.map +1 -1
- package/dist/models/events/share-event-models.js +53 -2
- package/dist/models/functions/share-data-function-models.d.ts +251 -32
- package/dist/models/functions/share-data-function-models.d.ts.map +1 -1
- package/dist/models/functions/share-data-function-models.js +100 -3
- package/dist/models/generic/request-response-models.d.ts +11 -3
- package/dist/models/generic/request-response-models.d.ts.map +1 -1
- package/dist/models/generic/request-response-models.js +9 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +6 -0
- package/dist/models/rules/share-rule-models.d.ts +1355 -130
- package/dist/models/rules/share-rule-models.d.ts.map +1 -1
- package/dist/models/rules/share-rule-models.js +342 -38
- package/dist/models/safe/safe-transaction-models.d.ts +31 -40
- package/dist/models/safe/safe-transaction-models.d.ts.map +1 -1
- package/dist/models/safe/safe-transaction-models.js +49 -3
- package/dist/models/safe/transactions/authorities-transactions-models.d.ts +518 -0
- package/dist/models/safe/transactions/authorities-transactions-models.d.ts.map +1 -0
- package/dist/models/safe/transactions/authorities-transactions-models.js +97 -0
- package/dist/models/safe/transactions/rules-transactions-models.d.ts +628 -0
- package/dist/models/safe/transactions/rules-transactions-models.d.ts.map +1 -0
- package/dist/models/safe/transactions/rules-transactions-models.js +73 -0
- package/dist/models/share-data/share-data.d.ts +143 -18
- package/dist/models/share-data/share-data.d.ts.map +1 -1
- package/dist/models/share-data/share-data.js +61 -1
- package/dist/transactions/authority/create-safe-transaction-authority-data.d.ts +4 -3
- package/dist/transactions/authority/create-safe-transaction-authority-data.d.ts.map +1 -1
- package/dist/transactions/authority/create-safe-transaction-authority.d.ts +2 -1
- package/dist/transactions/authority/create-safe-transaction-authority.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,43 +1,7 @@
|
|
|
1
|
+
import z from 'zod';
|
|
1
2
|
/**
|
|
2
3
|
* This file contains the models for the rules used in the share data.
|
|
3
4
|
*/
|
|
4
|
-
/**
|
|
5
|
-
* This contains the interface for the rule evaluation.
|
|
6
|
-
*/
|
|
7
|
-
export interface IShareRuleEvalutionResult {
|
|
8
|
-
ruleId: string;
|
|
9
|
-
currentResult: boolean;
|
|
10
|
-
currentConditionFailure: ICondition[];
|
|
11
|
-
proposedResult: boolean;
|
|
12
|
-
proposedConditionFailure: ICondition[];
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* This contains the interface for the rule evaluation.
|
|
16
|
-
*/
|
|
17
|
-
export interface IShareRulesEvaluationResult {
|
|
18
|
-
rootParam: string;
|
|
19
|
-
passedRuleCheck: boolean;
|
|
20
|
-
passedRuleId: string;
|
|
21
|
-
shareRuleEvalutionResults: IShareRuleEvalutionResult[];
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* This contains the interface for the rule evaluation results.
|
|
25
|
-
*/
|
|
26
|
-
export interface IRuleEvaluationResults {
|
|
27
|
-
shareDataId: string;
|
|
28
|
-
rulesResults: IShareRulesEvaluationResult[];
|
|
29
|
-
isValidProposal: boolean;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* This contains the interface for the rule set in the share data object
|
|
33
|
-
*/
|
|
34
|
-
export interface IShareRuleSet {
|
|
35
|
-
description?: string;
|
|
36
|
-
id: string;
|
|
37
|
-
name: string;
|
|
38
|
-
ruleGroups: IShareRuleGroup[];
|
|
39
|
-
version: number;
|
|
40
|
-
}
|
|
41
5
|
/**
|
|
42
6
|
* This contains the logical operators for combining rules.
|
|
43
7
|
*/
|
|
@@ -45,107 +9,102 @@ export declare enum LogicalOperator {
|
|
|
45
9
|
AND = "AND",
|
|
46
10
|
OR = "OR"
|
|
47
11
|
}
|
|
48
|
-
|
|
49
|
-
* This contains the interface for a rule group.
|
|
50
|
-
*
|
|
51
|
-
* A rule group can contain individual rules or nested rule groups.
|
|
52
|
-
*/
|
|
53
|
-
export interface IShareRuleGroup {
|
|
54
|
-
operator: LogicalOperator;
|
|
55
|
-
rules: (IShareRuleApplied | IShareRuleGroup)[];
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* This contains the interface for a share rule in the share data object
|
|
59
|
-
*/
|
|
60
|
-
export interface IShareRule {
|
|
61
|
-
ruleId: string;
|
|
62
|
-
currentDataConditions: ICondition[];
|
|
63
|
-
proposedDataConditions: ICondition[];
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* This contains the applied rule informaiton in the share data object.
|
|
67
|
-
*/
|
|
68
|
-
export interface IShareRuleApplied extends IShareRule {
|
|
69
|
-
targettedProperty: string;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* This contains the different types of conditions that can be evaluated.
|
|
73
|
-
*/
|
|
74
|
-
export type ConditionType = ConditionTypeSingle | ConditionTypeRange | ConditionTypeStartsEndsWith | ConditionTypeBoolean | ConditionTypeSpecial;
|
|
12
|
+
export declare const LogicalOperatorSchema: z.ZodEnum<["AND", "OR"]>;
|
|
75
13
|
/**
|
|
76
14
|
* This contains the choices for the type of qualifier.
|
|
77
15
|
*/
|
|
78
16
|
export declare enum ConditionTypeQualifier {
|
|
79
|
-
IS = "
|
|
80
|
-
IS_NOT = "
|
|
17
|
+
IS = "IS",
|
|
18
|
+
IS_NOT = "IS_NOT"
|
|
81
19
|
}
|
|
20
|
+
export declare const ConditionTypeQualifierSchema: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
82
21
|
/**
|
|
83
22
|
* This contains the choices for the type of condition.
|
|
84
23
|
*/
|
|
85
24
|
export declare enum ConditionTypeSingle {
|
|
86
|
-
TYPEOF = "
|
|
87
|
-
EQUAL = "
|
|
88
|
-
CONTAINS = "
|
|
89
|
-
NULL = "
|
|
90
|
-
EMPTY = "
|
|
91
|
-
SHARE_RULE = "
|
|
25
|
+
TYPEOF = "TYPEOF",// the type of the property
|
|
26
|
+
EQUAL = "EQUAL",// the value is equal to the condition value
|
|
27
|
+
CONTAINS = "CONTAINS",// the value contains the condition value
|
|
28
|
+
NULL = "NULL",// the value is null
|
|
29
|
+
EMPTY = "EMPTY",// the value is empty
|
|
30
|
+
SHARE_RULE = "SHARE_RULE"
|
|
92
31
|
}
|
|
32
|
+
export declare const ConditionTypeSingleSchema: z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>;
|
|
93
33
|
/**
|
|
94
34
|
* This contains the choices for the range conditions.
|
|
95
35
|
*/
|
|
96
36
|
export declare enum ConditionTypeRange {
|
|
97
|
-
GREATER_THAN = "
|
|
98
|
-
LESS_THAN = "
|
|
99
|
-
GREATER_THAN_OR_EQUAL = "
|
|
100
|
-
LESS_THAN_OR_EQUAL = "
|
|
37
|
+
GREATER_THAN = "GREATER_THAN",
|
|
38
|
+
LESS_THAN = "LESS_THAN",
|
|
39
|
+
GREATER_THAN_OR_EQUAL = "GREATER_THAN_OR_EQUAL",
|
|
40
|
+
LESS_THAN_OR_EQUAL = "LESS_THAN_OR_EQUAL"
|
|
101
41
|
}
|
|
42
|
+
export declare const ConditionTypeRangeSchema: z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>;
|
|
102
43
|
/**
|
|
103
44
|
* This contains the choices for the starts with and ends with conditions.
|
|
104
45
|
*/
|
|
105
46
|
export declare enum ConditionTypeStartsEndsWith {
|
|
106
|
-
STARTS_WITH = "
|
|
107
|
-
ENDS_WITH = "
|
|
47
|
+
STARTS_WITH = "STARTS_WITH",
|
|
48
|
+
ENDS_WITH = "ENDS_WITH"
|
|
108
49
|
}
|
|
50
|
+
export declare const ConditionTypeStartsEndsWithSchema: z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>;
|
|
109
51
|
/**
|
|
110
52
|
* This contains the choices for the boolean conditions.
|
|
111
53
|
*/
|
|
112
54
|
export declare enum ConditionTypeBoolean {
|
|
113
|
-
TRUE = "
|
|
114
|
-
FALSE = "
|
|
55
|
+
TRUE = "TRUE",
|
|
56
|
+
FALSE = "FALSE"
|
|
115
57
|
}
|
|
58
|
+
export declare const ConditionTypeBooleanSchema: z.ZodEnum<["TRUE", "FALSE"]>;
|
|
116
59
|
/**
|
|
117
60
|
* This contains the choices for the special conditions.
|
|
118
61
|
*/
|
|
119
62
|
export declare enum ConditionTypeSpecial {
|
|
120
|
-
PATTERN = "
|
|
63
|
+
PATTERN = "PATTERN"
|
|
121
64
|
}
|
|
65
|
+
export declare const ConditionTypeSpecialSchema: z.ZodEnum<["PATTERN"]>;
|
|
122
66
|
/**
|
|
123
|
-
* This
|
|
67
|
+
* This contains the different types of conditions that can be evaluated.
|
|
124
68
|
*/
|
|
125
|
-
export type
|
|
69
|
+
export type ConditionType = ConditionTypeSingle | ConditionTypeRange | ConditionTypeStartsEndsWith | ConditionTypeBoolean | ConditionTypeSpecial;
|
|
70
|
+
export declare const ConditionTypeSchema: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
71
|
+
/**
|
|
72
|
+
* These are the different choices for the types of data in a condition.
|
|
73
|
+
*/
|
|
74
|
+
export declare enum ConditionTypeOf {
|
|
75
|
+
STRING = "STRING",
|
|
76
|
+
NUMBER = "NUMBER",
|
|
77
|
+
INTEGER = "INTEGER",
|
|
78
|
+
BOOLEAN = "BOOLEAN",
|
|
79
|
+
OBJECT = "OBJECT",
|
|
80
|
+
ARRAY = "ARRAY",
|
|
81
|
+
NULL = "NULL",
|
|
82
|
+
UNDEFINED = "UNDEFINED",
|
|
83
|
+
FUNCTION = "FUNCTION",
|
|
84
|
+
BIGINT = "BIGINT"
|
|
85
|
+
}
|
|
86
|
+
export declare const ConditionTypeOfSchema: z.ZodEnum<["STRING", "NUMBER", "INTEGER", "BOOLEAN", "OBJECT", "ARRAY", "NULL", "UNDEFINED", "FUNCTION", "BIGINT"]>;
|
|
126
87
|
/**
|
|
127
88
|
* This is the interface for the base condition.
|
|
128
89
|
*/
|
|
90
|
+
export declare const IConditionBaseSchema: z.ZodObject<{
|
|
91
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
92
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
93
|
+
targettedProperty: z.ZodString;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
96
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
97
|
+
targettedProperty: string;
|
|
98
|
+
}, {
|
|
99
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
100
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
101
|
+
targettedProperty: string;
|
|
102
|
+
}>;
|
|
129
103
|
export interface IConditionBase {
|
|
130
104
|
conditionType: ConditionType;
|
|
131
105
|
conditionTypeQualifier: ConditionTypeQualifier;
|
|
132
106
|
targettedProperty: string;
|
|
133
107
|
}
|
|
134
|
-
/**
|
|
135
|
-
* These are the different choices for the types of data in a condition.
|
|
136
|
-
*/
|
|
137
|
-
export declare enum ConditionTypeOf {
|
|
138
|
-
STRING = "string",
|
|
139
|
-
NUMBER = "number",
|
|
140
|
-
INTEGER = "integer",
|
|
141
|
-
BOOLEAN = "boolean",
|
|
142
|
-
OBJECT = "object",
|
|
143
|
-
ARRAY = "array",
|
|
144
|
-
NULL = "null",
|
|
145
|
-
UNDEFINED = "undefined",
|
|
146
|
-
FUNCTION = "function",
|
|
147
|
-
BIGINT = "bigint"
|
|
148
|
-
}
|
|
149
108
|
/**
|
|
150
109
|
* This is the interface for the type of condition.
|
|
151
110
|
*
|
|
@@ -156,6 +115,24 @@ const exampleConditionTypeOf: IConditionTypeOf = {
|
|
|
156
115
|
targettedProperty: 'address.city.total',
|
|
157
116
|
};
|
|
158
117
|
*/
|
|
118
|
+
export declare const IConditionTypeOfSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
119
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
120
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
121
|
+
targettedProperty: z.ZodString;
|
|
122
|
+
}, {
|
|
123
|
+
conditionType: z.ZodLiteral<"TYPEOF">;
|
|
124
|
+
conditionValue: z.ZodEnum<["STRING", "NUMBER", "INTEGER", "BOOLEAN", "OBJECT", "ARRAY", "NULL", "UNDEFINED", "FUNCTION", "BIGINT"]>;
|
|
125
|
+
}>, "strip", z.ZodTypeAny, {
|
|
126
|
+
conditionType: "TYPEOF";
|
|
127
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
128
|
+
targettedProperty: string;
|
|
129
|
+
conditionValue: "NULL" | "STRING" | "NUMBER" | "INTEGER" | "BOOLEAN" | "OBJECT" | "ARRAY" | "UNDEFINED" | "FUNCTION" | "BIGINT";
|
|
130
|
+
}, {
|
|
131
|
+
conditionType: "TYPEOF";
|
|
132
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
133
|
+
targettedProperty: string;
|
|
134
|
+
conditionValue: "NULL" | "STRING" | "NUMBER" | "INTEGER" | "BOOLEAN" | "OBJECT" | "ARRAY" | "UNDEFINED" | "FUNCTION" | "BIGINT";
|
|
135
|
+
}>;
|
|
159
136
|
export interface IConditionTypeOf extends IConditionBase {
|
|
160
137
|
conditionType: ConditionTypeSingle.TYPEOF;
|
|
161
138
|
conditionValue: ConditionTypeOf;
|
|
@@ -170,6 +147,24 @@ const exampleConditionEquality: IConditionEquality = {
|
|
|
170
147
|
targettedProperty: 'address.city.total',
|
|
171
148
|
};
|
|
172
149
|
*/
|
|
150
|
+
export declare const IConditionEqualitySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
151
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
152
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
153
|
+
targettedProperty: z.ZodString;
|
|
154
|
+
}, {
|
|
155
|
+
conditionType: z.ZodLiteral<"EQUAL">;
|
|
156
|
+
conditionValue: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
157
|
+
}>, "strip", z.ZodTypeAny, {
|
|
158
|
+
conditionType: "EQUAL";
|
|
159
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
160
|
+
targettedProperty: string;
|
|
161
|
+
conditionValue: string | number;
|
|
162
|
+
}, {
|
|
163
|
+
conditionType: "EQUAL";
|
|
164
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
165
|
+
targettedProperty: string;
|
|
166
|
+
conditionValue: string | number;
|
|
167
|
+
}>;
|
|
173
168
|
export interface IConditionEquality extends IConditionBase {
|
|
174
169
|
conditionType: ConditionTypeSingle.EQUAL;
|
|
175
170
|
conditionValue: number | string;
|
|
@@ -184,9 +179,27 @@ const exampleConditionRange: IConditionRange = {
|
|
|
184
179
|
targettedProperty: 'address.city.total',
|
|
185
180
|
};
|
|
186
181
|
*/
|
|
182
|
+
export declare const IConditionRangeSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
183
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
184
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
185
|
+
targettedProperty: z.ZodString;
|
|
186
|
+
}, {
|
|
187
|
+
conditionType: z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>;
|
|
188
|
+
conditionValue: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
189
|
+
}>, "strip", z.ZodTypeAny, {
|
|
190
|
+
conditionType: "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL";
|
|
191
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
192
|
+
targettedProperty: string;
|
|
193
|
+
conditionValue: string | number;
|
|
194
|
+
}, {
|
|
195
|
+
conditionType: "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL";
|
|
196
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
197
|
+
targettedProperty: string;
|
|
198
|
+
conditionValue: string | number;
|
|
199
|
+
}>;
|
|
187
200
|
export interface IConditionRange extends IConditionBase {
|
|
188
201
|
conditionType: ConditionTypeRange;
|
|
189
|
-
conditionValue:
|
|
202
|
+
conditionValue: number | string;
|
|
190
203
|
}
|
|
191
204
|
/**
|
|
192
205
|
* This is the interface for the contains condition.
|
|
@@ -198,6 +211,24 @@ const exampleConditionContains: IConditionContains = {
|
|
|
198
211
|
targettedProperty: 'address.city.name',
|
|
199
212
|
* };
|
|
200
213
|
*/
|
|
214
|
+
export declare const IConditionContainsSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
215
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
216
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
217
|
+
targettedProperty: z.ZodString;
|
|
218
|
+
}, {
|
|
219
|
+
conditionType: z.ZodLiteral<"CONTAINS">;
|
|
220
|
+
conditionValue: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">]>;
|
|
221
|
+
}>, "strip", z.ZodTypeAny, {
|
|
222
|
+
conditionType: "CONTAINS";
|
|
223
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
224
|
+
targettedProperty: string;
|
|
225
|
+
conditionValue: string | string[] | number[];
|
|
226
|
+
}, {
|
|
227
|
+
conditionType: "CONTAINS";
|
|
228
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
229
|
+
targettedProperty: string;
|
|
230
|
+
conditionValue: string | string[] | number[];
|
|
231
|
+
}>;
|
|
201
232
|
export interface IConditionContains extends IConditionBase {
|
|
202
233
|
conditionType: ConditionTypeSingle.CONTAINS;
|
|
203
234
|
conditionValue: string | string[] | number[];
|
|
@@ -212,6 +243,24 @@ const exampleConditionStartsEndsWith: IConditionStartsEndsWith = {
|
|
|
212
243
|
targettedProperty: 'address.city.name',
|
|
213
244
|
};
|
|
214
245
|
*/
|
|
246
|
+
export declare const IConditionStartsEndsWithSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
247
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
248
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
249
|
+
targettedProperty: z.ZodString;
|
|
250
|
+
}, {
|
|
251
|
+
conditionType: z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>;
|
|
252
|
+
conditionValue: z.ZodString;
|
|
253
|
+
}>, "strip", z.ZodTypeAny, {
|
|
254
|
+
conditionType: "STARTS_WITH" | "ENDS_WITH";
|
|
255
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
256
|
+
targettedProperty: string;
|
|
257
|
+
conditionValue: string;
|
|
258
|
+
}, {
|
|
259
|
+
conditionType: "STARTS_WITH" | "ENDS_WITH";
|
|
260
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
261
|
+
targettedProperty: string;
|
|
262
|
+
conditionValue: string;
|
|
263
|
+
}>;
|
|
215
264
|
export interface IConditionStartsEndsWith extends IConditionBase {
|
|
216
265
|
conditionType: ConditionTypeStartsEndsWith;
|
|
217
266
|
conditionValue: string;
|
|
@@ -224,6 +273,21 @@ const exampleConditionNull: IConditionNull = {
|
|
|
224
273
|
targettedProperty: 'address.city.name',
|
|
225
274
|
};
|
|
226
275
|
*/
|
|
276
|
+
export declare const IConditionNullSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
277
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
278
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
279
|
+
targettedProperty: z.ZodString;
|
|
280
|
+
}, {
|
|
281
|
+
conditionType: z.ZodLiteral<"NULL">;
|
|
282
|
+
}>, "strip", z.ZodTypeAny, {
|
|
283
|
+
conditionType: "NULL";
|
|
284
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
285
|
+
targettedProperty: string;
|
|
286
|
+
}, {
|
|
287
|
+
conditionType: "NULL";
|
|
288
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
289
|
+
targettedProperty: string;
|
|
290
|
+
}>;
|
|
227
291
|
export interface IConditionNull extends IConditionBase {
|
|
228
292
|
conditionType: ConditionTypeSingle.NULL;
|
|
229
293
|
}
|
|
@@ -236,6 +300,21 @@ const exampleConditionBoolean: IConditionBoolean = {
|
|
|
236
300
|
targettedProperty: 'address.city.name',
|
|
237
301
|
};
|
|
238
302
|
*/
|
|
303
|
+
export declare const IConditionBooleanSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
304
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
305
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
306
|
+
targettedProperty: z.ZodString;
|
|
307
|
+
}, {
|
|
308
|
+
conditionType: z.ZodEnum<["TRUE", "FALSE"]>;
|
|
309
|
+
}>, "strip", z.ZodTypeAny, {
|
|
310
|
+
conditionType: "TRUE" | "FALSE";
|
|
311
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
312
|
+
targettedProperty: string;
|
|
313
|
+
}, {
|
|
314
|
+
conditionType: "TRUE" | "FALSE";
|
|
315
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
316
|
+
targettedProperty: string;
|
|
317
|
+
}>;
|
|
239
318
|
export interface IConditionBoolean extends IConditionBase {
|
|
240
319
|
conditionType: ConditionTypeBoolean;
|
|
241
320
|
}
|
|
@@ -248,6 +327,21 @@ const exampleConditionEmpty: IConditionEmpty = {
|
|
|
248
327
|
targettedProperty: 'address.city.name',
|
|
249
328
|
};
|
|
250
329
|
*/
|
|
330
|
+
export declare const IConditionEmptySchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
331
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
332
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
333
|
+
targettedProperty: z.ZodString;
|
|
334
|
+
}, {
|
|
335
|
+
conditionType: z.ZodLiteral<"EMPTY">;
|
|
336
|
+
}>, "strip", z.ZodTypeAny, {
|
|
337
|
+
conditionType: "EMPTY";
|
|
338
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
339
|
+
targettedProperty: string;
|
|
340
|
+
}, {
|
|
341
|
+
conditionType: "EMPTY";
|
|
342
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
343
|
+
targettedProperty: string;
|
|
344
|
+
}>;
|
|
251
345
|
export interface IConditionEmpty extends IConditionBase {
|
|
252
346
|
conditionType: ConditionTypeSingle.EMPTY;
|
|
253
347
|
}
|
|
@@ -261,43 +355,1174 @@ const exampleConditionSpecial: IConditionSpecial = {
|
|
|
261
355
|
targettedProperty: 'address.city.name',
|
|
262
356
|
};
|
|
263
357
|
*/
|
|
358
|
+
export declare const IConditionSpecialSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
359
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
360
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
361
|
+
targettedProperty: z.ZodString;
|
|
362
|
+
}, {
|
|
363
|
+
conditionType: z.ZodEnum<["PATTERN"]>;
|
|
364
|
+
conditionValue: z.ZodString;
|
|
365
|
+
}>, "strip", z.ZodTypeAny, {
|
|
366
|
+
conditionType: "PATTERN";
|
|
367
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
368
|
+
targettedProperty: string;
|
|
369
|
+
conditionValue: string;
|
|
370
|
+
}, {
|
|
371
|
+
conditionType: "PATTERN";
|
|
372
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
373
|
+
targettedProperty: string;
|
|
374
|
+
conditionValue: string;
|
|
375
|
+
}>;
|
|
264
376
|
export interface IConditionSpecial extends IConditionBase {
|
|
265
377
|
conditionType: ConditionTypeSpecial;
|
|
266
378
|
conditionValue: string;
|
|
267
379
|
}
|
|
268
|
-
|
|
269
|
-
* This is the interface for the share rule condition.
|
|
270
|
-
*
|
|
271
|
-
|
|
272
|
-
const nestedShareRule: IShareRule = {
|
|
273
|
-
ruleId: 'nestedRule',
|
|
274
|
-
currentDataConditions: [
|
|
275
|
-
{
|
|
276
|
-
targettedProperty: 'nestedProperty',
|
|
277
|
-
conditionType: 'equal',
|
|
278
|
-
conditionValue: 'expectedValue',
|
|
279
|
-
conditionTypeQualifier: ConditionTypeQualifier.IS,
|
|
280
|
-
},
|
|
281
|
-
],
|
|
282
|
-
proposedDataConditions: [
|
|
283
|
-
{
|
|
284
|
-
targettedProperty: 'nestedProperty',
|
|
285
|
-
conditionType: 'equal',
|
|
286
|
-
conditionValue: 'newValue',
|
|
287
|
-
conditionTypeQualifier: ConditionTypeQualifier.IS,
|
|
288
|
-
},
|
|
289
|
-
],
|
|
290
|
-
};
|
|
291
|
-
|
|
292
|
-
const conditionWithShareRule: IConditionShareRule = {
|
|
293
|
-
conditionType: ConditionTypeSingle.SHARE_RULE,
|
|
294
|
-
conditionTypeQualifier: ConditionTypeQualifier.IS,
|
|
295
|
-
targettedProperty: 'parentProperty',
|
|
296
|
-
rule: nestedShareRule,
|
|
297
|
-
};
|
|
298
|
-
*/
|
|
380
|
+
export declare const IConditionShareRuleSchema: z.ZodType<unknown>;
|
|
299
381
|
export interface IConditionShareRule extends IConditionBase {
|
|
300
382
|
conditionType: ConditionTypeSingle.SHARE_RULE;
|
|
301
383
|
conditionValue: IShareRule;
|
|
302
384
|
}
|
|
385
|
+
/**
|
|
386
|
+
* This is the interface for the conditional information in the checks.
|
|
387
|
+
*/
|
|
388
|
+
export declare const IConditionSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
389
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
390
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
391
|
+
targettedProperty: z.ZodString;
|
|
392
|
+
}, {
|
|
393
|
+
conditionType: z.ZodLiteral<"TYPEOF">;
|
|
394
|
+
conditionValue: z.ZodEnum<["STRING", "NUMBER", "INTEGER", "BOOLEAN", "OBJECT", "ARRAY", "NULL", "UNDEFINED", "FUNCTION", "BIGINT"]>;
|
|
395
|
+
}>, "strip", z.ZodTypeAny, {
|
|
396
|
+
conditionType: "TYPEOF";
|
|
397
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
398
|
+
targettedProperty: string;
|
|
399
|
+
conditionValue: "NULL" | "STRING" | "NUMBER" | "INTEGER" | "BOOLEAN" | "OBJECT" | "ARRAY" | "UNDEFINED" | "FUNCTION" | "BIGINT";
|
|
400
|
+
}, {
|
|
401
|
+
conditionType: "TYPEOF";
|
|
402
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
403
|
+
targettedProperty: string;
|
|
404
|
+
conditionValue: "NULL" | "STRING" | "NUMBER" | "INTEGER" | "BOOLEAN" | "OBJECT" | "ARRAY" | "UNDEFINED" | "FUNCTION" | "BIGINT";
|
|
405
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
406
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
407
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
408
|
+
targettedProperty: z.ZodString;
|
|
409
|
+
}, {
|
|
410
|
+
conditionType: z.ZodLiteral<"EQUAL">;
|
|
411
|
+
conditionValue: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
412
|
+
}>, "strip", z.ZodTypeAny, {
|
|
413
|
+
conditionType: "EQUAL";
|
|
414
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
415
|
+
targettedProperty: string;
|
|
416
|
+
conditionValue: string | number;
|
|
417
|
+
}, {
|
|
418
|
+
conditionType: "EQUAL";
|
|
419
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
420
|
+
targettedProperty: string;
|
|
421
|
+
conditionValue: string | number;
|
|
422
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
423
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
424
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
425
|
+
targettedProperty: z.ZodString;
|
|
426
|
+
}, {
|
|
427
|
+
conditionType: z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>;
|
|
428
|
+
conditionValue: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
429
|
+
}>, "strip", z.ZodTypeAny, {
|
|
430
|
+
conditionType: "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL";
|
|
431
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
432
|
+
targettedProperty: string;
|
|
433
|
+
conditionValue: string | number;
|
|
434
|
+
}, {
|
|
435
|
+
conditionType: "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL";
|
|
436
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
437
|
+
targettedProperty: string;
|
|
438
|
+
conditionValue: string | number;
|
|
439
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
440
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
441
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
442
|
+
targettedProperty: z.ZodString;
|
|
443
|
+
}, {
|
|
444
|
+
conditionType: z.ZodLiteral<"CONTAINS">;
|
|
445
|
+
conditionValue: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">]>;
|
|
446
|
+
}>, "strip", z.ZodTypeAny, {
|
|
447
|
+
conditionType: "CONTAINS";
|
|
448
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
449
|
+
targettedProperty: string;
|
|
450
|
+
conditionValue: string | string[] | number[];
|
|
451
|
+
}, {
|
|
452
|
+
conditionType: "CONTAINS";
|
|
453
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
454
|
+
targettedProperty: string;
|
|
455
|
+
conditionValue: string | string[] | number[];
|
|
456
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
457
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
458
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
459
|
+
targettedProperty: z.ZodString;
|
|
460
|
+
}, {
|
|
461
|
+
conditionType: z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>;
|
|
462
|
+
conditionValue: z.ZodString;
|
|
463
|
+
}>, "strip", z.ZodTypeAny, {
|
|
464
|
+
conditionType: "STARTS_WITH" | "ENDS_WITH";
|
|
465
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
466
|
+
targettedProperty: string;
|
|
467
|
+
conditionValue: string;
|
|
468
|
+
}, {
|
|
469
|
+
conditionType: "STARTS_WITH" | "ENDS_WITH";
|
|
470
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
471
|
+
targettedProperty: string;
|
|
472
|
+
conditionValue: string;
|
|
473
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
474
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
475
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
476
|
+
targettedProperty: z.ZodString;
|
|
477
|
+
}, {
|
|
478
|
+
conditionType: z.ZodLiteral<"NULL">;
|
|
479
|
+
}>, "strip", z.ZodTypeAny, {
|
|
480
|
+
conditionType: "NULL";
|
|
481
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
482
|
+
targettedProperty: string;
|
|
483
|
+
}, {
|
|
484
|
+
conditionType: "NULL";
|
|
485
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
486
|
+
targettedProperty: string;
|
|
487
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
488
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
489
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
490
|
+
targettedProperty: z.ZodString;
|
|
491
|
+
}, {
|
|
492
|
+
conditionType: z.ZodEnum<["TRUE", "FALSE"]>;
|
|
493
|
+
}>, "strip", z.ZodTypeAny, {
|
|
494
|
+
conditionType: "TRUE" | "FALSE";
|
|
495
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
496
|
+
targettedProperty: string;
|
|
497
|
+
}, {
|
|
498
|
+
conditionType: "TRUE" | "FALSE";
|
|
499
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
500
|
+
targettedProperty: string;
|
|
501
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
502
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
503
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
504
|
+
targettedProperty: z.ZodString;
|
|
505
|
+
}, {
|
|
506
|
+
conditionType: z.ZodLiteral<"EMPTY">;
|
|
507
|
+
}>, "strip", z.ZodTypeAny, {
|
|
508
|
+
conditionType: "EMPTY";
|
|
509
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
510
|
+
targettedProperty: string;
|
|
511
|
+
}, {
|
|
512
|
+
conditionType: "EMPTY";
|
|
513
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
514
|
+
targettedProperty: string;
|
|
515
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
516
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
517
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
518
|
+
targettedProperty: z.ZodString;
|
|
519
|
+
}, {
|
|
520
|
+
conditionType: z.ZodEnum<["PATTERN"]>;
|
|
521
|
+
conditionValue: z.ZodString;
|
|
522
|
+
}>, "strip", z.ZodTypeAny, {
|
|
523
|
+
conditionType: "PATTERN";
|
|
524
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
525
|
+
targettedProperty: string;
|
|
526
|
+
conditionValue: string;
|
|
527
|
+
}, {
|
|
528
|
+
conditionType: "PATTERN";
|
|
529
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
530
|
+
targettedProperty: string;
|
|
531
|
+
conditionValue: string;
|
|
532
|
+
}>, z.ZodType<unknown, z.ZodTypeDef, unknown>]>;
|
|
533
|
+
export type ICondition = IConditionTypeOf | IConditionEquality | IConditionRange | IConditionContains | IConditionStartsEndsWith | IConditionNull | IConditionBoolean | IConditionEmpty | IConditionShareRule | IConditionSpecial;
|
|
534
|
+
/**
|
|
535
|
+
* This contains the interface for a share rule in the share data object
|
|
536
|
+
*/
|
|
537
|
+
export declare const IShareRuleSchema: z.ZodObject<{
|
|
538
|
+
ruleId: z.ZodString;
|
|
539
|
+
currentDataConditions: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
540
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
541
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
542
|
+
targettedProperty: z.ZodString;
|
|
543
|
+
}, {
|
|
544
|
+
conditionType: z.ZodLiteral<"TYPEOF">;
|
|
545
|
+
conditionValue: z.ZodEnum<["STRING", "NUMBER", "INTEGER", "BOOLEAN", "OBJECT", "ARRAY", "NULL", "UNDEFINED", "FUNCTION", "BIGINT"]>;
|
|
546
|
+
}>, "strip", z.ZodTypeAny, {
|
|
547
|
+
conditionType: "TYPEOF";
|
|
548
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
549
|
+
targettedProperty: string;
|
|
550
|
+
conditionValue: "NULL" | "STRING" | "NUMBER" | "INTEGER" | "BOOLEAN" | "OBJECT" | "ARRAY" | "UNDEFINED" | "FUNCTION" | "BIGINT";
|
|
551
|
+
}, {
|
|
552
|
+
conditionType: "TYPEOF";
|
|
553
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
554
|
+
targettedProperty: string;
|
|
555
|
+
conditionValue: "NULL" | "STRING" | "NUMBER" | "INTEGER" | "BOOLEAN" | "OBJECT" | "ARRAY" | "UNDEFINED" | "FUNCTION" | "BIGINT";
|
|
556
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
557
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
558
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
559
|
+
targettedProperty: z.ZodString;
|
|
560
|
+
}, {
|
|
561
|
+
conditionType: z.ZodLiteral<"EQUAL">;
|
|
562
|
+
conditionValue: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
563
|
+
}>, "strip", z.ZodTypeAny, {
|
|
564
|
+
conditionType: "EQUAL";
|
|
565
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
566
|
+
targettedProperty: string;
|
|
567
|
+
conditionValue: string | number;
|
|
568
|
+
}, {
|
|
569
|
+
conditionType: "EQUAL";
|
|
570
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
571
|
+
targettedProperty: string;
|
|
572
|
+
conditionValue: string | number;
|
|
573
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
574
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
575
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
576
|
+
targettedProperty: z.ZodString;
|
|
577
|
+
}, {
|
|
578
|
+
conditionType: z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>;
|
|
579
|
+
conditionValue: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
580
|
+
}>, "strip", z.ZodTypeAny, {
|
|
581
|
+
conditionType: "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL";
|
|
582
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
583
|
+
targettedProperty: string;
|
|
584
|
+
conditionValue: string | number;
|
|
585
|
+
}, {
|
|
586
|
+
conditionType: "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL";
|
|
587
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
588
|
+
targettedProperty: string;
|
|
589
|
+
conditionValue: string | number;
|
|
590
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
591
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
592
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
593
|
+
targettedProperty: z.ZodString;
|
|
594
|
+
}, {
|
|
595
|
+
conditionType: z.ZodLiteral<"CONTAINS">;
|
|
596
|
+
conditionValue: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">]>;
|
|
597
|
+
}>, "strip", z.ZodTypeAny, {
|
|
598
|
+
conditionType: "CONTAINS";
|
|
599
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
600
|
+
targettedProperty: string;
|
|
601
|
+
conditionValue: string | string[] | number[];
|
|
602
|
+
}, {
|
|
603
|
+
conditionType: "CONTAINS";
|
|
604
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
605
|
+
targettedProperty: string;
|
|
606
|
+
conditionValue: string | string[] | number[];
|
|
607
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
608
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
609
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
610
|
+
targettedProperty: z.ZodString;
|
|
611
|
+
}, {
|
|
612
|
+
conditionType: z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>;
|
|
613
|
+
conditionValue: z.ZodString;
|
|
614
|
+
}>, "strip", z.ZodTypeAny, {
|
|
615
|
+
conditionType: "STARTS_WITH" | "ENDS_WITH";
|
|
616
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
617
|
+
targettedProperty: string;
|
|
618
|
+
conditionValue: string;
|
|
619
|
+
}, {
|
|
620
|
+
conditionType: "STARTS_WITH" | "ENDS_WITH";
|
|
621
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
622
|
+
targettedProperty: string;
|
|
623
|
+
conditionValue: string;
|
|
624
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
625
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
626
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
627
|
+
targettedProperty: z.ZodString;
|
|
628
|
+
}, {
|
|
629
|
+
conditionType: z.ZodLiteral<"NULL">;
|
|
630
|
+
}>, "strip", z.ZodTypeAny, {
|
|
631
|
+
conditionType: "NULL";
|
|
632
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
633
|
+
targettedProperty: string;
|
|
634
|
+
}, {
|
|
635
|
+
conditionType: "NULL";
|
|
636
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
637
|
+
targettedProperty: string;
|
|
638
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
639
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
640
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
641
|
+
targettedProperty: z.ZodString;
|
|
642
|
+
}, {
|
|
643
|
+
conditionType: z.ZodEnum<["TRUE", "FALSE"]>;
|
|
644
|
+
}>, "strip", z.ZodTypeAny, {
|
|
645
|
+
conditionType: "TRUE" | "FALSE";
|
|
646
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
647
|
+
targettedProperty: string;
|
|
648
|
+
}, {
|
|
649
|
+
conditionType: "TRUE" | "FALSE";
|
|
650
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
651
|
+
targettedProperty: string;
|
|
652
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
653
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
654
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
655
|
+
targettedProperty: z.ZodString;
|
|
656
|
+
}, {
|
|
657
|
+
conditionType: z.ZodLiteral<"EMPTY">;
|
|
658
|
+
}>, "strip", z.ZodTypeAny, {
|
|
659
|
+
conditionType: "EMPTY";
|
|
660
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
661
|
+
targettedProperty: string;
|
|
662
|
+
}, {
|
|
663
|
+
conditionType: "EMPTY";
|
|
664
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
665
|
+
targettedProperty: string;
|
|
666
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
667
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
668
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
669
|
+
targettedProperty: z.ZodString;
|
|
670
|
+
}, {
|
|
671
|
+
conditionType: z.ZodEnum<["PATTERN"]>;
|
|
672
|
+
conditionValue: z.ZodString;
|
|
673
|
+
}>, "strip", z.ZodTypeAny, {
|
|
674
|
+
conditionType: "PATTERN";
|
|
675
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
676
|
+
targettedProperty: string;
|
|
677
|
+
conditionValue: string;
|
|
678
|
+
}, {
|
|
679
|
+
conditionType: "PATTERN";
|
|
680
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
681
|
+
targettedProperty: string;
|
|
682
|
+
conditionValue: string;
|
|
683
|
+
}>, z.ZodType<unknown, z.ZodTypeDef, unknown>]>, "many">;
|
|
684
|
+
proposedDataConditions: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
685
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
686
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
687
|
+
targettedProperty: z.ZodString;
|
|
688
|
+
}, {
|
|
689
|
+
conditionType: z.ZodLiteral<"TYPEOF">;
|
|
690
|
+
conditionValue: z.ZodEnum<["STRING", "NUMBER", "INTEGER", "BOOLEAN", "OBJECT", "ARRAY", "NULL", "UNDEFINED", "FUNCTION", "BIGINT"]>;
|
|
691
|
+
}>, "strip", z.ZodTypeAny, {
|
|
692
|
+
conditionType: "TYPEOF";
|
|
693
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
694
|
+
targettedProperty: string;
|
|
695
|
+
conditionValue: "NULL" | "STRING" | "NUMBER" | "INTEGER" | "BOOLEAN" | "OBJECT" | "ARRAY" | "UNDEFINED" | "FUNCTION" | "BIGINT";
|
|
696
|
+
}, {
|
|
697
|
+
conditionType: "TYPEOF";
|
|
698
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
699
|
+
targettedProperty: string;
|
|
700
|
+
conditionValue: "NULL" | "STRING" | "NUMBER" | "INTEGER" | "BOOLEAN" | "OBJECT" | "ARRAY" | "UNDEFINED" | "FUNCTION" | "BIGINT";
|
|
701
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
702
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
703
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
704
|
+
targettedProperty: z.ZodString;
|
|
705
|
+
}, {
|
|
706
|
+
conditionType: z.ZodLiteral<"EQUAL">;
|
|
707
|
+
conditionValue: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
708
|
+
}>, "strip", z.ZodTypeAny, {
|
|
709
|
+
conditionType: "EQUAL";
|
|
710
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
711
|
+
targettedProperty: string;
|
|
712
|
+
conditionValue: string | number;
|
|
713
|
+
}, {
|
|
714
|
+
conditionType: "EQUAL";
|
|
715
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
716
|
+
targettedProperty: string;
|
|
717
|
+
conditionValue: string | number;
|
|
718
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
719
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
720
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
721
|
+
targettedProperty: z.ZodString;
|
|
722
|
+
}, {
|
|
723
|
+
conditionType: z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>;
|
|
724
|
+
conditionValue: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
725
|
+
}>, "strip", z.ZodTypeAny, {
|
|
726
|
+
conditionType: "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL";
|
|
727
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
728
|
+
targettedProperty: string;
|
|
729
|
+
conditionValue: string | number;
|
|
730
|
+
}, {
|
|
731
|
+
conditionType: "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL";
|
|
732
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
733
|
+
targettedProperty: string;
|
|
734
|
+
conditionValue: string | number;
|
|
735
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
736
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
737
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
738
|
+
targettedProperty: z.ZodString;
|
|
739
|
+
}, {
|
|
740
|
+
conditionType: z.ZodLiteral<"CONTAINS">;
|
|
741
|
+
conditionValue: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">]>;
|
|
742
|
+
}>, "strip", z.ZodTypeAny, {
|
|
743
|
+
conditionType: "CONTAINS";
|
|
744
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
745
|
+
targettedProperty: string;
|
|
746
|
+
conditionValue: string | string[] | number[];
|
|
747
|
+
}, {
|
|
748
|
+
conditionType: "CONTAINS";
|
|
749
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
750
|
+
targettedProperty: string;
|
|
751
|
+
conditionValue: string | string[] | number[];
|
|
752
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
753
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
754
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
755
|
+
targettedProperty: z.ZodString;
|
|
756
|
+
}, {
|
|
757
|
+
conditionType: z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>;
|
|
758
|
+
conditionValue: z.ZodString;
|
|
759
|
+
}>, "strip", z.ZodTypeAny, {
|
|
760
|
+
conditionType: "STARTS_WITH" | "ENDS_WITH";
|
|
761
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
762
|
+
targettedProperty: string;
|
|
763
|
+
conditionValue: string;
|
|
764
|
+
}, {
|
|
765
|
+
conditionType: "STARTS_WITH" | "ENDS_WITH";
|
|
766
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
767
|
+
targettedProperty: string;
|
|
768
|
+
conditionValue: string;
|
|
769
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
770
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
771
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
772
|
+
targettedProperty: z.ZodString;
|
|
773
|
+
}, {
|
|
774
|
+
conditionType: z.ZodLiteral<"NULL">;
|
|
775
|
+
}>, "strip", z.ZodTypeAny, {
|
|
776
|
+
conditionType: "NULL";
|
|
777
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
778
|
+
targettedProperty: string;
|
|
779
|
+
}, {
|
|
780
|
+
conditionType: "NULL";
|
|
781
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
782
|
+
targettedProperty: string;
|
|
783
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
784
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
785
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
786
|
+
targettedProperty: z.ZodString;
|
|
787
|
+
}, {
|
|
788
|
+
conditionType: z.ZodEnum<["TRUE", "FALSE"]>;
|
|
789
|
+
}>, "strip", z.ZodTypeAny, {
|
|
790
|
+
conditionType: "TRUE" | "FALSE";
|
|
791
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
792
|
+
targettedProperty: string;
|
|
793
|
+
}, {
|
|
794
|
+
conditionType: "TRUE" | "FALSE";
|
|
795
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
796
|
+
targettedProperty: string;
|
|
797
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
798
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
799
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
800
|
+
targettedProperty: z.ZodString;
|
|
801
|
+
}, {
|
|
802
|
+
conditionType: z.ZodLiteral<"EMPTY">;
|
|
803
|
+
}>, "strip", z.ZodTypeAny, {
|
|
804
|
+
conditionType: "EMPTY";
|
|
805
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
806
|
+
targettedProperty: string;
|
|
807
|
+
}, {
|
|
808
|
+
conditionType: "EMPTY";
|
|
809
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
810
|
+
targettedProperty: string;
|
|
811
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
812
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
813
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
814
|
+
targettedProperty: z.ZodString;
|
|
815
|
+
}, {
|
|
816
|
+
conditionType: z.ZodEnum<["PATTERN"]>;
|
|
817
|
+
conditionValue: z.ZodString;
|
|
818
|
+
}>, "strip", z.ZodTypeAny, {
|
|
819
|
+
conditionType: "PATTERN";
|
|
820
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
821
|
+
targettedProperty: string;
|
|
822
|
+
conditionValue: string;
|
|
823
|
+
}, {
|
|
824
|
+
conditionType: "PATTERN";
|
|
825
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
826
|
+
targettedProperty: string;
|
|
827
|
+
conditionValue: string;
|
|
828
|
+
}>, z.ZodType<unknown, z.ZodTypeDef, unknown>]>, "many">;
|
|
829
|
+
}, "strip", z.ZodTypeAny, {
|
|
830
|
+
ruleId: string;
|
|
831
|
+
currentDataConditions: unknown[];
|
|
832
|
+
proposedDataConditions: unknown[];
|
|
833
|
+
}, {
|
|
834
|
+
ruleId: string;
|
|
835
|
+
currentDataConditions: unknown[];
|
|
836
|
+
proposedDataConditions: unknown[];
|
|
837
|
+
}>;
|
|
838
|
+
export interface IShareRule {
|
|
839
|
+
ruleId: string;
|
|
840
|
+
currentDataConditions: ICondition[];
|
|
841
|
+
proposedDataConditions: ICondition[];
|
|
842
|
+
}
|
|
843
|
+
/**
|
|
844
|
+
* This contains the applied rule informaiton in the share data object.
|
|
845
|
+
*/
|
|
846
|
+
export declare const IShareRuleAppliedSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
847
|
+
ruleId: z.ZodString;
|
|
848
|
+
currentDataConditions: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
849
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
850
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
851
|
+
targettedProperty: z.ZodString;
|
|
852
|
+
}, {
|
|
853
|
+
conditionType: z.ZodLiteral<"TYPEOF">;
|
|
854
|
+
conditionValue: z.ZodEnum<["STRING", "NUMBER", "INTEGER", "BOOLEAN", "OBJECT", "ARRAY", "NULL", "UNDEFINED", "FUNCTION", "BIGINT"]>;
|
|
855
|
+
}>, "strip", z.ZodTypeAny, {
|
|
856
|
+
conditionType: "TYPEOF";
|
|
857
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
858
|
+
targettedProperty: string;
|
|
859
|
+
conditionValue: "NULL" | "STRING" | "NUMBER" | "INTEGER" | "BOOLEAN" | "OBJECT" | "ARRAY" | "UNDEFINED" | "FUNCTION" | "BIGINT";
|
|
860
|
+
}, {
|
|
861
|
+
conditionType: "TYPEOF";
|
|
862
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
863
|
+
targettedProperty: string;
|
|
864
|
+
conditionValue: "NULL" | "STRING" | "NUMBER" | "INTEGER" | "BOOLEAN" | "OBJECT" | "ARRAY" | "UNDEFINED" | "FUNCTION" | "BIGINT";
|
|
865
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
866
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
867
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
868
|
+
targettedProperty: z.ZodString;
|
|
869
|
+
}, {
|
|
870
|
+
conditionType: z.ZodLiteral<"EQUAL">;
|
|
871
|
+
conditionValue: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
872
|
+
}>, "strip", z.ZodTypeAny, {
|
|
873
|
+
conditionType: "EQUAL";
|
|
874
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
875
|
+
targettedProperty: string;
|
|
876
|
+
conditionValue: string | number;
|
|
877
|
+
}, {
|
|
878
|
+
conditionType: "EQUAL";
|
|
879
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
880
|
+
targettedProperty: string;
|
|
881
|
+
conditionValue: string | number;
|
|
882
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
883
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
884
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
885
|
+
targettedProperty: z.ZodString;
|
|
886
|
+
}, {
|
|
887
|
+
conditionType: z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>;
|
|
888
|
+
conditionValue: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
889
|
+
}>, "strip", z.ZodTypeAny, {
|
|
890
|
+
conditionType: "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL";
|
|
891
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
892
|
+
targettedProperty: string;
|
|
893
|
+
conditionValue: string | number;
|
|
894
|
+
}, {
|
|
895
|
+
conditionType: "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL";
|
|
896
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
897
|
+
targettedProperty: string;
|
|
898
|
+
conditionValue: string | number;
|
|
899
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
900
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
901
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
902
|
+
targettedProperty: z.ZodString;
|
|
903
|
+
}, {
|
|
904
|
+
conditionType: z.ZodLiteral<"CONTAINS">;
|
|
905
|
+
conditionValue: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">]>;
|
|
906
|
+
}>, "strip", z.ZodTypeAny, {
|
|
907
|
+
conditionType: "CONTAINS";
|
|
908
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
909
|
+
targettedProperty: string;
|
|
910
|
+
conditionValue: string | string[] | number[];
|
|
911
|
+
}, {
|
|
912
|
+
conditionType: "CONTAINS";
|
|
913
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
914
|
+
targettedProperty: string;
|
|
915
|
+
conditionValue: string | string[] | number[];
|
|
916
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
917
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
918
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
919
|
+
targettedProperty: z.ZodString;
|
|
920
|
+
}, {
|
|
921
|
+
conditionType: z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>;
|
|
922
|
+
conditionValue: z.ZodString;
|
|
923
|
+
}>, "strip", z.ZodTypeAny, {
|
|
924
|
+
conditionType: "STARTS_WITH" | "ENDS_WITH";
|
|
925
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
926
|
+
targettedProperty: string;
|
|
927
|
+
conditionValue: string;
|
|
928
|
+
}, {
|
|
929
|
+
conditionType: "STARTS_WITH" | "ENDS_WITH";
|
|
930
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
931
|
+
targettedProperty: string;
|
|
932
|
+
conditionValue: string;
|
|
933
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
934
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
935
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
936
|
+
targettedProperty: z.ZodString;
|
|
937
|
+
}, {
|
|
938
|
+
conditionType: z.ZodLiteral<"NULL">;
|
|
939
|
+
}>, "strip", z.ZodTypeAny, {
|
|
940
|
+
conditionType: "NULL";
|
|
941
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
942
|
+
targettedProperty: string;
|
|
943
|
+
}, {
|
|
944
|
+
conditionType: "NULL";
|
|
945
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
946
|
+
targettedProperty: string;
|
|
947
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
948
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
949
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
950
|
+
targettedProperty: z.ZodString;
|
|
951
|
+
}, {
|
|
952
|
+
conditionType: z.ZodEnum<["TRUE", "FALSE"]>;
|
|
953
|
+
}>, "strip", z.ZodTypeAny, {
|
|
954
|
+
conditionType: "TRUE" | "FALSE";
|
|
955
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
956
|
+
targettedProperty: string;
|
|
957
|
+
}, {
|
|
958
|
+
conditionType: "TRUE" | "FALSE";
|
|
959
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
960
|
+
targettedProperty: string;
|
|
961
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
962
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
963
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
964
|
+
targettedProperty: z.ZodString;
|
|
965
|
+
}, {
|
|
966
|
+
conditionType: z.ZodLiteral<"EMPTY">;
|
|
967
|
+
}>, "strip", z.ZodTypeAny, {
|
|
968
|
+
conditionType: "EMPTY";
|
|
969
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
970
|
+
targettedProperty: string;
|
|
971
|
+
}, {
|
|
972
|
+
conditionType: "EMPTY";
|
|
973
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
974
|
+
targettedProperty: string;
|
|
975
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
976
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
977
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
978
|
+
targettedProperty: z.ZodString;
|
|
979
|
+
}, {
|
|
980
|
+
conditionType: z.ZodEnum<["PATTERN"]>;
|
|
981
|
+
conditionValue: z.ZodString;
|
|
982
|
+
}>, "strip", z.ZodTypeAny, {
|
|
983
|
+
conditionType: "PATTERN";
|
|
984
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
985
|
+
targettedProperty: string;
|
|
986
|
+
conditionValue: string;
|
|
987
|
+
}, {
|
|
988
|
+
conditionType: "PATTERN";
|
|
989
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
990
|
+
targettedProperty: string;
|
|
991
|
+
conditionValue: string;
|
|
992
|
+
}>, z.ZodType<unknown, z.ZodTypeDef, unknown>]>, "many">;
|
|
993
|
+
proposedDataConditions: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
994
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
995
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
996
|
+
targettedProperty: z.ZodString;
|
|
997
|
+
}, {
|
|
998
|
+
conditionType: z.ZodLiteral<"TYPEOF">;
|
|
999
|
+
conditionValue: z.ZodEnum<["STRING", "NUMBER", "INTEGER", "BOOLEAN", "OBJECT", "ARRAY", "NULL", "UNDEFINED", "FUNCTION", "BIGINT"]>;
|
|
1000
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1001
|
+
conditionType: "TYPEOF";
|
|
1002
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1003
|
+
targettedProperty: string;
|
|
1004
|
+
conditionValue: "NULL" | "STRING" | "NUMBER" | "INTEGER" | "BOOLEAN" | "OBJECT" | "ARRAY" | "UNDEFINED" | "FUNCTION" | "BIGINT";
|
|
1005
|
+
}, {
|
|
1006
|
+
conditionType: "TYPEOF";
|
|
1007
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1008
|
+
targettedProperty: string;
|
|
1009
|
+
conditionValue: "NULL" | "STRING" | "NUMBER" | "INTEGER" | "BOOLEAN" | "OBJECT" | "ARRAY" | "UNDEFINED" | "FUNCTION" | "BIGINT";
|
|
1010
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
1011
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
1012
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
1013
|
+
targettedProperty: z.ZodString;
|
|
1014
|
+
}, {
|
|
1015
|
+
conditionType: z.ZodLiteral<"EQUAL">;
|
|
1016
|
+
conditionValue: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
1017
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1018
|
+
conditionType: "EQUAL";
|
|
1019
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1020
|
+
targettedProperty: string;
|
|
1021
|
+
conditionValue: string | number;
|
|
1022
|
+
}, {
|
|
1023
|
+
conditionType: "EQUAL";
|
|
1024
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1025
|
+
targettedProperty: string;
|
|
1026
|
+
conditionValue: string | number;
|
|
1027
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
1028
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
1029
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
1030
|
+
targettedProperty: z.ZodString;
|
|
1031
|
+
}, {
|
|
1032
|
+
conditionType: z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>;
|
|
1033
|
+
conditionValue: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
1034
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1035
|
+
conditionType: "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL";
|
|
1036
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1037
|
+
targettedProperty: string;
|
|
1038
|
+
conditionValue: string | number;
|
|
1039
|
+
}, {
|
|
1040
|
+
conditionType: "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL";
|
|
1041
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1042
|
+
targettedProperty: string;
|
|
1043
|
+
conditionValue: string | number;
|
|
1044
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
1045
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
1046
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
1047
|
+
targettedProperty: z.ZodString;
|
|
1048
|
+
}, {
|
|
1049
|
+
conditionType: z.ZodLiteral<"CONTAINS">;
|
|
1050
|
+
conditionValue: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">, z.ZodArray<z.ZodNumber, "many">]>;
|
|
1051
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1052
|
+
conditionType: "CONTAINS";
|
|
1053
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1054
|
+
targettedProperty: string;
|
|
1055
|
+
conditionValue: string | string[] | number[];
|
|
1056
|
+
}, {
|
|
1057
|
+
conditionType: "CONTAINS";
|
|
1058
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1059
|
+
targettedProperty: string;
|
|
1060
|
+
conditionValue: string | string[] | number[];
|
|
1061
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
1062
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
1063
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
1064
|
+
targettedProperty: z.ZodString;
|
|
1065
|
+
}, {
|
|
1066
|
+
conditionType: z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>;
|
|
1067
|
+
conditionValue: z.ZodString;
|
|
1068
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1069
|
+
conditionType: "STARTS_WITH" | "ENDS_WITH";
|
|
1070
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1071
|
+
targettedProperty: string;
|
|
1072
|
+
conditionValue: string;
|
|
1073
|
+
}, {
|
|
1074
|
+
conditionType: "STARTS_WITH" | "ENDS_WITH";
|
|
1075
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1076
|
+
targettedProperty: string;
|
|
1077
|
+
conditionValue: string;
|
|
1078
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
1079
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
1080
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
1081
|
+
targettedProperty: z.ZodString;
|
|
1082
|
+
}, {
|
|
1083
|
+
conditionType: z.ZodLiteral<"NULL">;
|
|
1084
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1085
|
+
conditionType: "NULL";
|
|
1086
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1087
|
+
targettedProperty: string;
|
|
1088
|
+
}, {
|
|
1089
|
+
conditionType: "NULL";
|
|
1090
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1091
|
+
targettedProperty: string;
|
|
1092
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
1093
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
1094
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
1095
|
+
targettedProperty: z.ZodString;
|
|
1096
|
+
}, {
|
|
1097
|
+
conditionType: z.ZodEnum<["TRUE", "FALSE"]>;
|
|
1098
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1099
|
+
conditionType: "TRUE" | "FALSE";
|
|
1100
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1101
|
+
targettedProperty: string;
|
|
1102
|
+
}, {
|
|
1103
|
+
conditionType: "TRUE" | "FALSE";
|
|
1104
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1105
|
+
targettedProperty: string;
|
|
1106
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
1107
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
1108
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
1109
|
+
targettedProperty: z.ZodString;
|
|
1110
|
+
}, {
|
|
1111
|
+
conditionType: z.ZodLiteral<"EMPTY">;
|
|
1112
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1113
|
+
conditionType: "EMPTY";
|
|
1114
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1115
|
+
targettedProperty: string;
|
|
1116
|
+
}, {
|
|
1117
|
+
conditionType: "EMPTY";
|
|
1118
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1119
|
+
targettedProperty: string;
|
|
1120
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
1121
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
1122
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
1123
|
+
targettedProperty: z.ZodString;
|
|
1124
|
+
}, {
|
|
1125
|
+
conditionType: z.ZodEnum<["PATTERN"]>;
|
|
1126
|
+
conditionValue: z.ZodString;
|
|
1127
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1128
|
+
conditionType: "PATTERN";
|
|
1129
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1130
|
+
targettedProperty: string;
|
|
1131
|
+
conditionValue: string;
|
|
1132
|
+
}, {
|
|
1133
|
+
conditionType: "PATTERN";
|
|
1134
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1135
|
+
targettedProperty: string;
|
|
1136
|
+
conditionValue: string;
|
|
1137
|
+
}>, z.ZodType<unknown, z.ZodTypeDef, unknown>]>, "many">;
|
|
1138
|
+
}, {
|
|
1139
|
+
targettedProperty: z.ZodString;
|
|
1140
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1141
|
+
targettedProperty: string;
|
|
1142
|
+
ruleId: string;
|
|
1143
|
+
currentDataConditions: unknown[];
|
|
1144
|
+
proposedDataConditions: unknown[];
|
|
1145
|
+
}, {
|
|
1146
|
+
targettedProperty: string;
|
|
1147
|
+
ruleId: string;
|
|
1148
|
+
currentDataConditions: unknown[];
|
|
1149
|
+
proposedDataConditions: unknown[];
|
|
1150
|
+
}>;
|
|
1151
|
+
export interface IShareRuleApplied extends IShareRule {
|
|
1152
|
+
targettedProperty: string;
|
|
1153
|
+
}
|
|
1154
|
+
/**
|
|
1155
|
+
* This contains the interface for the rule evaluation.
|
|
1156
|
+
*/
|
|
1157
|
+
export declare const IShareRuleEvalutionResultSchema: z.ZodObject<{
|
|
1158
|
+
ruleId: z.ZodString;
|
|
1159
|
+
currentResult: z.ZodBoolean;
|
|
1160
|
+
currentConditionFailure: z.ZodArray<z.ZodObject<{
|
|
1161
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
1162
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
1163
|
+
targettedProperty: z.ZodString;
|
|
1164
|
+
}, "strip", z.ZodTypeAny, {
|
|
1165
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1166
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1167
|
+
targettedProperty: string;
|
|
1168
|
+
}, {
|
|
1169
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1170
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1171
|
+
targettedProperty: string;
|
|
1172
|
+
}>, "many">;
|
|
1173
|
+
proposedResult: z.ZodBoolean;
|
|
1174
|
+
proposedConditionFailure: z.ZodArray<z.ZodObject<{
|
|
1175
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
1176
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
1177
|
+
targettedProperty: z.ZodString;
|
|
1178
|
+
}, "strip", z.ZodTypeAny, {
|
|
1179
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1180
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1181
|
+
targettedProperty: string;
|
|
1182
|
+
}, {
|
|
1183
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1184
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1185
|
+
targettedProperty: string;
|
|
1186
|
+
}>, "many">;
|
|
1187
|
+
}, "strip", z.ZodTypeAny, {
|
|
1188
|
+
ruleId: string;
|
|
1189
|
+
currentResult: boolean;
|
|
1190
|
+
currentConditionFailure: {
|
|
1191
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1192
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1193
|
+
targettedProperty: string;
|
|
1194
|
+
}[];
|
|
1195
|
+
proposedResult: boolean;
|
|
1196
|
+
proposedConditionFailure: {
|
|
1197
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1198
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1199
|
+
targettedProperty: string;
|
|
1200
|
+
}[];
|
|
1201
|
+
}, {
|
|
1202
|
+
ruleId: string;
|
|
1203
|
+
currentResult: boolean;
|
|
1204
|
+
currentConditionFailure: {
|
|
1205
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1206
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1207
|
+
targettedProperty: string;
|
|
1208
|
+
}[];
|
|
1209
|
+
proposedResult: boolean;
|
|
1210
|
+
proposedConditionFailure: {
|
|
1211
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1212
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1213
|
+
targettedProperty: string;
|
|
1214
|
+
}[];
|
|
1215
|
+
}>;
|
|
1216
|
+
export interface IShareRuleEvalutionResult {
|
|
1217
|
+
ruleId: string;
|
|
1218
|
+
currentResult: boolean;
|
|
1219
|
+
currentConditionFailure: IConditionBase[];
|
|
1220
|
+
proposedResult: boolean;
|
|
1221
|
+
proposedConditionFailure: IConditionBase[];
|
|
1222
|
+
}
|
|
1223
|
+
/**
|
|
1224
|
+
* This contains the interface for the rule evaluation.
|
|
1225
|
+
*/
|
|
1226
|
+
export declare const IShareRulesEvaluationResultSchema: z.ZodObject<{
|
|
1227
|
+
rootParam: z.ZodString;
|
|
1228
|
+
passedRuleCheck: z.ZodBoolean;
|
|
1229
|
+
passedRuleId: z.ZodString;
|
|
1230
|
+
shareRuleEvalutionResults: z.ZodArray<z.ZodObject<{
|
|
1231
|
+
ruleId: z.ZodString;
|
|
1232
|
+
currentResult: z.ZodBoolean;
|
|
1233
|
+
currentConditionFailure: z.ZodArray<z.ZodObject<{
|
|
1234
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
1235
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
1236
|
+
targettedProperty: z.ZodString;
|
|
1237
|
+
}, "strip", z.ZodTypeAny, {
|
|
1238
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1239
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1240
|
+
targettedProperty: string;
|
|
1241
|
+
}, {
|
|
1242
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1243
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1244
|
+
targettedProperty: string;
|
|
1245
|
+
}>, "many">;
|
|
1246
|
+
proposedResult: z.ZodBoolean;
|
|
1247
|
+
proposedConditionFailure: z.ZodArray<z.ZodObject<{
|
|
1248
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
1249
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
1250
|
+
targettedProperty: z.ZodString;
|
|
1251
|
+
}, "strip", z.ZodTypeAny, {
|
|
1252
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1253
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1254
|
+
targettedProperty: string;
|
|
1255
|
+
}, {
|
|
1256
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1257
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1258
|
+
targettedProperty: string;
|
|
1259
|
+
}>, "many">;
|
|
1260
|
+
}, "strip", z.ZodTypeAny, {
|
|
1261
|
+
ruleId: string;
|
|
1262
|
+
currentResult: boolean;
|
|
1263
|
+
currentConditionFailure: {
|
|
1264
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1265
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1266
|
+
targettedProperty: string;
|
|
1267
|
+
}[];
|
|
1268
|
+
proposedResult: boolean;
|
|
1269
|
+
proposedConditionFailure: {
|
|
1270
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1271
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1272
|
+
targettedProperty: string;
|
|
1273
|
+
}[];
|
|
1274
|
+
}, {
|
|
1275
|
+
ruleId: string;
|
|
1276
|
+
currentResult: boolean;
|
|
1277
|
+
currentConditionFailure: {
|
|
1278
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1279
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1280
|
+
targettedProperty: string;
|
|
1281
|
+
}[];
|
|
1282
|
+
proposedResult: boolean;
|
|
1283
|
+
proposedConditionFailure: {
|
|
1284
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1285
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1286
|
+
targettedProperty: string;
|
|
1287
|
+
}[];
|
|
1288
|
+
}>, "many">;
|
|
1289
|
+
}, "strip", z.ZodTypeAny, {
|
|
1290
|
+
rootParam: string;
|
|
1291
|
+
passedRuleCheck: boolean;
|
|
1292
|
+
passedRuleId: string;
|
|
1293
|
+
shareRuleEvalutionResults: {
|
|
1294
|
+
ruleId: string;
|
|
1295
|
+
currentResult: boolean;
|
|
1296
|
+
currentConditionFailure: {
|
|
1297
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1298
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1299
|
+
targettedProperty: string;
|
|
1300
|
+
}[];
|
|
1301
|
+
proposedResult: boolean;
|
|
1302
|
+
proposedConditionFailure: {
|
|
1303
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1304
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1305
|
+
targettedProperty: string;
|
|
1306
|
+
}[];
|
|
1307
|
+
}[];
|
|
1308
|
+
}, {
|
|
1309
|
+
rootParam: string;
|
|
1310
|
+
passedRuleCheck: boolean;
|
|
1311
|
+
passedRuleId: string;
|
|
1312
|
+
shareRuleEvalutionResults: {
|
|
1313
|
+
ruleId: string;
|
|
1314
|
+
currentResult: boolean;
|
|
1315
|
+
currentConditionFailure: {
|
|
1316
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1317
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1318
|
+
targettedProperty: string;
|
|
1319
|
+
}[];
|
|
1320
|
+
proposedResult: boolean;
|
|
1321
|
+
proposedConditionFailure: {
|
|
1322
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1323
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1324
|
+
targettedProperty: string;
|
|
1325
|
+
}[];
|
|
1326
|
+
}[];
|
|
1327
|
+
}>;
|
|
1328
|
+
export interface IShareRulesEvaluationResult {
|
|
1329
|
+
rootParam: string;
|
|
1330
|
+
passedRuleCheck: boolean;
|
|
1331
|
+
passedRuleId: string;
|
|
1332
|
+
shareRuleEvalutionResults: IShareRuleEvalutionResult[];
|
|
1333
|
+
}
|
|
1334
|
+
/**
|
|
1335
|
+
* This contains the interface for the rule evaluation results.
|
|
1336
|
+
*/
|
|
1337
|
+
export declare const IRuleEvaluationResultsSchema: z.ZodObject<{
|
|
1338
|
+
shareDataId: z.ZodString;
|
|
1339
|
+
rulesResults: z.ZodArray<z.ZodObject<{
|
|
1340
|
+
rootParam: z.ZodString;
|
|
1341
|
+
passedRuleCheck: z.ZodBoolean;
|
|
1342
|
+
passedRuleId: z.ZodString;
|
|
1343
|
+
shareRuleEvalutionResults: z.ZodArray<z.ZodObject<{
|
|
1344
|
+
ruleId: z.ZodString;
|
|
1345
|
+
currentResult: z.ZodBoolean;
|
|
1346
|
+
currentConditionFailure: z.ZodArray<z.ZodObject<{
|
|
1347
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
1348
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
1349
|
+
targettedProperty: z.ZodString;
|
|
1350
|
+
}, "strip", z.ZodTypeAny, {
|
|
1351
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1352
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1353
|
+
targettedProperty: string;
|
|
1354
|
+
}, {
|
|
1355
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1356
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1357
|
+
targettedProperty: string;
|
|
1358
|
+
}>, "many">;
|
|
1359
|
+
proposedResult: z.ZodBoolean;
|
|
1360
|
+
proposedConditionFailure: z.ZodArray<z.ZodObject<{
|
|
1361
|
+
conditionType: z.ZodUnion<[z.ZodEnum<["TYPEOF", "EQUAL", "CONTAINS", "NULL", "EMPTY", "SHARE_RULE"]>, z.ZodEnum<["GREATER_THAN", "LESS_THAN", "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL"]>, z.ZodEnum<["STARTS_WITH", "ENDS_WITH"]>, z.ZodEnum<["TRUE", "FALSE"]>, z.ZodEnum<["PATTERN"]>]>;
|
|
1362
|
+
conditionTypeQualifier: z.ZodEnum<["IS", "IS_NOT"]>;
|
|
1363
|
+
targettedProperty: z.ZodString;
|
|
1364
|
+
}, "strip", z.ZodTypeAny, {
|
|
1365
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1366
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1367
|
+
targettedProperty: string;
|
|
1368
|
+
}, {
|
|
1369
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1370
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1371
|
+
targettedProperty: string;
|
|
1372
|
+
}>, "many">;
|
|
1373
|
+
}, "strip", z.ZodTypeAny, {
|
|
1374
|
+
ruleId: string;
|
|
1375
|
+
currentResult: boolean;
|
|
1376
|
+
currentConditionFailure: {
|
|
1377
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1378
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1379
|
+
targettedProperty: string;
|
|
1380
|
+
}[];
|
|
1381
|
+
proposedResult: boolean;
|
|
1382
|
+
proposedConditionFailure: {
|
|
1383
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1384
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1385
|
+
targettedProperty: string;
|
|
1386
|
+
}[];
|
|
1387
|
+
}, {
|
|
1388
|
+
ruleId: string;
|
|
1389
|
+
currentResult: boolean;
|
|
1390
|
+
currentConditionFailure: {
|
|
1391
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1392
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1393
|
+
targettedProperty: string;
|
|
1394
|
+
}[];
|
|
1395
|
+
proposedResult: boolean;
|
|
1396
|
+
proposedConditionFailure: {
|
|
1397
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1398
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1399
|
+
targettedProperty: string;
|
|
1400
|
+
}[];
|
|
1401
|
+
}>, "many">;
|
|
1402
|
+
}, "strip", z.ZodTypeAny, {
|
|
1403
|
+
rootParam: string;
|
|
1404
|
+
passedRuleCheck: boolean;
|
|
1405
|
+
passedRuleId: string;
|
|
1406
|
+
shareRuleEvalutionResults: {
|
|
1407
|
+
ruleId: string;
|
|
1408
|
+
currentResult: boolean;
|
|
1409
|
+
currentConditionFailure: {
|
|
1410
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1411
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1412
|
+
targettedProperty: string;
|
|
1413
|
+
}[];
|
|
1414
|
+
proposedResult: boolean;
|
|
1415
|
+
proposedConditionFailure: {
|
|
1416
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1417
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1418
|
+
targettedProperty: string;
|
|
1419
|
+
}[];
|
|
1420
|
+
}[];
|
|
1421
|
+
}, {
|
|
1422
|
+
rootParam: string;
|
|
1423
|
+
passedRuleCheck: boolean;
|
|
1424
|
+
passedRuleId: string;
|
|
1425
|
+
shareRuleEvalutionResults: {
|
|
1426
|
+
ruleId: string;
|
|
1427
|
+
currentResult: boolean;
|
|
1428
|
+
currentConditionFailure: {
|
|
1429
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1430
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1431
|
+
targettedProperty: string;
|
|
1432
|
+
}[];
|
|
1433
|
+
proposedResult: boolean;
|
|
1434
|
+
proposedConditionFailure: {
|
|
1435
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1436
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1437
|
+
targettedProperty: string;
|
|
1438
|
+
}[];
|
|
1439
|
+
}[];
|
|
1440
|
+
}>, "many">;
|
|
1441
|
+
isValidProposal: z.ZodBoolean;
|
|
1442
|
+
}, "strip", z.ZodTypeAny, {
|
|
1443
|
+
shareDataId: string;
|
|
1444
|
+
rulesResults: {
|
|
1445
|
+
rootParam: string;
|
|
1446
|
+
passedRuleCheck: boolean;
|
|
1447
|
+
passedRuleId: string;
|
|
1448
|
+
shareRuleEvalutionResults: {
|
|
1449
|
+
ruleId: string;
|
|
1450
|
+
currentResult: boolean;
|
|
1451
|
+
currentConditionFailure: {
|
|
1452
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1453
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1454
|
+
targettedProperty: string;
|
|
1455
|
+
}[];
|
|
1456
|
+
proposedResult: boolean;
|
|
1457
|
+
proposedConditionFailure: {
|
|
1458
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1459
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1460
|
+
targettedProperty: string;
|
|
1461
|
+
}[];
|
|
1462
|
+
}[];
|
|
1463
|
+
}[];
|
|
1464
|
+
isValidProposal: boolean;
|
|
1465
|
+
}, {
|
|
1466
|
+
shareDataId: string;
|
|
1467
|
+
rulesResults: {
|
|
1468
|
+
rootParam: string;
|
|
1469
|
+
passedRuleCheck: boolean;
|
|
1470
|
+
passedRuleId: string;
|
|
1471
|
+
shareRuleEvalutionResults: {
|
|
1472
|
+
ruleId: string;
|
|
1473
|
+
currentResult: boolean;
|
|
1474
|
+
currentConditionFailure: {
|
|
1475
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1476
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1477
|
+
targettedProperty: string;
|
|
1478
|
+
}[];
|
|
1479
|
+
proposedResult: boolean;
|
|
1480
|
+
proposedConditionFailure: {
|
|
1481
|
+
conditionType: "TYPEOF" | "EQUAL" | "CONTAINS" | "NULL" | "EMPTY" | "SHARE_RULE" | "GREATER_THAN" | "LESS_THAN" | "GREATER_THAN_OR_EQUAL" | "LESS_THAN_OR_EQUAL" | "STARTS_WITH" | "ENDS_WITH" | "TRUE" | "FALSE" | "PATTERN";
|
|
1482
|
+
conditionTypeQualifier: "IS" | "IS_NOT";
|
|
1483
|
+
targettedProperty: string;
|
|
1484
|
+
}[];
|
|
1485
|
+
}[];
|
|
1486
|
+
}[];
|
|
1487
|
+
isValidProposal: boolean;
|
|
1488
|
+
}>;
|
|
1489
|
+
export interface IRuleEvaluationResults {
|
|
1490
|
+
shareDataId: string;
|
|
1491
|
+
rulesResults: IShareRulesEvaluationResult[];
|
|
1492
|
+
isValidProposal: boolean;
|
|
1493
|
+
}
|
|
1494
|
+
export declare const IShareRuleGroupSchema: z.ZodType<unknown>;
|
|
1495
|
+
export interface IShareRuleGroup {
|
|
1496
|
+
operator: LogicalOperator;
|
|
1497
|
+
rules: (IShareRuleApplied | IShareRuleGroup)[];
|
|
1498
|
+
}
|
|
1499
|
+
/**
|
|
1500
|
+
* This contains the interface for the rule set in the share data object
|
|
1501
|
+
*/
|
|
1502
|
+
export declare const IShareRuleSetSchema: z.ZodObject<{
|
|
1503
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1504
|
+
id: z.ZodString;
|
|
1505
|
+
name: z.ZodString;
|
|
1506
|
+
ruleGroups: z.ZodArray<z.ZodType<unknown, z.ZodTypeDef, unknown>, "many">;
|
|
1507
|
+
version: z.ZodNumber;
|
|
1508
|
+
}, "strip", z.ZodTypeAny, {
|
|
1509
|
+
id: string;
|
|
1510
|
+
name: string;
|
|
1511
|
+
ruleGroups: unknown[];
|
|
1512
|
+
version: number;
|
|
1513
|
+
description?: string | undefined;
|
|
1514
|
+
}, {
|
|
1515
|
+
id: string;
|
|
1516
|
+
name: string;
|
|
1517
|
+
ruleGroups: unknown[];
|
|
1518
|
+
version: number;
|
|
1519
|
+
description?: string | undefined;
|
|
1520
|
+
}>;
|
|
1521
|
+
export interface IShareRuleSet {
|
|
1522
|
+
description?: string;
|
|
1523
|
+
id: string;
|
|
1524
|
+
name: string;
|
|
1525
|
+
ruleGroups: IShareRuleGroup[];
|
|
1526
|
+
version: number;
|
|
1527
|
+
}
|
|
303
1528
|
//# sourceMappingURL=share-rule-models.d.ts.map
|