invoice-system-common 1.0.0
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/enums/billing-line-item-status.enum.js +9 -0
- package/dist/enums/billing-line-items-action.enum.js +10 -0
- package/dist/enums/billing.action.enum.js +11 -0
- package/dist/enums/billing.status.enum.js +11 -0
- package/dist/enums/currency.enum.js +7 -0
- package/dist/enums/organization.action.enum.js +11 -0
- package/dist/enums/organization.status.enum.js +11 -0
- package/dist/enums/template.enum.js +7 -0
- package/dist/enums/tenure.enum.js +8 -0
- package/dist/enums/user.role.enum.js +9 -0
- package/dist/helpers/audit-column.entity.interface.js +2 -0
- package/dist/helpers/generics.js +2 -0
- package/dist/index.js +51 -0
- package/dist/interfaces/billing-line-item.dto.interface.js +2 -0
- package/dist/interfaces/billing-line-item.entity.interface.js +2 -0
- package/dist/interfaces/billing.dto.interface.js +2 -0
- package/dist/interfaces/billing.entity.interface.js +2 -0
- package/dist/interfaces/billing.entity.response.js +2 -0
- package/dist/interfaces/bliiling-flow.type.js +2 -0
- package/dist/interfaces/category.dto.interface.js +2 -0
- package/dist/interfaces/category.entity.interface.js +2 -0
- package/dist/interfaces/client.dto.interface.js +2 -0
- package/dist/interfaces/client.entity.interface.js +2 -0
- package/dist/interfaces/inventory.dto.interface.js +2 -0
- package/dist/interfaces/inventory.entity.interface.js +2 -0
- package/dist/interfaces/invoice-sequence.dto.interface.js +2 -0
- package/dist/interfaces/invoice-sequence.entity.interface.js +2 -0
- package/dist/interfaces/login.dto.interface.js +2 -0
- package/dist/interfaces/login.response.interface.js +2 -0
- package/dist/interfaces/organization.dtos.interface.js +2 -0
- package/dist/interfaces/organization.entity.interface.js +2 -0
- package/dist/interfaces/organization.response.interface.js +2 -0
- package/dist/interfaces/rate.dto.interface.js +2 -0
- package/dist/interfaces/rate.entity.interface.js +2 -0
- package/dist/interfaces/user.dto.interface.js +2 -0
- package/dist/interfaces/user.entity.interface.js +2 -0
- package/package.json +28 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingLineItemStatusEnum = void 0;
|
|
4
|
+
var BillingLineItemStatusEnum;
|
|
5
|
+
(function (BillingLineItemStatusEnum) {
|
|
6
|
+
BillingLineItemStatusEnum["UPDATED"] = "updated";
|
|
7
|
+
BillingLineItemStatusEnum["DELETED"] = "deleted";
|
|
8
|
+
BillingLineItemStatusEnum["ACTIVE"] = "active";
|
|
9
|
+
})(BillingLineItemStatusEnum || (exports.BillingLineItemStatusEnum = BillingLineItemStatusEnum = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingLineItemsActionEnum = void 0;
|
|
4
|
+
var BillingLineItemsActionEnum;
|
|
5
|
+
(function (BillingLineItemsActionEnum) {
|
|
6
|
+
BillingLineItemsActionEnum["CREATE"] = "create";
|
|
7
|
+
BillingLineItemsActionEnum["UPDATE"] = "update";
|
|
8
|
+
BillingLineItemsActionEnum["DELETE"] = "delete";
|
|
9
|
+
BillingLineItemsActionEnum["UNCHANGE"] = "unchange";
|
|
10
|
+
})(BillingLineItemsActionEnum || (exports.BillingLineItemsActionEnum = BillingLineItemsActionEnum = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingActionEnum = void 0;
|
|
4
|
+
var BillingActionEnum;
|
|
5
|
+
(function (BillingActionEnum) {
|
|
6
|
+
BillingActionEnum["EDIT"] = "edit";
|
|
7
|
+
BillingActionEnum["APPROVE"] = "approve";
|
|
8
|
+
BillingActionEnum["CANCEL"] = "cancel";
|
|
9
|
+
BillingActionEnum["SETTLE"] = "settle";
|
|
10
|
+
BillingActionEnum["REJECT"] = "reject";
|
|
11
|
+
})(BillingActionEnum || (exports.BillingActionEnum = BillingActionEnum = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingStatusEnum = void 0;
|
|
4
|
+
var BillingStatusEnum;
|
|
5
|
+
(function (BillingStatusEnum) {
|
|
6
|
+
BillingStatusEnum["PENDING_APPROVAL"] = "pending_approval";
|
|
7
|
+
BillingStatusEnum["APPROVED"] = "approved";
|
|
8
|
+
BillingStatusEnum["CANCELLED"] = "cancelled";
|
|
9
|
+
BillingStatusEnum["SETTLED"] = "settled";
|
|
10
|
+
BillingStatusEnum["REJECTED"] = "rejected";
|
|
11
|
+
})(BillingStatusEnum || (exports.BillingStatusEnum = BillingStatusEnum = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrganizationActionEnum = void 0;
|
|
4
|
+
var OrganizationActionEnum;
|
|
5
|
+
(function (OrganizationActionEnum) {
|
|
6
|
+
OrganizationActionEnum["APPROVE"] = "approve";
|
|
7
|
+
OrganizationActionEnum["REJECT"] = "reject";
|
|
8
|
+
OrganizationActionEnum["SUSPEND"] = "suspend";
|
|
9
|
+
OrganizationActionEnum["DELETE"] = "delete";
|
|
10
|
+
OrganizationActionEnum["PENDING"] = "pending";
|
|
11
|
+
})(OrganizationActionEnum || (exports.OrganizationActionEnum = OrganizationActionEnum = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrganizationStatusEnum = void 0;
|
|
4
|
+
var OrganizationStatusEnum;
|
|
5
|
+
(function (OrganizationStatusEnum) {
|
|
6
|
+
OrganizationStatusEnum["PENDING"] = "pending";
|
|
7
|
+
OrganizationStatusEnum["APPROVED"] = "approved";
|
|
8
|
+
OrganizationStatusEnum["REJECTED"] = "rejected";
|
|
9
|
+
OrganizationStatusEnum["SUSPENDED"] = "suspended";
|
|
10
|
+
OrganizationStatusEnum["DELETED"] = "deleted";
|
|
11
|
+
})(OrganizationStatusEnum || (exports.OrganizationStatusEnum = OrganizationStatusEnum = {}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TemplateNameEnum = void 0;
|
|
4
|
+
var TemplateNameEnum;
|
|
5
|
+
(function (TemplateNameEnum) {
|
|
6
|
+
TemplateNameEnum["ROYAL_STEEL_FURNITURE"] = "royal-steel-furniture.template.html";
|
|
7
|
+
})(TemplateNameEnum || (exports.TemplateNameEnum = TemplateNameEnum = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingRateTenureEnum = void 0;
|
|
4
|
+
var BillingRateTenureEnum;
|
|
5
|
+
(function (BillingRateTenureEnum) {
|
|
6
|
+
BillingRateTenureEnum["MONTHLY"] = "monthly";
|
|
7
|
+
BillingRateTenureEnum["DAILY"] = "daily";
|
|
8
|
+
})(BillingRateTenureEnum || (exports.BillingRateTenureEnum = BillingRateTenureEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserRolesEnum = void 0;
|
|
4
|
+
var UserRolesEnum;
|
|
5
|
+
(function (UserRolesEnum) {
|
|
6
|
+
UserRolesEnum["TOAA"] = "TOAA";
|
|
7
|
+
UserRolesEnum["OWNER"] = "OWNER";
|
|
8
|
+
UserRolesEnum["STAFF"] = "STAFF";
|
|
9
|
+
})(UserRolesEnum || (exports.UserRolesEnum = UserRolesEnum = {}));
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./interfaces/user.dto.interface"), exports);
|
|
18
|
+
__exportStar(require("./interfaces/user.entity.interface"), exports);
|
|
19
|
+
__exportStar(require("./interfaces/login.dto.interface"), exports);
|
|
20
|
+
__exportStar(require("./interfaces/login.response.interface"), exports);
|
|
21
|
+
__exportStar(require("./interfaces/billing-line-item.dto.interface"), exports);
|
|
22
|
+
__exportStar(require("./interfaces/billing-line-item.entity.interface"), exports);
|
|
23
|
+
__exportStar(require("./interfaces/billing.dto.interface"), exports);
|
|
24
|
+
__exportStar(require("./interfaces/billing.entity.interface"), exports);
|
|
25
|
+
__exportStar(require("./interfaces/billing.entity.response"), exports);
|
|
26
|
+
__exportStar(require("./interfaces/bliiling-flow.type"), exports);
|
|
27
|
+
__exportStar(require("./interfaces/invoice-sequence.dto.interface"), exports);
|
|
28
|
+
__exportStar(require("./interfaces/invoice-sequence.entity.interface"), exports);
|
|
29
|
+
__exportStar(require("./interfaces/client.dto.interface"), exports);
|
|
30
|
+
__exportStar(require("./interfaces/client.entity.interface"), exports);
|
|
31
|
+
__exportStar(require("./interfaces/category.dto.interface"), exports);
|
|
32
|
+
__exportStar(require("./interfaces/category.entity.interface"), exports);
|
|
33
|
+
__exportStar(require("./interfaces/inventory.dto.interface"), exports);
|
|
34
|
+
__exportStar(require("./interfaces/inventory.entity.interface"), exports);
|
|
35
|
+
__exportStar(require("./interfaces/organization.dtos.interface"), exports);
|
|
36
|
+
__exportStar(require("./interfaces/organization.entity.interface"), exports);
|
|
37
|
+
__exportStar(require("./interfaces/organization.response.interface"), exports);
|
|
38
|
+
__exportStar(require("./interfaces/rate.dto.interface"), exports);
|
|
39
|
+
__exportStar(require("./interfaces/rate.entity.interface"), exports);
|
|
40
|
+
__exportStar(require("./enums/user.role.enum"), exports);
|
|
41
|
+
__exportStar(require("./enums/billing-line-item-status.enum"), exports);
|
|
42
|
+
__exportStar(require("./enums/billing-line-items-action.enum"), exports);
|
|
43
|
+
__exportStar(require("./enums/billing.action.enum"), exports);
|
|
44
|
+
__exportStar(require("./enums/billing.status.enum"), exports);
|
|
45
|
+
__exportStar(require("./enums/tenure.enum"), exports);
|
|
46
|
+
__exportStar(require("./enums/template.enum"), exports);
|
|
47
|
+
__exportStar(require("./enums/currency.enum"), exports);
|
|
48
|
+
__exportStar(require("./enums/organization.action.enum"), exports);
|
|
49
|
+
__exportStar(require("./enums/organization.status.enum"), exports);
|
|
50
|
+
__exportStar(require("./helpers/audit-column.entity.interface"), exports);
|
|
51
|
+
__exportStar(require("./helpers/generics"), exports);
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "invoice-system-common",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"homepage": "https://github.com/Kashyap2210/invoice-system-common#readme",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/Kashyap2210/invoice-system-common/issues"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/Kashyap2210/invoice-system-common.git"
|
|
12
|
+
},
|
|
13
|
+
"license": "ISC",
|
|
14
|
+
"author": "Kashyap Solanki",
|
|
15
|
+
"type": "commonjs",
|
|
16
|
+
"main": "dist/index.js",
|
|
17
|
+
"types": "dist/index.d.ts",
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
23
|
+
"build": "tsc"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"typescript": "^5.8.3"
|
|
27
|
+
}
|
|
28
|
+
}
|