feed-common 1.71.0 → 1.73.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.73.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.72.0...v1.73.0) (2024-11-17)
2
+
3
+
4
+ ### Features
5
+
6
+ * add updateSchedule to XmlFeed type ([346b114](https://github.com/advertikon/package-maxify-feed-common/commit/346b1144618943b3b066b5bb7f672c74af565dd9))
7
+
8
+ # [1.72.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.71.0...v1.72.0) (2024-11-16)
9
+
10
+
11
+ ### Features
12
+
13
+ * add namesapce field to MacroPartType type ([0dd63bc](https://github.com/advertikon/package-maxify-feed-common/commit/0dd63bc7759372641fd6c4d02fe693b6c7b02cb3))
14
+
1
15
  # [1.71.0](https://github.com/advertikon/package-maxify-feed-common/compare/v1.70.2...v1.71.0) (2024-11-16)
2
16
 
3
17
 
@@ -23,6 +23,7 @@ export type AppProductVariant = {
23
23
  jsonValue: string;
24
24
  type: string;
25
25
  value?: string;
26
+ namespace: string;
26
27
  }[];
27
28
  };
28
29
  export type GmcProductId = {
@@ -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,OAAO,GAAG,UAAU,CAAC;AAE/D,MAAM,MAAM,iBAAiB,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB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C1B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
@@ -67,6 +67,7 @@ export type XmlFeed = BaseProductUploadProfile & {
67
67
  key?: string;
68
68
  };
69
69
  total_uploads_number: number;
70
+ updateSchedule: string;
70
71
  };
71
72
  export type ProductUploadRules = {
72
73
  sections: ProductUploadRuleSection[];
@@ -85,6 +86,7 @@ export type MacroPartType = {
85
86
  content: string;
86
87
  type: 'macro' | 'string';
87
88
  subtype?: 'mapping' | 'action' | 'metafield' | 'source';
89
+ namespace?: string;
88
90
  };
89
91
  export type XmlFeedTemplateType = {
90
92
  formats?: XmlFeedFormat[];
@@ -1 +1 @@
1
- {"version":3,"file":"profile.types.d.ts","sourceRoot":"","sources":["../../src/types/profile.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AACtH,OAAO,EAAE,mBAAmB,EAAE,MAAM,KAAK,CAAC;AAE1C,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,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
  content: tagValue.trim(),
44
44
  type: 'macro',
45
45
  subtype: getMacroSubtype(tagValue),
46
+ namespace: getMacroSubtype(tagValue) === 'metafield' ? tagValue.split('.')[1] : undefined,
46
47
  });
47
48
  startPos = nextEndPos + closeTag.length;
48
49
  }
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,IAAI;IAChB,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,WAAmB;IACjD,MAAM,OAAO,GAAG,IAAI,CAAC;IACrB,MAAM,QAAQ,GAAG,IAAI,CAAC;IACtB,IAAI,QAAQ,GAAG,CAAC,CAAC;IACjB,MAAM,KAAK,GAAoB,EAAE,CAAC;IAElC,IAAI,CAAC,WAAW,EAAE,CAAC;QACf,OAAO;YACH;gBACI,OAAO,EAAE,EAAE;gBACX,IAAI,EAAE,QAAQ;aACjB;SACJ,CAAC;IACN,CAAC;IAED,OAAO,QAAQ,KAAK,CAAC,CAAC,IAAI,QAAQ,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC;QACtD,MAAM,YAAY,GAAG,WAAW,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAE5D,IAAI,YAAY,KAAK,CAAC,CAAC,EAAE,CAAC;YACtB,KAAK,CAAC,IAAI,CAAC;gBACP,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,QAAQ,CAAC;gBACxC,IAAI,EAAE,QAAQ;aACjB,CAAC,CAAC;YACH,MAAM;QACV,CAAC;aAAM,IAAI,YAAY,GAAG,QAAQ,EAAE,CAAC;YACjC,KAAK,CAAC,IAAI,CAAC;gBACP,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,QAAQ,EAAE,YAAY,CAAC;gBACtD,IAAI,EAAE,QAAQ;aAC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,CAAC,CAAC,CAAC,OAAO,CAAC;IAC3E,MAAM,SAAS,GAAG,UAAU,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC/E,MAAM,KAAK,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAErE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;AAC5E,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,OAAe;IACjD,OAAO,iBAAiB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,IAAI,EAAE,CAAC;AAChE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "feed-common",
3
- "version": "1.71.0",
3
+ "version": "1.73.0",
4
4
  "description": "Maxify feed common library",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -20,7 +20,7 @@ export type AppProductVariant = {
20
20
  name: string;
21
21
  value: string;
22
22
  }[],
23
- metafields: { key: string; jsonValue: string; type: string; value?: string }[];
23
+ metafields: { key: string; jsonValue: string; type: string; value?: string; namespace: string }[];
24
24
  };
25
25
 
26
26
  export type GmcProductId = {
@@ -34,17 +34,6 @@ export type ProductUploadMapSource = {
34
34
  fixedValue?: boolean
35
35
  };
36
36
 
37
- // export type XmlFeedEntryType = {
38
- // id: string,
39
- // label: string,
40
- // description: string;
41
- // required: boolean;
42
- // type: string;
43
- // validator: (v: string|number) => SafeParseReturnType<any, any>;
44
- // value: string;
45
- // rules?: ProductUploadRules;
46
- // };
47
-
48
37
  export type ProductUploadMapping = {
49
38
  id: string;
50
39
  attribute: string;
@@ -74,6 +63,7 @@ export type XmlFeed = BaseProductUploadProfile & {
74
63
  key?: string;
75
64
  };
76
65
  total_uploads_number: number;
66
+ updateSchedule: string;
77
67
  };
78
68
 
79
69
  export type ProductUploadRules = {
@@ -96,6 +86,7 @@ export type MacroPartType = {
96
86
  content: string;
97
87
  type: 'macro' | 'string';
98
88
  subtype?: 'mapping' | 'action' | 'metafield' | 'source';
89
+ namespace?: string;
99
90
  };
100
91
 
101
92
  export type XmlFeedTemplateType = {
@@ -58,6 +58,7 @@ export function parseMacrosString(textContent: string): MacroPartType[] {
58
58
  content: tagValue.trim(),
59
59
  type: 'macro',
60
60
  subtype: getMacroSubtype(tagValue),
61
+ namespace: getMacroSubtype(tagValue) === 'metafield' ? tagValue.split('.')[1] : undefined,
61
62
  });
62
63
 
63
64
  startPos = nextEndPos + closeTag.length;
@@ -52,26 +52,26 @@ describe('Utils', () => {
52
52
 
53
53
  describe('Pars macro string', () => {
54
54
  test('parseMacrosString', () => {
55
- expect(parseMacrosString('{{foo}}')).toStrictEqual([{ content: 'foo', type: 'macro', subtype: 'mapping' }]);
55
+ expect(parseMacrosString('{{foo}}')).toStrictEqual([{ content: 'foo', type: 'macro', subtype: 'mapping', namespace: undefined }]);
56
56
  expect(parseMacrosString('foo')).toStrictEqual([{ content: 'foo', type: 'string' }]);
57
57
  expect(parseMacrosString('{{action.plus:1}}')).toStrictEqual([
58
- { content: 'action.plus:1', type: 'macro', subtype: 'action' },
58
+ { content: 'action.plus:1', type: 'macro', subtype: 'action', namespace: undefined },
59
59
  ]);
60
60
  expect(parseMacrosString('{{metafield.goo}}')).toStrictEqual([
61
- { content: 'metafield.goo', type: 'macro', subtype: 'metafield' },
61
+ { content: 'metafield.goo', type: 'macro', subtype: 'metafield', namespace: 'goo' },
62
62
  ]);
63
63
  expect(parseMacrosString('{{source.goo}}')).toStrictEqual([
64
- { content: 'source.goo', type: 'macro', subtype: 'source' },
64
+ { content: 'source.goo', type: 'macro', subtype: 'source', namespace: undefined },
65
65
  ]);
66
66
 
67
67
  expect(parseMacrosString('{{foo}}goo{{doo}}')).toStrictEqual([
68
- { content: 'foo', type: 'macro', subtype: 'mapping' },
68
+ { content: 'foo', type: 'macro', subtype: 'mapping', namespace: undefined },
69
69
  { content: 'goo', type: 'string' },
70
- { content: 'doo', type: 'macro', subtype: 'mapping' },
70
+ { content: 'doo', type: 'macro', subtype: 'mapping', namespace: undefined },
71
71
  ]);
72
72
 
73
73
  expect(parseMacrosString('{{source.goo:[{"a": 1, "b":2}]}}')).toStrictEqual([
74
- { content: 'source.goo:[{"a": 1, "b":2}]', type: 'macro', subtype: 'source' },
74
+ { content: 'source.goo:[{"a": 1, "b":2}]', type: 'macro', subtype: 'source', namespace: undefined },
75
75
  ]);
76
76
  });
77
77
  });