@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,384 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductContentSection = exports.RecommendedProduct = exports.RecommendedProductImage = exports.RecommendedProductFeaturedImage = exports.ProductThemeBlock = exports.ProductContentProduct = exports.ProductContentVariant = exports.ProductContentSelectedOption = exports.ProductContentPriceRange = exports.ProductContentMoney = exports.ProductContentImage = exports.ProductContentError = 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
|
+
// ============ Error Type ============
|
|
8
|
+
let ProductContentError = class ProductContentError {
|
|
9
|
+
code;
|
|
10
|
+
message;
|
|
11
|
+
};
|
|
12
|
+
exports.ProductContentError = ProductContentError;
|
|
13
|
+
tslib_1.__decorate([
|
|
14
|
+
(0, graphql_1.Field)(),
|
|
15
|
+
tslib_1.__metadata("design:type", String)
|
|
16
|
+
], ProductContentError.prototype, "code", void 0);
|
|
17
|
+
tslib_1.__decorate([
|
|
18
|
+
(0, graphql_1.Field)(),
|
|
19
|
+
tslib_1.__metadata("design:type", String)
|
|
20
|
+
], ProductContentError.prototype, "message", void 0);
|
|
21
|
+
exports.ProductContentError = ProductContentError = tslib_1.__decorate([
|
|
22
|
+
(0, graphql_1.ObjectType)()
|
|
23
|
+
], ProductContentError);
|
|
24
|
+
// ============ Product Types for Content API ============
|
|
25
|
+
let ProductContentImage = class ProductContentImage {
|
|
26
|
+
url;
|
|
27
|
+
altText;
|
|
28
|
+
width;
|
|
29
|
+
height;
|
|
30
|
+
};
|
|
31
|
+
exports.ProductContentImage = ProductContentImage;
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
(0, graphql_1.Field)(),
|
|
34
|
+
tslib_1.__metadata("design:type", String)
|
|
35
|
+
], ProductContentImage.prototype, "url", void 0);
|
|
36
|
+
tslib_1.__decorate([
|
|
37
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
38
|
+
tslib_1.__metadata("design:type", Object)
|
|
39
|
+
], ProductContentImage.prototype, "altText", void 0);
|
|
40
|
+
tslib_1.__decorate([
|
|
41
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
42
|
+
tslib_1.__metadata("design:type", Number)
|
|
43
|
+
], ProductContentImage.prototype, "width", void 0);
|
|
44
|
+
tslib_1.__decorate([
|
|
45
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
46
|
+
tslib_1.__metadata("design:type", Number)
|
|
47
|
+
], ProductContentImage.prototype, "height", void 0);
|
|
48
|
+
exports.ProductContentImage = ProductContentImage = tslib_1.__decorate([
|
|
49
|
+
(0, graphql_1.ObjectType)()
|
|
50
|
+
], ProductContentImage);
|
|
51
|
+
let ProductContentMoney = class ProductContentMoney {
|
|
52
|
+
amount;
|
|
53
|
+
currencyCode;
|
|
54
|
+
};
|
|
55
|
+
exports.ProductContentMoney = ProductContentMoney;
|
|
56
|
+
tslib_1.__decorate([
|
|
57
|
+
(0, graphql_1.Field)(),
|
|
58
|
+
tslib_1.__metadata("design:type", String)
|
|
59
|
+
], ProductContentMoney.prototype, "amount", void 0);
|
|
60
|
+
tslib_1.__decorate([
|
|
61
|
+
(0, graphql_1.Field)(),
|
|
62
|
+
tslib_1.__metadata("design:type", String)
|
|
63
|
+
], ProductContentMoney.prototype, "currencyCode", void 0);
|
|
64
|
+
exports.ProductContentMoney = ProductContentMoney = tslib_1.__decorate([
|
|
65
|
+
(0, graphql_1.ObjectType)()
|
|
66
|
+
], ProductContentMoney);
|
|
67
|
+
let ProductContentPriceRange = class ProductContentPriceRange {
|
|
68
|
+
minVariantPrice;
|
|
69
|
+
maxVariantPrice;
|
|
70
|
+
};
|
|
71
|
+
exports.ProductContentPriceRange = ProductContentPriceRange;
|
|
72
|
+
tslib_1.__decorate([
|
|
73
|
+
(0, graphql_1.Field)(() => ProductContentMoney),
|
|
74
|
+
tslib_1.__metadata("design:type", ProductContentMoney)
|
|
75
|
+
], ProductContentPriceRange.prototype, "minVariantPrice", void 0);
|
|
76
|
+
tslib_1.__decorate([
|
|
77
|
+
(0, graphql_1.Field)(() => ProductContentMoney),
|
|
78
|
+
tslib_1.__metadata("design:type", ProductContentMoney)
|
|
79
|
+
], ProductContentPriceRange.prototype, "maxVariantPrice", void 0);
|
|
80
|
+
exports.ProductContentPriceRange = ProductContentPriceRange = tslib_1.__decorate([
|
|
81
|
+
(0, graphql_1.ObjectType)()
|
|
82
|
+
], ProductContentPriceRange);
|
|
83
|
+
let ProductContentSelectedOption = class ProductContentSelectedOption {
|
|
84
|
+
name;
|
|
85
|
+
value;
|
|
86
|
+
};
|
|
87
|
+
exports.ProductContentSelectedOption = ProductContentSelectedOption;
|
|
88
|
+
tslib_1.__decorate([
|
|
89
|
+
(0, graphql_1.Field)(),
|
|
90
|
+
tslib_1.__metadata("design:type", String)
|
|
91
|
+
], ProductContentSelectedOption.prototype, "name", void 0);
|
|
92
|
+
tslib_1.__decorate([
|
|
93
|
+
(0, graphql_1.Field)(),
|
|
94
|
+
tslib_1.__metadata("design:type", String)
|
|
95
|
+
], ProductContentSelectedOption.prototype, "value", void 0);
|
|
96
|
+
exports.ProductContentSelectedOption = ProductContentSelectedOption = tslib_1.__decorate([
|
|
97
|
+
(0, graphql_1.ObjectType)()
|
|
98
|
+
], ProductContentSelectedOption);
|
|
99
|
+
let ProductContentVariant = class ProductContentVariant {
|
|
100
|
+
id;
|
|
101
|
+
title;
|
|
102
|
+
availableForSale;
|
|
103
|
+
quantityAvailable;
|
|
104
|
+
price;
|
|
105
|
+
compareAtPrice;
|
|
106
|
+
selectedOptions;
|
|
107
|
+
image;
|
|
108
|
+
};
|
|
109
|
+
exports.ProductContentVariant = ProductContentVariant;
|
|
110
|
+
tslib_1.__decorate([
|
|
111
|
+
(0, graphql_1.Field)(),
|
|
112
|
+
tslib_1.__metadata("design:type", String)
|
|
113
|
+
], ProductContentVariant.prototype, "id", void 0);
|
|
114
|
+
tslib_1.__decorate([
|
|
115
|
+
(0, graphql_1.Field)(),
|
|
116
|
+
tslib_1.__metadata("design:type", String)
|
|
117
|
+
], ProductContentVariant.prototype, "title", void 0);
|
|
118
|
+
tslib_1.__decorate([
|
|
119
|
+
(0, graphql_1.Field)(),
|
|
120
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
121
|
+
], ProductContentVariant.prototype, "availableForSale", void 0);
|
|
122
|
+
tslib_1.__decorate([
|
|
123
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
124
|
+
tslib_1.__metadata("design:type", Object)
|
|
125
|
+
], ProductContentVariant.prototype, "quantityAvailable", void 0);
|
|
126
|
+
tslib_1.__decorate([
|
|
127
|
+
(0, graphql_1.Field)(() => ProductContentMoney),
|
|
128
|
+
tslib_1.__metadata("design:type", ProductContentMoney)
|
|
129
|
+
], ProductContentVariant.prototype, "price", void 0);
|
|
130
|
+
tslib_1.__decorate([
|
|
131
|
+
(0, graphql_1.Field)(() => ProductContentMoney, { nullable: true }),
|
|
132
|
+
tslib_1.__metadata("design:type", Object)
|
|
133
|
+
], ProductContentVariant.prototype, "compareAtPrice", void 0);
|
|
134
|
+
tslib_1.__decorate([
|
|
135
|
+
(0, graphql_1.Field)(() => [ProductContentSelectedOption]),
|
|
136
|
+
tslib_1.__metadata("design:type", Array)
|
|
137
|
+
], ProductContentVariant.prototype, "selectedOptions", void 0);
|
|
138
|
+
tslib_1.__decorate([
|
|
139
|
+
(0, graphql_1.Field)(() => ProductContentImage, { nullable: true }),
|
|
140
|
+
tslib_1.__metadata("design:type", Object)
|
|
141
|
+
], ProductContentVariant.prototype, "image", void 0);
|
|
142
|
+
exports.ProductContentVariant = ProductContentVariant = tslib_1.__decorate([
|
|
143
|
+
(0, graphql_1.ObjectType)()
|
|
144
|
+
], ProductContentVariant);
|
|
145
|
+
let ProductContentProduct = class ProductContentProduct {
|
|
146
|
+
id;
|
|
147
|
+
handle;
|
|
148
|
+
title;
|
|
149
|
+
description;
|
|
150
|
+
descriptionHtml;
|
|
151
|
+
vendor;
|
|
152
|
+
productType;
|
|
153
|
+
tags;
|
|
154
|
+
featuredImage;
|
|
155
|
+
images;
|
|
156
|
+
variants;
|
|
157
|
+
priceRange;
|
|
158
|
+
};
|
|
159
|
+
exports.ProductContentProduct = ProductContentProduct;
|
|
160
|
+
tslib_1.__decorate([
|
|
161
|
+
(0, graphql_1.Field)(),
|
|
162
|
+
tslib_1.__metadata("design:type", String)
|
|
163
|
+
], ProductContentProduct.prototype, "id", void 0);
|
|
164
|
+
tslib_1.__decorate([
|
|
165
|
+
(0, graphql_1.Field)(),
|
|
166
|
+
tslib_1.__metadata("design:type", String)
|
|
167
|
+
], ProductContentProduct.prototype, "handle", void 0);
|
|
168
|
+
tslib_1.__decorate([
|
|
169
|
+
(0, graphql_1.Field)(),
|
|
170
|
+
tslib_1.__metadata("design:type", String)
|
|
171
|
+
], ProductContentProduct.prototype, "title", void 0);
|
|
172
|
+
tslib_1.__decorate([
|
|
173
|
+
(0, graphql_1.Field)(),
|
|
174
|
+
tslib_1.__metadata("design:type", String)
|
|
175
|
+
], ProductContentProduct.prototype, "description", void 0);
|
|
176
|
+
tslib_1.__decorate([
|
|
177
|
+
(0, graphql_1.Field)(),
|
|
178
|
+
tslib_1.__metadata("design:type", String)
|
|
179
|
+
], ProductContentProduct.prototype, "descriptionHtml", void 0);
|
|
180
|
+
tslib_1.__decorate([
|
|
181
|
+
(0, graphql_1.Field)(),
|
|
182
|
+
tslib_1.__metadata("design:type", String)
|
|
183
|
+
], ProductContentProduct.prototype, "vendor", void 0);
|
|
184
|
+
tslib_1.__decorate([
|
|
185
|
+
(0, graphql_1.Field)(),
|
|
186
|
+
tslib_1.__metadata("design:type", String)
|
|
187
|
+
], ProductContentProduct.prototype, "productType", void 0);
|
|
188
|
+
tslib_1.__decorate([
|
|
189
|
+
(0, graphql_1.Field)(() => [String]),
|
|
190
|
+
tslib_1.__metadata("design:type", Array)
|
|
191
|
+
], ProductContentProduct.prototype, "tags", void 0);
|
|
192
|
+
tslib_1.__decorate([
|
|
193
|
+
(0, graphql_1.Field)(() => ProductContentImage, { nullable: true }),
|
|
194
|
+
tslib_1.__metadata("design:type", Object)
|
|
195
|
+
], ProductContentProduct.prototype, "featuredImage", void 0);
|
|
196
|
+
tslib_1.__decorate([
|
|
197
|
+
(0, graphql_1.Field)(() => [ProductContentImage]),
|
|
198
|
+
tslib_1.__metadata("design:type", Array)
|
|
199
|
+
], ProductContentProduct.prototype, "images", void 0);
|
|
200
|
+
tslib_1.__decorate([
|
|
201
|
+
(0, graphql_1.Field)(() => [ProductContentVariant]),
|
|
202
|
+
tslib_1.__metadata("design:type", Array)
|
|
203
|
+
], ProductContentProduct.prototype, "variants", void 0);
|
|
204
|
+
tslib_1.__decorate([
|
|
205
|
+
(0, graphql_1.Field)(() => ProductContentPriceRange),
|
|
206
|
+
tslib_1.__metadata("design:type", ProductContentPriceRange)
|
|
207
|
+
], ProductContentProduct.prototype, "priceRange", void 0);
|
|
208
|
+
exports.ProductContentProduct = ProductContentProduct = tslib_1.__decorate([
|
|
209
|
+
(0, graphql_1.ObjectType)()
|
|
210
|
+
], ProductContentProduct);
|
|
211
|
+
// ============ Theme Block Types ============
|
|
212
|
+
let ProductThemeBlock = class ProductThemeBlock {
|
|
213
|
+
type;
|
|
214
|
+
settings;
|
|
215
|
+
data;
|
|
216
|
+
};
|
|
217
|
+
exports.ProductThemeBlock = ProductThemeBlock;
|
|
218
|
+
tslib_1.__decorate([
|
|
219
|
+
(0, graphql_1.Field)(),
|
|
220
|
+
tslib_1.__metadata("design:type", String)
|
|
221
|
+
], ProductThemeBlock.prototype, "type", void 0);
|
|
222
|
+
tslib_1.__decorate([
|
|
223
|
+
(0, graphql_1.Field)(() => graphql_type_json_1.default, { nullable: true }),
|
|
224
|
+
tslib_1.__metadata("design:type", Object)
|
|
225
|
+
], ProductThemeBlock.prototype, "settings", void 0);
|
|
226
|
+
tslib_1.__decorate([
|
|
227
|
+
(0, graphql_1.Field)(() => graphql_type_json_1.default, { nullable: true }),
|
|
228
|
+
tslib_1.__metadata("design:type", Object)
|
|
229
|
+
], ProductThemeBlock.prototype, "data", void 0);
|
|
230
|
+
exports.ProductThemeBlock = ProductThemeBlock = tslib_1.__decorate([
|
|
231
|
+
(0, graphql_1.ObjectType)()
|
|
232
|
+
], ProductThemeBlock);
|
|
233
|
+
// ============ Recommended Product Type ============
|
|
234
|
+
let RecommendedProductFeaturedImage = class RecommendedProductFeaturedImage {
|
|
235
|
+
url;
|
|
236
|
+
altText;
|
|
237
|
+
width;
|
|
238
|
+
height;
|
|
239
|
+
};
|
|
240
|
+
exports.RecommendedProductFeaturedImage = RecommendedProductFeaturedImage;
|
|
241
|
+
tslib_1.__decorate([
|
|
242
|
+
(0, graphql_1.Field)(),
|
|
243
|
+
tslib_1.__metadata("design:type", String)
|
|
244
|
+
], RecommendedProductFeaturedImage.prototype, "url", void 0);
|
|
245
|
+
tslib_1.__decorate([
|
|
246
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
247
|
+
tslib_1.__metadata("design:type", Object)
|
|
248
|
+
], RecommendedProductFeaturedImage.prototype, "altText", void 0);
|
|
249
|
+
tslib_1.__decorate([
|
|
250
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
251
|
+
tslib_1.__metadata("design:type", Number)
|
|
252
|
+
], RecommendedProductFeaturedImage.prototype, "width", void 0);
|
|
253
|
+
tslib_1.__decorate([
|
|
254
|
+
(0, graphql_1.Field)(() => graphql_1.Int, { nullable: true }),
|
|
255
|
+
tslib_1.__metadata("design:type", Number)
|
|
256
|
+
], RecommendedProductFeaturedImage.prototype, "height", void 0);
|
|
257
|
+
exports.RecommendedProductFeaturedImage = RecommendedProductFeaturedImage = tslib_1.__decorate([
|
|
258
|
+
(0, graphql_1.ObjectType)()
|
|
259
|
+
], RecommendedProductFeaturedImage);
|
|
260
|
+
let RecommendedProductImage = class RecommendedProductImage {
|
|
261
|
+
id;
|
|
262
|
+
url;
|
|
263
|
+
altText;
|
|
264
|
+
width;
|
|
265
|
+
height;
|
|
266
|
+
};
|
|
267
|
+
exports.RecommendedProductImage = RecommendedProductImage;
|
|
268
|
+
tslib_1.__decorate([
|
|
269
|
+
(0, graphql_1.Field)(),
|
|
270
|
+
tslib_1.__metadata("design:type", String)
|
|
271
|
+
], RecommendedProductImage.prototype, "id", void 0);
|
|
272
|
+
tslib_1.__decorate([
|
|
273
|
+
(0, graphql_1.Field)(),
|
|
274
|
+
tslib_1.__metadata("design:type", String)
|
|
275
|
+
], RecommendedProductImage.prototype, "url", void 0);
|
|
276
|
+
tslib_1.__decorate([
|
|
277
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
278
|
+
tslib_1.__metadata("design:type", String)
|
|
279
|
+
], RecommendedProductImage.prototype, "altText", void 0);
|
|
280
|
+
tslib_1.__decorate([
|
|
281
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
282
|
+
tslib_1.__metadata("design:type", Number)
|
|
283
|
+
], RecommendedProductImage.prototype, "width", void 0);
|
|
284
|
+
tslib_1.__decorate([
|
|
285
|
+
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
286
|
+
tslib_1.__metadata("design:type", Number)
|
|
287
|
+
], RecommendedProductImage.prototype, "height", void 0);
|
|
288
|
+
exports.RecommendedProductImage = RecommendedProductImage = tslib_1.__decorate([
|
|
289
|
+
(0, graphql_1.ObjectType)()
|
|
290
|
+
], RecommendedProductImage);
|
|
291
|
+
let RecommendedProduct = class RecommendedProduct {
|
|
292
|
+
id;
|
|
293
|
+
handle;
|
|
294
|
+
title;
|
|
295
|
+
vendor;
|
|
296
|
+
productType;
|
|
297
|
+
featuredImage;
|
|
298
|
+
images;
|
|
299
|
+
priceRange;
|
|
300
|
+
compareAtPrice;
|
|
301
|
+
tags;
|
|
302
|
+
displayTag;
|
|
303
|
+
};
|
|
304
|
+
exports.RecommendedProduct = RecommendedProduct;
|
|
305
|
+
tslib_1.__decorate([
|
|
306
|
+
(0, graphql_1.Field)(),
|
|
307
|
+
tslib_1.__metadata("design:type", String)
|
|
308
|
+
], RecommendedProduct.prototype, "id", void 0);
|
|
309
|
+
tslib_1.__decorate([
|
|
310
|
+
(0, graphql_1.Field)(),
|
|
311
|
+
tslib_1.__metadata("design:type", String)
|
|
312
|
+
], RecommendedProduct.prototype, "handle", void 0);
|
|
313
|
+
tslib_1.__decorate([
|
|
314
|
+
(0, graphql_1.Field)(),
|
|
315
|
+
tslib_1.__metadata("design:type", String)
|
|
316
|
+
], RecommendedProduct.prototype, "title", void 0);
|
|
317
|
+
tslib_1.__decorate([
|
|
318
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
319
|
+
tslib_1.__metadata("design:type", String)
|
|
320
|
+
], RecommendedProduct.prototype, "vendor", void 0);
|
|
321
|
+
tslib_1.__decorate([
|
|
322
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
323
|
+
tslib_1.__metadata("design:type", String)
|
|
324
|
+
], RecommendedProduct.prototype, "productType", void 0);
|
|
325
|
+
tslib_1.__decorate([
|
|
326
|
+
(0, graphql_1.Field)(() => RecommendedProductFeaturedImage, { nullable: true }),
|
|
327
|
+
tslib_1.__metadata("design:type", Object)
|
|
328
|
+
], RecommendedProduct.prototype, "featuredImage", void 0);
|
|
329
|
+
tslib_1.__decorate([
|
|
330
|
+
(0, graphql_1.Field)(() => [RecommendedProductImage], { nullable: true }),
|
|
331
|
+
tslib_1.__metadata("design:type", Array)
|
|
332
|
+
], RecommendedProduct.prototype, "images", void 0);
|
|
333
|
+
tslib_1.__decorate([
|
|
334
|
+
(0, graphql_1.Field)(() => ProductContentPriceRange),
|
|
335
|
+
tslib_1.__metadata("design:type", ProductContentPriceRange)
|
|
336
|
+
], RecommendedProduct.prototype, "priceRange", void 0);
|
|
337
|
+
tslib_1.__decorate([
|
|
338
|
+
(0, graphql_1.Field)(() => ProductContentMoney, { nullable: true }),
|
|
339
|
+
tslib_1.__metadata("design:type", Object)
|
|
340
|
+
], RecommendedProduct.prototype, "compareAtPrice", void 0);
|
|
341
|
+
tslib_1.__decorate([
|
|
342
|
+
(0, graphql_1.Field)(() => [String], { nullable: true }),
|
|
343
|
+
tslib_1.__metadata("design:type", Array)
|
|
344
|
+
], RecommendedProduct.prototype, "tags", void 0);
|
|
345
|
+
tslib_1.__decorate([
|
|
346
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
347
|
+
tslib_1.__metadata("design:type", Object)
|
|
348
|
+
], RecommendedProduct.prototype, "displayTag", void 0);
|
|
349
|
+
exports.RecommendedProduct = RecommendedProduct = tslib_1.__decorate([
|
|
350
|
+
(0, graphql_1.ObjectType)()
|
|
351
|
+
], RecommendedProduct);
|
|
352
|
+
// ============ Unified Section Type ============
|
|
353
|
+
let ProductContentSection = class ProductContentSection {
|
|
354
|
+
id;
|
|
355
|
+
type;
|
|
356
|
+
settings;
|
|
357
|
+
blocks;
|
|
358
|
+
products;
|
|
359
|
+
};
|
|
360
|
+
exports.ProductContentSection = ProductContentSection;
|
|
361
|
+
tslib_1.__decorate([
|
|
362
|
+
(0, graphql_1.Field)(),
|
|
363
|
+
tslib_1.__metadata("design:type", String)
|
|
364
|
+
], ProductContentSection.prototype, "id", void 0);
|
|
365
|
+
tslib_1.__decorate([
|
|
366
|
+
(0, graphql_1.Field)(),
|
|
367
|
+
tslib_1.__metadata("design:type", String)
|
|
368
|
+
], ProductContentSection.prototype, "type", void 0);
|
|
369
|
+
tslib_1.__decorate([
|
|
370
|
+
(0, graphql_1.Field)(() => graphql_type_json_1.default, { nullable: true }),
|
|
371
|
+
tslib_1.__metadata("design:type", Object)
|
|
372
|
+
], ProductContentSection.prototype, "settings", void 0);
|
|
373
|
+
tslib_1.__decorate([
|
|
374
|
+
(0, graphql_1.Field)(() => [ProductThemeBlock], { nullable: true }),
|
|
375
|
+
tslib_1.__metadata("design:type", Array)
|
|
376
|
+
], ProductContentSection.prototype, "blocks", void 0);
|
|
377
|
+
tslib_1.__decorate([
|
|
378
|
+
(0, graphql_1.Field)(() => [RecommendedProduct], { nullable: true }),
|
|
379
|
+
tslib_1.__metadata("design:type", Array)
|
|
380
|
+
], ProductContentSection.prototype, "products", void 0);
|
|
381
|
+
exports.ProductContentSection = ProductContentSection = tslib_1.__decorate([
|
|
382
|
+
(0, graphql_1.ObjectType)()
|
|
383
|
+
], ProductContentSection);
|
|
384
|
+
//# sourceMappingURL=common.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.types.js","sourceRoot":"","sources":["../../../src/product-content/types/common.types.ts"],"names":[],"mappings":";;;;AAAA,6CAAyD;AACzD,kFAA4C;AAE5C,uCAAuC;AAGhC,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAE9B,IAAI,CAAS;IAGb,OAAO,CAAS;CACjB,CAAA;AANY,kDAAmB;AAE9B;IADC,IAAA,eAAK,GAAE;;iDACK;AAGb;IADC,IAAA,eAAK,GAAE;;oDACQ;8BALL,mBAAmB;IAD/B,IAAA,oBAAU,GAAE;GACA,mBAAmB,CAM/B;AAED,0DAA0D;AAGnD,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAE9B,GAAG,CAAS;IAGZ,OAAO,CAAgB;IAGvB,KAAK,CAAS;IAGd,MAAM,CAAS;CAChB,CAAA;AAZY,kDAAmB;AAE9B;IADC,IAAA,eAAK,GAAE;;gDACI;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACjB;AAGvB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;kDACH;AAGd;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;mDACF;8BAXJ,mBAAmB;IAD/B,IAAA,oBAAU,GAAE;GACA,mBAAmB,CAY/B;AAGM,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAE9B,MAAM,CAAS;IAGf,YAAY,CAAS;CACtB,CAAA;AANY,kDAAmB;AAE9B;IADC,IAAA,eAAK,GAAE;;mDACO;AAGf;IADC,IAAA,eAAK,GAAE;;yDACa;8BALV,mBAAmB;IAD/B,IAAA,oBAAU,GAAE;GACA,mBAAmB,CAM/B;AAGM,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IAEnC,eAAe,CAAsB;IAGrC,eAAe,CAAsB;CACtC,CAAA;AANY,4DAAwB;AAEnC;IADC,IAAA,e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T;AAG5C;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDAC1B;AAGhB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACb;6BAhChB,kBAAkB;IAD9B,IAAA,oBAAU,GAAE;GACA,kBAAkB,CAiC9B;AAED,iDAAiD;AAG1C,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAEhC,EAAE,CAAS;IAGX,IAAI,CAAS;IAGb,QAAQ,CAA2B;IAGnC,MAAM,CAAuB;IAG7B,QAAQ,CAAwB;CACjC,CAAA;AAfY,sDAAqB;AAEhC;IADC,IAAA,eAAK,GAAE;;iDACG;AAGX;IADC,IAAA,eAAK,GAAE;;mDACK;AAGb;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,2BAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACV;AAGnC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,iBAAiB,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACxB;AAG7B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,kBAAkB,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACtB;gCAdrB,qBAAqB;IADjC,IAAA,oBAAU,GAAE;GACA,qBAAqB,CAejC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/product-content/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("./common.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/product-content/types/index.ts"],"names":[],"mappings":";;;AAAA,yDAA+B;AAC/B,2DAAiC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ProductContentError, ProductContentSection } from './common.types';
|
|
2
|
+
export declare class ProductContentData {
|
|
3
|
+
sections: ProductContentSection[];
|
|
4
|
+
}
|
|
5
|
+
export declare class ProductContentResponse {
|
|
6
|
+
success: boolean;
|
|
7
|
+
data?: ProductContentData;
|
|
8
|
+
error?: ProductContentError;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=response.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.types.d.ts","sourceRoot":"","sources":["../../../src/product-content/types/response.types.ts"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,gBAAgB,CAAC;AAExB,qBACa,kBAAkB;IAE7B,QAAQ,EAAE,qBAAqB,EAAE,CAAC;CACnC;AAED,qBACa,sBAAsB;IAEjC,OAAO,EAAE,OAAO,CAAC;IAGjB,IAAI,CAAC,EAAE,kBAAkB,CAAC;IAG1B,KAAK,CAAC,EAAE,mBAAmB,CAAC;CAC7B"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProductContentResponse = exports.ProductContentData = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const graphql_1 = require("@nestjs/graphql");
|
|
6
|
+
const common_types_1 = require("./common.types");
|
|
7
|
+
let ProductContentData = class ProductContentData {
|
|
8
|
+
sections;
|
|
9
|
+
};
|
|
10
|
+
exports.ProductContentData = ProductContentData;
|
|
11
|
+
tslib_1.__decorate([
|
|
12
|
+
(0, graphql_1.Field)(() => [common_types_1.ProductContentSection]),
|
|
13
|
+
tslib_1.__metadata("design:type", Array)
|
|
14
|
+
], ProductContentData.prototype, "sections", void 0);
|
|
15
|
+
exports.ProductContentData = ProductContentData = tslib_1.__decorate([
|
|
16
|
+
(0, graphql_1.ObjectType)()
|
|
17
|
+
], ProductContentData);
|
|
18
|
+
let ProductContentResponse = class ProductContentResponse {
|
|
19
|
+
success;
|
|
20
|
+
data;
|
|
21
|
+
error;
|
|
22
|
+
};
|
|
23
|
+
exports.ProductContentResponse = ProductContentResponse;
|
|
24
|
+
tslib_1.__decorate([
|
|
25
|
+
(0, graphql_1.Field)(),
|
|
26
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
27
|
+
], ProductContentResponse.prototype, "success", void 0);
|
|
28
|
+
tslib_1.__decorate([
|
|
29
|
+
(0, graphql_1.Field)(() => ProductContentData, { nullable: true }),
|
|
30
|
+
tslib_1.__metadata("design:type", ProductContentData)
|
|
31
|
+
], ProductContentResponse.prototype, "data", void 0);
|
|
32
|
+
tslib_1.__decorate([
|
|
33
|
+
(0, graphql_1.Field)(() => common_types_1.ProductContentError, { nullable: true }),
|
|
34
|
+
tslib_1.__metadata("design:type", common_types_1.ProductContentError)
|
|
35
|
+
], ProductContentResponse.prototype, "error", void 0);
|
|
36
|
+
exports.ProductContentResponse = ProductContentResponse = tslib_1.__decorate([
|
|
37
|
+
(0, graphql_1.ObjectType)()
|
|
38
|
+
], ProductContentResponse);
|
|
39
|
+
//# sourceMappingURL=response.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.types.js","sourceRoot":"","sources":["../../../src/product-content/types/response.types.ts"],"names":[],"mappings":";;;;AAAA,6CAAoD;AACpD,iDAGwB;AAGjB,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAE7B,QAAQ,CAA0B;CACnC,CAAA;AAHY,gDAAkB;AAE7B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,oCAAqB,CAAC,CAAC;;oDACH;6BAFvB,kBAAkB;IAD9B,IAAA,oBAAU,GAAE;GACA,kBAAkB,CAG9B;AAGM,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAEjC,OAAO,CAAU;IAGjB,IAAI,CAAsB;IAG1B,KAAK,CAAuB;CAC7B,CAAA;AATY,wDAAsB;AAEjC;IADC,IAAA,eAAK,GAAE;;uDACS;AAGjB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,kBAAkB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC7C,kBAAkB;oDAAC;AAG1B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,kCAAmB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAC7C,kCAAmB;qDAAC;iCARjB,sBAAsB;IADlC,IAAA,oBAAU,GAAE;GACA,sBAAsB,CASlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/serviceability/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,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("./serviceability.module"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./serviceability.resolver"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./serviceability.service"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./serviceability.types"), exports);
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/serviceability/index.ts"],"names":[],"mappings":";;;AAAA,kEAAwC;AACxC,oEAA0C;AAC1C,mEAAyC;AACzC,iEAAuC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serviceability.module.d.ts","sourceRoot":"","sources":["../../src/serviceability/serviceability.module.ts"],"names":[],"mappings":"AAKA,qBAIa,oBAAoB;CAAG"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceabilityModule = 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 serviceability_resolver_1 = require("./serviceability.resolver");
|
|
8
|
+
const serviceability_service_1 = require("./serviceability.service");
|
|
9
|
+
let ServiceabilityModule = class ServiceabilityModule {
|
|
10
|
+
};
|
|
11
|
+
exports.ServiceabilityModule = ServiceabilityModule;
|
|
12
|
+
exports.ServiceabilityModule = ServiceabilityModule = tslib_1.__decorate([
|
|
13
|
+
(0, common_1.Module)({
|
|
14
|
+
imports: [core_1.IntegrationsModule],
|
|
15
|
+
providers: [serviceability_resolver_1.ServiceabilityResolver, serviceability_service_1.ServiceabilityService],
|
|
16
|
+
})
|
|
17
|
+
], ServiceabilityModule);
|
|
18
|
+
//# sourceMappingURL=serviceability.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serviceability.module.js","sourceRoot":"","sources":["../../src/serviceability/serviceability.module.ts"],"names":[],"mappings":";;;;AAAA,2CAAwC;AACxC,wCAAmD;AACnD,uEAAmE;AACnE,qEAAiE;AAM1D,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAAG,CAAA;AAAvB,oDAAoB;+BAApB,oBAAoB;IAJhC,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,yBAAkB,CAAC;QAC7B,SAAS,EAAE,CAAC,gDAAsB,EAAE,8CAAqB,CAAC;KAC3D,CAAC;GACW,oBAAoB,CAAG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ServiceabilityService } from './serviceability.service';
|
|
2
|
+
import { ServiceabilityCheckInput, ServiceabilityResult } from './serviceability.types';
|
|
3
|
+
interface GqlContext {
|
|
4
|
+
req: {
|
|
5
|
+
brand: string;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Serviceability Resolver
|
|
10
|
+
*
|
|
11
|
+
* GraphQL resolver for product delivery serviceability checks.
|
|
12
|
+
*/
|
|
13
|
+
export declare class ServiceabilityResolver {
|
|
14
|
+
private readonly serviceabilityService;
|
|
15
|
+
constructor(serviceabilityService: ServiceabilityService);
|
|
16
|
+
checkServiceability(ctx: GqlContext, input: ServiceabilityCheckInput): Promise<ServiceabilityResult[]>;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=serviceability.resolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serviceability.resolver.d.ts","sourceRoot":"","sources":["../../src/serviceability/serviceability.resolver.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,wBAAwB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAExF,UAAU,UAAU;IAClB,GAAG,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;CACxB;AAED;;;;GAIG;AACH,qBAEa,sBAAsB;IACrB,OAAO,CAAC,QAAQ,CAAC,qBAAqB;gBAArB,qBAAqB,EAAE,qBAAqB;IAKnE,mBAAmB,CACZ,GAAG,EAAE,UAAU,EACX,KAAK,EAAE,wBAAwB,GAC7C,OAAO,CAAC,oBAAoB,EAAE,CAAC;CAGnC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceabilityResolver = 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 serviceability_service_1 = require("./serviceability.service");
|
|
9
|
+
const serviceability_types_1 = require("./serviceability.types");
|
|
10
|
+
/**
|
|
11
|
+
* Serviceability Resolver
|
|
12
|
+
*
|
|
13
|
+
* GraphQL resolver for product delivery serviceability checks.
|
|
14
|
+
*/
|
|
15
|
+
let ServiceabilityResolver = class ServiceabilityResolver {
|
|
16
|
+
serviceabilityService;
|
|
17
|
+
constructor(serviceabilityService) {
|
|
18
|
+
this.serviceabilityService = serviceabilityService;
|
|
19
|
+
}
|
|
20
|
+
async checkServiceability(ctx, input) {
|
|
21
|
+
return this.serviceabilityService.checkServiceability(ctx.req.brand, input);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
exports.ServiceabilityResolver = ServiceabilityResolver;
|
|
25
|
+
tslib_1.__decorate([
|
|
26
|
+
(0, graphql_1.Query)(() => [serviceability_types_1.ServiceabilityResult], {
|
|
27
|
+
description: 'Check delivery serviceability for items at a given location',
|
|
28
|
+
}),
|
|
29
|
+
tslib_1.__param(0, (0, graphql_1.Context)()),
|
|
30
|
+
tslib_1.__param(1, (0, graphql_1.Args)('input')),
|
|
31
|
+
tslib_1.__metadata("design:type", Function),
|
|
32
|
+
tslib_1.__metadata("design:paramtypes", [Object, serviceability_types_1.ServiceabilityCheckInput]),
|
|
33
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
34
|
+
], ServiceabilityResolver.prototype, "checkServiceability", null);
|
|
35
|
+
exports.ServiceabilityResolver = ServiceabilityResolver = tslib_1.__decorate([
|
|
36
|
+
(0, graphql_1.Resolver)(),
|
|
37
|
+
(0, common_1.UseGuards)(core_1.TenantGuard),
|
|
38
|
+
tslib_1.__metadata("design:paramtypes", [serviceability_service_1.ServiceabilityService])
|
|
39
|
+
], ServiceabilityResolver);
|
|
40
|
+
//# sourceMappingURL=serviceability.resolver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serviceability.resolver.js","sourceRoot":"","sources":["../../src/serviceability/serviceability.resolver.ts"],"names":[],"mappings":";;;;AAAA,6CAAiE;AACjE,2CAA2C;AAC3C,wCAA4C;AAC5C,qEAAiE;AACjE,iEAAwF;AAMxF;;;;GAIG;AAGI,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACJ;IAA7B,YAA6B,qBAA4C;QAA5C,0BAAqB,GAArB,qBAAqB,CAAuB;IAAG,CAAC;IAKvE,AAAN,KAAK,CAAC,mBAAmB,CACZ,GAAe,EACX,KAA+B;QAE9C,OAAO,IAAI,CAAC,qBAAqB,CAAC,mBAAmB,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC9E,CAAC;CACF,CAAA;AAZY,wDAAsB;AAM3B;IAHL,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,2CAAoB,CAAC,EAAE;QACnC,WAAW,EAAE,6DAA6D;KAC3E,CAAC;IAEC,mBAAA,IAAA,iBAAO,GAAE,CAAA;IACT,mBAAA,IAAA,cAAI,EAAC,OAAO,CAAC,CAAA;;qDAAQ,+CAAwB;;iEAG/C;iCAXU,sBAAsB;IAFlC,IAAA,kBAAQ,GAAE;IACV,IAAA,kBAAS,EAAC,kBAAW,CAAC;6CAE+B,8CAAqB;GAD9D,sBAAsB,CAYlC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { IntegrationFactory, CacheService } from '@pvh-afl/core';
|
|
2
|
+
import { ServiceabilityCheckInput, ServiceabilityResult } from './serviceability.types';
|
|
3
|
+
/**
|
|
4
|
+
* Serviceability Service
|
|
5
|
+
*
|
|
6
|
+
* Business logic for product delivery serviceability checks.
|
|
7
|
+
* Implements caching with stale-while-revalidate pattern.
|
|
8
|
+
*
|
|
9
|
+
* Cache Strategy:
|
|
10
|
+
* - TTL: 5 minutes
|
|
11
|
+
* - Stale At: 4 minutes
|
|
12
|
+
* - Key: {brand}:serviceability:{pincode}:{hash of SKU IDs}
|
|
13
|
+
*/
|
|
14
|
+
export declare class ServiceabilityService {
|
|
15
|
+
private readonly integrationFactory;
|
|
16
|
+
private readonly cacheService;
|
|
17
|
+
private readonly CACHE_TTL;
|
|
18
|
+
private readonly CACHE_STALE_TTL;
|
|
19
|
+
constructor(integrationFactory: IntegrationFactory, cacheService: CacheService);
|
|
20
|
+
/**
|
|
21
|
+
* Check serviceability for items at a given location.
|
|
22
|
+
* Uses cache with background refresh on stale hits.
|
|
23
|
+
*/
|
|
24
|
+
checkServiceability(brand: string, input: ServiceabilityCheckInput): Promise<ServiceabilityResult[]>;
|
|
25
|
+
/**
|
|
26
|
+
* Fetch fresh serviceability data and cache it.
|
|
27
|
+
*/
|
|
28
|
+
private fetchAndCache;
|
|
29
|
+
/**
|
|
30
|
+
* Refresh cache in background without blocking.
|
|
31
|
+
*/
|
|
32
|
+
private refreshInBackground;
|
|
33
|
+
/**
|
|
34
|
+
* Map Omuni response to GraphQL result type.
|
|
35
|
+
*/
|
|
36
|
+
private mapResponse;
|
|
37
|
+
/**
|
|
38
|
+
* Build cache key with hash of sorted SKU IDs.
|
|
39
|
+
*/
|
|
40
|
+
private buildCacheKey;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=serviceability.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serviceability.service.d.ts","sourceRoot":"","sources":["../../src/serviceability/serviceability.service.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,EAClB,YAAY,EAKb,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,wBAAwB,EACxB,oBAAoB,EAErB,MAAM,wBAAwB,CAAC;AAEhC;;;;;;;;;;GAUG;AACH,qBACa,qBAAqB;IAM9B,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,YAAY;IAL/B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAO;IACjC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAO;gBAGpB,kBAAkB,EAAE,kBAAkB,EACtC,YAAY,EAAE,YAAY;IAG7C;;;OAGG;IACG,mBAAmB,CACvB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,wBAAwB,GAC9B,OAAO,CAAC,oBAAoB,EAAE,CAAC;IAyBlC;;OAEG;YACW,aAAa;IA+D3B;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAc3B;;OAEG;IACH,OAAO,CAAC,WAAW;IA6CnB;;OAEG;IACH,OAAO,CAAC,aAAa;CAWtB"}
|