@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.
- package/README.md +135 -0
- package/dist/cart/cart.hooks.d.ts +66 -0
- package/dist/cart/cart.hooks.d.ts.map +1 -0
- package/dist/cart/cart.hooks.js +12 -0
- package/dist/cart/cart.hooks.js.map +1 -0
- package/dist/cart/cart.module.d.ts +25 -0
- package/dist/cart/cart.module.d.ts.map +1 -0
- package/dist/cart/cart.module.js +44 -0
- package/dist/cart/cart.module.js.map +1 -0
- package/dist/cart/cart.resolver.d.ts +23 -0
- package/dist/cart/cart.resolver.d.ts.map +1 -0
- package/dist/cart/cart.resolver.js +153 -0
- package/dist/cart/cart.resolver.js.map +1 -0
- package/dist/cart/cart.service.d.ts +31 -0
- package/dist/cart/cart.service.d.ts.map +1 -0
- package/dist/cart/cart.service.js +305 -0
- package/dist/cart/cart.service.js.map +1 -0
- package/dist/cart/cart.types.d.ts +144 -0
- package/dist/cart/cart.types.d.ts.map +1 -0
- package/dist/cart/cart.types.js +629 -0
- package/dist/cart/cart.types.js.map +1 -0
- package/dist/cart/index.d.ts +6 -0
- package/dist/cart/index.d.ts.map +1 -0
- package/dist/cart/index.js +9 -0
- package/dist/cart/index.js.map +1 -0
- package/dist/cms/cms.module.d.ts +3 -0
- package/dist/cms/cms.module.d.ts.map +1 -0
- package/dist/cms/cms.module.js +18 -0
- package/dist/cms/cms.module.js.map +1 -0
- package/dist/cms/cms.resolver.d.ts +15 -0
- package/dist/cms/cms.resolver.d.ts.map +1 -0
- package/dist/cms/cms.resolver.js +44 -0
- package/dist/cms/cms.resolver.js.map +1 -0
- package/dist/cms/cms.service.d.ts +14 -0
- package/dist/cms/cms.service.d.ts.map +1 -0
- package/dist/cms/cms.service.js +111 -0
- package/dist/cms/cms.service.js.map +1 -0
- package/dist/cms/cms.types.d.ts +20 -0
- package/dist/cms/cms.types.d.ts.map +1 -0
- package/dist/cms/cms.types.js +89 -0
- package/dist/cms/cms.types.js.map +1 -0
- package/dist/cms/index.d.ts +5 -0
- package/dist/cms/index.d.ts.map +1 -0
- package/dist/cms/index.js +8 -0
- package/dist/cms/index.js.map +1 -0
- package/dist/collection/collection.module.d.ts +3 -0
- package/dist/collection/collection.module.d.ts.map +1 -0
- package/dist/collection/collection.module.js +19 -0
- package/dist/collection/collection.module.js.map +1 -0
- package/dist/collection/collection.resolver.d.ts +15 -0
- package/dist/collection/collection.resolver.d.ts.map +1 -0
- package/dist/collection/collection.resolver.js +45 -0
- package/dist/collection/collection.resolver.js.map +1 -0
- package/dist/collection/collection.service.d.ts +19 -0
- package/dist/collection/collection.service.d.ts.map +1 -0
- package/dist/collection/collection.service.js +132 -0
- package/dist/collection/collection.service.js.map +1 -0
- package/dist/collection/collection.types.d.ts +18 -0
- package/dist/collection/collection.types.d.ts.map +1 -0
- package/dist/collection/collection.types.js +75 -0
- package/dist/collection/collection.types.js.map +1 -0
- package/dist/collection/index.d.ts +5 -0
- package/dist/collection/index.d.ts.map +1 -0
- package/dist/collection/index.js +8 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/common/index.d.ts +8 -0
- package/dist/common/index.d.ts.map +1 -0
- package/dist/common/index.js +16 -0
- package/dist/common/index.js.map +1 -0
- package/dist/graphql.module.d.ts +3 -0
- package/dist/graphql.module.d.ts.map +1 -0
- package/dist/graphql.module.js +46 -0
- package/dist/graphql.module.js.map +1 -0
- package/dist/header/header.module.d.ts +9 -0
- package/dist/header/header.module.d.ts.map +1 -0
- package/dist/header/header.module.js +21 -0
- package/dist/header/header.module.js.map +1 -0
- package/dist/header/header.resolver.d.ts +18 -0
- package/dist/header/header.resolver.d.ts.map +1 -0
- package/dist/header/header.resolver.js +42 -0
- package/dist/header/header.resolver.js.map +1 -0
- package/dist/header/index.d.ts +4 -0
- package/dist/header/index.d.ts.map +1 -0
- package/dist/header/index.js +7 -0
- package/dist/header/index.js.map +1 -0
- package/dist/header/types/header.types.d.ts +36 -0
- package/dist/header/types/header.types.d.ts.map +1 -0
- package/dist/header/types/header.types.js +154 -0
- package/dist/header/types/header.types.js.map +1 -0
- package/dist/header/types/index.d.ts +3 -0
- package/dist/header/types/index.d.ts.map +1 -0
- package/dist/header/types/index.js +6 -0
- package/dist/header/types/index.js.map +1 -0
- package/dist/header/types/response.types.d.ts +13 -0
- package/dist/header/types/response.types.d.ts.map +1 -0
- package/dist/header/types/response.types.js +54 -0
- package/dist/header/types/response.types.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +29 -0
- package/dist/index.js.map +1 -0
- package/dist/page-content/index.d.ts +5 -0
- package/dist/page-content/index.d.ts.map +1 -0
- package/dist/page-content/index.js +8 -0
- package/dist/page-content/index.js.map +1 -0
- package/dist/page-content/page-content.module.d.ts +9 -0
- package/dist/page-content/page-content.module.d.ts.map +1 -0
- package/dist/page-content/page-content.module.js +25 -0
- package/dist/page-content/page-content.module.js.map +1 -0
- package/dist/page-content/page-content.resolver.d.ts +18 -0
- package/dist/page-content/page-content.resolver.d.ts.map +1 -0
- package/dist/page-content/page-content.resolver.js +42 -0
- package/dist/page-content/page-content.resolver.js.map +1 -0
- package/dist/page-content/page-content.service.d.ts +59 -0
- package/dist/page-content/page-content.service.d.ts.map +1 -0
- package/dist/page-content/page-content.service.js +253 -0
- package/dist/page-content/page-content.service.js.map +1 -0
- package/dist/page-content/types/common.types.d.ts +49 -0
- package/dist/page-content/types/common.types.d.ts.map +1 -0
- package/dist/page-content/types/common.types.js +217 -0
- package/dist/page-content/types/common.types.js.map +1 -0
- package/dist/page-content/types/index.d.ts +4 -0
- package/dist/page-content/types/index.d.ts.map +1 -0
- package/dist/page-content/types/index.js +7 -0
- package/dist/page-content/types/index.js.map +1 -0
- package/dist/page-content/types/response.types.d.ts +8 -0
- package/dist/page-content/types/response.types.d.ts.map +1 -0
- package/dist/page-content/types/response.types.js +29 -0
- package/dist/page-content/types/response.types.js.map +1 -0
- package/dist/page-content/types/section.types.d.ts +276 -0
- package/dist/page-content/types/section.types.d.ts.map +1 -0
- package/dist/page-content/types/section.types.js +1252 -0
- package/dist/page-content/types/section.types.js.map +1 -0
- package/dist/product/index.d.ts +5 -0
- package/dist/product/index.d.ts.map +1 -0
- package/dist/product/index.js +8 -0
- package/dist/product/index.js.map +1 -0
- package/dist/product/product.module.d.ts +3 -0
- package/dist/product/product.module.d.ts.map +1 -0
- package/dist/product/product.module.js +19 -0
- package/dist/product/product.module.js.map +1 -0
- package/dist/product/product.resolver.d.ts +15 -0
- package/dist/product/product.resolver.d.ts.map +1 -0
- package/dist/product/product.resolver.js +45 -0
- package/dist/product/product.resolver.js.map +1 -0
- package/dist/product/product.service.d.ts +38 -0
- package/dist/product/product.service.d.ts.map +1 -0
- package/dist/product/product.service.js +337 -0
- package/dist/product/product.service.js.map +1 -0
- package/dist/product/product.types.d.ts +63 -0
- package/dist/product/product.types.d.ts.map +1 -0
- package/dist/product/product.types.js +276 -0
- package/dist/product/product.types.js.map +1 -0
- package/dist/product-content/index.d.ts +5 -0
- package/dist/product-content/index.d.ts.map +1 -0
- package/dist/product-content/index.js +8 -0
- package/dist/product-content/index.js.map +1 -0
- package/dist/product-content/product-content.module.d.ts +3 -0
- package/dist/product-content/product-content.module.d.ts.map +1 -0
- package/dist/product-content/product-content.module.js +27 -0
- package/dist/product-content/product-content.module.js.map +1 -0
- package/dist/product-content/product-content.resolver.d.ts +20 -0
- package/dist/product-content/product-content.resolver.d.ts.map +1 -0
- package/dist/product-content/product-content.resolver.js +44 -0
- package/dist/product-content/product-content.resolver.js.map +1 -0
- package/dist/product-content/product-content.service.d.ts +40 -0
- package/dist/product-content/product-content.service.d.ts.map +1 -0
- package/dist/product-content/product-content.service.js +239 -0
- package/dist/product-content/product-content.service.js.map +1 -0
- package/dist/product-content/types/common.types.d.ts +85 -0
- package/dist/product-content/types/common.types.d.ts.map +1 -0
- package/dist/product-content/types/common.types.js +384 -0
- package/dist/product-content/types/common.types.js.map +1 -0
- package/dist/product-content/types/index.d.ts +3 -0
- package/dist/product-content/types/index.d.ts.map +1 -0
- package/dist/product-content/types/index.js +6 -0
- package/dist/product-content/types/index.js.map +1 -0
- package/dist/product-content/types/response.types.d.ts +10 -0
- package/dist/product-content/types/response.types.d.ts.map +1 -0
- package/dist/product-content/types/response.types.js +39 -0
- package/dist/product-content/types/response.types.js.map +1 -0
- package/dist/serviceability/index.d.ts +5 -0
- package/dist/serviceability/index.d.ts.map +1 -0
- package/dist/serviceability/index.js +8 -0
- package/dist/serviceability/index.js.map +1 -0
- package/dist/serviceability/serviceability.module.d.ts +3 -0
- package/dist/serviceability/serviceability.module.d.ts.map +1 -0
- package/dist/serviceability/serviceability.module.js +18 -0
- package/dist/serviceability/serviceability.module.js.map +1 -0
- package/dist/serviceability/serviceability.resolver.d.ts +19 -0
- package/dist/serviceability/serviceability.resolver.d.ts.map +1 -0
- package/dist/serviceability/serviceability.resolver.js +40 -0
- package/dist/serviceability/serviceability.resolver.js.map +1 -0
- package/dist/serviceability/serviceability.service.d.ts +42 -0
- package/dist/serviceability/serviceability.service.d.ts.map +1 -0
- package/dist/serviceability/serviceability.service.js +169 -0
- package/dist/serviceability/serviceability.service.js.map +1 -0
- package/dist/serviceability/serviceability.types.d.ts +42 -0
- package/dist/serviceability/serviceability.types.d.ts.map +1 -0
- package/dist/serviceability/serviceability.types.js +184 -0
- package/dist/serviceability/serviceability.types.js.map +1 -0
- package/package.json +67 -0
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductConnection = exports.PageInfo = exports.ProductEdge = exports.Product = exports.ProductOption = exports.ProductVariant = exports.SelectedOption = exports.PriceRange = exports.Money = exports.Image = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
6
|
+
let Image = class Image {
|
|
7
|
+
url;
|
|
8
|
+
altText;
|
|
9
|
+
width;
|
|
10
|
+
height;
|
|
11
|
+
};
|
|
12
|
+
exports.Image = Image;
|
|
13
|
+
tslib_1.__decorate([
|
|
14
|
+
(0, graphql_1.Field)(),
|
|
15
|
+
tslib_1.__metadata("design:type", String)
|
|
16
|
+
], Image.prototype, "url", void 0);
|
|
17
|
+
tslib_1.__decorate([
|
|
18
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
19
|
+
tslib_1.__metadata("design:type", Object)
|
|
20
|
+
], Image.prototype, "altText", void 0);
|
|
21
|
+
tslib_1.__decorate([
|
|
22
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
23
|
+
tslib_1.__metadata("design:type", Number)
|
|
24
|
+
], Image.prototype, "width", void 0);
|
|
25
|
+
tslib_1.__decorate([
|
|
26
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
27
|
+
tslib_1.__metadata("design:type", Number)
|
|
28
|
+
], Image.prototype, "height", void 0);
|
|
29
|
+
exports.Image = Image = tslib_1.__decorate([
|
|
30
|
+
(0, graphql_1.ObjectType)()
|
|
31
|
+
], Image);
|
|
32
|
+
let Money = class Money {
|
|
33
|
+
amount;
|
|
34
|
+
currencyCode;
|
|
35
|
+
};
|
|
36
|
+
exports.Money = Money;
|
|
37
|
+
tslib_1.__decorate([
|
|
38
|
+
(0, graphql_1.Field)(),
|
|
39
|
+
tslib_1.__metadata("design:type", String)
|
|
40
|
+
], Money.prototype, "amount", void 0);
|
|
41
|
+
tslib_1.__decorate([
|
|
42
|
+
(0, graphql_1.Field)(),
|
|
43
|
+
tslib_1.__metadata("design:type", String)
|
|
44
|
+
], Money.prototype, "currencyCode", void 0);
|
|
45
|
+
exports.Money = Money = tslib_1.__decorate([
|
|
46
|
+
(0, graphql_1.ObjectType)()
|
|
47
|
+
], Money);
|
|
48
|
+
let PriceRange = class PriceRange {
|
|
49
|
+
minVariantPrice;
|
|
50
|
+
maxVariantPrice;
|
|
51
|
+
};
|
|
52
|
+
exports.PriceRange = PriceRange;
|
|
53
|
+
tslib_1.__decorate([
|
|
54
|
+
(0, graphql_1.Field)(() => Money),
|
|
55
|
+
tslib_1.__metadata("design:type", Money)
|
|
56
|
+
], PriceRange.prototype, "minVariantPrice", void 0);
|
|
57
|
+
tslib_1.__decorate([
|
|
58
|
+
(0, graphql_1.Field)(() => Money),
|
|
59
|
+
tslib_1.__metadata("design:type", Money)
|
|
60
|
+
], PriceRange.prototype, "maxVariantPrice", void 0);
|
|
61
|
+
exports.PriceRange = PriceRange = tslib_1.__decorate([
|
|
62
|
+
(0, graphql_1.ObjectType)()
|
|
63
|
+
], PriceRange);
|
|
64
|
+
let SelectedOption = class SelectedOption {
|
|
65
|
+
name;
|
|
66
|
+
value;
|
|
67
|
+
};
|
|
68
|
+
exports.SelectedOption = SelectedOption;
|
|
69
|
+
tslib_1.__decorate([
|
|
70
|
+
(0, graphql_1.Field)(),
|
|
71
|
+
tslib_1.__metadata("design:type", String)
|
|
72
|
+
], SelectedOption.prototype, "name", void 0);
|
|
73
|
+
tslib_1.__decorate([
|
|
74
|
+
(0, graphql_1.Field)(),
|
|
75
|
+
tslib_1.__metadata("design:type", String)
|
|
76
|
+
], SelectedOption.prototype, "value", void 0);
|
|
77
|
+
exports.SelectedOption = SelectedOption = tslib_1.__decorate([
|
|
78
|
+
(0, graphql_1.ObjectType)()
|
|
79
|
+
], SelectedOption);
|
|
80
|
+
let ProductVariant = class ProductVariant {
|
|
81
|
+
id;
|
|
82
|
+
title;
|
|
83
|
+
availableForSale;
|
|
84
|
+
quantityAvailable;
|
|
85
|
+
price;
|
|
86
|
+
compareAtPrice;
|
|
87
|
+
selectedOptions;
|
|
88
|
+
image;
|
|
89
|
+
};
|
|
90
|
+
exports.ProductVariant = ProductVariant;
|
|
91
|
+
tslib_1.__decorate([
|
|
92
|
+
(0, graphql_1.Field)(() => graphql_1.ID),
|
|
93
|
+
tslib_1.__metadata("design:type", String)
|
|
94
|
+
], ProductVariant.prototype, "id", void 0);
|
|
95
|
+
tslib_1.__decorate([
|
|
96
|
+
(0, graphql_1.Field)(),
|
|
97
|
+
tslib_1.__metadata("design:type", String)
|
|
98
|
+
], ProductVariant.prototype, "title", void 0);
|
|
99
|
+
tslib_1.__decorate([
|
|
100
|
+
(0, graphql_1.Field)(),
|
|
101
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
102
|
+
], ProductVariant.prototype, "availableForSale", void 0);
|
|
103
|
+
tslib_1.__decorate([
|
|
104
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true, description: 'Live inventory quantity' }),
|
|
105
|
+
tslib_1.__metadata("design:type", Object)
|
|
106
|
+
], ProductVariant.prototype, "quantityAvailable", void 0);
|
|
107
|
+
tslib_1.__decorate([
|
|
108
|
+
(0, graphql_1.Field)(() => Money),
|
|
109
|
+
tslib_1.__metadata("design:type", Money)
|
|
110
|
+
], ProductVariant.prototype, "price", void 0);
|
|
111
|
+
tslib_1.__decorate([
|
|
112
|
+
(0, graphql_1.Field)(() => Money, { nullable: true }),
|
|
113
|
+
tslib_1.__metadata("design:type", Object)
|
|
114
|
+
], ProductVariant.prototype, "compareAtPrice", void 0);
|
|
115
|
+
tslib_1.__decorate([
|
|
116
|
+
(0, graphql_1.Field)(() => [SelectedOption]),
|
|
117
|
+
tslib_1.__metadata("design:type", Array)
|
|
118
|
+
], ProductVariant.prototype, "selectedOptions", void 0);
|
|
119
|
+
tslib_1.__decorate([
|
|
120
|
+
(0, graphql_1.Field)(() => Image, { nullable: true }),
|
|
121
|
+
tslib_1.__metadata("design:type", Object)
|
|
122
|
+
], ProductVariant.prototype, "image", void 0);
|
|
123
|
+
exports.ProductVariant = ProductVariant = tslib_1.__decorate([
|
|
124
|
+
(0, graphql_1.ObjectType)()
|
|
125
|
+
], ProductVariant);
|
|
126
|
+
let ProductOption = class ProductOption {
|
|
127
|
+
id;
|
|
128
|
+
name;
|
|
129
|
+
values;
|
|
130
|
+
};
|
|
131
|
+
exports.ProductOption = ProductOption;
|
|
132
|
+
tslib_1.__decorate([
|
|
133
|
+
(0, graphql_1.Field)(() => graphql_1.ID),
|
|
134
|
+
tslib_1.__metadata("design:type", String)
|
|
135
|
+
], ProductOption.prototype, "id", void 0);
|
|
136
|
+
tslib_1.__decorate([
|
|
137
|
+
(0, graphql_1.Field)(),
|
|
138
|
+
tslib_1.__metadata("design:type", String)
|
|
139
|
+
], ProductOption.prototype, "name", void 0);
|
|
140
|
+
tslib_1.__decorate([
|
|
141
|
+
(0, graphql_1.Field)(() => [String]),
|
|
142
|
+
tslib_1.__metadata("design:type", Array)
|
|
143
|
+
], ProductOption.prototype, "values", void 0);
|
|
144
|
+
exports.ProductOption = ProductOption = tslib_1.__decorate([
|
|
145
|
+
(0, graphql_1.ObjectType)()
|
|
146
|
+
], ProductOption);
|
|
147
|
+
let Product = class Product {
|
|
148
|
+
id;
|
|
149
|
+
handle;
|
|
150
|
+
title;
|
|
151
|
+
description;
|
|
152
|
+
descriptionHtml;
|
|
153
|
+
vendor;
|
|
154
|
+
productType;
|
|
155
|
+
tags;
|
|
156
|
+
featuredImage;
|
|
157
|
+
images;
|
|
158
|
+
options;
|
|
159
|
+
variants;
|
|
160
|
+
priceRange;
|
|
161
|
+
};
|
|
162
|
+
exports.Product = Product;
|
|
163
|
+
tslib_1.__decorate([
|
|
164
|
+
(0, graphql_1.Field)(() => graphql_1.ID),
|
|
165
|
+
tslib_1.__metadata("design:type", String)
|
|
166
|
+
], Product.prototype, "id", void 0);
|
|
167
|
+
tslib_1.__decorate([
|
|
168
|
+
(0, graphql_1.Field)(),
|
|
169
|
+
tslib_1.__metadata("design:type", String)
|
|
170
|
+
], Product.prototype, "handle", void 0);
|
|
171
|
+
tslib_1.__decorate([
|
|
172
|
+
(0, graphql_1.Field)(),
|
|
173
|
+
tslib_1.__metadata("design:type", String)
|
|
174
|
+
], Product.prototype, "title", void 0);
|
|
175
|
+
tslib_1.__decorate([
|
|
176
|
+
(0, graphql_1.Field)(),
|
|
177
|
+
tslib_1.__metadata("design:type", String)
|
|
178
|
+
], Product.prototype, "description", void 0);
|
|
179
|
+
tslib_1.__decorate([
|
|
180
|
+
(0, graphql_1.Field)(),
|
|
181
|
+
tslib_1.__metadata("design:type", String)
|
|
182
|
+
], Product.prototype, "descriptionHtml", void 0);
|
|
183
|
+
tslib_1.__decorate([
|
|
184
|
+
(0, graphql_1.Field)(),
|
|
185
|
+
tslib_1.__metadata("design:type", String)
|
|
186
|
+
], Product.prototype, "vendor", void 0);
|
|
187
|
+
tslib_1.__decorate([
|
|
188
|
+
(0, graphql_1.Field)(),
|
|
189
|
+
tslib_1.__metadata("design:type", String)
|
|
190
|
+
], Product.prototype, "productType", void 0);
|
|
191
|
+
tslib_1.__decorate([
|
|
192
|
+
(0, graphql_1.Field)(() => [String]),
|
|
193
|
+
tslib_1.__metadata("design:type", Array)
|
|
194
|
+
], Product.prototype, "tags", void 0);
|
|
195
|
+
tslib_1.__decorate([
|
|
196
|
+
(0, graphql_1.Field)(() => Image, { nullable: true }),
|
|
197
|
+
tslib_1.__metadata("design:type", Object)
|
|
198
|
+
], Product.prototype, "featuredImage", void 0);
|
|
199
|
+
tslib_1.__decorate([
|
|
200
|
+
(0, graphql_1.Field)(() => [Image]),
|
|
201
|
+
tslib_1.__metadata("design:type", Array)
|
|
202
|
+
], Product.prototype, "images", void 0);
|
|
203
|
+
tslib_1.__decorate([
|
|
204
|
+
(0, graphql_1.Field)(() => [ProductOption]),
|
|
205
|
+
tslib_1.__metadata("design:type", Array)
|
|
206
|
+
], Product.prototype, "options", void 0);
|
|
207
|
+
tslib_1.__decorate([
|
|
208
|
+
(0, graphql_1.Field)(() => [ProductVariant]),
|
|
209
|
+
tslib_1.__metadata("design:type", Array)
|
|
210
|
+
], Product.prototype, "variants", void 0);
|
|
211
|
+
tslib_1.__decorate([
|
|
212
|
+
(0, graphql_1.Field)(() => PriceRange),
|
|
213
|
+
tslib_1.__metadata("design:type", PriceRange)
|
|
214
|
+
], Product.prototype, "priceRange", void 0);
|
|
215
|
+
exports.Product = Product = tslib_1.__decorate([
|
|
216
|
+
(0, graphql_1.ObjectType)()
|
|
217
|
+
], Product);
|
|
218
|
+
let ProductEdge = class ProductEdge {
|
|
219
|
+
node;
|
|
220
|
+
cursor;
|
|
221
|
+
};
|
|
222
|
+
exports.ProductEdge = ProductEdge;
|
|
223
|
+
tslib_1.__decorate([
|
|
224
|
+
(0, graphql_1.Field)(() => Product),
|
|
225
|
+
tslib_1.__metadata("design:type", Product)
|
|
226
|
+
], ProductEdge.prototype, "node", void 0);
|
|
227
|
+
tslib_1.__decorate([
|
|
228
|
+
(0, graphql_1.Field)(),
|
|
229
|
+
tslib_1.__metadata("design:type", String)
|
|
230
|
+
], ProductEdge.prototype, "cursor", void 0);
|
|
231
|
+
exports.ProductEdge = ProductEdge = tslib_1.__decorate([
|
|
232
|
+
(0, graphql_1.ObjectType)()
|
|
233
|
+
], ProductEdge);
|
|
234
|
+
let PageInfo = class PageInfo {
|
|
235
|
+
hasNextPage;
|
|
236
|
+
hasPreviousPage;
|
|
237
|
+
startCursor;
|
|
238
|
+
endCursor;
|
|
239
|
+
};
|
|
240
|
+
exports.PageInfo = PageInfo;
|
|
241
|
+
tslib_1.__decorate([
|
|
242
|
+
(0, graphql_1.Field)(),
|
|
243
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
244
|
+
], PageInfo.prototype, "hasNextPage", void 0);
|
|
245
|
+
tslib_1.__decorate([
|
|
246
|
+
(0, graphql_1.Field)(),
|
|
247
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
248
|
+
], PageInfo.prototype, "hasPreviousPage", void 0);
|
|
249
|
+
tslib_1.__decorate([
|
|
250
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
251
|
+
tslib_1.__metadata("design:type", Object)
|
|
252
|
+
], PageInfo.prototype, "startCursor", void 0);
|
|
253
|
+
tslib_1.__decorate([
|
|
254
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
255
|
+
tslib_1.__metadata("design:type", Object)
|
|
256
|
+
], PageInfo.prototype, "endCursor", void 0);
|
|
257
|
+
exports.PageInfo = PageInfo = tslib_1.__decorate([
|
|
258
|
+
(0, graphql_1.ObjectType)()
|
|
259
|
+
], PageInfo);
|
|
260
|
+
let ProductConnection = class ProductConnection {
|
|
261
|
+
edges;
|
|
262
|
+
pageInfo;
|
|
263
|
+
};
|
|
264
|
+
exports.ProductConnection = ProductConnection;
|
|
265
|
+
tslib_1.__decorate([
|
|
266
|
+
(0, graphql_1.Field)(() => [ProductEdge]),
|
|
267
|
+
tslib_1.__metadata("design:type", Array)
|
|
268
|
+
], ProductConnection.prototype, "edges", void 0);
|
|
269
|
+
tslib_1.__decorate([
|
|
270
|
+
(0, graphql_1.Field)(() => PageInfo),
|
|
271
|
+
tslib_1.__metadata("design:type", PageInfo)
|
|
272
|
+
], ProductConnection.prototype, "pageInfo", void 0);
|
|
273
|
+
exports.ProductConnection = ProductConnection = tslib_1.__decorate([
|
|
274
|
+
(0, graphql_1.ObjectType)()
|
|
275
|
+
], ProductConnection);
|
|
276
|
+
//# sourceMappingURL=product.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product.types.js","sourceRoot":"","sources":["../../src/product/product.types.ts"],"names":[],"mappings":";;;;AAAA,6CAA6D;AAGtD,IAAM,KAAK,GAAX,MAAM,KAAK;IAEhB,GAAG,CAAU;IAGb,OAAO,CAAiB;IAGxB,KAAK,CAAU;IAGf,MAAM,CAAU;CACjB,CAAA;AAZY,sBAAK;AAEhB;IADC,IAAA,eAAK,GAAE;;kCACK;AAGb;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCAChB;AAGxB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;oCACF;AAGf;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;qCACD;gBAXL,KAAK;IADjB,IAA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K,GAAE;;6CACc;AAGtB;IADC,IAAA,eAAK,GAAE;;iDACkB;AAG1B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACZ;AAG5B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACd;mBAXf,QAAQ;IADpB,IAAA,oBAAU,GAAE;GACA,QAAQ,CAYpB;AAGM,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAE5B,KAAK,CAAiB;IAGtB,QAAQ,CAAY;CACrB,CAAA;AANY,8CAAiB;AAE5B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC;;gDACL;AAGtB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,QAAQ,CAAC;sCACX,QAAQ;mDAAC;4BALT,iBAAiB;IAD7B,IAAA,oBAAU,GAAE;GACA,iBAAiB,CAM7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/product-content/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,SAAS,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("./product-content.module"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./product-content.resolver"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./product-content.service"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./types"), exports);
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/product-content/index.ts"],"names":[],"mappings":";;;AAAA,mEAAyC;AACzC,qEAA2C;AAC3C,oEAA0C;AAC1C,kDAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-content.module.d.ts","sourceRoot":"","sources":["../../src/product-content/product-content.module.ts"],"names":[],"mappings":"AAWA,qBAWa,oBAAoB;CAAG"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductContentModule = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const common_1 = require("@nestjs/common");
|
|
6
|
+
const core_1 = require("@pvh-afl/core");
|
|
7
|
+
const product_content_resolver_1 = require("./product-content.resolver");
|
|
8
|
+
const product_content_service_1 = require("./product-content.service");
|
|
9
|
+
const product_module_1 = require("../product/product.module");
|
|
10
|
+
const collection_module_1 = require("../collection/collection.module");
|
|
11
|
+
let ProductContentModule = class ProductContentModule {
|
|
12
|
+
};
|
|
13
|
+
exports.ProductContentModule = ProductContentModule;
|
|
14
|
+
exports.ProductContentModule = ProductContentModule = tslib_1.__decorate([
|
|
15
|
+
(0, common_1.Module)({
|
|
16
|
+
imports: [
|
|
17
|
+
product_module_1.ProductModule,
|
|
18
|
+
collection_module_1.CollectionModule,
|
|
19
|
+
core_1.CacheModule,
|
|
20
|
+
core_1.ConfigModule,
|
|
21
|
+
core_1.ShopifyThemeModule,
|
|
22
|
+
],
|
|
23
|
+
providers: [product_content_resolver_1.ProductContentResolver, product_content_service_1.ProductContentService],
|
|
24
|
+
exports: [product_content_service_1.ProductContentService],
|
|
25
|
+
})
|
|
26
|
+
], ProductContentModule);
|
|
27
|
+
//# sourceMappingURL=product-content.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-content.module.js","sourceRoot":"","sources":["../../src/product-content/product-content.module.ts"],"names":[],"mappings":";;;;AAAA,2CAAwC;AACxC,wCAIuB;AACvB,yEAAoE;AACpE,uEAAkE;AAClE,8DAA0D;AAC1D,uEAAmE;AAa5D,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAAG,CAAA;AAAvB,oDAAoB;+BAApB,oBAAoB;IAXhC,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,8BAAa;YACb,oCAAgB;YAChB,kBAAW;YACX,mBAAY;YACZ,yBAAkB;SACnB;QACD,SAAS,EAAE,CAAC,iDAAsB,EAAE,+CAAqB,CAAC;QAC1D,OAAO,EAAE,CAAC,+CAAqB,CAAC;KACjC,CAAC;GACW,oBAAoB,CAAG"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ProductContentService } from './product-content.service';
|
|
2
|
+
import { ProductContentResponse } from './types';
|
|
3
|
+
interface GqlContext {
|
|
4
|
+
req: {
|
|
5
|
+
brand: string;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export declare class ProductContentResolver {
|
|
9
|
+
private readonly productContentService;
|
|
10
|
+
constructor(productContentService: ProductContentService);
|
|
11
|
+
/**
|
|
12
|
+
* Get product content by slug.
|
|
13
|
+
* Returns product data combined with theme template.
|
|
14
|
+
* Product data is cached, inventory is fetched live.
|
|
15
|
+
* @param slug - Product slug/handle (e.g., "blue-cotton-shirt")
|
|
16
|
+
*/
|
|
17
|
+
productContent(ctx: GqlContext, slug: string): Promise<ProductContentResponse>;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=product-content.resolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-content.resolver.d.ts","sourceRoot":"","sources":["../../src/product-content/product-content.resolver.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjD,UAAU,UAAU;IAClB,GAAG,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CACxB;AAED,qBAEa,sBAAsB;IACrB,OAAO,CAAC,QAAQ,CAAC,qBAAqB;gBAArB,qBAAqB,EAAE,qBAAqB;IAEzE;;;;;OAKG;IAIG,cAAc,CACP,GAAG,EAAE,UAAU,EAK1B,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,sBAAsB,CAAC;CAGnC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductContentResolver = 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 product_content_service_1 = require("./product-content.service");
|
|
9
|
+
const types_1 = require("./types");
|
|
10
|
+
let ProductContentResolver = class ProductContentResolver {
|
|
11
|
+
productContentService;
|
|
12
|
+
constructor(productContentService) {
|
|
13
|
+
this.productContentService = productContentService;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Get product content by slug.
|
|
17
|
+
* Returns product data combined with theme template.
|
|
18
|
+
* Product data is cached, inventory is fetched live.
|
|
19
|
+
* @param slug - Product slug/handle (e.g., "blue-cotton-shirt")
|
|
20
|
+
*/
|
|
21
|
+
async productContent(ctx, slug) {
|
|
22
|
+
return this.productContentService.getProductBySlug(ctx.req.brand, slug);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.ProductContentResolver = ProductContentResolver;
|
|
26
|
+
tslib_1.__decorate([
|
|
27
|
+
(0, graphql_1.Query)(() => types_1.ProductContentResponse, {
|
|
28
|
+
description: 'Get product content by slug with theme template',
|
|
29
|
+
}),
|
|
30
|
+
tslib_1.__param(0, (0, graphql_1.Context)()),
|
|
31
|
+
tslib_1.__param(1, (0, graphql_1.Args)('slug', {
|
|
32
|
+
type: () => String,
|
|
33
|
+
description: 'Product slug/handle',
|
|
34
|
+
})),
|
|
35
|
+
tslib_1.__metadata("design:type", Function),
|
|
36
|
+
tslib_1.__metadata("design:paramtypes", [Object, String]),
|
|
37
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
38
|
+
], ProductContentResolver.prototype, "productContent", null);
|
|
39
|
+
exports.ProductContentResolver = ProductContentResolver = tslib_1.__decorate([
|
|
40
|
+
(0, graphql_1.Resolver)(),
|
|
41
|
+
(0, common_1.UseGuards)(core_1.TenantGuard),
|
|
42
|
+
tslib_1.__metadata("design:paramtypes", [product_content_service_1.ProductContentService])
|
|
43
|
+
], ProductContentResolver);
|
|
44
|
+
//# sourceMappingURL=product-content.resolver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-content.resolver.js","sourceRoot":"","sources":["../../src/product-content/product-content.resolver.ts"],"names":[],"mappings":";;;;AAAA,6CAAiE;AACjE,2CAA2C;AAC3C,wCAA4C;AAC5C,uEAAkE;AAClE,mCAAiD;AAQ1C,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACJ;IAA7B,YAA6B,qBAA4C;QAA5C,0BAAqB,GAArB,qBAAqB,CAAuB;IAAG,CAAC;IAE7E;;;;;OAKG;IAIG,AAAN,KAAK,CAAC,cAAc,CACP,GAAe,EAK1B,IAAY;QAEZ,OAAO,IAAI,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAC1E,CAAC;CACF,CAAA;AAtBY,wDAAsB;AAY3B;IAHL,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,8BAAsB,EAAE;QACnC,WAAW,EAAE,iDAAiD;KAC/D,CAAC;IAEC,mBAAA,IAAA,iBAAO,GAAE,CAAA;IACT,mBAAA,IAAA,cAAI,EAAC,MAAM,EAAE;QACZ,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM;QAClB,WAAW,EAAE,qBAAqB;KACnC,CAAC,CAAA;;;;4DAIH;iCArBU,sBAAsB;IAFlC,IAAA,kBAAQ,GAAE;IACV,IAAA,kBAAS,EAAC,kBAAW,CAAC;6CAE+B,+CAAqB;GAD9D,sBAAsB,CAsBlC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { CacheService, ConfigService, ShopifyThemeService } from '@pvh-afl/core';
|
|
2
|
+
import { ProductService } from '../product/product.service';
|
|
3
|
+
import { CollectionService } from '../collection/collection.service';
|
|
4
|
+
import { ProductContentResponse } from './types';
|
|
5
|
+
/**
|
|
6
|
+
* Product Content Service
|
|
7
|
+
*
|
|
8
|
+
* Provides product content with theme template integration.
|
|
9
|
+
* See original implementation in afl repo for full logic.
|
|
10
|
+
*/
|
|
11
|
+
export declare class ProductContentService {
|
|
12
|
+
private readonly cacheService;
|
|
13
|
+
private readonly configService;
|
|
14
|
+
private readonly productService;
|
|
15
|
+
private readonly collectionService;
|
|
16
|
+
private readonly shopifyThemeService;
|
|
17
|
+
constructor(cacheService: CacheService, configService: ConfigService, productService: ProductService, collectionService: CollectionService, shopifyThemeService: ShopifyThemeService);
|
|
18
|
+
/**
|
|
19
|
+
* Get product content by slug/handle.
|
|
20
|
+
* Returns sections array with product data mapped into blocks.
|
|
21
|
+
*/
|
|
22
|
+
getProductBySlug(brand: string, slug: string): Promise<ProductContentResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Build sections array from theme template, enriched with product data.
|
|
25
|
+
*/
|
|
26
|
+
private buildSections;
|
|
27
|
+
/**
|
|
28
|
+
* Build blocks array for a section, enriched with product data.
|
|
29
|
+
*/
|
|
30
|
+
private buildBlocks;
|
|
31
|
+
/**
|
|
32
|
+
* Get the relevant product data for a specific block type.
|
|
33
|
+
*/
|
|
34
|
+
private getBlockData;
|
|
35
|
+
/**
|
|
36
|
+
* Resolve product recommendations for sections with type "product-recommendations".
|
|
37
|
+
*/
|
|
38
|
+
private resolveRecommendationSections;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=product-content.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"product-content.service.d.ts","sourceRoot":"","sources":["../../src/product-content/product-content.service.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,aAAa,EACb,mBAAmB,EAEpB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EACL,sBAAsB,EAGvB,MAAM,SAAS,CAAC;AAEjB;;;;;GAKG;AACH,qBACa,qBAAqB;IAE9B,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,aAAa;IAC9B,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAClC,OAAO,CAAC,QAAQ,CAAC,mBAAmB;gBAJnB,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,aAAa,EAC5B,cAAc,EAAE,cAAc,EAC9B,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,mBAAmB;IAG3D;;;OAGG;IACG,gBAAgB,CACpB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,sBAAsB,CAAC;IAkDlC;;OAEG;YACW,aAAa;IA+C3B;;OAEG;IACH,OAAO,CAAC,WAAW;IAmBnB;;OAEG;IACH,OAAO,CAAC,YAAY;IAmDpB;;OAEG;YACW,6BAA6B;CA8E5C"}
|