feed-common 1.7.1 → 1.7.3
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +14 -0
- package/dist/types/product.types.d.ts +2 -0
- package/dist/types/product.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/types/product.types.ts +2 -0
- 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.3](https://github.com/advertikon/package-maxify-feed-common/compare/v1.7.2...v1.7.3) (2024-05-05)
|
2
|
+
|
3
|
+
|
4
|
+
### Bug Fixes
|
5
|
+
|
6
|
+
* add inventory fields to AppProduct variant ([0e9fc45](https://github.com/advertikon/package-maxify-feed-common/commit/0e9fc450f4a9ffecaff30c8800599899b5eeb735))
|
7
|
+
|
8
|
+
## [1.7.2](https://github.com/advertikon/package-maxify-feed-common/compare/v1.7.1...v1.7.2) (2024-05-05)
|
9
|
+
|
10
|
+
|
11
|
+
### Bug Fixes
|
12
|
+
|
13
|
+
* add some stuff ([3156ccf](https://github.com/advertikon/package-maxify-feed-common/commit/3156ccfe516184c647fc5cb95042535fb5fb7601))
|
14
|
+
|
1
15
|
## [1.7.1](https://github.com/advertikon/package-maxify-feed-common/compare/v1.7.0...v1.7.1) (2024-05-04)
|
2
16
|
|
3
17
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"product.types.d.ts","sourceRoot":"","sources":["../../src/types/product.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAEtE,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,O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B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,oBAAoB,CAAC;CAC/B,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;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,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,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"],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AC,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
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
|
}
|