kcommons 5.22.5 → 5.22.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/constants/csvUpload.constants.d.ts +14 -0
- package/build/constants/csvUpload.constants.js +2 -0
- package/build/constants/socket.constants.d.ts +5 -0
- package/build/constants/socket.constants.js +9 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +2 -0
- package/build/typings/rfq.typings.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ICompanyVendor } from "../typings/companyVendors.typings";
|
|
2
|
+
import { IItem } from "../typings/item.typings";
|
|
3
|
+
import { SOCKET_EVENT } from "./socket.constants";
|
|
4
|
+
export interface IITEM_CSV_UPLOAD_PROGRESS_PAYLOAD {
|
|
5
|
+
event: SOCKET_EVENT.COMPANY_ITEM_UPLOAD_PROGRESS;
|
|
6
|
+
progress: number;
|
|
7
|
+
entity?: IItem;
|
|
8
|
+
}
|
|
9
|
+
export interface IVENDOR_CSV_UPLOAD_PROGRESS_PAYLOAD {
|
|
10
|
+
event: SOCKET_EVENT.COMPANY_VENDOR_UPLOAD_PROGRESS;
|
|
11
|
+
progress: number;
|
|
12
|
+
entity?: ICompanyVendor;
|
|
13
|
+
}
|
|
14
|
+
export type TCSVUploadProgressPayload = IVENDOR_CSV_UPLOAD_PROGRESS_PAYLOAD | IITEM_CSV_UPLOAD_PROGRESS_PAYLOAD;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SOCKET_EVENT = void 0;
|
|
4
|
+
var SOCKET_EVENT;
|
|
5
|
+
(function (SOCKET_EVENT) {
|
|
6
|
+
SOCKET_EVENT["NOTIFICATION"] = "notification";
|
|
7
|
+
SOCKET_EVENT["COMPANY_ITEM_UPLOAD_PROGRESS"] = "company_item_upload_progress";
|
|
8
|
+
SOCKET_EVENT["COMPANY_VENDOR_UPLOAD_PROGRESS"] = "company_vendor_upload_progress";
|
|
9
|
+
})(SOCKET_EVENT || (exports.SOCKET_EVENT = SOCKET_EVENT = {}));
|
package/build/index.d.ts
CHANGED
|
@@ -41,6 +41,8 @@ export * from "./constants/form.constants";
|
|
|
41
41
|
export * from "./constants/upload.constants";
|
|
42
42
|
export * from "./constants/companyRoutes.constants";
|
|
43
43
|
export * from "./constants/vendorRoutes.constants";
|
|
44
|
+
export * from "./constants/socket.constants";
|
|
45
|
+
export * from "./constants/csvUpload.constants";
|
|
44
46
|
export * from "./classes/asnWrapper.class";
|
|
45
47
|
export * from "./utils/permission.utils";
|
|
46
48
|
export * from "./templates/notifications/rfq.notifications";
|
package/build/index.js
CHANGED
|
@@ -59,6 +59,8 @@ __exportStar(require("./constants/form.constants"), exports);
|
|
|
59
59
|
__exportStar(require("./constants/upload.constants"), exports);
|
|
60
60
|
__exportStar(require("./constants/companyRoutes.constants"), exports);
|
|
61
61
|
__exportStar(require("./constants/vendorRoutes.constants"), exports);
|
|
62
|
+
__exportStar(require("./constants/socket.constants"), exports);
|
|
63
|
+
__exportStar(require("./constants/csvUpload.constants"), exports);
|
|
62
64
|
// Classes
|
|
63
65
|
__exportStar(require("./classes/asnWrapper.class"), exports);
|
|
64
66
|
// Utils
|
|
@@ -76,7 +76,7 @@ export interface IRFQ {
|
|
|
76
76
|
status: string;
|
|
77
77
|
sent_for_approval_at?: string | null;
|
|
78
78
|
sent_to_vendors_at?: string | null;
|
|
79
|
-
|
|
79
|
+
remarks?: string | null;
|
|
80
80
|
sent_for_approval_by_id?: string | null;
|
|
81
81
|
sent_to_vendors_by_id?: string | null;
|
|
82
82
|
delivery_date?: string | null;
|