b2m-utils 0.0.10 → 0.0.11

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.
@@ -0,0 +1,6 @@
1
+ import Dates from "../Dates";
2
+ export type ContainerType = {
3
+ id: number;
4
+ name: string;
5
+ } & Dates;
6
+ export default ContainerType;
@@ -0,0 +1,11 @@
1
+ import Dates from "../Dates";
2
+ export type Domain = {
3
+ id: number;
4
+ domainTypeId: number;
5
+ name: string;
6
+ commonName?: string;
7
+ cnpj?: string;
8
+ address?: string;
9
+ logo?: string;
10
+ } & Dates;
11
+ export default Domain;
@@ -0,0 +1,12 @@
1
+ import Dates from "../Dates";
2
+ import Domain from "../Domain";
3
+ import TrackProcess from "../TrackProcess";
4
+ export type DomainDivision = {
5
+ id: number;
6
+ domainId: number;
7
+ code: string;
8
+ name: string;
9
+ domain: Domain;
10
+ TrackProcess: TrackProcess[];
11
+ } & Dates;
12
+ export default DomainDivision;
@@ -0,0 +1,16 @@
1
+ import Dates from "../Dates";
2
+ import FreightPlaceCountry from "../FreightPlaceCountry";
3
+ import FreightPlaceRegion from "../FreightPlaceRegion";
4
+ export type FreightPlace = {
5
+ id: number;
6
+ freightPlaceTypeId: number;
7
+ freightPlaceCountryId: number;
8
+ freightPlaceRegionId: number;
9
+ iata: string;
10
+ icao: string;
11
+ name: string;
12
+ location: string;
13
+ freightPlaceCountry: FreightPlaceCountry;
14
+ freightPlaceRegion: FreightPlaceRegion;
15
+ } & Dates;
16
+ export default FreightPlace;
@@ -0,0 +1,6 @@
1
+ import Dates from "../Dates";
2
+ export type FreightPlaceCountry = {
3
+ id: number;
4
+ name: string;
5
+ } & Dates;
6
+ export default FreightPlaceCountry;
@@ -0,0 +1,6 @@
1
+ import { Dates } from "../Dates";
2
+ export type FreightPlaceRegion = {
3
+ id: number;
4
+ name: string;
5
+ } & Dates;
6
+ export default FreightPlaceRegion;
@@ -0,0 +1,6 @@
1
+ import { Dates } from "../Dates";
2
+ export type Modal = {
3
+ id: number;
4
+ name: string;
5
+ } & Dates;
6
+ export default Modal;
@@ -0,0 +1,27 @@
1
+ import Dates from "../Dates";
2
+ export type ProcessFreightForwarder = {
3
+ processId: number;
4
+ forwarderId: number;
5
+ priorityId: number;
6
+ incotermId: number;
7
+ shipownerId: number;
8
+ cntrTypeId: number;
9
+ cntrQtd: number;
10
+ shipmentTypeId: number;
11
+ currencyId: number;
12
+ freightValuePP: number;
13
+ freightValueCC: number;
14
+ freightTax: number;
15
+ house: string;
16
+ houseAt: string;
17
+ master: string;
18
+ rawWeight: number;
19
+ cubedWeight: number;
20
+ volume: number;
21
+ etdAt: string;
22
+ etaAt: string;
23
+ departureAt: string;
24
+ mooringAt: string;
25
+ comments: string;
26
+ } & Dates;
27
+ export default ProcessFreightForwarder;
@@ -0,0 +1,10 @@
1
+ import Dates from "../Dates";
2
+ export type ProcessShippingCompany = {
3
+ id: number;
4
+ processId: number;
5
+ shippingCompanyId: number;
6
+ collectAt: string;
7
+ deliveryAt: string;
8
+ isPrimary: number;
9
+ } & Dates;
10
+ export default ProcessShippingCompany;
@@ -0,0 +1,6 @@
1
+ import { Dates } from "../Dates";
2
+ export type SpotStatus = {
3
+ id: number;
4
+ name: string;
5
+ } & Dates;
6
+ export default SpotStatus;
@@ -1,4 +1,17 @@
1
1
  import Dates from "../Dates";
