@pvh-afl/graphql 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/README.md +135 -0
  2. package/dist/cart/cart.hooks.d.ts +66 -0
  3. package/dist/cart/cart.hooks.d.ts.map +1 -0
  4. package/dist/cart/cart.hooks.js +12 -0
  5. package/dist/cart/cart.hooks.js.map +1 -0
  6. package/dist/cart/cart.module.d.ts +25 -0
  7. package/dist/cart/cart.module.d.ts.map +1 -0
  8. package/dist/cart/cart.module.js +44 -0
  9. package/dist/cart/cart.module.js.map +1 -0
  10. package/dist/cart/cart.resolver.d.ts +23 -0
  11. package/dist/cart/cart.resolver.d.ts.map +1 -0
  12. package/dist/cart/cart.resolver.js +153 -0
  13. package/dist/cart/cart.resolver.js.map +1 -0
  14. package/dist/cart/cart.service.d.ts +31 -0
  15. package/dist/cart/cart.service.d.ts.map +1 -0
  16. package/dist/cart/cart.service.js +305 -0
  17. package/dist/cart/cart.service.js.map +1 -0
  18. package/dist/cart/cart.types.d.ts +144 -0
  19. package/dist/cart/cart.types.d.ts.map +1 -0
  20. package/dist/cart/cart.types.js +629 -0
  21. package/dist/cart/cart.types.js.map +1 -0
  22. package/dist/cart/index.d.ts +6 -0
  23. package/dist/cart/index.d.ts.map +1 -0
  24. package/dist/cart/index.js +9 -0
  25. package/dist/cart/index.js.map +1 -0
  26. package/dist/cms/cms.module.d.ts +3 -0
  27. package/dist/cms/cms.module.d.ts.map +1 -0
  28. package/dist/cms/cms.module.js +18 -0
  29. package/dist/cms/cms.module.js.map +1 -0
  30. package/dist/cms/cms.resolver.d.ts +15 -0
  31. package/dist/cms/cms.resolver.d.ts.map +1 -0
  32. package/dist/cms/cms.resolver.js +44 -0
  33. package/dist/cms/cms.resolver.js.map +1 -0
  34. package/dist/cms/cms.service.d.ts +14 -0
  35. package/dist/cms/cms.service.d.ts.map +1 -0
  36. package/dist/cms/cms.service.js +111 -0
  37. package/dist/cms/cms.service.js.map +1 -0
  38. package/dist/cms/cms.types.d.ts +20 -0
  39. package/dist/cms/cms.types.d.ts.map +1 -0
  40. package/dist/cms/cms.types.js +89 -0
  41. package/dist/cms/cms.types.js.map +1 -0
  42. package/dist/cms/index.d.ts +5 -0
  43. package/dist/cms/index.d.ts.map +1 -0
  44. package/dist/cms/index.js +8 -0
  45. package/dist/cms/index.js.map +1 -0
  46. package/dist/collection/collection.module.d.ts +3 -0
  47. package/dist/collection/collection.module.d.ts.map +1 -0
  48. package/dist/collection/collection.module.js +19 -0
  49. package/dist/collection/collection.module.js.map +1 -0
  50. package/dist/collection/collection.resolver.d.ts +15 -0
  51. package/dist/collection/collection.resolver.d.ts.map +1 -0
  52. package/dist/collection/collection.resolver.js +45 -0
  53. package/dist/collection/collection.resolver.js.map +1 -0
  54. package/dist/collection/collection.service.d.ts +19 -0
  55. package/dist/collection/collection.service.d.ts.map +1 -0
  56. package/dist/collection/collection.service.js +132 -0
  57. package/dist/collection/collection.service.js.map +1 -0
  58. package/dist/collection/collection.types.d.ts +18 -0
  59. package/dist/collection/collection.types.d.ts.map +1 -0
  60. package/dist/collection/collection.types.js +75 -0
  61. package/dist/collection/collection.types.js.map +1 -0
  62. package/dist/collection/index.d.ts +5 -0
  63. package/dist/collection/index.d.ts.map +1 -0
  64. package/dist/collection/index.js +8 -0
  65. package/dist/collection/index.js.map +1 -0
  66. package/dist/common/index.d.ts +8 -0
  67. package/dist/common/index.d.ts.map +1 -0
  68. package/dist/common/index.js +16 -0
  69. package/dist/common/index.js.map +1 -0
  70. package/dist/graphql.module.d.ts +3 -0
  71. package/dist/graphql.module.d.ts.map +1 -0
  72. package/dist/graphql.module.js +46 -0
  73. package/dist/graphql.module.js.map +1 -0
  74. package/dist/header/header.module.d.ts +9 -0
  75. package/dist/header/header.module.d.ts.map +1 -0
  76. package/dist/header/header.module.js +21 -0
  77. package/dist/header/header.module.js.map +1 -0
  78. package/dist/header/header.resolver.d.ts +18 -0
  79. package/dist/header/header.resolver.d.ts.map +1 -0
  80. package/dist/header/header.resolver.js +42 -0
  81. package/dist/header/header.resolver.js.map +1 -0
  82. package/dist/header/index.d.ts +4 -0
  83. package/dist/header/index.d.ts.map +1 -0
  84. package/dist/header/index.js +7 -0
  85. package/dist/header/index.js.map +1 -0
  86. package/dist/header/types/header.types.d.ts +36 -0
  87. package/dist/header/types/header.types.d.ts.map +1 -0
  88. package/dist/header/types/header.types.js +154 -0
  89. package/dist/header/types/header.types.js.map +1 -0
  90. package/dist/header/types/index.d.ts +3 -0
  91. package/dist/header/types/index.d.ts.map +1 -0
  92. package/dist/header/types/index.js +6 -0
  93. package/dist/header/types/index.js.map +1 -0
  94. package/dist/header/types/response.types.d.ts +13 -0
  95. package/dist/header/types/response.types.d.ts.map +1 -0
  96. package/dist/header/types/response.types.js +54 -0
  97. package/dist/header/types/response.types.js.map +1 -0
  98. package/dist/index.d.ts +16 -0
  99. package/dist/index.d.ts.map +1 -0
  100. package/dist/index.js +29 -0
  101. package/dist/index.js.map +1 -0
  102. package/dist/page-content/index.d.ts +5 -0
  103. package/dist/page-content/index.d.ts.map +1 -0
  104. package/dist/page-content/index.js +8 -0
  105. package/dist/page-content/index.js.map +1 -0
  106. package/dist/page-content/page-content.module.d.ts +9 -0
  107. package/dist/page-content/page-content.module.d.ts.map +1 -0
  108. package/dist/page-content/page-content.module.js +25 -0
  109. package/dist/page-content/page-content.module.js.map +1 -0
  110. package/dist/page-content/page-content.resolver.d.ts +18 -0
  111. package/dist/page-content/page-content.resolver.d.ts.map +1 -0
  112. package/dist/page-content/page-content.resolver.js +42 -0
  113. package/dist/page-content/page-content.resolver.js.map +1 -0
  114. package/dist/page-content/page-content.service.d.ts +59 -0
  115. package/dist/page-content/page-content.service.d.ts.map +1 -0
  116. package/dist/page-content/page-content.service.js +253 -0
  117. package/dist/page-content/page-content.service.js.map +1 -0
  118. package/dist/page-content/types/common.types.d.ts +49 -0
  119. package/dist/page-content/types/common.types.d.ts.map +1 -0
  120. package/dist/page-content/types/common.types.js +217 -0
  121. package/dist/page-content/types/common.types.js.map +1 -0
  122. package/dist/page-content/types/index.d.ts +4 -0
  123. package/dist/page-content/types/index.d.ts.map +1 -0
  124. package/dist/page-content/types/index.js +7 -0
  125. package/dist/page-content/types/index.js.map +1 -0
  126. package/dist/page-content/types/response.types.d.ts +8 -0
  127. package/dist/page-content/types/response.types.d.ts.map +1 -0
  128. package/dist/page-content/types/response.types.js +29 -0
  129. package/dist/page-content/types/response.types.js.map +1 -0
  130. package/dist/page-content/types/section.types.d.ts +276 -0
  131. package/dist/page-content/types/section.types.d.ts.map +1 -0
  132. package/dist/page-content/types/section.types.js +1252 -0
  133. package/dist/page-content/types/section.types.js.map +1 -0
  134. package/dist/product/index.d.ts +5 -0
  135. package/dist/product/index.d.ts.map +1 -0
  136. package/dist/product/index.js +8 -0
  137. package/dist/product/index.js.map +1 -0
  138. package/dist/product/product.module.d.ts +3 -0
  139. package/dist/product/product.module.d.ts.map +1 -0
  140. package/dist/product/product.module.js +19 -0
  141. package/dist/product/product.module.js.map +1 -0
  142. package/dist/product/product.resolver.d.ts +15 -0
  143. package/dist/product/product.resolver.d.ts.map +1 -0
  144. package/dist/product/product.resolver.js +45 -0
  145. package/dist/product/product.resolver.js.map +1 -0
  146. package/dist/product/product.service.d.ts +38 -0
  147. package/dist/product/product.service.d.ts.map +1 -0
  148. package/dist/product/product.service.js +337 -0
  149. package/dist/product/product.service.js.map +1 -0
  150. package/dist/product/product.types.d.ts +63 -0
  151. package/dist/product/product.types.d.ts.map +1 -0
  152. package/dist/product/product.types.js +276 -0
  153. package/dist/product/product.types.js.map +1 -0
  154. package/dist/product-content/index.d.ts +5 -0
  155. package/dist/product-content/index.d.ts.map +1 -0
  156. package/dist/product-content/index.js +8 -0
  157. package/dist/product-content/index.js.map +1 -0
  158. package/dist/product-content/product-content.module.d.ts +3 -0
  159. package/dist/product-content/product-content.module.d.ts.map +1 -0
  160. package/dist/product-content/product-content.module.js +27 -0
  161. package/dist/product-content/product-content.module.js.map +1 -0
  162. package/dist/product-content/product-content.resolver.d.ts +20 -0
  163. package/dist/product-content/product-content.resolver.d.ts.map +1 -0
  164. package/dist/product-content/product-content.resolver.js +44 -0
  165. package/dist/product-content/product-content.resolver.js.map +1 -0
  166. package/dist/product-content/product-content.service.d.ts +40 -0
  167. package/dist/product-content/product-content.service.d.ts.map +1 -0
  168. package/dist/product-content/product-content.service.js +239 -0
  169. package/dist/product-content/product-content.service.js.map +1 -0
  170. package/dist/product-content/types/common.types.d.ts +85 -0
  171. package/dist/product-content/types/common.types.d.ts.map +1 -0
  172. package/dist/product-content/types/common.types.js +384 -0
  173. package/dist/product-content/types/common.types.js.map +1 -0
  174. package/dist/product-content/types/index.d.ts +3 -0
  175. package/dist/product-content/types/index.d.ts.map +1 -0
  176. package/dist/product-content/types/index.js +6 -0
  177. package/dist/product-content/types/index.js.map +1 -0
  178. package/dist/product-content/types/response.types.d.ts +10 -0
  179. package/dist/product-content/types/response.types.d.ts.map +1 -0
  180. package/dist/product-content/types/response.types.js +39 -0
  181. package/dist/product-content/types/response.types.js.map +1 -0
  182. package/dist/serviceability/index.d.ts +5 -0
  183. package/dist/serviceability/index.d.ts.map +1 -0
  184. package/dist/serviceability/index.js +8 -0
  185. package/dist/serviceability/index.js.map +1 -0
  186. package/dist/serviceability/serviceability.module.d.ts +3 -0
  187. package/dist/serviceability/serviceability.module.d.ts.map +1 -0
  188. package/dist/serviceability/serviceability.module.js +18 -0
  189. package/dist/serviceability/serviceability.module.js.map +1 -0
  190. package/dist/serviceability/serviceability.resolver.d.ts +19 -0
  191. package/dist/serviceability/serviceability.resolver.d.ts.map +1 -0
  192. package/dist/serviceability/serviceability.resolver.js +40 -0
  193. package/dist/serviceability/serviceability.resolver.js.map +1 -0
  194. package/dist/serviceability/serviceability.service.d.ts +42 -0
  195. package/dist/serviceability/serviceability.service.d.ts.map +1 -0
  196. package/dist/serviceability/serviceability.service.js +169 -0
  197. package/dist/serviceability/serviceability.service.js.map +1 -0
  198. package/dist/serviceability/serviceability.types.d.ts +42 -0
  199. package/dist/serviceability/serviceability.types.d.ts.map +1 -0
  200. package/dist/serviceability/serviceability.types.js +184 -0
  201. package/dist/serviceability/serviceability.types.js.map +1 -0
  202. package/package.json +67 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection.service.js","sourceRoot":"","sources":["../../src/collection/collection.service.ts"],"names":[],"mappings":";;;;AAAA,2CAA4C;AAC5C,wCAQuB;AAIhB,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAET;IACA;IACA;IAHnB,YACmB,KAAmB,EACnB,aAA4B,EAC5B,kBAAsC;QAFtC,UAAK,GAAL,KAAK,CAAc;QACnB,kBAAa,GAAb,aAAa,CAAe;QAC5B,uBAAkB,GAAlB,kBAAkB,CAAoB;IACtD,CAAC;IAEI,kBAAkB,CAAC,KAAa;QACtC,MAAM,QAAQ,GAAG,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;QAChE,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,MAAM,IAAI,KAAK,CACb,kDAAkD,KAAK,EAAE,CAC1D,CAAC;QACJ,CAAC;QACD,OAAO,QAAuC,CAAC;IACjD,CAAC;IAED,KAAK,CAAC,cAAc,CAClB,KAAa,EACb,SAA6B,EAAE;QAE/B,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;QACjC,MAAM,QAAQ,GAAG,GAAG,KAAK,gBAAgB,KAAK,EAAE,CAAC;QAEjD,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,CAAuB,QAAQ,CAAC,CAAC;QAEpE,IAAI,MAAM,EAAE,CAAC;YACX,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;gBACnB,IAAI,CAAC,8BAA8B,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;YAC/D,CAAC;YACD,OAAO,MAAM,CAAC,IA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aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACrD,MAAM,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;YACjE,aAAM,CAAC,IAAI,CAAC,4BAA4B,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;QAClE,CAAC;IACH,CAAC;IAEO,aAAa,CACnB,UAAkD;QAElD,OAAO;YACL,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBACrC,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC;gBACnC,MAAM,EAAE,IAAI,CAAC,MAAM;aACpB,CAAC,CAAC;YACH,QAAQ,EAAE,UAAU,CAAC,QAAQ;SAC9B,CAAC;IACJ,CAAC;IAEO,aAAa,CAAC,QAA4B;QAChD,OAAO;YACL,EAAE,EAAE,QAAQ,CAAC,EAAE;YACf,MAAM,EAAE,QAAQ,CAAC,MAAM;YACvB,KAAK,EAAE,QAAQ,CAAC,KAAK;YACrB,WAAW,EAAE,QAAQ,CAAC,WAAW;YACjC,KAAK,EAAE,QAAQ,CAAC,KAAK;YACrB,cAAc,EAAE,QAAQ,CAAC,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;SACtE,CAAC;IACJ,CAAC;CACF,CAAA;AAvLY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;6CAGe,mBAAY;QACJ,oBAAa;QACR,yBAAkB;GAJ9C,iBAAiB,CAuL7B"}
