feed-common 1.14.3 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,6 @@
1
1
  {
2
- "editor.defaultFormatter": "esbenp.prettier-vscode"
3
- }
2
+ "editor.defaultFormatter": "esbenp.prettier-vscode",
3
+ "[typescript]": {
4
+ "editor.defaultFormatter": "dbaeumer.vscode-eslint"
5
+ }
6
+ }
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [1.16.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.15.0...v1.16.0) (2024-06-28)
2
+
3
+
4
+ ### Features
5
+
6
+ * add XMLFeedType ([96b4cce](https://github.com/advertikon/package-maxify-feed-common/commit/96b4ccef32e5be71166887e42bf46d13e460c224))
7
+
8
+ # [1.15.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.14.3...v1.15.0) (2024-06-28)
9
+
10
+
11
+ ### Features
12
+
13
+ * add BaseProductUploadProfile and XmlFeed types ([d07a966](https://github.com/advertikon/package-maxify-feed-common/commit/d07a9660898bc9e052d4cf34136040a86d59678e))
14
+
1
15
  ## [1.14.3](https://github.com/advertikon/package-maxify-feed-common/compare/v1.14.2...v1.14.3) (2024-06-09)
2
16
 
3
17
 
@@ -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
  };
@@ -60,5 +63,9 @@ export type ProductUploadRuleItem = {
60
63
  operator: string;
61
64
  value: string | number | string[] | number[] | boolean;
62
65
  };
66
+ export declare enum XMLFeedType {
67
+ Custom = "Custom",
68
+ Facebook = "Facebook"
69
+ }
63
70
  export {};
64
71
  //# sourceMappingURL=profile.types.d.ts.map
@@ -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;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI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LFeedType["Facebook"] = "Facebook";
5
+ })(XMLFeedType || (XMLFeedType = {}));
2
6
  //# sourceMappingURL=profile.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"profile.types.js","sourceRoot":"","sources":["../../src/types/profile.types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"profile.types.js","sourceRoot":"","sources":["../../src/types/profile.types.ts"],"names":[],"mappings":"AAsEA,MAAM,CAAN,IAAY,WAGT;AAHH,WAAY,WAAW;IACnB,gCAAiB,CAAA;IACjB,oCAAqB,CAAA;AACvB,CAAC,EAHS,WAAW,KAAX,WAAW,QAGpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feed-common",
3
- "version": "1.14.3",
3
+ "version": "1.16.0",
4
4
  "description": "Maxify feed common library",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -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
  };
@@ -61,3 +66,9 @@ export type ProductUploadRuleItem = {
61
66
  operator: string;
62
67
  value: string | number | string[] | number[] | boolean;
63
68
  };
69
+
70
+
71
+ export enum XMLFeedType {
72
+ Custom = 'Custom',
73
+ Facebook = 'Facebook',
74
+ }