kcommons 1.0.19 → 1.0.21

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.
@@ -1,7 +1,8 @@
1
1
  export declare enum PERMISSION_ACTIONS {
2
2
  CRUDSAC = "crudsac_perm",
3
3
  STV = "send_to_vendor_perm",
4
- APPROVALS = "approvals_perm"
4
+ APPROVALS = "approvals_perm",
5
+ VIEW = "view"
5
6
  }
6
7
  export declare enum PERMISSION_ENTITIES {
7
8
  INDENT = "Indent",
@@ -7,6 +7,7 @@ var PERMISSION_ACTIONS;
7
7
  PERMISSION_ACTIONS["CRUDSAC"] = "crudsac_perm";
8
8
  PERMISSION_ACTIONS["STV"] = "send_to_vendor_perm";
9
9
  PERMISSION_ACTIONS["APPROVALS"] = "approvals_perm";
10
+ PERMISSION_ACTIONS["VIEW"] = "view";
10
11
  })(PERMISSION_ACTIONS = exports.PERMISSION_ACTIONS || (exports.PERMISSION_ACTIONS = {}));
11
12
  var PERMISSION_ENTITIES;
12
13
  (function (PERMISSION_ENTITIES) {
package/build/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./typings/item/item_types";
2
2
  export * from "./typings/item/item_uoms";
3
3
  export * from "./typings/item/item_tax_preference";
4
+ export * from "./typings/item/item_classification";
4
5
  export * from "./typings/includes/roles.include";
5
6
  export * from "./typings/includes/companyVendors.inlcude";
6
7
  export * from "./typings/includes/department.include";
package/build/index.js CHANGED
@@ -13,6 +13,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
13
13
  __exportStar(require("./typings/item/item_types"), exports);
14
14
  __exportStar(require("./typings/item/item_uoms"), exports);
15
15
  __exportStar(require("./typings/item/item_tax_preference"), exports);
16
+ __exportStar(require("./typings/item/item_classification"), exports);
16
17
  // Includes
17
18
  __exportStar(require("./typings/includes/roles.include"), exports);
18
19
  __exportStar(require("./typings/includes/companyVendors.inlcude"), exports);
@@ -0,0 +1,4 @@
1
+ export declare const ITEM_CLASSIFICATION: {
2
+ DIRECT: string;
3
+ INDIRECT: string;
4
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ITEM_CLASSIFICATION = void 0;
4
+ exports.ITEM_CLASSIFICATION = {
5
+ DIRECT: "Direct",
6
+ INDIRECT: "Indirect",
7
+ };
@@ -1,5 +1,15 @@
1
1
  export declare const ITEM_TAX_PREFERENCE: {
2
- NIL_RATED: string;
3
- TAXABLE: string;
4
- EXEMPT: string;
2
+ NIL_RATED: {
3
+ label: string;
4
+ gst: number;
5
+ };
6
+ TAXABLE: {
7
+ label: string;
8
+ };
9
+ EXEMPT: {
10
+ label: string;
11
+ };
12
+ NON_GST: {
13
+ label: string;
14
+ };
5
15
  };
@@ -2,7 +2,20 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ITEM_TAX_PREFERENCE = void 0;
4
4
  exports.ITEM_TAX_PREFERENCE = {
5
- NIL_RATED: "Nil-Rated",
6
- TAXABLE: "Taxable",
7
- EXEMPT: "Exempt",
5
+ NIL_RATED: {
6
+ label: "Nil-Rated",
7
+ gst: 0,
8
+ },
9
+ TAXABLE: {
10
+ // Custom GST
11
+ label: "Taxable",
12
+ },
13
+ EXEMPT: {
14
+ // Disable gst field
15
+ label: "Exempt",
16
+ },
17
+ NON_GST: {
18
+ // Disable gst field
19
+ label: "Exempt",
20
+ },
8
21
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",