kcommons 2.0.14 → 2.1.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/build/constants/entityTypes.constants.js +1 -1
- package/build/constants/permission.constants.d.ts +1 -1
- package/build/constants/permission.constants.js +3 -3
- package/build/index.d.ts +2 -0
- package/build/index.js +8 -1
- package/build/typings/approvals/approvalChain.typings.js +1 -1
- package/build/typings/includes/approvalChain.include.js +1 -1
- package/build/typings/includes/companyVendors.inlcude.js +1 -1
- package/build/typings/includes/department.include.js +1 -1
- package/build/typings/includes/itemCategory.include.js +1 -1
- package/build/typings/includes/offices.include.js +1 -1
- package/build/typings/includes/roles.include.js +1 -1
- package/build/typings/includes/storeInventory.include.js +1 -1
- package/build/typings/includes/storeLocation.include.d.ts +8 -0
- package/build/typings/includes/storeLocation.include.js +12 -0
- package/build/typings/includes/user.include.js +1 -1
- package/build/typings/indent/indent_priority.d.ts +0 -1
- package/build/typings/indent/indent_priority.js +0 -1
- package/build/typings/pr/pr_priority.d.ts +5 -0
- package/build/typings/pr/pr_priority.js +9 -0
- package/package.json +1 -1
|
@@ -7,4 +7,4 @@ var EntityTypes;
|
|
|
7
7
|
EntityTypes["PURCHASE_LOCATION"] = "purchase_location";
|
|
8
8
|
EntityTypes["GATE"] = "gate";
|
|
9
9
|
EntityTypes["OFFICE"] = "office";
|
|
10
|
-
})(EntityTypes
|
|
10
|
+
})(EntityTypes || (exports.EntityTypes = EntityTypes = {}));
|
|
@@ -18,7 +18,7 @@ export declare enum DOCUMENTS {
|
|
|
18
18
|
export declare enum PERMISSION_ENTITIES_OTHERS {
|
|
19
19
|
ITEMS = "Items"
|
|
20
20
|
}
|
|
21
|
-
export
|
|
21
|
+
export type IPERMISSION_ENTITIES = DOCUMENTS | PERMISSION_ENTITIES_OTHERS;
|
|
22
22
|
export declare const PERMISSION_ENTITIES: {
|
|
23
23
|
ITEMS: PERMISSION_ENTITIES_OTHERS.ITEMS;
|
|
24
24
|
INDENT: DOCUMENTS.INDENT;
|
|
@@ -8,7 +8,7 @@ var PERMISSION_ACTIONS;
|
|
|
8
8
|
PERMISSION_ACTIONS["STV"] = "send_to_vendor_perm";
|
|
9
9
|
PERMISSION_ACTIONS["APPROVALS"] = "approvals_perm";
|
|
10
10
|
PERMISSION_ACTIONS["VIEW"] = "view";
|
|
11
|
-
})(PERMISSION_ACTIONS
|
|
11
|
+
})(PERMISSION_ACTIONS || (exports.PERMISSION_ACTIONS = PERMISSION_ACTIONS = {}));
|
|
12
12
|
var DOCUMENTS;
|
|
13
13
|
(function (DOCUMENTS) {
|
|
14
14
|
DOCUMENTS["INDENT"] = "Indent";
|
|
@@ -20,11 +20,11 @@ var DOCUMENTS;
|
|
|
20
20
|
DOCUMENTS["RFP"] = "RFP";
|
|
21
21
|
DOCUMENTS["PO"] = "PO";
|
|
22
22
|
DOCUMENTS["GRN"] = "GRN";
|
|
23
|
-
})(DOCUMENTS
|
|
23
|
+
})(DOCUMENTS || (exports.DOCUMENTS = DOCUMENTS = {}));
|
|
24
24
|
var PERMISSION_ENTITIES_OTHERS;
|
|
25
25
|
(function (PERMISSION_ENTITIES_OTHERS) {
|
|
26
26
|
PERMISSION_ENTITIES_OTHERS["ITEMS"] = "Items";
|
|
27
|
-
})(PERMISSION_ENTITIES_OTHERS
|
|
27
|
+
})(PERMISSION_ENTITIES_OTHERS || (exports.PERMISSION_ENTITIES_OTHERS = PERMISSION_ENTITIES_OTHERS = {}));
|
|
28
28
|
exports.PERMISSION_ENTITIES = Object.assign(Object.assign({}, DOCUMENTS), PERMISSION_ENTITIES_OTHERS);
|
|
29
29
|
exports.PERMISSION_CONFIG = {
|
|
30
30
|
[exports.PERMISSION_ENTITIES.INDENT]: [
|
package/build/index.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ export * from "./typings/includes/storeInventory.include";
|
|
|
11
11
|
export * from "./typings/includes/user.include";
|
|
12
12
|
export * from "./typings/includes/itemCategory.include";
|
|
13
13
|
export * from "./typings/includes/approvalChain.include";
|
|
14
|
+
export * from "./typings/includes/storeLocation.include";
|
|
14
15
|
export * from "./constants/permission.constants";
|
|
15
16
|
export * from "./constants/entityTypes.constants";
|
|
16
17
|
export * from "./typings/indent/indent_priority";
|
|
18
|
+
export * from "./typings/pr/pr_priority";
|
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.
|
|
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];
|
|
@@ -25,8 +29,11 @@ __exportStar(require("./typings/includes/storeInventory.include"), exports);
|
|
|
25
29
|
__exportStar(require("./typings/includes/user.include"), exports);
|
|
26
30
|
__exportStar(require("./typings/includes/itemCategory.include"), exports);
|
|
27
31
|
__exportStar(require("./typings/includes/approvalChain.include"), exports);
|
|
32
|
+
__exportStar(require("./typings/includes/storeLocation.include"), exports);
|
|
28
33
|
// Constants
|
|
29
34
|
__exportStar(require("./constants/permission.constants"), exports);
|
|
30
35
|
__exportStar(require("./constants/entityTypes.constants"), exports);
|
|
31
36
|
// Indent
|
|
32
37
|
__exportStar(require("./typings/indent/indent_priority"), exports);
|
|
38
|
+
// PR
|
|
39
|
+
__exportStar(require("./typings/pr/pr_priority"), exports);
|
|
@@ -6,4 +6,4 @@ var ApprovalAction;
|
|
|
6
6
|
ApprovalAction["APPROVED"] = "APPROVED";
|
|
7
7
|
ApprovalAction["REJECTED"] = "REJECTED";
|
|
8
8
|
ApprovalAction["CANCELLED"] = "CANCELLED";
|
|
9
|
-
})(ApprovalAction
|
|
9
|
+
})(ApprovalAction || (exports.ApprovalAction = ApprovalAction = {}));
|
|
@@ -4,4 +4,4 @@ exports.ApprovalConfigInlcude = void 0;
|
|
|
4
4
|
var ApprovalConfigInlcude;
|
|
5
5
|
(function (ApprovalConfigInlcude) {
|
|
6
6
|
ApprovalConfigInlcude["approval_chain"] = "approval_chain";
|
|
7
|
-
})(ApprovalConfigInlcude
|
|
7
|
+
})(ApprovalConfigInlcude || (exports.ApprovalConfigInlcude = ApprovalConfigInlcude = {}));
|
|
@@ -5,4 +5,4 @@ var CompanyVendorsInclude;
|
|
|
5
5
|
(function (CompanyVendorsInclude) {
|
|
6
6
|
CompanyVendorsInclude["COMPANY"] = "company";
|
|
7
7
|
CompanyVendorsInclude["VENDOR"] = "vendor";
|
|
8
|
-
})(CompanyVendorsInclude
|
|
8
|
+
})(CompanyVendorsInclude || (exports.CompanyVendorsInclude = CompanyVendorsInclude = {}));
|
|
@@ -5,4 +5,4 @@ var DepartmentInclude;
|
|
|
5
5
|
(function (DepartmentInclude) {
|
|
6
6
|
DepartmentInclude["subdepartments"] = "subdepartments";
|
|
7
7
|
DepartmentInclude["roles"] = "roles";
|
|
8
|
-
})(DepartmentInclude
|
|
8
|
+
})(DepartmentInclude || (exports.DepartmentInclude = DepartmentInclude = {}));
|
|
@@ -4,4 +4,4 @@ exports.ItemCategoryInclude = void 0;
|
|
|
4
4
|
var ItemCategoryInclude;
|
|
5
5
|
(function (ItemCategoryInclude) {
|
|
6
6
|
ItemCategoryInclude["subcategories"] = "subcategories";
|
|
7
|
-
})(ItemCategoryInclude
|
|
7
|
+
})(ItemCategoryInclude || (exports.ItemCategoryInclude = ItemCategoryInclude = {}));
|
|
@@ -8,4 +8,4 @@ var OfficeInclude;
|
|
|
8
8
|
OfficeInclude["departments"] = "departments";
|
|
9
9
|
OfficeInclude["served_by_store_locations"] = "served_by_store_locations";
|
|
10
10
|
OfficeInclude["associated_purchase_locations"] = "associated_purchase_locations";
|
|
11
|
-
})(OfficeInclude
|
|
11
|
+
})(OfficeInclude || (exports.OfficeInclude = OfficeInclude = {}));
|
|
@@ -5,4 +5,4 @@ var StoreInventoryItemIncludes;
|
|
|
5
5
|
(function (StoreInventoryItemIncludes) {
|
|
6
6
|
StoreInventoryItemIncludes["item"] = "item";
|
|
7
7
|
StoreInventoryItemIncludes["store"] = "store";
|
|
8
|
-
})(StoreInventoryItemIncludes
|
|
8
|
+
})(StoreInventoryItemIncludes || (exports.StoreInventoryItemIncludes = StoreInventoryItemIncludes = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare enum StoreLocationInclude {
|
|
2
|
+
approval_configs = "approval_configs",
|
|
3
|
+
inventory_entries = "inventory_entries",
|
|
4
|
+
departments = "departments",
|
|
5
|
+
roles = "roles",
|
|
6
|
+
target_offices = "target_offices",
|
|
7
|
+
served_by_purchase_locations = "served_by_purchase_locations"
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StoreLocationInclude = void 0;
|
|
4
|
+
var StoreLocationInclude;
|
|
5
|
+
(function (StoreLocationInclude) {
|
|
6
|
+
StoreLocationInclude["approval_configs"] = "approval_configs";
|
|
7
|
+
StoreLocationInclude["inventory_entries"] = "inventory_entries";
|
|
8
|
+
StoreLocationInclude["departments"] = "departments";
|
|
9
|
+
StoreLocationInclude["roles"] = "roles";
|
|
10
|
+
StoreLocationInclude["target_offices"] = "target_offices";
|
|
11
|
+
StoreLocationInclude["served_by_purchase_locations"] = "served_by_purchase_locations";
|
|
12
|
+
})(StoreLocationInclude || (exports.StoreLocationInclude = StoreLocationInclude = {}));
|
|
@@ -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
|
|
11
|
+
})(UserInclude || (exports.UserInclude = UserInclude = {}));
|