kcommons 17.5.3 → 18.0.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/classes/vendorQuoteItemToQuoteItem.adapter.d.ts +0 -0
- package/build/classes/vendorQuoteItemToQuoteItem.adapter.js +61 -0
- package/build/constants/uom.constants.d.ts +60 -0
- package/build/constants/uom.constants.js +355 -0
- package/build/index.d.ts +8 -0
- package/build/index.js +8 -0
- package/build/typings/asn.typings.d.ts +1 -1
- package/build/typings/common/configurableForms/itemQuetionnaire.typings.d.ts +40 -0
- package/build/typings/common/configurableForms/itemQuetionnaire.typings.js +10 -0
- package/build/typings/common/configurableForms/rfqQuestionnaireAnswers.typings.d.ts +30 -0
- package/build/typings/common/configurableForms/rfqQuestionnaireAnswers.typings.js +9 -0
- package/build/typings/common/configurableForms/rfqQuestionnaireQuestions.typings.d.ts +47 -0
- package/build/typings/common/configurableForms/rfqQuestionnaireQuestions.typings.js +12 -0
- package/build/typings/company/masters/po.typings.d.ts +31 -8
- package/build/typings/company/masters/po.typings.js +8 -7
- package/build/typings/company/masters/poAssociationWithVendorQuoteItem.typings.d.ts +19 -0
- package/build/typings/company/masters/poAssociationWithVendorQuoteItem.typings.js +9 -0
- package/build/typings/company.typings.d.ts +10 -1
- package/build/typings/company.typings.js +3 -0
- package/build/typings/comparative.typings.d.ts +9 -3
- package/build/typings/comparative.typings.js +4 -1
- package/build/typings/comparativeEarlyAccessRequests.typings.d.ts +18 -0
- package/build/typings/comparativeEarlyAccessRequests.typings.js +8 -0
- package/build/typings/comparativeItemQUantitySplit.typings.d.ts +26 -0
- package/build/typings/comparativeItemQUantitySplit.typings.js +10 -0
- package/build/typings/customUOM.typings.d.ts +24 -0
- package/build/typings/customUOM.typings.js +8 -0
- package/build/typings/item.typings.d.ts +15 -6
- package/build/typings/item.typings.js +6 -49
- package/build/typings/quote.typings.d.ts +54 -6
- package/build/typings/quote.typings.js +17 -2
- package/build/typings/rfq.typings.d.ts +7 -2
- package/build/typings/rfq.typings.js +1 -0
- package/build/typings/settings/form/extraFormQues.typings.d.ts +1 -1
- package/build/typings/settings/form/extraFormQues.typings.js +12 -12
- package/build/typings/user.typings.d.ts +18 -2
- package/build/typings/user.typings.js +6 -0
- package/build/typings/vendor/vendorUser.typings.d.ts +32 -27
- package/build/typings/vendor/vendorUser.typings.js +28 -26
- package/build/typings/vendor.typings.d.ts +29 -26
- package/build/typings/vendor.typings.js +26 -27
- package/build/typings/vendorItem.typings.d.ts +13 -7
- package/build/typings/vendorItem.typings.js +8 -6
- package/build/typings/vendorQuoteItems.typings.d.ts +67 -0
- package/build/typings/vendorQuoteItems.typings.js +31 -0
- package/build/utils/extra-form/formatValidationSchema.util.js +12 -12
- package/build/utils/extra-form/getDefaultVAlues.util.js +12 -12
- package/build/utils/extra-form/parseExtraFormAnswers.util.js +12 -12
- package/build/utils/quote.util.d.ts +2 -2
- package/build/utils/quote.util.spec.js +9 -0
- package/build/utils/toFixedDecimal.util.js +5 -2
- package/package.json +1 -1
|
@@ -11,6 +11,12 @@ import { INestedStoreLocation } from "./storeLocation.typings";
|
|
|
11
11
|
import { INestedUser } from "./user.typings";
|
|
12
12
|
import { INestedVendor } from "./vendor.typings";
|
|
13
13
|
import { INestedVendorUser } from "./vendor/vendorUser.typings";
|
|
14
|
+
import { INestedVendorQuoteItem } from "./vendorQuoteItems.typings";
|
|
15
|
+
import { INestedComparativeItemsQuantitySplit } from "./comparativeItemQUantitySplit.typings";
|
|
16
|
+
import { INestedRFQQuestionnaireAnswer } from "./common/configurableForms/rfqQuestionnaireAnswers.typings";
|
|
17
|
+
import { INestedRFQQuestionnaireQuestion } from "./common/configurableForms/rfqQuestionnaireQuestions.typings";
|
|
18
|
+
import { INestedVendorItem } from "./vendorItem.typings";
|
|
19
|
+
import { INestedCustomUOM } from "./customUOM.typings";
|
|
14
20
|
export declare const QUOTE_COOLDOWN_DURATION_IN_MS: number;
|
|
15
21
|
export declare enum QUOTE_TYPE {
|
|
16
22
|
RFQ_ASCENDANT = "RFQ_ASCENDANT",
|
|
@@ -20,10 +26,20 @@ export declare enum QUOTE_STATUS {
|
|
|
20
26
|
PENDING = "PENDING",
|
|
21
27
|
QUOTED = "QUOTED"
|
|
22
28
|
}
|
|
29
|
+
export declare enum QUOTING_METHOD_FOR_ITEMS {
|
|
30
|
+
ALTERNATE = "ALTERNATE",
|
|
31
|
+
BREAKDOWN = "BREAKDOWN",
|
|
32
|
+
DEFAULT = "DEFAULT"
|
|
33
|
+
}
|
|
23
34
|
export declare enum QUOTE_META_INCLUDES {
|
|
24
35
|
rank = "rank",
|
|
25
36
|
vendor_contact_details = "vendor_contact_details",
|
|
26
|
-
vendor_owner_details = "vendor_owner_details"
|
|
37
|
+
vendor_owner_details = "vendor_owner_details",
|
|
38
|
+
referenced_vendor_quote_items = "referenced_vendor_quote_items",
|
|
39
|
+
rfq_questionnaire_questions = "rfq_questionnaire_questions",
|
|
40
|
+
referenced_vendor_items = "referenced_vendor_items",
|
|
41
|
+
custom_uoms = "custom_uoms",
|
|
42
|
+
rfq_items = "rfq_items"
|
|
27
43
|
}
|
|
28
44
|
export declare enum QUOTE_INCLUDES {
|
|
29
45
|
parent_rfq = "parent_rfq",
|
|
@@ -37,12 +53,19 @@ export declare enum QUOTE_INCLUDES {
|
|
|
37
53
|
negotiations = "negotiations",
|
|
38
54
|
comparative = "comparative",
|
|
39
55
|
lowest_rate_for_comparative_items = "lowest_rate_for_comparative_items",
|
|
40
|
-
last_updated_by_vendor_user = "last_updated_by_vendor_user"
|
|
56
|
+
last_updated_by_vendor_user = "last_updated_by_vendor_user",
|
|
57
|
+
associated_vendor_quote_items = "associated_vendor_quote_items",
|
|
58
|
+
rfq_questionnaire_answers = "rfq_questionnaire_answers"
|
|
41
59
|
}
|
|
42
60
|
export interface IQuoteMetaFields {
|
|
43
61
|
rank: number | null;
|
|
44
62
|
vendor_contact_details: INestedVendorUser | null;
|
|
45
63
|
vendor_owner_details: INestedVendorUser | null;
|
|
64
|
+
rfq_questionnaire_questions: INestedRFQQuestionnaireQuestion[] | null;
|
|
65
|
+
referenced_vendor_quote_items: INestedVendorQuoteItem[] | null;
|
|
66
|
+
referenced_vendor_items: INestedVendorItem[] | null;
|
|
67
|
+
custom_uoms: INestedCustomUOM[] | null;
|
|
68
|
+
rfq_items: IRFQItemDataForQuote[] | null;
|
|
46
69
|
}
|
|
47
70
|
export interface IQuote {
|
|
48
71
|
id: string;
|
|
@@ -86,17 +109,22 @@ export interface IQuote {
|
|
|
86
109
|
child_pos: INestedPo[] | null;
|
|
87
110
|
negotiations: INestedNegotiation[] | null;
|
|
88
111
|
lowest_rate_for_comparative_item: INestedComparativeItem[] | null;
|
|
89
|
-
|
|
112
|
+
rfq_questionnaire_answers: INestedRFQQuestionnaireAnswer[] | null;
|
|
113
|
+
metafields?: IQuoteMetaFields | null;
|
|
90
114
|
}
|
|
91
|
-
export interface INestedQuote extends Omit<IQuote, "parent_rfq" | "vendor" | "shipping_store_location" | "contact_person" | "company" | "items" | "taxes" | "child_pos" | "negotiations" | "comparative" | "lowest_rate_for_comparative_item" | "last_updated_by_vendor_user"> {
|
|
115
|
+
export interface INestedQuote extends Omit<IQuote, "parent_rfq" | "vendor" | "shipping_store_location" | "contact_person" | "company" | "items" | "taxes" | "child_pos" | "negotiations" | "comparative" | "lowest_rate_for_comparative_item" | "rfq_questionnaire_answers" | "last_updated_by_vendor_user" | "metafields"> {
|
|
92
116
|
}
|
|
93
117
|
export declare enum QUOTE_ITEM_INCLUDES {
|
|
94
118
|
parent_quote = "parent_quote",
|
|
95
119
|
item = "item",
|
|
96
|
-
referenced_comparative_item = "referenced_comparative_item"
|
|
120
|
+
referenced_comparative_item = "referenced_comparative_item",
|
|
121
|
+
associated_vendor_quote_items = "associated_vendor_quote_items",
|
|
122
|
+
referenced_in_comparaitve_item_quantity = "referenced_in_comparaitve_item_quantity",
|
|
123
|
+
custom_uom = "custom_uom"
|
|
97
124
|
}
|
|
98
125
|
export interface IQuoteItems extends ITaxRelatedItemInputs {
|
|
99
126
|
quote_id: string;
|
|
127
|
+
method_used_for_quoting: QUOTING_METHOD_FOR_ITEMS;
|
|
100
128
|
initial_per_unit_rate: ITaxRelatedItemInputs["per_unit_rate"];
|
|
101
129
|
initial_discount_value: ITaxRelatedItemInputs["discount_value"];
|
|
102
130
|
initial_discount_type: ITaxRelatedItemInputs["discount_type"];
|
|
@@ -107,8 +135,11 @@ export interface IQuoteItems extends ITaxRelatedItemInputs {
|
|
|
107
135
|
item?: INestedItem | null;
|
|
108
136
|
rfq_item?: INestedRFQItem | null;
|
|
109
137
|
referenced_comparative_item?: INestedComparativeItem | null;
|
|
138
|
+
associated_vendor_quote_items: INestedVendorQuoteItem[] | null;
|
|
139
|
+
referenced_in_comparaitve_item_quantity: INestedComparativeItemsQuantitySplit[] | null;
|
|
140
|
+
custom_uom: INestedCustomUOM | null;
|
|
110
141
|
}
|
|
111
|
-
export interface INestedQuoteItems extends Omit<IQuoteItems, "quote" | "item" | "rfq_item" | "referenced_comparative_item"> {
|
|
142
|
+
export interface INestedQuoteItems extends Omit<IQuoteItems, "quote" | "item" | "rfq_item" | "referenced_comparative_item" | "associated_vendor_quote_items" | "referenced_in_comparaitve_item_quantity" | "custom_uom"> {
|
|
112
143
|
}
|
|
113
144
|
export interface IOPEN_QUOTE_TOKEN_PAYLOAD {
|
|
114
145
|
quote_id: string;
|
|
@@ -118,8 +149,25 @@ export interface IQuoteFilters {
|
|
|
118
149
|
company_id?: string;
|
|
119
150
|
name?: string;
|
|
120
151
|
item_id?: string;
|
|
152
|
+
show_calculations_in_company_uom?: boolean;
|
|
121
153
|
include?: QUOTE_INCLUDES[];
|
|
122
154
|
metafields_include?: QUOTE_META_INCLUDES[];
|
|
123
155
|
}
|
|
124
156
|
export interface IQuoteFiltersWithPagination extends IPaginationFilters, IQuoteFilters {
|
|
125
157
|
}
|
|
158
|
+
export interface IQuoteVendorQuoteItemCustomUOM {
|
|
159
|
+
vendor_quote_item_id: string | null;
|
|
160
|
+
vendor_item_id: string | null | null;
|
|
161
|
+
quote_item_id: string | null;
|
|
162
|
+
custom_uom: string | null;
|
|
163
|
+
conversion_factor: number | null;
|
|
164
|
+
}
|
|
165
|
+
export interface IUpdateSelectedAlternateforQuoteItemRequest {
|
|
166
|
+
quote_item_id: string;
|
|
167
|
+
new_default_vendor_quote_item_id: string | null;
|
|
168
|
+
}
|
|
169
|
+
export interface IRecalculateQuoteRankingsRequest {
|
|
170
|
+
data: IUpdateSelectedAlternateforQuoteItemRequest[];
|
|
171
|
+
}
|
|
172
|
+
export interface IRFQItemDataForQuote extends Pick<INestedRFQItem, "code_sku" | "item_id" | "quantity" | "remarks" | "target_delivery_date" | "target_price" | "uom"> {
|
|
173
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.QUOTE_ITEM_INCLUDES = exports.QUOTE_INCLUDES = exports.QUOTE_META_INCLUDES = exports.QUOTE_STATUS = exports.QUOTE_TYPE = exports.QUOTE_COOLDOWN_DURATION_IN_MS = void 0;
|
|
3
|
+
exports.QUOTE_ITEM_INCLUDES = exports.QUOTE_INCLUDES = exports.QUOTE_META_INCLUDES = exports.QUOTING_METHOD_FOR_ITEMS = exports.QUOTE_STATUS = exports.QUOTE_TYPE = exports.QUOTE_COOLDOWN_DURATION_IN_MS = void 0;
|
|
4
4
|
exports.QUOTE_COOLDOWN_DURATION_IN_MS = 3 * 60 * 60 * 1000;
|
|
5
5
|
var QUOTE_TYPE;
|
|
6
6
|
(function (QUOTE_TYPE) {
|
|
@@ -12,11 +12,22 @@ var QUOTE_STATUS;
|
|
|
12
12
|
QUOTE_STATUS["PENDING"] = "PENDING";
|
|
13
13
|
QUOTE_STATUS["QUOTED"] = "QUOTED";
|
|
14
14
|
})(QUOTE_STATUS || (exports.QUOTE_STATUS = QUOTE_STATUS = {}));
|
|
15
|
+
var QUOTING_METHOD_FOR_ITEMS;
|
|
16
|
+
(function (QUOTING_METHOD_FOR_ITEMS) {
|
|
17
|
+
QUOTING_METHOD_FOR_ITEMS["ALTERNATE"] = "ALTERNATE";
|
|
18
|
+
QUOTING_METHOD_FOR_ITEMS["BREAKDOWN"] = "BREAKDOWN";
|
|
19
|
+
QUOTING_METHOD_FOR_ITEMS["DEFAULT"] = "DEFAULT";
|
|
20
|
+
})(QUOTING_METHOD_FOR_ITEMS || (exports.QUOTING_METHOD_FOR_ITEMS = QUOTING_METHOD_FOR_ITEMS = {}));
|
|
15
21
|
var QUOTE_META_INCLUDES;
|
|
16
22
|
(function (QUOTE_META_INCLUDES) {
|
|
17
23
|
QUOTE_META_INCLUDES["rank"] = "rank";
|
|
18
24
|
QUOTE_META_INCLUDES["vendor_contact_details"] = "vendor_contact_details";
|
|
19
25
|
QUOTE_META_INCLUDES["vendor_owner_details"] = "vendor_owner_details";
|
|
26
|
+
QUOTE_META_INCLUDES["referenced_vendor_quote_items"] = "referenced_vendor_quote_items";
|
|
27
|
+
QUOTE_META_INCLUDES["rfq_questionnaire_questions"] = "rfq_questionnaire_questions";
|
|
28
|
+
QUOTE_META_INCLUDES["referenced_vendor_items"] = "referenced_vendor_items";
|
|
29
|
+
QUOTE_META_INCLUDES["custom_uoms"] = "custom_uoms";
|
|
30
|
+
QUOTE_META_INCLUDES["rfq_items"] = "rfq_items";
|
|
20
31
|
})(QUOTE_META_INCLUDES || (exports.QUOTE_META_INCLUDES = QUOTE_META_INCLUDES = {}));
|
|
21
32
|
var QUOTE_INCLUDES;
|
|
22
33
|
(function (QUOTE_INCLUDES) {
|
|
@@ -32,11 +43,15 @@ var QUOTE_INCLUDES;
|
|
|
32
43
|
QUOTE_INCLUDES["comparative"] = "comparative";
|
|
33
44
|
QUOTE_INCLUDES["lowest_rate_for_comparative_items"] = "lowest_rate_for_comparative_items";
|
|
34
45
|
QUOTE_INCLUDES["last_updated_by_vendor_user"] = "last_updated_by_vendor_user";
|
|
46
|
+
QUOTE_INCLUDES["associated_vendor_quote_items"] = "associated_vendor_quote_items";
|
|
47
|
+
QUOTE_INCLUDES["rfq_questionnaire_answers"] = "rfq_questionnaire_answers";
|
|
35
48
|
})(QUOTE_INCLUDES || (exports.QUOTE_INCLUDES = QUOTE_INCLUDES = {}));
|
|
36
|
-
// Quote Items
|
|
37
49
|
var QUOTE_ITEM_INCLUDES;
|
|
38
50
|
(function (QUOTE_ITEM_INCLUDES) {
|
|
39
51
|
QUOTE_ITEM_INCLUDES["parent_quote"] = "parent_quote";
|
|
40
52
|
QUOTE_ITEM_INCLUDES["item"] = "item";
|
|
41
53
|
QUOTE_ITEM_INCLUDES["referenced_comparative_item"] = "referenced_comparative_item";
|
|
54
|
+
QUOTE_ITEM_INCLUDES["associated_vendor_quote_items"] = "associated_vendor_quote_items";
|
|
55
|
+
QUOTE_ITEM_INCLUDES["referenced_in_comparaitve_item_quantity"] = "referenced_in_comparaitve_item_quantity";
|
|
56
|
+
QUOTE_ITEM_INCLUDES["custom_uom"] = "custom_uom";
|
|
42
57
|
})(QUOTE_ITEM_INCLUDES || (exports.QUOTE_ITEM_INCLUDES = QUOTE_ITEM_INCLUDES = {}));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { INestedBOM } from "./bom.typings";
|
|
2
2
|
import { IAddress } from "./common/address.typings";
|
|
3
|
+
import { INestedRFQQuestionnaireQuestion } from "./common/configurableForms/rfqQuestionnaireQuestions.typings";
|
|
3
4
|
import { IOpenApprovalsBase } from "./common/openApprovals.typings";
|
|
4
5
|
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
5
6
|
import { INestedCompany } from "./company.typings";
|
|
@@ -59,7 +60,8 @@ export declare enum RFQ_INCLUDES {
|
|
|
59
60
|
rfq_vendor_groups = "rfq_vendor_groups",
|
|
60
61
|
boms = "boms",
|
|
61
62
|
comparative = "comparative",
|
|
62
|
-
parent_prs = "parent_prs"
|
|
63
|
+
parent_prs = "parent_prs",
|
|
64
|
+
rfq_questionnaire_questions = "rfq_questionnaire_questions"
|
|
63
65
|
}
|
|
64
66
|
export declare enum RFQ_STATUS {
|
|
65
67
|
DRAFT = "DRAFT",
|
|
@@ -126,9 +128,10 @@ export interface IRFQ {
|
|
|
126
128
|
additional_vendors?: INestedVendor[] | null;
|
|
127
129
|
boms: INestedRFQBOM[] | null;
|
|
128
130
|
parent_prs: INestedPR[] | null;
|
|
131
|
+
rfq_questionnaire_questions: INestedRFQQuestionnaireQuestion[] | null;
|
|
129
132
|
metafields: IRFQMetafields | null;
|
|
130
133
|
}
|
|
131
|
-
export interface INestedRFQ extends Omit<IRFQ, "company" | "parent_purchase_location" | "created_by_user" | "shipping_store_location" | "contact_person" | "sent_for_approval_by" | "sent_to_vendors_by" | "quotes" | "items" | "approval_chain" | "rfq_vendor_groups" | "rfq_vendors" | "additional_vendors" | "boms" | "comparative" | "parent_prs" | "metafields"> {
|
|
134
|
+
export interface INestedRFQ extends Omit<IRFQ, "company" | "parent_purchase_location" | "created_by_user" | "shipping_store_location" | "contact_person" | "sent_for_approval_by" | "sent_to_vendors_by" | "quotes" | "items" | "approval_chain" | "rfq_vendor_groups" | "rfq_vendors" | "additional_vendors" | "boms" | "comparative" | "parent_prs" | "rfq_questionnaire_questions" | "metafields"> {
|
|
132
135
|
}
|
|
133
136
|
export declare enum RFQ_ITEM_INCLUDE {
|
|
134
137
|
parent_rfq = "parent_rfq",
|
|
@@ -159,6 +162,8 @@ export interface IRFQItem {
|
|
|
159
162
|
parent_rfq_bom_id?: string | null;
|
|
160
163
|
parent_rfq_bom_no?: string | null;
|
|
161
164
|
corresponding_pr_item_id?: string | null;
|
|
165
|
+
target_delivery_date?: string | null;
|
|
166
|
+
target_price?: string | null;
|
|
162
167
|
is_deleted: boolean;
|
|
163
168
|
deleted_at: string | null;
|
|
164
169
|
created_at?: string | null;
|
|
@@ -40,6 +40,7 @@ var RFQ_INCLUDES;
|
|
|
40
40
|
RFQ_INCLUDES["boms"] = "boms";
|
|
41
41
|
RFQ_INCLUDES["comparative"] = "comparative";
|
|
42
42
|
RFQ_INCLUDES["parent_prs"] = "parent_prs";
|
|
43
|
+
RFQ_INCLUDES["rfq_questionnaire_questions"] = "rfq_questionnaire_questions";
|
|
43
44
|
})(RFQ_INCLUDES || (exports.RFQ_INCLUDES = RFQ_INCLUDES = {}));
|
|
44
45
|
var RFQ_STATUS;
|
|
45
46
|
(function (RFQ_STATUS) {
|
|
@@ -20,7 +20,7 @@ export declare enum CONFIGURABLE_FORM_TYPES {
|
|
|
20
20
|
COMPANY_VENDOR_ADDITIONAL_FIELDS = "COMPANY_VENDOR_ADDITIONAL_FIELDS",// Vendor System Integration
|
|
21
21
|
CUSTOMER_SYSTEM_INTEGRATION = "CUSTOMER_SYSTEM_INTEGRATION"
|
|
22
22
|
}
|
|
23
|
-
export declare enum
|
|
23
|
+
export declare enum CONFIGURABLE_FORM_QUESTION_TYPES {
|
|
24
24
|
TEXT = "TEXT",
|
|
25
25
|
SINGLE_SELECT = "SINGLE_SELECT",
|
|
26
26
|
MULTI_SELECT = "MULTI_SELECT",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EXTRA_FORM_QUESTIONS_INCLUDE = exports.
|
|
3
|
+
exports.EXTRA_FORM_QUESTIONS_INCLUDE = exports.CONFIGURABLE_FORM_QUESTION_TYPES = exports.CONFIGURABLE_FORM_TYPES = void 0;
|
|
4
4
|
var CONFIGURABLE_FORM_TYPES;
|
|
5
5
|
(function (CONFIGURABLE_FORM_TYPES) {
|
|
6
6
|
CONFIGURABLE_FORM_TYPES["VENDOR_ONBOARDING"] = "vendor-onboarding";
|
|
@@ -8,16 +8,16 @@ var CONFIGURABLE_FORM_TYPES;
|
|
|
8
8
|
CONFIGURABLE_FORM_TYPES["COMPANY_VENDOR_ADDITIONAL_FIELDS"] = "COMPANY_VENDOR_ADDITIONAL_FIELDS";
|
|
9
9
|
CONFIGURABLE_FORM_TYPES["CUSTOMER_SYSTEM_INTEGRATION"] = "CUSTOMER_SYSTEM_INTEGRATION";
|
|
10
10
|
})(CONFIGURABLE_FORM_TYPES || (exports.CONFIGURABLE_FORM_TYPES = CONFIGURABLE_FORM_TYPES = {}));
|
|
11
|
-
var
|
|
12
|
-
(function (
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
11
|
+
var CONFIGURABLE_FORM_QUESTION_TYPES;
|
|
12
|
+
(function (CONFIGURABLE_FORM_QUESTION_TYPES) {
|
|
13
|
+
CONFIGURABLE_FORM_QUESTION_TYPES["TEXT"] = "TEXT";
|
|
14
|
+
CONFIGURABLE_FORM_QUESTION_TYPES["SINGLE_SELECT"] = "SINGLE_SELECT";
|
|
15
|
+
CONFIGURABLE_FORM_QUESTION_TYPES["MULTI_SELECT"] = "MULTI_SELECT";
|
|
16
|
+
CONFIGURABLE_FORM_QUESTION_TYPES["YES_NO"] = "YES_NO";
|
|
17
|
+
CONFIGURABLE_FORM_QUESTION_TYPES["UPLOAD"] = "UPLOAD";
|
|
18
|
+
CONFIGURABLE_FORM_QUESTION_TYPES["KEYWORDS"] = "KEYWORDS";
|
|
19
|
+
CONFIGURABLE_FORM_QUESTION_TYPES["DATEPICKER"] = "DATEPICKER";
|
|
20
|
+
CONFIGURABLE_FORM_QUESTION_TYPES["FSSAI_VERIFICATION"] = "FSSAI_VERIFICATION";
|
|
21
21
|
// CONTACT_NUMBER = "CONTACT_NUMBER",
|
|
22
22
|
// CIN_VERIFICATION = "CIN_VERIFICATION",
|
|
23
23
|
// GST_VERIFICATION = "GST_VERIFICATION",
|
|
@@ -25,7 +25,7 @@ var EXTRA_FORM_QUESTION_TYPES;
|
|
|
25
25
|
// BANK_VERIFICATION = "BANK_VERIFICATION",
|
|
26
26
|
// PAN_VERIFICATION = "PAN_VERIFICATION",
|
|
27
27
|
// UDYAM_VERIFICATION = "UDYAM_VERIFICATION",
|
|
28
|
-
})(
|
|
28
|
+
})(CONFIGURABLE_FORM_QUESTION_TYPES || (exports.CONFIGURABLE_FORM_QUESTION_TYPES = CONFIGURABLE_FORM_QUESTION_TYPES = {}));
|
|
29
29
|
var EXTRA_FORM_QUESTIONS_INCLUDE;
|
|
30
30
|
(function (EXTRA_FORM_QUESTIONS_INCLUDE) {
|
|
31
31
|
EXTRA_FORM_QUESTIONS_INCLUDE["company"] = "company";
|
|
@@ -49,9 +49,13 @@ import { INestedTemporaryWorkerForm } from "./temporaryWorkerForm.typings";
|
|
|
49
49
|
import { INestedAmendedPOItem } from "./company/masters/amendedPOItems.typings";
|
|
50
50
|
import { INestedSubPOItem } from "./subPOItem.typings";
|
|
51
51
|
import { INestedSubPO } from "./subPO.typings";
|
|
52
|
+
import { INestedItemQuestionnaire } from "./common/configurableForms/itemQuetionnaire.typings";
|
|
53
|
+
import { INestedRFQQuestionnaireQuestion } from "./common/configurableForms/rfqQuestionnaireQuestions.typings";
|
|
52
54
|
import { INestedCompanyCustomerCategory } from "./companyCustomerCategory.typings";
|
|
53
55
|
import { INestedCompanyCustomer } from "./companyCustomer.typings";
|
|
54
56
|
import { INestedCustomerManagementBody } from "./company/masters/customerManagementBody.typings";
|
|
57
|
+
import { INestedComparativeItemsQuantitySplit } from "./comparativeItemQUantitySplit.typings";
|
|
58
|
+
import { INestedComparativeEarlyAccessRequest } from "./comparativeEarlyAccessRequests.typings";
|
|
55
59
|
export interface IUser {
|
|
56
60
|
id: string;
|
|
57
61
|
is_enabled?: boolean | null;
|
|
@@ -207,6 +211,10 @@ export interface IUser {
|
|
|
207
211
|
created_sub_po_items: INestedSubPOItem[] | null;
|
|
208
212
|
last_updated_sub_po_items: INestedSubPOItem[] | null;
|
|
209
213
|
marked_as_deleted_sub_po_items: INestedSubPOItem[] | null;
|
|
214
|
+
created_item_questions: INestedItemQuestionnaire[] | null;
|
|
215
|
+
last_updated_item_questions: INestedItemQuestionnaire[] | null;
|
|
216
|
+
created_rfq_questions: INestedRFQQuestionnaireQuestion[] | null;
|
|
217
|
+
last_updated_rfq_questions: INestedRFQQuestionnaireQuestion[] | null;
|
|
210
218
|
created_company_customer_categories: INestedCompanyCustomerCategory[] | null;
|
|
211
219
|
last_updated_company_customer_categories: INestedCompanyCustomerCategory[] | null;
|
|
212
220
|
company_customer_created_by_user: INestedCompanyCustomer[] | null;
|
|
@@ -216,8 +224,10 @@ export interface IUser {
|
|
|
216
224
|
created_customer_management_bodies: INestedCustomerManagementBody[] | null;
|
|
217
225
|
last_updated_customer_management_bodies: INestedCustomerManagementBody[] | null;
|
|
218
226
|
head_of_customer_management_bodies: INestedCustomerManagementBody[] | null;
|
|
227
|
+
last_updated_comparative_items_quantity_splits: INestedComparativeItemsQuantitySplit[] | null;
|
|
228
|
+
comparative_early_access_requests: INestedComparativeEarlyAccessRequest[] | null;
|
|
219
229
|
}
|
|
220
|
-
export interface INestedUser extends Omit<IUser, "updated_at" | "created_at" | "deleted_at" | "reporting_to" | "active_company" | "active_role" | "subordinates" | "otps" | "as_incharge_in_purchase_locations" | "as_incharge_in_store_locations" | "as_incharge_in_offices" | "as_incharge_in_gates" | "as_contact_person_companies" | "as_contact_person_offices" | "as_contact_person_gates" | "owned_companies" | "head_for_departments" | "created_item_subcategories" | "last_updated_item_subcategories" | "head_for_departments" | "approval_chains" | "indents_created_for_user" | "created_mis" | "mis_issued_for_user" | "mis_sent_for_approval" | "mis_issued" | "mis_last_updated" | "created_prs" | "pr_sent_for_approval" | "pr_sent_to_purchase_location" | "last_updated_prs" | "created_rfqs" | "entity_approval_chains" | "as_contact_person_for_rfqs" | "as_contact_person_for_quotes" | "rfqs_sent_for_approval" | "rfqs_sent_to_vendors" | "created_rfq_items" | "negotiations" | "created_pos" | "last_updated_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors" | "created_grns" | "last_updated_grns" | "as_contact_person_for_grns" | "grns_sent_for_approval" | "grns_sent_to_store" | "mrns_sent_for_approval" | "as_contact_person_for_mrns" | "created_boms" | "last_updated_boms" | "created_vendor_groups" | "last_updated_vendor_groups" | "comparatives_sent_for_approval" | "user_notifications" | "created_extra_quesstions" | "updated_extra_quesstions" | "answered_questions" | "created_extra_core_question_for_companies" | "updated_extra_core_question_for_companies" | "cancelled_asns" | "created_contact_people" | "updated_contact_people" | "last_updated_company_item_vendor_version" | "items_last_updated_by_user" | "company_vendors_last_updated_by_user" | "created_istds" | "last_updated_istds" | "source_contact_person_for_istd" | "dest_contact_person_for_istd" | "istds_sent_for_source_approval" | "istds_sent_for_dest_approval" | "istds_sent_for_dest_store" | "istds_marked_as_processed" | "istds_terminated" | "created_payment_terms" | "created_iads" | "user_last_updated_iads" | "as_approver_for_iads" | "iads_terminated_by_user" | "finalised_iads" | "assigned_roles" | "initiated_inventory_logs" | "logs" | "vendor_onboarding_requests_created_by_user" | "vendor_onboarding_requests_last_updated" | "vendor_onboarding_requests_sent_for_approval" | "invitation_sent_for_vendor_onboarding_requests" | "created_vendor_management_bodies" | "last_updated_vendor_management_bodies" | "head_of_vendor_management_bodies" | "cancelled_vendor_onboarding_requests" | "company_vendor_created_by_user" | "company_vendors_last_updated_by_user" | "sent_for_approval_company_vendors" | "sent_questions_to_company_vendors" | "cancelled_company_vendors" | "created_vendor_onboarding_request_categories" | "last_updated_vendor_onboarding_request_categories" | "created_item_management_bodies" | "last_updated_item_management_bodies" | "as_head_of_item_management_bodies" | "created_items" | "items_sent_for_approval" | "cancelled_items" | "invoices_marked_as_paid_or_rejected" | "onboarded_company_vendors" | "created_indents" | "rollback_forms_by_user" | "asns_sent_to_vendor_by_user" | "created_terms_and_conditions" | "last_updated_terms_and_conditions" | "checkpoints_created_by_user" | "checkpoints_last_updated_by_user" | "pos_closed_early" | "ves_created_by_user" | "ves_last_updated_by_user" | "ves_cancelled_by_user" | "take_on_approval_for_ves" | "time_records_at_checkpoint" | "created_queue_jobs" | "last_updated_payment_terms" | "created_temporary_worker_form" | "last_updated_temporary_worker_form" | "resolved_mrns" | "created_amended_po_items" | "last_updated_amended_po_items" | "created_sub_pos" | "last_updated_sub_pos" | "sent_for_approval_sub_pos" | "sent_to_vendor_sub_pos" | "created_sub_po_items" | "last_updated_sub_po_items" | "marked_as_deleted_sub_po_items" | "created_company_customer_categories" | "last_updated_company_customer_categories" | "company_customer_created_by_user" | "company_customer_last_updated_by_user" | "sent_for_approval_company_customer" | "onboarded_company_customer" | "created_customer_management_bodies" | "last_updated_customer_management_bodies" | "head_of_customer_management_bodies"> {
|
|
230
|
+
export interface INestedUser extends Omit<IUser, "updated_at" | "created_at" | "deleted_at" | "reporting_to" | "active_company" | "active_role" | "subordinates" | "otps" | "as_incharge_in_purchase_locations" | "as_incharge_in_store_locations" | "as_incharge_in_offices" | "as_incharge_in_gates" | "as_contact_person_companies" | "as_contact_person_offices" | "as_contact_person_gates" | "owned_companies" | "head_for_departments" | "created_item_subcategories" | "last_updated_item_subcategories" | "head_for_departments" | "approval_chains" | "indents_created_for_user" | "created_mis" | "mis_issued_for_user" | "mis_sent_for_approval" | "mis_issued" | "mis_last_updated" | "created_prs" | "pr_sent_for_approval" | "pr_sent_to_purchase_location" | "last_updated_prs" | "created_rfqs" | "entity_approval_chains" | "as_contact_person_for_rfqs" | "as_contact_person_for_quotes" | "rfqs_sent_for_approval" | "rfqs_sent_to_vendors" | "created_rfq_items" | "negotiations" | "created_pos" | "last_updated_pos" | "as_contact_person_for_pos" | "pos_sent_for_approval" | "pos_sent_to_vendors" | "created_grns" | "last_updated_grns" | "as_contact_person_for_grns" | "grns_sent_for_approval" | "grns_sent_to_store" | "mrns_sent_for_approval" | "as_contact_person_for_mrns" | "created_boms" | "last_updated_boms" | "created_vendor_groups" | "last_updated_vendor_groups" | "comparatives_sent_for_approval" | "user_notifications" | "created_extra_quesstions" | "updated_extra_quesstions" | "answered_questions" | "created_extra_core_question_for_companies" | "updated_extra_core_question_for_companies" | "cancelled_asns" | "created_contact_people" | "updated_contact_people" | "last_updated_company_item_vendor_version" | "items_last_updated_by_user" | "company_vendors_last_updated_by_user" | "created_istds" | "last_updated_istds" | "source_contact_person_for_istd" | "dest_contact_person_for_istd" | "istds_sent_for_source_approval" | "istds_sent_for_dest_approval" | "istds_sent_for_dest_store" | "istds_marked_as_processed" | "istds_terminated" | "created_payment_terms" | "created_iads" | "user_last_updated_iads" | "as_approver_for_iads" | "iads_terminated_by_user" | "finalised_iads" | "assigned_roles" | "initiated_inventory_logs" | "logs" | "vendor_onboarding_requests_created_by_user" | "vendor_onboarding_requests_last_updated" | "vendor_onboarding_requests_sent_for_approval" | "invitation_sent_for_vendor_onboarding_requests" | "created_vendor_management_bodies" | "last_updated_vendor_management_bodies" | "head_of_vendor_management_bodies" | "cancelled_vendor_onboarding_requests" | "company_vendor_created_by_user" | "company_vendors_last_updated_by_user" | "sent_for_approval_company_vendors" | "sent_questions_to_company_vendors" | "cancelled_company_vendors" | "created_vendor_onboarding_request_categories" | "last_updated_vendor_onboarding_request_categories" | "created_item_management_bodies" | "last_updated_item_management_bodies" | "as_head_of_item_management_bodies" | "created_items" | "items_sent_for_approval" | "cancelled_items" | "invoices_marked_as_paid_or_rejected" | "onboarded_company_vendors" | "created_indents" | "rollback_forms_by_user" | "asns_sent_to_vendor_by_user" | "created_terms_and_conditions" | "last_updated_terms_and_conditions" | "checkpoints_created_by_user" | "checkpoints_last_updated_by_user" | "pos_closed_early" | "ves_created_by_user" | "ves_last_updated_by_user" | "ves_cancelled_by_user" | "take_on_approval_for_ves" | "time_records_at_checkpoint" | "created_queue_jobs" | "last_updated_payment_terms" | "created_temporary_worker_form" | "last_updated_temporary_worker_form" | "resolved_mrns" | "created_amended_po_items" | "last_updated_amended_po_items" | "created_sub_pos" | "last_updated_sub_pos" | "sent_for_approval_sub_pos" | "sent_to_vendor_sub_pos" | "created_sub_po_items" | "last_updated_sub_po_items" | "marked_as_deleted_sub_po_items" | "created_item_questions" | "last_updated_item_questions" | "created_rfq_questions" | "last_updated_rfq_questions" | "created_company_customer_categories" | "last_updated_company_customer_categories" | "company_customer_created_by_user" | "company_customer_last_updated_by_user" | "sent_for_approval_company_customer" | "onboarded_company_customer" | "created_customer_management_bodies" | "last_updated_customer_management_bodies" | "head_of_customer_management_bodies" | "last_updated_comparative_items_quantity_splits" | "comparative_early_access_requests"> {
|
|
221
231
|
}
|
|
222
232
|
export declare enum UserInclude {
|
|
223
233
|
subordinates = "subordinates",
|
|
@@ -351,6 +361,10 @@ export declare enum UserInclude {
|
|
|
351
361
|
created_sub_po_items = "created_sub_po_items",
|
|
352
362
|
last_updated_sub_po_items = "last_updated_sub_po_items",
|
|
353
363
|
marked_as_deleted_sub_po_items = "marked_as_deleted_sub_po_items",
|
|
364
|
+
last_updated_item_questions = "last_updated_item_questions",
|
|
365
|
+
created_item_questions = "created_item_questions",
|
|
366
|
+
created_rfq_questions = "created_rfq_questions",
|
|
367
|
+
last_updated_rfq_questions = "last_updated_rfq_questions",
|
|
354
368
|
created_company_customer_categories = "created_company_customer_categories",
|
|
355
369
|
last_updated_company_customer_categories = "last_updated_company_customer_categories",
|
|
356
370
|
company_customer_created_by_user = "company_customer_created_by_user",
|
|
@@ -359,7 +373,9 @@ export declare enum UserInclude {
|
|
|
359
373
|
onboarded_company_customer = "onboarded_company_customer",
|
|
360
374
|
created_customer_management_bodies = "created_customer_management_bodies",
|
|
361
375
|
last_updated_customer_management_bodies = "last_updated_customer_management_bodies",
|
|
362
|
-
head_of_customer_management_bodies = "head_of_customer_management_bodies"
|
|
376
|
+
head_of_customer_management_bodies = "head_of_customer_management_bodies",
|
|
377
|
+
last_updated_comparative_items_quantity_splits = "last_updated_comparative_items_quantity_splits",
|
|
378
|
+
comparative_early_access_requests = "comparative_early_access_requests"
|
|
363
379
|
}
|
|
364
380
|
export interface IUserFilters {
|
|
365
381
|
name?: string | null;
|
|
@@ -136,6 +136,10 @@ var UserInclude;
|
|
|
136
136
|
UserInclude["created_sub_po_items"] = "created_sub_po_items";
|
|
137
137
|
UserInclude["last_updated_sub_po_items"] = "last_updated_sub_po_items";
|
|
138
138
|
UserInclude["marked_as_deleted_sub_po_items"] = "marked_as_deleted_sub_po_items";
|
|
139
|
+
UserInclude["last_updated_item_questions"] = "last_updated_item_questions";
|
|
140
|
+
UserInclude["created_item_questions"] = "created_item_questions";
|
|
141
|
+
UserInclude["created_rfq_questions"] = "created_rfq_questions";
|
|
142
|
+
UserInclude["last_updated_rfq_questions"] = "last_updated_rfq_questions";
|
|
139
143
|
UserInclude["created_company_customer_categories"] = "created_company_customer_categories";
|
|
140
144
|
UserInclude["last_updated_company_customer_categories"] = "last_updated_company_customer_categories";
|
|
141
145
|
UserInclude["company_customer_created_by_user"] = "company_customer_created_by_user";
|
|
@@ -145,4 +149,6 @@ var UserInclude;
|
|
|
145
149
|
UserInclude["created_customer_management_bodies"] = "created_customer_management_bodies";
|
|
146
150
|
UserInclude["last_updated_customer_management_bodies"] = "last_updated_customer_management_bodies";
|
|
147
151
|
UserInclude["head_of_customer_management_bodies"] = "head_of_customer_management_bodies";
|
|
152
|
+
UserInclude["last_updated_comparative_items_quantity_splits"] = "last_updated_comparative_items_quantity_splits";
|
|
153
|
+
UserInclude["comparative_early_access_requests"] = "comparative_early_access_requests";
|
|
148
154
|
})(UserInclude || (exports.UserInclude = UserInclude = {}));
|
|
@@ -7,6 +7,7 @@ import { INestedNotification } from "../notifications.typings";
|
|
|
7
7
|
import { INestedQuote } from "../quote.typings";
|
|
8
8
|
import { INestedVendor } from "../vendor.typings";
|
|
9
9
|
import { INestedVendorItem } from "../vendorItem.typings";
|
|
10
|
+
import { INestedVendorQuoteItem } from "../vendorQuoteItems.typings";
|
|
10
11
|
import { INestedVendorPermission } from "./vendorPermission.typings";
|
|
11
12
|
import { INestedVendorRole } from "./vendorRole.typings";
|
|
12
13
|
export interface IVendorUser {
|
|
@@ -58,36 +59,40 @@ export interface IVendorUser {
|
|
|
58
59
|
last_updated_vendor_permission: INestedVendorPermission[] | null;
|
|
59
60
|
created_invoices: INestedInvoice[] | null;
|
|
60
61
|
last_updated_invoices: INestedInvoice[] | null;
|
|
62
|
+
created_vendor_quote_items: INestedVendorQuoteItem[] | null;
|
|
63
|
+
last_updated_vendor_quote_items: INestedVendorQuoteItem[] | null;
|
|
61
64
|
}
|
|
62
|
-
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" | "created_invoices" | "last_updated_invoices"> {
|
|
65
|
+
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" | "created_invoices" | "last_updated_invoices" | "created_vendor_quote_items" | "last_updated_vendor_quote_items"> {
|
|
63
66
|
}
|
|
64
67
|
export declare enum VENDOR_USER_INCLUDE {
|
|
65
|
-
parent_vendor =
|
|
66
|
-
otps =
|
|
67
|
-
created_vendor_items =
|
|
68
|
-
last_updated_vendor_items =
|
|
69
|
-
deleted_vendor_items =
|
|
70
|
-
created_company_specific_vendor_item_versions =
|
|
71
|
-
last_udpated_company_specific_vendor_item_versions =
|
|
72
|
-
deleted_company_specific_vendor_item_versions =
|
|
73
|
-
accepted_rejected_po =
|
|
74
|
-
vendor_user_notifications =
|
|
75
|
-
quotes_last_updated =
|
|
76
|
-
created_asns =
|
|
77
|
-
last_updated_asns =
|
|
78
|
-
cancelled_asn =
|
|
79
|
-
owned_vendor_organizations =
|
|
80
|
-
contact_person_for_po_at =
|
|
81
|
-
contact_person_for_quote_at =
|
|
82
|
-
contact_person_for_asn_at =
|
|
83
|
-
contact_person_for_general_at =
|
|
84
|
-
created_vendor_roles =
|
|
85
|
-
last_updated_vendor_roles =
|
|
86
|
-
assigned_vendor_roles =
|
|
87
|
-
created_vendor_permissions =
|
|
88
|
-
last_updated_vendor_permission =
|
|
89
|
-
created_invoices =
|
|
90
|
-
last_updated_invoices =
|
|
68
|
+
parent_vendor = 0,
|
|
69
|
+
otps = 1,
|
|
70
|
+
created_vendor_items = 2,
|
|
71
|
+
last_updated_vendor_items = 3,
|
|
72
|
+
deleted_vendor_items = 4,
|
|
73
|
+
created_company_specific_vendor_item_versions = 5,
|
|
74
|
+
last_udpated_company_specific_vendor_item_versions = 6,
|
|
75
|
+
deleted_company_specific_vendor_item_versions = 7,
|
|
76
|
+
accepted_rejected_po = 8,
|
|
77
|
+
vendor_user_notifications = 9,
|
|
78
|
+
quotes_last_updated = 10,
|
|
79
|
+
created_asns = 11,
|
|
80
|
+
last_updated_asns = 12,
|
|
81
|
+
cancelled_asn = 13,
|
|
82
|
+
owned_vendor_organizations = 14,
|
|
83
|
+
contact_person_for_po_at = 15,
|
|
84
|
+
contact_person_for_quote_at = 16,
|
|
85
|
+
contact_person_for_asn_at = 17,
|
|
86
|
+
contact_person_for_general_at = 18,
|
|
87
|
+
created_vendor_roles = 19,
|
|
88
|
+
last_updated_vendor_roles = 20,
|
|
89
|
+
assigned_vendor_roles = 21,
|
|
90
|
+
created_vendor_permissions = 22,
|
|
91
|
+
last_updated_vendor_permission = 23,
|
|
92
|
+
created_invoices = 24,
|
|
93
|
+
last_updated_invoices = 25,
|
|
94
|
+
created_vendor_quote_items = 26,
|
|
95
|
+
last_updated_vendor_quote_items = 27
|
|
91
96
|
}
|
|
92
97
|
export interface IVendorUserFilters {
|
|
93
98
|
name?: string;
|
|
@@ -3,30 +3,32 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VENDOR_USER_INCLUDE = void 0;
|
|
4
4
|
var VENDOR_USER_INCLUDE;
|
|
5
5
|
(function (VENDOR_USER_INCLUDE) {
|
|
6
|
-
VENDOR_USER_INCLUDE["parent_vendor"] = "parent_vendor";
|
|
7
|
-
VENDOR_USER_INCLUDE["otps"] = "otps";
|
|
8
|
-
VENDOR_USER_INCLUDE["created_vendor_items"] = "created_vendor_items";
|
|
9
|
-
VENDOR_USER_INCLUDE["last_updated_vendor_items"] = "last_updated_vendor_items";
|
|
10
|
-
VENDOR_USER_INCLUDE["deleted_vendor_items"] = "deleted_vendor_items";
|
|
11
|
-
VENDOR_USER_INCLUDE["created_company_specific_vendor_item_versions"] = "created_company_specific_vendor_item_versions";
|
|
12
|
-
VENDOR_USER_INCLUDE["last_udpated_company_specific_vendor_item_versions"] = "last_udpated_company_specific_vendor_item_versions";
|
|
13
|
-
VENDOR_USER_INCLUDE["deleted_company_specific_vendor_item_versions"] = "deleted_company_specific_vendor_item_versions";
|
|
14
|
-
VENDOR_USER_INCLUDE["accepted_rejected_po"] = "accepted_rejected_po";
|
|
15
|
-
VENDOR_USER_INCLUDE["vendor_user_notifications"] = "vendor_user_notifications";
|
|
16
|
-
VENDOR_USER_INCLUDE["quotes_last_updated"] = "quotes_last_updated";
|
|
17
|
-
VENDOR_USER_INCLUDE["created_asns"] = "created_asns";
|
|
18
|
-
VENDOR_USER_INCLUDE["last_updated_asns"] = "last_updated_asns";
|
|
19
|
-
VENDOR_USER_INCLUDE["cancelled_asn"] = "cancelled_asn";
|
|
20
|
-
VENDOR_USER_INCLUDE["owned_vendor_organizations"] = "owned_vendor_organizations";
|
|
21
|
-
VENDOR_USER_INCLUDE["contact_person_for_po_at"] = "contact_person_for_po_at";
|
|
22
|
-
VENDOR_USER_INCLUDE["contact_person_for_quote_at"] = "contact_person_for_quote_at";
|
|
23
|
-
VENDOR_USER_INCLUDE["contact_person_for_asn_at"] = "contact_person_for_asn_at";
|
|
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";
|
|
30
|
-
VENDOR_USER_INCLUDE["created_invoices"] = "created_invoices";
|
|
31
|
-
VENDOR_USER_INCLUDE["last_updated_invoices"] = "last_updated_invoices";
|
|
6
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["parent_vendor"] = 0] = "parent_vendor";
|
|
7
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["otps"] = 1] = "otps";
|
|
8
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["created_vendor_items"] = 2] = "created_vendor_items";
|
|
9
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["last_updated_vendor_items"] = 3] = "last_updated_vendor_items";
|
|
10
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["deleted_vendor_items"] = 4] = "deleted_vendor_items";
|
|
11
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["created_company_specific_vendor_item_versions"] = 5] = "created_company_specific_vendor_item_versions";
|
|
12
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["last_udpated_company_specific_vendor_item_versions"] = 6] = "last_udpated_company_specific_vendor_item_versions";
|
|
13
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["deleted_company_specific_vendor_item_versions"] = 7] = "deleted_company_specific_vendor_item_versions";
|
|
14
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["accepted_rejected_po"] = 8] = "accepted_rejected_po";
|
|
15
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["vendor_user_notifications"] = 9] = "vendor_user_notifications";
|
|
16
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["quotes_last_updated"] = 10] = "quotes_last_updated";
|
|
17
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["created_asns"] = 11] = "created_asns";
|
|
18
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["last_updated_asns"] = 12] = "last_updated_asns";
|
|
19
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["cancelled_asn"] = 13] = "cancelled_asn";
|
|
20
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["owned_vendor_organizations"] = 14] = "owned_vendor_organizations";
|
|
21
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["contact_person_for_po_at"] = 15] = "contact_person_for_po_at";
|
|
22
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["contact_person_for_quote_at"] = 16] = "contact_person_for_quote_at";
|
|
23
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["contact_person_for_asn_at"] = 17] = "contact_person_for_asn_at";
|
|
24
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["contact_person_for_general_at"] = 18] = "contact_person_for_general_at";
|
|
25
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["created_vendor_roles"] = 19] = "created_vendor_roles";
|
|
26
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["last_updated_vendor_roles"] = 20] = "last_updated_vendor_roles";
|
|
27
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["assigned_vendor_roles"] = 21] = "assigned_vendor_roles";
|
|
28
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["created_vendor_permissions"] = 22] = "created_vendor_permissions";
|
|
29
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["last_updated_vendor_permission"] = 23] = "last_updated_vendor_permission";
|
|
30
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["created_invoices"] = 24] = "created_invoices";
|
|
31
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["last_updated_invoices"] = 25] = "last_updated_invoices";
|
|
32
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["created_vendor_quote_items"] = 26] = "created_vendor_quote_items";
|
|
33
|
+
VENDOR_USER_INCLUDE[VENDOR_USER_INCLUDE["last_updated_vendor_quote_items"] = 27] = "last_updated_vendor_quote_items";
|
|
32
34
|
})(VENDOR_USER_INCLUDE || (exports.VENDOR_USER_INCLUDE = VENDOR_USER_INCLUDE = {}));
|
|
@@ -18,6 +18,7 @@ import { INestedASN, INestedASNItem } from "./asn.typings";
|
|
|
18
18
|
import { INestedVendorItem } from "./vendorItem.typings";
|
|
19
19
|
import { INestedVendorItemCategory } from "./vendorItemCategories.typings";
|
|
20
20
|
import { INestedLifecycleLogs } from "./common/lifecycleLogger.typings";
|
|
21
|
+
import { INestedVendorQuoteItem } from "./vendorQuoteItems.typings";
|
|
21
22
|
export interface IVendor extends IAddress {
|
|
22
23
|
id: string;
|
|
23
24
|
owner_vendor_user_id: string | null;
|
|
@@ -92,13 +93,14 @@ export interface IVendor extends IAddress {
|
|
|
92
93
|
vendor_items: INestedVendorItem[] | null;
|
|
93
94
|
vendor_item_categories: INestedVendorItemCategory[] | null;
|
|
94
95
|
logs: INestedLifecycleLogs[] | null;
|
|
96
|
+
vendor_quote_items: INestedVendorQuoteItem[] | null;
|
|
95
97
|
}
|
|
96
98
|
export declare enum VENDOR_SVF_FORM_STATUS {
|
|
97
99
|
SENT = "SENT",
|
|
98
100
|
ANSWERED = "ANSWERED",
|
|
99
101
|
ROLLED_BACK = "ROLLED_BACK"
|
|
100
102
|
}
|
|
101
|
-
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" | "asns" | "asn_items" | "vendor_items" | "vendor_item_categories" | "logs"> {
|
|
103
|
+
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" | "asns" | "asn_items" | "vendor_items" | "vendor_item_categories" | "logs" | "vendor_quote_items"> {
|
|
102
104
|
}
|
|
103
105
|
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"> {
|
|
104
106
|
}
|
|
@@ -115,31 +117,32 @@ export interface ISVFTokenVerificationResponse {
|
|
|
115
117
|
vendorOrganizationData: INestedVendor | null;
|
|
116
118
|
}
|
|
117
119
|
export declare enum VENDOR_INCLUDE {
|
|
118
|
-
quotes =
|
|
119
|
-
associated_companies =
|
|
120
|
-
negotiations =
|
|
121
|
-
as_additional_in_rfqs =
|
|
122
|
-
vendor_notifications =
|
|
123
|
-
extra_que_answers =
|
|
124
|
-
pos =
|
|
125
|
-
company_item_versions =
|
|
126
|
-
invoices =
|
|
127
|
-
contact_people =
|
|
128
|
-
rollback_form_sent_to_vendor =
|
|
129
|
-
created_queue_jobs =
|
|
130
|
-
vendor_users =
|
|
131
|
-
owner_vendor_user =
|
|
132
|
-
po_contact_vendor_user =
|
|
133
|
-
quote_contact_vendor_user =
|
|
134
|
-
asn_contact_vendor_user =
|
|
135
|
-
general_contact_vendor_user =
|
|
136
|
-
associated_vendor_roles =
|
|
137
|
-
associated_vendor_permissions =
|
|
138
|
-
asns =
|
|
139
|
-
asn_items =
|
|
140
|
-
vendor_items =
|
|
141
|
-
vendor_item_categories =
|
|
142
|
-
logs =
|
|
120
|
+
quotes = 0,
|
|
121
|
+
associated_companies = 1,
|
|
122
|
+
negotiations = 2,
|
|
123
|
+
as_additional_in_rfqs = 3,
|
|
124
|
+
vendor_notifications = 4,
|
|
125
|
+
extra_que_answers = 5,
|
|
126
|
+
pos = 6,
|
|
127
|
+
company_item_versions = 7,
|
|
128
|
+
invoices = 8,
|
|
129
|
+
contact_people = 9,
|
|
130
|
+
rollback_form_sent_to_vendor = 10,
|
|
131
|
+
created_queue_jobs = 11,
|
|
132
|
+
vendor_users = 12,
|
|
133
|
+
owner_vendor_user = 13,
|
|
134
|
+
po_contact_vendor_user = 14,
|
|
135
|
+
quote_contact_vendor_user = 15,
|
|
136
|
+
asn_contact_vendor_user = 16,
|
|
137
|
+
general_contact_vendor_user = 17,
|
|
138
|
+
associated_vendor_roles = 18,
|
|
139
|
+
associated_vendor_permissions = 19,
|
|
140
|
+
asns = 20,
|
|
141
|
+
asn_items = 21,
|
|
142
|
+
vendor_items = 22,
|
|
143
|
+
vendor_item_categories = 23,
|
|
144
|
+
logs = 24,
|
|
145
|
+
vendor_quote_items = 25
|
|
143
146
|
}
|
|
144
147
|
export declare enum VENDOR_TYPE {
|
|
145
148
|
MFG = "Manufacturing",
|