kcommons 14.14.2 → 14.16.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/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/typings/asn.typings.d.ts +9 -1
- package/build/typings/asn.typings.js +5 -1
- package/build/typings/company/istd/istd.typings.d.ts +12 -2
- package/build/typings/company/istd/istd.typings.js +6 -1
- package/build/typings/company.typings.d.ts +5 -2
- package/build/typings/company.typings.js +1 -0
- package/build/typings/grn.typings.d.ts +9 -1
- package/build/typings/grn.typings.js +5 -1
- package/build/typings/mrn.typings.d.ts +9 -1
- package/build/typings/mrn.typings.js +5 -1
- package/build/typings/temporaryWorkerForm.typings.d.ts +50 -0
- package/build/typings/temporaryWorkerForm.typings.js +15 -0
- package/build/typings/user.typings.d.ts +7 -2
- package/build/typings/user.typings.js +2 -0
- package/build/utils/getContactPerson.util.spec.js +4 -0
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ export * from "./typings/company/masters/itemManagementbody.typings";
|
|
|
68
68
|
export * from "./typings/company/masters/termsAndConditions.typings";
|
|
69
69
|
export * from "./typings/company/masters/paymentTerms.typings";
|
|
70
70
|
export * from "./typings/company/_junctions/vesCheckpointTracking.typings";
|
|
71
|
+
export * from "./typings/temporaryWorkerForm.typings";
|
|
71
72
|
export * from "./typings/system/queueJob.typings";
|
|
72
73
|
export * from "./typings/system/erpPluginConfigCompany.typings";
|
|
73
74
|
export * from "./typings/common/address.typings";
|
package/build/index.js
CHANGED
|
@@ -87,6 +87,7 @@ __exportStar(require("./typings/company/masters/itemManagementbody.typings"), ex
|
|
|
87
87
|
__exportStar(require("./typings/company/masters/termsAndConditions.typings"), exports);
|
|
88
88
|
__exportStar(require("./typings/company/masters/paymentTerms.typings"), exports);
|
|
89
89
|
__exportStar(require("./typings/company/_junctions/vesCheckpointTracking.typings"), exports);
|
|
90
|
+
__exportStar(require("./typings/temporaryWorkerForm.typings"), exports);
|
|
90
91
|
// System
|
|
91
92
|
__exportStar(require("./typings/system/queueJob.typings"), exports);
|
|
92
93
|
__exportStar(require("./typings/system/erpPluginConfigCompany.typings"), exports);
|
|
@@ -161,6 +161,7 @@ export interface IASN {
|
|
|
161
161
|
asns_sent_to_vendor_by_user: INestedUser | null;
|
|
162
162
|
child_ves: INestedVES[] | null;
|
|
163
163
|
send_by_user: INestedUser | null;
|
|
164
|
+
meta_fields: IASNMetafields | null;
|
|
164
165
|
}
|
|
165
166
|
export declare enum ASN_MODE_OF_TRANSPORT_FIELDS {
|
|
166
167
|
road_vehicle_type = "road_vehicle_type",
|
|
@@ -215,7 +216,7 @@ export declare const ASN_SEA_TRANSPORT_FIELD_PREFIX = "sea";
|
|
|
215
216
|
export declare const ASN_AIR_TRANSPORT_FIELD_PREFIX = "air";
|
|
216
217
|
export declare const ASN_COURIER_TRANSPORT_FIELD_PREFIX = "courier";
|
|
217
218
|
export declare const ASN_HAND_DELIVERY_TRANSPORT_FIELD_PREFIX = "hand_delivery";
|
|
218
|
-
export interface INestedASN extends Omit<IASN, "created_by_vendor" | "for_company" | "parent_po" | "shipping_store_location" | "items" | "associated_grns" | "cancelled_by_user" | "send_to_vendor_by_user_id" | "send_to_vendor_by_user_at" | "child_ves"> {
|
|
219
|
+
export interface INestedASN extends Omit<IASN, "created_by_vendor" | "for_company" | "parent_po" | "shipping_store_location" | "items" | "associated_grns" | "cancelled_by_user" | "send_to_vendor_by_user_id" | "send_to_vendor_by_user_at" | "child_ves" | "metafields"> {
|
|
219
220
|
}
|
|
220
221
|
export interface IASNFilters {
|
|
221
222
|
company_id?: string;
|
|
@@ -226,6 +227,7 @@ export interface IASNFilters {
|
|
|
226
227
|
include?: ASN_INCLUDE[];
|
|
227
228
|
name?: string | null;
|
|
228
229
|
status?: ASN_STATUS;
|
|
230
|
+
metafields_include?: ASN_METAFIELDS_INCLUDE[];
|
|
229
231
|
}
|
|
230
232
|
export interface IASNFiltersWIthPagination extends IPaginationFilters, IASNFilters {
|
|
231
233
|
}
|
|
@@ -294,3 +296,9 @@ export interface IASN_TOKEN_PAYLOAD {
|
|
|
294
296
|
role_id: string;
|
|
295
297
|
asn_id: string;
|
|
296
298
|
}
|
|
299
|
+
export interface IASNMetafields {
|
|
300
|
+
items_data: INestedItem[] | null;
|
|
301
|
+
}
|
|
302
|
+
export declare enum ASN_METAFIELDS_INCLUDE {
|
|
303
|
+
items_data = "items_data"
|
|
304
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ASN_VIEW_PAGE_TYPE = exports.ASN_ITEM_INCLUDE = exports.ASN_HAND_DELIVERY_TRANSPORT_FIELD_PREFIX = exports.ASN_COURIER_TRANSPORT_FIELD_PREFIX = exports.ASN_AIR_TRANSPORT_FIELD_PREFIX = exports.ASN_SEA_TRANSPORT_FIELD_PREFIX = exports.ASN_RAIL_TRANSPORT_FIELD_PREFIX = exports.ASN_ROAD_TRANSPORT_FIELD_PREFIX = exports.ASN_MODE_OF_TRANSPORT_FIELDS = exports.ASN_INCLUDE = exports.IDENTIFICATION_DOCUMENT_TYPE = exports.COURIER_SERVICE_TYPE = exports.VEHICLE_TYPE = exports.MODE_OF_TRANSPORT = exports.SHIPMENT_TYPE = exports.ASN_STATUS = exports.ASN_CANCELLED_BY_ENTITY = void 0;
|
|
3
|
+
exports.ASN_METAFIELDS_INCLUDE = exports.ASN_VIEW_PAGE_TYPE = exports.ASN_ITEM_INCLUDE = exports.ASN_HAND_DELIVERY_TRANSPORT_FIELD_PREFIX = exports.ASN_COURIER_TRANSPORT_FIELD_PREFIX = exports.ASN_AIR_TRANSPORT_FIELD_PREFIX = exports.ASN_SEA_TRANSPORT_FIELD_PREFIX = exports.ASN_RAIL_TRANSPORT_FIELD_PREFIX = exports.ASN_ROAD_TRANSPORT_FIELD_PREFIX = exports.ASN_MODE_OF_TRANSPORT_FIELDS = exports.ASN_INCLUDE = exports.IDENTIFICATION_DOCUMENT_TYPE = exports.COURIER_SERVICE_TYPE = exports.VEHICLE_TYPE = exports.MODE_OF_TRANSPORT = exports.SHIPMENT_TYPE = exports.ASN_STATUS = exports.ASN_CANCELLED_BY_ENTITY = void 0;
|
|
4
4
|
var ASN_CANCELLED_BY_ENTITY;
|
|
5
5
|
(function (ASN_CANCELLED_BY_ENTITY) {
|
|
6
6
|
ASN_CANCELLED_BY_ENTITY["COMPANY"] = "COMPANY";
|
|
@@ -142,3 +142,7 @@ var ASN_VIEW_PAGE_TYPE;
|
|
|
142
142
|
ASN_VIEW_PAGE_TYPE["GATE"] = "GATE";
|
|
143
143
|
ASN_VIEW_PAGE_TYPE["PO"] = "PO";
|
|
144
144
|
})(ASN_VIEW_PAGE_TYPE || (exports.ASN_VIEW_PAGE_TYPE = ASN_VIEW_PAGE_TYPE = {}));
|
|
145
|
+
var ASN_METAFIELDS_INCLUDE;
|
|
146
|
+
(function (ASN_METAFIELDS_INCLUDE) {
|
|
147
|
+
ASN_METAFIELDS_INCLUDE["items_data"] = "items_data";
|
|
148
|
+
})(ASN_METAFIELDS_INCLUDE || (exports.ASN_METAFIELDS_INCLUDE = ASN_METAFIELDS_INCLUDE = {}));
|
|
@@ -2,6 +2,7 @@ import { IPaginationFilters } from "../../common/paginationFilters.typings";
|
|
|
2
2
|
import { INestedCompany } from "../../company.typings";
|
|
3
3
|
import { INestedEntityApprovalChainEntry } from "../../entityApprovalChainEntry.typings";
|
|
4
4
|
import { INestedGRN } from "../../grn.typings";
|
|
5
|
+
import { INestedItem } from "../../item.typings";
|
|
5
6
|
import { INestedMRN } from "../../mrn.typings";
|
|
6
7
|
import { INestedStoreLocation } from "../../storeLocation.typings";
|
|
7
8
|
import { INestedUser } from "../../user.typings";
|
|
@@ -72,7 +73,8 @@ export declare enum ISTD_INCLUDE {
|
|
|
72
73
|
dest_approval_chain = "dest_approval_chain",
|
|
73
74
|
mrns = "mrns",
|
|
74
75
|
grns = "grns",
|
|
75
|
-
inventory_logs = "inventory_logs"
|
|
76
|
+
inventory_logs = "inventory_logs",
|
|
77
|
+
metafields = "metafields"
|
|
76
78
|
}
|
|
77
79
|
export interface IISTD {
|
|
78
80
|
id: string;
|
|
@@ -124,8 +126,9 @@ export interface IISTD {
|
|
|
124
126
|
grns: INestedGRN[] | null;
|
|
125
127
|
mrns: INestedMRN[] | null;
|
|
126
128
|
inventory_logs: INestedInventoryLog[] | null;
|
|
129
|
+
metafields: IISTDMetafields[] | null;
|
|
127
130
|
}
|
|
128
|
-
export interface INestedISTD extends Omit<IISTD, "items" | "company" | "created_by" | "last_updated_by" | "source_contact_person" | "dest_contact_person" | "sent_for_source_approval_by" | "sent_for_dest_approval_by" | "source_store_location" | "dest_store_location" | "terminated_by" | "sent_to_dest_store_by" | "sent_for_processing_by" | "source_approval_chain" | "dest_approval_chain" | "grns" | "mrns" | "inventory_logs"> {
|
|
131
|
+
export interface INestedISTD extends Omit<IISTD, "items" | "company" | "created_by" | "last_updated_by" | "source_contact_person" | "dest_contact_person" | "sent_for_source_approval_by" | "sent_for_dest_approval_by" | "source_store_location" | "dest_store_location" | "terminated_by" | "sent_to_dest_store_by" | "sent_for_processing_by" | "source_approval_chain" | "dest_approval_chain" | "grns" | "mrns" | "inventory_logs" | "metafields"> {
|
|
129
132
|
}
|
|
130
133
|
export interface IISTDFilter {
|
|
131
134
|
created_by_id?: string | null;
|
|
@@ -135,6 +138,13 @@ export interface IISTDFilter {
|
|
|
135
138
|
include?: ISTD_INCLUDE[] | null;
|
|
136
139
|
status_at_source?: ISTD_STATUS_FOR_SOURCE | null;
|
|
137
140
|
status_at_dest?: ISTD_STATUS_FOR_DEST | null;
|
|
141
|
+
metafields_include?: ISTD_METAFIELDS_INCLUDE[] | null;
|
|
138
142
|
}
|
|
139
143
|
export interface IISTDFiltersWithPagination extends IISTDFilter, IPaginationFilters {
|
|
140
144
|
}
|
|
145
|
+
export interface IISTDMetafields {
|
|
146
|
+
items_data: INestedItem[] | null;
|
|
147
|
+
}
|
|
148
|
+
export declare enum ISTD_METAFIELDS_INCLUDE {
|
|
149
|
+
items_data = "items_data"
|
|
150
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ISTD_INCLUDE = exports.ISTD_STATUS_FOR_DEST = exports.ISTD_STATUS_FOR_SOURCE = exports.ISTD_TYPES = exports.ISTD_CHILD_DOC_TYPE = exports.ISTD_VIEW_TABS = exports.ISTD_LIST_TYPE_AT_DEST = exports.ISTD_LIST_TYPE_AT_SOURCE = exports.ISTD_LIST_TYPES = void 0;
|
|
3
|
+
exports.ISTD_METAFIELDS_INCLUDE = exports.ISTD_INCLUDE = exports.ISTD_STATUS_FOR_DEST = exports.ISTD_STATUS_FOR_SOURCE = exports.ISTD_TYPES = exports.ISTD_CHILD_DOC_TYPE = exports.ISTD_VIEW_TABS = exports.ISTD_LIST_TYPE_AT_DEST = exports.ISTD_LIST_TYPE_AT_SOURCE = exports.ISTD_LIST_TYPES = void 0;
|
|
4
4
|
var ISTD_LIST_TYPES;
|
|
5
5
|
(function (ISTD_LIST_TYPES) {
|
|
6
6
|
ISTD_LIST_TYPES["ALL"] = "ALL";
|
|
@@ -76,4 +76,9 @@ var ISTD_INCLUDE;
|
|
|
76
76
|
ISTD_INCLUDE["mrns"] = "mrns";
|
|
77
77
|
ISTD_INCLUDE["grns"] = "grns";
|
|
78
78
|
ISTD_INCLUDE["inventory_logs"] = "inventory_logs";
|
|
79
|
+
ISTD_INCLUDE["metafields"] = "metafields";
|
|
79
80
|
})(ISTD_INCLUDE || (exports.ISTD_INCLUDE = ISTD_INCLUDE = {}));
|
|
81
|
+
var ISTD_METAFIELDS_INCLUDE;
|
|
82
|
+
(function (ISTD_METAFIELDS_INCLUDE) {
|
|
83
|
+
ISTD_METAFIELDS_INCLUDE["items_data"] = "items_data";
|
|
84
|
+
})(ISTD_METAFIELDS_INCLUDE || (exports.ISTD_METAFIELDS_INCLUDE = ISTD_METAFIELDS_INCLUDE = {}));
|
|
@@ -51,6 +51,7 @@ import { INestedCompanyConfig } from "./companyConfig.typings";
|
|
|
51
51
|
import { INestedPOASNItemJunction } from "./company/masters/poAsnJunctionItems.typings";
|
|
52
52
|
import { INestedPOGRNItemJunction } from "./company/masters/poGrnJunctionItems.typings";
|
|
53
53
|
import { INestedERPPluginConfigCompany } from "./system/erpPluginConfigCompany.typings";
|
|
54
|
+
import { INestedTemporaryWorkerForm } from "./temporaryWorkerForm.typings";
|
|
54
55
|
export declare enum PRICING_PLANS {
|
|
55
56
|
BASIC = "BASIC",
|
|
56
57
|
GROWTH = "GROWTH",
|
|
@@ -112,7 +113,8 @@ export declare enum COMPANY_INCLUDE {
|
|
|
112
113
|
queue_jobs = "queue_jobs",
|
|
113
114
|
company_terms_and_conditions = "company_terms_and_conditions",
|
|
114
115
|
company_config = "company_config",
|
|
115
|
-
erp_plugin_config = "erp_plugin_config"
|
|
116
|
+
erp_plugin_config = "erp_plugin_config",
|
|
117
|
+
company_temporary_worker_form = "company_temporary_worker_form"
|
|
116
118
|
}
|
|
117
119
|
export interface ICompany extends IAddress {
|
|
118
120
|
id: string;
|
|
@@ -208,8 +210,9 @@ export interface ICompany extends IAddress {
|
|
|
208
210
|
payment_terms: INestedPaymentTerms[] | null;
|
|
209
211
|
company_config: INestedCompanyConfig | null;
|
|
210
212
|
erp_plugin_config: INestedERPPluginConfigCompany | null;
|
|
213
|
+
company_temporary_worker_form: INestedTemporaryWorkerForm[] | null;
|
|
211
214
|
}
|
|
212
|
-
export interface INestedCompany extends Omit<ICompany, "associated_purchase_locations" | "associated_vendors" | "associated_permissions" | "associated_roles" | "approval_configs" | "subdepartments" | "subcategories" | "categories" | "items" | "offices" | "stores" | "employees" | "departments" | "vendor_groups" | "company_indents" | "indent_items" | "company_mis" | "mi_items" | "company_prs" | "pr_items" | "company_rfqs" | "company_quotes" | "entity_approval_chain_entries" | "company_negotiations" | "company_pos" | "company_grns" | "company_grns_items" | "company_mrns" | "company_mrns_items" | "company_boms" | "company_bom_items" | "company_comparatives" | "company_comparative_items" | "company_notifications" | "extra_question_ans" | "extra_core_related_questions" | "company_specific_vendor_items" | "po_asn_items_junction" | "company_contact_people" | "company_item_vendor_versions" | "istds" | "istd_items" | "inventory_logs" | "invoices" | "logs" | "vendor_onboarding_requests" | "vendor_management_bodies" | "item_management_bodies" | "rollback_forms_sent_by_company" | "company_checkpoints" | "company_ves" | "queue_jobs" | "company_terms_and_conditions" | "company_config" | "erp_plugin_config"> {
|
|
215
|
+
export interface INestedCompany extends Omit<ICompany, "associated_purchase_locations" | "associated_vendors" | "associated_permissions" | "associated_roles" | "approval_configs" | "subdepartments" | "subcategories" | "categories" | "items" | "offices" | "stores" | "employees" | "departments" | "vendor_groups" | "company_indents" | "indent_items" | "company_mis" | "mi_items" | "company_prs" | "pr_items" | "company_rfqs" | "company_quotes" | "entity_approval_chain_entries" | "company_negotiations" | "company_pos" | "company_grns" | "company_grns_items" | "company_mrns" | "company_mrns_items" | "company_boms" | "company_bom_items" | "company_comparatives" | "company_comparative_items" | "company_notifications" | "extra_question_ans" | "extra_core_related_questions" | "company_specific_vendor_items" | "po_asn_items_junction" | "company_contact_people" | "company_item_vendor_versions" | "istds" | "istd_items" | "inventory_logs" | "invoices" | "logs" | "vendor_onboarding_requests" | "vendor_management_bodies" | "item_management_bodies" | "rollback_forms_sent_by_company" | "company_checkpoints" | "company_ves" | "queue_jobs" | "company_terms_and_conditions" | "company_config" | "erp_plugin_config" | "company_temporary_worker_form"> {
|
|
213
216
|
}
|
|
214
217
|
export interface ICompanyVendorAdditionalInfoMappingConfig {
|
|
215
218
|
additional_info_form_que_id: string;
|
|
@@ -63,6 +63,7 @@ var COMPANY_INCLUDE;
|
|
|
63
63
|
COMPANY_INCLUDE["company_terms_and_conditions"] = "company_terms_and_conditions";
|
|
64
64
|
COMPANY_INCLUDE["company_config"] = "company_config";
|
|
65
65
|
COMPANY_INCLUDE["erp_plugin_config"] = "erp_plugin_config";
|
|
66
|
+
COMPANY_INCLUDE["company_temporary_worker_form"] = "company_temporary_worker_form";
|
|
66
67
|
})(COMPANY_INCLUDE || (exports.COMPANY_INCLUDE = COMPANY_INCLUDE = {}));
|
|
67
68
|
// export interface IUpdateVendorOnboardingRequestCategoriesInputs
|
|
68
69
|
// extends Pick<ICompany, "vendor_onboarding_request_categories"> {}
|
|
@@ -55,6 +55,7 @@ export interface IGRNFilters {
|
|
|
55
55
|
list_type?: GRN_LIST_TYPES;
|
|
56
56
|
status?: GRN_STATUS;
|
|
57
57
|
include?: GRN_INCLUDE[];
|
|
58
|
+
metafields_include?: GRN_METAFIELDS_INCLUDE[];
|
|
58
59
|
}
|
|
59
60
|
export declare enum GRN_STATUS {
|
|
60
61
|
DRAFT = "DRAFT",
|
|
@@ -107,8 +108,9 @@ export interface IGRN {
|
|
|
107
108
|
parent_istd: INestedISTD | null;
|
|
108
109
|
parent_po: INestedPo | null;
|
|
109
110
|
parent_ves: INestedVES | null;
|
|
111
|
+
metafields: IGRNMetafields | null;
|
|
110
112
|
}
|
|
111
|
-
export interface INestedGRN extends Omit<IGRN, "company" | "created_by_user" | "last_updated_by_user" | "shipping_store_location" | "department" | "parent_asn" | "contact_person" | "items" | "approval_chain" | "sent_for_approval_by" | "sent_to_store_by" | "child_mrns" | "parent_istd" | "parent_po" | "parent_ves"> {
|
|
113
|
+
export interface INestedGRN extends Omit<IGRN, "company" | "created_by_user" | "last_updated_by_user" | "shipping_store_location" | "department" | "parent_asn" | "contact_person" | "items" | "approval_chain" | "sent_for_approval_by" | "sent_to_store_by" | "child_mrns" | "parent_istd" | "parent_po" | "parent_ves" | "metafields"> {
|
|
112
114
|
}
|
|
113
115
|
export declare enum GRN_ITEM_INCLUDE {
|
|
114
116
|
company = "company",
|
|
@@ -160,3 +162,9 @@ export interface IFetchParentDocumentForGRNResponse {
|
|
|
160
162
|
istd_data: INestedISTD | null;
|
|
161
163
|
ves_data: INestedVES | null;
|
|
162
164
|
}
|
|
165
|
+
export interface IGRNMetafields {
|
|
166
|
+
items_data: INestedItem[] | null;
|
|
167
|
+
}
|
|
168
|
+
export declare enum GRN_METAFIELDS_INCLUDE {
|
|
169
|
+
items_data = "items_data"
|
|
170
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GRN_ITEM_INCLUDE = exports.GRN_STATUS = exports.GRN_INCLUDE = exports.GRN_PARENT_DOC_TYPE = exports.GRN_TABS = exports.GRN_LIST_TYPES = void 0;
|
|
3
|
+
exports.GRN_METAFIELDS_INCLUDE = exports.GRN_ITEM_INCLUDE = exports.GRN_STATUS = exports.GRN_INCLUDE = exports.GRN_PARENT_DOC_TYPE = exports.GRN_TABS = exports.GRN_LIST_TYPES = void 0;
|
|
4
4
|
var GRN_LIST_TYPES;
|
|
5
5
|
(function (GRN_LIST_TYPES) {
|
|
6
6
|
GRN_LIST_TYPES["ALL"] = "ALL";
|
|
@@ -61,3 +61,7 @@ var GRN_ITEM_INCLUDE;
|
|
|
61
61
|
GRN_ITEM_INCLUDE["po_grn_item_junction"] = "po_grn_item_junction";
|
|
62
62
|
GRN_ITEM_INCLUDE["parent_ves_item"] = "parent_ves_item";
|
|
63
63
|
})(GRN_ITEM_INCLUDE || (exports.GRN_ITEM_INCLUDE = GRN_ITEM_INCLUDE = {}));
|
|
64
|
+
var GRN_METAFIELDS_INCLUDE;
|
|
65
|
+
(function (GRN_METAFIELDS_INCLUDE) {
|
|
66
|
+
GRN_METAFIELDS_INCLUDE["items_data"] = "items_data";
|
|
67
|
+
})(GRN_METAFIELDS_INCLUDE || (exports.GRN_METAFIELDS_INCLUDE = GRN_METAFIELDS_INCLUDE = {}));
|
|
@@ -31,6 +31,7 @@ export interface IMRNFilters {
|
|
|
31
31
|
store_location_id?: string;
|
|
32
32
|
status?: MRN_STATUS;
|
|
33
33
|
include?: MRN_INCLUDE[];
|
|
34
|
+
metafields_include?: MRN_METAFIELDS_INCLUDE[];
|
|
34
35
|
}
|
|
35
36
|
export interface IMRNFiltersWithPagination extends IMRNFilters, IPaginationFilters {
|
|
36
37
|
}
|
|
@@ -87,8 +88,9 @@ export interface IMRN {
|
|
|
87
88
|
items: INestedMRNItem[] | null;
|
|
88
89
|
parent_istd: INestedISTD | null;
|
|
89
90
|
inventory_logs: INestedInventoryLog[] | null;
|
|
91
|
+
metafields: IMRNMetafields | null;
|
|
90
92
|
}
|
|
91
|
-
export interface INestedMRN extends Omit<IMRN, "company" | "parent_grn" | "parent_department" | "parent_store_location" | "contact_person" | "sent_for_approval_by" | "approval_chain" | "items" | "parent_istd" | "inventory_logs"> {
|
|
93
|
+
export interface INestedMRN extends Omit<IMRN, "company" | "parent_grn" | "parent_department" | "parent_store_location" | "contact_person" | "sent_for_approval_by" | "approval_chain" | "items" | "parent_istd" | "inventory_logs" | "metafields"> {
|
|
92
94
|
}
|
|
93
95
|
export declare enum MRN_ITEM_INCLUDE {
|
|
94
96
|
parent_mrn = "parent_mrn",
|
|
@@ -126,3 +128,9 @@ export interface IMRNItem {
|
|
|
126
128
|
}
|
|
127
129
|
export interface INestedMRNItem extends Omit<IMRNItem, "parent_mrn" | "company" | "item" | "parent_grn_item" | "parent_istd_item"> {
|
|
128
130
|
}
|
|
131
|
+
export interface IMRNMetafields {
|
|
132
|
+
items_data: INestedItem[] | null;
|
|
133
|
+
}
|
|
134
|
+
export declare enum MRN_METAFIELDS_INCLUDE {
|
|
135
|
+
items_data = "items_data"
|
|
136
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MRN_ITEM_INCLUDE = exports.MRN_STATUS = exports.MRN_INCLUDE = exports.MRN_PARENT_DOC_TYPE = exports.MRN_TABS = exports.MRN_LIST_TYPES = void 0;
|
|
3
|
+
exports.MRN_METAFIELDS_INCLUDE = exports.MRN_ITEM_INCLUDE = exports.MRN_STATUS = exports.MRN_INCLUDE = exports.MRN_PARENT_DOC_TYPE = exports.MRN_TABS = exports.MRN_LIST_TYPES = void 0;
|
|
4
4
|
var MRN_LIST_TYPES;
|
|
5
5
|
(function (MRN_LIST_TYPES) {
|
|
6
6
|
MRN_LIST_TYPES["ALL"] = "ALL";
|
|
@@ -49,3 +49,7 @@ var MRN_ITEM_INCLUDE;
|
|
|
49
49
|
MRN_ITEM_INCLUDE["item"] = "item";
|
|
50
50
|
MRN_ITEM_INCLUDE["parent_grn_item"] = "parent_grn_item";
|
|
51
51
|
})(MRN_ITEM_INCLUDE || (exports.MRN_ITEM_INCLUDE = MRN_ITEM_INCLUDE = {}));
|
|
52
|
+
var MRN_METAFIELDS_INCLUDE;
|
|
53
|
+
(function (MRN_METAFIELDS_INCLUDE) {
|
|
54
|
+
MRN_METAFIELDS_INCLUDE["items_data"] = "items_data";
|
|
55
|
+
})(MRN_METAFIELDS_INCLUDE || (exports.MRN_METAFIELDS_INCLUDE = MRN_METAFIELDS_INCLUDE = {}));
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { IPaginationFilters } from "./common/paginationFilters.typings";
|
|
2
|
+
import { INestedCompany } from "./company.typings";
|
|
3
|
+
import { INestedUser } from "./user.typings";
|
|
4
|
+
export interface ITemporaryWorkerForm {
|
|
5
|
+
id: string;
|
|
6
|
+
first_name: string;
|
|
7
|
+
middle_name: string | null;
|
|
8
|
+
last_name: string;
|
|
9
|
+
age: number;
|
|
10
|
+
gender: GENDER;
|
|
11
|
+
contact: string;
|
|
12
|
+
email: string | null;
|
|
13
|
+
pincode: string | null;
|
|
14
|
+
area: string | null;
|
|
15
|
+
city: string | null;
|
|
16
|
+
state: string | null;
|
|
17
|
+
address: string | null;
|
|
18
|
+
aadhaar_number: string;
|
|
19
|
+
emergency_contact_name: string;
|
|
20
|
+
emergency_contact_number: string;
|
|
21
|
+
company_id: string;
|
|
22
|
+
created_by_user_id: string;
|
|
23
|
+
last_updated_by_user_id: string;
|
|
24
|
+
is_enabled: boolean;
|
|
25
|
+
is_deleted: boolean;
|
|
26
|
+
deleted_at: string;
|
|
27
|
+
created_at: string;
|
|
28
|
+
updated_at: string;
|
|
29
|
+
company: INestedCompany | null;
|
|
30
|
+
created_by_user: INestedUser | null;
|
|
31
|
+
last_updated_by_user: INestedUser | null;
|
|
32
|
+
}
|
|
33
|
+
export interface INestedTemporaryWorkerForm extends Omit<ITemporaryWorkerForm, "company" | "created_by_usr" | "last_updated_by_user"> {
|
|
34
|
+
}
|
|
35
|
+
export declare enum TEMPORARY_WORKER_FORM_INCLUDE {
|
|
36
|
+
company = "company",
|
|
37
|
+
created_by_user = "created_by_user",
|
|
38
|
+
last_updated_by_user = "last_updated_by_user"
|
|
39
|
+
}
|
|
40
|
+
export declare enum GENDER {
|
|
41
|
+
male = "male",
|
|
42
|
+
female = "female",
|
|
43
|
+
other = "'other"
|
|
44
|
+
}
|
|
45
|
+
export interface ITemporaryWorkerFormFilter extends Partial<Pick<ITemporaryWorkerForm, "is_enabled">> {
|
|
46
|
+
name?: string | null;
|
|
47
|
+
include?: TEMPORARY_WORKER_FORM_INCLUDE[] | null;
|
|
48
|
+
}
|
|
49
|
+
export interface ITemporaryWorkerFormFiltersWithPagination extends IPaginationFilters, ITemporaryWorkerFormFilter {
|
|
50
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GENDER = exports.TEMPORARY_WORKER_FORM_INCLUDE = void 0;
|
|
4
|
+
var TEMPORARY_WORKER_FORM_INCLUDE;
|
|
5
|
+
(function (TEMPORARY_WORKER_FORM_INCLUDE) {
|
|
6
|
+
TEMPORARY_WORKER_FORM_INCLUDE["company"] = "company";
|
|
7
|
+
TEMPORARY_WORKER_FORM_INCLUDE["created_by_user"] = "created_by_user";
|
|
8
|
+
TEMPORARY_WORKER_FORM_INCLUDE["last_updated_by_user"] = "last_updated_by_user";
|
|
9
|
+
})(TEMPORARY_WORKER_FORM_INCLUDE || (exports.TEMPORARY_WORKER_FORM_INCLUDE = TEMPORARY_WORKER_FORM_INCLUDE = {}));
|
|
10
|
+
var GENDER;
|
|
11
|
+
(function (GENDER) {
|
|
12
|
+
GENDER["male"] = "male";
|
|
13
|
+
GENDER["female"] = "female";
|
|
14
|
+
GENDER["other"] = "'other";
|
|
15
|
+
})(GENDER || (exports.GENDER = GENDER = {}));
|
|
@@ -45,6 +45,7 @@ import { INestedCheckpoint } from "./company/masters/checkpoints.typings";
|
|
|
45
45
|
import { INestedVES } from "./company/masters/ves.typings";
|
|
46
46
|
import { INestedVESCheckpointTracking } from "./company/_junctions/vesCheckpointTracking.typings";
|
|
47
47
|
import { INestedQueueJob } from "./system/queueJob.typings";
|
|
48
|
+
import { INestedTemporaryWorkerForm } from "./temporaryWorkerForm.typings";
|
|
48
49
|
export interface IUser {
|
|
49
50
|
id: string;
|
|
50
51
|
is_enabled?: boolean | null;
|
|
@@ -187,8 +188,10 @@ export interface IUser {
|
|
|
187
188
|
time_records_at_checkpoint: INestedVESCheckpointTracking[] | null;
|
|
188
189
|
created_queue_jobs: INestedQueueJob[] | null;
|
|
189
190
|
last_updated_payment_terms: INestedUser | null;
|
|
191
|
+
created_temporary_worker_form: INestedTemporaryWorkerForm[] | null;
|
|
192
|
+
last_updated_temporary_worker_form: INestedTemporaryWorkerForm[] | null;
|
|
190
193
|
}
|
|
191
|
-
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" | "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"> {
|
|
194
|
+
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" | "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"> {
|
|
192
195
|
}
|
|
193
196
|
export declare enum UserInclude {
|
|
194
197
|
subordinates = "subordinates",
|
|
@@ -307,7 +310,9 @@ export declare enum UserInclude {
|
|
|
307
310
|
take_on_approval_for_ves = "take_on_approval_for_ves",
|
|
308
311
|
time_records_at_checkpoint = "time_records_at_checkpoint",
|
|
309
312
|
created_queue_jobs = "created_queue_jobs",
|
|
310
|
-
last_updated_payment_terms = "last_updated_payment_terms"
|
|
313
|
+
last_updated_payment_terms = "last_updated_payment_terms",
|
|
314
|
+
created_temporary_worker_form = "created_temporary_worker_form",
|
|
315
|
+
last_updated_temporary_worker_form = "last_updated_temporary_worker_form"
|
|
311
316
|
}
|
|
312
317
|
export interface IUserFilters {
|
|
313
318
|
name?: string | null;
|
|
@@ -122,4 +122,6 @@ var UserInclude;
|
|
|
122
122
|
UserInclude["time_records_at_checkpoint"] = "time_records_at_checkpoint";
|
|
123
123
|
UserInclude["created_queue_jobs"] = "created_queue_jobs";
|
|
124
124
|
UserInclude["last_updated_payment_terms"] = "last_updated_payment_terms";
|
|
125
|
+
UserInclude["created_temporary_worker_form"] = "created_temporary_worker_form";
|
|
126
|
+
UserInclude["last_updated_temporary_worker_form"] = "last_updated_temporary_worker_form";
|
|
125
127
|
})(UserInclude || (exports.UserInclude = UserInclude = {}));
|
|
@@ -83,6 +83,8 @@ describe("Get Contact Person", () => {
|
|
|
83
83
|
ves_cancelled_by_user: null,
|
|
84
84
|
created_queue_jobs: null,
|
|
85
85
|
last_updated_payment_terms: null,
|
|
86
|
+
created_temporary_worker_form: null,
|
|
87
|
+
last_updated_temporary_worker_form: null,
|
|
86
88
|
};
|
|
87
89
|
const contact_person = {
|
|
88
90
|
id: "",
|
|
@@ -193,6 +195,8 @@ describe("Get Contact Person", () => {
|
|
|
193
195
|
ves_cancelled_by_user: null,
|
|
194
196
|
created_queue_jobs: null,
|
|
195
197
|
last_updated_payment_terms: null,
|
|
198
|
+
created_temporary_worker_form: null,
|
|
199
|
+
last_updated_temporary_worker_form: null,
|
|
196
200
|
};
|
|
197
201
|
const contact_person = {
|
|
198
202
|
id: "CP-001",
|