feed-common 1.14.2 → 1.15.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.15.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.14.3...v1.15.0) (2024-06-28)
2
+
3
+
4
+ ### Features
5
+
6
+ * add BaseProductUploadProfile and XmlFeed types ([d07a966](https://github.com/advertikon/package-maxify-feed-common/commit/d07a9660898bc9e052d4cf34136040a86d59678e))
7
+
8
+ ## [1.14.3](https://github.com/advertikon/package-maxify-feed-common/compare/v1.14.2...v1.14.3) (2024-06-09)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * change AppProductVariant weight type ([6f15ce4](https://github.com/advertikon/package-maxify-feed-common/commit/6f15ce4be5ef8e0fa4115f61106f0fbb9171706c))
14
+
1
15
  ## [1.14.2](https://github.com/advertikon/package-maxify-feed-common/compare/v1.14.1...v1.14.2) (2024-06-09)
2
16
 
3
17
 
@@ -5,7 +5,7 @@ export type AppProductStatus = 'active' | 'draft' | 'archived';
5
5
  export type AppProductVariant = Pick<ShopifyProductVariant, 'id' | 'title' | 'sku' | 'barcode' | 'image_id' | 'inventory_policy' | 'weight_unit' | 'requires_shipping'> & {
6
6
  price: number;
7
7
  compare_at_price: number | null;
8
- weight: number;
8
+ weight: number | null;
9
9
  inventory_quantity: number;
10
10
  gmcProduct?: GmcProductId[];
11
11
  };
@@ -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;AACtE,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEhF,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,OAAO,GAAG,UAAU,CAAC;AAE/D,MAAM,MAAM,iBAAiB,GACvB,IAAI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AAO,CAAC;KACpB,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACjC,QAAQ,EAAE,UAAU,EAAE,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACvB,GAAG,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACnC,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
@@ -39,14 +39,17 @@ export type ProductUploadMapping = {
39
39
  rules: ProductUploadRules;
40
40
  };
41
41
  type MappingFields = (typeof ProductUploadMappings)[number]['attribute'];
42
- export type ProductUploadProfile = {
42
+ export type BaseProductUploadProfile = {
43
43
  id: string;
44
- profileIdTemplate: string;
45
44
  name: string;
46
- active?: boolean;
45
+ active: boolean;
47
46
  rules: ProductUploadRules;
48
47
  mappings: ProductUploadMapping[];
49
48
  };
49
+ export type ProductUploadProfile = BaseProductUploadProfile & {
50
+ profileIdTemplate: string;
51
+ };
52
+ export type XmlFeed = BaseProductUploadProfile;
50
53
  export type ProductUploadRules = {
51
54
  sections: ProductUploadRuleSection[];
52
55
  };
@@ -1 +1 @@
1
- {"version":3,"file":"profile.types.d.ts","sourceRoot":"","sources":["../../src/types/profile.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAEzF,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;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,6BAA6B,EAAE,CAAC;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,OAAO,aAAa,CAAC;AACrD,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,OAAO,CAAC;AACxE,MAAM,MAAM,cAAc,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,SAAS,CAAA;CAAE,CAAC;AACjE,MAAM,MAAM,eAAe,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,cAAc,EAAE,CAAA;CAAE,CAAC;AAC3E,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,eAAe,GAAG,MAAM,CAAC;AACnE,MAAM,MAAM,sBAAsB,GAAG;IACjC,QAAQ,EAAE,OAAO,CAAC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4
4
  "description": "Maxify feed common library",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -11,7 +11,7 @@ export type AppProductVariant =
11
11
  > & {
12
12
  price: number;
13
13
  compare_at_price: number | null;
14
- weight: number;
14
+ weight: number | null;
15
15
  inventory_quantity: number;
16
16
  gmcProduct?: GmcProductId[];
17
17
  };
@@ -37,15 +37,20 @@ export type ProductUploadMapping = {
37
37
 
38
38
  type MappingFields = (typeof ProductUploadMappings)[number]['attribute'];
39
39
 
40
- export type ProductUploadProfile = {
40
+ export type BaseProductUploadProfile = {
41
41
  id: string;
42
- profileIdTemplate: string;
43
42
  name: string;
44
- active?: boolean;
43
+ active: boolean;
45
44
  rules: ProductUploadRules;
46
45
  mappings: ProductUploadMapping[];
47
46
  };
48
47
 
48
+ export type ProductUploadProfile = BaseProductUploadProfile & {
49
+ profileIdTemplate: string;
50
+ };
51
+
52
+ export type XmlFeed = BaseProductUploadProfile;
53
+
49
54
  export type ProductUploadRules = {
50
55
  sections: ProductUploadRuleSection[];
51
56
  };