@heliofi/common 0.2.219 → 0.2.220
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/src/domain/constants/urlValidation.js +3 -3
- package/dist/src/domain/constants/urlValidation.js.map +1 -1
- package/dist/src/domain/model/onramp/dtos/getOnrampCurrencies.dto.js +4 -0
- package/dist/src/domain/model/onramp/dtos/getOnrampCurrencies.dto.js.map +1 -1
- package/dist/src/domain/model/onramp/dtos/getOnrampQuotes.dto.js +3 -0
- package/dist/src/domain/model/onramp/dtos/getOnrampQuotes.dto.js.map +1 -1
- package/dist/src/domain/model/onramp/dtos/onrampCheckout.dto.js +3 -0
- package/dist/src/domain/model/onramp/dtos/onrampCheckout.dto.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MAX_URL_LENGTH = exports.isValidUrl = exports.ALLOWED_CUSTOM_SCHEMES = void 0;
|
|
4
4
|
const HTTP_URL_REGEX = /^https?:\/\/.(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)$/;
|
|
5
|
-
const CUSTOM_SCHEME_REGEX = /^[a-zA-Z][a-zA-Z0-9+\-.]
|
|
5
|
+
const CUSTOM_SCHEME_REGEX = /^[a-zA-Z][a-zA-Z0-9+\-.]*:\/\/.*$/;
|
|
6
6
|
exports.ALLOWED_CUSTOM_SCHEMES = [
|
|
7
7
|
'wsopplus://',
|
|
8
|
-
'
|
|
9
|
-
'
|
|
8
|
+
'wsoplivestage://',
|
|
9
|
+
'wsoplivetest://',
|
|
10
10
|
'exp://',
|
|
11
11
|
];
|
|
12
12
|
const isValidUrl = (url) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"urlValidation.js","sourceRoot":"","sources":["../../../../src/domain/constants/urlValidation.ts"],"names":[],"mappings":";;;AAAA,MAAM,cAAc,GAClB,8FAA8F,CAAC;AAEjG,MAAM,mBAAmB,GAAG,mCAAmC,CAAC;AAEnD,QAAA,sBAAsB,GAAG;IACpC,aAAa;IACb,
|
|
1
|
+
{"version":3,"file":"urlValidation.js","sourceRoot":"","sources":["../../../../src/domain/constants/urlValidation.ts"],"names":[],"mappings":";;;AAAA,MAAM,cAAc,GAClB,8FAA8F,CAAC;AAEjG,MAAM,mBAAmB,GAAG,mCAAmC,CAAC;AAEnD,QAAA,sBAAsB,GAAG;IACpC,aAAa;IACb,kBAAkB;IAClB,iBAAiB;IACjB,QAAQ;CACT,CAAC;AAEK,MAAM,UAAU,GAAG,CAAC,GAAW,EAAW,EAAE;IACjD,IAAI,cAAc,CAAC,IAAI,CAAC,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC;IAC1C,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,GAAG,CAAC;QAAE,OAAO,KAAK,CAAC;IAEjD,OAAO,8BAAsB,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAC5C,GAAG,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,CACrC,CAAC;AACJ,CAAC,CAAC;AAPW,QAAA,UAAU,cAOrB;AAEW,QAAA,cAAc,GAAG,GAAG,CAAC"}
|
|
@@ -17,6 +17,9 @@ exports.GetOnrampCurrenciesDto = GetOnrampCurrenciesDto;
|
|
|
17
17
|
__decorate([
|
|
18
18
|
(0, class_validator_1.IsString)(),
|
|
19
19
|
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
(0, class_validator_1.Length)(2, 2, {
|
|
21
|
+
message: 'Country must be a valid Alpha2 country code. (EG: US, UK, etc)',
|
|
22
|
+
}),
|
|
20
23
|
__metadata("design:type", String)
|
|
21
24
|
], GetOnrampCurrenciesDto.prototype, "country", void 0);
|
|
22
25
|
__decorate([
|
|
@@ -27,6 +30,7 @@ __decorate([
|
|
|
27
30
|
__decorate([
|
|
28
31
|
(0, class_validator_1.IsString)(),
|
|
29
32
|
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_validator_1.Length)(5, 5, { message: 'State must be 5 characters. (EG: us-ny, ca-qc)' }),
|
|
30
34
|
__metadata("design:type", String)
|
|
31
35
|
], GetOnrampCurrenciesDto.prototype, "state", void 0);
|
|
32
36
|
//# sourceMappingURL=getOnrampCurrencies.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getOnrampCurrencies.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/dtos/getOnrampCurrencies.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"getOnrampCurrencies.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/dtos/getOnrampCurrencies.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2E;AAE3E,MAAa,sBAAsB;CAgBlC;AAhBD,wDAgBC;AAVC;IALC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,CAAC,EAAE,CAAC,EAAE;QACZ,OAAO,EAAE,gEAAgE;KAC1E,CAAC;;uDACc;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oEACiB;AAK9B;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,CAAC,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,gDAAgD,EAAE,CAAC;;qDAC7D"}
|
|
@@ -38,6 +38,9 @@ __decorate([
|
|
|
38
38
|
__decorate([
|
|
39
39
|
(0, class_validator_1.IsString)(),
|
|
40
40
|
(0, class_validator_1.IsNotEmpty)(),
|
|
41
|
+
(0, class_validator_1.Length)(2, 2, {
|
|
42
|
+
message: 'Country must be a valid Alpha2 country code. (EG: US, UK, etc)',
|
|
43
|
+
}),
|
|
41
44
|
__metadata("design:type", String)
|
|
42
45
|
], GetOnrampQuotesDto.prototype, "country", void 0);
|
|
43
46
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getOnrampQuotes.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/dtos/getOnrampQuotes.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"getOnrampQuotes.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/dtos/getOnrampQuotes.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AAEzB,MAAa,kBAAkB;CAgC9B;AAhCD,gDAgCC;AA7BC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gEACiB;AAI9B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACA;AAIb;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACE;AAKf;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;;kDACE;AAOf;IALC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,CAAC,EAAE,CAAC,EAAE;QACZ,OAAO,EAAE,gEAAgE;KAC1E,CAAC;;mDACc;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACY"}
|
|
@@ -73,6 +73,9 @@ __decorate([
|
|
|
73
73
|
__decorate([
|
|
74
74
|
(0, class_validator_1.IsOptional)(),
|
|
75
75
|
(0, class_validator_1.IsString)(),
|
|
76
|
+
(0, class_validator_1.Length)(2, 2, {
|
|
77
|
+
message: 'Country must be a valid Alpha2 country code. (EG US, UK, etc)',
|
|
78
|
+
}),
|
|
76
79
|
__metadata("design:type", String)
|
|
77
80
|
], OnrampCheckoutDto.prototype, "country", void 0);
|
|
78
81
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onrampCheckout.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/dtos/onrampCheckout.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"onrampCheckout.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/onramp/dtos/onrampCheckout.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAQyB;AAEzB,MAAa,iBAAiB;CAwD7B;AAxDD,8CAwDC;AArDC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+DACiB;AAI9B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACE;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACE;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACO;AAKpB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;;iDACE;AAIf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACS;AAItB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACG;AAIhB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACS;AAItB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;iDACG;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACI;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACa;AAOxB;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,CAAC,EAAE,CAAC,EAAE;QACZ,OAAO,EAAE,+DAA+D;KACzE,CAAC;;kDACe;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACU"}
|