@@ -0,0 +1,18 @@
1
+ import { Image, PageInfo } from '../product/product.types';
2
+ export declare class Collection {
3
+ id: string;
4
+ handle: string;
5
+ title: string;
6
+ description: string;
7
+ image: Image | null;
8
+ productHandles?: string[];
9
+ }
10
+ export declare class CollectionEdge {
11
+ node: Collection;
12
+ cursor: string;
13
+ }
14
+ export declare class CollectionConnection {
15
+ edges: CollectionEdge[];
16
+ pageInfo: PageInfo;
17
+ }
18
+ //# sourceMappingURL=collection.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection.types.d.ts","sourceRoot":"","sources":["../../src/collection/collection.types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAE3D,qBACa,UAAU;IAErB,EAAE,EAAE,MAAM,CAAC;IAGX,MAAM,EAAE,MAAM,CAAC;IAGf,KAAK,EAAE,MAAM,CAAC;IAGd,WAAW,EAAE,MAAM,CAAC;IAGpB,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IAGpB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED,qBACa,cAAc;IAEzB,IAAI,EAAE,UAAU,CAAC;IAGjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,qBACa,oBAAoB;IAE/B,KAAK,EAAE,cAAc,EAAE,CAAC;IAGxB,QAAQ,EAAE,QAAQ,CAAC;CACpB"}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CollectionConnection = exports.CollectionEdge = exports.Collection = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const graphql_1 = require("@nestjs/graphql");
6
+ const product_types_1 = require("../product/product.types");
7
+ let Collection = class Collection {
8
+ id;
9
+ handle;
10
+ title;
11
+ description;
12
+ image;
13
+ productHandles;
14
+ };
15
+ exports.Collection = Collection;
16
+ tslib_1.__decorate([
17
+ (0, graphql_1.Field)(() => graphql_1.ID),
18
+ tslib_1.__metadata("design:type", String)
19
+ ], Collection.prototype, "id", void 0);
20
+ tslib_1.__decorate([
21
+ (0, graphql_1.Field)(),
22
+ tslib_1.__metadata("design:type", String)
23
+ ], Collection.prototype, "handle", void 0);
24
+ tslib_1.__decorate([
25
+ (0, graphql_1.Field)(),
26
+ tslib_1.__metadata("design:type", String)
27
+ ], Collection.prototype, "title", void 0);
28
+ tslib_1.__decorate([
29
+ (0, graphql_1.Field)(),
30
+ tslib_1.__metadata("design:type", String)
31
+ ], Collection.prototype, "description", void 0);
32
+ tslib_1.__decorate([
33
+ (0, graphql_1.Field)(() => product_types_1.Image, { nullable: true }),
34
+ tslib_1.__metadata("design:type", Object)
35
+ ], Collection.prototype, "image", void 0);
36
+ tslib_1.__decorate([
37
+ (0, graphql_1.Field)(() => [String], { nullable: true }),
38
+ tslib_1.__metadata("design:type", Array)
39
+ ], Collection.prototype, "productHandles", void 0);
40
+ exports.Collection = Collection = tslib_1.__decorate([
41
+ (0, graphql_1.ObjectType)()
42
+ ], Collection);
43
+ let CollectionEdge = class CollectionEdge {
44
+ node;
45
+ cursor;
46
+ };
47
+ exports.CollectionEdge = CollectionEdge;
48
+ tslib_1.__decorate([
49
+ (0, graphql_1.Field)(() => Collection),
50
+ tslib_1.__metadata("design:type", Collection)
51
+ ], CollectionEdge.prototype, "node", void 0);
52
+ tslib_1.__decorate([
53
+ (0, graphql_1.Field)(),
54
+ tslib_1.__metadata("design:type", String)
55
+ ], CollectionEdge.prototype, "cursor", void 0);
56
+ exports.CollectionEdge = CollectionEdge = tslib_1.__decorate([
57
+ (0, graphql_1.ObjectType)()
58
+ ], CollectionEdge);
59
+ let CollectionConnection = class CollectionConnection {
60
+ edges;
61
+ pageInfo;
62
+ };
63
+ exports.CollectionConnection = CollectionConnection;
64
+ tslib_1.__decorate([
65
+ (0, graphql_1.Field)(() => [CollectionEdge]),
66
+ tslib_1.__metadata("design:type", Array)
67
+ ], CollectionConnection.prototype, "edges", void 0);
68
+ tslib_1.__decorate([
69
+ (0, graphql_1.Field)(() => product_types_1.PageInfo),
70
+ tslib_1.__metadata("design:type", product_types_1.PageInfo)
71
+ ], CollectionConnection.prototype, "pageInfo", void 0);
72
+ exports.CollectionConnection = CollectionConnection = tslib_1.__decorate([
73
+ (0, graphql_1.ObjectType)()
74
+ ], CollectionConnection);
75
+ //# sourceMappingURL=collection.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection.types.js","sourceRoot":"","sources":["../../src/collection/collection.types.ts"],"names":[],"mappings":";;;;AAAA,6CAAwD;AACxD,4DAA2D;AAGpD,IAAM,UAAU,GAAhB,MAAM,UAAU;IAErB,EAAE,CAAS;IAGX,MAAM,CAAS;IAGf,KAAK,CAAS;IAGd,WAAW,CAAS;IAGpB,KAAK,CAAe;IAGpB,cAAc,CAAY;CAC3B,CAAA;AAlBY,gCAAU;AAErB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;sCACL;AAGX;IADC,IAAA,eAAK,GAAE;;0CACO;AAGf;IADC,IAAA,eAAK,GAAE;;yCACM;AAGd;IADC,IAAA,eAAK,GAAE;;+CACY;AAGpB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,qBAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACnB;AAGpB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDAChB;qBAjBf,UAAU;IADtB,IAAA,oBAAU,GAAE;GACA,UAAU,CAkBtB;AAGM,IAAM,cAAc,GAApB,MAAM,cAAc;IAEzB,IAAI,CAAa;IAGjB,MAAM,CAAS;CAChB,CAAA;AANY,wCAAc;AAEzB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,UAAU,CAAC;sCAClB,UAAU;4CAAC;AAGjB;IADC,IAAA,eAAK,GAAE;;8CACO;yBALJ,cAAc;IAD1B,IAAA,oBAAU,GAAE;GACA,cAAc,CAM1B;AAGM,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAE/B,KAAK,CAAmB;IAGxB,QAAQ,CAAW;CACpB,CAAA;AANY,oDAAoB;AAE/B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,cAAc,CAAC,CAAC;;mDACN;AAGxB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wBAAQ,CAAC;sCACZ,wBAAQ;sDAAC;+BALR,oBAAoB;IADhC,IAAA,oBAAU,GAAE;GACA,oBAAoB,CAMhC"}
@@ -0,0 +1,5 @@
1
+ export * from './collection.module';
2
+ export * from './collection.resolver';
3
+ export * from './collection.service';
4
+ export * from './collection.types';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/collection/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./collection.module"), exports);
5
+ tslib_1.__exportStar(require("./collection.resolver"), exports);
6
+ tslib_1.__exportStar(require("./collection.service"), exports);
7
+ tslib_1.__exportStar(require("./collection.types"), exports);
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/collection/index.ts"],"names":[],"mappings":";;;AAAA,8DAAoC;AACpC,gEAAsC;AACtC,+DAAqC;AACrC,6DAAmC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Common GraphQL utilities
3
+ *
4
+ * Shared types and utilities for GraphQL modules.
5
+ */
6
+ export { PageInfo } from '../product/product.types';
7
+ export { Image, Money, SelectedOption } from '../product/product.types';
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ /**
3
+ * Common GraphQL utilities
4
+ *
5
+ * Shared types and utilities for GraphQL modules.
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.SelectedOption = exports.Money = exports.Image = exports.PageInfo = void 0;
9
+ // Re-export common types from modules for convenience
10
+ var product_types_1 = require("../product/product.types");
11
+ Object.defineProperty(exports, "PageInfo", { enumerable: true, get: function () { return product_types_1.PageInfo; } });
12
+ var product_types_2 = require("../product/product.types");
13
+ Object.defineProperty(exports, "Image", { enumerable: true, get: function () { return product_types_2.Image; } });
14
+ Object.defineProperty(exports, "Money", { enumerable: true, get: function () { return product_types_2.Money; } });
15
+ Object.defineProperty(exports, "SelectedOption", { enumerable: true, get: function () { return product_types_2.SelectedOption; } });
16
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,sDAAsD;AACtD,0DAAoD;AAA3C,yGAAA,QAAQ,OAAA;AACjB,0DAAwE;AAA/D,sGAAA,KAAK,OAAA;AAAE,sGAAA,KAAK,OAAA;AAAE,+GAAA,cAAc,OAAA"}
@@ -0,0 +1,3 @@
1
+ export declare class GraphqlModule {
2
+ }
3
+ //# sourceMappingURL=graphql.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphql.module.d.ts","sourceRoot":"","sources":["../src/graphql.module.ts"],"names":[],"mappings":"AAmBA,qBAwBa,aAAa;CAAG"}
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GraphqlModule = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const common_1 = require("@nestjs/common");
6
+ const graphql_1 = require("@nestjs/graphql");
7
+ const apollo_1 = require("@nestjs/apollo");
8
+ const path_1 = require("path");
9
+ const product_module_1 = require("./product/product.module");
10
+ const collection_module_1 = require("./collection/collection.module");
11
+ const cart_module_1 = require("./cart/cart.module");
12
+ const cms_module_1 = require("./cms/cms.module");
13
+ const page_content_module_1 = require("./page-content/page-content.module");
14
+ const product_content_module_1 = require("./product-content/product-content.module");
15
+ const header_module_1 = require("./header/header.module");
16
+ const serviceability_module_1 = require("./serviceability/serviceability.module");
17
+ let GraphqlModule = class GraphqlModule {
18
+ };
19
+ exports.GraphqlModule = GraphqlModule;
20
+ exports.GraphqlModule = GraphqlModule = tslib_1.__decorate([
21
+ (0, common_1.Module)({
22
+ imports: [
23
+ graphql_1.GraphQLModule.forRoot({
24
+ driver: apollo_1.ApolloDriver,
25
+ autoSchemaFile: (0, path_1.join)(process.cwd(), 'src/schema.gql'),
26
+ sortSchema: true,
27
+ playground: true,
28
+ introspection: true,
29
+ context: ({ req }) => ({
30
+ req,
31
+ brand: req.brand,
32
+ brandConfig: req.brandConfig,
33
+ }),
34
+ }),
35
+ product_module_1.ProductModule,
36
+ collection_module_1.CollectionModule,
37
+ cart_module_1.CartModule,
38
+ cms_module_1.CmsModule,
39
+ page_content_module_1.PageContentModule,
40
+ product_content_module_1.ProductContentModule,
41
+ header_module_1.HeaderModule,
42
+ serviceability_module_1.ServiceabilityModule,
43
+ ],
44
+ })
45
+ ], GraphqlModule);
46
+ //# sourceMappingURL=graphql.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graphql.module.js","sourceRoot":"","sources":["../src/graphql.module.ts"],"names":[],"mappings":";;;;AAAA,2CAAwC;AACxC,6CAAgD;AAChD,2CAAkE;AAClE,+BAA4B;AAE5B,6DAAyD;AACzD,sEAAkE;AAClE,oDAAgD;AAChD,iDAA6C;AAC7C,4EAAuE;AACvE,qFAAgF;AAChF,0DAAsD;AACtD,kFAA8E;AA+BvE,IAAM,aAAa,GAAnB,MAAM,aAAa;CAAG,CAAA;AAAhB,sCAAa;wBAAb,aAAa;IAxBzB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,OAAO,CAAqB;gBACxC,MAAM,EAAE,qBAAY;gBACpB,cAAc,EAAE,IAAA,WAAI,EAAC,OAAO,CAAC,GAAG,EAAE,EAAE,gBAAgB,CAAC;gBACrD,UAAU,EAAE,IAAI;gBAChB,UAAU,EAAE,IAAI;gBAChB,aAAa,EAAE,IAAI;gBACnB,OAAO,EAAE,CAAC,EAAE,GAAG,EAA6B,EAAE,EAAE,CAAC,CAAC;oBAChD,GAAG;oBACH,KAAK,EAAE,GAAG,CAAC,KAAK;oBAChB,WAAW,EAAE,GAAG,CAAC,WAAW;iBAC7B,CAAC;aACH,CAAC;YACF,8BAAa;YACb,oCAAgB;YAChB,wBAAU;YACV,sBAAS;YACT,uCAAiB;YACjB,6CAAoB;YACpB,4BAAY;YACZ,4CAAoB;SACrB;KACF,CAAC;GACW,aAAa,CAAG"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * HeaderModule
3
+ *
4
+ * Note: This module depends on HeaderContentService which should be provided
5
+ * via ThemeModule.forRoot() in the root application module.
6
+ */
7
+ export declare class HeaderModule {
8
+ }
9
+ //# sourceMappingURL=header.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header.module.d.ts","sourceRoot":"","sources":["../../src/header/header.module.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,qBAGa,YAAY;CAAG"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HeaderModule = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const common_1 = require("@nestjs/common");
6
+ const header_resolver_1 = require("./header.resolver");
7
+ /**
8
+ * HeaderModule
9
+ *
10
+ * Note: This module depends on HeaderContentService which should be provided
11
+ * via ThemeModule.forRoot() in the root application module.
12
+ */
13
+ let HeaderModule = class HeaderModule {
14
+ };
15
+ exports.HeaderModule = HeaderModule;
16
+ exports.HeaderModule = HeaderModule = tslib_1.__decorate([
17
+ (0, common_1.Module)({
18
+ providers: [header_resolver_1.HeaderResolver],
19
+ })
20
+ ], HeaderModule);
21
+ //# sourceMappingURL=header.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header.module.js","sourceRoot":"","sources":["../../src/header/header.module.ts"],"names":[],"mappings":";;;;AAAA,2CAAwC;AACxC,uDAAmD;AAEnD;;;;;GAKG;AAII,IAAM,YAAY,GAAlB,MAAM,YAAY;CAAG,CAAA;AAAf,oCAAY;uBAAZ,YAAY;IAHxB,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,gCAAc,CAAC;KAC5B,CAAC;GACW,YAAY,CAAG"}
@@ -0,0 +1,18 @@
1
+ import { HeaderContentService } from '@pvh-afl/core';
2
+ import { HeaderContentResponse } from './types';
3
+ interface GqlContext {
4
+ req: {
5
+ brand: string;
6
+ };
7
+ }
8
+ export declare class HeaderResolver {
9
+ private readonly headerContentService;
10
+ constructor(headerContentService: HeaderContentService);
11
+ /**
12
+ * Get header content (menu + settings) with stale-while-revalidate caching.
13
+ * @param menuHandle - Optional menu handle (defaults to "main-menu")
14
+ */
15
+ header(ctx: GqlContext, menuHandle?: string): Promise<HeaderContentResponse>;
16
+ }
17
+ export {};
18
+ //# sourceMappingURL=header.resolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header.resolver.d.ts","sourceRoot":"","sources":["../../src/header/header.resolver.ts"],"names":[],"mappings":"AAEA,OAAO,EAAe,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAEhD,UAAU,UAAU;IAClB,GAAG,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CACxB;AAED,qBAEa,cAAc;IACb,OAAO,CAAC,QAAQ,CAAC,oBAAoB;gBAApB,oBAAoB,EAAE,oBAAoB;IAEvE;;;OAGG;IAIG,MAAM,CACC,GAAG,EAAE,UAAU,EAM1B,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,qBAAqB,CAAC;CAGlC"}
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HeaderResolver = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const graphql_1 = require("@nestjs/graphql");
6
+ const common_1 = require("@nestjs/common");
7
+ const core_1 = require("@pvh-afl/core");
8
+ const types_1 = require("./types");
9
+ let HeaderResolver = class HeaderResolver {
10
+ headerContentService;
11
+ constructor(headerContentService) {
12
+ this.headerContentService = headerContentService;
13
+ }
14
+ /**
15
+ * Get header content (menu + settings) with stale-while-revalidate caching.
16
+ * @param menuHandle - Optional menu handle (defaults to "main-menu")
17
+ */
18
+ async header(ctx, menuHandle) {
19
+ return this.headerContentService.getHeaderContent(ctx.req.brand, menuHandle);
20
+ }
21
+ };
22
+ exports.HeaderResolver = HeaderResolver;
23
+ tslib_1.__decorate([
24
+ (0, graphql_1.Query)(() => types_1.HeaderContentResponse, {
25
+ description: 'Get header content including menu and settings',
26
+ }),
27
+ tslib_1.__param(0, (0, graphql_1.Context)()),
28
+ tslib_1.__param(1, (0, graphql_1.Args)('menuHandle', {
29
+ type: () => String,
30
+ nullable: true,
31
+ description: 'Menu handle (defaults to "main-menu")',
32
+ })),
33
+ tslib_1.__metadata("design:type", Function),
34
+ tslib_1.__metadata("design:paramtypes", [Object, String]),
35
+ tslib_1.__metadata("design:returntype", Promise)
36
+ ], HeaderResolver.prototype, "header", null);
37
+ exports.HeaderResolver = HeaderResolver = tslib_1.__decorate([
38
+ (0, graphql_1.Resolver)(),
39
+ (0, common_1.UseGuards)(core_1.TenantGuard),
40
+ tslib_1.__metadata("design:paramtypes", [core_1.HeaderContentService])
41
+ ], HeaderResolver);
42
+ //# sourceMappingURL=header.resolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header.resolver.js","sourceRoot":"","sources":["../../src/header/header.resolver.ts"],"names":[],"mappings":";;;;AAAA,6CAAiE;AACjE,2CAA2C;AAC3C,wCAAkE;AAClE,mCAAgD;AAQzC,IAAM,cAAc,GAApB,MAAM,cAAc;IACI;IAA7B,YAA6B,oBAA0C;QAA1C,yBAAoB,GAApB,oBAAoB,CAAsB;IAAG,CAAC;IAE3E;;;OAGG;IAIG,AAAN,KAAK,CAAC,MAAM,CACC,GAAe,EAM1B,UAAmB;QAEnB,OAAO,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IAC/E,CAAC;CACF,CAAA;AArBY,wCAAc;AAUnB;IAHL,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,6BAAqB,EAAE;QAClC,WAAW,EAAE,gDAAgD;KAC9D,CAAC;IAEC,mBAAA,IAAA,iBAAO,GAAE,CAAA;IACT,mBAAA,IAAA,cAAI,EAAC,YAAY,EAAE;QAClB,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM;QAClB,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,uCAAuC;KACrD,CAAC,CAAA;;;;4CAIH;yBApBU,cAAc;IAF1B,IAAA,kBAAQ,GAAE;IACV,IAAA,kBAAS,EAAC,kBAAW,CAAC;6CAE8B,2BAAoB;GAD5D,cAAc,CAqB1B"}
@@ -0,0 +1,4 @@
1
+ export * from './header.module';
2
+ export * from './header.resolver';
3
+ export * from './types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/header/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./header.module"), exports);
5
+ tslib_1.__exportStar(require("./header.resolver"), exports);
6
+ tslib_1.__exportStar(require("./types"), exports);
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/header/index.ts"],"names":[],"mappings":";;;AAAA,0DAAgC;AAChC,4DAAkC;AAClC,kDAAwB"}
@@ -0,0 +1,36 @@
1
+ export declare class PromoCardImage {
2
+ url: string;
3
+ altText: string | null;
4
+ width: number;
5
+ height: number;
6
+ }
7
+ export declare class PromoCard {
8
+ title: string;
9
+ link: string;
10
+ image?: PromoCardImage;
11
+ }
12
+ export declare class MegaMenuPromo {
13
+ categoryTitle?: string;
14
+ cards: PromoCard[];
15
+ }
16
+ export declare class MegaMenu {
17
+ promos: MegaMenuPromo[];
18
+ }
19
+ export declare class HeaderMenuItem {
20
+ title: string;
21
+ url: string;
22
+ type: string;
23
+ resourceId: string | null;
24
+ sections?: string[];
25
+ megaMenu?: MegaMenu;
26
+ items?: HeaderMenuItem[];
27
+ }
28
+ export declare class HeaderMenu {
29
+ handle: string;
30
+ items: HeaderMenuItem[];
31
+ }
32
+ export declare class HeaderContent {
33
+ headerSettings: Record<string, unknown>;
34
+ menu: HeaderMenu;
35
+ }
36
+ //# sourceMappingURL=header.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header.types.d.ts","sourceRoot":"","sources":["../../../src/header/types/header.types.ts"],"names":[],"mappings":"AAGA,qBACa,cAAc;IAEzB,GAAG,EAAE,MAAM,CAAC;IAGZ,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAGvB,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,qBACa,SAAS;IAEpB,KAAK,EAAE,MAAM,CAAC;IAGd,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB;AAED,qBACa,aAAa;IAExB,aAAa,CAAC,EAAE,MAAM,CAAC;IAGvB,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB;AAED,qBACa,QAAQ;IAEnB,MAAM,EAAE,aAAa,EAAE,CAAC;CACzB;AAED,qBACa,cAAc;IAEzB,KAAK,EAAE,MAAM,CAAC;IAGd,GAAG,EAAE,MAAM,CAAC;IAGZ,IAAI,EAAE,MAAM,CAAC;IAGb,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAG1B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAGpB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAGpB,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;CAC1B;AAED,qBACa,UAAU;IAErB,MAAM,EAAE,MAAM,CAAC;IAGf,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB;AAED,qBACa,aAAa;IAExB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAGxC,IAAI,EAAE,UAAU,CAAC;CAClB"}
@@ -0,0 +1,154 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HeaderContent = exports.HeaderMenu = exports.HeaderMenuItem = exports.MegaMenu = exports.MegaMenuPromo = exports.PromoCard = exports.PromoCardImage = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const graphql_1 = require("@nestjs/graphql");
6
+ const graphql_type_json_1 = tslib_1.__importDefault(require("graphql-type-json"));
7
+ let PromoCardImage = class PromoCardImage {
8
+ url;
9
+ altText;
10
+ width;
11
+ height;
12
+ };
13
+ exports.PromoCardImage = PromoCardImage;
14
+ tslib_1.__decorate([
15
+ (0, graphql_1.Field)(),
16
+ tslib_1.__metadata("design:type", String)
17
+ ], PromoCardImage.prototype, "url", void 0);
18
+ tslib_1.__decorate([
19
+ (0, graphql_1.Field)(() => String, { nullable: true }),
20
+ tslib_1.__metadata("design:type", Object)
21
+ ], PromoCardImage.prototype, "altText", void 0);
22
+ tslib_1.__decorate([
23
+ (0, graphql_1.Field)(),
24
+ tslib_1.__metadata("design:type", Number)
25
+ ], PromoCardImage.prototype, "width", void 0);
26
+ tslib_1.__decorate([
27
+ (0, graphql_1.Field)(),
28
+ tslib_1.__metadata("design:type", Number)
29
+ ], PromoCardImage.prototype, "height", void 0);
30
+ exports.PromoCardImage = PromoCardImage = tslib_1.__decorate([
31
+ (0, graphql_1.ObjectType)()
32
+ ], PromoCardImage);
33
+ let PromoCard = class PromoCard {
34
+ title;
35
+ link;
36
+ image;
37
+ };
38
+ exports.PromoCard = PromoCard;
39
+ tslib_1.__decorate([
40
+ (0, graphql_1.Field)(),
41
+ tslib_1.__metadata("design:type", String)
42
+ ], PromoCard.prototype, "title", void 0);
43
+ tslib_1.__decorate([
44
+ (0, graphql_1.Field)(),
45
+ tslib_1.__metadata("design:type", String)
46
+ ], PromoCard.prototype, "link", void 0);
47
+ tslib_1.__decorate([
48
+ (0, graphql_1.Field)(() => PromoCardImage, { nullable: true }),
49
+ tslib_1.__metadata("design:type", PromoCardImage)
50
+ ], PromoCard.prototype, "image", void 0);
51
+ exports.PromoCard = PromoCard = tslib_1.__decorate([
52
+ (0, graphql_1.ObjectType)()
53
+ ], PromoCard);
54
+ let MegaMenuPromo = class MegaMenuPromo {
55
+ categoryTitle;
56
+ cards;
57
+ };
58
+ exports.MegaMenuPromo = MegaMenuPromo;
59
+ tslib_1.__decorate([
60
+ (0, graphql_1.Field)(() => String, { nullable: true }),
61
+ tslib_1.__metadata("design:type", String)
62
+ ], MegaMenuPromo.prototype, "categoryTitle", void 0);
63
+ tslib_1.__decorate([
64
+ (0, graphql_1.Field)(() => [PromoCard]),
65
+ tslib_1.__metadata("design:type", Array)
66
+ ], MegaMenuPromo.prototype, "cards", void 0);
67
+ exports.MegaMenuPromo = MegaMenuPromo = tslib_1.__decorate([
68
+ (0, graphql_1.ObjectType)()
69
+ ], MegaMenuPromo);
70
+ let MegaMenu = class MegaMenu {
71
+ promos;
72
+ };
73
+ exports.MegaMenu = MegaMenu;
74
+ tslib_1.__decorate([
75
+ (0, graphql_1.Field)(() => [MegaMenuPromo]),
76
+ tslib_1.__metadata("design:type", Array)
77
+ ], MegaMenu.prototype, "promos", void 0);
78
+ exports.MegaMenu = MegaMenu = tslib_1.__decorate([
79
+ (0, graphql_1.ObjectType)()
80
+ ], MegaMenu);
81
+ let HeaderMenuItem = class HeaderMenuItem {
82
+ title;
83
+ url;
84
+ type;
85
+ resourceId;
86
+ sections;
87
+ megaMenu;
88
+ items;
89
+ };
90
+ exports.HeaderMenuItem = HeaderMenuItem;
91
+ tslib_1.__decorate([
92
+ (0, graphql_1.Field)(),
93
+ tslib_1.__metadata("design:type", String)
94
+ ], HeaderMenuItem.prototype, "title", void 0);
95
+ tslib_1.__decorate([
96
+ (0, graphql_1.Field)(),
97
+ tslib_1.__metadata("design:type", String)
98
+ ], HeaderMenuItem.prototype, "url", void 0);
99
+ tslib_1.__decorate([
100
+ (0, graphql_1.Field)(),
101
+ tslib_1.__metadata("design:type", String)
102
+ ], HeaderMenuItem.prototype, "type", void 0);
103
+ tslib_1.__decorate([
104
+ (0, graphql_1.Field)(() => String, { nullable: true }),
105
+ tslib_1.__metadata("design:type", Object)
106
+ ], HeaderMenuItem.prototype, "resourceId", void 0);
107
+ tslib_1.__decorate([
108
+ (0, graphql_1.Field)(() => [String], { nullable: true }),
109
+ tslib_1.__metadata("design:type", Array)
110
+ ], HeaderMenuItem.prototype, "sections", void 0);
111
+ tslib_1.__decorate([
112
+ (0, graphql_1.Field)(() => MegaMenu, { nullable: true }),
113
+ tslib_1.__metadata("design:type", MegaMenu)
114
+ ], HeaderMenuItem.prototype, "megaMenu", void 0);
115
+ tslib_1.__decorate([
116
+ (0, graphql_1.Field)(() => [HeaderMenuItem], { nullable: true }),
117
+ tslib_1.__metadata("design:type", Array)
118
+ ], HeaderMenuItem.prototype, "items", void 0);
119
+ exports.HeaderMenuItem = HeaderMenuItem = tslib_1.__decorate([
120
+ (0, graphql_1.ObjectType)()
121
+ ], HeaderMenuItem);
122
+ let HeaderMenu = class HeaderMenu {
123
+ handle;
124
+ items;
125
+ };
126
+ exports.HeaderMenu = HeaderMenu;
127
+ tslib_1.__decorate([
128
+ (0, graphql_1.Field)(),
129
+ tslib_1.__metadata("design:type", String)
130
+ ], HeaderMenu.prototype, "handle", void 0);
131
+ tslib_1.__decorate([
132
+ (0, graphql_1.Field)(() => [HeaderMenuItem]),
133
+ tslib_1.__metadata("design:type", Array)
134
+ ], HeaderMenu.prototype, "items", void 0);
135
+ exports.HeaderMenu = HeaderMenu = tslib_1.__decorate([
136
+ (0, graphql_1.ObjectType)()
137
+ ], HeaderMenu);
138
+ let HeaderContent = class HeaderContent {
139
+ headerSettings;
140
+ menu;
141
+ };
142
+ exports.HeaderContent = HeaderContent;
143
+ tslib_1.__decorate([
144
+ (0, graphql_1.Field)(() => graphql_type_json_1.default),
145
+ tslib_1.__metadata("design:type", Object)
146
+ ], HeaderContent.prototype, "headerSettings", void 0);
147
+ tslib_1.__decorate([
148
+ (0, graphql_1.Field)(() => HeaderMenu),
149
+ tslib_1.__metadata("design:type", HeaderMenu)
150
+ ], HeaderContent.prototype, "menu", void 0);
151
+ exports.HeaderContent = HeaderContent = tslib_1.__decorate([
152
+ (0, graphql_1.ObjectType)()
153
+ ], HeaderContent);
154
+ //# sourceMappingURL=header.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header.types.js","sourceRoot":"","sources":["../../../src/header/types/header.types.ts"],"names":[],"mappings":";;;;AAAA,6CAAoD;AACpD,kFAA4C;AAGrC,IAAM,cAAc,GAApB,MAAM,cAAc;IAEzB,GAAG,CAAS;IAGZ,OAAO,CAAgB;IAGvB,KAAK,CAAS;IAGd,MAAM,CAAS;CAChB,CAAA;AAZY,wCAAc;AAEzB;IADC,IAAA,eAAK,GAAE;;2CACI;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACjB;AAGvB;IADC,IAAA,eA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export * from './header.types';
2
+ export * from './response.types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/header/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./header.types"), exports);
5
+ tslib_1.__exportStar(require("./response.types"), exports);
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/header/types/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B;AAC/B,2DAAiC"}
@@ -0,0 +1,13 @@
1
+ import { HeaderContent } from './header.types';
2
+ export declare class HeaderError {
3
+ code: string;
4
+ message: string;
5
+ }
6
+ export declare class HeaderContentResponse {
7
+ success: boolean;
8
+ data?: HeaderContent;
9
+ error?: HeaderError;
10
+ isStale: boolean;
11
+ triggeredRefresh: boolean;
12
+ }
13
+ //# sourceMappingURL=response.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.types.d.ts","sourceRoot":"","sources":["../../../src/header/types/response.types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,qBACa,WAAW;IAEtB,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBACa,qBAAqB;IAEhC,OAAO,EAAE,OAAO,CAAC;IAGjB,IAAI,CAAC,EAAE,aAAa,CAAC;IAGrB,KAAK,CAAC,EAAE,WAAW,CAAC;IAGpB,OAAO,EAAE,OAAO,CAAC;IAGjB,gBAAgB,EAAE,OAAO,CAAC;CAC3B"}