@tomei/finance 0.11.8 → 0.12.1
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/.commitlintrc.json +23 -23
- package/LICENSE +21 -21
- package/configs/config.js +348 -348
- package/dist/document/document-item.d.ts +6 -1
- package/dist/document/document-item.d.ts.map +1 -1
- package/dist/document/document-item.js +23 -0
- package/dist/document/document-item.js.map +1 -1
- package/dist/document/document.d.ts +4 -1
- package/dist/document/document.d.ts.map +1 -1
- package/dist/document/document.js +23 -2
- package/dist/document/document.js.map +1 -1
- package/dist/document/interfaces/document-attr.interface.d.ts +4 -1
- package/dist/document/interfaces/document-attr.interface.d.ts.map +1 -1
- package/dist/document/interfaces/document-attr.interface.js.map +1 -1
- package/dist/document/interfaces/document-item-attr.interface.d.ts +4 -0
- package/dist/document/interfaces/document-item-attr.interface.d.ts.map +1 -1
- package/dist/document/interfaces/document-item-attr.interface.js.map +1 -1
- package/dist/enum/discount-type.enum.d.ts +5 -0
- package/dist/enum/discount-type.enum.d.ts.map +1 -0
- package/dist/enum/discount-type.enum.js +9 -0
- package/dist/enum/discount-type.enum.js.map +1 -0
- package/dist/enum/index.d.ts +2 -1
- package/dist/enum/index.d.ts.map +1 -1
- package/dist/enum/index.js +3 -1
- package/dist/enum/index.js.map +1 -1
- package/dist/finance-company/finance-company.d.ts.map +1 -1
- package/dist/finance-company/finance-company.js +18 -0
- package/dist/finance-company/finance-company.js.map +1 -1
- package/dist/journal-entry/journal-entry.d.ts.map +1 -1
- package/dist/journal-entry/journal-entry.js +2 -2
- package/dist/journal-entry/journal-entry.js.map +1 -1
- package/dist/ledger-transaction/ledger-transaction.d.ts.map +1 -1
- package/dist/ledger-transaction/ledger-transaction.js +5 -2
- package/dist/ledger-transaction/ledger-transaction.js.map +1 -1
- package/dist/models/document-item.entity.d.ts +6 -1
- package/dist/models/document-item.entity.d.ts.map +1 -1
- package/dist/models/document-item.entity.js +22 -0
- package/dist/models/document-item.entity.js.map +1 -1
- package/dist/models/document.entity.d.ts +8 -2
- package/dist/models/document.entity.d.ts.map +1 -1
- package/dist/models/document.entity.js +24 -1
- package/dist/models/document.entity.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/invoice-template/assets/css/style.css.map +12 -12
- package/invoice-template/assets/css/style.min.css +1 -1
- package/invoice-template/assets/img/arrow_bg.svg +11 -11
- package/invoice-template/assets/img/coffy_shop_img.svg +18 -18
- package/invoice-template/assets/img/logo_accent.svg +3 -3
- package/invoice-template/assets/img/logo_white.svg +4 -4
- package/invoice-template/assets/img/sign.svg +12 -12
- package/invoice-template/assets/img/tomei-logo.svg +9 -9
- package/invoice-template/assets/js/html2canvas.min.js +10379 -10379
- package/invoice-template/assets/js/jquery.min.js +1 -1
- package/invoice-template/assets/sass/common/_color_variable.scss +12 -12
- package/invoice-template/assets/sass/common/_typography.scss +178 -178
- package/invoice-template/assets/sass/style.scss +12 -12
- package/migrations/add-discount-collumn-to-document-related-table.js +91 -0
- package/migrations/finance-account-migration.js +97 -97
- package/migrations/finance-company-migration.js +29 -29
- package/migrations/finance-customer-migration.js +51 -51
- package/migrations/finance-document-item-migration.js +111 -111
- package/migrations/finance-document-migration.js +122 -122
- package/migrations/finance-document-tag-migration.js +46 -46
- package/migrations/finance-journal-entry-migration.js +59 -59
- package/migrations/finance-ledger-transaction-migration.js +89 -89
- package/migrations/finance-payment-item-migration.js +52 -52
- package/migrations/finance-payment-method-migration.js +31 -31
- package/migrations/finance-payment-method-type-migration.js +55 -55
- package/migrations/finance-payment-migration.js +96 -96
- package/migrations/finance-post-history-migration.js +45 -45
- package/migrations/finance-tag-group-migration.js +53 -53
- package/migrations/finance-tag-migration.js +63 -63
- package/migrations/finance-tax-migration.js +52 -52
- package/migrations/refactor-finance-document-migration.js +71 -71
- package/migrations/update-document-item.migration.js +87 -87
- package/package.json +77 -77
- package/dist/enum/quick-book-client-scopes.enum.d.ts +0 -14
- package/dist/enum/quick-book-client-scopes.enum.d.ts.map +0 -1
- package/dist/enum/quick-book-client-scopes.enum.js +0 -52
- package/dist/enum/quick-book-client-scopes.enum.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tomei/finance",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "NestJS package for finance module",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"start:dev": "tsc -w",
|
|
8
|
-
"build": "tsc",
|
|
9
|
-
"prepare": "husky install",
|
|
10
|
-
"format": "prettier --write \"src/**/*.ts\"",
|
|
11
|
-
"lint": "npx eslint . --fix",
|
|
12
|
-
"test": "jest",
|
|
13
|
-
"test:watch": "jest --watch",
|
|
14
|
-
"test:cov": "jest --coverage",
|
|
15
|
-
"test:e2e": "jest --config ./test/jest-e2e.json"
|
|
16
|
-
},
|
|
17
|
-
"keywords": [
|
|
18
|
-
"tomei",
|
|
19
|
-
"finance"
|
|
20
|
-
],
|
|
21
|
-
"author": "Fadhil Muhammad <fadhil@tomei.com.my>",
|
|
22
|
-
"license": "ISC",
|
|
23
|
-
"repository": {
|
|
24
|
-
"type": "git",
|
|
25
|
-
"url": "https://gitlab.com/tomei-package/finance.git"
|
|
26
|
-
},
|
|
27
|
-
"publishConfig": {
|
|
28
|
-
"access": "public"
|
|
29
|
-
},
|
|
30
|
-
"peerDependencies": {
|
|
31
|
-
"@nestjs/common": "^10.4.15",
|
|
32
|
-
"@nestjs/swagger": "^8.1.0",
|
|
33
|
-
"@tomei/activity-history": "^0.4.1",
|
|
34
|
-
"@tomei/config": "^0.3.21",
|
|
35
|
-
"@tomei/general": "^0.21.7",
|
|
36
|
-
"@tomei/media": "^0.8.10",
|
|
37
|
-
"@tomei/sso": "^0.60.4",
|
|
38
|
-
"axios": "^1.7.9",
|
|
39
|
-
"cuid": "^3.0.0",
|
|
40
|
-
"dotenv": "^16.4.7",
|
|
41
|
-
"intuit-oauth": "^4.1.3",
|
|
42
|
-
"puppeteer": "^23.11.1",
|
|
43
|
-
"sequelize": "^6.37.5",
|
|
44
|
-
"sequelize-typescript": "^2.1.6"
|
|
45
|
-
},
|
|
46
|
-
"devDependencies": {
|
|
47
|
-
"@commitlint/cli": "^19.6.1",
|
|
48
|
-
"@commitlint/config-conventional": "^19.6.0",
|
|
49
|
-
"@eslint/js": "^9.17.0",
|
|
50
|
-
"@types/multer": "^1.4.12",
|
|
51
|
-
"@types/node": "^22.10.2",
|
|
52
|
-
"@types/sequelize": "^4.28.20",
|
|
53
|
-
"@typescript-eslint/eslint-plugin": "^8.18.2",
|
|
54
|
-
"eslint": "^9.17.0",
|
|
55
|
-
"eslint-config-prettier": "^9.1.0",
|
|
56
|
-
"eslint-plugin-import": "^2.31.0",
|
|
57
|
-
"eslint-plugin-prettier": "^5.2.1",
|
|
58
|
-
"globals": "^15.14.0",
|
|
59
|
-
"husky": "^9.1.7",
|
|
60
|
-
"lint-staged": "^15.3.0",
|
|
61
|
-
"prettier": "^3.4.2",
|
|
62
|
-
"ts-node": "^10.9.2",
|
|
63
|
-
"tsc-watch": "^6.2.1",
|
|
64
|
-
"tsconfig-paths": "^4.2.0",
|
|
65
|
-
"typescript": "^5.7.2",
|
|
66
|
-
"typescript-eslint": "^8.18.2"
|
|
67
|
-
},
|
|
68
|
-
"lint-staged": {
|
|
69
|
-
"*/**/*.{js,ts,tsx}": [
|
|
70
|
-
"npm run lint",
|
|
71
|
-
"npm run eslint",
|
|
72
|
-
"npm run format",
|
|
73
|
-
"npm run build",
|
|
74
|
-
"git add ."
|
|
75
|
-
]
|
|
76
|
-
}
|
|
77
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@tomei/finance",
|
|
3
|
+
"version": "0.12.1",
|
|
4
|
+
"description": "NestJS package for finance module",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start:dev": "tsc -w",
|
|
8
|
+
"build": "tsc",
|
|
9
|
+
"prepare": "husky install",
|
|
10
|
+
"format": "prettier --write \"src/**/*.ts\"",
|
|
11
|
+
"lint": "npx eslint . --fix",
|
|
12
|
+
"test": "jest",
|
|
13
|
+
"test:watch": "jest --watch",
|
|
14
|
+
"test:cov": "jest --coverage",
|
|
15
|
+
"test:e2e": "jest --config ./test/jest-e2e.json"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"tomei",
|
|
19
|
+
"finance"
|
|
20
|
+
],
|
|
21
|
+
"author": "Fadhil Muhammad <fadhil@tomei.com.my>",
|
|
22
|
+
"license": "ISC",
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "https://gitlab.com/tomei-package/finance.git"
|
|
26
|
+
},
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"@nestjs/common": "^10.4.15",
|
|
32
|
+
"@nestjs/swagger": "^8.1.0",
|
|
33
|
+
"@tomei/activity-history": "^0.4.1",
|
|
34
|
+
"@tomei/config": "^0.3.21",
|
|
35
|
+
"@tomei/general": "^0.21.7",
|
|
36
|
+
"@tomei/media": "^0.8.10",
|
|
37
|
+
"@tomei/sso": "^0.60.4",
|
|
38
|
+
"axios": "^1.7.9",
|
|
39
|
+
"cuid": "^3.0.0",
|
|
40
|
+
"dotenv": "^16.4.7",
|
|
41
|
+
"intuit-oauth": "^4.1.3",
|
|
42
|
+
"puppeteer": "^23.11.1",
|
|
43
|
+
"sequelize": "^6.37.5",
|
|
44
|
+
"sequelize-typescript": "^2.1.6"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@commitlint/cli": "^19.6.1",
|
|
48
|
+
"@commitlint/config-conventional": "^19.6.0",
|
|
49
|
+
"@eslint/js": "^9.17.0",
|
|
50
|
+
"@types/multer": "^1.4.12",
|
|
51
|
+
"@types/node": "^22.10.2",
|
|
52
|
+
"@types/sequelize": "^4.28.20",
|
|
53
|
+
"@typescript-eslint/eslint-plugin": "^8.18.2",
|
|
54
|
+
"eslint": "^9.17.0",
|
|
55
|
+
"eslint-config-prettier": "^9.1.0",
|
|
56
|
+
"eslint-plugin-import": "^2.31.0",
|
|
57
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
58
|
+
"globals": "^15.14.0",
|
|
59
|
+
"husky": "^9.1.7",
|
|
60
|
+
"lint-staged": "^15.3.0",
|
|
61
|
+
"prettier": "^3.4.2",
|
|
62
|
+
"ts-node": "^10.9.2",
|
|
63
|
+
"tsc-watch": "^6.2.1",
|
|
64
|
+
"tsconfig-paths": "^4.2.0",
|
|
65
|
+
"typescript": "^5.7.2",
|
|
66
|
+
"typescript-eslint": "^8.18.2"
|
|
67
|
+
},
|
|
68
|
+
"lint-staged": {
|
|
69
|
+
"*/**/*.{js,ts,tsx}": [
|
|
70
|
+
"npm run lint",
|
|
71
|
+
"npm run eslint",
|
|
72
|
+
"npm run format",
|
|
73
|
+
"npm run build",
|
|
74
|
+
"git add ."
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quick-book-client-scopes.enum.d.ts","sourceRoot":"","sources":["../../src/enum/quick-book-client-scopes.enum.ts"],"names":[],"mappings":"AACA,oBAAY,YAAY;IACtB,UAA0C;IAC1C,OAAoC;IACpC,OAAoC;IACpC,YAA8C;IAC9C,QAAsC;IACtC,OAAoC;IACpC,KAAgC;IAChC,KAAgC;IAChC,OAAoC;IACpC,MAAkC;IAClC,WAA4C;CAC7C"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.ClientScopes = void 0;
|
|
37
|
-
const OAuthClient = __importStar(require("intuit-oauth"));
|
|
38
|
-
var ClientScopes;
|
|
39
|
-
(function (ClientScopes) {
|
|
40
|
-
ClientScopes[ClientScopes["ACCOUNTING"] = OAuthClient.scopes.Accounting] = "ACCOUNTING";
|
|
41
|
-
ClientScopes[ClientScopes["PAYMENT"] = OAuthClient.scopes.Payment] = "PAYMENT";
|
|
42
|
-
ClientScopes[ClientScopes["PAYROLL"] = OAuthClient.scopes.Payroll] = "PAYROLL";
|
|
43
|
-
ClientScopes[ClientScopes["TIMETRACKING"] = OAuthClient.scopes.TimeTracking] = "TIMETRACKING";
|
|
44
|
-
ClientScopes[ClientScopes["BENEFITS"] = OAuthClient.scopes.Benefits] = "BENEFITS";
|
|
45
|
-
ClientScopes[ClientScopes["PROFILE"] = OAuthClient.scopes.Profile] = "PROFILE";
|
|
46
|
-
ClientScopes[ClientScopes["EMAIL"] = OAuthClient.scopes.Email] = "EMAIL";
|
|
47
|
-
ClientScopes[ClientScopes["PHONE"] = OAuthClient.scopes.Phone] = "PHONE";
|
|
48
|
-
ClientScopes[ClientScopes["ADDRESS"] = OAuthClient.scopes.Address] = "ADDRESS";
|
|
49
|
-
ClientScopes[ClientScopes["OPENID"] = OAuthClient.scopes.OpenId] = "OPENID";
|
|
50
|
-
ClientScopes[ClientScopes["INTUIT_NAME"] = OAuthClient.scopes.Intuit_name] = "INTUIT_NAME";
|
|
51
|
-
})(ClientScopes || (exports.ClientScopes = ClientScopes = {}));
|
|
52
|
-
//# sourceMappingURL=quick-book-client-scopes.enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quick-book-client-scopes.enum.js","sourceRoot":"","sources":["../../src/enum/quick-book-client-scopes.enum.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0DAA4C;AAC5C,IAAY,YAYX;AAZD,WAAY,YAAY;IACtB,0CAAa,WAAW,CAAC,MAAM,CAAC,UAAU,gBAAA,CAAA;IAC1C,uCAAU,WAAW,CAAC,MAAM,CAAC,OAAO,aAAA,CAAA;IACpC,uCAAU,WAAW,CAAC,MAAM,CAAC,OAAO,aAAA,CAAA;IACpC,4CAAe,WAAW,CAAC,MAAM,CAAC,YAAY,kBAAA,CAAA;IAC9C,wCAAW,WAAW,CAAC,MAAM,CAAC,QAAQ,cAAA,CAAA;IACtC,uCAAU,WAAW,CAAC,MAAM,CAAC,OAAO,aAAA,CAAA;IACpC,qCAAQ,WAAW,CAAC,MAAM,CAAC,KAAK,WAAA,CAAA;IAChC,qCAAQ,WAAW,CAAC,MAAM,CAAC,KAAK,WAAA,CAAA;IAChC,uCAAU,WAAW,CAAC,MAAM,CAAC,OAAO,aAAA,CAAA;IACpC,sCAAS,WAAW,CAAC,MAAM,CAAC,MAAM,YAAA,CAAA;IAClC,2CAAc,WAAW,CAAC,MAAM,CAAC,WAAW,iBAAA,CAAA;AAC9C,CAAC,EAZW,YAAY,4BAAZ,YAAY,QAYvB"}
|