@secondcloset/types 2.9.8-wholesale.2 → 2.9.9-expiry.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/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ nodejs 16.10.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secondcloset/types",
3
- "version": "2.9.8-wholesale.2",
3
+ "version": "2.9.9-expiry.0",
4
4
  "description": "secondcloset type declaration and definitions",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
@@ -67,5 +67,5 @@ export interface ASN {
67
67
  items_attributes: ASNItem[];
68
68
  timeline?: TimelineEvent[];
69
69
  organization_id?: string;
70
- inventory_channel: Channel["name"];
70
+ inventory_channel?: Channel["name"];
71
71
  }
@@ -9,6 +9,7 @@ export interface ASNItem {
9
9
  received_quantity?: number;
10
10
  damaged_quantity?: number;
11
11
  lot_number?: string;
12
+ expiry_date?: string;
12
13
  created_at: string;
13
14
  updated_at: string;
14
15
  deleted_at: string;
@@ -84,6 +84,6 @@ export type Order<V extends Version = "V1"> = V extends "V1"
84
84
  on_hold_at: string;
85
85
  requested_service_code?: ScServiceCode;
86
86
  has_errors: boolean;
87
- sales_channel: Channel["name"];
87
+ sales_channel?: Channel["name"];
88
88
  }
89
89
  : Omit<Order<"V1">, "items" | "shipments">;
@@ -69,6 +69,9 @@ export interface PackagingLevel {
69
69
  product: BaseProduct & {
70
70
  upc: string;
71
71
  tracks_lot_numbers: boolean;
72
+ tracks_expiry_date: boolean;
73
+ expiry_date: string;
74
+ // shoul we move it here? This one doesn't seem to required
72
75
  };
73
76
  level: "single_item" | "inner_pack" | "master_pack" | "pallet";
74
77
  base_product_quantity: number;