@sendhome/common 1.0.238 → 1.0.239

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.
@@ -70,8 +70,30 @@ interface IAutomotiveFields {
70
70
  specifications?: string;
71
71
  usage_notes?: string;
72
72
  }
73
+ interface ITransportFields {
74
+ departure_city: string;
75
+ destination_city: string;
76
+ departure_country: string;
77
+ destination_country: string;
78
+ schedule: {
79
+ [day: string]: {
80
+ departure_times: string[];
81
+ };
82
+ };
83
+ notes?: string;
84
+ bus_operator?: string;
85
+ bus_type?: string;
86
+ travel_duration?: string;
87
+ seating_capacity?: number;
88
+ luggage_allowance?: string;
89
+ transit_points?: string[];
90
+ amenities?: string[];
91
+ ticket_instructions?: string;
92
+ ticket_validity?: string;
93
+ }
73
94
  interface IVariantDefinition {
74
95
  name: string;
96
+ images: string[];
75
97
  values: string[];
76
98
  }
77
99
  export interface ProductCreatedEvent {
@@ -87,8 +109,9 @@ export interface ProductCreatedEvent {
87
109
  quantity_type: "decimal" | "integer";
88
110
  brand: string;
89
111
  unit: UnitType;
90
- unit_value?: number;
91
- properties: IGroceriesFields | IHardwareFields | IClothingFields | IFuelFields | IFuelFields | ILiquorFields | IAutomotiveFields | {};
112
+ unit_value: number;
113
+ variant_mode: boolean;
114
+ properties: IGroceriesFields | IHardwareFields | IClothingFields | IFuelFields | ILiquorFields | IAutomotiveFields | ITransportFields | {};
92
115
  variants: IVariantDefinition[];
93
116
  status: ProductStatus;
94
117
  countries: string[];
@@ -70,8 +70,30 @@ interface IAutomotiveFields {
70
70
  specifications?: string;
71
71
  usage_notes?: string;
72
72
  }
73
+ interface ITransportFields {
74
+ departure_city: string;
75
+ destination_city: string;
76
+ departure_country: string;
77
+ destination_country: string;
78
+ schedule: {
79
+ [day: string]: {
80
+ departure_times: string[];
81
+ };
82
+ };
83
+ notes?: string;
84
+ bus_operator?: string;
85
+ bus_type?: string;
86
+ travel_duration?: string;
87
+ seating_capacity?: number;
88
+ luggage_allowance?: string;
89
+ transit_points?: string[];
90
+ amenities?: string[];
91
+ ticket_instructions?: string;
92
+ ticket_validity?: string;
93
+ }
73
94
  interface IVariantDefinition {
74
95
  name: string;
96
+ images: string[];
75
97
  values: string[];
76
98
  }
77
99
  export interface ProductUpdatedEvent {
@@ -87,8 +109,9 @@ export interface ProductUpdatedEvent {
87
109
  quantity_type: "decimal" | "integer";
88
110
  brand: string;
89
111
  unit: UnitType;
90
- unit_value?: number;
91
- properties: IGroceriesFields | IHardwareFields | IClothingFields | IFuelFields | IFuelFields | ILiquorFields | IAutomotiveFields | {};
112
+ unit_value: number;
113
+ variant_mode: boolean;
114
+ properties: IGroceriesFields | IHardwareFields | IClothingFields | IFuelFields | ILiquorFields | IAutomotiveFields | ITransportFields | {};
92
115
  variants: IVariantDefinition[];
93
116
  status: ProductStatus;
94
117
  countries: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendhome/common",
3
- "version": "1.0.238",
3
+ "version": "1.0.239",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",