@jetshop/core 5.12.2 → 5.12.3
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/ChannelHandler/PreserveRedirectRouteQuery.gql +1 -1
- package/ChannelHandler/redirectUtils.js +3 -2
- package/ChannelHandler/redirectUtils.js.map +1 -1
- package/components/Auth/formatSignupInput.js +3 -2
- package/components/Auth/formatSignupInput.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +13 -0
@@ -30,13 +30,14 @@ export function primaryRouteForPathFetcher(client) {
|
|
30
30
|
path
|
31
31
|
}
|
32
32
|
});
|
33
|
-
const { id, __typename } = routeQueryResult.data.route.object;
|
33
|
+
const { id, __typename, pageId } = routeQueryResult.data.route.object;
|
34
|
+
const idUesdForRedirect = id || pageId;
|
34
35
|
setSelectedChannel(newChannel);
|
35
36
|
const pathnameQueryResult = yield client.query({
|
36
37
|
fetchPolicy: 'network-only',
|
37
38
|
query: PathnameRedirectQueryMap[__typename],
|
38
39
|
variables: {
|
39
|
-
id
|
40
|
+
id: idUesdForRedirect
|
40
41
|
}
|
41
42
|
});
|
42
43
|
return pathnameQueryResult.data[__typename].primaryRoute.path;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"redirectUtils.js","sourceRoot":"","sources":["redirectUtils.ts"],"names":[],"mappings":";;;;;;;;;AASA,OAAO,0BAA0B,MAAM,kCAAkC,CAAC;AAC1E,OAAO,4BAA4B,MAAM,oCAAoC,CAAC;AAC9E,OAAO,6BAA6B,MAAM,qCAAqC,CAAC;AAChF,OAAO,8BAA8B,MAAM,sCAAsC,CAAC;AAClF,OAAO,yBAAyB,MAAM,iCAAiC,CAAC;AAGxE,MAAM,wBAAwB,GAAG;IAC/B,OAAO,EAAE,4BAA4B;IACrC,QAAQ,EAAE,6BAA6B;IACvC,SAAS,EAAE,8BAA8B;IACzC,IAAI,EAAE,yBAAyB;CAChC,CAAC;AASF,MAAM,UAAU,0BAA0B,CACxC,MAA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AC,KAAK,CAK3C;gBACD,WAAW,EAAE,cAAc;gBAC3B,KAAK,EAAE,wBAAwB,CAAC,UAAU,CAAC;gBAC3C,SAAS,EAAE;oBACT,EAAE,EAAE,iBAAiB;iBACtB;aACF,CAAC,CAAC;YACH,OAAO,mBAAmB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,YAAY,CAAC,IAAI,CAAC;SAC/D;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,GAAG,CAAC;SACZ;IACH,CAAC,CAAA,CAAC;AACJ,CAAC"}
|
@@ -12,7 +12,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
12
12
|
// Map forms to { valuename: { value: "value" } } format required for input
|
13
13
|
// e.g. { country: { value: "Sweden" } }
|
14
14
|
export function formatSignupInput(values, { userType }) {
|
15
|
-
const { emailAddress, password, pid, organizationNumber, country, externalId = '' } = values, rest = __rest(values, ["emailAddress", "password", "pid", "organizationNumber", "country", "externalId"]);
|
15
|
+
const { emailAddress, password, pid, organizationNumber, country, externalId = '', priceListAccessCode = undefined, consents = [] } = values, rest = __rest(values, ["emailAddress", "password", "pid", "organizationNumber", "country", "externalId", "priceListAccessCode", "consents"]);
|
16
16
|
// Currently passing through country.code:country.name for the country
|
17
17
|
// selector. This is a hack for now to get the code and name separately.
|
18
18
|
const [countryCode, countryName] = country.split(':');
|
@@ -32,8 +32,9 @@ export function formatSignupInput(values, { userType }) {
|
|
32
32
|
password,
|
33
33
|
pid,
|
34
34
|
organizationNumber,
|
35
|
+
priceListAccessCode,
|
35
36
|
externalId,
|
36
|
-
consents
|
37
|
+
consents
|
37
38
|
};
|
38
39
|
}
|
39
40
|
//# sourceMappingURL=formatSignupInput.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formatSignupInput.js","sourceRoot":"","sources":["formatSignupInput.ts"],"names":[],"mappings":";;;;;;;;;;;AAOA,2EAA2E;AAC3E,wCAAwC;AACxC,MAAM,UAAU,iBAAiB,CAC/B,MAAuB,EACvB,EAAE,QAAQ,EAAuC;IAEjD,MAAM,EACJ,YAAY,EACZ,QAAQ,EACR,GAAG,EACH,kBAAkB,EAClB,OAAO,EACP,UAAU,GAAG,EAAE,
|
1
|
+
{"version":3,"file":"formatSignupInput.js","sourceRoot":"","sources":["formatSignupInput.ts"],"names":[],"mappings":";;;;;;;;;;;AAOA,2EAA2E;AAC3E,wCAAwC;AACxC,MAAM,UAAU,iBAAiB,CAC/B,MAAuB,EACvB,EAAE,QAAQ,EAAuC;IAEjD,MAAM,EACJ,YAAY,EACZ,QAAQ,EACR,GAAG,EACH,kBAAkB,EAClB,OAAO,EACP,UAAU,GAAG,EAAE,EACf,mBAAmB,GAAG,SAAS,EAC/B,QAAQ,GAAG,EAAE,KAEX,MAAM,EADL,IAAI,UACL,MAAM,EAVJ,qHAUL,CAAS,CAAC;IAEX,sEAAsE;IACtE,wEAAwE;IACxE,MAAM,CAAC,WAAW,EAAE,WAAW,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAEtD,MAAM,YAAY,GAEd;QACF,WAAW,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE;KACpC,CAAC;IAEF,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAEvC,KAAK,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,SAAS,EAAE;QACtC,YAAY,CAAC,KAAK,CAAC,GAAG;YACpB,KAAK,EAAE,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK;SACjD,CAAC;KACH;IAED,OAAO;QACL,IAAI,EAAE,QAAwB;QAC9B,cAAc,EAAE,YAAY;QAC5B,YAAY;QACZ,QAAQ;QACR,GAAG;QACH,kBAAkB;QAClB,mBAAmB;QACnB,UAAU;QACV,QAAQ;KACT,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
@@ -930,6 +930,12 @@ export type MultiListFilterList = {
|
|
930
930
|
hasActiveItems: Scalars['Boolean'];
|
931
931
|
};
|
932
932
|
|
933
|
+
export type MultipleContent = {
|
934
|
+
__typename?: 'MultipleContent';
|
935
|
+
notFoundIds: Array<Maybe<Scalars['ID']>>;
|
936
|
+
content: Array<Maybe<Content>>;
|
937
|
+
};
|
938
|
+
|
933
939
|
export type Mutation = {
|
934
940
|
__typename?: 'Mutation';
|
935
941
|
subscribeToStockNotifications?: Maybe<Scalars['Boolean']>;
|
@@ -1993,6 +1999,8 @@ export type Query = {
|
|
1993
1999
|
externalCustomerLookup?: Maybe<ExternalCustomerResult>;
|
1994
2000
|
/** Get information on person by Key(personal id number or phone number) */
|
1995
2001
|
personLookup?: Maybe<PersonLookup>;
|
2002
|
+
/** Returns Content found by list of its IDs. Also not found Content IDs are listed. */
|
2003
|
+
content?: Maybe<MultipleContent>;
|
1996
2004
|
/** get channel by id, null gets default channel */
|
1997
2005
|
channel?: Maybe<Channel>;
|
1998
2006
|
/** get all channels */
|
@@ -2076,6 +2084,11 @@ export type QueryPersonLookupArgs = {
|
|
2076
2084
|
};
|
2077
2085
|
|
2078
2086
|
|
2087
|
+
export type QueryContentArgs = {
|
2088
|
+
ids: Array<Maybe<Scalars['String']>>;
|
2089
|
+
};
|
2090
|
+
|
2091
|
+
|
2079
2092
|
export type QueryChannelArgs = {
|
2080
2093
|
id?: Maybe<Scalars['String']>;
|
2081
2094
|
};
|