kcommons 9.15.2 → 9.17.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.
@@ -33,19 +33,16 @@ var RFQ_TO_PO_DOCUMENTS;
33
33
  })(RFQ_TO_PO_DOCUMENTS || (exports.RFQ_TO_PO_DOCUMENTS = RFQ_TO_PO_DOCUMENTS = {}));
34
34
  exports.PERMISSION_CONFIG = {
35
35
  [DOCUMENTS.INDENT]: [
36
- PERMISSION_ACTIONS.STV,
37
36
  PERMISSION_ACTIONS.APPROVALS,
38
37
  PERMISSION_ACTIONS.READ_ONLY,
39
38
  PERMISSION_ACTIONS.CRUDSAC,
40
39
  ],
41
40
  [DOCUMENTS.MI]: [
42
- PERMISSION_ACTIONS.STV,
43
41
  PERMISSION_ACTIONS.APPROVALS,
44
42
  PERMISSION_ACTIONS.READ_ONLY,
45
43
  PERMISSION_ACTIONS.CRUDSAC,
46
44
  ],
47
45
  [DOCUMENTS.MRN]: [
48
- PERMISSION_ACTIONS.STV,
49
46
  PERMISSION_ACTIONS.APPROVALS,
50
47
  PERMISSION_ACTIONS.READ_ONLY,
51
48
  PERMISSION_ACTIONS.CRUDSAC,
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.padNumber = padNumber;
4
- function padNumber(num, reqLength = 6) {
5
- if (typeof num === 'string' && isNaN(Number(num)))
4
+ function padNumber(num, reqLength = 2) {
5
+ if (typeof num === "string" && isNaN(Number(num)))
6
6
  return num;
7
7
  const targetNum = Number(num);
8
- return targetNum.toString().padStart(reqLength, '0');
8
+ return targetNum.toString().padStart(reqLength, "0");
9
9
  }
@@ -37,7 +37,8 @@ export declare enum CompanyVendorsInclude {
37
37
  }
38
38
  export declare enum COMPANY_FORM_STATUS_FOR_VENDOR {
39
39
  INVITED = "INVITED",
40
- ANSWERED = "ANSWERED"
40
+ ANSWERED = "ANSWERED",
41
+ YET_TO_INVITE = "YET TO INVITE"
41
42
  }
42
43
  export interface ICompanyVendor {
43
44
  id: string;
@@ -33,4 +33,5 @@ var COMPANY_FORM_STATUS_FOR_VENDOR;
33
33
  (function (COMPANY_FORM_STATUS_FOR_VENDOR) {
34
34
  COMPANY_FORM_STATUS_FOR_VENDOR["INVITED"] = "INVITED";
35
35
  COMPANY_FORM_STATUS_FOR_VENDOR["ANSWERED"] = "ANSWERED";
36
+ COMPANY_FORM_STATUS_FOR_VENDOR["YET_TO_INVITE"] = "YET TO INVITE";
36
37
  })(COMPANY_FORM_STATUS_FOR_VENDOR || (exports.COMPANY_FORM_STATUS_FOR_VENDOR = COMPANY_FORM_STATUS_FOR_VENDOR = {}));
@@ -198,16 +198,17 @@ export declare enum UserInclude {
198
198
  initiated_inventory_logs = "initiated_inventory_logs"
199
199
  }
200
200
  export interface IUserFilters {
201
- name?: string;
202
- company_id?: string;
203
- office_id?: string;
204
- store_location_id?: string;
205
- purchase_location_id?: string;
206
- department_id?: string;
207
- is_admin?: boolean;
208
- role_ids?: string[];
209
- type?: EntityTypes;
210
- include?: UserInclude[];
201
+ name?: string | null;
202
+ company_id?: string | null;
203
+ office_id?: string | null;
204
+ store_location_id?: string | null;
205
+ purchase_location_id?: string | null;
206
+ department_id?: string | null;
207
+ gate_id?: string | null;
208
+ is_admin?: boolean | null;
209
+ role_id?: string | null;
210
+ entity_type?: EntityTypes | null;
211
+ include?: UserInclude[] | null;
211
212
  }
212
213
  export interface IUserFiltersWithPagination extends IPaginationFilters, IUserFilters {
213
214
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "9.15.2",
3
+ "version": "9.17.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",