@eleva-io/erp-sdk 0.1.97 → 0.1.99
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/cjs/modules/global/validations/payment_method.d.ts.map +1 -1
- package/dist/cjs/modules/global/validations/payment_method.js +11 -12
- package/dist/cjs/modules/global/validations/payment_method.js.map +1 -1
- package/dist/cjs/modules/horizontal/communities/api/providers.d.ts +4 -2
- package/dist/cjs/modules/horizontal/communities/api/providers.d.ts.map +1 -1
- package/dist/cjs/modules/horizontal/communities/api/providers.js +8 -0
- package/dist/cjs/modules/horizontal/communities/api/providers.js.map +1 -1
- package/dist/esm/modules/global/validations/payment_method.d.ts.map +1 -1
- package/dist/esm/modules/global/validations/payment_method.js +11 -12
- package/dist/esm/modules/global/validations/payment_method.js.map +1 -1
- package/dist/esm/modules/horizontal/communities/api/providers.d.ts +4 -2
- package/dist/esm/modules/horizontal/communities/api/providers.d.ts.map +1 -1
- package/dist/esm/modules/horizontal/communities/api/providers.js +8 -0
- package/dist/esm/modules/horizontal/communities/api/providers.js.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/modules/horizontal/communities/api/visits.d.ts +0 -47
- package/dist/cjs/modules/horizontal/communities/api/visits.d.ts.map +0 -1
- package/dist/cjs/modules/horizontal/communities/api/visits.js +0 -139
- package/dist/cjs/modules/horizontal/communities/api/visits.js.map +0 -1
- package/dist/cjs/modules/horizontal/communities/types/visit.d.ts +0 -300
- package/dist/cjs/modules/horizontal/communities/types/visit.d.ts.map +0 -1
- package/dist/cjs/modules/horizontal/communities/types/visit.js +0 -63
- package/dist/cjs/modules/horizontal/communities/types/visit.js.map +0 -1
- package/dist/cjs/modules/horizontal/meetings/api/action_points.d.ts +0 -12
- package/dist/cjs/modules/horizontal/meetings/api/action_points.d.ts.map +0 -1
- package/dist/cjs/modules/horizontal/meetings/api/action_points.js +0 -33
- package/dist/cjs/modules/horizontal/meetings/api/action_points.js.map +0 -1
- package/dist/cjs/modules/horizontal/meetings/api/agenda.d.ts +0 -14
- package/dist/cjs/modules/horizontal/meetings/api/agenda.d.ts.map +0 -1
- package/dist/cjs/modules/horizontal/meetings/api/agenda.js +0 -37
- package/dist/cjs/modules/horizontal/meetings/api/agenda.js.map +0 -1
- package/dist/cjs/modules/horizontal/meetings/api/debtors.d.ts +0 -11
- package/dist/cjs/modules/horizontal/meetings/api/debtors.d.ts.map +0 -1
- package/dist/cjs/modules/horizontal/meetings/api/debtors.js +0 -28
- package/dist/cjs/modules/horizontal/meetings/api/debtors.js.map +0 -1
- package/dist/cjs/modules/horizontal/meetings/api/documents.d.ts +0 -12
- package/dist/cjs/modules/horizontal/meetings/api/documents.d.ts.map +0 -1
- package/dist/cjs/modules/horizontal/meetings/api/documents.js +0 -33
- package/dist/cjs/modules/horizontal/meetings/api/documents.js.map +0 -1
- package/dist/cjs/modules/horizontal/meetings/api/index.d.ts +0 -9
- package/dist/cjs/modules/horizontal/meetings/api/index.d.ts.map +0 -1
- package/dist/cjs/modules/horizontal/meetings/api/index.js +0 -25
- package/dist/cjs/modules/horizontal/meetings/api/index.js.map +0 -1
- package/dist/cjs/modules/horizontal/meetings/api/meetings.d.ts +0 -38
- package/dist/cjs/modules/horizontal/meetings/api/meetings.d.ts.map +0 -1
- package/dist/cjs/modules/horizontal/meetings/api/meetings.js +0 -155
- package/dist/cjs/modules/horizontal/meetings/api/meetings.js.map +0 -1
- package/dist/cjs/modules/horizontal/meetings/api/notes.d.ts +0 -11
- package/dist/cjs/modules/horizontal/meetings/api/notes.d.ts.map +0 -1
- package/dist/cjs/modules/horizontal/meetings/api/notes.js +0 -28
- package/dist/cjs/modules/horizontal/meetings/api/notes.js.map +0 -1
- package/dist/cjs/modules/horizontal/meetings/api/participants.d.ts +0 -9
- package/dist/cjs/modules/horizontal/meetings/api/participants.d.ts.map +0 -1
- package/dist/cjs/modules/horizontal/meetings/api/participants.js +0 -18
- package/dist/cjs/modules/horizontal/meetings/api/participants.js.map +0 -1
- package/dist/cjs/modules/horizontal/meetings/api/polls.d.ts +0 -12
- package/dist/cjs/modules/horizontal/meetings/api/polls.d.ts.map +0 -1
- package/dist/cjs/modules/horizontal/meetings/api/polls.js +0 -29
- package/dist/cjs/modules/horizontal/meetings/api/polls.js.map +0 -1
- package/dist/cjs/modules/horizontal/meetings/index.d.ts +0 -3
- package/dist/cjs/modules/horizontal/meetings/index.d.ts.map +0 -1
- package/dist/cjs/modules/horizontal/meetings/index.js +0 -19
- package/dist/cjs/modules/horizontal/meetings/index.js.map +0 -1
- package/dist/cjs/modules/horizontal/meetings/types/index.d.ts +0 -2
- package/dist/cjs/modules/horizontal/meetings/types/index.d.ts.map +0 -1
- package/dist/cjs/modules/horizontal/meetings/types/index.js +0 -18
- package/dist/cjs/modules/horizontal/meetings/types/index.js.map +0 -1
- package/dist/cjs/modules/horizontal/meetings/types/meeting.d.ts +0 -234
- package/dist/cjs/modules/horizontal/meetings/types/meeting.d.ts.map +0 -1
- package/dist/cjs/modules/horizontal/meetings/types/meeting.js +0 -60
- package/dist/cjs/modules/horizontal/meetings/types/meeting.js.map +0 -1
- package/dist/esm/modules/horizontal/communities/api/visits.d.ts +0 -47
- package/dist/esm/modules/horizontal/communities/api/visits.d.ts.map +0 -1
- package/dist/esm/modules/horizontal/communities/api/visits.js +0 -129
- package/dist/esm/modules/horizontal/communities/api/visits.js.map +0 -1
- package/dist/esm/modules/horizontal/communities/types/visit.d.ts +0 -300
- package/dist/esm/modules/horizontal/communities/types/visit.d.ts.map +0 -1
- package/dist/esm/modules/horizontal/communities/types/visit.js +0 -60
- package/dist/esm/modules/horizontal/communities/types/visit.js.map +0 -1
- package/dist/esm/modules/horizontal/meetings/api/action_points.d.ts +0 -12
- package/dist/esm/modules/horizontal/meetings/api/action_points.d.ts.map +0 -1
- package/dist/esm/modules/horizontal/meetings/api/action_points.js +0 -29
- package/dist/esm/modules/horizontal/meetings/api/action_points.js.map +0 -1
- package/dist/esm/modules/horizontal/meetings/api/agenda.d.ts +0 -14
- package/dist/esm/modules/horizontal/meetings/api/agenda.d.ts.map +0 -1
- package/dist/esm/modules/horizontal/meetings/api/agenda.js +0 -33
- package/dist/esm/modules/horizontal/meetings/api/agenda.js.map +0 -1
- package/dist/esm/modules/horizontal/meetings/api/debtors.d.ts +0 -11
- package/dist/esm/modules/horizontal/meetings/api/debtors.d.ts.map +0 -1
- package/dist/esm/modules/horizontal/meetings/api/debtors.js +0 -24
- package/dist/esm/modules/horizontal/meetings/api/debtors.js.map +0 -1
- package/dist/esm/modules/horizontal/meetings/api/documents.d.ts +0 -12
- package/dist/esm/modules/horizontal/meetings/api/documents.d.ts.map +0 -1
- package/dist/esm/modules/horizontal/meetings/api/documents.js +0 -29
- package/dist/esm/modules/horizontal/meetings/api/documents.js.map +0 -1
- package/dist/esm/modules/horizontal/meetings/api/index.d.ts +0 -9
- package/dist/esm/modules/horizontal/meetings/api/index.d.ts.map +0 -1
- package/dist/esm/modules/horizontal/meetings/api/index.js +0 -9
- package/dist/esm/modules/horizontal/meetings/api/index.js.map +0 -1
- package/dist/esm/modules/horizontal/meetings/api/meetings.d.ts +0 -38
- package/dist/esm/modules/horizontal/meetings/api/meetings.d.ts.map +0 -1
- package/dist/esm/modules/horizontal/meetings/api/meetings.js +0 -151
- package/dist/esm/modules/horizontal/meetings/api/meetings.js.map +0 -1
- package/dist/esm/modules/horizontal/meetings/api/notes.d.ts +0 -11
- package/dist/esm/modules/horizontal/meetings/api/notes.d.ts.map +0 -1
- package/dist/esm/modules/horizontal/meetings/api/notes.js +0 -24
- package/dist/esm/modules/horizontal/meetings/api/notes.js.map +0 -1
- package/dist/esm/modules/horizontal/meetings/api/participants.d.ts +0 -9
- package/dist/esm/modules/horizontal/meetings/api/participants.d.ts.map +0 -1
- package/dist/esm/modules/horizontal/meetings/api/participants.js +0 -14
- package/dist/esm/modules/horizontal/meetings/api/participants.js.map +0 -1
- package/dist/esm/modules/horizontal/meetings/api/polls.d.ts +0 -12
- package/dist/esm/modules/horizontal/meetings/api/polls.d.ts.map +0 -1
- package/dist/esm/modules/horizontal/meetings/api/polls.js +0 -25
- package/dist/esm/modules/horizontal/meetings/api/polls.js.map +0 -1
- package/dist/esm/modules/horizontal/meetings/index.d.ts +0 -3
- package/dist/esm/modules/horizontal/meetings/index.d.ts.map +0 -1
- package/dist/esm/modules/horizontal/meetings/index.js +0 -3
- package/dist/esm/modules/horizontal/meetings/index.js.map +0 -1
- package/dist/esm/modules/horizontal/meetings/types/index.d.ts +0 -2
- package/dist/esm/modules/horizontal/meetings/types/index.d.ts.map +0 -1
- package/dist/esm/modules/horizontal/meetings/types/index.js +0 -2
- package/dist/esm/modules/horizontal/meetings/types/index.js.map +0 -1
- package/dist/esm/modules/horizontal/meetings/types/meeting.d.ts +0 -234
- package/dist/esm/modules/horizontal/meetings/types/meeting.d.ts.map +0 -1
- package/dist/esm/modules/horizontal/meetings/types/meeting.js +0 -57
- package/dist/esm/modules/horizontal/meetings/types/meeting.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment_method.d.ts","sourceRoot":"","sources":["../../../../../src/modules/global/validations/payment_method.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"payment_method.d.ts","sourceRoot":"","sources":["../../../../../src/modules/global/validations/payment_method.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAA;AAEtD,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,2BAA2B,GAAG,OAAO,CAAC,IAAI,GAAG,KAAK,CAAC,CA0EnG"}
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.validatePaymentMethod = validatePaymentMethod;
|
|
4
|
-
const
|
|
4
|
+
const errors_1 = require("../../../utils/errors");
|
|
5
|
+
const types_1 = require("../bank-account/types");
|
|
5
6
|
const aba_1 = require("../bank-account/validations/bank_account/aba");
|
|
6
|
-
const aba_2 = require("../bank-account/validations/bank_account/aba");
|
|
7
7
|
const clabe_1 = require("../bank-account/validations/bank_account/clabe");
|
|
8
8
|
const iban_1 = require("../bank-account/validations/bank_account/iban");
|
|
9
|
-
const
|
|
10
|
-
const iban_3 = require("../bank-account/validations/bank_account/iban");
|
|
11
|
-
const swift_2 = require("../bank-account/validations/bank_account/swift");
|
|
12
|
-
const types_1 = require("../bank-account/types");
|
|
13
|
-
const errors_1 = require("../../../utils/errors");
|
|
9
|
+
const swift_1 = require("../bank-account/validations/bank_account/swift");
|
|
14
10
|
async function validatePaymentMethod(req) {
|
|
15
|
-
const swiftCountryCode = (0, swift_1.getSwiftCountry)(req.swiftBic);
|
|
11
|
+
const swiftCountryCode = req.swiftBic ? (0, swift_1.getSwiftCountry)(req.swiftBic) : undefined;
|
|
16
12
|
switch (req.type) {
|
|
17
13
|
case types_1.GlobalBankAccountType.ABA: {
|
|
18
14
|
if (!req.routingNumber) {
|
|
@@ -26,7 +22,7 @@ async function validatePaymentMethod(req) {
|
|
|
26
22
|
]);
|
|
27
23
|
}
|
|
28
24
|
(0, aba_1.validateAccountNumberABA)(req.accountNumber, 'accountNumber');
|
|
29
|
-
(0,
|
|
25
|
+
(0, aba_1.validateRoutingNumberABA)(req.routingNumber, 'routingNumber');
|
|
30
26
|
if (swiftCountryCode !== 'US') {
|
|
31
27
|
throw new errors_1.ValidationError([
|
|
32
28
|
{
|
|
@@ -55,8 +51,9 @@ async function validatePaymentMethod(req) {
|
|
|
55
51
|
}
|
|
56
52
|
case types_1.GlobalBankAccountType.IBAN: {
|
|
57
53
|
(0, iban_1.validateAccountNumberIBAN)(req.accountNumber, 'accountNumber');
|
|
58
|
-
const ibanCountryCode = (0,
|
|
59
|
-
if (
|
|
54
|
+
const ibanCountryCode = (0, iban_1.getIBANCountryCode)(req.accountNumber);
|
|
55
|
+
if ((req.swiftBic || ibanCountryCode !== 'ES') &&
|
|
56
|
+
(!swiftCountryCode || !iban_1.IBAN_COUNTRY_CODES.includes(swiftCountryCode) || swiftCountryCode !== ibanCountryCode)) {
|
|
60
57
|
throw new errors_1.ValidationError([
|
|
61
58
|
{
|
|
62
59
|
validation: 'swiftBic',
|
|
@@ -69,6 +66,8 @@ async function validatePaymentMethod(req) {
|
|
|
69
66
|
break;
|
|
70
67
|
}
|
|
71
68
|
}
|
|
72
|
-
|
|
69
|
+
if (req.swiftBic) {
|
|
70
|
+
(0, swift_1.validateCodeSwiftBic)(req.swiftBic, 'swiftBic');
|
|
71
|
+
}
|
|
73
72
|
}
|
|
74
73
|
//# sourceMappingURL=payment_method.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment_method.js","sourceRoot":"","sources":["../../../../../src/modules/global/validations/payment_method.ts"],"names":[],"mappings":";;AAYA,
|
|
1
|
+
{"version":3,"file":"payment_method.js","sourceRoot":"","sources":["../../../../../src/modules/global/validations/payment_method.ts"],"names":[],"mappings":";;AAYA,sDA0EC;AAtFD,kDAAuD;AACvD,iDAA6D;AAC7D,sEAAiH;AACjH,0EAA2F;AAC3F,wEAIsD;AACtD,0EAAsG;AAG/F,KAAK,UAAU,qBAAqB,CAAC,GAAgC;IAC1E,MAAM,gBAAgB,GAAG,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAA,uBAAe,EAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;IAEjF,QAAQ,GAAG,CAAC,IAAI,EAAE,CAAC;QACjB,KAAK,6BAAqB,CAAC,GAAG,CAAC,CAAC,CAAC;YAC/B,IAAI,CAAC,GAAG,CAAC,aAAa,EAAE,CAAC;gBACvB,MAAM,IAAI,wBAAe,CAAC;oBACxB;wBACE,UAAU,EAAE,eAAe;wBAC3B,IAAI,EAAE,gBAAgB;wBACtB,OAAO,EAAE,kDAAkD;wBAC3D,IAAI,EAAE,CAAC,eAAe,CAAC;qBACxB;iBACF,CAAC,CAAA;YACJ,CAAC;YAED,IAAA,8BAAwB,EAAC,GAAG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ACtB,OAAO,EAAE,0CAA0C;wBACnD,IAAI,EAAE,CAAC,UAAU,CAAC;qBACnB;iBACF,CAAC,CAAA;YACJ,CAAC;YAED,MAAK;QACP,CAAC;IACH,CAAC;IAED,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;QACjB,IAAA,4BAAoB,EAAC,GAAG,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAA;IAChD,CAAC;AACH,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HTTPClient } from '../../../../utils/http';
|
|
2
|
-
import { CommunityProvider, CommunityProviderContractEntity, CommunityProviderExtended, CreateCommunityProviderContractDTO, CreateCommunityProviderDTO, UpdateCommunityProviderContractDTO, UpdateCommunityProviderDTO } from '../types';
|
|
1
|
+
import { FormFileData, HTTPClient } from '../../../../utils/http';
|
|
2
|
+
import { CommunityProvider, CommunityProviderContractEntity, CommunityProviderExtended, CreateCommunityProviderContractDTO, CreateCommunityProviderDTO, Document, UpdateCommunityProviderContractDTO, UpdateCommunityProviderDTO } from '../types';
|
|
3
3
|
export declare class CommunitiesProvidersAPI {
|
|
4
4
|
private _httpClient;
|
|
5
5
|
private _baseUrl;
|
|
@@ -19,5 +19,7 @@ export declare class CommunitiesProvidersContractsAPI {
|
|
|
19
19
|
create(data: CreateCommunityProviderContractDTO): Promise<CommunityProviderContractEntity>;
|
|
20
20
|
update(id: string, data: UpdateCommunityProviderContractDTO): Promise<CommunityProviderContractEntity>;
|
|
21
21
|
delete(id: string): Promise<CommunityProviderContractEntity>;
|
|
22
|
+
addDocuments(id: string, documents: FormFileData[]): Promise<Document[]>;
|
|
23
|
+
removeDocument(id: string, documentId: string): Promise<void>;
|
|
22
24
|
}
|
|
23
25
|
//# sourceMappingURL=providers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/horizontal/communities/api/providers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UA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,MAAM,EAAE,IAAI,EAAE,kCAAkC,GAAG,OAAO,CAAC,+BAA+B,CAAC;IAItG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,+BAA+B,CAAC;IAI5D,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAMxE,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAG9D"}
|
|
@@ -57,6 +57,14 @@ class CommunitiesProvidersContractsAPI {
|
|
|
57
57
|
delete(id) {
|
|
58
58
|
return this._httpClient.delete(`${this._baseUrl}/${id}`);
|
|
59
59
|
}
|
|
60
|
+
addDocuments(id, documents) {
|
|
61
|
+
return this._httpClient.form(`${this._baseUrl}/${id}/documents`, {
|
|
62
|
+
files: documents,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
removeDocument(id, documentId) {
|
|
66
|
+
return this._httpClient.delete(`${this._baseUrl}/${id}/documents/${documentId}`);
|
|
67
|
+
}
|
|
60
68
|
}
|
|
61
69
|
exports.CommunitiesProvidersContractsAPI = CommunitiesProvidersContractsAPI;
|
|
62
70
|
//# sourceMappingURL=providers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../../../../src/modules/horizontal/communities/api/providers.ts"],"names":[],"mappings":";;;AACA,iDAA6C;
|
|
1
|
+
{"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../../../../src/modules/horizontal/communities/api/providers.ts"],"names":[],"mappings":";;;AACA,iDAA6C;AAW7C,6CAA8C;AAE9C,MAAM,sBAAuB,SAAQ,WAKpC;CAAG;AAEJ,MAAa,uBAAuB;IAIxB;IACA;IAJF,KAAK,CAAwB;IAErC,YACU,WAAuB,EACvB,QAAgB;QADhB,gBAAW,GAAX,WAAW,CAAY;QACvB,aAAQ,GAAR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AAC,QAAQ,EAAE,EAAE;gBAChF,GAAG,IAAA,kBAAU,EAAC,IAAI,EAAE,CAAC,WAAW,CAAC,CAAC;gBAClC,KAAK,EAAE,IAAI,CAAC,SAAS;aACtB,CAAC,CAAA;QACJ,CAAC;QAED,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAC/B,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,IAAwC;QACzD,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,CAAA;IACnC,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAkC,GAAG,IAAI,CAAC,QAAQ,IAAI,EAAE,EAAE,CAAC,CAAA;IAC3F,CAAC;IAED,YAAY,CAAC,EAAU,EAAE,SAAyB;QAChD,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAa,GAAG,IAAI,CAAC,QAAQ,IAAI,EAAE,YAAY,EAAE;YAC3E,KAAK,EAAE,SAAS;SACjB,CAAC,CAAA;IACJ,CAAC;IAED,cAAc,CAAC,EAAU,EAAE,UAAkB;QAC3C,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAO,GAAG,IAAI,CAAC,QAAQ,IAAI,EAAE,cAAc,UAAU,EAAE,CAAC,CAAA;IACxF,CAAC;CACF;AAhDD,4EAgDC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment_method.d.ts","sourceRoot":"","sources":["../../../../../src/modules/global/validations/payment_method.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"payment_method.d.ts","sourceRoot":"","sources":["../../../../../src/modules/global/validations/payment_method.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAA;AAEtD,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,2BAA2B,GAAG,OAAO,CAAC,IAAI,GAAG,KAAK,CAAC,CA0EnG"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { getSwiftCountry } from '../bank-account/validations/bank_account/swift';
|
|
2
|
-
import { validateAccountNumberABA } from '../bank-account/validations/bank_account/aba';
|
|
3
|
-
import { validateRoutingNumberABA } from '../bank-account/validations/bank_account/aba';
|
|
4
|
-
import { validateAccountNumberCLABE } from '../bank-account/validations/bank_account/clabe';
|
|
5
|
-
import { validateAccountNumberIBAN } from '../bank-account/validations/bank_account/iban';
|
|
6
|
-
import { getIBANCountryCode } from '../bank-account/validations/bank_account/iban';
|
|
7
|
-
import { IBAN_COUNTRY_CODES } from '../bank-account/validations/bank_account/iban';
|
|
8
|
-
import { validateCodeSwiftBic } from '../bank-account/validations/bank_account/swift';
|
|
9
|
-
import { GlobalBankAccountType } from '../bank-account/types';
|
|
10
1
|
import { ValidationError } from '../../../utils/errors';
|
|
2
|
+
import { GlobalBankAccountType } from '../bank-account/types';
|
|
3
|
+
import { validateAccountNumberABA, validateRoutingNumberABA } from '../bank-account/validations/bank_account/aba';
|
|
4
|
+
import { validateAccountNumberCLABE } from '../bank-account/validations/bank_account/clabe';
|
|
5
|
+
import { getIBANCountryCode, IBAN_COUNTRY_CODES, validateAccountNumberIBAN, } from '../bank-account/validations/bank_account/iban';
|
|
6
|
+
import { getSwiftCountry, validateCodeSwiftBic } from '../bank-account/validations/bank_account/swift';
|
|
11
7
|
export async function validatePaymentMethod(req) {
|
|
12
|
-
const swiftCountryCode = getSwiftCountry(req.swiftBic);
|
|
8
|
+
const swiftCountryCode = req.swiftBic ? getSwiftCountry(req.swiftBic) : undefined;
|
|
13
9
|
switch (req.type) {
|
|
14
10
|
case GlobalBankAccountType.ABA: {
|
|
15
11
|
if (!req.routingNumber) {
|
|
@@ -53,7 +49,8 @@ export async function validatePaymentMethod(req) {
|
|
|
53
49
|
case GlobalBankAccountType.IBAN: {
|
|
54
50
|
validateAccountNumberIBAN(req.accountNumber, 'accountNumber');
|
|
55
51
|
const ibanCountryCode = getIBANCountryCode(req.accountNumber);
|
|
56
|
-
if (
|
|
52
|
+
if ((req.swiftBic || ibanCountryCode !== 'ES') &&
|
|
53
|
+
(!swiftCountryCode || !IBAN_COUNTRY_CODES.includes(swiftCountryCode) || swiftCountryCode !== ibanCountryCode)) {
|
|
57
54
|
throw new ValidationError([
|
|
58
55
|
{
|
|
59
56
|
validation: 'swiftBic',
|
|
@@ -66,6 +63,8 @@ export async function validatePaymentMethod(req) {
|
|
|
66
63
|
break;
|
|
67
64
|
}
|
|
68
65
|
}
|
|
69
|
-
|
|
66
|
+
if (req.swiftBic) {
|
|
67
|
+
validateCodeSwiftBic(req.swiftBic, 'swiftBic');
|
|
68
|
+
}
|
|
70
69
|
}
|
|
71
70
|
//# sourceMappingURL=payment_method.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment_method.js","sourceRoot":"","sources":["../../../../../src/modules/global/validations/payment_method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"payment_method.js","sourceRoot":"","sources":["../../../../../src/modules/global/validations/payment_method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAA;AACjH,OAAO,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAA;AAC3F,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,yBAAyB,GAC1B,MAAM,+CAA+C,CAAA;AACtD,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAA;AAGtG,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,GAAgC;IAC1E,MAAM,gBAAgB,GAAG,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,GAAG,CA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,EAAE,eAAe,CAAC,CAAA;YAE7D,MAAM,eAAe,GAAG,kBAAkB,CAAC,GAAG,CAAC,aAAa,CAAC,CAAA;YAE7D,IACE,CAAC,GAAG,CAAC,QAAQ,IAAI,eAAe,KAAK,IAAI,CAAC;gBAC1C,CAAC,CAAC,gBAAgB,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,gBAAgB,KAAK,eAAe,CAAC,EAC7G,CAAC;gBACD,MAAM,IAAI,eAAe,CAAC;oBACxB;wBACE,UAAU,EAAE,UAAU;wBACtB,IAAI,EAAE,gBAAgB;wBACtB,OAAO,EAAE,0CAA0C;wBACnD,IAAI,EAAE,CAAC,UAAU,CAAC;qBACnB;iBACF,CAAC,CAAA;YACJ,CAAC;YAED,MAAK;QACP,CAAC;IACH,CAAC;IAED,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC;QACjB,oBAAoB,CAAC,GAAG,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAA;IAChD,CAAC;AACH,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HTTPClient } from '../../../../utils/http';
|
|
2
|
-
import { CommunityProvider, CommunityProviderContractEntity, CommunityProviderExtended, CreateCommunityProviderContractDTO, CreateCommunityProviderDTO, UpdateCommunityProviderContractDTO, UpdateCommunityProviderDTO } from '../types';
|
|
1
|
+
import { FormFileData, HTTPClient } from '../../../../utils/http';
|
|
2
|
+
import { CommunityProvider, CommunityProviderContractEntity, CommunityProviderExtended, CreateCommunityProviderContractDTO, CreateCommunityProviderDTO, Document, UpdateCommunityProviderContractDTO, UpdateCommunityProviderDTO } from '../types';
|
|
3
3
|
export declare class CommunitiesProvidersAPI {
|
|
4
4
|
private _httpClient;
|
|
5
5
|
private _baseUrl;
|
|
@@ -19,5 +19,7 @@ export declare class CommunitiesProvidersContractsAPI {
|
|
|
19
19
|
create(data: CreateCommunityProviderContractDTO): Promise<CommunityProviderContractEntity>;
|
|
20
20
|
update(id: string, data: UpdateCommunityProviderContractDTO): Promise<CommunityProviderContractEntity>;
|
|
21
21
|
delete(id: string): Promise<CommunityProviderContractEntity>;
|
|
22
|
+
addDocuments(id: string, documents: FormFileData[]): Promise<Document[]>;
|
|
23
|
+
removeDocument(id: string, documentId: string): Promise<void>;
|
|
22
24
|
}
|
|
23
25
|
//# sourceMappingURL=providers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/horizontal/communities/api/providers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/horizontal/communities/api/providers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAEjE,OAAO,EACL,iBAAiB,EACjB,+BAA+B,EAC/B,yBAAyB,EACzB,kCAAkC,EAClC,0BAA0B,EAC1B,QAAQ,EACR,kCAAkC,EAClC,0BAA0B,EAC3B,MAAM,UAAU,CAAA;AAUjB,qBAAa,uBAAuB;IAIhC,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,QAAQ;IAJlB,OAAO,CAAC,KAAK,CAAwB;gBAG3B,WAAW,EAAE,UAAU,EACvB,QAAQ,EAAE,MAAM;IAK1B,MAAM,CAAC,IAAI,EAAE,0BAA0B,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAIpE,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,0BAA0B,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAIhF,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjC,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC,iBAAiB,GAAG,yBAAyB,CAAC,EAAE,CAAC;IAIjG,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,gCAAgC;CAGxD;AAED,qBAAa,gCAAgC;IAQzC,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IAR3B,OAAO,CAAC,QAAQ,CAAC,IAAI,CAIpB;gBAGkB,WAAW,EAAE,UAAU,EACvB,QAAQ,EAAE,MAAM;IAWnC,MAAM,CAAC,IAAI,EAAE,kCAAkC,GAAG,OAAO,CAAC,+BAA+B,CAAC;IAW1F,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,kCAAkC,GAAG,OAAO,CAAC,+BAA+B,CAAC;IAItG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,+BAA+B,CAAC;IAI5D,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC;IAMxE,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAG9D"}
|
|
@@ -53,5 +53,13 @@ export class CommunitiesProvidersContractsAPI {
|
|
|
53
53
|
delete(id) {
|
|
54
54
|
return this._httpClient.delete(`${this._baseUrl}/${id}`);
|
|
55
55
|
}
|
|
56
|
+
addDocuments(id, documents) {
|
|
57
|
+
return this._httpClient.form(`${this._baseUrl}/${id}/documents`, {
|
|
58
|
+
files: documents,
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
removeDocument(id, documentId) {
|
|
62
|
+
return this._httpClient.delete(`${this._baseUrl}/${id}/documents/${documentId}`);
|
|
63
|
+
}
|
|
56
64
|
}
|
|
57
65
|
//# sourceMappingURL=providers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../../../../src/modules/horizontal/communities/api/providers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;
|
|
1
|
+
{"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../../../../src/modules/horizontal/communities/api/providers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAW7C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAE9C,MAAM,sBAAuB,SAAQ,IAKpC;CAAG;AAEJ,MAAM,OAAO,uBAAuB;IAIxB;IACA;IAJF,KAAK,CAAwB;IAErC,YACU,WAAuB,EACvB,QAAgB;QADhB,gBAAW,GAAX,WAAW,CAAY;QACvB,aAAQ,GAAR,QAAQ,CAAQ;QAExB,IAAI,CAAC,KAAK,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAA;IACxF,CAAC;IAED,MAAM,CAAC,IAAgC;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,IAAgC;QACjD,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,CAAoB,GAAG,IAAI,CAAC,QAAQ,qBAAqB,EAAE,EAAE,EAAE,IAAI,CAAC,CAAA;IACnG,CAAC;IAED,MAAM,CAAC,EAAU;QACf,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAAO,GAAG,IAAI,CAAC,QAAQ,qBAAqB,EAAE,EAAE,CAAC,CAAA;IACjF,CAAC;IAED,IAAI,CAAC,KAA+B;QAClC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAC/B,CAAC;IAED,SAAS,CAAC,EAAU;QAClB,OAAO,IAAI,gCAAgC,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,QAAQ,IAAI,EAAE,YAAY,CAAC,CA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c,UAAU,EAAE,CAAC,CAAA;IACxF,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { HTTPClient } from '../../../../utils/http';
|
|
2
|
-
import { CRUD } from '../../../../utils/crud';
|
|
3
|
-
import { VisitExtendedEntity2, VisitorEntity, PropertyFavouriteVisitorExtendedEntity, VisitAccessLogEntity, VisitAccessLogDocumentEntity, CreateVisitRequest, UpdateVisitRequest, CreateVisitorRequest, UpdateVisitorEntity, CreatePropertyFavouriteVisitorRequest, UpdatePropertyFavouriteVisitorEntity, ValidateQRCodeRequest, QRCodeResult, UploadAccessLogDocumentRequest } from '../types/visit';
|
|
4
|
-
export declare class VisitsAPI extends CRUD<VisitExtendedEntity2, CreateVisitRequest, UpdateVisitRequest, VisitExtendedEntity2[]> {
|
|
5
|
-
private readonly _visitId?;
|
|
6
|
-
constructor(httpClient: HTTPClient, baseUrl: string, _visitId?: string | undefined);
|
|
7
|
-
visitors(visitorId?: string): VisitorsAPI;
|
|
8
|
-
downloadQRCode(visitorId: string): Promise<Blob>;
|
|
9
|
-
}
|
|
10
|
-
export declare class VisitorsAPI extends CRUD<VisitorEntity, CreateVisitorRequest, UpdateVisitorEntity, VisitorEntity[]> {
|
|
11
|
-
private readonly _visitorId?;
|
|
12
|
-
constructor(httpClient: HTTPClient, baseUrl: string, _visitorId?: string | undefined);
|
|
13
|
-
revoke(): Promise<VisitorEntity>;
|
|
14
|
-
checkIn(): Promise<VisitAccessLogEntity>;
|
|
15
|
-
checkOut(): Promise<VisitAccessLogEntity>;
|
|
16
|
-
accessLogs(accessLogId?: string): VisitAccessLogsAPI;
|
|
17
|
-
}
|
|
18
|
-
export declare class VisitAccessLogsAPI extends CRUD<VisitAccessLogEntity, never, never, VisitAccessLogEntity[]> {
|
|
19
|
-
private readonly _accessLogId?;
|
|
20
|
-
constructor(httpClient: HTTPClient, baseUrl: string, _accessLogId?: string | undefined);
|
|
21
|
-
documents(documentId?: string): VisitAccessLogDocumentsAPI;
|
|
22
|
-
}
|
|
23
|
-
export declare class VisitAccessLogDocumentsAPI extends CRUD<VisitAccessLogDocumentEntity, UploadAccessLogDocumentRequest, never, VisitAccessLogDocumentEntity[]> {
|
|
24
|
-
private readonly _documentId?;
|
|
25
|
-
constructor(httpClient: HTTPClient, baseUrl: string, _documentId?: string | undefined);
|
|
26
|
-
download(): Promise<Blob>;
|
|
27
|
-
}
|
|
28
|
-
export declare class PropertyFavouriteVisitorsAPI extends CRUD<PropertyFavouriteVisitorExtendedEntity, CreatePropertyFavouriteVisitorRequest, UpdatePropertyFavouriteVisitorEntity, PropertyFavouriteVisitorExtendedEntity[]> {
|
|
29
|
-
private readonly _propertyFavouriteVisitorId?;
|
|
30
|
-
constructor(httpClient: HTTPClient, baseUrl: string, _propertyFavouriteVisitorId?: string | undefined);
|
|
31
|
-
}
|
|
32
|
-
export declare class VisitValidationAPI {
|
|
33
|
-
private readonly _httpClient;
|
|
34
|
-
private readonly _baseUrl;
|
|
35
|
-
constructor(_httpClient: HTTPClient, _baseUrl: string);
|
|
36
|
-
validateQRCode(data: ValidateQRCodeRequest): Promise<QRCodeResult>;
|
|
37
|
-
}
|
|
38
|
-
export declare class CommunitiesVisitsAPI {
|
|
39
|
-
private readonly _httpClient;
|
|
40
|
-
private readonly _baseUrl;
|
|
41
|
-
constructor(_httpClient: HTTPClient, _baseUrl: string);
|
|
42
|
-
visits(visitId?: string): VisitsAPI;
|
|
43
|
-
propertyVisits(propertyId: string, visitId?: string): VisitsAPI;
|
|
44
|
-
validation(): VisitValidationAPI;
|
|
45
|
-
visitorAccess(visitId: string, visitorId: string): VisitorsAPI;
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=visits.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"visits.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/horizontal/communities/api/visits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wBAA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OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,WAAW;CAG/D"}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CommunitiesVisitsAPI = exports.VisitValidationAPI = exports.PropertyFavouriteVisitorsAPI = exports.VisitAccessLogDocumentsAPI = exports.VisitAccessLogsAPI = exports.VisitorsAPI = exports.VisitsAPI = void 0;
|
|
4
|
-
const crud_1 = require("../../../../utils/crud");
|
|
5
|
-
class VisitsAPI extends crud_1.CRUD {
|
|
6
|
-
_visitId;
|
|
7
|
-
constructor(httpClient, baseUrl, _visitId) {
|
|
8
|
-
super(httpClient, {
|
|
9
|
-
basePath: baseUrl,
|
|
10
|
-
id: _visitId,
|
|
11
|
-
});
|
|
12
|
-
this._visitId = _visitId;
|
|
13
|
-
}
|
|
14
|
-
visitors(visitorId) {
|
|
15
|
-
const visitId = this._getIdParam();
|
|
16
|
-
return new VisitorsAPI(this._httpClient, `${this._config.basePath}/${visitId}/visitors`, visitorId);
|
|
17
|
-
}
|
|
18
|
-
async downloadQRCode(visitorId) {
|
|
19
|
-
const visitId = this._getIdParam();
|
|
20
|
-
return this._httpClient.get(`${this._config.basePath}/${visitId}/visitors/${visitorId}/qr`);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.VisitsAPI = VisitsAPI;
|
|
24
|
-
class VisitorsAPI extends crud_1.CRUD {
|
|
25
|
-
_visitorId;
|
|
26
|
-
constructor(httpClient, baseUrl, _visitorId) {
|
|
27
|
-
super(httpClient, {
|
|
28
|
-
basePath: baseUrl,
|
|
29
|
-
id: _visitorId,
|
|
30
|
-
});
|
|
31
|
-
this._visitorId = _visitorId;
|
|
32
|
-
}
|
|
33
|
-
async revoke() {
|
|
34
|
-
const visitorId = this._getIdParam();
|
|
35
|
-
return this._httpClient.delete(`${this._config.basePath}/${visitorId}`);
|
|
36
|
-
}
|
|
37
|
-
async checkIn() {
|
|
38
|
-
const visitorId = this._getIdParam();
|
|
39
|
-
return this._httpClient.post(`${this._config.basePath}/${visitorId}/checkin`);
|
|
40
|
-
}
|
|
41
|
-
async checkOut() {
|
|
42
|
-
const visitorId = this._getIdParam();
|
|
43
|
-
return this._httpClient.post(`${this._config.basePath}/${visitorId}/checkout`);
|
|
44
|
-
}
|
|
45
|
-
accessLogs(accessLogId) {
|
|
46
|
-
const visitorId = this._getIdParam();
|
|
47
|
-
return new VisitAccessLogsAPI(this._httpClient, `${this._config.basePath}/${visitorId}/access-logs`, accessLogId);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.VisitorsAPI = VisitorsAPI;
|
|
51
|
-
class VisitAccessLogsAPI extends crud_1.CRUD {
|
|
52
|
-
_accessLogId;
|
|
53
|
-
constructor(httpClient, baseUrl, _accessLogId) {
|
|
54
|
-
super(httpClient, {
|
|
55
|
-
basePath: baseUrl,
|
|
56
|
-
id: _accessLogId,
|
|
57
|
-
methods: {
|
|
58
|
-
isCreateEnabled: false,
|
|
59
|
-
isReadEnabled: true,
|
|
60
|
-
isUpdateEnabled: false,
|
|
61
|
-
isDeleteEnabled: false,
|
|
62
|
-
isFindEnabled: true,
|
|
63
|
-
},
|
|
64
|
-
});
|
|
65
|
-
this._accessLogId = _accessLogId;
|
|
66
|
-
}
|
|
67
|
-
documents(documentId) {
|
|
68
|
-
const accessLogId = this._getIdParam();
|
|
69
|
-
return new VisitAccessLogDocumentsAPI(this._httpClient, `${this._config.basePath}/${accessLogId}/documents`, documentId);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
exports.VisitAccessLogsAPI = VisitAccessLogsAPI;
|
|
73
|
-
class VisitAccessLogDocumentsAPI extends crud_1.CRUD {
|
|
74
|
-
_documentId;
|
|
75
|
-
constructor(httpClient, baseUrl, _documentId) {
|
|
76
|
-
super(httpClient, {
|
|
77
|
-
basePath: baseUrl,
|
|
78
|
-
id: _documentId,
|
|
79
|
-
methods: {
|
|
80
|
-
isCreateEnabled: true,
|
|
81
|
-
isReadEnabled: true,
|
|
82
|
-
isUpdateEnabled: false,
|
|
83
|
-
isDeleteEnabled: false,
|
|
84
|
-
isFindEnabled: true,
|
|
85
|
-
},
|
|
86
|
-
});
|
|
87
|
-
this._documentId = _documentId;
|
|
88
|
-
}
|
|
89
|
-
async download() {
|
|
90
|
-
const documentId = this._getIdParam();
|
|
91
|
-
return this._httpClient.get(`${this._config.basePath}/${documentId}/download`);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
exports.VisitAccessLogDocumentsAPI = VisitAccessLogDocumentsAPI;
|
|
95
|
-
class PropertyFavouriteVisitorsAPI extends crud_1.CRUD {
|
|
96
|
-
_propertyFavouriteVisitorId;
|
|
97
|
-
constructor(httpClient, baseUrl, _propertyFavouriteVisitorId) {
|
|
98
|
-
super(httpClient, {
|
|
99
|
-
basePath: baseUrl,
|
|
100
|
-
id: _propertyFavouriteVisitorId,
|
|
101
|
-
});
|
|
102
|
-
this._propertyFavouriteVisitorId = _propertyFavouriteVisitorId;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
exports.PropertyFavouriteVisitorsAPI = PropertyFavouriteVisitorsAPI;
|
|
106
|
-
class VisitValidationAPI {
|
|
107
|
-
_httpClient;
|
|
108
|
-
_baseUrl;
|
|
109
|
-
constructor(_httpClient, _baseUrl) {
|
|
110
|
-
this._httpClient = _httpClient;
|
|
111
|
-
this._baseUrl = _baseUrl;
|
|
112
|
-
}
|
|
113
|
-
async validateQRCode(data) {
|
|
114
|
-
return this._httpClient.post(`${this._baseUrl}/validate`, data);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
exports.VisitValidationAPI = VisitValidationAPI;
|
|
118
|
-
class CommunitiesVisitsAPI {
|
|
119
|
-
_httpClient;
|
|
120
|
-
_baseUrl;
|
|
121
|
-
constructor(_httpClient, _baseUrl) {
|
|
122
|
-
this._httpClient = _httpClient;
|
|
123
|
-
this._baseUrl = _baseUrl;
|
|
124
|
-
}
|
|
125
|
-
visits(visitId) {
|
|
126
|
-
return new VisitsAPI(this._httpClient, `${this._baseUrl}/visits`, visitId);
|
|
127
|
-
}
|
|
128
|
-
propertyVisits(propertyId, visitId) {
|
|
129
|
-
return new VisitsAPI(this._httpClient, `${this._baseUrl}/properties/${propertyId}/visits`, visitId);
|
|
130
|
-
}
|
|
131
|
-
validation() {
|
|
132
|
-
return new VisitValidationAPI(this._httpClient, this._baseUrl);
|
|
133
|
-
}
|
|
134
|
-
visitorAccess(visitId, visitorId) {
|
|
135
|
-
return new VisitorsAPI(this._httpClient, `${this._baseUrl}/visits/${visitId}/visitors`, visitorId);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
exports.CommunitiesVisitsAPI = CommunitiesVisitsAPI;
|
|
139
|
-
//# sourceMappingURL=visits.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"visits.js","sourceRoot":"","sources":["../../../../../../src/modules/horizontal/communities/api/visits.ts"],"names":[],"mappings":";;;AACA,iDAA6C;AAkB7C,MAAa,SAAU,SAAQ,WAK9B;IAIoB;IAHnB,YACE,UAAsB,EACtB,OAAe,EACE,QAAiB;QAElC,KAAK,CAAC,UAAU,EAAE;YAChB,QAAQ,EAAE,OAAO;YACjB,EAAE,EAAE,QAAQ;SACb,CAAC,CAAA;QALe,aAAQ,GAAR,QAAQ,CAAS;IAMpC,CAAC;IAED,QAAQ,CAAC,SAAkB;QACzB,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,EAAE,CAAA;QAClC,OAAO,IAAI,WAAW,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,OAAO,WAAW,EAAE,SAAS,CAAC,CAAA;IACrG,CAAC;IAED,KAAK,CAAC,cAAc,CAAC,SAAiB;QACpC,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,EAAE,CAAA;QAClC,OAAO,IAAI,CAAC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