@pvh-afl/graphql 1.1.31 → 1.1.32

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.
@@ -0,0 +1,29 @@
1
+ import { CartLine } from './cart.types';
2
+ import { ServiceabilityResult } from '../serviceability/serviceability.types';
3
+ import { ServiceabilityService } from '../serviceability/serviceability.service';
4
+ import { DeliveryEstimateLoader } from './delivery-estimate.loader';
5
+ interface GqlContext {
6
+ req: {
7
+ brand: string;
8
+ };
9
+ __deliveryEstimateLoader?: DeliveryEstimateLoader;
10
+ }
11
+ /**
12
+ * Field resolver for per-line delivery serviceability / expected delivery date.
13
+ *
14
+ * Lives on the `CartLine` type, so `deliveryEstimate` is available on every
15
+ * operation that returns a `Cart` (the `cart` query and all cart mutations)
16
+ * without any change to those resolvers. It is resolved lazily — the OMS lookup
17
+ * only runs when the client selects the field — and batched across sibling lines
18
+ * via a per-request DeliveryEstimateLoader (one OMS call per pincode).
19
+ *
20
+ * The underlying `ServiceabilityService` is called directly here rather than the
21
+ * public `checkServiceability` GraphQL query.
22
+ */
23
+ export declare class CartLineResolver {
24
+ private readonly serviceabilityService;
25
+ constructor(serviceabilityService: ServiceabilityService);
26
+ deliveryEstimate(line: CartLine, pincode: string, ctx: GqlContext): Promise<ServiceabilityResult | null>;
27
+ }
28
+ export {};
29
+ //# sourceMappingURL=cart-line.resolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cart-line.resolver.d.ts","sourceRoot":"","sources":["../../src/cart/cart-line.resolver.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,UAAU,UAAU;IAClB,GAAG,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACvB,wBAAwB,CAAC,EAAE,sBAAsB,CAAC;CACnD;AAED;;;;;;;;;;;GAWG;AACH,qBAEa,gBAAgB;IACf,OAAO,CAAC,QAAQ,CAAC,qBAAqB;gBAArB,qBAAqB,EAAE,qBAAqB;IAUnE,gBAAgB,CACV,IAAI,EAAE,QAAQ,EAKxB,OAAO,EAAE,MAAM,EACJ,GAAG,EAAE,UAAU,GACzB,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;CAWxC"}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CartLineResolver = 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 cart_types_1 = require("./cart.types");
9
+ const serviceability_types_1 = require("../serviceability/serviceability.types");
10
+ const serviceability_service_1 = require("../serviceability/serviceability.service");
11
+ const delivery_estimate_loader_1 = require("./delivery-estimate.loader");
12
+ /**
13
+ * Field resolver for per-line delivery serviceability / expected delivery date.
14
+ *
15
+ * Lives on the `CartLine` type, so `deliveryEstimate` is available on every
16
+ * operation that returns a `Cart` (the `cart` query and all cart mutations)
17
+ * without any change to those resolvers. It is resolved lazily — the OMS lookup
18
+ * only runs when the client selects the field — and batched across sibling lines
19
+ * via a per-request DeliveryEstimateLoader (one OMS call per pincode).
20
+ *
21
+ * The underlying `ServiceabilityService` is called directly here rather than the
22
+ * public `checkServiceability` GraphQL query.
23
+ */
24
+ let CartLineResolver = class CartLineResolver {
25
+ serviceabilityService;
26
+ constructor(serviceabilityService) {
27
+ this.serviceabilityService = serviceabilityService;
28
+ }
29
+ async deliveryEstimate(line, pincode, ctx) {
30
+ const sku = line.merchandise?.sku;
31
+ if (!sku)
32
+ return null;
33
+ const loader = (ctx.__deliveryEstimateLoader ??= new delivery_estimate_loader_1.DeliveryEstimateLoader(this.serviceabilityService, ctx.req.brand));
34
+ return loader.load(pincode, sku, line.quantity);
35
+ }
36
+ };
37
+ exports.CartLineResolver = CartLineResolver;
38
+ tslib_1.__decorate([
39
+ (0, graphql_1.ResolveField)(() => serviceability_types_1.ServiceabilityResult, {
40
+ nullable: true,
41
+ description: "Delivery serviceability and expected delivery date (EDD) for this line's " +
42
+ 'SKU at the given pincode. Resolved lazily and batched — selecting it on ' +
43
+ 'multiple lines triggers a single OMS lookup per pincode. Returns null if ' +
44
+ 'the line has no SKU or the OMS lookup is unavailable.',
45
+ }),
46
+ tslib_1.__param(0, (0, graphql_1.Parent)()),
47
+ tslib_1.__param(1, (0, graphql_1.Args)('pincode', {
48
+ type: () => String,
49
+ description: 'Delivery pincode/postal code to estimate against',
50
+ })),
51
+ tslib_1.__param(2, (0, graphql_1.Context)()),
52
+ tslib_1.__metadata("design:type", Function),
53
+ tslib_1.__metadata("design:paramtypes", [cart_types_1.CartLine, String, Object]),
54
+ tslib_1.__metadata("design:returntype", Promise)
55
+ ], CartLineResolver.prototype, "deliveryEstimate", null);
56
+ exports.CartLineResolver = CartLineResolver = tslib_1.__decorate([
57
+ (0, graphql_1.Resolver)(() => cart_types_1.CartLine),
58
+ (0, common_1.UseGuards)(core_1.TenantGuard),
59
+ tslib_1.__metadata("design:paramtypes", [serviceability_service_1.ServiceabilityService])
60
+ ], CartLineResolver);
61
+ //# sourceMappingURL=cart-line.resolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cart-line.resolver.js","sourceRoot":"","sources":["../../src/cart/cart-line.resolver.ts"],"names":[],"mappings":";;;;AAAA,6CAAgF;AAChF,2CAA2C;AAC3C,wCAA4C;AAC5C,6CAAwC;AACxC,iFAA8E;AAC9E,qFAAiF;AACjF,yEAAoE;AAOpE;;;;;;;;;;;GAWG;AAGI,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IACE;IAA7B,YAA6B,qBAA4C;QAA5C,0BAAqB,GAArB,qBAAqB,CAAuB;IA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rF,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB;AAED,qBACa,UAAU;IACrB;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,aAAa;CAc3D"}
1
+ {"version":3,"file":"cart.module.d.ts","sourceRoot":"","sources":["../../src/cart/cart.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,aAAa,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAOjE,MAAM,WAAW,iBAAiB;IAChC,qFAAqF;IACrF,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB;AAED,qBACa,UAAU;IACrB;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,aAAa;CAsB3D"}
@@ -6,7 +6,9 @@ const tslib_1 = require("tslib");
6
6
  const common_1 = require("@nestjs/common");
7
7
  const core_1 = require("@pvh-afl/core");
8
8
  const cart_resolver_1 = require("./cart.resolver");
9
+ const cart_line_resolver_1 = require("./cart-line.resolver");
9
10
  const cart_service_1 = require("./cart.service");
11
+ const serviceability_service_1 = require("../serviceability/serviceability.service");
10
12
  let CartModule = CartModule_1 = class CartModule {
11
13
  /**
12
14
  * Configure the CartModule with optional hooks.
@@ -25,7 +27,15 @@ let CartModule = CartModule_1 = class CartModule {
25
27
  * })
26
28
  */
27
29
  static forRoot(options) {
28
- const providers = [cart_resolver_1.CartResolver, cart_service_1.CartService];
30
+ // CartLineResolver adds the per-line `deliveryEstimate` (EDD) field.
31
+ // ServiceabilityService (needs only IntegrationFactory from the already
32
+ // imported IntegrationsModule) backs it by calling OMS directly.
33
+ const providers = [
34
+ cart_resolver_1.CartResolver,
35
+ cart_line_resolver_1.CartLineResolver,
36
+ cart_service_1.CartService,
37
+ serviceability_service_1.ServiceabilityService,
38
+ ];
29
39
  if (options?.hooks) {
30
40
  providers.push(options.hooks);
31
41
  }
@@ -1 +1 @@
1
- {"version":3,"file":"cart.module.js","sourceRoot":"","sources":["../../src/cart/cart.module.ts"],"names":[],"mappings":";;;;;AAAA,2CAAiE;AACjE,wCAAmD;AACnD,mDAA+C;AAC/C,iDAA6C;AAQtC,IAAM,UAAU,kBAAhB,MAAM,UAAU;IACrB;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,OAAO,CAAC,OAA2B;QACxC,MAAM,SAAS,GAAe,CAAC,4BAAY,EAAE,0BAAW,CAAC,CAAC;QAE1D,IAAI,OAAO,EAAE,KAAK,EAAE,CAAC;YACnB,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAChC,CAAC;QAED,OAAO;YACL,MAAM,EAAE,YAAU;YAClB,OAAO,EAAE,CAAC,yBAAkB,CAAC;YAC7B,SAAS;YACT,OAAO,EAAE,CAAC,0BAAW,CAAC;SACvB,CAAC;IACJ,CAAC;CACF,CAAA;AA/BY,gCAAU;qBAAV,UAAU;IADtB,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,UAAU,CA+BtB"}
1
+ {"version":3,"file":"cart.module.js","sourceRoot":"","sources":["../../src/cart/cart.module.ts"],"names":[],"mappings":";;;;;AAAA,2CAAiE;AACjE,wCAAmD;AACnD,mDAA+C;AAC/C,6DAAwD;AACxD,iDAA6C;AAC7C,qFAAiF;AAQ1E,IAAM,UAAU,kBAAhB,MAAM,UAAU;IACrB;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,OAAO,CAAC,OAA2B;QACxC,qEAAqE;QACrE,wEAAwE;QACxE,iEAAiE;QACjE,MAAM,SAAS,GAAe;YAC5B,4BAAY;YACZ,qCAAgB;YAChB,0BAAW;YACX,8CAAqB;SACtB,CAAC;QAEF,IAAI,OAAO,EAAE,KAAK,EAAE,CAAC;YACnB,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAChC,CAAC;QAED,OAAO;YACL,MAAM,EAAE,YAAU;YAClB,OAAO,EAAE,CAAC,yBAAkB,CAAC;YAC7B,SAAS;YACT,OAAO,EAAE,CAAC,0BAAW,CAAC;SACvB,CAAC;IACJ,CAAC;CACF,CAAA;AAvCY,gCAAU;qBAAV,UAAU;IADtB,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,UAAU,CAuCtB"}
@@ -0,0 +1,32 @@
1
+ import { ServiceabilityService } from '../serviceability/serviceability.service';
2
+ import { ServiceabilityResult } from '../serviceability/serviceability.types';
3
+ /**
4
+ * Per-request batcher for cart-line delivery-estimate (EDD) lookups.
5
+ *
6
+ * A `@ResolveField` on `CartLine` is invoked once per line, so a cart with N
7
+ * lines would otherwise fire N separate OMS serviceability calls. This loader
8
+ * collects every `deliveryEstimate(pincode)` call made within the same
9
+ * event-loop tick and issues a SINGLE `ServiceabilityService.checkServiceability`
10
+ * call per distinct pincode, then hands each line back its own result (matched
11
+ * by SKU).
12
+ *
13
+ * One instance is created lazily per GraphQL request and stashed on the request
14
+ * context, so batching and de-duplication are scoped to a single request. This
15
+ * re-implements the small slice of DataLoader we need without adding a new
16
+ * dependency to the shared package.
17
+ */
18
+ export declare class DeliveryEstimateLoader {
19
+ private readonly serviceability;
20
+ private readonly brand;
21
+ private readonly batches;
22
+ constructor(serviceability: ServiceabilityService, brand: string);
23
+ /**
24
+ * Register a line for the given pincode and return a promise that resolves to
25
+ * that line's serviceability result once the batch flushes. Resolves to null
26
+ * (never rejects) when the OMS lookup is unavailable, so a failing EDD lookup
27
+ * degrades gracefully instead of breaking the whole cart response.
28
+ */
29
+ load(pincode: string, skuId: string, quantity: number): Promise<ServiceabilityResult | null>;
30
+ private flush;
31
+ }
32
+ //# sourceMappingURL=delivery-estimate.loader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delivery-estimate.loader.d.ts","sourceRoot":"","sources":["../../src/cart/delivery-estimate.loader.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAQ9E;;;;;;;;;;;;;;GAcG;AACH,qBAAa,sBAAsB;IAI/B,OAAO,CAAC,QAAQ,CAAC,cAAc;IAC/B,OAAO,CAAC,QAAQ,CAAC,KAAK;IAJxB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAoC;gBAGzC,cAAc,EAAE,qBAAqB,EACrC,KAAK,EAAE,MAAM;IAGhC;;;;;OAKG;IACH,IAAI,CACF,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,oBAAoB,GAAG,IAAI,CAAC;YAezB,KAAK;CAqCpB"}
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeliveryEstimateLoader = void 0;
4
+ const core_1 = require("@pvh-afl/core");
5
+ /**
6
+ * Per-request batcher for cart-line delivery-estimate (EDD) lookups.
7
+ *
8
+ * A `@ResolveField` on `CartLine` is invoked once per line, so a cart with N
9
+ * lines would otherwise fire N separate OMS serviceability calls. This loader
10
+ * collects every `deliveryEstimate(pincode)` call made within the same
11
+ * event-loop tick and issues a SINGLE `ServiceabilityService.checkServiceability`
12
+ * call per distinct pincode, then hands each line back its own result (matched
13
+ * by SKU).
14
+ *
15
+ * One instance is created lazily per GraphQL request and stashed on the request
16
+ * context, so batching and de-duplication are scoped to a single request. This
17
+ * re-implements the small slice of DataLoader we need without adding a new
18
+ * dependency to the shared package.
19
+ */
20
+ class DeliveryEstimateLoader {
21
+ serviceability;
22
+ brand;
23
+ batches = new Map();
24
+ constructor(serviceability, brand) {
25
+ this.serviceability = serviceability;
26
+ this.brand = brand;
27
+ }
28
+ /**
29
+ * Register a line for the given pincode and return a promise that resolves to
30
+ * that line's serviceability result once the batch flushes. Resolves to null
31
+ * (never rejects) when the OMS lookup is unavailable, so a failing EDD lookup
32
+ * degrades gracefully instead of breaking the whole cart response.
33
+ */
34
+ load(pincode, skuId, quantity) {
35
+ return new Promise((resolve) => {
36
+ let batch = this.batches.get(pincode);
37
+ if (!batch) {
38
+ batch = [];
39
+ this.batches.set(pincode, batch);
40
+ // Flush after all sibling field resolvers for this tick have registered
41
+ // their lines. graphql-js executes sibling fields synchronously, so by
42
+ // the time this fires every line is in the batch.
43
+ process.nextTick(() => void this.flush(pincode));
44
+ }
45
+ batch.push({ skuId, quantity, resolve });
46
+ });
47
+ }
48
+ async flush(pincode) {
49
+ const batch = this.batches.get(pincode);
50
+ if (!batch)
51
+ return;
52
+ this.batches.delete(pincode);
53
+ // Collapse duplicate SKUs (e.g. the same variant appearing on two lines)
54
+ // into one item, summing quantities, so OMS is queried once per SKU.
55
+ const quantityBySku = new Map();
56
+ for (const line of batch) {
57
+ quantityBySku.set(line.skuId, (quantityBySku.get(line.skuId) ?? 0) + line.quantity);
58
+ }
59
+ const items = Array.from(quantityBySku, ([skuId, quantity]) => ({
60
+ skuId,
61
+ quantity,
62
+ }));
63
+ try {
64
+ const results = await this.serviceability.checkServiceability(this.brand, {
65
+ pincode,
66
+ items,
67
+ });
68
+ const bySku = new Map(results.map((r) => [r.skuId, r]));
69
+ for (const line of batch) {
70
+ line.resolve(bySku.get(line.skuId) ?? null);
71
+ }
72
+ }
73
+ catch (error) {
74
+ core_1.logger.warn('Cart delivery-estimate lookup failed; returning null EDD', {
75
+ brand: this.brand,
76
+ pincode,
77
+ error: error instanceof Error ? error.message : String(error),
78
+ });
79
+ for (const line of batch)
80
+ line.resolve(null);
81
+ }
82
+ }
83
+ }
84
+ exports.DeliveryEstimateLoader = DeliveryEstimateLoader;
85
+ //# sourceMappingURL=delivery-estimate.loader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delivery-estimate.loader.js","sourceRoot":"","sources":["../../src/cart/delivery-estimate.loader.ts"],"names":[],"mappings":";;;AAAA,wCAAuC;AAUvC;;;;;;;;;;;;;;GAcG;AACH,MAAa,sBAAsB;IAId;IACA;IAJF,OAAO,GAAG,IAAI,GA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CACrD,CAAC;QACJ,CAAC;QACD,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC,KAAK,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC;YAC9D,KAAK;YACL,QAAQ;SACT,CAAC,CAAC,CAAC;QAEJ,IAAI,CAAC;YACH,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,mBAAmB,CAAC,IAAI,CAAC,KAAK,EAAE;gBACxE,OAAO;gBACP,KAAK;aACN,CAAC,CAAC;YACH,MAAM,KAAK,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;YACxD,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;gBACzB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,CAAC;YAC9C,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,aAAM,CAAC,IAAI,CAAC,0DAA0D,EAAE;gBACtE,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,OAAO;gBACP,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;aAC9D,CAAC,CAAC;YACH,KAAK,MAAM,IAAI,IAAI,KAAK;gBAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAC/C,CAAC;IACH,CAAC;CACF;AAtED,wDAsEC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pvh-afl/graphql",
3
- "version": "1.1.31",
3
+ "version": "1.1.32",
4
4
  "description": "AFL GraphQL - Shared GraphQL modules for multi-brand commerce platform",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",