kcommons 1.0.11 → 1.0.14

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/build/index.d.ts CHANGED
@@ -7,3 +7,4 @@ export * from "./typings/includes/department.include";
7
7
  export * from "./typings/includes/offices.include";
8
8
  export * from "./typings/includes/storeInventory.include";
9
9
  export * from "./typings/includes/user.include";
10
+ export * from "./typings/includes/itemCategory.include";
package/build/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -20,3 +24,5 @@ __exportStar(require("./typings/includes/department.include"), exports);
20
24
  __exportStar(require("./typings/includes/offices.include"), exports);
21
25
  __exportStar(require("./typings/includes/storeInventory.include"), exports);
22
26
  __exportStar(require("./typings/includes/user.include"), exports);
27
+ __exportStar(require("./typings/includes/itemCategory.include"), exports);
28
+ console.log("hello");
@@ -5,4 +5,4 @@ var CompanyVendorsInclude;
5
5
  (function (CompanyVendorsInclude) {
6
6
  CompanyVendorsInclude["COMPANY"] = "company";
7
7
  CompanyVendorsInclude["VENDOR"] = "vendor";
8
- })(CompanyVendorsInclude = exports.CompanyVendorsInclude || (exports.CompanyVendorsInclude = {}));
8
+ })(CompanyVendorsInclude || (exports.CompanyVendorsInclude = CompanyVendorsInclude = {}));
@@ -5,4 +5,4 @@ var DepartmentInclude;
5
5
  (function (DepartmentInclude) {
6
6
  DepartmentInclude["subdepartments"] = "subdepartments";
7
7
  DepartmentInclude["employees"] = "employees";
8
- })(DepartmentInclude = exports.DepartmentInclude || (exports.DepartmentInclude = {}));
8
+ })(DepartmentInclude || (exports.DepartmentInclude = DepartmentInclude = {}));
@@ -0,0 +1,3 @@
1
+ export declare enum ItemCategoryInclude {
2
+ subcategories = "subcategories"
3
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ItemCategoryInclude = void 0;
4
+ var ItemCategoryInclude;
5
+ (function (ItemCategoryInclude) {
6
+ ItemCategoryInclude["subcategories"] = "subcategories";
7
+ })(ItemCategoryInclude || (exports.ItemCategoryInclude = ItemCategoryInclude = {}));
@@ -0,0 +1,3 @@
1
+ export declare enum ItemSubcategoryInclude {
2
+ subcategories = "subcategories"
3
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ItemSubcategoryInclude = void 0;
4
+ var ItemSubcategoryInclude;
5
+ (function (ItemSubcategoryInclude) {
6
+ ItemSubcategoryInclude["subcategories"] = "subcategories";
7
+ })(ItemSubcategoryInclude = exports.ItemSubcategoryInclude || (exports.ItemSubcategoryInclude = {}));
@@ -4,4 +4,4 @@ exports.OfficeInclude = void 0;
4
4
  var OfficeInclude;
5
5
  (function (OfficeInclude) {
6
6
  OfficeInclude["associated_stores"] = "associated_stores";
7
- })(OfficeInclude = exports.OfficeInclude || (exports.OfficeInclude = {}));
7
+ })(OfficeInclude || (exports.OfficeInclude = OfficeInclude = {}));
@@ -4,4 +4,4 @@ exports.RolesInclude = void 0;
4
4
  var RolesInclude;
5
5
  (function (RolesInclude) {
6
6
  RolesInclude["permissions"] = "permissions";
7
- })(RolesInclude = exports.RolesInclude || (exports.RolesInclude = {}));
7
+ })(RolesInclude || (exports.RolesInclude = RolesInclude = {}));
@@ -5,4 +5,4 @@ var StoreInventoryItemIncludes;
5
5
  (function (StoreInventoryItemIncludes) {
6
6
  StoreInventoryItemIncludes["item"] = "item";
7
7
  StoreInventoryItemIncludes["store"] = "store";
8
- })(StoreInventoryItemIncludes = exports.StoreInventoryItemIncludes || (exports.StoreInventoryItemIncludes = {}));
8
+ })(StoreInventoryItemIncludes || (exports.StoreInventoryItemIncludes = StoreInventoryItemIncludes = {}));
@@ -8,4 +8,4 @@ var UserInclude;
8
8
  UserInclude["assigned_offices"] = "assigned_offices";
9
9
  UserInclude["assigned_stores"] = "assigned_stores";
10
10
  UserInclude["assigned_roles"] = "assigned_roles";
