feed-common 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [1.7.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.6.1...v1.7.0) (2024-05-04)
2
+
3
+
4
+ ### Features
5
+
6
+ * add hardcoded option condition ([f7c6310](https://github.com/advertikon/package-maxify-feed-common/commit/f7c63101cf5a04b3658b856a31e75841d612cce5))
7
+
8
+ ## [1.6.1](https://github.com/advertikon/package-maxify-feed-common/compare/v1.6.0...v1.6.1) (2024-05-04)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * some fixes ([b5472fb](https://github.com/advertikon/package-maxify-feed-common/commit/b5472fbe6540b5356b6bf835f42a297b6b82178f))
14
+
1
15
  # [1.6.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.5.2...v1.6.0) (2024-05-04)
2
16
 
3
17
 
@@ -81,6 +81,10 @@ export declare const ProductUploadRulesOperators: {
81
81
  label: string;
82
82
  value: string;
83
83
  }[];
84
+ is: {
85
+ label: string;
86
+ value: string;
87
+ }[];
84
88
  };
85
89
  export declare const ProductUploadRuleFilters: ProductUploadRuleFilterType[];
86
90
  export declare const ProductUploadMappings: ProductUploadMapSource[];
@@ -1 +1 @@
1
- {"version":3,"file":"profile.constants.d.ts","sourceRoot":"","sources":["../../src/constants/profile.constants.ts"],"names":[],"mappings":"AACA,OAAO,EACL,sBAAsB,EACtB,2BAA2B,EAC5B,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAC9C,eAAO,MAAM,WAAW,eAAe,CAAC;AACxC,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AACzD,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AACtD,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAC/D,eAAO,MAAM,cAAc,mBAAmB,CAAC;AAE/C,eAAO,MAAM,sB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eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;CAoBvC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,2BAA2B,EAwCjE,CAAC;AASF,eAAO,MAAM,qBAAqB,EAAE,sBAAsB,EAyQzD,CAAC;AACF,eAAO,MAAM,OAAO,WAAW,CAAC;AAChC,eAAO,MAAM,uBAAuB,8BAA8B,CAAC;AACnE,eAAO,MAAM,sBAAsB,UAKlC,CAAC"}
@@ -86,6 +86,7 @@ export const ProductUploadRulesOperators = {
86
86
  RuleOperators.greaterOrEqual,
87
87
  ],
88
88
  list: [RuleOperators.in, RuleOperators.notIn],
89
+ is: [RuleOperators.equals, RuleOperators.notEquals],
89
90
  };
