kcommons 14.9.5 → 14.10.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.
@@ -1,6 +1,7 @@
1
1
  import { IPaginationFilters } from "../../common/paginationFilters.typings";
2
2
  import { INestedCompany } from "../../company.typings";
3
3
  import { INestedDepartment } from "../../department.typings";
4
+ import { INestedGate } from "../../gate.typings";
4
5
  import { INestedRole } from "../../roles.typings";
5
6
  import { INestedStoreLocation } from "../../storeLocation.typings";
6
7
  import { INestedUser } from "../../user.typings";
@@ -8,7 +9,7 @@ import { INestedVESCheckpointTracking } from "../_junctions/vesCheckpointTrackin
8
9
  import { INestedVES } from "./ves.typings";
9
10
  export interface ICheckpointFilters extends Partial<Pick<ICheckpoints, "is_enabled" | "checkpoint_type" | "allow_marking_ves_as_exited" | "allow_ves_creation">> {
10
11
  name?: string;
11
- linked_store_location_id?: string;
12
+ linked_store_location_ids?: string[];
12
13
  created_by_logged_in_user?: boolean;
13
14
  include?: CHECKPOINT_INCLUDE[];
14
15
  }
@@ -30,6 +31,7 @@ export interface ICheckpoints {
30
31
  deleted_at: string | null;
31
32
  created_at: string;
32
33
  updated_at: string;
34
+ associated_gate: INestedGate | null;
33
35
  company: INestedCompany | null;
34
36
  created_by_user: INestedUser | null;
35
37
  last_updated_by_user: INestedUser | null;
@@ -40,7 +42,7 @@ export interface ICheckpoints {
40
42
  linked_store_locations: INestedStoreLocation[] | null;
41
43
  ves_passed_through_checkpoint: INestedVESCheckpointTracking[] | null;
42
44
  }
43
- export interface INestedCheckpoint extends Omit<ICheckpoints, "company" | "created_by_user" | "last_updated_by_user" | "roles" | "departments" | "ves_created_at_checkpoint" | "ves_directed_at_checkpoint" | "linked_store_locations" | "ves_passed_through_checkpoint"> {
45
+ export interface INestedCheckpoint extends Omit<ICheckpoints, "company" | "created_by_user" | "last_updated_by_user" | "roles" | "departments" | "ves_created_at_checkpoint" | "ves_directed_at_checkpoint" | "linked_store_locations" | "ves_passed_through_checkpoint" | "associated_gate"> {
44
46
  }
45
47
  /** --- ENUMS--- */
46
48
  export declare enum CHECKPOINT_INCLUDE {
@@ -52,7 +54,8 @@ export declare enum CHECKPOINT_INCLUDE {
52
54
  ves_created_at_checkpoint = "ves_created_at_checkpoint",
53
55
  ves_directed_at_checkpoint = "ves_directed_at_checkpoint",
54
56
  linked_store_locations = "linked_store_locations",
55
- ves_passed_through_checkpoint = "ves_passed_through_checkpoint"
57
+ ves_passed_through_checkpoint = "ves_passed_through_checkpoint",
58
+ associated_gate = "associated_gate"
56
59
  }
57
60
  export declare enum CHECKPOINT_TYPE {
58
61
  /** @deprecated */
@@ -13,6 +13,7 @@ var CHECKPOINT_INCLUDE;
13
13
  CHECKPOINT_INCLUDE["ves_directed_at_checkpoint"] = "ves_directed_at_checkpoint";
14
14
  CHECKPOINT_INCLUDE["linked_store_locations"] = "linked_store_locations";
15
15
  CHECKPOINT_INCLUDE["ves_passed_through_checkpoint"] = "ves_passed_through_checkpoint";
16
+ CHECKPOINT_INCLUDE["associated_gate"] = "associated_gate";
16
17
  })(CHECKPOINT_INCLUDE || (exports.CHECKPOINT_INCLUDE = CHECKPOINT_INCLUDE = {}));
17
18
  var CHECKPOINT_TYPE;
18
19
  (function (CHECKPOINT_TYPE) {
@@ -5,13 +5,15 @@ import { INestedRole } from "./roles.typings";
5
5
  import { INestedStoreLocation } from "./storeLocation.typings";
6
6
  import { INestedUser } from "./user.typings";
7
7
  import { IAddress } from "./common/address.typings";
8
+ import { INestedCheckpoint } from "./company/masters/checkpoints.typings";
8
9
  export declare enum GATE_INCLUDE {
9
10
  approval_configs = "approval_configs",
10
11
  departments = "departments",
11
12
  roles = "roles",
12
13
  target_store_locations = "target_store_locations",
13
14
  incharge = "incharge",
14
- contact_person = "contact_person"
15
+ contact_person = "contact_person",
16
+ corresponding_checkpoint = "corresponding_checkpoint"
15
17
  }
16
18
  export interface IGate extends IAddress {
17
19
  id: string;
@@ -21,6 +23,7 @@ export interface IGate extends IAddress {
21
23
  created_by_id: string;
22
24
  incharge_id: string;
23
25
  contact_person_id: string;
26
+ corresponding_checkpoint_id: string | null;
24
27
  is_enabled: boolean;
25
28
  is_deleted?: boolean | null;
26
29
  deleted_at?: string | null;
@@ -32,8 +35,9 @@ export interface IGate extends IAddress {
32
35
  target_store_locations?: INestedStoreLocation[] | null;
33
36
  incharge?: INestedUser | null;
34
37
  contact_person?: INestedUser | null;
38
+ corresponding_checkpoint?: INestedCheckpoint | null;
35
39
  }
36
- export interface INestedGate extends Omit<IGate, " approval_config" | "departments" | "roles" | "target_store_locations" | "incharge" | "contact_person"> {
40
+ export interface INestedGate extends Omit<IGate, " approval_config" | "departments" | "roles" | "target_store_locations" | "incharge" | "contact_person" | "corresponding_checkpoint"> {
37
41
  }
38
42
  export interface IGateFilters {
39
43
  company_id?: string | null;
@@ -9,4 +9,5 @@ var GATE_INCLUDE;
9
9
  GATE_INCLUDE["target_store_locations"] = "target_store_locations";
10
10
  GATE_INCLUDE["incharge"] = "incharge";
11
11
  GATE_INCLUDE["contact_person"] = "contact_person";
12
+ GATE_INCLUDE["corresponding_checkpoint"] = "corresponding_checkpoint";
12
13
  })(GATE_INCLUDE || (exports.GATE_INCLUDE = GATE_INCLUDE = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kcommons",
3
- "version": "14.9.5",
3
+ "version": "14.10.1",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",