@degenerate/rules 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +12 -60
- package/package.json +3 -3
- package/dist/__testdata__/conditions/current-conditions.test-data.d.ts +0 -65
- package/dist/__testdata__/conditions/current-conditions.test-data.d.ts.map +0 -1
- package/dist/__testdata__/conditions/current-conditions.test-data.js +0 -116
- package/dist/__testdata__/rules/rules.test-data.d.ts +0 -27
- package/dist/__testdata__/rules/rules.test-data.d.ts.map +0 -1
- package/dist/__testdata__/rules/rules.test-data.js +0 -391
package/LICENSE.md
CHANGED
|
@@ -1,63 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
ISC License
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Copyright (c) 2024-2026 Degenerate Inc.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
-
See the License for the specific language governing permissions and
|
|
17
|
-
limitations under the License.
|
|
18
|
-
|
|
19
|
-
## Additional Terms for Proprietary Extensions and Features
|
|
20
|
-
|
|
21
|
-
The SAFE Platform includes features and functionalities that may extend beyond the open-source scope of this license, including but not limited to:
|
|
22
|
-
|
|
23
|
-
1. **Advanced Enterprise Features**:
|
|
24
|
-
- Modules and tools tailored for enterprise-level scalability, security, and analytics.
|
|
25
|
-
- Customizable AI-driven extensions designed for high-volume data processing and decision-making.
|
|
26
|
-
- Separate licensing agreements are required for accessing these features.
|
|
27
|
-
|
|
28
|
-
2. **Marketplace Components**:
|
|
29
|
-
- Extensions, plugins, and templates available through the SAFE Marketplace may include specific licensing terms.
|
|
30
|
-
- Revenue-sharing agreements apply for developers contributing paid components to the Marketplace.
|
|
31
|
-
- Use of these components may require additional payments or subscription plans.
|
|
32
|
-
|
|
33
|
-
3. **Partnered Integrations**:
|
|
34
|
-
- SAFE Platform offers pre-integrated solutions with third-party platforms such as CRM systems, payment gateways, or cloud services.
|
|
35
|
-
- These integrations may require accepting additional terms from the third-party providers.
|
|
36
|
-
- Usage is governed by both this License and the third-party terms where applicable.
|
|
37
|
-
|
|
38
|
-
4. **Subscription-Based Analytics**:
|
|
39
|
-
- Advanced analytics features, including real-time data insights, AI model performance metrics, and user behavior analysis.
|
|
40
|
-
- These are provided through subscription services managed under proprietary agreements.
|
|
41
|
-
- Subscriptions may include tiered pricing based on data volume, number of users, or access levels.
|
|
42
|
-
|
|
43
|
-
5. **Industry-Specific Solutions**:
|
|
44
|
-
- SAFE Platform provides pre-configured templates and rules tailored for industries such as finance, healthcare, and logistics.
|
|
45
|
-
- These solutions include proprietary intellectual property that is not covered by the open-source license.
|
|
46
|
-
- Licensing agreements specify terms for usage and redistribution of these industry-specific components.
|
|
47
|
-
|
|
48
|
-
By using the SAFE Platform, you agree to abide by these additional terms where applicable. For more details, contact [Your Organization's Contact Information].
|
|
49
|
-
|
|
50
|
-
## Contribution and Use
|
|
51
|
-
|
|
52
|
-
1. **Community Contributions**:
|
|
53
|
-
- Contributions to the SAFE Platform's open-source repository are governed by the Apache License 2.0.
|
|
54
|
-
- By submitting a contribution, you agree that your work will be licensed under this license.
|
|
55
|
-
- Contributions must adhere to the project's coding standards and submission guidelines.
|
|
56
|
-
|
|
57
|
-
2. **Proprietary Extensions**:
|
|
58
|
-
- Contributions extending into proprietary areas require pre-approval by the administrators in the .
|
|
59
|
-
- These contributions may be subject to separate agreements defining revenue sharing, ownership rights, and maintenance responsibilities.
|
|
60
|
-
|
|
61
|
-
## Notices
|
|
62
|
-
|
|
63
|
-
This license file is intended to reflect a hybrid open-source and proprietary model for the SAFE Platform. It provides clarity for both community contributors and commercial users. For specific questions or legal inquiries, contact [Your Organization's Contact Information].
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
15
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@degenerate/rules",
|
|
3
3
|
"description": "This contains the rules information needed for the ShareData Adaptive Framework Ecosystem (SAFE) network.",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.1",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"exports": {
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"homepage": "https://github.com/syncrude/safe#readme",
|
|
46
46
|
"author": "Degenerate Inc.",
|
|
47
47
|
"license": "ISC",
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "ebb2ab0634ac9c4da50e584d11153625e2cc3999",
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@degenerate/generic": "^0.9.
|
|
50
|
+
"@degenerate/generic": "^0.9.1",
|
|
51
51
|
"zod": "^4.6.6"
|
|
52
52
|
},
|
|
53
53
|
"engines": {
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { IConditionBoolean, IConditionContains, IConditionEmpty, IConditionEquality, IConditionNull, IConditionRange, IConditionShareRule, IConditionSpecial, IConditionStartsEndsWith, IShareRule } from '@degenerate/generic';
|
|
2
|
-
export declare const exampleConditionTypeOfIsNumber: import("@degenerate/generic").IConditionTypeOf;
|
|
3
|
-
export declare const exampleConditionTypeOfIsNotNumber: import("@degenerate/generic").IConditionTypeOf;
|
|
4
|
-
export declare const exampleConditionTypeOfIsString: import("@degenerate/generic").IConditionTypeOf;
|
|
5
|
-
export declare const exampleConditionTypeOfIsNotString: import("@degenerate/generic").IConditionTypeOf;
|
|
6
|
-
export declare const exampleConditionTypeOfIsBoolean: import("@degenerate/generic").IConditionTypeOf;
|
|
7
|
-
export declare const exampleConditionTypeOfIsNotBoolean: import("@degenerate/generic").IConditionTypeOf;
|
|
8
|
-
export declare const exampleConditionTypeOfIsObject: import("@degenerate/generic").IConditionTypeOf;
|
|
9
|
-
export declare const exampleConditionTypeOfIsNotObject: import("@degenerate/generic").IConditionTypeOf;
|
|
10
|
-
export declare const exampleConditionTypeOfIsInteger: import("@degenerate/generic").IConditionTypeOf;
|
|
11
|
-
export declare const exampleConditionTypeOfIsNotInteger: import("@degenerate/generic").IConditionTypeOf;
|
|
12
|
-
export declare const exampleConditionTypeOfIsArray: import("@degenerate/generic").IConditionTypeOf;
|
|
13
|
-
export declare const exampleConditionTypeOfIsNotArray: import("@degenerate/generic").IConditionTypeOf;
|
|
14
|
-
export declare const exampleConditionTypeOfIsNull: import("@degenerate/generic").IConditionTypeOf;
|
|
15
|
-
export declare const exampleConditionTypeOfIsNotNull: import("@degenerate/generic").IConditionTypeOf;
|
|
16
|
-
export declare const exampleConditionTypeOfIsUndefined: import("@degenerate/generic").IConditionTypeOf;
|
|
17
|
-
export declare const exampleConditionTypeOfIsNotUndefined: import("@degenerate/generic").IConditionTypeOf;
|
|
18
|
-
export declare const exampleConditionTypeOfIsFunction: import("@degenerate/generic").IConditionTypeOf;
|
|
19
|
-
export declare const exampleConditionTypeOfIsNotFunction: import("@degenerate/generic").IConditionTypeOf;
|
|
20
|
-
export declare const exampleConditionTypeOfIsBigInt: import("@degenerate/generic").IConditionTypeOf;
|
|
21
|
-
export declare const exampleConditionTypeOfIsNotBigInt: import("@degenerate/generic").IConditionTypeOf;
|
|
22
|
-
export declare const exampleConditionEqualityIs100: IConditionEquality;
|
|
23
|
-
export declare const exampleConditionEqualityIsNotNewYork: IConditionEquality;
|
|
24
|
-
export declare const exampleConditionEqualityIs200: IConditionEquality;
|
|
25
|
-
export declare const exampleConditionEqualityIsNotAdmin: IConditionEquality;
|
|
26
|
-
export declare const exampleConditionRangeIsGreaterThan100: IConditionRange;
|
|
27
|
-
export declare const exampleConditionRangeIsNotGreaterThan100: IConditionRange;
|
|
28
|
-
export declare const exampleConditionRangeIsLessThan200: IConditionRange;
|
|
29
|
-
export declare const exampleConditionRangeIsNotLessThan200: IConditionRange;
|
|
30
|
-
export declare const exampleConditionRangeIsGreaterThanOrEqual100: IConditionRange;
|
|
31
|
-
export declare const exampleConditionRangeIsNotGreaterThanOrEqual100: IConditionRange;
|
|
32
|
-
export declare const exampleConditionRangeIsLessThanOrEqual200: IConditionRange;
|
|
33
|
-
export declare const exampleConditionRangeIsNotLessThanOrEqual200: IConditionRange;
|
|
34
|
-
export declare const exampleConditionRangeIsGreaterThanH: IConditionRange;
|
|
35
|
-
export declare const exampleConditionRangeIsNotGreaterThanH: IConditionRange;
|
|
36
|
-
export declare const exampleConditionRangeIsLessThanY: IConditionRange;
|
|
37
|
-
export declare const exampleConditionRangeIsNotLessThanY: IConditionRange;
|
|
38
|
-
export declare const exampleConditionRangeIsGreaterThanOrEqualH: IConditionRange;
|
|
39
|
-
export declare const exampleConditionRangeIsNotGreaterThanOrEqualH: IConditionRange;
|
|
40
|
-
export declare const exampleConditionRangeIsLessThanOrEqualY: IConditionRange;
|
|
41
|
-
export declare const exampleConditionRangeIsNotLessThanOrEqualY: IConditionRange;
|
|
42
|
-
export declare const exampleConditionContainsIsGar: IConditionContains;
|
|
43
|
-
export declare const exampleConditionContainsIsNotGarison: IConditionContains;
|
|
44
|
-
export declare const exampleConditionContainsIsGarCarHap: IConditionContains;
|
|
45
|
-
export declare const exampleConditionContainsIsNotGarCarHap: IConditionContains;
|
|
46
|
-
export declare const exampleConditionContainsIs1135: IConditionContains;
|
|
47
|
-
export declare const exampleConditionContainsIsNot1135: IConditionContains;
|
|
48
|
-
export declare const exampleConditionStartsWithIsCal: IConditionStartsEndsWith;
|
|
49
|
-
export declare const exampleConditionStartsWithIsNotCal: IConditionStartsEndsWith;
|
|
50
|
-
export declare const exampleConditionEndsWithIsGary: IConditionStartsEndsWith;
|
|
51
|
-
export declare const exampleConditionEndsWithIsNotGary: IConditionStartsEndsWith;
|
|
52
|
-
export declare const exampleConditionIsNull: IConditionNull;
|
|
53
|
-
export declare const exampleConditionIsNotNull: IConditionNull;
|
|
54
|
-
export declare const exampleConditionBooleanIsTrue: IConditionBoolean;
|
|
55
|
-
export declare const exampleConditionBooleanIsNotTrue: IConditionBoolean;
|
|
56
|
-
export declare const exampleConditionBooleanIsFalse: IConditionBoolean;
|
|
57
|
-
export declare const exampleConditionBooleanIsNotFalse: IConditionBoolean;
|
|
58
|
-
export declare const exampleConditionIsEmpty: IConditionEmpty;
|
|
59
|
-
export declare const exampleConditionIsNotEmpty: IConditionEmpty;
|
|
60
|
-
export declare const exampleConditionSpecialIsPattern: IConditionSpecial;
|
|
61
|
-
export declare const exampleConditionSpecialIsNotPattern: IConditionSpecial;
|
|
62
|
-
export declare const nestedShareRule: IShareRule;
|
|
63
|
-
export declare const exampleConditionIsShareRule: IConditionShareRule;
|
|
64
|
-
export declare const exampleConditionIsNotShareRule: IConditionShareRule;
|
|
65
|
-
//# sourceMappingURL=current-conditions.test-data.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"current-conditions.test-data.d.ts","sourceRoot":"","sources":["../../../src/__testdata__/conditions/current-conditions.test-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAQH,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,wBAAwB,EACxB,UAAU,EACb,MAAM,qBAAqB,CAAC;AAc7B,eAAO,MAAM,8BAA8B,gDAAkG,CAAC;AAC9I,eAAO,MAAM,iCAAiC,gDAAsG,CAAC;AACrJ,eAAO,MAAM,8BAA8B,gDAAyF,CAAC;AACrI,eAAO,MAAM,iCAAiC,gDAA6F,CAAC;AAC5I,eAAO,MAAM,+BAA+B,gDAA8F,CAAC;AAC3I,eAAO,MAAM,kCAAkC,gDAAkG,CAAC;AAClJ,eAAO,MAAM,8BAA8B,gDAA4F,CAAC;AACxI,eAAO,MAAM,iCAAiC,gDAAgG,CAAC;AAC/I,eAAO,MAAM,+BAA+B,gDAAmG,CAAC;AAChJ,eAAO,MAAM,kCAAkC,gDAAuG,CAAC;AACvJ,eAAO,MAAM,6BAA6B,gDAAiG,CAAC;AAC5I,eAAO,MAAM,gCAAgC,gDAAqG,CAAC;AACnJ,eAAO,MAAM,4BAA4B,gDAAgG,CAAC;AAC1I,eAAO,MAAM,+BAA+B,gDAAoG,CAAC;AACjJ,eAAO,MAAM,iCAAiC,gDAAqG,CAAC;AACpJ,eAAO,MAAM,oCAAoC,gDAAyG,CAAC;AAC3J,eAAO,MAAM,gCAAgC,gDAAkG,CAAC;AAChJ,eAAO,MAAM,mCAAmC,gDAAsG,CAAC;AACvJ,eAAO,MAAM,8BAA8B,gDAAkG,CAAC;AAC9I,eAAO,MAAM,iCAAiC,gDAAsG,CAAC;AAMrJ,eAAO,MAAM,6BAA6B,oBAAiF,CAAC;AAC5H,eAAO,MAAM,oCAAoC,oBAA2F,CAAC;AAC7I,eAAO,MAAM,6BAA6B,oBAAuE,CAAC;AAClH,eAAO,MAAM,kCAAkC,oBAAgF,CAAC;AAMhI,eAAO,MAAM,qCAAqC,iBAA+G,CAAC;AAClK,eAAO,MAAM,wCAAwC,iBAAmH,CAAC;AACzK,eAAO,MAAM,kCAAkC,iBAA4G,CAAC;AAC5J,eAAO,MAAM,qCAAqC,iBAAgH,CAAC;AACnK,eAAO,MAAM,4CAA4C,iBAAwH,CAAC;AAClL,eAAO,MAAM,+CAA+C,iBAA4H,CAAC;AACzL,eAAO,MAAM,yCAAyC,iBAAqH,CAAC;AAC5K,eAAO,MAAM,4CAA4C,iBAAyH,CAAC;AACnL,eAAO,MAAM,mCAAmC,iBAA+G,CAAC;AAChK,eAAO,MAAM,sCAAsC,iBAAmH,CAAC;AACvK,eAAO,MAAM,gCAAgC,iBAA4G,CAAC;AAC1J,eAAO,MAAM,mCAAmC,iBAAgH,CAAC;AACjK,eAAO,MAAM,0CAA0C,iBAAwH,CAAC;AAChL,eAAO,MAAM,6CAA6C,iBAA4H,CAAC;AACvL,eAAO,MAAM,uCAAuC,iBAAqH,CAAC;AAC1K,eAAO,MAAM,0CAA0C,iBAAyH,CAAC;AAMjL,eAAO,MAAM,6BAA6B,oBAAkF,CAAC;AAC7H,eAAO,MAAM,oCAAoC,oBAAsF,CAAC;AACxI,eAAO,MAAM,mCAAmC,oBAAkG,CAAC;AACnJ,eAAO,MAAM,sCAAsC,oBAAsG,CAAC;AAC1J,eAAO,MAAM,8BAA8B,oBAAuF,CAAC;AACnI,eAAO,MAAM,iCAAiC,oBAA2F,CAAC;AAM1I,eAAO,MAAM,+BAA+B,0BAAiI,CAAC;AAC9K,eAAO,MAAM,kCAAkC,0BAAqI,CAAC;AACrL,eAAO,MAAM,8BAA8B,0BAAgI,CAAC;AAC5K,eAAO,MAAM,iCAAiC,0BAAoI,CAAC;AAMnL,eAAO,MAAM,sBAAsB,gBAAuE,CAAC;AAC3G,eAAO,MAAM,yBAAyB,gBAA2E,CAAC;AAMlH,eAAO,MAAM,6BAA6B,mBAAoG,CAAC;AAC/I,eAAO,MAAM,gCAAgC,mBAAwG,CAAC;AACtJ,eAAO,MAAM,8BAA8B,mBAAqG,CAAC;AACjJ,eAAO,MAAM,iCAAiC,mBAAyG,CAAC;AAMxJ,eAAO,MAAM,uBAAuB,iBAAsE,CAAC;AAC3G,eAAO,MAAM,0BAA0B,iBAA0E,CAAC;AAKlH,eAAO,MAAM,gCAAgC,mBAA0H,CAAC;AACxK,eAAO,MAAM,mCAAmC,mBAA8H,CAAC;AAM/K,eAAO,MAAM,eAAe,EAAE,UAkB7B,CAAC;AAEF,eAAO,MAAM,2BAA2B,qBAA+D,CAAC;AACxG,eAAO,MAAM,8BAA8B,qBAA8F,CAAC"}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.exampleConditionEndsWithIsNotGary = exports.exampleConditionEndsWithIsGary = exports.exampleConditionStartsWithIsNotCal = exports.exampleConditionStartsWithIsCal = exports.exampleConditionContainsIsNot1135 = exports.exampleConditionContainsIs1135 = exports.exampleConditionContainsIsNotGarCarHap = exports.exampleConditionContainsIsGarCarHap = exports.exampleConditionContainsIsNotGarison = exports.exampleConditionContainsIsGar = exports.exampleConditionRangeIsNotLessThanOrEqualY = exports.exampleConditionRangeIsLessThanOrEqualY = exports.exampleConditionRangeIsNotGreaterThanOrEqualH = exports.exampleConditionRangeIsGreaterThanOrEqualH = exports.exampleConditionRangeIsNotLessThanY = exports.exampleConditionRangeIsLessThanY = exports.exampleConditionRangeIsNotGreaterThanH = exports.exampleConditionRangeIsGreaterThanH = exports.exampleConditionRangeIsNotLessThanOrEqual200 = exports.exampleConditionRangeIsLessThanOrEqual200 = exports.exampleConditionRangeIsNotGreaterThanOrEqual100 = exports.exampleConditionRangeIsGreaterThanOrEqual100 = exports.exampleConditionRangeIsNotLessThan200 = exports.exampleConditionRangeIsLessThan200 = exports.exampleConditionRangeIsNotGreaterThan100 = exports.exampleConditionRangeIsGreaterThan100 = exports.exampleConditionEqualityIsNotAdmin = exports.exampleConditionEqualityIs200 = exports.exampleConditionEqualityIsNotNewYork = exports.exampleConditionEqualityIs100 = exports.exampleConditionTypeOfIsNotBigInt = exports.exampleConditionTypeOfIsBigInt = exports.exampleConditionTypeOfIsNotFunction = exports.exampleConditionTypeOfIsFunction = exports.exampleConditionTypeOfIsNotUndefined = exports.exampleConditionTypeOfIsUndefined = exports.exampleConditionTypeOfIsNotNull = exports.exampleConditionTypeOfIsNull = exports.exampleConditionTypeOfIsNotArray = exports.exampleConditionTypeOfIsArray = exports.exampleConditionTypeOfIsNotInteger = exports.exampleConditionTypeOfIsInteger = exports.exampleConditionTypeOfIsNotObject = exports.exampleConditionTypeOfIsObject = exports.exampleConditionTypeOfIsNotBoolean = exports.exampleConditionTypeOfIsBoolean = exports.exampleConditionTypeOfIsNotString = exports.exampleConditionTypeOfIsString = exports.exampleConditionTypeOfIsNotNumber = exports.exampleConditionTypeOfIsNumber = void 0;
|
|
4
|
-
exports.exampleConditionIsNotShareRule = exports.exampleConditionIsShareRule = exports.nestedShareRule = exports.exampleConditionSpecialIsNotPattern = exports.exampleConditionSpecialIsPattern = exports.exampleConditionIsNotEmpty = exports.exampleConditionIsEmpty = exports.exampleConditionBooleanIsNotFalse = exports.exampleConditionBooleanIsFalse = exports.exampleConditionBooleanIsNotTrue = exports.exampleConditionBooleanIsTrue = exports.exampleConditionIsNotNull = exports.exampleConditionIsNull = void 0;
|
|
5
|
-
const generic_1 = require("@degenerate/generic");
|
|
6
|
-
const create_typeof_conditions_1 = require("../../create/conditions/create-typeof-conditions");
|
|
7
|
-
const create_equality_conditions_1 = require("../../create/conditions/create-equality-conditions");
|
|
8
|
-
const create_range_conditions_1 = require("../../create/conditions/create-range-conditions");
|
|
9
|
-
const create_contains_conditions_1 = require("../../create/conditions/create-contains-conditions");
|
|
10
|
-
const create_starts_end_with_conditions_1 = require("../../create/conditions/create-starts-end-with-conditions");
|
|
11
|
-
const create_null_conditions_1 = require("../../create/conditions/create-null-conditions");
|
|
12
|
-
const create_boolean_conditions_1 = require("../../create/conditions/create-boolean-conditions");
|
|
13
|
-
const create_empty_conditions_1 = require("../../create/conditions/create-empty-conditions");
|
|
14
|
-
const create_special_conditions_1 = require("../../create/conditions/create-special-conditions");
|
|
15
|
-
const create_share_rule_conditions_1 = require("../../create/conditions/create-share-rule-conditions");
|
|
16
|
-
//#region condition TYPEOF
|
|
17
|
-
exports.exampleConditionTypeOfIsNumber = (0, create_typeof_conditions_1.createTypeOfConditions)('address.city.total', generic_1.ConditionTypeOf.NUMBER, generic_1.ConditionTypeQualifier.IS);
|
|
18
|
-
exports.exampleConditionTypeOfIsNotNumber = (0, create_typeof_conditions_1.createTypeOfConditions)('address.city.total', generic_1.ConditionTypeOf.NUMBER, generic_1.ConditionTypeQualifier.IS_NOT);
|
|
19
|
-
exports.exampleConditionTypeOfIsString = (0, create_typeof_conditions_1.createTypeOfConditions)('user.name', generic_1.ConditionTypeOf.STRING, generic_1.ConditionTypeQualifier.IS);
|
|
20
|
-
exports.exampleConditionTypeOfIsNotString = (0, create_typeof_conditions_1.createTypeOfConditions)('user.name', generic_1.ConditionTypeOf.STRING, generic_1.ConditionTypeQualifier.IS_NOT);
|
|
21
|
-
exports.exampleConditionTypeOfIsBoolean = (0, create_typeof_conditions_1.createTypeOfConditions)('user.isActive', generic_1.ConditionTypeOf.BOOLEAN, generic_1.ConditionTypeQualifier.IS);
|
|
22
|
-
exports.exampleConditionTypeOfIsNotBoolean = (0, create_typeof_conditions_1.createTypeOfConditions)('user.isActive', generic_1.ConditionTypeOf.BOOLEAN, generic_1.ConditionTypeQualifier.IS_NOT);
|
|
23
|
-
exports.exampleConditionTypeOfIsObject = (0, create_typeof_conditions_1.createTypeOfConditions)('user.profile', generic_1.ConditionTypeOf.OBJECT, generic_1.ConditionTypeQualifier.IS);
|
|
24
|
-
exports.exampleConditionTypeOfIsNotObject = (0, create_typeof_conditions_1.createTypeOfConditions)('user.profile', generic_1.ConditionTypeOf.OBJECT, generic_1.ConditionTypeQualifier.IS_NOT);
|
|
25
|
-
exports.exampleConditionTypeOfIsInteger = (0, create_typeof_conditions_1.createTypeOfConditions)('address.city.total', generic_1.ConditionTypeOf.INTEGER, generic_1.ConditionTypeQualifier.IS);
|
|
26
|
-
exports.exampleConditionTypeOfIsNotInteger = (0, create_typeof_conditions_1.createTypeOfConditions)('address.city.total', generic_1.ConditionTypeOf.INTEGER, generic_1.ConditionTypeQualifier.IS_NOT);
|
|
27
|
-
exports.exampleConditionTypeOfIsArray = (0, create_typeof_conditions_1.createTypeOfConditions)('address.city.total', generic_1.ConditionTypeOf.ARRAY, generic_1.ConditionTypeQualifier.IS);
|
|
28
|
-
exports.exampleConditionTypeOfIsNotArray = (0, create_typeof_conditions_1.createTypeOfConditions)('address.city.total', generic_1.ConditionTypeOf.ARRAY, generic_1.ConditionTypeQualifier.IS_NOT);
|
|
29
|
-
exports.exampleConditionTypeOfIsNull = (0, create_typeof_conditions_1.createTypeOfConditions)('address.city.total', generic_1.ConditionTypeOf.NULL, generic_1.ConditionTypeQualifier.IS);
|
|
30
|
-
exports.exampleConditionTypeOfIsNotNull = (0, create_typeof_conditions_1.createTypeOfConditions)('address.city.total', generic_1.ConditionTypeOf.NULL, generic_1.ConditionTypeQualifier.IS_NOT);
|
|
31
|
-
exports.exampleConditionTypeOfIsUndefined = (0, create_typeof_conditions_1.createTypeOfConditions)('address.city.total', generic_1.ConditionTypeOf.UNDEFINED, generic_1.ConditionTypeQualifier.IS);
|
|
32
|
-
exports.exampleConditionTypeOfIsNotUndefined = (0, create_typeof_conditions_1.createTypeOfConditions)('address.city.total', generic_1.ConditionTypeOf.UNDEFINED, generic_1.ConditionTypeQualifier.IS_NOT);
|
|
33
|
-
exports.exampleConditionTypeOfIsFunction = (0, create_typeof_conditions_1.createTypeOfConditions)('address.function', generic_1.ConditionTypeOf.FUNCTION, generic_1.ConditionTypeQualifier.IS);
|
|
34
|
-
exports.exampleConditionTypeOfIsNotFunction = (0, create_typeof_conditions_1.createTypeOfConditions)('address.function', generic_1.ConditionTypeOf.FUNCTION, generic_1.ConditionTypeQualifier.IS_NOT);
|
|
35
|
-
exports.exampleConditionTypeOfIsBigInt = (0, create_typeof_conditions_1.createTypeOfConditions)('address.city.total', generic_1.ConditionTypeOf.BIGINT, generic_1.ConditionTypeQualifier.IS);
|
|
36
|
-
exports.exampleConditionTypeOfIsNotBigInt = (0, create_typeof_conditions_1.createTypeOfConditions)('address.city.total', generic_1.ConditionTypeOf.BIGINT, generic_1.ConditionTypeQualifier.IS_NOT);
|
|
37
|
-
//#endregion condition TYPEOF
|
|
38
|
-
//#region condition EQUALITY
|
|
39
|
-
exports.exampleConditionEqualityIs100 = (0, create_equality_conditions_1.createEqualityConditions)('address.city.total', 100, generic_1.ConditionTypeQualifier.IS);
|
|
40
|
-
exports.exampleConditionEqualityIsNotNewYork = (0, create_equality_conditions_1.createEqualityConditions)('address.city.name', 'New York', generic_1.ConditionTypeQualifier.IS_NOT);
|
|
41
|
-
exports.exampleConditionEqualityIs200 = (0, create_equality_conditions_1.createEqualityConditions)('user.age', 200, generic_1.ConditionTypeQualifier.IS);
|
|
42
|
-
exports.exampleConditionEqualityIsNotAdmin = (0, create_equality_conditions_1.createEqualityConditions)('user.role', 'admin', generic_1.ConditionTypeQualifier.IS_NOT);
|
|
43
|
-
//#endregion condition EQUALITY
|
|
44
|
-
//#region condition RANGE
|
|
45
|
-
exports.exampleConditionRangeIsGreaterThan100 = (0, create_range_conditions_1.createRangeConditions)('address.city.total', generic_1.ConditionTypeRange.GREATER_THAN, 100, generic_1.ConditionTypeQualifier.IS);
|
|
46
|
-
exports.exampleConditionRangeIsNotGreaterThan100 = (0, create_range_conditions_1.createRangeConditions)('address.city.total', generic_1.ConditionTypeRange.GREATER_THAN, 100, generic_1.ConditionTypeQualifier.IS_NOT);
|
|
47
|
-
exports.exampleConditionRangeIsLessThan200 = (0, create_range_conditions_1.createRangeConditions)('address.city.total', generic_1.ConditionTypeRange.LESS_THAN, 200, generic_1.ConditionTypeQualifier.IS);
|
|
48
|
-
exports.exampleConditionRangeIsNotLessThan200 = (0, create_range_conditions_1.createRangeConditions)('address.city.total', generic_1.ConditionTypeRange.LESS_THAN, 200, generic_1.ConditionTypeQualifier.IS_NOT);
|
|
49
|
-
exports.exampleConditionRangeIsGreaterThanOrEqual100 = (0, create_range_conditions_1.createRangeConditions)('address.city.total', generic_1.ConditionTypeRange.GREATER_THAN_OR_EQUAL, 100, generic_1.ConditionTypeQualifier.IS);
|
|
50
|
-
exports.exampleConditionRangeIsNotGreaterThanOrEqual100 = (0, create_range_conditions_1.createRangeConditions)('address.city.total', generic_1.ConditionTypeRange.GREATER_THAN_OR_EQUAL, 100, generic_1.ConditionTypeQualifier.IS_NOT);
|
|
51
|
-
exports.exampleConditionRangeIsLessThanOrEqual200 = (0, create_range_conditions_1.createRangeConditions)('address.city.total', generic_1.ConditionTypeRange.LESS_THAN_OR_EQUAL, 200, generic_1.ConditionTypeQualifier.IS);
|
|
52
|
-
exports.exampleConditionRangeIsNotLessThanOrEqual200 = (0, create_range_conditions_1.createRangeConditions)('address.city.total', generic_1.ConditionTypeRange.LESS_THAN_OR_EQUAL, 200, generic_1.ConditionTypeQualifier.IS_NOT);
|
|
53
|
-
exports.exampleConditionRangeIsGreaterThanH = (0, create_range_conditions_1.createRangeConditions)('address.city.total', generic_1.ConditionTypeRange.GREATER_THAN, 'h', generic_1.ConditionTypeQualifier.IS);
|
|
54
|
-
exports.exampleConditionRangeIsNotGreaterThanH = (0, create_range_conditions_1.createRangeConditions)('address.city.total', generic_1.ConditionTypeRange.GREATER_THAN, 'h', generic_1.ConditionTypeQualifier.IS_NOT);
|
|
55
|
-
exports.exampleConditionRangeIsLessThanY = (0, create_range_conditions_1.createRangeConditions)('address.city.total', generic_1.ConditionTypeRange.LESS_THAN, 'y', generic_1.ConditionTypeQualifier.IS);
|
|
56
|
-
exports.exampleConditionRangeIsNotLessThanY = (0, create_range_conditions_1.createRangeConditions)('address.city.total', generic_1.ConditionTypeRange.LESS_THAN, 'y', generic_1.ConditionTypeQualifier.IS_NOT);
|
|
57
|
-
exports.exampleConditionRangeIsGreaterThanOrEqualH = (0, create_range_conditions_1.createRangeConditions)('address.city.total', generic_1.ConditionTypeRange.GREATER_THAN_OR_EQUAL, 'h', generic_1.ConditionTypeQualifier.IS);
|
|
58
|
-
exports.exampleConditionRangeIsNotGreaterThanOrEqualH = (0, create_range_conditions_1.createRangeConditions)('address.city.total', generic_1.ConditionTypeRange.GREATER_THAN_OR_EQUAL, 'h', generic_1.ConditionTypeQualifier.IS_NOT);
|
|
59
|
-
exports.exampleConditionRangeIsLessThanOrEqualY = (0, create_range_conditions_1.createRangeConditions)('address.city.total', generic_1.ConditionTypeRange.LESS_THAN_OR_EQUAL, 'y', generic_1.ConditionTypeQualifier.IS);
|
|
60
|
-
exports.exampleConditionRangeIsNotLessThanOrEqualY = (0, create_range_conditions_1.createRangeConditions)('address.city.total', generic_1.ConditionTypeRange.LESS_THAN_OR_EQUAL, 'y', generic_1.ConditionTypeQualifier.IS_NOT);
|
|
61
|
-
//#endregion condition RANGE
|
|
62
|
-
//#region condition CONTAINS
|
|
63
|
-
exports.exampleConditionContainsIsGar = (0, create_contains_conditions_1.createContainsConditions)('address.city.name', 'gar', generic_1.ConditionTypeQualifier.IS);
|
|
64
|
-
exports.exampleConditionContainsIsNotGarison = (0, create_contains_conditions_1.createContainsConditions)('address.city.name', 'gar', generic_1.ConditionTypeQualifier.IS_NOT);
|
|
65
|
-
exports.exampleConditionContainsIsGarCarHap = (0, create_contains_conditions_1.createContainsConditions)('address.city.name', ['gar', 'car', 'hap'], generic_1.ConditionTypeQualifier.IS);
|
|
66
|
-
exports.exampleConditionContainsIsNotGarCarHap = (0, create_contains_conditions_1.createContainsConditions)('address.city.name', ['gar', 'car', 'hap'], generic_1.ConditionTypeQualifier.IS_NOT);
|
|
67
|
-
exports.exampleConditionContainsIs1135 = (0, create_contains_conditions_1.createContainsConditions)('address.city.number', [1, 13, 5], generic_1.ConditionTypeQualifier.IS);
|
|
68
|
-
exports.exampleConditionContainsIsNot1135 = (0, create_contains_conditions_1.createContainsConditions)('address.city.number', [1, 13, 5], generic_1.ConditionTypeQualifier.IS_NOT);
|
|
69
|
-
//#endregion condition CONTAINS
|
|
70
|
-
//#region condition STARTS_WITH / ENDS_WITH
|
|
71
|
-
exports.exampleConditionStartsWithIsCal = (0, create_starts_end_with_conditions_1.createStartsEndsWithConditions)('address.city.name', generic_1.ConditionTypeStartsEndsWith.STARTS_WITH, 'cal', generic_1.ConditionTypeQualifier.IS);
|
|
72
|
-
exports.exampleConditionStartsWithIsNotCal = (0, create_starts_end_with_conditions_1.createStartsEndsWithConditions)('address.city.name', generic_1.ConditionTypeStartsEndsWith.STARTS_WITH, 'cal', generic_1.ConditionTypeQualifier.IS_NOT);
|
|
73
|
-
exports.exampleConditionEndsWithIsGary = (0, create_starts_end_with_conditions_1.createStartsEndsWithConditions)('address.city.name', generic_1.ConditionTypeStartsEndsWith.ENDS_WITH, 'gary', generic_1.ConditionTypeQualifier.IS);
|
|
74
|
-
exports.exampleConditionEndsWithIsNotGary = (0, create_starts_end_with_conditions_1.createStartsEndsWithConditions)('address.city.name', generic_1.ConditionTypeStartsEndsWith.ENDS_WITH, 'gary', generic_1.ConditionTypeQualifier.IS_NOT);
|
|
75
|
-
//#endregion condition STARTS_WITH / ENDS_WITH
|
|
76
|
-
//#region condition NULL
|
|
77
|
-
exports.exampleConditionIsNull = (0, create_null_conditions_1.createNullConditions)('address.city.name', generic_1.ConditionTypeQualifier.IS);
|
|
78
|
-
exports.exampleConditionIsNotNull = (0, create_null_conditions_1.createNullConditions)('address.city.name', generic_1.ConditionTypeQualifier.IS_NOT);
|
|
79
|
-
//#endregion condition NULL
|
|
80
|
-
//#region condition BOOLEAN
|
|
81
|
-
exports.exampleConditionBooleanIsTrue = (0, create_boolean_conditions_1.createBooleanConditions)('address.isActive', generic_1.ConditionTypeBoolean.TRUE, generic_1.ConditionTypeQualifier.IS);
|
|
82
|
-
exports.exampleConditionBooleanIsNotTrue = (0, create_boolean_conditions_1.createBooleanConditions)('address.isActive', generic_1.ConditionTypeBoolean.TRUE, generic_1.ConditionTypeQualifier.IS_NOT);
|
|
83
|
-
exports.exampleConditionBooleanIsFalse = (0, create_boolean_conditions_1.createBooleanConditions)('address.isActive', generic_1.ConditionTypeBoolean.FALSE, generic_1.ConditionTypeQualifier.IS);
|
|
84
|
-
exports.exampleConditionBooleanIsNotFalse = (0, create_boolean_conditions_1.createBooleanConditions)('address.isActive', generic_1.ConditionTypeBoolean.FALSE, generic_1.ConditionTypeQualifier.IS_NOT);
|
|
85
|
-
//#endregion condition BOOLEAN
|
|
86
|
-
//#region condition EMPTY
|
|
87
|
-
exports.exampleConditionIsEmpty = (0, create_empty_conditions_1.createEmptyConditions)('address.street2', generic_1.ConditionTypeQualifier.IS);
|
|
88
|
-
exports.exampleConditionIsNotEmpty = (0, create_empty_conditions_1.createEmptyConditions)('address.street2', generic_1.ConditionTypeQualifier.IS_NOT);
|
|
89
|
-
//#endregion condition EMPTY
|
|
90
|
-
//#region condition SPECIAL
|
|
91
|
-
exports.exampleConditionSpecialIsPattern = (0, create_special_conditions_1.createSpecialConditions)('address.city.name', generic_1.ConditionTypeSpecial.PATTERN, '^[a-zA-Z0-9]*$', generic_1.ConditionTypeQualifier.IS);
|
|
92
|
-
exports.exampleConditionSpecialIsNotPattern = (0, create_special_conditions_1.createSpecialConditions)('address.city.name', generic_1.ConditionTypeSpecial.PATTERN, '^[a-zA-Z0-9]*$', generic_1.ConditionTypeQualifier.IS_NOT);
|
|
93
|
-
//#endregion condition SPECIAL
|
|
94
|
-
//#region condition SHARE_RULE
|
|
95
|
-
exports.nestedShareRule = {
|
|
96
|
-
ruleId: 'nestedRule',
|
|
97
|
-
currentDataConditions: [
|
|
98
|
-
{
|
|
99
|
-
targettedProperty: 'nestedProperty',
|
|
100
|
-
conditionType: generic_1.ConditionTypeSingle.EQUAL,
|
|
101
|
-
conditionValue: 'expectedValue',
|
|
102
|
-
conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS,
|
|
103
|
-
},
|
|
104
|
-
],
|
|
105
|
-
proposedDataConditions: [
|
|
106
|
-
{
|
|
107
|
-
targettedProperty: 'nestedProperty',
|
|
108
|
-
conditionType: generic_1.ConditionTypeSingle.EQUAL,
|
|
109
|
-
conditionValue: 'newValue',
|
|
110
|
-
conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS,
|
|
111
|
-
},
|
|
112
|
-
],
|
|
113
|
-
};
|
|
114
|
-
exports.exampleConditionIsShareRule = (0, create_share_rule_conditions_1.createShareRuleConditions)('parentProperty', exports.nestedShareRule);
|
|
115
|
-
exports.exampleConditionIsNotShareRule = (0, create_share_rule_conditions_1.createShareRuleConditions)('parentProperty', exports.nestedShareRule, generic_1.ConditionTypeQualifier.IS_NOT);
|
|
116
|
-
//#endregion condition SHARE_RULE
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { IShareRule, IShareRuleApplied, IShareRuleGroup, IShareRuleSet } from '@degenerate/generic';
|
|
2
|
-
export declare const loanAmountCreateRule: IShareRule;
|
|
3
|
-
export declare const loanAmountCreate: IShareRuleApplied;
|
|
4
|
-
export declare const loanAmountCreateWithHold: IShareRuleApplied;
|
|
5
|
-
export declare const loanAmountCreateWithPink_A: IShareRuleApplied;
|
|
6
|
-
export declare const loanAmountUpdate: IShareRuleApplied;
|
|
7
|
-
export declare const loanAmountUpdateWithPink_BA: IShareRuleApplied;
|
|
8
|
-
export declare const loanAmountDelete: IShareRuleApplied;
|
|
9
|
-
export declare const loanCreateRuleGroup: IShareRuleGroup;
|
|
10
|
-
export declare const loanCreateWithHoldUntil: IShareRuleGroup;
|
|
11
|
-
export declare const loanCreateFullRuleGroup: IShareRuleGroup;
|
|
12
|
-
export declare const loanCreateRuleSet: IShareRuleSet;
|
|
13
|
-
export declare const userAgeCreate: IShareRuleApplied;
|
|
14
|
-
export declare const userAge18: IShareRuleApplied;
|
|
15
|
-
export declare const userAgeUpdate: IShareRuleApplied;
|
|
16
|
-
export declare const userAgeDelete: IShareRuleApplied;
|
|
17
|
-
export declare const userFirstNameCreate: IShareRuleApplied;
|
|
18
|
-
export declare const userLastNameCreate: IShareRuleApplied;
|
|
19
|
-
export declare const userFirstNameUpdate: IShareRuleApplied;
|
|
20
|
-
export declare const userLastNameUpdate: IShareRuleApplied;
|
|
21
|
-
export declare const userFirstNameDelete: IShareRuleApplied;
|
|
22
|
-
export declare const userLastNameDelete: IShareRuleApplied;
|
|
23
|
-
export declare const userCombinedCreate: IShareRuleApplied;
|
|
24
|
-
export declare const userCombinedUpdate: IShareRuleApplied;
|
|
25
|
-
export declare const userCombinedDelete: IShareRuleApplied;
|
|
26
|
-
export declare const canadianAdddressCreate: IShareRule;
|
|
27
|
-
//# sourceMappingURL=rules.test-data.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rules.test-data.d.ts","sourceRoot":"","sources":["../../../src/__testdata__/rules/rules.test-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAMH,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,aAAa,EAEhB,MAAM,qBAAqB,CAAC;AAI7B,eAAO,MAAM,oBAAoB,EAAE,UASlC,CAAA;AACD,eAAO,MAAM,gBAAgB,EAAE,iBAU9B,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,iBAStC,CAAA;AAED,eAAO,MAAM,0BAA0B,EAAE,iBAWxC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,iBAW9B,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,iBAazC,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,iBAU9B,CAAC;AAmBF,eAAO,MAAM,mBAAmB,EAAE,eAGjC,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,eAGrC,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,eAGrC,CAAA;AA2FD,eAAO,MAAM,iBAAiB,EAAE,aAM/B,CAAA;AAMD,eAAO,MAAM,aAAa,EAAE,iBAU3B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,iBAWvB,CAAC;AAGF,eAAO,MAAM,aAAa,EAAE,iBAW3B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,iBAU3B,CAAC;AAMF,eAAO,MAAM,mBAAmB,EAAE,iBASjC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,iBAShC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,iBASjC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,iBAShC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,iBASjC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,iBAShC,CAAC;AAIF,eAAO,MAAM,kBAAkB,EAAE,iBAchC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,iBAehC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,iBAchC,CAAC;AAeF,eAAO,MAAM,sBAAsB,EAAE,UAkBpC,CAAA"}
|
|
@@ -1,391 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.canadianAdddressCreate = exports.userCombinedDelete = exports.userCombinedUpdate = exports.userCombinedCreate = exports.userLastNameDelete = exports.userFirstNameDelete = exports.userLastNameUpdate = exports.userFirstNameUpdate = exports.userLastNameCreate = exports.userFirstNameCreate = exports.userAgeDelete = exports.userAgeUpdate = exports.userAge18 = exports.userAgeCreate = exports.loanCreateRuleSet = exports.loanCreateFullRuleGroup = exports.loanCreateWithHoldUntil = exports.loanCreateRuleGroup = exports.loanAmountDelete = exports.loanAmountUpdateWithPink_BA = exports.loanAmountUpdate = exports.loanAmountCreateWithPink_A = exports.loanAmountCreateWithHold = exports.loanAmountCreate = exports.loanAmountCreateRule = void 0;
|
|
4
|
-
const generic_1 = require("@degenerate/generic");
|
|
5
|
-
//#region property loanAmount
|
|
6
|
-
exports.loanAmountCreateRule = {
|
|
7
|
-
ruleId: 'loanAmountCreate',
|
|
8
|
-
currentDataConditions: [
|
|
9
|
-
{ targettedProperty: 'loanAmount', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.UNDEFINED, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS }
|
|
10
|
-
],
|
|
11
|
-
proposedDataConditions: [
|
|
12
|
-
{ targettedProperty: 'loanAmount', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.NUMBER, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
13
|
-
{ targettedProperty: 'loanAmount', conditionType: generic_1.ConditionTypeRange.GREATER_THAN_OR_EQUAL, conditionValue: 0, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
14
|
-
],
|
|
15
|
-
};
|
|
16
|
-
exports.loanAmountCreate = {
|
|
17
|
-
ruleId: 'loanAmountCreate',
|
|
18
|
-
currentDataConditions: [
|
|
19
|
-
{ targettedProperty: 'loanAmount', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.UNDEFINED, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS }
|
|
20
|
-
],
|
|
21
|
-
proposedDataConditions: [
|
|
22
|
-
{ targettedProperty: 'loanAmount', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.NUMBER, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
23
|
-
{ targettedProperty: 'loanAmount', conditionType: generic_1.ConditionTypeRange.GREATER_THAN_OR_EQUAL, conditionValue: 0, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
24
|
-
],
|
|
25
|
-
targettedProperty: 'loanAmount'
|
|
26
|
-
};
|
|
27
|
-
exports.loanAmountCreateWithHold = {
|
|
28
|
-
ruleId: 'loanAmountCreateWithHold',
|
|
29
|
-
currentDataConditions: [
|
|
30
|
-
{ targettedProperty: 'holdUntil', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.UNDEFINED, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
31
|
-
],
|
|
32
|
-
proposedDataConditions: [
|
|
33
|
-
{ targettedProperty: 'holdUntil', conditionType: generic_1.ConditionTypeRange.GREATER_THAN_OR_EQUAL, conditionValue: 0, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
34
|
-
],
|
|
35
|
-
targettedProperty: 'holdUntil'
|
|
36
|
-
};
|
|
37
|
-
exports.loanAmountCreateWithPink_A = {
|
|
38
|
-
ruleId: 'loanAmountCreate',
|
|
39
|
-
currentDataConditions: [
|
|
40
|
-
{ targettedProperty: 'loanAmount', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.UNDEFINED, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS }
|
|
41
|
-
],
|
|
42
|
-
proposedDataConditions: [
|
|
43
|
-
{ targettedProperty: 'loanAmount', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.NUMBER, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
44
|
-
{ targettedProperty: 'loanAmount', conditionType: generic_1.ConditionTypeRange.GREATER_THAN_OR_EQUAL, conditionValue: 0, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
45
|
-
{ targettedProperty: 'house.color.window', conditionType: generic_1.ConditionTypeSingle.EQUAL, conditionValue: 'pink', conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS }
|
|
46
|
-
],
|
|
47
|
-
targettedProperty: 'loanAmount'
|
|
48
|
-
};
|
|
49
|
-
exports.loanAmountUpdate = {
|
|
50
|
-
ruleId: 'loanAmountUpdate',
|
|
51
|
-
currentDataConditions: [
|
|
52
|
-
{ targettedProperty: 'loanAmount', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.NUMBER, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
53
|
-
{ targettedProperty: 'loanAmount', conditionType: generic_1.ConditionTypeRange.GREATER_THAN_OR_EQUAL, conditionValue: 0, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
54
|
-
],
|
|
55
|
-
proposedDataConditions: [
|
|
56
|
-
{ targettedProperty: 'loanAmount', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.NUMBER, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
57
|
-
{ targettedProperty: 'loanAmount', conditionType: generic_1.ConditionTypeRange.GREATER_THAN_OR_EQUAL, conditionValue: 0, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
58
|
-
],
|
|
59
|
-
targettedProperty: 'loanAmount'
|
|
60
|
-
};
|
|
61
|
-
exports.loanAmountUpdateWithPink_BA = {
|
|
62
|
-
ruleId: 'loanAmountUpdate',
|
|
63
|
-
currentDataConditions: [
|
|
64
|
-
{ targettedProperty: 'loanAmount', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.NUMBER, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
65
|
-
{ targettedProperty: 'loanAmount', conditionType: generic_1.ConditionTypeRange.GREATER_THAN_OR_EQUAL, conditionValue: 0, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
66
|
-
{ targettedProperty: 'house.color.window', conditionType: generic_1.ConditionTypeSingle.EQUAL, conditionValue: 'pink', conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS }
|
|
67
|
-
],
|
|
68
|
-
proposedDataConditions: [
|
|
69
|
-
{ targettedProperty: 'loanAmount', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.NUMBER, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
70
|
-
{ targettedProperty: 'loanAmount', conditionType: generic_1.ConditionTypeRange.GREATER_THAN_OR_EQUAL, conditionValue: 0, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
71
|
-
{ targettedProperty: 'house.color.window', conditionType: generic_1.ConditionTypeSingle.EQUAL, conditionValue: 'pink', conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS }
|
|
72
|
-
],
|
|
73
|
-
targettedProperty: 'loanAmount'
|
|
74
|
-
};
|
|
75
|
-
exports.loanAmountDelete = {
|
|
76
|
-
ruleId: 'loanAmountUpdate',
|
|
77
|
-
currentDataConditions: [
|
|
78
|
-
{ targettedProperty: 'loanAmount', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.NUMBER, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
79
|
-
{ targettedProperty: 'loanAmount', conditionType: generic_1.ConditionTypeRange.GREATER_THAN_OR_EQUAL, conditionValue: 0, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS }
|
|
80
|
-
],
|
|
81
|
-
proposedDataConditions: [
|
|
82
|
-
{ targettedProperty: 'loanAmount', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.UNDEFINED, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS }
|
|
83
|
-
],
|
|
84
|
-
targettedProperty: 'loanAmount'
|
|
85
|
-
};
|
|
86
|
-
//#endregion property loanAmount
|
|
87
|
-
//#region ruleSet LoanAmount
|
|
88
|
-
// const ruleGroupLoanAmount: IShareRuleSet = {
|
|
89
|
-
// /**
|
|
90
|
-
// * This contains the interface for the rule set in the share data object
|
|
91
|
-
// */
|
|
92
|
-
// export interface IShareRuleSet {
|
|
93
|
-
// id: string; // the id of the rule set
|
|
94
|
-
// name: string; // the name of the rule set
|
|
95
|
-
// description: string; // the description of the rule set
|
|
96
|
-
// ruleGroups: IShareRuleGroup[]; // the rules in the rule set
|
|
97
|
-
// }
|
|
98
|
-
exports.loanCreateRuleGroup = {
|
|
99
|
-
operator: generic_1.LogicalOperator.AND,
|
|
100
|
-
rules: [exports.loanAmountCreate]
|
|
101
|
-
};
|
|
102
|
-
exports.loanCreateWithHoldUntil = {
|
|
103
|
-
operator: generic_1.LogicalOperator.AND,
|
|
104
|
-
rules: [exports.loanAmountCreate, exports.loanAmountCreateWithHold]
|
|
105
|
-
};
|
|
106
|
-
exports.loanCreateFullRuleGroup = {
|
|
107
|
-
operator: generic_1.LogicalOperator.OR,
|
|
108
|
-
rules: [exports.loanCreateRuleGroup, exports.loanCreateWithHoldUntil]
|
|
109
|
-
};
|
|
110
|
-
// This looks like
|
|
111
|
-
// {
|
|
112
|
-
// "version": 1,
|
|
113
|
-
// "id": "loanCreateRuleSet",
|
|
114
|
-
// "name": "Loan Create Rule Set",
|
|
115
|
-
// "description": "The rules for creating a loan amount",
|
|
116
|
-
// "ruleGroups": [
|
|
117
|
-
// {
|
|
118
|
-
// "operator": "OR",
|
|
119
|
-
// "rules": [
|
|
120
|
-
// {
|
|
121
|
-
// "operator": "AND",
|
|
122
|
-
// "rules": [
|
|
123
|
-
// {
|
|
124
|
-
// "ruleId": "loanAmountCreate",
|
|
125
|
-
// "currentDataConditions": [
|
|
126
|
-
// {
|
|
127
|
-
// "targettedProperty": "loanAmount",
|
|
128
|
-
// "conditionType": "typeof",
|
|
129
|
-
// "conditionValue": "undefined"
|
|
130
|
-
// }
|
|
131
|
-
// ],
|
|
132
|
-
// "proposedDataConditions": [
|
|
133
|
-
// {
|
|
134
|
-
// "targettedProperty": "loanAmount",
|
|
135
|
-
// "conditionType": "is typeof",
|
|
136
|
-
// "conditionValue": "number"
|
|
137
|
-
// },
|
|
138
|
-
// {
|
|
139
|
-
// "targettedProperty": "loanAmount",
|
|
140
|
-
// "conditionType": "greater than or equal",
|
|
141
|
-
// "conditionValue": 0
|
|
142
|
-
// }
|
|
143
|
-
// ],
|
|
144
|
-
// "targettedProperty": "loanAmount"
|
|
145
|
-
// }
|
|
146
|
-
// ]
|
|
147
|
-
// },
|
|
148
|
-
// {
|
|
149
|
-
// "operator": "AND",
|
|
150
|
-
// "rules": [
|
|
151
|
-
// {
|
|
152
|
-
// "ruleId": "loanAmountCreate",
|
|
153
|
-
// "currentDataConditions": [
|
|
154
|
-
// {
|
|
155
|
-
// "targettedProperty": "loanAmount",
|
|
156
|
-
// "conditionType": "is typeof",
|
|
157
|
-
// "conditionValue": "undefined"
|
|
158
|
-
// }
|
|
159
|
-
// ],
|
|
160
|
-
// "proposedDataConditions": [
|
|
161
|
-
// {
|
|
162
|
-
// "targettedProperty": "loanAmount",
|
|
163
|
-
// "conditionType": "is typeof",
|
|
164
|
-
// "conditionValue": "number"
|
|
165
|
-
// },
|
|
166
|
-
// {
|
|
167
|
-
// "targettedProperty": "loanAmount",
|
|
168
|
-
// "conditionType": "greater than or equal",
|
|
169
|
-
// "conditionValue": 0
|
|
170
|
-
// }
|
|
171
|
-
// ],
|
|
172
|
-
// "targettedProperty": "loanAmount"
|
|
173
|
-
// },
|
|
174
|
-
// {
|
|
175
|
-
// "ruleId": "loanAmountCreateWithHold",
|
|
176
|
-
// "currentDataConditions": [
|
|
177
|
-
// {
|
|
178
|
-
// "targettedProperty": "holdUntil",
|
|
179
|
-
// "conditionType": "is typeof",
|
|
180
|
-
// "conditionValue": "undefined"
|
|
181
|
-
// }
|
|
182
|
-
// ],
|
|
183
|
-
// "proposedDataConditions": [
|
|
184
|
-
// {
|
|
185
|
-
// "targettedProperty": "holdUntil",
|
|
186
|
-
// "conditionType": "greater than or equal",
|
|
187
|
-
// "conditionValue": 0
|
|
188
|
-
// }
|
|
189
|
-
// ],
|
|
190
|
-
// "targettedProperty": "holdUntil"
|
|
191
|
-
// }
|
|
192
|
-
// ]
|
|
193
|
-
// }
|
|
194
|
-
// ]
|
|
195
|
-
// }
|
|
196
|
-
// ]
|
|
197
|
-
// }
|
|
198
|
-
exports.loanCreateRuleSet = {
|
|
199
|
-
version: 1,
|
|
200
|
-
id: 'loanCreateRuleSet',
|
|
201
|
-
name: 'Loan Create Rule Set',
|
|
202
|
-
description: 'The rules for creating a loan',
|
|
203
|
-
ruleGroups: [exports.loanCreateFullRuleGroup]
|
|
204
|
-
};
|
|
205
|
-
//#region User
|
|
206
|
-
//#region User.age
|
|
207
|
-
exports.userAgeCreate = {
|
|
208
|
-
ruleId: 'user.ageCreate',
|
|
209
|
-
currentDataConditions: [
|
|
210
|
-
{ targettedProperty: 'user.age', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.UNDEFINED, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, }
|
|
211
|
-
],
|
|
212
|
-
proposedDataConditions: [
|
|
213
|
-
{ targettedProperty: 'user.age', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.NUMBER, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
214
|
-
{ targettedProperty: 'user.age', conditionType: generic_1.ConditionTypeRange.GREATER_THAN_OR_EQUAL, conditionValue: 0, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
215
|
-
],
|
|
216
|
-
targettedProperty: 'user'
|
|
217
|
-
};
|
|
218
|
-
exports.userAge18 = {
|
|
219
|
-
ruleId: 'user.age17to18',
|
|
220
|
-
currentDataConditions: [
|
|
221
|
-
{ targettedProperty: 'user.age', conditionType: generic_1.ConditionTypeSingle.EQUAL, conditionValue: 17, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
222
|
-
{ targettedProperty: 'user.ageOfMajority', conditionType: generic_1.ConditionTypeBoolean.FALSE, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
223
|
-
],
|
|
224
|
-
proposedDataConditions: [
|
|
225
|
-
{ targettedProperty: 'user.age', conditionType: generic_1.ConditionTypeSingle.EQUAL, conditionValue: 18, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
226
|
-
{ targettedProperty: 'user.ageOfMajority', conditionType: generic_1.ConditionTypeBoolean.TRUE, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
227
|
-
],
|
|
228
|
-
targettedProperty: 'user'
|
|
229
|
-
};
|
|
230
|
-
exports.userAgeUpdate = {
|
|
231
|
-
ruleId: 'user.ageUpdate',
|
|
232
|
-
currentDataConditions: [
|
|
233
|
-
{ targettedProperty: 'user.age', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.NUMBER, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
234
|
-
{ targettedProperty: 'user.age', conditionType: generic_1.ConditionTypeRange.GREATER_THAN_OR_EQUAL, conditionValue: 0, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
235
|
-
],
|
|
236
|
-
proposedDataConditions: [
|
|
237
|
-
{ targettedProperty: 'user.age', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.NUMBER, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
238
|
-
{ targettedProperty: 'user.age', conditionType: generic_1.ConditionTypeRange.GREATER_THAN_OR_EQUAL, conditionValue: 18, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
239
|
-
],
|
|
240
|
-
targettedProperty: 'user'
|
|
241
|
-
};
|
|
242
|
-
exports.userAgeDelete = {
|
|
243
|
-
ruleId: 'user.ageDelete',
|
|
244
|
-
currentDataConditions: [
|
|
245
|
-
{ targettedProperty: 'user.age', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.NUMBER, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
246
|
-
{ targettedProperty: 'user.age', conditionType: generic_1.ConditionTypeRange.GREATER_THAN_OR_EQUAL, conditionValue: 0, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, }
|
|
247
|
-
],
|
|
248
|
-
proposedDataConditions: [
|
|
249
|
-
{ targettedProperty: 'user.age', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.UNDEFINED, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, }
|
|
250
|
-
],
|
|
251
|
-
targettedProperty: 'user'
|
|
252
|
-
};
|
|
253
|
-
//#endregion User.age
|
|
254
|
-
//#region User.name
|
|
255
|
-
exports.userFirstNameCreate = {
|
|
256
|
-
ruleId: 'user.firstNameCreate',
|
|
257
|
-
currentDataConditions: [
|
|
258
|
-
{ targettedProperty: 'user.firstName', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.UNDEFINED, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, }
|
|
259
|
-
],
|
|
260
|
-
proposedDataConditions: [
|
|
261
|
-
{ targettedProperty: 'user.firstName', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.STRING, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
262
|
-
],
|
|
263
|
-
targettedProperty: 'user'
|
|
264
|
-
};
|
|
265
|
-
exports.userLastNameCreate = {
|
|
266
|
-
ruleId: 'user.lastNameCreate',
|
|
267
|
-
currentDataConditions: [
|
|
268
|
-
{ targettedProperty: 'user.lastName', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.UNDEFINED, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, }
|
|
269
|
-
],
|
|
270
|
-
proposedDataConditions: [
|
|
271
|
-
{ targettedProperty: 'user.lastName', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.STRING, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
272
|
-
],
|
|
273
|
-
targettedProperty: 'user'
|
|
274
|
-
};
|
|
275
|
-
exports.userFirstNameUpdate = {
|
|
276
|
-
ruleId: 'user.firstNameUpdate',
|
|
277
|
-
currentDataConditions: [
|
|
278
|
-
{ targettedProperty: 'user.firstName', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.STRING, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, }
|
|
279
|
-
],
|
|
280
|
-
proposedDataConditions: [
|
|
281
|
-
{ targettedProperty: 'user.firstName', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.STRING, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
282
|
-
],
|
|
283
|
-
targettedProperty: 'user'
|
|
284
|
-
};
|
|
285
|
-
exports.userLastNameUpdate = {
|
|
286
|
-
ruleId: 'user.lastNameUpdate',
|
|
287
|
-
currentDataConditions: [
|
|
288
|
-
{ targettedProperty: 'user.lastName', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.STRING, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, }
|
|
289
|
-
],
|
|
290
|
-
proposedDataConditions: [
|
|
291
|
-
{ targettedProperty: 'user.lastName', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.STRING, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
292
|
-
],
|
|
293
|
-
targettedProperty: 'user'
|
|
294
|
-
};
|
|
295
|
-
exports.userFirstNameDelete = {
|
|
296
|
-
ruleId: 'user.firstNameDelete',
|
|
297
|
-
currentDataConditions: [
|
|
298
|
-
{ targettedProperty: 'user.firstName', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.STRING, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, }
|
|
299
|
-
],
|
|
300
|
-
proposedDataConditions: [
|
|
301
|
-
{ targettedProperty: 'user.firstName', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.UNDEFINED, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, }
|
|
302
|
-
],
|
|
303
|
-
targettedProperty: 'user'
|
|
304
|
-
};
|
|
305
|
-
exports.userLastNameDelete = {
|
|
306
|
-
ruleId: 'user.lastNameDelete',
|
|
307
|
-
currentDataConditions: [
|
|
308
|
-
{ targettedProperty: 'user.lastName', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.STRING, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, }
|
|
309
|
-
],
|
|
310
|
-
proposedDataConditions: [
|
|
311
|
-
{ targettedProperty: 'user.lastName', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.UNDEFINED, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, }
|
|
312
|
-
],
|
|
313
|
-
targettedProperty: 'user'
|
|
314
|
-
};
|
|
315
|
-
//#endregion User.name
|
|
316
|
-
exports.userCombinedCreate = {
|
|
317
|
-
ruleId: 'user.combinedCreate',
|
|
318
|
-
currentDataConditions: [
|
|
319
|
-
{ targettedProperty: 'user.firstName', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.UNDEFINED, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
320
|
-
{ targettedProperty: 'user.lastName', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.UNDEFINED, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
321
|
-
{ targettedProperty: 'user.age', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.UNDEFINED, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, }
|
|
322
|
-
],
|
|
323
|
-
proposedDataConditions: [
|
|
324
|
-
{ targettedProperty: 'user.firstName', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.STRING, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
325
|
-
{ targettedProperty: 'user.lastName', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.STRING, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
326
|
-
{ targettedProperty: 'user.age', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.NUMBER, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
327
|
-
{ targettedProperty: 'user.age', conditionType: generic_1.ConditionTypeRange.GREATER_THAN_OR_EQUAL, conditionValue: 0, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
328
|
-
],
|
|
329
|
-
targettedProperty: 'user'
|
|
330
|
-
};
|
|
331
|
-
exports.userCombinedUpdate = {
|
|
332
|
-
ruleId: 'user.combinedUpdate',
|
|
333
|
-
currentDataConditions: [
|
|
334
|
-
{ targettedProperty: 'user.firstName', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.STRING, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
335
|
-
{ targettedProperty: 'user.lastName', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.STRING, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
336
|
-
{ targettedProperty: 'user.age', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.NUMBER, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
337
|
-
{ targettedProperty: 'user.age', conditionType: generic_1.ConditionTypeRange.GREATER_THAN_OR_EQUAL, conditionValue: 0, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
338
|
-
],
|
|
339
|
-
proposedDataConditions: [
|
|
340
|
-
{ targettedProperty: 'user.firstName', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.STRING, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
341
|
-
{ targettedProperty: 'user.lastName', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.STRING, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
342
|
-
{ targettedProperty: 'user.age', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.NUMBER, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
343
|
-
{ targettedProperty: 'user.age', conditionType: generic_1.ConditionTypeRange.GREATER_THAN_OR_EQUAL, conditionValue: 18, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
344
|
-
],
|
|
345
|
-
targettedProperty: 'user'
|
|
346
|
-
};
|
|
347
|
-
exports.userCombinedDelete = {
|
|
348
|
-
ruleId: 'user.combinedDelete',
|
|
349
|
-
currentDataConditions: [
|
|
350
|
-
{ targettedProperty: 'user.firstName', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.STRING, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
351
|
-
{ targettedProperty: 'user.lastName', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.STRING, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
352
|
-
{ targettedProperty: 'user.age', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.NUMBER, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
353
|
-
{ targettedProperty: 'user.age', conditionType: generic_1.ConditionTypeRange.GREATER_THAN_OR_EQUAL, conditionValue: 0, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
354
|
-
],
|
|
355
|
-
proposedDataConditions: [
|
|
356
|
-
{ targettedProperty: 'user.firstName', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.UNDEFINED, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
357
|
-
{ targettedProperty: 'user.lastName', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.UNDEFINED, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
358
|
-
{ targettedProperty: 'user.age', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.UNDEFINED, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS, },
|
|
359
|
-
],
|
|
360
|
-
targettedProperty: 'user'
|
|
361
|
-
};
|
|
362
|
-
//#endregion User
|
|
363
|
-
//#region IShareRule
|
|
364
|
-
const canadianAddress = {
|
|
365
|
-
streetAddress1: '123 Main St',
|
|
366
|
-
streetAddress2: 'Apt 1',
|
|
367
|
-
city: 'Toronto',
|
|
368
|
-
province: 'ON',
|
|
369
|
-
country: 'Canada',
|
|
370
|
-
postalCode: 'M1M 1M1'
|
|
371
|
-
};
|
|
372
|
-
exports.canadianAdddressCreate = {
|
|
373
|
-
ruleId: 'canadianAddressCreate',
|
|
374
|
-
currentDataConditions: [
|
|
375
|
-
{ targettedProperty: 'country', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.UNDEFINED, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
376
|
-
{ targettedProperty: 'postalCode', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.UNDEFINED, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
377
|
-
{ targettedProperty: 'streetAddress1', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.UNDEFINED, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
378
|
-
{ targettedProperty: 'streetAddress2', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.UNDEFINED, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
379
|
-
{ targettedProperty: 'province', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.UNDEFINED, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
380
|
-
{ targettedProperty: 'city', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.UNDEFINED, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
381
|
-
],
|
|
382
|
-
proposedDataConditions: [
|
|
383
|
-
{ targettedProperty: 'country', conditionType: generic_1.ConditionTypeSingle.EQUAL, conditionValue: 'Canada', conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
384
|
-
{ targettedProperty: 'postalCode', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.STRING, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
385
|
-
{ targettedProperty: 'streetAddress1', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.STRING, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
386
|
-
{ targettedProperty: 'streetAddress2', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.STRING, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
387
|
-
{ targettedProperty: 'province', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.STRING, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
388
|
-
{ targettedProperty: 'city', conditionType: generic_1.ConditionTypeSingle.TYPEOF, conditionValue: generic_1.ConditionTypeOf.STRING, conditionTypeQualifier: generic_1.ConditionTypeQualifier.IS },
|
|
389
|
-
],
|
|
390
|
-
};
|
|
391
|
-
//#endregion IShareRule
|