accounting-tools 1.0.2 → 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.
@@ -0,0 +1,5 @@
1
+ import { ExpressStandardConfiguration } from "itrm-tools";
2
+ import { Express } from "express";
3
+ export declare class ExpressLogableConfig extends ExpressStandardConfiguration {
4
+ apply(app: Express): void;
5
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ExpressLogableConfig = void 0;
7
+ const itrm_tools_1 = require("itrm-tools");
8
+ const morgan_1 = __importDefault(require("morgan"));
9
+ class ExpressLogableConfig extends itrm_tools_1.ExpressStandardConfiguration {
10
+ apply(app) {
11
+ // Apply standard configuration from parent class
12
+ super.apply(app);
13
+ // Add morgan logging middleware with following format
14
+ app.use((0, morgan_1.default)(':remote-addr - :remote-user [:date[web]] ":method :url HTTP/:http-version" :status :res[content-length]'));
15
+ }
16
+ }
17
+ exports.ExpressLogableConfig = ExpressLogableConfig;
18
+ //# sourceMappingURL=ExpressLogableConfig.js.map
@@ -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
+ }
@@ -0,0 +1,72 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContactManager = void 0;
4
+ const itrm_tools_1 = require("itrm-tools");
5
+ class ContactManager extends itrm_tools_1.CrudServiceManager {
6
+ url;
7
+ constructor(url) {
8
+ super();
9
+ this.url = url;
10
+ }
11
+ find(details) {
12
+ return this.sendFinding(`${this.url}/contacts?identificationType=${details.identificationType}&identificationNumber=${details.identificationNumber}`, details.config);
13
+ }
14
+ findById(details) {
15
+ return this.sendFinding(`${this.url}/contacts?id=${details.id}`, details.config);
16
+ }
17
+ findByEmail(details) {
18
+ return this.sendFinding(`${this.url}/contacts?email=${details.email}`, details.config);
19
+ }
20
+ findByKindOfPerson(details) {
21
+ return this.sendAllFinding(`${this.url}/contacts?kindOfPerson=${details.kindOfPerson}`, details.config);
22
+ }
23
+ findByRegime(details) {
24
+ return this.sendAllFinding(`${this.url}/contacts?regime=${details.regime}`, details.config);
25
+ }
26
+ findByCountry(details) {
27
+ return this.sendAllFinding(`${this.url}/contacts?country=${details.country}`, details.config);
28
+ }
29
+ findByPrimaryPhone(details) {
30
+ return this.sendAllFinding(`${this.url}/contacts?primaryPhone=${details.primaryPhone}`, details.config);
31
+ }
32
+ async count(details) {
33
+ let url = this.buildRequestUrl(`${this.url}/contacts`, details);
34
+ return (await this.sendCounting(url, details.config)) ?? 0;
35
+ }
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;
53
+ }
54
+ buildRequestUrl(url, details) {
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 ? `&regime=${details.regime}` : ""}${details.email ? `&email=${details.email}` : ""}${details.primaryPhone ? `&primaryPhone=${details.primaryPhone}` : ""}`;
56
+ return `${url}?${suffix.substring(1)}`;
57
+ }
58
+ create(details) {
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);
60
+ }
61
+ createMany(details) {
62
+ return this.sendCreationMany(`${this.url}/contacts`, details.values ?? [], details.config);
63
+ }
64
+ modify(contact) {
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);
66
+ }
67
+ destroy(contact) {
68
+ return this.sendDestruction(`${this.url}/contacts/${contact.contactId}`, contact.config);
69
+ }
70
+ }
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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OAAO,CAAC,OAAO,EAAE,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,EAClZ,OAAO,CAAC,MAAM,CACf,CAAC;IACJ,CAAC;IAEM,OAAO,CAAC,OAAiB;QAC9B,OAAO,IAAI,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC,GAAG,aAAa,OAAO,CAAC,SAAS,EAAE,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IAC3F,CAAC;CACF;AAvFD,wCAuFC"}
@@ -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 ADDED
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Country = exports.Regime = exports.KindOfPerson = exports.IdentificationType = exports.ContactManager = exports.ExpressLogableConfig = void 0;
4
+ var ExpressLogableConfig_1 = require("./api/ExpressLogableConfig");
5
+ Object.defineProperty(exports, "ExpressLogableConfig", { enumerable: true, get: function () { return ExpressLogableConfig_1.ExpressLogableConfig; } });
6
+ var ContactManager_1 = require("./crud/ContactManager");
7
+ Object.defineProperty(exports, "ContactManager", { enumerable: true, get: function () { return ContactManager_1.ContactManager; } });
8
+ var types_1 = require("./types/types");
9
+ Object.defineProperty(exports, "IdentificationType", { enumerable: true, get: function () { return types_1.IdentificationType; } });
10
+ Object.defineProperty(exports, "KindOfPerson", { enumerable: true, get: function () { return types_1.KindOfPerson; } });
11
+ Object.defineProperty(exports, "Regime", { enumerable: true, get: function () { return types_1.Regime; } });
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
+ }
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Country = exports.Regime = exports.KindOfPerson = exports.IdentificationType = void 0;
4
+ ;
5
+ var IdentificationType;
6
+ (function (IdentificationType) {
7
+ IdentificationType["CC"] = "CC";
8
+ IdentificationType["TI"] = "TI";
9
+ IdentificationType["NIT"] = "NIT";
10
+ IdentificationType["CE"] = "CE";
11
+ IdentificationType["PASSPORT"] = "PASSPORT";
12
+ IdentificationType["DIE"] = "DIE";
13
+ IdentificationType["PP"] = "PP";
14
+ IdentificationType["RC"] = "RC";
15
+ IdentificationType["FOREIGN_NIT"] = "FOREIGN_NIT";
16
+ IdentificationType["NUIP"] = "NUIP";
17
+ })(IdentificationType || (exports.IdentificationType = IdentificationType = {}));
18
+ ;
19
+ var KindOfPerson;
20
+ (function (KindOfPerson) {
21
+ KindOfPerson["Person"] = "PERSON_ENTITY";
22
+ KindOfPerson["Legal"] = "LEGAL_ENTITY";
23
+ KindOfPerson["Other"] = "OTHER_ENTITY";
24
+ })(KindOfPerson || (exports.KindOfPerson = KindOfPerson = {}));
25
+ ;
26
+ var Regime;
27
+ (function (Regime) {
28
+ Regime["COMMON"] = "COMMON";
29
+ Regime["SIMPLIFIED"] = "SIMPLIFIED";
30
+ Regime["NATIONAL_CONSUMPTION_TAX"] = "NATIONAL_CONSUMPTION_TAX";
31
+ Regime["NOT_REPONSIBLE_FOR_CONSUMPTION"] = "NOT_REPONSIBLE_FOR_CONSUMPTION";
32
+ Regime["INC_IVA_RESPONSIBLE"] = "INC_IVA_RESPONSIBLE";
33
+ Regime["SPECIAL_REGIME"] = "SPECIAL_REGIME";
34
+ Regime["NOT_REGISTERED"] = "NOT_REGISTERED";
35
+ })(Regime || (exports.Regime = Regime = {}));
36
+ ;
37
+ var Country;
38
+ (function (Country) {
39
+ Country["COLOMBIA"] = "CO";
40
+ Country["USA"] = "US";
41
+ Country["CANADA"] = "CA";
42
+ Country["MEXICO"] = "MX";
43
+ })(Country || (exports.Country = Country = {}));
44
+ ;
45
+ //# sourceMappingURL=types.js.map
@@ -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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "accounting-tools",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Librería para la plataforma de contabilidad",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",