accounting-tools 1.0.3 → 1.0.4
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/api/ExpressLogableConfig.d.ts +5 -0
- package/dist/api/ExpressLogableConfig.js +1 -0
- package/dist/api/ExpressLogableConfig.js.map +1 -0
- package/dist/crud/ContactManager.d.ts +60 -0
- package/dist/crud/ContactManager.js +23 -37
- package/dist/crud/ContactManager.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -0
- package/dist/types/types.d.ts +39 -0
- package/dist/types/types.js +1 -0
- package/dist/types/types.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpressLogableConfig.js","sourceRoot":"","sources":["../../src/api/ExpressLogableConfig.ts"],"names":[],"mappings":";;;;;;AAAA,2CAA0D;AAE1D,oDAA4B;AAE5B,MAAa,oBAAqB,SAAQ,yCAA4B;IACpE,KAAK,CAAC,GAAY;QAChB,iDAAiD;QACjD,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACjB,sDAAsD;QACtD,GAAG,CAAC,GAAG,CAAC,IAAA,gBAAM,EAAC,yGAAyG,CAAC,CAAC,CAAC;IAC7H,CAAC;CACF;AAPD,oDAOC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from "axios";
|
|
2
|
+
import { CrudServiceManager, StandardIdRequestDefinition } from "itrm-tools";
|
|
3
|
+
import { ContactName, KindOfPerson, Regime, Country, IdentificationType } from "../types/types";
|
|
4
|
+
export interface IContact {
|
|
5
|
+
contactId?: number;
|
|
6
|
+
name?: ContactName;
|
|
7
|
+
identificationType?: IdentificationType;
|
|
8
|
+
identificationNumber?: string;
|
|
9
|
+
kindOfPerson?: KindOfPerson;
|
|
10
|
+
regime?: Regime;
|
|
11
|
+
email?: string;
|
|
12
|
+
primaryPhone?: string;
|
|
13
|
+
street?: string;
|
|
14
|
+
city?: string;
|
|
15
|
+
department?: string;
|
|
16
|
+
country?: Country;
|
|
17
|
+
contactType?: string[];
|
|
18
|
+
details?: object;
|
|
19
|
+
updatedAt?: string;
|
|
20
|
+
createdAt?: string;
|
|
21
|
+
config?: AxiosRequestConfig;
|
|
22
|
+
}
|
|
23
|
+
export interface IContactSearchDetails {
|
|
24
|
+
id?: string | number;
|
|
25
|
+
name?: ContactName;
|
|
26
|
+
identificationType?: string;
|
|
27
|
+
identificationNumber?: string;
|
|
28
|
+
kindOfPerson?: KindOfPerson;
|
|
29
|
+
regime?: Regime;
|
|
30
|
+
email?: string;
|
|
31
|
+
primaryPhone?: string;
|
|
32
|
+
street?: string;
|
|
33
|
+
city?: string;
|
|
34
|
+
department?: string;
|
|
35
|
+
country?: Country;
|
|
36
|
+
contactType?: string[];
|
|
37
|
+
details?: object;
|
|
38
|
+
values?: IContact[];
|
|
39
|
+
limit?: number;
|
|
40
|
+
offset?: number;
|
|
41
|
+
config?: AxiosRequestConfig;
|
|
42
|
+
}
|
|
43
|
+
export declare class ContactManager extends CrudServiceManager<IContactSearchDetails, IContact> {
|
|
44
|
+
private readonly url;
|
|
45
|
+
constructor(url: string);
|
|
46
|
+
find(details: IContactSearchDetails): Promise<IContact | undefined>;
|
|
47
|
+
findById(details: StandardIdRequestDefinition): Promise<IContact | undefined>;
|
|
48
|
+
findByEmail(details: IContactSearchDetails): Promise<IContact | undefined>;
|
|
49
|
+
findByKindOfPerson(details: IContactSearchDetails): Promise<IContact[] | undefined>;
|
|
50
|
+
findByRegime(details: IContactSearchDetails): Promise<IContact[] | undefined>;
|
|
51
|
+
findByCountry(details: IContactSearchDetails): Promise<IContact[] | undefined>;
|
|
52
|
+
findByPrimaryPhone(details: IContactSearchDetails): Promise<IContact[] | undefined>;
|
|
53
|
+
count(details: IContactSearchDetails): Promise<number>;
|
|
54
|
+
findAll(details: IContactSearchDetails): Promise<IContact[] | undefined>;
|
|
55
|
+
private buildRequestUrl;
|
|
56
|
+
create(details: IContactSearchDetails): Promise<IContact | undefined>;
|
|
57
|
+
createMany(details: IContactSearchDetails): Promise<IContact[] | undefined>;
|
|
58
|
+
modify(contact: IContact): Promise<IContact | undefined>;
|
|
59
|
+
destroy(contact: IContact): Promise<void | number>;
|
|
60
|
+
}
|
|
@@ -1,17 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.ContactManager = void 0;
|
|
13
4
|
const itrm_tools_1 = require("itrm-tools");
|
|
14
5
|
class ContactManager extends itrm_tools_1.CrudServiceManager {
|
|
6
|
+
url;
|
|
15
7
|
constructor(url) {
|
|
16
8
|
super();
|
|
17
9
|
this.url = url;
|
|
@@ -37,33 +29,27 @@ class ContactManager extends itrm_tools_1.CrudServiceManager {
|
|
|
37
29
|
findByPrimaryPhone(details) {
|
|
38
30
|
return this.sendAllFinding(`${this.url}/contacts?primaryPhone=${details.primaryPhone}`, details.config);
|
|
39
31
|
}
|
|
40
|
-
count(details) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
let url = this.buildRequestUrl(`${this.url}/contacts`, details);
|
|
44
|
-
return (_a = (yield this.sendCounting(url, details.config))) !== null && _a !== void 0 ? _a : 0;
|
|
45
|
-
});
|
|
32
|
+
async count(details) {
|
|
33
|
+
let url = this.buildRequestUrl(`${this.url}/contacts`, details);
|
|
34
|
+
return (await this.sendCounting(url, details.config)) ?? 0;
|
|
46
35
|
}
|
|
47
|
-
findAll(details) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
let
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
return contacts;
|
|
66
|
-
});
|
|
36
|
+
async findAll(details) {
|
|
37
|
+
let contacts = [];
|
|
38
|
+
let url = this.buildRequestUrl(`${this.url}/contacts`, details);
|
|
39
|
+
if (details.limit) {
|
|
40
|
+
contacts = (await this.sendAllFinding(`${url}${url.indexOf('?') !== -1 ? '&' : '?'}limit=${details.limit}&offset=${details.offset}`, details.config)) ?? [];
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
let limit = 5000, offset = 0, isEmpty = false;
|
|
44
|
+
do {
|
|
45
|
+
let values = await this.sendAllFinding(`${url}${url.indexOf('?') !== -1 ? '&' : '?'}limit=${limit}&offset=${offset}`, details.config);
|
|
46
|
+
if (values)
|
|
47
|
+
contacts = contacts.concat(values);
|
|
48
|
+
isEmpty = values == undefined || values.length == 0;
|
|
49
|
+
offset += limit;
|
|
50
|
+
} while (!isEmpty);
|
|
51
|
+
}
|
|
52
|
+
return contacts;
|
|
67
53
|
}
|
|
68
54
|
buildRequestUrl(url, details) {
|
|
69
55
|
let suffix = `${details.id ? `&id=${details.id}` : ""}${details.identificationType ? `&identificationType=${details.identificationType}` : ""}${details.identificationNumber ? `&identificationNumber=${details.identificationNumber}` : ""}${details.kindOfPerson ? `&kindOfPerson=${details.kindOfPerson}` : ""}${details.regime ? `®ime=${details.regime}` : ""}${details.email ? `&email=${details.email}` : ""}${details.primaryPhone ? `&primaryPhone=${details.primaryPhone}` : ""}`;
|
|
@@ -73,8 +59,7 @@ class ContactManager extends itrm_tools_1.CrudServiceManager {
|
|
|
73
59
|
return this.sendCreation(`${this.url}/contacts`, { name: details.name, identificationType: details.identificationType, identificationNumber: details.identificationNumber, kindOfPerson: details.kindOfPerson, regime: details.regime, email: details.email, primaryPhone: details.primaryPhone, street: details.street, city: details.city, department: details.department, country: details.country, contactType: details.contactType, details: details.details }, details.config);
|
|
74
60
|
}
|
|
75
61
|
createMany(details) {
|
|
76
|
-
|
|
77
|
-
return this.sendCreationMany(`${this.url}/contacts`, (_a = details.values) !== null && _a !== void 0 ? _a : [], details.config);
|
|
62
|
+
return this.sendCreationMany(`${this.url}/contacts`, details.values ?? [], details.config);
|
|
78
63
|
}
|
|
79
64
|
modify(contact) {
|
|
80
65
|
return this.sendModification(`${this.url}/contacts/${contact.contactId}`, { name: contact.name, identificationType: contact.identificationType, identificationNumber: contact.identificationNumber, kindOfPerson: contact.kindOfPerson, regime: contact.regime, email: contact.email, primaryPhone: contact.primaryPhone, street: contact.street, city: contact.city, department: contact.department, country: contact.country, contactType: contact.contactType, details: contact.details }, contact.config);
|
|
@@ -84,3 +69,4 @@ class ContactManager extends itrm_tools_1.CrudServiceManager {
|
|
|
84
69
|
}
|
|
85
70
|
}
|
|
86
71
|
exports.ContactManager = ContactManager;
|
|
72
|
+
//# sourceMappingURL=ContactManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactManager.js","sourceRoot":"","sources":["../../src/crud/ContactManager.ts"],"names":[],"mappings":";;;AACA,2CAA6E;AA4C7E,MAAa,cAAe,SAAQ,+BAAmD;IACpE,GAAG,CAAS;IAE7B,YAAY,GAAW;QACrB,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAEM,IAAI,CAAC,OAA8B;QACxC,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,GAAG,gCAAgC,OAAO,CAAC,kBA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a,OAAO,CAAC,SAAS,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IAC3F,CAAC;CACF;AAvFD,wCAuFC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { ExpressLogableConfig as ExpressLogableConfig } from './api/ExpressLogableConfig';
|
|
2
|
+
export { ContactManager as ContactManager, IContact as IContact, IContactSearchDetails as IContactSearchDetails } from "./crud/ContactManager";
|
|
3
|
+
export { IdentificationType as IdentificationType, KindOfPerson as KindOfPerson, Regime as Regime, ContactName as ContactName, Country as Country } from "./types/types";
|
package/dist/index.js
CHANGED
|
@@ -10,3 +10,4 @@ Object.defineProperty(exports, "IdentificationType", { enumerable: true, get: fu
|
|
|
10
10
|
Object.defineProperty(exports, "KindOfPerson", { enumerable: true, get: function () { return types_1.KindOfPerson; } });
|
|
11
11
|
Object.defineProperty(exports, "Regime", { enumerable: true, get: function () { return types_1.Regime; } });
|
|
12
12
|
Object.defineProperty(exports, "Country", { enumerable: true, get: function () { return types_1.Country; } });
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mEAA0F;AAAjF,4HAAA,oBAAoB,OAAwB;AAErD,wDAA+I;AAAtI,gHAAA,cAAc,OAAkB;AAGzC,uCAAyK;AAAhK,2GAAA,kBAAkB,OAAsB;AAAE,qGAAA,YAAY,OAAgB;AAAE,+FAAA,MAAM,OAAU;AAA8B,gGAAA,OAAO,OAAW"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface ContactName {
|
|
2
|
+
firstName?: string;
|
|
3
|
+
middleName?: string;
|
|
4
|
+
lastName?: string;
|
|
5
|
+
secondLastName?: string;
|
|
6
|
+
companyName?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare enum IdentificationType {
|
|
9
|
+
CC = "CC",
|
|
10
|
+
TI = "TI",
|
|
11
|
+
NIT = "NIT",
|
|
12
|
+
CE = "CE",
|
|
13
|
+
PASSPORT = "PASSPORT",
|
|
14
|
+
DIE = "DIE",
|
|
15
|
+
PP = "PP",
|
|
16
|
+
RC = "RC",
|
|
17
|
+
FOREIGN_NIT = "FOREIGN_NIT",
|
|
18
|
+
NUIP = "NUIP"
|
|
19
|
+
}
|
|
20
|
+
export declare enum KindOfPerson {
|
|
21
|
+
Person = "PERSON_ENTITY",
|
|
22
|
+
Legal = "LEGAL_ENTITY",
|
|
23
|
+
Other = "OTHER_ENTITY"
|
|
24
|
+
}
|
|
25
|
+
export declare enum Regime {
|
|
26
|
+
COMMON = "COMMON",
|
|
27
|
+
SIMPLIFIED = "SIMPLIFIED",
|
|
28
|
+
NATIONAL_CONSUMPTION_TAX = "NATIONAL_CONSUMPTION_TAX",
|
|
29
|
+
NOT_REPONSIBLE_FOR_CONSUMPTION = "NOT_REPONSIBLE_FOR_CONSUMPTION",
|
|
30
|
+
INC_IVA_RESPONSIBLE = "INC_IVA_RESPONSIBLE",
|
|
31
|
+
SPECIAL_REGIME = "SPECIAL_REGIME",
|
|
32
|
+
NOT_REGISTERED = "NOT_REGISTERED"
|
|
33
|
+
}
|
|
34
|
+
export declare enum Country {
|
|
35
|
+
COLOMBIA = "CO",
|
|
36
|
+
USA = "US",
|
|
37
|
+
CANADA = "CA",
|
|
38
|
+
MEXICO = "MX"
|
|
39
|
+
}
|
package/dist/types/types.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types/types.ts"],"names":[],"mappings":";;;AAMC,CAAC;AAEF,IAAY,kBAWX;AAXD,WAAY,kBAAkB;IAC5B,+BAAS,CAAA;IACT,+BAAS,CAAA;IACT,iCAAW,CAAA;IACX,+BAAS,CAAA;IACT,2CAAqB,CAAA;IACrB,iCAAW,CAAA;IACX,+BAAS,CAAA;IACT,+BAAS,CAAA;IACT,iDAA2B,CAAA;IAC3B,mCAAa,CAAA;AACf,CAAC,EAXW,kBAAkB,kCAAlB,kBAAkB,QAW7B;AAAA,CAAC;AAEF,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,wCAAwB,CAAA;IACxB,sCAAsB,CAAA;IACtB,sCAAsB,CAAA;AACxB,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB;AAAA,CAAC;AAEF,IAAY,MAQX;AARD,WAAY,MAAM;IAChB,2BAAiB,CAAA;IACjB,mCAAyB,CAAA;IACzB,+DAAqD,CAAA;IACrD,2EAAiE,CAAA;IACjE,qDAA2C,CAAA;IAC3C,2CAAiC,CAAA;IACjC,2CAAiC,CAAA;AACnC,CAAC,EARW,MAAM,sBAAN,MAAM,QAQjB;AAAA,CAAC;AAEF,IAAY,OAKX;AALD,WAAY,OAAO;IACjB,0BAAe,CAAA;IACf,qBAAU,CAAA;IACV,wBAAa,CAAA;IACb,wBAAa,CAAA;AACf,CAAC,EALW,OAAO,uBAAP,OAAO,QAKlB;AAAA,CAAC"}
|