@plentymarkets/shop-api 0.90.1 → 0.91.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/lib/getters/userGetters.d.ts +2 -0
- package/lib/getters/userGetters.d.ts.map +1 -1
- package/lib/index.cjs.js +16 -12
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.es.js +16 -12
- package/lib/index.es.js.map +1 -1
- package/package.json +2 -2
- package/server/getters/userGetters.d.ts +2 -0
- package/server/getters/userGetters.d.ts.map +1 -1
@@ -3,11 +3,13 @@ declare function getFirstName(user: User): string;
|
|
3
3
|
declare function getLastName(user: User): string;
|
4
4
|
declare function getFullName(user: User): string;
|
5
5
|
declare function getEmailAddress(user: User): string;
|
6
|
+
declare function isValidEmailAddress(email: string): boolean;
|
6
7
|
export declare const userGetters: {
|
7
8
|
getFirstName: typeof getFirstName;
|
8
9
|
getLastName: typeof getLastName;
|
9
10
|
getFullName: typeof getFullName;
|
10
11
|
getEmailAddress: typeof getEmailAddress;
|
12
|
+
isValidEmailAddress: typeof isValidEmailAddress;
|
11
13
|
};
|
12
14
|
export {};
|
13
15
|
//# sourceMappingURL=userGetters.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"userGetters.d.ts","sourceRoot":"","sources":["../../src/getters/userGetters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;
|
1
|
+
{"version":3,"file":"userGetters.d.ts","sourceRoot":"","sources":["../../src/getters/userGetters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAGrC,iBAAS,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAExC;AAED,iBAAS,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAEvC;AAED,iBAAS,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAEvC;AAED,iBAAS,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE3C;AAED,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEnD;AAED,eAAO,MAAM,WAAW;;;;;;CAMvB,CAAC"}
|
package/lib/index.cjs.js
CHANGED
@@ -4407,6 +4407,18 @@ const reviewGetters = {
|
|
4407
4407
|
getReviewCounts,
|
4408
4408
|
};
|
4409
4409
|
|
4410
|
+
const validateEmail = (email) => {
|
4411
|
+
const maxEmailLength = 254;
|
4412
|
+
const maxLocalPartLength = 64;
|
4413
|
+
if (email.length > maxEmailLength)
|
4414
|
+
return false;
|
4415
|
+
const emailPattern = /^[a-zA-Z0-9](?:[a-zA-Z0-9.]{0,62}[a-zA-Z0-9])?@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
|
4416
|
+
const [localPart] = email.split('@');
|
4417
|
+
if (localPart.length > maxLocalPartLength)
|
4418
|
+
return false;
|
4419
|
+
return emailPattern.test(email);
|
4420
|
+
};
|
4421
|
+
|
4410
4422
|
function getFirstName$1(user) {
|
4411
4423
|
return user?.firstName ?? '';
|
4412
4424
|
}
|
@@ -4419,11 +4431,15 @@ function getFullName(user) {
|
|
4419
4431
|
function getEmailAddress(user) {
|
4420
4432
|
return user?.email ?? '';
|
4421
4433
|
}
|
4434
|
+
function isValidEmailAddress(email) {
|
4435
|
+
return validateEmail(email);
|
4436
|
+
}
|
4422
4437
|
const userGetters = {
|
4423
4438
|
getFirstName: getFirstName$1,
|
4424
4439
|
getLastName: getLastName$1,
|
4425
4440
|
getFullName,
|
4426
4441
|
getEmailAddress,
|
4442
|
+
isValidEmailAddress,
|
4427
4443
|
};
|
4428
4444
|
|
4429
4445
|
const ITEM_TYPE_SET = 'set';
|
@@ -4888,18 +4904,6 @@ const localesGetters = {
|
|
4888
4904
|
getLabel,
|
4889
4905
|
};
|
4890
4906
|
|
4891
|
-
const validateEmail = (email) => {
|
4892
|
-
const maxEmailLength = 254;
|
4893
|
-
const maxLocalPartLength = 64;
|
4894
|
-
if (email.length > maxEmailLength)
|
4895
|
-
return false;
|
4896
|
-
const emailPattern = /^[a-zA-Z0-9](?:[a-zA-Z0-9.]{0,62}[a-zA-Z0-9])?@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
|
4897
|
-
const [localPart] = email.split('@');
|
4898
|
-
if (localPart.length > maxLocalPartLength)
|
4899
|
-
return false;
|
4900
|
-
return emailPattern.test(email);
|
4901
|
-
};
|
4902
|
-
|
4903
4907
|
function getShippingAddress(offer) {
|
4904
4908
|
const addressData = offer?.order?.deliveryAddress;
|
4905
4909
|
return addressData ? mapAddressForClient(addressData) : null;
|
package/lib/index.cjs.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/index.es.js
CHANGED
@@ -4403,6 +4403,18 @@ const reviewGetters = {
|
|
4403
4403
|
getReviewCounts,
|
4404
4404
|
};
|
4405
4405
|
|
4406
|
+
const validateEmail = (email) => {
|
4407
|
+
const maxEmailLength = 254;
|
4408
|
+
const maxLocalPartLength = 64;
|
4409
|
+
if (email.length > maxEmailLength)
|
4410
|
+
return false;
|
4411
|
+
const emailPattern = /^[a-zA-Z0-9](?:[a-zA-Z0-9.]{0,62}[a-zA-Z0-9])?@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
|
4412
|
+
const [localPart] = email.split('@');
|
4413
|
+
if (localPart.length > maxLocalPartLength)
|
4414
|
+
return false;
|
4415
|
+
return emailPattern.test(email);
|
4416
|
+
};
|
4417
|
+
|
4406
4418
|
function getFirstName$1(user) {
|
4407
4419
|
return user?.firstName ?? '';
|
4408
4420
|
}
|
@@ -4415,11 +4427,15 @@ function getFullName(user) {
|
|
4415
4427
|
function getEmailAddress(user) {
|
4416
4428
|
return user?.email ?? '';
|
4417
4429
|
}
|
4430
|
+
function isValidEmailAddress(email) {
|
4431
|
+
return validateEmail(email);
|
4432
|
+
}
|
4418
4433
|
const userGetters = {
|
4419
4434
|
getFirstName: getFirstName$1,
|
4420
4435
|
getLastName: getLastName$1,
|
4421
4436
|
getFullName,
|
4422
4437
|
getEmailAddress,
|
4438
|
+
isValidEmailAddress,
|
4423
4439
|
};
|
4424
4440
|
|
4425
4441
|
const ITEM_TYPE_SET = 'set';
|
@@ -4884,18 +4900,6 @@ const localesGetters = {
|
|
4884
4900
|
getLabel,
|
4885
4901
|
};
|
4886
4902
|
|
4887
|
-
const validateEmail = (email) => {
|
4888
|
-
const maxEmailLength = 254;
|
4889
|
-
const maxLocalPartLength = 64;
|
4890
|
-
if (email.length > maxEmailLength)
|
4891
|
-
return false;
|
4892
|
-
const emailPattern = /^[a-zA-Z0-9](?:[a-zA-Z0-9.]{0,62}[a-zA-Z0-9])?@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;
|
4893
|
-
const [localPart] = email.split('@');
|
4894
|
-
if (localPart.length > maxLocalPartLength)
|
4895
|
-
return false;
|
4896
|
-
return emailPattern.test(email);
|
4897
|
-
};
|
4898
|
-
|
4899
4903
|
function getShippingAddress(offer) {
|
4900
4904
|
const addressData = offer?.order?.deliveryAddress;
|
4901
4905
|
return addressData ? mapAddressForClient(addressData) : null;
|
package/lib/index.es.js.map
CHANGED
@@ -1 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@plentymarkets/shop-api",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.91.0",
|
4
4
|
"sideEffects": false,
|
5
5
|
"private": false,
|
6
6
|
"publishConfig": {
|
@@ -45,5 +45,5 @@
|
|
45
45
|
"lib/**/*",
|
46
46
|
"server/**/*"
|
47
47
|
],
|
48
|
-
"gitHead": "
|
48
|
+
"gitHead": "306a8234adf903e0511d2597a5af710cf732f40e"
|
49
49
|
}
|
@@ -3,11 +3,13 @@ declare function getFirstName(user: User): string;
|
|
3
3
|
declare function getLastName(user: User): string;
|
4
4
|
declare function getFullName(user: User): string;
|
5
5
|
declare function getEmailAddress(user: User): string;
|
6
|
+
declare function isValidEmailAddress(email: string): boolean;
|
6
7
|
export declare const userGetters: {
|
7
8
|
getFirstName: typeof getFirstName;
|
8
9
|
getLastName: typeof getLastName;
|
9
10
|
getFullName: typeof getFullName;
|
10
11
|
getEmailAddress: typeof getEmailAddress;
|
12
|
+
isValidEmailAddress: typeof isValidEmailAddress;
|
11
13
|
};
|
12
14
|
export {};
|
13
15
|
//# sourceMappingURL=userGetters.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"userGetters.d.ts","sourceRoot":"","sources":["../../src/getters/userGetters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;
|
1
|
+
{"version":3,"file":"userGetters.d.ts","sourceRoot":"","sources":["../../src/getters/userGetters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAGrC,iBAAS,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAExC;AAED,iBAAS,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAEvC;AAED,iBAAS,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAEvC;AAED,iBAAS,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAE3C;AAED,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEnD;AAED,eAAO,MAAM,WAAW;;;;;;CAMvB,CAAC"}
|