2
+ import Domain from "../Domain";
3
+ import DomainDivision from "../DomainDivision";
4
+ import FreightPlace from "../FreightPlace";
5
+ import { Modal } from "../Modal";
6
+ import ProcessFreightForwarder from "../ProcessFreightForwarder";
7
+ import { ProcessShippingCompany } from "../ProcessShippingCompany";
8
+ import { SpotStatus } from "../SpotStatus";
9
+ import TrackProcessContainer from "../TrackProcessContainer";
10
+ import TrackProcessDispatcher from "../TrackProcessDispatcher";
11
+ import TrackProcessInvoice from "../TrackProcessInvoice";
12
+ import TrackProcessObservation from "../TrackProcessObservation";
13
+ import TrackProcessTerminal from "../TrackProcessTerminal";
14
+ import User from "../User";
2
15
  export type TrackProcess = {
3
16
  id: number;
4
17
  domainId: number;
@@ -22,5 +35,19 @@ export type TrackProcess = {
22
35
  terminalComments: string;
23
36
  transportComments: string;
24
37
  deletedAt: string;
38
+ ProcessFreightForwarder: ProcessFreightForwarder[];
39
+ ProcessShippingCompany: ProcessShippingCompany[];
40
+ TrackProcessContainer: TrackProcessContainer[];
41
+ TrackProcessDispatcher: TrackProcessDispatcher[];
42
+ TrackProcessInvoice: TrackProcessInvoice[];
43
+ TrackProcessObservation: TrackProcessObservation[];
44
+ TrackProcessTerminal: TrackProcessTerminal[];
45
+ domainDivision?: DomainDivision;
46
+ domain: Domain;
47
+ freightPlaceOrigin?: FreightPlace;
48
+ freightPlaceDestination?: FreightPlace;
49
+ modal?: Modal;
50
+ status: SpotStatus;
51
+ user: User;
25
52
  } & Dates;
26
53
  export default TrackProcess;
@@ -0,0 +1,12 @@
1
+ import ContainerType from "../ContainerType";
2
+ import Dates from "../Dates";
3
+ import TrackProcess from "../TrackProcess";
4
+ export type TrackProcessContainer = {
5
+ id: number;
6
+ processId: number;
7
+ containerTypeId: number;
8
+ name?: string;
9
+ containerType: ContainerType;
10
+ trackProcess: TrackProcess;
11
+ } & Dates;
12
+ export default TrackProcessContainer;
@@ -0,0 +1,10 @@
1
+ import Dates from "../Dates";
2
+ export type User = {
3
+ id: number;
4
+ email: string;
5
+ name?: string;
6
+ password?: string;
7
+ phone?: string;
8
+ photo?: string;
9
+ } & Dates;
10
+ export default User;
@@ -2,10 +2,32 @@ export * from './AnyObject';
2
2
  export { default as AnyObject } from './AnyObject';
3
3
  export * from './Auth';
4
4
  export { default as Auth } from './Auth';
5
+ export * from './ContainerType';
6
+ export { default as ContainerType } from './ContainerType';
5
7
  export * from './Dates';
6
8
  export { default as Dates } from './Dates';
9
+ export * from './Domain';
10
+ export { default as Domain } from './Domain';
11
+ export * from './DomainDivision';
12
+ export { default as DomainDivision } from './DomainDivision';
13
+ export * from './FreightPlace';
14
+ export { default as FreightPlace } from './FreightPlace';
15
+ export * from './FreightPlaceCountry';
16
+ export { default as FreightPlaceCountry } from './FreightPlaceCountry';
17
+ export * from './FreightPlaceRegion';
18
+ export { default as FreightPlaceRegion } from './FreightPlaceRegion';
19
+ export * from './Modal';
20
+ export { default as Modal } from './Modal';
21
+ export * from './ProcessFreightForwarder';
22
+ export { default as ProcessFreightForwarder } from './ProcessFreightForwarder';
23
+ export * from './ProcessShippingCompany';
24
+ export { default as ProcessShippingCompany } from './ProcessShippingCompany';
25
+ export * from './SpotStatus';
26
+ export { default as SpotStatus } from './SpotStatus';
7
27
  export * from './TrackProcess';
8
28
  export { default as TrackProcess } from './TrackProcess';
29
+ export * from './TrackProcessContainer';
30
+ export { default as TrackProcessContainer } from './TrackProcessContainer';
9
31
  export * from './TrackProcessDispatcher';
10
32
  export { default as TrackProcessDispatcher } from './TrackProcessDispatcher';
11
33
  export * from './TrackProcessInvoice';
@@ -14,3 +36,5 @@ export * from './TrackProcessObservation';
14
36
  export { default as TrackProcessObservation } from './TrackProcessObservation';
15
37
  export * from './TrackProcessTerminal';
16
38
  export { default as TrackProcessTerminal } from './TrackProcessTerminal';
39
+ export * from './User';
40
+ export { default as User } from './User';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "b2m-utils",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "B2M Utils",
5
5
  "main": "build/index.js",
6
6
  "module": "build/index.esm.js",