90
91
  export const ProductUploadRuleFilters = [
91
92
  {
@@ -115,8 +116,12 @@ export const ProductUploadRuleFilters = [
115
116
  },
116
117
  {
117
118
  label: "Inventory Policy",
118
- operators: ProductUploadRulesOperators.string,
119
+ operators: ProductUploadRulesOperators.is,
119
120
  value: "inventory_policy",
121
+ options: [
122
+ { label: "Deny", value: "deny" },
123
+ { label: "Continue", value: "continue" },
124
+ ],
120
125
  },
121
126
  {
122
127
  label: "Inventory Quantity",
@@ -187,7 +192,15 @@ export const ProductUploadMappings = [
187
192
  { label: "Preorder", value: "preorder" },
188
193
  { label: "Backorder", value: "backorder" },
189
194
  ],
190
- rules: ["title", "collection", "product_type", "vendor", "tag"],
195
+ rules: [
196
+ "title",
197
+ "collection",
198
+ "product_type",
199
+ "vendor",
200
+ "tag",
201
+ "inventory_policy",
202
+ "inventory_quantity",
203
+ ],
191
204
  description: "Availability status of the item",
192
205
  },
193
206
  {
@@ -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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mDAAmD;IACnD,MAAM;IACN,wLAAwL;IACxL,MAAM;IACN,kDAAkD;IAClD,MAAM;IACN,sLAAsL;IACtL,MAAM;IACN,2BAA2B;IAC3B,MAAM;IACN,2EAA2E;IAC3E,MAAM;IACN,8BAA8B;IAC9B,MAAM;IACN,yDAAyD;IACzD,MAAM;IACN,4BAA4B;CAC7B,CAAC;AACF,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC;AAChC,MAAM,CAAC,MAAM,uBAAuB,GAAG,2BAA2B,CAAC;AACnE,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,YAAY;IACZ,YAAY;IACZ,SAAS;IACT,UAAU;CACX,CAAC"}
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,E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AAG;IACpC,YAAY;IACZ,YAAY;IACZ,SAAS;IACT,UAAU;CACX,CAAC"}
@@ -1,13 +1,15 @@
1
- import { ProductUploadRuleFilters, ProductUploadMappings, RuleOperators } from '../constants/profile.constants.js';
2
- export type ProductUploadRuleOperatorType = {
1
+ import { ProductUploadRuleFilters, ProductUploadMappings, RuleOperators } from "../constants/profile.constants.js";
2
+ export type SelectItem = {
3
3
  label: string;
4
4
  value: string;
5
5
  };
6
+ export type ProductUploadRuleOperatorType = SelectItem;
6
7
  export type ProductUploadRuleFilterType = {
7
8
  label: string;
8
9
  operators: ProductUploadRuleOperatorType[];
9
10
  value: string;
10
11
  disabled?: boolean;
12
+ options?: SelectItem[];
11
13
  };
12
14
  export type RuleOperatorsType = typeof RuleOperators;
13
15
  export type ValueType = string | string[] | number[] | number | boolean;
@@ -24,9 +26,9 @@ export type ProductUploadMapSource = {
24
26
  required: boolean;
25
27
  label: string;
26
28
  attribute: string;
27
- type: 'select' | 'multiselect' | 'text' | 'number';
29
+ type: "select" | "multiselect" | "text" | "number";
28
30
  choices?: OptionType[];
29
- rules: ProductUploadRuleFilterType['value'][];
31
+ rules: ProductUploadRuleFilterType["value"][];
30
32
  description?: string;
31
33
  defaultValue?: ValueType;
32
34
  };
@@ -36,15 +38,15 @@ export type ProductUploadMapping = {
36
38
  rules: {
37
39
  sections: {
38
40
  ruleItems: {
39
- attribute: (typeof ProductUploadRuleFilters)[number]['value'];
40
- operator: ProductUploadRuleOperatorType['value'];
41
+ attribute: (typeof ProductUploadRuleFilters)[number]["value"];
42
+ operator: ProductUploadRuleOperatorType["value"];
41
43
  value: string | string[] | number[] | number | boolean;
42
44
  id: string;
43
45
  }[];
44
46
  }[];
45
47
  };
46
48
  };
47
- type MappingFields = (typeof ProductUploadMappings)[number]['attribute'];
49
+ type MappingFields = (typeof ProductUploadMappings)[number]["attribute"];
48
50
  export type ProductUploadProfile = {
49
51
  id: string;
50
52
  profileIdTemplate: string;
@@ -1 +1 @@
1
- {"version":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,EAAE,GAAG,OAAO,CAAC;CACxD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feed-common",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "Maxify feed common library",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -96,6 +96,7 @@ export const ProductUploadRulesOperators = {
96
96
  RuleOperators.greaterOrEqual,
97
97
  ],
98
98
  list: [RuleOperators.in, RuleOperators.notIn],
99
+ is: [RuleOperators.equals, RuleOperators.notEquals],
99
100
  };
100
101
 
101
102
  export const ProductUploadRuleFilters: ProductUploadRuleFilterType[] = [
@@ -126,8 +127,12 @@ export const ProductUploadRuleFilters: ProductUploadRuleFilterType[] = [
126
127
  },
127
128
  {
128
129
  label: "Inventory Policy",
129
- operators: ProductUploadRulesOperators.string,
130
+ operators: ProductUploadRulesOperators.is,
130
131
  value: "inventory_policy",
132
+ options: [
133
+ { label: "Deny", value: "deny" },
134
+ { label: "Continue", value: "continue" },
135
+ ],
131
136
  },
132
137
  {
133
138
  label: "Inventory Quantity",
@@ -201,7 +206,15 @@ export const ProductUploadMappings: ProductUploadMapSource[] = [
201
206
  { label: "Preorder", value: "preorder" },
202
207
  { label: "Backorder", value: "backorder" },
203
208
  ],
204
- rules: ["title", "collection", "product_type", "vendor", "tag"],
209
+ rules: [
210
+ "title",
211
+ "collection",
212
+ "product_type",
213
+ "vendor",
214
+ "tag",
215
+ "inventory_policy",
216
+ "inventory_quantity",
217
+ ],
205
218
  description: "Availability status of the item",
206
219
  },
207
220
  {
@@ -2,18 +2,18 @@ import {
2
2
  ProductUploadRuleFilters,
3
3
  ProductUploadMappings,
4
4
  RuleOperators,
5
- } from '../constants/profile.constants.js';
5
+ } from "../constants/profile.constants.js";
6
6
 
7
- export type ProductUploadRuleOperatorType = {
8
- label: string;
9
- value: string;
10
- };
7
+ export type SelectItem = { label: string; value: string };
8
+
9
+ export type ProductUploadRuleOperatorType = SelectItem;
11
10
 
12
11
  export type ProductUploadRuleFilterType = {
13
12
  label: string;
14
13
  operators: ProductUploadRuleOperatorType[];
15
14
  value: string;
16
15
  disabled?: boolean;
16
+ options?: SelectItem[];
17
17
  };
18
18
 
19
19
  export type RuleOperatorsType = typeof RuleOperators;
@@ -25,9 +25,9 @@ export type ProductUploadMapSource = {
25
25
  required: boolean;
26
26
  label: string;
27
27
  attribute: string;
28
- type: 'select' | 'multiselect' | 'text' | 'number';
28
+ type: "select" | "multiselect" | "text" | "number";
29
29
  choices?: OptionType[];
30
- rules: ProductUploadRuleFilterType['value'][];
30
+ rules: ProductUploadRuleFilterType["value"][];
31
31
  description?: string;
32
32
  defaultValue?: ValueType;
33
33
  };
@@ -38,8 +38,8 @@ export type ProductUploadMapping = {
38
38
  rules: {
39
39
  sections: {
40
40
  ruleItems: {
41
- attribute: (typeof ProductUploadRuleFilters)[number]['value'];
42
- operator: ProductUploadRuleOperatorType['value'];
41
+ attribute: (typeof ProductUploadRuleFilters)[number]["value"];
42
+ operator: ProductUploadRuleOperatorType["value"];
43
43
  value: string | string[] | number[] | number | boolean;
44
44
  id: string;
45
45
  }[];
@@ -47,7 +47,7 @@ export type ProductUploadMapping = {
47
47
  };
48
48
  };
49
49
 
50
- type MappingFields = (typeof ProductUploadMappings)[number]['attribute'];
50
+ type MappingFields = (typeof ProductUploadMappings)[number]["attribute"];
51
51
 
52
52
  export type ProductUploadProfile = {
53
53
  id: string;