11
- })(UserInclude = exports.UserInclude || (exports.UserInclude = {}));
11
+ })(UserInclude || (exports.UserInclude = UserInclude = {}));
@@ -1,3 +1,5 @@
1
1
  export declare const ITEM_TAX_PREFERENCE: {
2
2
  NIL_RATED: string;
3
+ TAXABLE: string;
4
+ EXEMPT: string;
3
5
  };
@@ -3,4 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ITEM_TAX_PREFERENCE = void 0;
4
4
  exports.ITEM_TAX_PREFERENCE = {
5
5
  NIL_RATED: "Nil-Rated",
6
+ TAXABLE: "Taxable",
7
+ EXEMPT: "Exempt",
6
8
  };
@@ -1,6 +1,4 @@
1
1
  export declare const UOMS: {
2
- nos: string;
3
- };
4
- export declare enum UOM_ENUM {
5
- NOS = "nos"
6
- }
2
+ full_form: string;
3
+ short_form: string;
4
+ }[];
@@ -1,10 +1,50 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UOM_ENUM = exports.UOMS = void 0;
4
- exports.UOMS = {
5
- nos: "NOS",
6
- };
7
- var UOM_ENUM;
8
- (function (UOM_ENUM) {
9
- UOM_ENUM["NOS"] = "nos";
10
- })(UOM_ENUM = exports.UOM_ENUM || (exports.UOM_ENUM = {}));
3
+ exports.UOMS = void 0;
4
+ exports.UOMS = [
5
+ { full_form: "BAGS", short_form: "BAG" },
6
+ { full_form: "BALE", short_form: "BAL" },
7
+ { full_form: "BILLION OF UNITS", short_form: "BOU" },
8
+ { full_form: "BOTTLES", short_form: "BTL" },
9
+ { full_form: "BOX", short_form: "BOX" },
10
+ { full_form: "BUCKLES", short_form: "BKL" },
11
+ { full_form: "BUNCHES", short_form: "BUN" },
12
+ { full_form: "BUNDLES", short_form: "BDL" },
13
+ { full_form: "CANS", short_form: "CAN" },
14
+ { full_form: "CARTONS", short_form: "CTN" },
15
+ { full_form: "CENTI METERS", short_form: "CMS" },
16
+ { full_form: "CUBIC CENTIMETERS", short_form: "CCM" },
17
+ { full_form: "CUBIC METERS", short_form: "CBM" },
18
+ { full_form: "DOZENS", short_form: "DOZ" },
19
+ { full_form: "DRUMS", short_form: "DRM" },
20
+ { full_form: "GRAMMES", short_form: "GMS" },
21
+ { full_form: "GREAT GROSS", short_form: "GGK" },
22
+ { full_form: "GROSS", short_form: "GRS" },
23
+ { full_form: "GROSS YARDS", short_form: "GYD" },
24
+ { full_form: "KILOGRAMS", short_form: "KGS" },
25
+ { full_form: "KILOLITRE", short_form: "KLR" },
26
+ { full_form: "KILOMETRE", short_form: "KME" },
27
+ { full_form: "LITRES", short_form: "LTR" },
28
+ { full_form: "METERS", short_form: "MTR" },
29
+ { full_form: "METRIC TON", short_form: "MTS" },
30
+ { full_form: "MILILITRE", short_form: "MLT" },
31
+ { full_form: "NUMBERS", short_form: "NOS" },
32
+ { full_form: "OTHERS", short_form: "OTH" },
33
+ { full_form: "PACKS", short_form: "PAC" },
34
+ { full_form: "PAIRS", short_form: "PRS" },
35
+ { full_form: "PIECES", short_form: "PCS" },
36
+ { full_form: "QUINTAL", short_form: "QTL" },
37
+ { full_form: "ROLLS", short_form: "ROL" },
38
+ { full_form: "SETS", short_form: "SET" },
39
+ { full_form: "SQUARE FEET", short_form: "SQF" },
40
+ { full_form: "SQUARE METERS", short_form: "SQM" },
41
+ { full_form: "SQUARE YARDS", short_form: "SQY" },
42
+ { full_form: "TABLETS", short_form: "TBS" },
43
+ { full_form: "TEN GROSS", short_form: "TGM" },
44
+ { full_form: "THOUSANDS", short_form: "THD" },
45
+ { full_form: "TONNES", short_form: "TON" },
46
+ { full_form: "TUBES", short_form: "TUB" },
47
+ { full_form: "UNITS", short_form: "UNT" },
48
+ { full_form: "US GALLONS", short_form: "UGS" },
49
+ { full_form: "YARDS", short_form: "YDS" },
50
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "1.0.11",
3
+ "version": "1.0.14",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.js",