@pvh-afl/graphql 1.1.49 → 1.1.51
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/dist/customer/customer.resolver.d.ts +2 -1
- package/dist/customer/customer.resolver.d.ts.map +1 -1
- package/dist/customer/customer.resolver.js +24 -0
- package/dist/customer/customer.resolver.js.map +1 -1
- package/dist/customer/customer.service.d.ts +9 -1
- package/dist/customer/customer.service.d.ts.map +1 -1
- package/dist/customer/customer.service.js +42 -17
- package/dist/customer/customer.service.js.map +1 -1
- package/dist/customer/customer.types.d.ts +6 -11
- package/dist/customer/customer.types.d.ts.map +1 -1
- package/dist/customer/customer.types.js +35 -55
- package/dist/customer/customer.types.js.map +1 -1
- package/dist/loyalty/loyalty.service.js +1 -1
- package/dist/loyalty/loyalty.service.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AuthUser } from '@pvh-afl/core';
|
|
2
2
|
import { CustomerService } from './customer.service';
|
|
3
|
-
import { Customer, CustomerLoginResult, CustomerUpdateInput } from './customer.types';
|
|
3
|
+
import { Customer, CustomerAccessTokenRenewResult, CustomerLoginResult, CustomerUpdateInput } from './customer.types';
|
|
4
4
|
interface GqlContext {
|
|
5
5
|
req: {
|
|
6
6
|
brand: string;
|
|
@@ -12,6 +12,7 @@ export declare class CustomerResolver {
|
|
|
12
12
|
constructor(customerService: CustomerService);
|
|
13
13
|
customer(ctx: GqlContext, customerAccessToken: string): Promise<Customer | null>;
|
|
14
14
|
customerLogin(ctx: GqlContext, email: string, password: string): Promise<CustomerLoginResult>;
|
|
15
|
+
customerAccessTokenRenew(ctx: GqlContext, customerAccessToken: string): Promise<CustomerAccessTokenRenewResult>;
|
|
15
16
|
customerUpdate(ctx: GqlContext, user: AuthUser, input: CustomerUpdateInput): Promise<Customer>;
|
|
16
17
|
}
|
|
17
18
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.resolver.d.ts","sourceRoot":"","sources":["../../src/customer/customer.resolver.ts"],"names":[],"mappings":"AAEA,OAAO,EAA0C,QAAQ,EAAE,MAAM,eAAe,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"customer.resolver.d.ts","sourceRoot":"","sources":["../../src/customer/customer.resolver.ts"],"names":[],"mappings":"AAEA,OAAO,EAA0C,QAAQ,EAAE,MAAM,eAAe,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,8BAA8B,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEtH,UAAU,UAAU;IAClB,GAAG,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,qBACa,gBAAgB;IACf,OAAO,CAAC,QAAQ,CAAC,eAAe;gBAAf,eAAe,EAAE,eAAe;IAavD,QAAQ,CACD,GAAG,EAAE,UAAU,EAK1B,mBAAmB,EAAE,MAAM,GAC1B,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IAkBrB,aAAa,CACN,GAAG,EAAE,UAAU,EAE1B,KAAK,EAAE,MAAM,EAEb,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,mBAAmB,CAAC;IAezB,wBAAwB,CACjB,GAAG,EAAE,UAAU,EAK1B,mBAAmB,EAAE,MAAM,GAC1B,OAAO,CAAC,8BAA8B,CAAC;IAmBpC,cAAc,CACP,GAAG,EAAE,UAAU,EACX,IAAI,EAAE,QAAQ,EAK7B,KAAK,EAAE,mBAAmB,GACzB,OAAO,CAAC,QAAQ,CAAC;CAIrB"}
|
|
@@ -20,6 +20,10 @@ let CustomerResolver = class CustomerResolver {
|
|
|
20
20
|
const brand = ctx.brand ?? ctx.req.brand;
|
|
21
21
|
return this.customerService.login(brand, email, password);
|
|
22
22
|
}
|
|
23
|
+
async customerAccessTokenRenew(ctx, customerAccessToken) {
|
|
24
|
+
const brand = ctx.brand ?? ctx.req.brand;
|
|
25
|
+
return this.customerService.renewToken(brand, customerAccessToken);
|
|
26
|
+
}
|
|
23
27
|
async customerUpdate(ctx, user, input) {
|
|
24
28
|
const brand = ctx.brand ?? ctx.req.brand;
|
|
25
29
|
return this.customerService.updateProfile(brand, user.customerId, input);
|
|
@@ -68,6 +72,26 @@ Capillary coupons to apply).`,
|
|
|
68
72
|
tslib_1.__metadata("design:paramtypes", [Object, String, String]),
|
|
69
73
|
tslib_1.__metadata("design:returntype", Promise)
|
|
70
74
|
], CustomerResolver.prototype, "customerLogin", null);
|
|
75
|
+
tslib_1.__decorate([
|
|
76
|
+
(0, graphql_1.Mutation)(() => customer_types_1.CustomerAccessTokenRenewResult, {
|
|
77
|
+
description: `Renew a Storefront customer access token before it expires.
|
|
78
|
+
|
|
79
|
+
Pass the current (still-valid) \`customerAccessToken\` and receive a fresh token
|
|
80
|
+
plus its new expiry — no email/password needed. Renew proactively, before the
|
|
81
|
+
token's \`expiresAt\`: an already-expired token cannot be renewed, and the
|
|
82
|
+
customer must log in again via customerLogin. Public, like customerLogin — the
|
|
83
|
+
token itself proves the caller's identity.`,
|
|
84
|
+
}),
|
|
85
|
+
(0, common_1.UseGuards)(core_1.TenantGuard),
|
|
86
|
+
tslib_1.__param(0, (0, graphql_1.Context)()),
|
|
87
|
+
tslib_1.__param(1, (0, graphql_1.Args)('customerAccessToken', {
|
|
88
|
+
type: () => String,
|
|
89
|
+
description: 'The current, still-valid Storefront customer access token',
|
|
90
|
+
})),
|
|
91
|
+
tslib_1.__metadata("design:type", Function),
|
|
92
|
+
tslib_1.__metadata("design:paramtypes", [Object, String]),
|
|
93
|
+
tslib_1.__metadata("design:returntype", Promise)
|
|
94
|
+
], CustomerResolver.prototype, "customerAccessTokenRenew", null);
|
|
71
95
|
tslib_1.__decorate([
|
|
72
96
|
(0, graphql_1.Mutation)(() => customer_types_1.Customer, {
|
|
73
97
|
description: `Update the logged-in customer's profile (firstName, lastName, gender, birthDate).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.resolver.js","sourceRoot":"","sources":["../../src/customer/customer.resolver.ts"],"names":[],"mappings":";;;;AAAA,6CAA2E;AAC3E,2CAA2C;AAC3C,wCAAiF;AACjF,yDAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"customer.resolver.js","sourceRoot":"","sources":["../../src/customer/customer.resolver.ts"],"names":[],"mappings":";;;;AAAA,6CAA2E;AAC3E,2CAA2C;AAC3C,wCAAiF;AACjF,yDAAqD;AACrD,qDAAsH;AAQ/G,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IACE;IAA7B,YAA6B,eAAgC;QAAhC,oBAAe,GAAf,eAAe,CAAiB;IAAG,CAAC;IAa3D,AAAN,KAAK,CAAC,QAAQ,CACD,GAAe,EAK1B,mBAA2B;QAE3B,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,IAAI,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC;QACzC,OAAO,IAAI,CAAC,eAAe,CAAC,UAAU,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC;IACrE,CAAC;IAeK,AAAN,KAAK,CAAC,aAAa,CACN,GAAe,EAE1B,KAAa,EAEb,QAAgB;QAEhB,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,IAAI,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC;QACzC,OAAO,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC5D,CAAC;IAYK,AAAN,KAAK,CAAC,wBAAwB,CACjB,GAAe,EAK1B,mBAA2B;QAE3B,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,IAAI,GAAG,CAAC,GAA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,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,+CAA8B,EAAE;QAC9C,WAAW,EAAE;;;;;;2CAM0B;KACxC,CAAC;IACD,IAAA,kBAAS,EAAC,kBAAW,CAAC;IAEpB,mBAAA,IAAA,iBAAO,GAAE,CAAA;IACT,mBAAA,IAAA,cAAI,EAAC,qBAAqB,EAAE;QAC3B,IAAI,EAAE,GAAG,EAAE,CAAC,MAAM;QAClB,WAAW,EAAE,2DAA2D;KACzE,CAAC,CAAA;;;;gEAKH;AAgBK;IAdL,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,yBAAQ,EAAE;QACxB,WAAW,EAAE;;;;;;;;;;8BAUa;KAC3B,CAAC;IACD,IAAA,kBAAS,EAAC,kBAAW,EAAE,mBAAY,CAAC;IAElC,mBAAA,IAAA,iBAAO,GAAE,CAAA;IACT,mBAAA,IAAA,kBAAW,GAAE,CAAA;IACb,mBAAA,IAAA,cAAI,EAAC,OAAO,EAAE;QACb,IAAI,EAAE,GAAG,EAAE,CAAC,oCAAmB;QAC/B,WAAW,EAAE,0BAA0B;KACxC,CAAC,CAAA;;6DACK,oCAAmB;;sDAI3B;2BAjGU,gBAAgB;IAD5B,IAAA,kBAAQ,GAAE;6CAEqC,kCAAe;GADlD,gBAAgB,CAkG5B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IntegrationFactory, ShopifyAdminService, CapillaryCouponService } from '@pvh-afl/core';
|
|
2
|
-
import { Customer, CustomerLoginResult, CustomerUpdateInput } from './customer.types';
|
|
2
|
+
import { Customer, CustomerAccessTokenRenewResult, CustomerLoginResult, CustomerUpdateInput } from './customer.types';
|
|
3
3
|
export declare class CustomerService {
|
|
4
4
|
private readonly integrationFactory;
|
|
5
5
|
private readonly adminService;
|
|
@@ -26,6 +26,14 @@ export declare class CustomerService {
|
|
|
26
26
|
* cartBuyerIdentityUpdate) together with the customer.
|
|
27
27
|
*/
|
|
28
28
|
login(brand: string, email: string, password: string): Promise<CustomerLoginResult>;
|
|
29
|
+
/**
|
|
30
|
+
* Renew a Storefront customer access token before it expires.
|
|
31
|
+
*
|
|
32
|
+
* Extends a still-valid token so the customer keeps their session without
|
|
33
|
+
* re-entering their password. An expired token cannot be renewed — Shopify
|
|
34
|
+
* rejects it and the customer must log in again.
|
|
35
|
+
*/
|
|
36
|
+
renewToken(brand: string, customerAccessToken: string): Promise<CustomerAccessTokenRenewResult>;
|
|
29
37
|
/**
|
|
30
38
|
* Fetch a customer's profile from a Storefront access token.
|
|
31
39
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.service.d.ts","sourceRoot":"","sources":["../../src/customer/customer.service.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAGlB,mBAAmB,EACnB,sBAAsB,EAGvB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,QAAQ,EACR,mBAAmB,EACnB,mBAAmB,EAEpB,MAAM,kBAAkB,CAAC;AAE1B,qBACa,eAAe;IAExB,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAFhB,kBAAkB,EAAE,kBAAkB,EACtC,YAAY,EAAE,mBAAmB,EACjC,gBAAgB,EAAE,sBAAsB;IAG3D,OAAO,CAAC,kBAAkB;IAQ1B;;;OAGG;IACH,OAAO,CAAC,QAAQ;IAOhB;;;OAGG;IACH,OAAO,CAAC,UAAU;IAalB;;;;;;;;OAQG;IACG,KAAK,CACT,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"customer.service.d.ts","sourceRoot":"","sources":["../../src/customer/customer.service.ts"],"names":[],"mappings":"AACA,OAAO,EACL,kBAAkB,EAGlB,mBAAmB,EACnB,sBAAsB,EAGvB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,QAAQ,EACR,8BAA8B,EAC9B,mBAAmB,EACnB,mBAAmB,EAEpB,MAAM,kBAAkB,CAAC;AAE1B,qBACa,eAAe;IAExB,OAAO,CAAC,QAAQ,CAAC,kBAAkB;IACnC,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,gBAAgB;gBAFhB,kBAAkB,EAAE,kBAAkB,EACtC,YAAY,EAAE,mBAAmB,EACjC,gBAAgB,EAAE,sBAAsB;IAG3D,OAAO,CAAC,kBAAkB;IAQ1B;;;OAGG;IACH,OAAO,CAAC,QAAQ;IAOhB;;;OAGG;IACH,OAAO,CAAC,UAAU;IAalB;;;;;;;;OAQG;IACG,KAAK,CACT,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,mBAAmB,CAAC;IAsC/B;;;;;;OAMG;IACG,UAAU,CACd,KAAK,EAAE,MAAM,EACb,mBAAmB,EAAE,MAAM,GAC1B,OAAO,CAAC,8BAA8B,CAAC;IAkB1C;;;;;;;OAOG;IACG,UAAU,CACd,KAAK,EAAE,MAAM,EACb,mBAAmB,EAAE,MAAM,GAC1B,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;IAwC3B;;;;;;;;;OASG;IACG,aAAa,CACjB,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,MAAM,EAClB,KAAK,EAAE,mBAAmB,GACzB,OAAO,CAAC,QAAQ,CAAC;CAgCrB"}
|
|
@@ -77,27 +77,33 @@ let CustomerService = class CustomerService {
|
|
|
77
77
|
// Fetch profile "facts" (gender, birth_date) via the Admin API. The
|
|
78
78
|
// Storefront customer query does not expose these custom metafields.
|
|
79
79
|
const facts = await this.adminService.getCustomerFacts(brand, customer.id);
|
|
80
|
-
// Check Capillary membership by the verified phone; a Capillary outage must
|
|
81
|
-
// not fail login, so treat any lookup error as "not registered".
|
|
82
|
-
let capillaryCustomer = null;
|
|
83
|
-
if (customer.phone) {
|
|
84
|
-
try {
|
|
85
|
-
capillaryCustomer = await this.capillaryService.getCapillaryCustomer(brand, customer.phone);
|
|
86
|
-
}
|
|
87
|
-
catch (error) {
|
|
88
|
-
core_1.logger.warn('Capillary membership check failed during login', {
|
|
89
|
-
brand,
|
|
90
|
-
error: error instanceof Error ? error.message : 'Unknown',
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
80
|
core_1.logger.info('Customer logged in', { brand, customerId: customer.id });
|
|
95
81
|
return {
|
|
96
82
|
customerAccessToken: accessToken,
|
|
97
83
|
expiresAt,
|
|
98
84
|
customer: this.toCustomer(customer, facts),
|
|
99
|
-
|
|
100
|
-
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Renew a Storefront customer access token before it expires.
|
|
89
|
+
*
|
|
90
|
+
* Extends a still-valid token so the customer keeps their session without
|
|
91
|
+
* re-entering their password. An expired token cannot be renewed — Shopify
|
|
92
|
+
* rejects it and the customer must log in again.
|
|
93
|
+
*/
|
|
94
|
+
async renewToken(brand, customerAccessToken) {
|
|
95
|
+
const commerce = this.getCommerceService(brand);
|
|
96
|
+
const result = await commerce.renewCustomerAccessToken(customerAccessToken);
|
|
97
|
+
if (!result.success || !result.data) {
|
|
98
|
+
core_1.logger.warn('Customer token renewal failed', {
|
|
99
|
+
brand,
|
|
100
|
+
errorCode: result.error?.code,
|
|
101
|
+
});
|
|
102
|
+
throw new Error(result.error?.message ?? 'Could not renew access token');
|
|
103
|
+
}
|
|
104
|
+
return {
|
|
105
|
+
customerAccessToken: result.data.accessToken,
|
|
106
|
+
expiresAt: result.data.expiresAt,
|
|
101
107
|
};
|
|
102
108
|
}
|
|
103
109
|
/**
|
|
@@ -120,7 +126,26 @@ let CustomerService = class CustomerService {
|
|
|
120
126
|
}
|
|
121
127
|
const customer = customerResult.data;
|
|
122
128
|
const facts = await this.adminService.getCustomerFacts(brand, customer.id);
|
|
123
|
-
|
|
129
|
+
// Check Capillary (TH Club) membership by the verified phone. One lookup
|
|
130
|
+
// gives both existence and the member id; a Capillary outage must not fail
|
|
131
|
+
// the profile fetch, so treat any error as "not registered".
|
|
132
|
+
let memberId = null;
|
|
133
|
+
if (customer.phone) {
|
|
134
|
+
try {
|
|
135
|
+
memberId = await this.capillaryService.getCapillaryMemberId(brand, customer.phone);
|
|
136
|
+
}
|
|
137
|
+
catch (error) {
|
|
138
|
+
core_1.logger.warn('Capillary membership check failed during profile fetch', {
|
|
139
|
+
brand,
|
|
140
|
+
error: error instanceof Error ? error.message : 'Unknown',
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
return {
|
|
145
|
+
...this.toCustomer(customer, facts),
|
|
146
|
+
registeredInCapillary: memberId != null,
|
|
147
|
+
memberId: memberId ?? undefined,
|
|
148
|
+
};
|
|
124
149
|
}
|
|
125
150
|
/**
|
|
126
151
|
* Update the logged-in customer's profile (firstName, lastName, gender,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.service.js","sourceRoot":"","sources":["../../src/customer/customer.service.ts"],"names":[],"mappings":";;;;AAAA,2CAA4C;AAC5C,wCAQuB;AACvB,
|
|
1
|
+
{"version":3,"file":"customer.service.js","sourceRoot":"","sources":["../../src/customer/customer.service.ts"],"names":[],"mappings":";;;;AAAA,2CAA4C;AAC5C,wCAQuB;AACvB,qDAM0B;AAGnB,IAAM,eAAe,GAArB,MAAM,eAAe;IAEP;IACA;IACA;IAHnB,YACmB,kBAAsC,EACtC,YAAiC,EACjC,gBAAwC;QAFxC,uBAAkB,GAAlB,kBAAkB,CAAoB;QACtC,iBAAY,GAAZ,YAAY,CAAqB;QACjC,qBAAgB,GAAhB,gBAAgB,CAAwB;IACxD,CAAC;IAEI,kBAAkB,CAAC,KAAa;QACtC,MAAM,QAAQ,GAAG,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;QAChE,IAAI,CAAC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,KAAK,CAAC,SAAS,IAAI,IAAI;YAClC,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAAI,IAAI;YAChC,KAAK,EAAE,IAAI;YACX,WAAW,EAAE,CAAC,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;SACzE,CAAC;QAEF,aAAM,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAC;QAE/D,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;IAC9C,CAAC;CACF,CAAA;AA3NY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;6CAG4B,yBAAkB;QACxB,0BAAmB;QACf,6BAAsB;GAJhD,eAAe,CA2N3B"}
|
|
@@ -14,6 +14,8 @@ export declare class Customer {
|
|
|
14
14
|
displayName: string;
|
|
15
15
|
gender?: Gender;
|
|
16
16
|
birthDate?: string;
|
|
17
|
+
registeredInCapillary?: boolean;
|
|
18
|
+
memberId?: string;
|
|
17
19
|
}
|
|
18
20
|
export declare class CustomerUpdateInput {
|
|
19
21
|
firstName?: string;
|
|
@@ -21,20 +23,13 @@ export declare class CustomerUpdateInput {
|
|
|
21
23
|
gender?: Gender;
|
|
22
24
|
birthDate?: string;
|
|
23
25
|
}
|
|
24
|
-
export declare class CapillaryCustomer {
|
|
25
|
-
customerId?: string;
|
|
26
|
-
mobile: string;
|
|
27
|
-
firstName?: string;
|
|
28
|
-
lastName?: string;
|
|
29
|
-
email?: string;
|
|
30
|
-
gender?: string;
|
|
31
|
-
dob?: string;
|
|
32
|
-
}
|
|
33
26
|
export declare class CustomerLoginResult {
|
|
34
27
|
customerAccessToken: string;
|
|
35
28
|
expiresAt: string;
|
|
36
29
|
customer: Customer;
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
}
|
|
31
|
+
export declare class CustomerAccessTokenRenewResult {
|
|
32
|
+
customerAccessToken: string;
|
|
33
|
+
expiresAt: string;
|
|
39
34
|
}
|
|
40
35
|
//# sourceMappingURL=customer.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.types.d.ts","sourceRoot":"","sources":["../../src/customer/customer.types.ts"],"names":[],"mappings":"AAEA;;GAEG;AAEH,oBAAY,MAAM;IAChB,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAWD,qBACa,QAAQ;IAEnB,EAAE,EAAG,MAAM,CAAC;IAGZ,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,WAAW,EAAG,MAAM,CAAC;IAMrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAOhB,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"customer.types.d.ts","sourceRoot":"","sources":["../../src/customer/customer.types.ts"],"names":[],"mappings":"AAEA;;GAEG;AAEH,oBAAY,MAAM;IAChB,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAWD,qBACa,QAAQ;IAEnB,EAAE,EAAG,MAAM,CAAC;IAGZ,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,WAAW,EAAG,MAAM,CAAC;IAMrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAOhB,SAAS,CAAC,EAAE,MAAM,CAAC;IAMnB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAMhC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,qBACa,mBAAmB;IAE9B,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,MAAM,CAAC,EAAE,MAAM,CAAC;IAMhB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBAIa,mBAAmB;IAK9B,mBAAmB,EAAG,MAAM,CAAC;IAG7B,SAAS,EAAG,MAAM,CAAC;IAGnB,QAAQ,EAAG,QAAQ,CAAC;CACrB;AAED,qBAGa,8BAA8B;IAEzC,mBAAmB,EAAG,MAAM,CAAC;IAG7B,SAAS,EAAG,MAAM,CAAC;CACpB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CustomerAccessTokenRenewResult = exports.CustomerLoginResult = exports.CustomerUpdateInput = exports.Customer = exports.Gender = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const graphql_1 = require("@nestjs/graphql");
|
|
6
6
|
/**
|
|
@@ -28,6 +28,8 @@ let Customer = class Customer {
|
|
|
28
28
|
displayName;
|
|
29
29
|
gender;
|
|
30
30
|
birthDate;
|
|
31
|
+
registeredInCapillary;
|
|
32
|
+
memberId;
|
|
31
33
|
};
|
|
32
34
|
exports.Customer = Customer;
|
|
33
35
|
tslib_1.__decorate([
|
|
@@ -68,6 +70,20 @@ tslib_1.__decorate([
|
|
|
68
70
|
}),
|
|
69
71
|
tslib_1.__metadata("design:type", String)
|
|
70
72
|
], Customer.prototype, "birthDate", void 0);
|
|
73
|
+
tslib_1.__decorate([
|
|
74
|
+
(0, graphql_1.Field)({
|
|
75
|
+
nullable: true,
|
|
76
|
+
description: 'Whether the customer is registered in Capillary (TH Club).',
|
|
77
|
+
}),
|
|
78
|
+
tslib_1.__metadata("design:type", Boolean)
|
|
79
|
+
], Customer.prototype, "registeredInCapillary", void 0);
|
|
80
|
+
tslib_1.__decorate([
|
|
81
|
+
(0, graphql_1.Field)({
|
|
82
|
+
nullable: true,
|
|
83
|
+
description: 'Capillary member (internal customer) id, when registered.',
|
|
84
|
+
}),
|
|
85
|
+
tslib_1.__metadata("design:type", String)
|
|
86
|
+
], Customer.prototype, "memberId", void 0);
|
|
71
87
|
exports.Customer = Customer = tslib_1.__decorate([
|
|
72
88
|
(0, graphql_1.ObjectType)({ description: 'A Shopify customer.' })
|
|
73
89
|
], Customer);
|
|
@@ -100,53 +116,10 @@ tslib_1.__decorate([
|
|
|
100
116
|
exports.CustomerUpdateInput = CustomerUpdateInput = tslib_1.__decorate([
|
|
101
117
|
(0, graphql_1.InputType)({ description: 'Fields to update on a customer profile.' })
|
|
102
118
|
], CustomerUpdateInput);
|
|
103
|
-
let CapillaryCustomer = class CapillaryCustomer {
|
|
104
|
-
customerId;
|
|
105
|
-
mobile;
|
|
106
|
-
firstName;
|
|
107
|
-
lastName;
|
|
108
|
-
email;
|
|
109
|
-
gender;
|
|
110
|
-
dob;
|
|
111
|
-
};
|
|
112
|
-
exports.CapillaryCustomer = CapillaryCustomer;
|
|
113
|
-
tslib_1.__decorate([
|
|
114
|
-
(0, graphql_1.Field)({ nullable: true, description: 'Capillary internal customer id' }),
|
|
115
|
-
tslib_1.__metadata("design:type", String)
|
|
116
|
-
], CapillaryCustomer.prototype, "customerId", void 0);
|
|
117
|
-
tslib_1.__decorate([
|
|
118
|
-
(0, graphql_1.Field)({ description: 'Registered mobile number' }),
|
|
119
|
-
tslib_1.__metadata("design:type", String)
|
|
120
|
-
], CapillaryCustomer.prototype, "mobile", void 0);
|
|
121
|
-
tslib_1.__decorate([
|
|
122
|
-
(0, graphql_1.Field)({ nullable: true, description: 'First name' }),
|
|
123
|
-
tslib_1.__metadata("design:type", String)
|
|
124
|
-
], CapillaryCustomer.prototype, "firstName", void 0);
|
|
125
|
-
tslib_1.__decorate([
|
|
126
|
-
(0, graphql_1.Field)({ nullable: true, description: 'Last name' }),
|
|
127
|
-
tslib_1.__metadata("design:type", String)
|
|
128
|
-
], CapillaryCustomer.prototype, "lastName", void 0);
|
|
129
|
-
tslib_1.__decorate([
|
|
130
|
-
(0, graphql_1.Field)({ nullable: true, description: 'Email' }),
|
|
131
|
-
tslib_1.__metadata("design:type", String)
|
|
132
|
-
], CapillaryCustomer.prototype, "email", void 0);
|
|
133
|
-
tslib_1.__decorate([
|
|
134
|
-
(0, graphql_1.Field)({ nullable: true, description: 'Gender' }),
|
|
135
|
-
tslib_1.__metadata("design:type", String)
|
|
136
|
-
], CapillaryCustomer.prototype, "gender", void 0);
|
|
137
|
-
tslib_1.__decorate([
|
|
138
|
-
(0, graphql_1.Field)({ nullable: true, description: 'Date of birth as stored in Capillary' }),
|
|
139
|
-
tslib_1.__metadata("design:type", String)
|
|
140
|
-
], CapillaryCustomer.prototype, "dob", void 0);
|
|
141
|
-
exports.CapillaryCustomer = CapillaryCustomer = tslib_1.__decorate([
|
|
142
|
-
(0, graphql_1.ObjectType)({ description: "A customer's basic profile from Capillary." })
|
|
143
|
-
], CapillaryCustomer);
|
|
144
119
|
let CustomerLoginResult = class CustomerLoginResult {
|
|
145
120
|
customerAccessToken;
|
|
146
121
|
expiresAt;
|
|
147
122
|
customer;
|
|
148
|
-
registeredInCapillary;
|
|
149
|
-
capillaryDetails;
|
|
150
123
|
};
|
|
151
124
|
exports.CustomerLoginResult = CustomerLoginResult;
|
|
152
125
|
tslib_1.__decorate([
|
|
@@ -163,20 +136,27 @@ tslib_1.__decorate([
|
|
|
163
136
|
(0, graphql_1.Field)(() => Customer, { description: 'The authenticated customer.' }),
|
|
164
137
|
tslib_1.__metadata("design:type", Customer)
|
|
165
138
|
], CustomerLoginResult.prototype, "customer", void 0);
|
|
166
|
-
tslib_1.__decorate([
|
|
167
|
-
(0, graphql_1.Field)({ description: 'Whether the customer is registered in Capillary' }),
|
|
168
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
169
|
-
], CustomerLoginResult.prototype, "registeredInCapillary", void 0);
|
|
170
|
-
tslib_1.__decorate([
|
|
171
|
-
(0, graphql_1.Field)(() => CapillaryCustomer, {
|
|
172
|
-
nullable: true,
|
|
173
|
-
description: "The customer's Capillary profile, when registered.",
|
|
174
|
-
}),
|
|
175
|
-
tslib_1.__metadata("design:type", CapillaryCustomer)
|
|
176
|
-
], CustomerLoginResult.prototype, "capillaryDetails", void 0);
|
|
177
139
|
exports.CustomerLoginResult = CustomerLoginResult = tslib_1.__decorate([
|
|
178
140
|
(0, graphql_1.ObjectType)({
|
|
179
141
|
description: 'Result of a customer login: a Storefront access token plus the customer.',
|
|
180
142
|
})
|
|
181
143
|
], CustomerLoginResult);
|
|
144
|
+
let CustomerAccessTokenRenewResult = class CustomerAccessTokenRenewResult {
|
|
145
|
+
customerAccessToken;
|
|
146
|
+
expiresAt;
|
|
147
|
+
};
|
|
148
|
+
exports.CustomerAccessTokenRenewResult = CustomerAccessTokenRenewResult;
|
|
149
|
+
tslib_1.__decorate([
|
|
150
|
+
(0, graphql_1.Field)({ description: 'The renewed Storefront customer access token.' }),
|
|
151
|
+
tslib_1.__metadata("design:type", String)
|
|
152
|
+
], CustomerAccessTokenRenewResult.prototype, "customerAccessToken", void 0);
|
|
153
|
+
tslib_1.__decorate([
|
|
154
|
+
(0, graphql_1.Field)({ description: 'ISO-8601 timestamp when the renewed token expires.' }),
|
|
155
|
+
tslib_1.__metadata("design:type", String)
|
|
156
|
+
], CustomerAccessTokenRenewResult.prototype, "expiresAt", void 0);
|
|
157
|
+
exports.CustomerAccessTokenRenewResult = CustomerAccessTokenRenewResult = tslib_1.__decorate([
|
|
158
|
+
(0, graphql_1.ObjectType)({
|
|
159
|
+
description: 'Result of renewing a Storefront customer access token.',
|
|
160
|
+
})
|
|
161
|
+
], CustomerAccessTokenRenewResult);
|
|
182
162
|
//# sourceMappingURL=customer.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer.types.js","sourceRoot":"","sources":["../../src/customer/customer.types.ts"],"names":[],"mappings":";;;;AAAA,6CAAiF;AAEjF;;GAEG;AAEH,IAAY,MAGX;AAHD,WAAY,MAAM;IAChB,uBA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B,KAAK,CAAC,GAAG,GAAG;YACjE,CAAC,CAAC,gCAAgC,KAAK,CAAC,GAAG,GAAG,CAAC;QAEnD,OAAO;YACL,SAAS,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;gBAC/B,IAAI,EAAE,CAAC,CAAC,IAAI;gBACZ,KAAK,EAAE,CAAC,CAAC,KAAK;gBACd,WAAW,EAAE,CAAC,CAAC,WAAW;gBAC1B,YAAY,EAAE,CAAC,CAAC,YAAY;gBAC5B,aAAa,EAAE,CAAC,CAAC,aAAa;gBAC9B,YAAY,EAAE,CAAC,CAAC,YAAY;gBAC5B,aAAa,EAAE,CAAC,CAAC,aAAa;gBAC9B,QAAQ,EAAE,CAAC,CAAC,QAAQ;gBACpB,MAAM,EAAE,CAAC,CAAC,MAAM;gBAChB,MAAM,EAAE,CAAC,CAAC,MAAM;gBAChB,UAAU,EAAE,CAAC,CAAC,UAAU;gBACxB,UAAU,EAAE,CAAC,CAAC,UAAU;gBACxB,sBAAsB,EAAE,CAAC,CAAC,sBAAsB;gBAChD,YAAY,EAAE,CAAC,CAAC,YAAY;gBAC5B,IAAI,EAAE,CAAC,CAAC,IAAI;aACb,CAAC,CAAC;YACH,OAAO;SACR,CAAC;IACJ,CAAC;CACF,CAAA;AAhIY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;6CAGuB,6BAAsB;QAChB,0BAAmB;GAHhD,cAAc,CAgI1B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pvh-afl/graphql",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.51",
|
|
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",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@nestjs/common": "^10.0.0",
|
|
23
23
|
"@nestjs/core": "^10.0.0",
|
|
24
24
|
"@nestjs/graphql": "^12.0.0",
|
|
25
|
-
"@pvh-afl/core": "^1.1.
|
|
25
|
+
"@pvh-afl/core": "^1.1.34",
|
|
26
26
|
"graphql": "^16.0.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@nestjs/core": "^10.4.0",
|
|
33
33
|
"@nestjs/graphql": "^12.2.0",
|
|
34
34
|
"@nestjs/testing": "^10.4.0",
|
|
35
|
-
"@pvh-afl/core": "^1.1.
|
|
35
|
+
"@pvh-afl/core": "^1.1.34",
|
|
36
36
|
"@types/jest": "^29.5.0",
|
|
37
37
|
"graphql": "^16.9.0",
|
|
38
38
|
"graphql-type-json": "^0.3.2",
|