@secondcloset/types 2.7.6 → 2.7.8-beta-st.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secondcloset/types",
3
- "version": "2.7.6",
3
+ "version": "2.7.8-beta-st.0",
4
4
  "description": "secondcloset type declaration and definitions",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
@@ -0,0 +1,22 @@
1
+ export type HistoryEvent = "all" | "asn" | "order" | "manual" | "system";
2
+ export type ActivityEvent = "all" | "manual" | "system";
3
+ export interface ActivityHistory {
4
+ id: string;
5
+ user?: {
6
+ id: string;
7
+ name?: string;
8
+ is_admin: boolean;
9
+ };
10
+ description: string[];
11
+ organization_name?: string;
12
+ created_at: string;
13
+ event: HistoryEvent | ActivityEvent;
14
+ metadata?: {
15
+ facility?: { id: string; name: string };
16
+ asn?: { id: string; number: string };
17
+ order?: { id: string; number: string };
18
+ file?: { url: string; name: string };
19
+ shipment?: { id: string; number: string };
20
+ image_url?:string
21
+ };
22
+ }
@@ -9,6 +9,8 @@ export interface BaseAddress {
9
9
  id: string;
10
10
  apartment_number: string | null;
11
11
  address: string;
12
+ address_line_1?: string;
13
+ address_line_2?: string;
12
14
  city: string;
13
15
  province: string;
14
16
  country: string;
@@ -7,3 +7,4 @@ export * from "./organization";
7
7
  export * from "./credential";
8
8
  export * from "./file";
9
9
  export * from "./note";
10
+ export * from "./activityHistory";
@@ -1,3 +1,3 @@
1
1
  export * from "./product";
2
2
  export * from "./stock";
3
- export * from "./activityHistory";
3
+ export * from "../../_common/activityHistory";
@@ -52,6 +52,8 @@ export interface BaseProduct {
52
52
  required_parts?: { [productID: string]: number };
53
53
  packaging_levels?: PackagingLevel[];
54
54
  return_days?: number;
55
+ insurance_required:boolean;
56
+ insurance_value:number | null;
55
57
  }
56
58
 
57
59
  export interface Product extends BaseProduct {
@@ -5,7 +5,7 @@ import {
5
5
  AppointmentSubtype,
6
6
  } from "../../fulfillment/appointment";
7
7
  import { CustomerAddress, Customer, ShipmentTag } from "../order";
8
- import { BaseUser, BaseImage, BaseNote } from "../../_common";
8
+ import { BaseUser, BaseImage, BaseNote, BaseAddress } from "../../_common";
9
9
  import { Package } from "./package";
10
10
  import { Carrier } from "./carrier";
11
11
  import { ScServiceCode } from "../shipment";
@@ -108,6 +108,8 @@ interface CarrierShippingAddress {
108
108
  contact_name: string;
109
109
  phone_number: string;
110
110
  address: string;
111
+ address_line_1?: string;
112
+ address_line_2?: string;
111
113
  city: string;
112
114
  country: string;
113
115
  province: string;
@@ -36,3 +36,12 @@ export interface SpecialProject {
36
36
  updated_at: string;
37
37
  special_project_supplies?: SpecialProjectSupply[];
38
38
  }
39
+
40
+ export interface SpecialProjectLog {
41
+ id: string;
42
+ user_email: string;
43
+ before?: string;
44
+ after: string;
45
+ special_project_id: string;
46
+ created_at: string;
47
+ }
@@ -1,18 +0,0 @@
1
- export type HistoryEvent = "asn" | "order" | "manual" | "system";
2
- export interface ActivityHistory {
3
- id: string;
4
- user: {
5
- id: string;
6
- name?: string;
7
- is_admin: boolean;
8
- };
9
- description: string[];
10
- organization_name: string;
11
- created_at: string;
12
- event: HistoryEvent;
13
- metadata?: {
14
- facility?: { id: string; name: string };
15
- asn?: { id: string; number: string };
16
- order?: { id: string; number: string };
17
- };
18
- }