kcommons 5.0.18 → 5.0.20
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/typings/indent.typings.d.ts +4 -4
- package/build/typings/purchaseLocation.typings.d.ts +0 -7
- package/build/typings/quote.typings.d.ts +1 -2
- package/build/typings/quote.typings.js +0 -1
- package/build/typings/rfq.typings.d.ts +1 -27
- package/build/typings/rfq.typings.js +1 -29
- package/build/typings/user.typings.d.ts +0 -7
- package/package.json +1 -1
|
@@ -12,13 +12,13 @@ export interface IIndent {
|
|
|
12
12
|
mesage?: string | null;
|
|
13
13
|
custom_fields?: string | null;
|
|
14
14
|
budget_code_id?: string | null;
|
|
15
|
-
priority_date?:
|
|
15
|
+
priority_date?: Date | null;
|
|
16
16
|
attachment_link?: string | null;
|
|
17
|
-
deleted_at?:
|
|
17
|
+
deleted_at?: Date | null;
|
|
18
18
|
is_enabled: boolean;
|
|
19
19
|
is_deleted: boolean;
|
|
20
|
-
created_at:
|
|
21
|
-
updated_at:
|
|
20
|
+
created_at: Date;
|
|
21
|
+
updated_at: Date;
|
|
22
22
|
items?: string[] | null;
|
|
23
23
|
approval_chain?: string[] | null;
|
|
24
24
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { FormTypes } from "../constants/form.constants";
|
|
2
1
|
import { INestedApprovalConfig } from "./approvalConfig.typings";
|
|
3
2
|
import { INestedCompany } from "./company.typings";
|
|
4
3
|
import { INestedUser } from "./user.typings";
|
|
@@ -34,9 +33,3 @@ export interface IPurchaseLocation {
|
|
|
34
33
|
}
|
|
35
34
|
export interface INestedPurchaseLocation extends Omit<IPurchaseLocation, "company" | "office" | "store_location" | "purchase_location" | "gate" | "approval_chain"> {
|
|
36
35
|
}
|
|
37
|
-
export interface IAddPurchaseLocationInputs extends Omit<IPurchaseLocation, "id" | "deleted_at" | "created_at" | "updated_at" | "created_by_id"> {
|
|
38
|
-
type: FormTypes.CREATE;
|
|
39
|
-
}
|
|
40
|
-
export interface IUpdatePurchaseLocationInputs extends Partial<Omit<IAddPurchaseLocationInputs, "type">> {
|
|
41
|
-
type: FormTypes.EDIT;
|
|
42
|
-
}
|
|
@@ -23,7 +23,6 @@ var QUOTE_ITEM_INCLUDES;
|
|
|
23
23
|
(function (QUOTE_ITEM_INCLUDES) {
|
|
24
24
|
QUOTE_ITEM_INCLUDES["parent_quote"] = "parent_quote";
|
|
25
25
|
QUOTE_ITEM_INCLUDES["item"] = "item";
|
|
26
|
-
QUOTE_ITEM_INCLUDES["parent_rfq_item"] = "parent_rfq_item";
|
|
27
26
|
})(QUOTE_ITEM_INCLUDES = exports.QUOTE_ITEM_INCLUDES || (exports.QUOTE_ITEM_INCLUDES = {}));
|
|
28
27
|
// export class QuoteItemFactory implements IQuoteItems {
|
|
29
28
|
// constructor(partial: IQuoteItems) {
|
|
@@ -31,7 +31,7 @@ export interface IRFQ {
|
|
|
31
31
|
company_id: string;
|
|
32
32
|
parent_purchase_location_id: string;
|
|
33
33
|
created_by_user_id: string;
|
|
34
|
-
validity_date:
|
|
34
|
+
validity_date: Date;
|
|
35
35
|
bidding_type: string;
|
|
36
36
|
shipping_store_location_id: string;
|
|
37
37
|
status: string;
|
|
@@ -55,10 +55,6 @@ export interface IRFQ {
|
|
|
55
55
|
}
|
|
56
56
|
export interface INestedRFQ extends Omit<IRFQ, "items" | "approval_chain" | "rfq_vendor_groups" | "rfq_vendors"> {
|
|
57
57
|
}
|
|
58
|
-
export interface IRFQInputs extends Omit<IRFQ, "id" | "created_by_user_id" | "status" | "request_date" | "cancelled_at" | "sent_for_approval_at" | "sent_to_vendors_at" | "is_deleted" | "deleted_at" | "created_at" | "updated_at" | "items" | "approval_chain" | "created_at" | "updated_at" | "deleted_at" | "sent_for_approval_by_id" | "sent_to_vendors_by_id" | "rfq_vendors" | "rfq_vendor_groups"> {
|
|
59
|
-
rfq_vendors: string[];
|
|
60
|
-
rfq_vendor_groups: string[];
|
|
61
|
-
}
|
|
62
58
|
export interface IRFQItem {
|
|
63
59
|
id: string;
|
|
64
60
|
parent_rfq_id: string;
|
|
@@ -83,25 +79,3 @@ export interface IRFQItem {
|
|
|
83
79
|
}
|
|
84
80
|
export interface INestedRFQItem extends Omit<IRFQItem, "parent_rfq" | "created_by_user" | "parent_pr" | "corresponding_pr_item" | "associated_quote_items"> {
|
|
85
81
|
}
|
|
86
|
-
export interface IRFQItemInputs extends Omit<IRFQItem, "created_by_user_id" | "created_at" | "parent_rfq_id"> {
|
|
87
|
-
}
|
|
88
|
-
export declare class CreateRFQItemWrapper implements IRFQItemInputs {
|
|
89
|
-
constructor(partial: CreateRFQItemWrapper);
|
|
90
|
-
ascendance_type: string;
|
|
91
|
-
company_id: string;
|
|
92
|
-
id: string;
|
|
93
|
-
item_id: string;
|
|
94
|
-
item_name: string;
|
|
95
|
-
uom: string;
|
|
96
|
-
code_sku: string;
|
|
97
|
-
quantity: number;
|
|
98
|
-
parent_pr_id?: string | null;
|
|
99
|
-
parent_pr_no?: string | null;
|
|
100
|
-
corresponding_pr_item_id?: string | null;
|
|
101
|
-
item_description?: string | null | undefined;
|
|
102
|
-
is_deleted?: boolean | null | undefined;
|
|
103
|
-
deleted_at?: string | null | undefined;
|
|
104
|
-
updated_at?: string | null | undefined;
|
|
105
|
-
}
|
|
106
|
-
export interface IRFQItemTableEntries extends Pick<IRFQItem, "code_sku" | "item_id" | "item_name" | "item_description" | "uom" | "company_id" | "id" | "updated_at" | "is_deleted" | "deleted_at" | "ascendance_type" | "quantity"> {
|
|
107
|
-
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.BIDDING_TYPES = exports.RFQ_ITEM_TYPE = exports.RFQ_STATUS = exports.RFQ_INCLUDES = void 0;
|
|
4
4
|
var RFQ_INCLUDES;
|
|
5
5
|
(function (RFQ_INCLUDES) {
|
|
6
6
|
RFQ_INCLUDES["approval_chain"] = "approval_chain";
|
|
@@ -28,31 +28,3 @@ var BIDDING_TYPES;
|
|
|
28
28
|
BIDDING_TYPES["OPEN"] = "open_bidding";
|
|
29
29
|
BIDDING_TYPES["CLOSED"] = "closed_bidding";
|
|
30
30
|
})(BIDDING_TYPES = exports.BIDDING_TYPES || (exports.BIDDING_TYPES = {}));
|
|
31
|
-
class CreateRFQItemWrapper {
|
|
32
|
-
constructor(partial) {
|
|
33
|
-
this.ascendance_type = "";
|
|
34
|
-
this.company_id = "";
|
|
35
|
-
this.id = "";
|
|
36
|
-
this.item_id = "";
|
|
37
|
-
this.item_name = "";
|
|
38
|
-
this.uom = "";
|
|
39
|
-
this.code_sku = "";
|
|
40
|
-
this.quantity = 0;
|
|
41
|
-
this.ascendance_type = partial.ascendance_type;
|
|
42
|
-
this.company_id = partial.company_id;
|
|
43
|
-
this.item_id = partial.item_id;
|
|
44
|
-
this.item_name = partial.item_name;
|
|
45
|
-
this.uom = partial.uom;
|
|
46
|
-
this.code_sku = partial.code_sku;
|
|
47
|
-
this.quantity = partial.quantity;
|
|
48
|
-
this.parent_pr_id = partial.parent_pr_id;
|
|
49
|
-
this.parent_pr_no = partial.parent_pr_no;
|
|
50
|
-
this.corresponding_pr_item_id = partial.corresponding_pr_item_id;
|
|
51
|
-
this.item_description = partial.item_description;
|
|
52
|
-
this.id = partial.id;
|
|
53
|
-
this.deleted_at = partial.deleted_at;
|
|
54
|
-
this.is_deleted = partial.is_deleted;
|
|
55
|
-
this.updated_at = partial.updated_at;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
exports.CreateRFQItemWrapper = CreateRFQItemWrapper;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { FormTypes } from "../constants/form.constants";
|
|
2
1
|
import { INestedApprovalChainEntry } from "./approvalChain.typings";
|
|
3
2
|
import { INestedCompany } from "./company.typings";
|
|
4
3
|
import { INestedDepartment } from "./department.typings";
|
|
@@ -58,12 +57,6 @@ export interface IUser {
|
|
|
58
57
|
}
|
|
59
58
|
export interface INestedUser extends Omit<IUser, "reporting_to" | "active_company" | "active_role" | "subordinates" | "otps" | "as_incharge_in_purchase_locations" | "as_incharge_in_store_locations" | "as_incharge_in_offices" | "as_contact_person_companies" | "as_contact_person_offices" | "owned_companies" | "head_for_departments" | "approved_items" | "approval_chains" | "created_indents" | "created_mis" | "created_prs" | "created_rfqs" | "entity_approval_chains" | "rfqs_sent_for_approval" | "rfqs_sent_to_vendors" | "created_rfq_items" | "assigned_roles"> {
|
|
60
59
|
}
|
|
61
|
-
export interface IAddUserInputs extends Omit<IUser, "id" | "created_by_id" | "created_at" | "updated_at" | "active_role_id" | "is_admin" | "deleted_at" | "is_deleted" | "subordiantes"> {
|
|
62
|
-
type: FormTypes.CREATE;
|
|
63
|
-
}
|
|
64
|
-
export interface IUpdateUserInputs extends Partial<Omit<IAddUserInputs, "type" | "password">> {
|
|
65
|
-
type: FormTypes.EDIT;
|
|
66
|
-
}
|
|
67
60
|
export declare enum UserInclude {
|
|
68
61
|
as_incharge_in_purchase_locations = "as_incharge_in_purchase_locations",
|
|
69
62
|
as_incharge_in_store_locations = "as_incharge_in_store_locations",
|