@sailpoint/connector-sdk 1.1.19 → 1.1.20

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.
@@ -1,10 +1,14 @@
1
+ type data = {
2
+ [key: string]: boolean | string | string[] | number | number[] | any;
3
+ };
1
4
  export declare class Filter {
2
5
  private data;
3
- constructor(data: any);
6
+ constructor(data: data);
4
7
  matcher(filterString: string): boolean;
5
8
  private applyBinaryExpressionFilter;
6
9
  private isNullorEmpty;
7
10
  private applyCallExpressionFilter;
8
- private applyAndOrComplexFilter;
11
+ private applyFilter;
9
12
  }
13
+ export {};
10
14
  //# sourceMappingURL=filter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../lib/filter.ts"],"names":[],"mappings":"AAEA,qBAAa,MAAM;IACjB,OAAO,CAAC,IAAI,CAAM;gBAEN,IAAI,EAAE,GAAG;IAKd,OAAO,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO;IAwB7C,OAAO,CAAC,2BAA2B;IA8BnC,OAAO,CAAC,aAAa;IAiBrB,OAAO,CAAC,yBAAyB;IA4EjC,OAAO,CAAC,uBAAuB;CAuBhC"}
1
+ {"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../lib/filter.ts"],"names":[],"mappings":"AAEA,KAAK,IAAI,GAAG;IACX,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,GAAG,CAAA;CACpE,CAAA;AACD,qBAAa,MAAM;IACjB,OAAO,CAAC,IAAI,CAAM;gBAEN,IAAI,EAAE,IAAI;IAKf,OAAO,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO;IAa7C,OAAO,CAAC,2BAA2B;IA6BnC,OAAO,CAAC,aAAa;IAiBrB,OAAO,CAAC,yBAAyB;IA2EjC,OAAO,CAAC,WAAW;CA6BpB"}
@@ -1,25 +1,17 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.Filter = void 0;
4
- const jsep = require("jsep");
7
+ const jsep_1 = __importDefault(require("jsep"));
5
8
  class Filter {
6
9
  constructor(data) {
7
10
  this.data = data;
8
11
  }
9
12
  // matcher decides which operation to be performed based on resource object based on the provided filter object
10
13
  matcher(filterString) {
11
- let filter = jsep(filterString);
12
- switch (true) {
13
- case (filter.type === 'BinaryExpression' && filter.operator !== '&&' && filter.operator !== '||'):
14
- return this.applyBinaryExpressionFilter(filter);
15
- case (filter.type === 'CallExpression' && filter.operator !== '&&' && filter.operator !== '||'):
16
- return this.applyCallExpressionFilter(filter);
17
- case (filter.operator === '!'):
18
- return !this.applyBinaryExpressionFilter(filter.argument);
19
- case (filter.operator === '&&') || (filter.operator === '||'):
20
- return this.applyAndOrComplexFilter(filter);
21
- }
22
- return true;
14
+ return this.applyFilter((0, jsep_1.default)(filterString));
23
15
  }
24
16
  // filterString Example: (age > 20)
25
17
  // Filter evaluter Example :
@@ -31,33 +23,31 @@ class Filter {
31
23
  //};
32
24
  // applyBinaryExpressionFilter applies binarry filters on an objects
33
25
  applyBinaryExpressionFilter(filter) {
34
- // check the type of the filter, which should be BinaryExpression for comparison
35
- if (filter.type === 'BinaryExpression') {
36
- const left = filter.left; // left part (field to compare)
37
- const right = filter.right; // right part (value to compare against)
38
- const operator = filter.operator; // comparison operator
39
- // retrieve the field value from the object (e.g., obj[firstName])
40
- const leftValue = this.data[left.name];
41
- switch (operator) {
42
- case '==': // equality check
43
- return leftValue == right.value;
44
- case '===': // strict equality check
45
- return leftValue === right.value;
46
- case '>': // greater than check
47
- return leftValue > right.value;
48
- case '<': // less than check
49
- return leftValue < right.value;
50
- case '>=': // greater than or equal check
51
- return leftValue >= right.value;
52
- case '<=': // less than or equal check
53
- return leftValue <= right.value;
54
- case '!=': // inequality check
55
- return leftValue != right.value;
56
- }
26
+ const binaryExpression = filter; // type assertion
27
+ const left = binaryExpression.left;
28
+ const right = binaryExpression.right;
29
+ const operator = binaryExpression.operator;
30
+ const leftValue = left.type === 'Identifier' ? this.data[`${left.name}`] : left.value;
31
+ const rightValue = right.type === 'Identifier' ? this.data[`${right.name}`] : right.value;
32
+ switch (operator) {
33
+ case '==':
34
+ return leftValue == rightValue;
35
+ case '===':
36
+ return leftValue === rightValue;
37
+ case '>':
38
+ return leftValue > rightValue;
39
+ case '<':
40
+ return leftValue < rightValue;
41
+ case '>=':
42
+ return leftValue >= rightValue;
43
+ case '<=':
44
+ return leftValue <= rightValue;
45
+ case '!=':
46
+ return leftValue != rightValue;
47
+ default:
48
+ return true;
57
49
  }
58
- return true;
59
50
  }
60
- // a mock of the isNull method that could be attached to an object like 'email' 'name' etc..
61
51
  isNullorEmpty(value) {
62
52
  return value === null || value === undefined || value === '';
63
53
  }
@@ -76,44 +66,43 @@ class Filter {
76
66
  // applyCallExpressionFilte applies filter based on CallExpression
77
67
  applyCallExpressionFilter(filter) {
78
68
  // check if the filter is a CallExpression
79
- if (filter.type === 'CallExpression') {
80
- const callee = filter.callee; // the MemberExpression for the method call
81
- const objectName = callee.object.name; // the object name (e.g., 'email')
82
- const methodName = callee.property.name; // the method name (e.g., 'isNull')
83
- const args = filter.arguments;
84
- // check if the object in the filter matches the object's name in the input data
85
- if (this.data.hasOwnProperty(objectName)) {
86
- const value = this.data[objectName]; // get the value of the object (e.g., email)
87
- switch (methodName) {
88
- case 'isNull': // check if the method is `isNull` and apply it to the value
89
- return this.isNullorEmpty(value); // apply the isNull method
90
- case 'notNull': // check if the method is `notNull` and apply it to the value
91
- return !this.isNullorEmpty(value); // apply the notNull method
92
- case 'isEmpty': // check if the method is `isEmpty` and apply it to the value
93
- return this.isNullorEmpty(value); // apply the isEmpty method
94
- case 'notEmpty': // check if the method is `notEmpty` and apply it to the value
95
- return !this.isNullorEmpty(value); // apply the notEmpty method
96
- case 'startsWith': // check if the method is `startsWith` and apply it to the value
97
- return value.startsWith(args[0].value); // apply the startsWith method
98
- case 'endsWith': // check if the method is `endsWith` and apply it to the value
99
- return value.endsWith(args[0].value); // apply the endsWith method
100
- case 'startsWithIgnoreCase': // check if the method is `startsWithIgnoreCase` and apply it to the value
101
- return !value.startsWith(args[0].value); // apply the startsWithIgnoreCase method
102
- case 'endsWithIgnoreCase': // check if the method is `endsWithIgnoreCase` and apply it to the value
103
- return !value.endsWith(args[0].value); // apply the endsWithIgnoreCase method
104
- case 'contains': // check if the method is `contains` and apply it to the value
105
- return value.includes(args[0].value); // apply the contains method
106
- case 'containsIgnoreCase': // check if the method is `containsIgnoreCase` and apply it to the value
107
- return !value.includes(args[0].value); // apply the containsIgnoreCase method
108
- case 'containsAll': // Check if the method is `containsAll` and apply it to the value
109
- // ensure all values are present in the property
110
- return args.every((arg) => value.includes(arg.value)); // apply the containsAll method
111
- case 'containsAllIgnoreCase': // Check if the method is `containsAllIgnoreCase` and apply it to the value
112
- // ensure all values are present in the property
113
- return args.every((arg) => !value.includes(arg.value)); // apply the containsAllIgnoreCase method
114
- default:
115
- return true;
116
- }
69
+ const callExpression = filter;
70
+ const callee = callExpression.callee;
71
+ const object = callee.object;
72
+ const property = callee.property;
73
+ const args = callExpression.arguments;
74
+ // check if the object in the filter matches the object's name in the input data
75
+ if (this.data.hasOwnProperty(`${object.name}`)) {
76
+ const value = this.data[`${object.name}`]; // get the value of the object (e.g., email)
77
+ switch (`${property.name}`) {
78
+ case 'isNull': // check if the method is `isNull` and apply it to the value
79
+ return this.isNullorEmpty(value); // apply the isNull method
80
+ case 'notNull': // check if the method is `notNull` and apply it to the value
81
+ return !this.isNullorEmpty(value); // apply the notNull method
82
+ case 'isEmpty': // check if the method is `isEmpty` and apply it to the value
83
+ return this.isNullorEmpty(value); // apply the isEmpty method
84
+ case 'notEmpty': // check if the method is `notEmpty` and apply it to the value
85
+ return !this.isNullorEmpty(value); // apply the notEmpty method
86
+ case 'startsWith': // check if the method is `startsWith` and apply it to the value
87
+ return value.startsWith(args[0].value); // apply the startsWith method
88
+ case 'endsWith': // check if the method is `endsWith` and apply it to the value
89
+ return value.endsWith(args[0].value); // apply the endsWith method
90
+ case 'startsWithIgnoreCase': // check if the method is `startsWithIgnoreCase` and apply it to the value
91
+ return !value.startsWith(args[0].value); // apply the startsWithIgnoreCase method
92
+ case 'endsWithIgnoreCase': // check if the method is `endsWithIgnoreCase` and apply it to the value
93
+ return !value.endsWith(args[0].value); // apply the endsWithIgnoreCase method
94
+ case 'contains': // check if the method is `contains` and apply it to the value
95
+ return value.includes(args[0].value); // apply the contains method
96
+ case 'containsIgnoreCase': // check if the method is `containsIgnoreCase` and apply it to the value
97
+ return !value.includes(args[0].value); // apply the containsIgnoreCase method
98
+ case 'containsAll': // Check if the method is `containsAll` and apply it to the value
99
+ // ensure all values are present in the property
100
+ return args.every((arg => value.includes(arg.value))); // apply the containsAll method
101
+ case 'containsAllIgnoreCase': // Check if the method is `containsAllIgnoreCase` and apply it to the value
102
+ // ensure all values are present in the property
103
+ return args.every((arg => !value.includes(arg.value))); // apply the containsAllIgnoreCase method
104
+ default:
105
+ return true;
117
106
  }
118
107
  }
119
108
  return true;
@@ -147,19 +136,25 @@ class Filter {
147
136
  // right: { type: 'Literal', value: 'punee', raw: '"punee"' }
148
137
  // }
149
138
  // }
150
- // applyAndOrComplexFilter applies filter based on BinaryExpression and CallExpression on complex as well as simple filters
151
- applyAndOrComplexFilter(filter) {
139
+ // applyFilter applies filter based on BinaryExpression, CallExpression, UnaryExpression filters on simple and complex filter string
140
+ applyFilter(filter) {
141
+ if (filter.type === 'UnaryExpression' && ['!'].includes(`${filter.operator}`)) {
142
+ let filterArg = filter.argument;
143
+ return !this.applyBinaryExpressionFilter(filterArg);
144
+ }
152
145
  // if the current expression is a comparison
153
- if (filter.type === 'BinaryExpression' && ['==', '===', '!=', '!==', '<', '>', '<=', '>='].includes(filter.operator)) {
146
+ if (filter.type === 'BinaryExpression' && ['==', '===', '!=', '!==', '<', '>', '<=', '>='].includes(`${filter.operator}`)) {
154
147
  return this.applyBinaryExpressionFilter(filter);
155
148
  }
156
149
  if (filter.type === 'CallExpression') {
157
150
  return this.applyCallExpressionFilter(filter);
158
151
  }
159
152
  // if the current expression is a logical operator (e.g., ||, &&)
160
- if (filter.type === 'BinaryExpression' && ['||', '&&'].includes(filter.operator)) {
161
- const leftResult = this.applyAndOrComplexFilter(filter.left); // apply to the left side
162
- const rightResult = this.applyAndOrComplexFilter(filter.right); // apply to the right side
153
+ if (filter.type === 'BinaryExpression' && ['||', '&&'].includes(`${filter.operator}`)) {
154
+ const leftFilter = filter.left;
155
+ const rightFilter = filter.right;
156
+ const leftResult = this.applyFilter(leftFilter); // apply to the left side
157
+ const rightResult = this.applyFilter(rightFilter); // apply to the right side
163
158
  // combine the results if both sides are processed
164
159
  if (filter.operator === '||') {
165
160
  return leftResult || rightResult; // logical OR
@@ -1 +1 @@
1
- {"version":3,"file":"filter.js","sourceRoot":"","sources":["../../lib/filter.ts"],"names":[],"mappings":";;;AAAA,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAE7B,MAAa,MAAM;IAGjB,YAAY,IAAS;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAED,+GAA+G;IACxG,OAAO,CAAC,YAAoB;QACjC,IAAI,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,CAAC;QAChC,QAAQ,IAAI,EAAE;YACZ,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,kBAAkB,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,CAAC;gBAC/F,OAAO,IAAI,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC;YAClD,KAAK,CAAC,MAAM,CAAC,IAAI,KAAK,gBAAgB,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,IAAI,MAAM,CAAC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AC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAE,yBAAyB;YAC3E,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAAC,0BAA0B;YAC7E,kDAAkD;YAClD,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,EAAE;gBAC5B,OAAO,UAAU,IAAI,WAAW,CAAA,CAAC,aAAa;aAC/C;YACD,IAAI,MAAM,CAAC,QAAQ,KAAK,IAAI,EAAE;gBAC5B,OAAO,UAAU,IAAI,WAAW,CAAA,CAAC,cAAc;aAChD;SACF;QACD,OAAO,IAAI,CAAA;IACb,CAAC;CACF;AA3KD,wBA2KC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sailpoint/connector-sdk",
3
- "version": "1.1.19",
3
+ "version": "1.1.20",
4
4
  "description": "JavaScript framework to build SailPoint Connectors",
5
5
  "author": "SailPoint Technologies, Inc.",
6
6
  "license": "Copyright (c) 2023. SailPoint Technologies, Inc. All rights reserved.",