kcommons 15.0.0 → 15.2.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/build/constants/vendorPermission.constants.d.ts +19 -0
- package/build/constants/vendorPermission.constants.js +34 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/typings/company/masters/ves.typings.d.ts +9 -1
- package/build/typings/notifications.typings.d.ts +10 -1
- package/build/typings/notifications.typings.js +1 -0
- package/build/typings/vendor/vendorPermission.typings.d.ts +16 -10
- package/build/typings/vendor/vendorPermission.typings.js +3 -1
- package/build/typings/vendor/vendorRole.typings.d.ts +20 -3
- package/build/typings/vendor/vendorRole.typings.js +2 -0
- package/build/typings/vendor/vendorUser.typings.d.ts +13 -2
- package/build/typings/vendor/vendorUser.typings.js +5 -0
- package/build/typings/vendor.typings.d.ts +6 -6
- package/build/typings/vendor.typings.js +4 -2
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum VENDOR_PERMISSION_ACTIONS {
|
|
2
|
+
cu_perm = "cu_perm",//create, upadte
|
|
3
|
+
accept_perm = "accept_perm",
|
|
4
|
+
scfa_perm = "scfa_perm",// send to company for approval
|
|
5
|
+
dispatch_perm = "dispatch_perm"
|
|
6
|
+
}
|
|
7
|
+
export declare enum VENDOR_PERMISSION_RESOURCES {
|
|
8
|
+
PO = "PO",
|
|
9
|
+
ASN = "ASN",
|
|
10
|
+
QUOTE = "QUOTE",
|
|
11
|
+
ITEM_CATALOG = "ITEM_CATALOG"
|
|
12
|
+
}
|
|
13
|
+
export declare enum VENDOR_DOCUMENT {
|
|
14
|
+
PO = "PO",
|
|
15
|
+
ASN = "ASN",
|
|
16
|
+
QUOTE = "QUOTE",
|
|
17
|
+
ITEM_CATALOG = "ITEM_CATALOG"
|
|
18
|
+
}
|
|
19
|
+
export declare const VENDOR_PERMISSION_CONFIG: Record<VENDOR_DOCUMENT, VENDOR_PERMISSION_ACTIONS[]>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VENDOR_PERMISSION_CONFIG = exports.VENDOR_DOCUMENT = exports.VENDOR_PERMISSION_RESOURCES = exports.VENDOR_PERMISSION_ACTIONS = void 0;
|
|
4
|
+
var VENDOR_PERMISSION_ACTIONS;
|
|
5
|
+
(function (VENDOR_PERMISSION_ACTIONS) {
|
|
6
|
+
VENDOR_PERMISSION_ACTIONS["cu_perm"] = "cu_perm";
|
|
7
|
+
VENDOR_PERMISSION_ACTIONS["accept_perm"] = "accept_perm";
|
|
8
|
+
VENDOR_PERMISSION_ACTIONS["scfa_perm"] = "scfa_perm";
|
|
9
|
+
VENDOR_PERMISSION_ACTIONS["dispatch_perm"] = "dispatch_perm";
|
|
10
|
+
})(VENDOR_PERMISSION_ACTIONS || (exports.VENDOR_PERMISSION_ACTIONS = VENDOR_PERMISSION_ACTIONS = {}));
|
|
11
|
+
var VENDOR_PERMISSION_RESOURCES;
|
|
12
|
+
(function (VENDOR_PERMISSION_RESOURCES) {
|
|
13
|
+
VENDOR_PERMISSION_RESOURCES["PO"] = "PO";
|
|
14
|
+
VENDOR_PERMISSION_RESOURCES["ASN"] = "ASN";
|
|
15
|
+
VENDOR_PERMISSION_RESOURCES["QUOTE"] = "QUOTE";
|
|
16
|
+
VENDOR_PERMISSION_RESOURCES["ITEM_CATALOG"] = "ITEM_CATALOG";
|
|
17
|
+
})(VENDOR_PERMISSION_RESOURCES || (exports.VENDOR_PERMISSION_RESOURCES = VENDOR_PERMISSION_RESOURCES = {}));
|
|
18
|
+
var VENDOR_DOCUMENT;
|
|
19
|
+
(function (VENDOR_DOCUMENT) {
|
|
20
|
+
VENDOR_DOCUMENT["PO"] = "PO";
|
|
21
|
+
VENDOR_DOCUMENT["ASN"] = "ASN";
|
|
22
|
+
VENDOR_DOCUMENT["QUOTE"] = "QUOTE";
|
|
23
|
+
VENDOR_DOCUMENT["ITEM_CATALOG"] = "ITEM_CATALOG";
|
|
24
|
+
})(VENDOR_DOCUMENT || (exports.VENDOR_DOCUMENT = VENDOR_DOCUMENT = {}));
|
|
25
|
+
exports.VENDOR_PERMISSION_CONFIG = {
|
|
26
|
+
[VENDOR_DOCUMENT.QUOTE]: [VENDOR_PERMISSION_ACTIONS.cu_perm],
|
|
27
|
+
[VENDOR_DOCUMENT.PO]: [VENDOR_PERMISSION_ACTIONS.accept_perm],
|
|
28
|
+
[VENDOR_DOCUMENT.ASN]: [
|
|
29
|
+
VENDOR_PERMISSION_ACTIONS.cu_perm,
|
|
30
|
+
VENDOR_PERMISSION_ACTIONS.scfa_perm,
|
|
31
|
+
VENDOR_PERMISSION_ACTIONS.dispatch_perm,
|
|
32
|
+
],
|
|
33
|
+
[VENDOR_DOCUMENT.ITEM_CATALOG]: [VENDOR_PERMISSION_ACTIONS.cu_perm],
|
|
34
|
+
};
|
package/build/index.d.ts
CHANGED
|
@@ -93,6 +93,7 @@ export * from "./constants/alphaSeries.constants";
|
|
|
93
93
|
export * from "./constants/zod.constant";
|
|
94
94
|
export * from "./constants/date.constants";
|
|
95
95
|
export * from "./constants/companyDocumentUplodPath.constants";
|
|
96
|
+
export * from "./constants/vendorPermission.constants";
|
|
96
97
|
export * from "./classes/asnWrapper.class";
|
|
97
98
|
export * from "./utils/permission.utils";
|
|
98
99
|
export * from "./utils/taxes.util";
|
package/build/index.js
CHANGED
|
@@ -115,6 +115,7 @@ __exportStar(require("./constants/alphaSeries.constants"), exports);
|
|
|
115
115
|
__exportStar(require("./constants/zod.constant"), exports);
|
|
116
116
|
__exportStar(require("./constants/date.constants"), exports);
|
|
117
117
|
__exportStar(require("./constants/companyDocumentUplodPath.constants"), exports);
|
|
118
|
+
__exportStar(require("./constants/vendorPermission.constants"), exports);
|
|
118
119
|
// Classes
|
|
119
120
|
__exportStar(require("./classes/asnWrapper.class"), exports);
|
|
120
121
|
// Utils
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IASN, INestedASN } from "../../asn.typings";
|
|
2
2
|
import { IPaginationFilters } from "../../common/paginationFilters.typings";
|
|
3
3
|
import { INestedCompany } from "../../company.typings";
|
|
4
|
-
import { INestedEntityApprovalChainEntry } from "../../entityApprovalChainEntry.typings";
|
|
4
|
+
import { IEntityApprovalChainEntry, INestedEntityApprovalChainEntry } from "../../entityApprovalChainEntry.typings";
|
|
5
5
|
import { IGRN } from "../../grn.typings";
|
|
6
6
|
import { INestedPo, IPurchaseOrder } from "./po.typings";
|
|
7
7
|
import { INestedStoreLocation } from "../../storeLocation.typings";
|
|
@@ -11,6 +11,7 @@ import { INestedVESCheckpointTracking } from "../_junctions/vesCheckpointTrackin
|
|
|
11
11
|
import { INestedCheckpoint } from "./checkpoints.typings";
|
|
12
12
|
import { INestedVESItem } from "./vesItem.typings";
|
|
13
13
|
import { INestedItem } from "../../item.typings";
|
|
14
|
+
import { IOpenApprovalsBase } from "../../common/openApprovals.typings";
|
|
14
15
|
export declare enum VES_REQUESTING_ENTITY_TYPE {
|
|
15
16
|
STORE_LOCATION = "store_location",
|
|
16
17
|
CHECKPOINT = "checkpoint"
|
|
@@ -127,3 +128,10 @@ export interface IVESMetafields {
|
|
|
127
128
|
export interface IVESMetafieldArgs {
|
|
128
129
|
ves_id: string | null;
|
|
129
130
|
}
|
|
131
|
+
export interface IASN_OPEN_APPROVAL_TOKEN_PAYLOAD extends IOpenApprovalsBase {
|
|
132
|
+
ves_id: string;
|
|
133
|
+
}
|
|
134
|
+
export interface IOpenVESApprovalData {
|
|
135
|
+
vesData: IVES;
|
|
136
|
+
targetEntityApprovalChainEntry: IEntityApprovalChainEntry;
|
|
137
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EntityTypes } from "../constants/entityTypes.constants";
|
|
2
2
|
import { DOCUMENTS, PERMISSION_ACTIONS } from "../constants/permission.constants";
|
|
3
|
+
import { VENDOR_DOCUMENT, VENDOR_PERMISSION_ACTIONS } from "../constants/vendorPermission.constants";
|
|
3
4
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
4
5
|
import { INestedCompany } from "./company.typings";
|
|
5
6
|
import { INestedUser } from "./user.typings";
|
|
@@ -23,7 +24,8 @@ export declare enum NOTIFICAITON_CATEGORIES {
|
|
|
23
24
|
export declare enum GROUP_NOTIFICATION_TYPES {
|
|
24
25
|
ENTITY_DEPENDENT = "ENTITY_DEPENDENT",
|
|
25
26
|
PRIVILEGE_DEPENDENT = "PRIVILEGE_DEPENDENT",
|
|
26
|
-
ENTITY_PRIVILEGE_DEPENDENT = "ENTITY_PRIVILEGE_DEPENDENT"
|
|
27
|
+
ENTITY_PRIVILEGE_DEPENDENT = "ENTITY_PRIVILEGE_DEPENDENT",
|
|
28
|
+
VENDOR_PRIVILEGE_DEPENDENT = "VENDOR_PRIVILEGE_DEPENDENT"
|
|
27
29
|
}
|
|
28
30
|
export interface INotification {
|
|
29
31
|
id: string;
|
|
@@ -105,6 +107,13 @@ export interface INotifcationReqData {
|
|
|
105
107
|
export interface INotificationForTargetMonthResponse {
|
|
106
108
|
data: INotification[];
|
|
107
109
|
}
|
|
110
|
+
export interface IVendorPrivilegeDependentNotifications {
|
|
111
|
+
type: GROUP_NOTIFICATION_TYPES.VENDOR_PRIVILEGE_DEPENDENT;
|
|
112
|
+
permission_entity: VENDOR_DOCUMENT;
|
|
113
|
+
actions: VENDOR_PERMISSION_ACTIONS[];
|
|
114
|
+
vendor_id: string;
|
|
115
|
+
company_id: string;
|
|
116
|
+
}
|
|
108
117
|
/** --- START: (DEPRECATED) Notification Filters --- */
|
|
109
118
|
/** @deprecated */
|
|
110
119
|
export interface INotificationFilters {
|
|
@@ -22,5 +22,6 @@ var GROUP_NOTIFICATION_TYPES;
|
|
|
22
22
|
GROUP_NOTIFICATION_TYPES["ENTITY_DEPENDENT"] = "ENTITY_DEPENDENT";
|
|
23
23
|
GROUP_NOTIFICATION_TYPES["PRIVILEGE_DEPENDENT"] = "PRIVILEGE_DEPENDENT";
|
|
24
24
|
GROUP_NOTIFICATION_TYPES["ENTITY_PRIVILEGE_DEPENDENT"] = "ENTITY_PRIVILEGE_DEPENDENT";
|
|
25
|
+
GROUP_NOTIFICATION_TYPES["VENDOR_PRIVILEGE_DEPENDENT"] = "VENDOR_PRIVILEGE_DEPENDENT";
|
|
25
26
|
})(GROUP_NOTIFICATION_TYPES || (exports.GROUP_NOTIFICATION_TYPES = GROUP_NOTIFICATION_TYPES = {}));
|
|
26
27
|
/** --- FIN: (DEPRECATED) Notification Filters */
|
|
@@ -1,34 +1,40 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VENDOR_PERMISSION_RESOURCES } from "../../constants/vendorPermission.constants";
|
|
2
2
|
import { IPaginationFilters } from "../common/paginationFilters.typings";
|
|
3
3
|
import { INestedVendor } from "../vendor.typings";
|
|
4
4
|
import { INestedVendorRole } from "./vendorRole.typings";
|
|
5
|
+
import { INestedVendorUser } from "./vendorUser.typings";
|
|
5
6
|
export interface IVendorPermission {
|
|
6
7
|
id: string;
|
|
7
|
-
read_only_perm?: boolean | null;
|
|
8
8
|
cu_perm?: boolean | null;
|
|
9
9
|
accept_perm?: boolean | null;
|
|
10
|
-
|
|
10
|
+
scfa_perm?: boolean | null;
|
|
11
11
|
dispatch_perm?: boolean | null;
|
|
12
12
|
entity_type: string;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
vendor_role_id: string;
|
|
14
|
+
vendor_id: string;
|
|
15
|
+
created_by_vendor_user_id: string;
|
|
16
|
+
last_updated_by_vendor_user_id: string;
|
|
15
17
|
is_enabled: boolean;
|
|
16
18
|
is_deleted: boolean;
|
|
17
19
|
deleted_at?: string | null;
|
|
18
20
|
created_at: string;
|
|
19
21
|
updated_at: string;
|
|
20
22
|
vendor?: INestedVendor | null;
|
|
21
|
-
|
|
23
|
+
parent_vendor_role?: INestedVendorRole | null;
|
|
24
|
+
created_by_vendor_user?: INestedVendorUser | null;
|
|
25
|
+
last_updated_by_vendor_user?: INestedVendorUser | null;
|
|
22
26
|
}
|
|
23
|
-
export interface INestedVendorPermission extends Omit<IVendorPermission, "vendor" | "
|
|
27
|
+
export interface INestedVendorPermission extends Omit<IVendorPermission, "vendor" | "parent_vendor_role" | "created_by_vendor_user" | "last_updated_by_vendor_user"> {
|
|
24
28
|
}
|
|
25
29
|
export declare enum VENDOR_PERMISSION_INCLUDE {
|
|
26
30
|
vendor = "vendor",
|
|
27
|
-
|
|
31
|
+
parent_vendor_role = "parent_vendor_role",
|
|
32
|
+
created_by_vendor_user = "created_by_vendor_user",
|
|
33
|
+
last_updated_by_vendor_user = "last_updated_by_vendor_user"
|
|
28
34
|
}
|
|
29
35
|
export interface IVendorPermissionFilters {
|
|
30
|
-
|
|
31
|
-
document_types?:
|
|
36
|
+
vendor_role_ids?: string[];
|
|
37
|
+
document_types?: VENDOR_PERMISSION_RESOURCES[];
|
|
32
38
|
include?: VENDOR_PERMISSION_INCLUDE[];
|
|
33
39
|
}
|
|
34
40
|
export interface IVendorPermissionFiltersWithPagination extends IPaginationFilters, IVendorPermissionFilters {
|
|
@@ -4,5 +4,7 @@ exports.VENDOR_PERMISSION_INCLUDE = void 0;
|
|
|
4
4
|
var VENDOR_PERMISSION_INCLUDE;
|
|
5
5
|
(function (VENDOR_PERMISSION_INCLUDE) {
|
|
6
6
|
VENDOR_PERMISSION_INCLUDE["vendor"] = "vendor";
|
|
7
|
-
VENDOR_PERMISSION_INCLUDE["
|
|
7
|
+
VENDOR_PERMISSION_INCLUDE["parent_vendor_role"] = "parent_vendor_role";
|
|
8
|
+
VENDOR_PERMISSION_INCLUDE["created_by_vendor_user"] = "created_by_vendor_user";
|
|
9
|
+
VENDOR_PERMISSION_INCLUDE["last_updated_by_vendor_user"] = "last_updated_by_vendor_user";
|
|
8
10
|
})(VENDOR_PERMISSION_INCLUDE || (exports.VENDOR_PERMISSION_INCLUDE = VENDOR_PERMISSION_INCLUDE = {}));
|
|
@@ -1,24 +1,41 @@
|
|
|
1
|
+
import { VENDOR_PERMISSION_ACTIONS, VENDOR_PERMISSION_RESOURCES } from "../../constants/vendorPermission.constants";
|
|
2
|
+
import { IPaginationFilters } from "../common/paginationFilters.typings";
|
|
1
3
|
import { INestedVendor } from "../vendor.typings";
|
|
2
4
|
import { INestedVendorPermission } from "./vendorPermission.typings";
|
|
3
5
|
import { INestedVendorUser } from "./vendorUser.typings";
|
|
4
6
|
export interface IVendorRole {
|
|
5
7
|
id: string;
|
|
6
|
-
parent_vendor_id: string;
|
|
7
8
|
role_name: string;
|
|
8
9
|
role_code: string;
|
|
10
|
+
vendor_id: string;
|
|
11
|
+
created_by_vendor_user_id: string;
|
|
12
|
+
last_updated_by_vendor_user_id: string;
|
|
9
13
|
is_enabled: boolean;
|
|
10
14
|
is_deleted: boolean;
|
|
11
15
|
deleted_at?: string | null;
|
|
12
16
|
created_at: string;
|
|
13
17
|
updated_at: string;
|
|
14
18
|
vendor?: INestedVendor | null;
|
|
19
|
+
created_by_vendor_user: INestedVendorUser | null;
|
|
20
|
+
last_updated_by_vendor_user: INestedVendorUser | null;
|
|
15
21
|
assigned_vendor_user?: INestedVendorUser[] | null;
|
|
16
|
-
|
|
22
|
+
vendor_permissions?: INestedVendorPermission[] | null;
|
|
17
23
|
}
|
|
18
|
-
export interface INestedVendorRole extends Omit<IVendorRole, "vendor" | " assigned_vendor_user" | "vendorPermissions"> {
|
|
24
|
+
export interface INestedVendorRole extends Omit<IVendorRole, "vendor" | "created_by_vendor_user" | "last_updated_by_vendor_user" | "assigned_vendor_user" | "vendorPermissions"> {
|
|
19
25
|
}
|
|
20
26
|
export declare enum VENDOR_ROLE_INCLUDE {
|
|
21
27
|
vendor = "vendor",
|
|
28
|
+
created_by_vendor_user = "created_by_vendor_user",
|
|
29
|
+
last_updated_by_vendor_user = "last_updated_by_vendor_user",
|
|
22
30
|
assigned_vendor_user = "assigned_vendor_user",
|
|
23
31
|
vendorPermissions = "vendorPermissions"
|
|
24
32
|
}
|
|
33
|
+
export interface IVendorRoleFilters {
|
|
34
|
+
type?: string;
|
|
35
|
+
name?: string;
|
|
36
|
+
permission_entity?: VENDOR_PERMISSION_RESOURCES;
|
|
37
|
+
permission_actions?: VENDOR_PERMISSION_ACTIONS[];
|
|
38
|
+
include?: VENDOR_ROLE_INCLUDE[];
|
|
39
|
+
}
|
|
40
|
+
export interface IVendorRoleFiltersWithPagination extends IPaginationFilters, IVendorRoleFilters {
|
|
41
|
+
}
|
|
@@ -4,6 +4,8 @@ exports.VENDOR_ROLE_INCLUDE = void 0;
|
|
|
4
4
|
var VENDOR_ROLE_INCLUDE;
|
|
5
5
|
(function (VENDOR_ROLE_INCLUDE) {
|
|
6
6
|
VENDOR_ROLE_INCLUDE["vendor"] = "vendor";
|
|
7
|
+
VENDOR_ROLE_INCLUDE["created_by_vendor_user"] = "created_by_vendor_user";
|
|
8
|
+
VENDOR_ROLE_INCLUDE["last_updated_by_vendor_user"] = "last_updated_by_vendor_user";
|
|
7
9
|
VENDOR_ROLE_INCLUDE["assigned_vendor_user"] = "assigned_vendor_user";
|
|
8
10
|
VENDOR_ROLE_INCLUDE["vendorPermissions"] = "vendorPermissions";
|
|
9
11
|
})(VENDOR_ROLE_INCLUDE || (exports.VENDOR_ROLE_INCLUDE = VENDOR_ROLE_INCLUDE = {}));
|
|
@@ -48,8 +48,13 @@ export interface IVendorUser {
|
|
|
48
48
|
last_updated_asns: INestedASN[] | null;
|
|
49
49
|
cancelled_asn: INestedASN[] | null;
|
|
50
50
|
owned_vendor_organizations: INestedVendor[] | null;
|
|
51
|
+
created_vendor_roles: null;
|
|
52
|
+
last_updated_vendor_roles: null;
|
|
53
|
+
assigned_vendor_roles: null;
|
|
54
|
+
created_vendor_permissions: null;
|
|
55
|
+
last_updated_vendor_permission: null;
|
|
51
56
|
}
|
|
52
|
-
export interface INestedVendorUser extends Omit<IVendorUser, "parent_vendor" | "otps" | "created_vendor_items" | "last_updated_vendor_items" | "deleted_vendor_items" | "created_company_specific_vendor_item_versions" | "last_udpated_company_specific_vendor_item_versions" | "deleted_company_specific_vendor_item_versions" | "accepted_rejected_po" | "vendor_user_notifications" | "quotes_last_updated" | "created_asns" | "last_updated_asns" | "cancelled_asn" | "owned_vendor_organizations" | "contact_person_for_po_at" | "contact_person_for_quote_at" | "contact_person_for_asn_at" | "contact_person_for_general_at"> {
|
|
57
|
+
export interface INestedVendorUser extends Omit<IVendorUser, "parent_vendor" | "otps" | "created_vendor_items" | "last_updated_vendor_items" | "deleted_vendor_items" | "created_company_specific_vendor_item_versions" | "last_udpated_company_specific_vendor_item_versions" | "deleted_company_specific_vendor_item_versions" | "accepted_rejected_po" | "vendor_user_notifications" | "quotes_last_updated" | "created_asns" | "last_updated_asns" | "cancelled_asn" | "owned_vendor_organizations" | "contact_person_for_po_at" | "contact_person_for_quote_at" | "contact_person_for_asn_at" | "contact_person_for_general_at" | "created_vendor_roles" | "last_updated_vendor_roles" | "assigned_vendor_roles" | "created_vendor_permissions" | "last_updated_vendor_permission"> {
|
|
53
58
|
}
|
|
54
59
|
export declare enum VENDOR_USER_INCLUDE {
|
|
55
60
|
parent_vendor = "parent_vendor",
|
|
@@ -70,10 +75,16 @@ export declare enum VENDOR_USER_INCLUDE {
|
|
|
70
75
|
contact_person_for_po_at = "contact_person_for_po_at",
|
|
71
76
|
contact_person_for_quote_at = "contact_person_for_quote_at",
|
|
72
77
|
contact_person_for_asn_at = "contact_person_for_asn_at",
|
|
73
|
-
contact_person_for_general_at = "contact_person_for_general_at"
|
|
78
|
+
contact_person_for_general_at = "contact_person_for_general_at",
|
|
79
|
+
created_vendor_roles = "created_vendor_roles",
|
|
80
|
+
last_updated_vendor_roles = "last_updated_vendor_roles",
|
|
81
|
+
assigned_vendor_roles = "assigned_vendor_roles",
|
|
82
|
+
created_vendor_permissions = "created_vendor_permissions",
|
|
83
|
+
last_updated_vendor_permission = "last_updated_vendor_permission"
|
|
74
84
|
}
|
|
75
85
|
export interface IVendorUserFilters {
|
|
76
86
|
name?: string;
|
|
87
|
+
is_admin?: boolean;
|
|
77
88
|
include?: VENDOR_USER_INCLUDE[];
|
|
78
89
|
}
|
|
79
90
|
export interface IVendorUserFiltersWithPagination extends IPaginationFilters, IVendorUserFilters {
|
|
@@ -22,4 +22,9 @@ var VENDOR_USER_INCLUDE;
|
|
|
22
22
|
VENDOR_USER_INCLUDE["contact_person_for_quote_at"] = "contact_person_for_quote_at";
|
|
23
23
|
VENDOR_USER_INCLUDE["contact_person_for_asn_at"] = "contact_person_for_asn_at";
|
|
24
24
|
VENDOR_USER_INCLUDE["contact_person_for_general_at"] = "contact_person_for_general_at";
|
|
25
|
+
VENDOR_USER_INCLUDE["created_vendor_roles"] = "created_vendor_roles";
|
|
26
|
+
VENDOR_USER_INCLUDE["last_updated_vendor_roles"] = "last_updated_vendor_roles";
|
|
27
|
+
VENDOR_USER_INCLUDE["assigned_vendor_roles"] = "assigned_vendor_roles";
|
|
28
|
+
VENDOR_USER_INCLUDE["created_vendor_permissions"] = "created_vendor_permissions";
|
|
29
|
+
VENDOR_USER_INCLUDE["last_updated_vendor_permission"] = "last_updated_vendor_permission";
|
|
25
30
|
})(VENDOR_USER_INCLUDE || (exports.VENDOR_USER_INCLUDE = VENDOR_USER_INCLUDE = {}));
|
|
@@ -75,16 +75,16 @@ export interface IVendor extends IAddress {
|
|
|
75
75
|
contact_people: INestedVendorContactPeople[] | null;
|
|
76
76
|
rollback_form_sent_to_vendor: INestedFormRolback[] | null;
|
|
77
77
|
created_queue_jobs: INestedQueueJob[] | null;
|
|
78
|
-
vendor_roles: INestedVendorRole[] | null;
|
|
79
|
-
vendor_permissions: INestedVendorPermission[] | null;
|
|
80
78
|
vendor_users: INestedVendorUser[] | null;
|
|
79
|
+
associated_vendor_roles: INestedVendorRole[] | null;
|
|
80
|
+
associated_vendor_permissions: INestedVendorPermission[] | null;
|
|
81
81
|
}
|
|
82
82
|
export declare enum VENDOR_SVF_FORM_STATUS {
|
|
83
83
|
SENT = "SENT",
|
|
84
84
|
ANSWERED = "ANSWERED",
|
|
85
85
|
ROLLED_BACK = "ROLLED_BACK"
|
|
86
86
|
}
|
|
87
|
-
export interface INestedVendor extends Omit<IVendor, "quotes" | "associated_companies" | "negotiations" | "as_additional_in_rfqs" | "vendor_notifications" | "extra_que_answers" | "pos" | "company_item_versions" | "invoices" | "contact_people" | "rollback_form_sent_to_vendor" | "created_queue_jobs" | "
|
|
87
|
+
export interface INestedVendor extends Omit<IVendor, "quotes" | "associated_companies" | "negotiations" | "as_additional_in_rfqs" | "vendor_notifications" | "extra_que_answers" | "pos" | "company_item_versions" | "invoices" | "contact_people" | "rollback_form_sent_to_vendor" | "created_queue_jobs" | "vendor_users" | "owner_vendor_user" | "po_contact_vendor_user" | "quote_contact_vendor_user" | "asn_contact_vendor_user" | "general_contact_vendor_user" | "associated_vendor_roles" | "associated_vendor_permissions"> {
|
|
88
88
|
}
|
|
89
89
|
export interface IVendorOrganizationInputs extends Omit<INestedVendor, "id" | "created_at" | "updated_at" | "is_profile_complete" | "is_profile_verified" | "is_self_verified" | "deleted_at" | "is_deleted" | "vendor" | "vkraya_id" | "is_invitation_sent" | "is_enabled" | "svf_form_status" | "svf_rollback_remark" | "vendor_mob_notification_token" | "password" | "owner_vendor_user_id" | "po_contact_vendor_user_id" | "quote_contact_vendor_user_id" | "asn_contact_vendor_user_id" | "general_contact_vendor_user_id"> {
|
|
90
90
|
}
|
|
@@ -113,14 +113,14 @@ export declare enum VENDOR_INCLUDE {
|
|
|
113
113
|
contact_people = "contact_people",
|
|
114
114
|
rollback_form_sent_to_vendor = "rollback_form_sent_to_vendor",
|
|
115
115
|
created_queue_jobs = "created_queue_jobs",
|
|
116
|
-
vendor_roles = "vendor_roles",
|
|
117
|
-
vendor_permissions = "vendor_permissions",
|
|
118
116
|
vendor_users = "vendor_users",
|
|
119
117
|
owner_vendor_user = "owner_vendor_user",
|
|
120
118
|
po_contact_vendor_user = "po_contact_vendor_user",
|
|
121
119
|
quote_contact_vendor_user = "quote_contact_vendor_user",
|
|
122
120
|
asn_contact_vendor_user = "asn_contact_vendor_user",
|
|
123
|
-
general_contact_vendor_user = "general_contact_vendor_user"
|
|
121
|
+
general_contact_vendor_user = "general_contact_vendor_user",
|
|
122
|
+
associated_vendor_roles = "associated_vendor_roles",
|
|
123
|
+
associated_vendor_permissions = "associated_vendor_permissions"
|
|
124
124
|
}
|
|
125
125
|
export declare enum VENDOR_TYPE {
|
|
126
126
|
MFG = "Manufracturing",
|
|
@@ -21,14 +21,16 @@ var VENDOR_INCLUDE;
|
|
|
21
21
|
VENDOR_INCLUDE["contact_people"] = "contact_people";
|
|
22
22
|
VENDOR_INCLUDE["rollback_form_sent_to_vendor"] = "rollback_form_sent_to_vendor";
|
|
23
23
|
VENDOR_INCLUDE["created_queue_jobs"] = "created_queue_jobs";
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
// vendor_roles = "vendor_roles",
|
|
25
|
+
// vendor_permissions = "vendor_permissions",
|
|
26
26
|
VENDOR_INCLUDE["vendor_users"] = "vendor_users";
|
|
27
27
|
VENDOR_INCLUDE["owner_vendor_user"] = "owner_vendor_user";
|
|
28
28
|
VENDOR_INCLUDE["po_contact_vendor_user"] = "po_contact_vendor_user";
|
|
29
29
|
VENDOR_INCLUDE["quote_contact_vendor_user"] = "quote_contact_vendor_user";
|
|
30
30
|
VENDOR_INCLUDE["asn_contact_vendor_user"] = "asn_contact_vendor_user";
|
|
31
31
|
VENDOR_INCLUDE["general_contact_vendor_user"] = "general_contact_vendor_user";
|
|
32
|
+
VENDOR_INCLUDE["associated_vendor_roles"] = "associated_vendor_roles";
|
|
33
|
+
VENDOR_INCLUDE["associated_vendor_permissions"] = "associated_vendor_permissions";
|
|
32
34
|
})(VENDOR_INCLUDE || (exports.VENDOR_INCLUDE = VENDOR_INCLUDE = {}));
|
|
33
35
|
// for GST-Core activities Types
|
|
34
36
|
var VENDOR_TYPE;
|