feed-common 1.7.0 → 1.7.2
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -0
- package/dist/constants/profile.constants.js +1 -1
- package/dist/constants/profile.constants.js.map +1 -1
- package/dist/types/profile.types.d.ts +1 -1
- package/dist/types/profile.types.d.ts.map +1 -1
- package/dist/types/shopify.types.d.ts +1 -1
- package/dist/types/shopify.types.d.ts.map +1 -1
- package/dist/utils/profile.d.ts +1 -4
- package/dist/utils/profile.d.ts.map +1 -1
- package/dist/utils/profile.js +8 -0
- package/dist/utils/profile.js.map +1 -1
- package/package.json +1 -1
- package/src/constants/profile.constants.ts +1 -1
- package/src/types/profile.types.ts +1 -1
- package/src/types/shopify.types.ts +1 -0
- package/src/utils/profile.ts +11 -7
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
## [1.7.2](https://github.com/advertikon/package-maxify-feed-common/compare/v1.7.1...v1.7.2) (2024-05-05)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* add some stuff ([3156ccf](https://github.com/advertikon/package-maxify-feed-common/commit/3156ccfe516184c647fc5cb95042535fb5fb7601))
|
7
|
+
|
8
|
+
## [1.7.1](https://github.com/advertikon/package-maxify-feed-common/compare/v1.7.0...v1.7.1) (2024-05-04)
|
9
|
+
|
10
|
+
|
11
|
+
### Bug Fixes
|
12
|
+
|
13
|
+
* rename rules options field to valies ([56d2b64](https://github.com/advertikon/package-maxify-feed-common/commit/56d2b6492104f1f838e7c57a39f886d3dab4b31c))
|
14
|
+
|
1
15
|
# [1.7.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.6.1...v1.7.0) (2024-05-04)
|
2
16
|
|
3
17
|
|
@@ -118,7 +118,7 @@ export const ProductUploadRuleFilters = [
|
|
118
118
|
label: "Inventory Policy",
|
119
119
|
operators: ProductUploadRulesOperators.is,
|
120
120
|
value: "inventory_policy",
|
121
|
-
|
121
|
+
values: [
|
122
122
|
{ label: "Deny", value: "deny" },
|
123
123
|
{ label: "Continue", value: "continue" },
|
124
124
|
],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"profile.constants.js","sourceRoot":"","sources":["../../src/constants/profile.constants.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,cAAc,GAAG,eAAe,CAAC;AAC9C,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC;AACxC,MAAM,CAAC,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AACzD,MAAM,CAAC,MAAM,kBAAkB,GAAG,mBAAmB,CAAC;AACtD,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;AACjD,MAAM,CAAC,MAAM,sBAAsB,GAAG,wBAAwB,CAAC;AAC/D,MAAM,CAAC,MAAM,cAAc,GAAG,gBAAgB,CAAC;AAE/C,MAAM,CAAC,MAAM,sBAAsB,GAAG,gBAAgB,CAAC;AACvD,MAAM,CAAC,MAAM,sBAAsB,GAAG,iBAAiB,CAAC;AACxD,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC;AAEhD,MAAM,CAAC,MAAM,aAAa,GAAG,cAAc,CAAC;AAE5C,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,QAAQ,EAAE;QACR,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,UAAU;KAClB;IACD,WAAW,EAAE;QACX,KAAK,EAAE,cAAc;QACrB,KAAK,EAAE,aAAa;KACrB;IACD,MAAM,EAAE;QACN,KAAK,EAAE,QAAQ;QACf,KAAK,EAAE,QAAQ;KAChB;IACD,SAAS,EAAE;QACT,KAAK,EAAE,YAAY;QACnB,KAAK,EAAE,WAAW;KACnB;IACD,UAAU,EAAE;QACV,KAAK,EAAE,aAAa;QACpB,KAAK,EAAE,YAAY;KACpB;IACD,aAAa,EAAE;QACb,KAAK,EAAE,iBAAiB;QACxB,KAAK,EAAE,eAAe;KACvB;IACD,QAAQ,EAAE;QACR,KAAK,EAAE,WAAW;QAClB,KAAK,EAA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AAG,2BAA2B,CAAC;AACnE,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,YAAY;IACZ,YAAY;IACZ,SAAS;IACT,UAAU;CACX,CAAC"}
|
@@ -9,7 +9,7 @@ export type ProductUploadRuleFilterType = {
|
|
9
9
|
operators: ProductUploadRuleOperatorType[];
|
10
10
|
value: string;
|
11
11
|
disabled?: boolean;
|
12
|
-
|
12
|
+
values?: SelectItem[];
|
13
13
|
};
|
14
14
|
export type RuleOperatorsType = typeof RuleOperators;
|
15
15
|
export type ValueType = string | string[] | number[] | number | boolean;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"profile.types.d.ts","sourceRoot":"","sources":["../../src/types/profile.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,qBAAqB,EACrB,aAAa,EACd,MAAM,mCAAmC,CAAC;AAE3C,MAAM,MAAM,UAAU,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1D,MAAM,MAAM,6BAA6B,GAAG,UAAU,CAAC;AAEvD,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,6BAA6B,EAAE,CAAC;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,
|
1
|
+
{"version":3,"file":"profile.types.d.ts","sourceRoot":"","sources":["../../src/types/profile.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,qBAAqB,EACrB,aAAa,EACd,MAAM,mCAAmC,CAAC;AAE3C,MAAM,MAAM,UAAU,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1D,MAAM,MAAM,6BAA6B,GAAG,UAAU,CAAC;AAEvD,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,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AO,CAAC,CAAC;gBACjD,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,OAAO,CAAC;gBACvD,EAAE,EAAE,MAAM,CAAC;aACZ,EAAE,CAAC;SACL,EAAE,CAAC;KACL,CAAC;CACH,CAAC;AAEF,KAAK,aAAa,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC;AAEzE,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,kBAAkB,CAAC;IAC1B,QAAQ,EAAE,oBAAoB,EAAE,CAAC;CAClC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,wBAAwB,EAAE,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,SAAS,EAAE,qBAAqB,EAAE,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC;CACxD,CAAC"}
|
@@ -32,5 +32,5 @@ export type WebhookHeader = {
|
|
32
32
|
'x-shopify-triggered-at': string;
|
33
33
|
'x-shopify-webhook-id': string;
|
34
34
|
};
|
35
|
-
export { ShopifyShop, ShopifyProduct, ShopifyWebhook, ShopifyCustomCollection, ShopifySmartCollection, ShopifyCollection, ShopifyRecurringCharge, };
|
35
|
+
export { ShopifyShop, ShopifyProduct, ShopifyWebhook, ShopifyCustomCollection, ShopifySmartCollection, ShopifyCollection, ShopifyRecurringCharge, ShopifyProductVariant, };
|
36
36
|
//# sourceMappingURL=shopify.types.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"shopify.types.d.ts","sourceRoot":"","sources":["../../src/types/shopify.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAExE,KAAK,eAAe,CAAC,CAAC,SAAS,MAAM,aAAa,IAAI,YAAY,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;AAErF,KAAK,sBAAsB,GAAG,eAAe,CAAC,4BAA4B,CAAC,CAAC;AAC5E,KAAK,WAAW,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;AAC3C,KAAK,cAAc,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC;AACjD,KAAK,uBAAuB,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AACnE,KAAK,sBAAsB,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AACjE,KAAK,iBAAiB,GAAG,uBAAuB,GAAG,sBAAsB,CAAC;AAC1E,KAAK,qBAAqB,GAAG,eAAe,CAAC,SAAS,CAAC,GAAG;IACxD,MAAM,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,EAAE,CAAC;CACtC,CAAC;AACF,KAAK,cAAc,GAAG,eAAe,CAAC,SAAS,CAAC,GAAG;IACjD,QAAQ,EAAE,qBAAqB,EAAE,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;IAC5B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IACb,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,uBAAuB,EAAE,MAAM,CAAC;IAChC,uBAAuB,EAAE,MAAM,CAAC;IAChC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,uBAAuB,EAAE,MAAM,CAAC;IAChC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,wBAAwB,EAAE,MAAM,CAAC;IACjC,sBAAsB,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,OAAO,EACL,WAAW,EACX,cAAc,EACd,cAAc,EACd,uBAAuB,EACvB,sBAAsB,EACtB,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,GACtB,CAAC"}
|
package/dist/utils/profile.d.ts
CHANGED
@@ -1,7 +1,4 @@
|
|
1
|
-
import { OptionType, OptionTypeItem, OptionTypeGroup, ProductUploadProfile } from '../types/profile.types.js';
|
2
|
-
import { ProductUploadMapping } from '../types/profile.types.js';
|
3
|
-
import { ProductUploadRuleFilterType } from '../types/profile.types.js';
|
4
|
-
import { ProductUploadRuleItem, ProductUploadRuleSection, ProductUploadRules } from '../types/profile.types.js';
|
1
|
+
import { OptionType, OptionTypeItem, OptionTypeGroup, ProductUploadProfile, ProductUploadMapping, ProductUploadRuleFilterType, ProductUploadRuleItem, ProductUploadRuleSection, ProductUploadRules } from '../types/profile.types.js';
|
5
2
|
export declare function checkRuleDuplication(rules: ProductUploadRuleItem[]): string[];
|
6
3
|
export declare function checkRuleAlwaysness(rules: ProductUploadRuleItem[]): string[];
|
7
4
|
export declare function checkRuleDeadlocks(sections: ProductUploadRuleSection[]): string[];
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../src/utils/profile.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,eAAe,EACf,oBAAoB,
|
1
|
+
{"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../../src/utils/profile.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,2BAA2B,EAE3B,qBAAqB,EACrB,wBAAwB,EACxB,kBAAkB,EACnB,MAAM,2BAA2B,CAAC;AAInC,wBAAgB,oBAAoB,CAAE,KAAK,EAAE,qBAAqB,EAAE,GAAG,MAAM,EAAE,CAgB9E;AAED,wBAAgB,mBAAmB,CAAE,KAAK,EAAE,qBAAqB,EAAE,GAAG,MAAM,EAAE,CAW7E;AAED,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,wBAAwB,EAAE,GACnC,MAAM,EAAE,CA4BV;AAoDD,wBAAgB,gBAAgB,CAC9B,SAAS,GAAE,2BAA2B,CAAC,OAAO,CAAM,GACnD,qBAAqB,CAEvB;AAED,wBAAgB,YAAY,CAC1B,CAAC,EAAE,oBAAoB,EACvB,CAAC,EAAE,oBAAoB,GACtB,MAAM,CAiCR;AAED,wBAAgB,QAAQ,CAAE,KAAK,EAAE,kBAAkB,GAAG,OAAO,CAK5D;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,CAAC,GAAE,kBAAqC,EACxC,CAAC,GAAE,kBAAqC,GACvC,OAAO,CA4CT;AAUD,wBAAgB,eAAe,CAC7B,CAAC,EAAE,oBAAoB,EAAE,EACzB,CAAC,EAAE,oBAAoB,EAAE,GACxB,OAAO,CA6BT;AACD,wBAAgB,cAAc,CAAE,MAAM,EAAE,UAAU,GAAG,MAAM,IAAI,MAAM,CAEpE;AAED,wBAAgB,YAAY,CAAE,MAAM,EAAE,UAAU,GAAG,MAAM,IAAI,cAAc,CAE1E;AAED,wBAAgB,aAAa,CAAE,MAAM,EAAE,UAAU,GAAG,MAAM,IAAI,eAAe,CAE5E;AACD,wBAAgB,mBAAmB,CACjC,CAAC,EAAE,oBAAoB,EACvB,CAAC,EAAE,oBAAoB,GACtB;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,EAAE,EAAE,OAAO,CAAA;CAAE,CAwCnE;AAED,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,oBAAoB,GAC5B,oBAAoB,CAkBtB"}
|
package/dist/utils/profile.js
CHANGED
@@ -80,6 +80,14 @@ function getOperatorCounterpart(operator) {
|
|
80
80
|
return 'notIn';
|
81
81
|
case 'notIn':
|
82
82
|
return 'in';
|
83
|
+
case 'greater':
|
84
|
+
return 'less';
|
85
|
+
case 'less':
|
86
|
+
return 'greater';
|
87
|
+
case 'greaterOrEqual':
|
88
|
+
return 'lessOrEqual';
|
89
|
+
case 'lessOrEqual':
|
90
|
+
return 'greaterOrEqual';
|
83
91
|
default:
|
84
92
|
throw new Error(`Unknown operator ${String(operator)}`);
|
85
93
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../src/utils/profile.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../src/utils/profile.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,MAAM,UAAU,oBAAoB,CAAE,KAA8B;IAClE,OAAO,KAAK;SACT,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;QACT,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,IACE,CAAC,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE;gBAChB,CAAC,CAAC,SAAS,KAAK,IAAI,CAAC,SAAS;gBAC9B,CAAC,CAA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AAC,CAAC,SAAS,KAAK,GAAG,CAAC,IAAI,EAAE,CAAC;QAEtE,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC9C,CAAC,CAAC,EACF,CAAC;QACD,OAAO,CAAC,EAAE,GAAG,IAAI,CAAC;IACpB,CAAC;IAED,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC;QACpC,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;IACvB,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,MAAM,UAAU,qBAAqB,CACnC,OAA6B;IAE7B,IAAI,OAAO,CAAC,KAAK,EAAE,QAAQ,EAAE,CAAC;QAC5B,OAAO,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CACpD,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAC1C,CAAC;IACJ,CAAC;IAED,OAAO,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;QACnD,IAAI,OAAO,CAAC,KAAK,EAAE,QAAQ,EAAE,CAAC;YAC5B,OAAO,CAAC,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CACpD,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAC1C,CAAC;QACJ,CAAC;QAED,OAAO,OAAO,CAAC;IACjB,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
package/package.json
CHANGED
@@ -129,7 +129,7 @@ export const ProductUploadRuleFilters: ProductUploadRuleFilterType[] = [
|
|
129
129
|
label: "Inventory Policy",
|
130
130
|
operators: ProductUploadRulesOperators.is,
|
131
131
|
value: "inventory_policy",
|
132
|
-
|
132
|
+
values: [
|
133
133
|
{ label: "Deny", value: "deny" },
|
134
134
|
{ label: "Continue", value: "continue" },
|
135
135
|
],
|
package/src/utils/profile.ts
CHANGED
@@ -3,18 +3,14 @@ import {
|
|
3
3
|
OptionTypeItem,
|
4
4
|
OptionTypeGroup,
|
5
5
|
ProductUploadProfile,
|
6
|
-
|
7
|
-
import { ProductUploadMappings } from '../constants/profile.constants.js';
|
8
|
-
import { ProductUploadMapping } from '../types/profile.types.js';
|
9
|
-
import {
|
6
|
+
ProductUploadMapping,
|
10
7
|
ProductUploadRuleFilterType,
|
11
8
|
RuleOperatorsType,
|
12
|
-
} from '../types/profile.types.js';
|
13
|
-
import {
|
14
9
|
ProductUploadRuleItem,
|
15
10
|
ProductUploadRuleSection,
|
16
11
|
ProductUploadRules,
|
17
12
|
} from '../types/profile.types.js';
|
13
|
+
import { ProductUploadMappings } from '../constants/profile.constants.js';
|
18
14
|
import { code } from './utils.js';
|
19
15
|
|
20
16
|
export function checkRuleDuplication (rules: ProductUploadRuleItem[]): string[] {
|
@@ -71,7 +67,7 @@ export function checkRuleDeadlocks (
|
|
71
67
|
}
|
72
68
|
}
|
73
69
|
}
|
74
|
-
|
70
|
+
|
75
71
|
if (currentList.length === currentSection.ruleItems.length) {
|
76
72
|
totalList = [...totalList, ...currentList];
|
77
73
|
}
|
@@ -117,6 +113,14 @@ function getOperatorCounterpart (
|
|
117
113
|
return 'notIn';
|
118
114
|
case 'notIn':
|
119
115
|
return 'in';
|
116
|
+
case 'greater':
|
117
|
+
return 'less';
|
118
|
+
case 'less':
|
119
|
+
return 'greater';
|
120
|
+
case 'greaterOrEqual':
|
121
|
+
return 'lessOrEqual';
|
122
|
+
case 'lessOrEqual':
|
123
|
+
return 'greaterOrEqual';
|
120
124
|
default:
|
121
125
|
throw new Error(`Unknown operator ${String(operator)}`);
|
122
126
|
}
|