@nerdjs/sales-kit 2.0.26 → 2.0.27

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,2 +1,4 @@
1
- export * from "./quote";
1
+ export { default as Quote } from "./helper";
2
+ export { default as Quote_Entity } from "./quote";
2
3
  export * from "./helper";
4
+ export * from "./quote";
@@ -1,3 +1,5 @@
1
- export * from "./quote";
1
+ export { default as Quote } from "./helper";
2
+ export { default as Quote_Entity } from "./quote";
2
3
  export * from "./helper";
4
+ export * from "./quote";
3
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/quote/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/quote/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,SAAS,CAAC;AAClD,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
@@ -2,4 +2,41 @@ import QuoteResponse_Entity from "./quoteResponse";
2
2
  export default class QuoteResponse extends QuoteResponse_Entity {
3
3
  static fromList(quoteResponsesJSON: unknown): Array<QuoteResponse>;
4
4
  toJson(): string;
5
+ private getStop;
6
+ getPickupStop(): {
7
+ id: number;
8
+ name: string;
9
+ type: string;
10
+ date?: string | null | undefined;
11
+ city: string;
12
+ state: string;
13
+ zip: string;
14
+ address: {
15
+ locationId?: number | null | undefined;
16
+ line1?: string | null | undefined;
17
+ city: string;
18
+ state: string;
19
+ zip: string;
20
+ latitude: number;
21
+ longitude: number;
22
+ };
23
+ } | undefined;
24
+ getDeliveryStop(): {
25
+ id: number;
26
+ name: string;
27
+ type: string;
28
+ date?: string | null | undefined;
29
+ city: string;
30
+ state: string;
31
+ zip: string;
32
+ address: {
33
+ locationId?: number | null | undefined;
34
+ line1?: string | null | undefined;
35
+ city: string;
36
+ state: string;
37
+ zip: string;
38
+ latitude: number;
39
+ longitude: number;
40
+ };
41
+ } | undefined;
5
42
  }
@@ -12,5 +12,15 @@ export default class QuoteResponse extends QuoteResponse_Entity {
12
12
  toJson() {
13
13
  return JSON.stringify(this);
14
14
  }
15
+ getStop(stopType) {
16
+ const stop = this.stops.find((stop) => stop.type === stopType);
17
+ return stop;
18
+ }
19
+ getPickupStop() {
20
+ return this.getStop("shipper");
21
+ }
22
+ getDeliveryStop() {
23
+ return this.getStop("consignee");
24
+ }
15
25
  }
16
26
  //# sourceMappingURL=helper.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/entities/quoteResponse/helper.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,iBAAiB,CAAC;AACnD,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,oBAAoB;IAC7D,MAAM,CAAC,QAAQ,CAAC,kBAA2B;QACzC,MAAM,cAAc,GAAoB,EAAE,CAAC;QAC3C,IAAI,kBAAkB;YACpB,KAAK,CAAC,OAAO,CAAC,kBAAkB,CAAC;gBAC/B,kBAAkB,CAAC,OAAO,CAAC,CAAC,iBAAiB,EAAE,EAAE;oBAC/C,cAAc,CAAC,IAAI,CAAC,IAAI,aAAa,CAAC,iBAAiB,CAAC,CAAC,CAAC;gBAC5D,CAAC,CAAC,CAAC;QACP,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF"}
1
+ {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/entities/quoteResponse/helper.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,iBAAiB,CAAC;AACnD,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,oBAAoB;IAC7D,MAAM,CAAC,QAAQ,CAAC,kBAA2B;QACzC,MAAM,cAAc,GAAoB,EAAE,CAAC;QAC3C,IAAI,kBAAkB;YACpB,KAAK,CAAC,OAAO,CAAC,kBAAkB,CAAC;gBAC/B,kBAAkB,CAAC,OAAO,CAAC,CAAC,iBAAiB,EAAE,EAAE;oBAC/C,cAAc,CAAC,IAAI,CAAC,IAAI,aAAa,CAAC,iBAAiB,CAAC,CAAC,CAAC;gBAC5D,CAAC,CAAC,CAAC;QACP,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;IACO,OAAO,CAAC,QAAiC;QAC/C,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC;QAC/D,OAAO,IAAI,CAAC;IACd,CAAC;IAED,aAAa;QACX,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACjC,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IACnC,CAAC;CACF"}
@@ -17,31 +17,27 @@ export declare const tenderBodyStep2: (customerPortal: boolean) => yup.ObjectSch
17
17
  } & {
18
18
  [x: string]: yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>;
19
19
  } & {
20
- tenderStops: yup.ArraySchema<import("yup/lib/object").OptionalObjectSchema<{
20
+ tenderStops: yup.ArraySchema<yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
21
21
  type: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
22
22
  locationId: yup.NumberSchema<number | undefined, import("yup/lib/types").AnyObject, number | undefined>;
23
23
  referenceNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
24
- timeFrom: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
25
- date: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
26
- }, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<{
24
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
27
25
  type: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
28
26
  locationId: yup.NumberSchema<number | undefined, import("yup/lib/types").AnyObject, number | undefined>;
29
27
  referenceNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
30
- timeFrom: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
31
- date: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
32
- }>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<{
28
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
33
29
  type: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
34
30
  locationId: yup.NumberSchema<number | undefined, import("yup/lib/types").AnyObject, number | undefined>;
35
31
  referenceNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
36
- timeFrom: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
37
- date: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
38
- }>[] | undefined, import("yup/lib/object").AssertsShape<{
32
+ }>>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
39
33
  type: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
40
34
  locationId: yup.NumberSchema<number | undefined, import("yup/lib/types").AnyObject, number | undefined>;
41
35
  referenceNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
42
- timeFrom: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
43
- date: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
44
- }>[] | undefined>;
36
+ }>>[] | undefined, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
37
+ type: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
38
+ locationId: yup.NumberSchema<number | undefined, import("yup/lib/types").AnyObject, number | undefined>;
39
+ referenceNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
40
+ }>>[] | undefined>;
45
41
  }, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<{
46
42
  [x: string]: yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>;
47
43
  } & {
@@ -50,31 +46,27 @@ export declare const tenderBodyStep2: (customerPortal: boolean) => yup.ObjectSch
50
46
  } & {
51
47
  [x: string]: yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>;
52
48
  } & {
53
- tenderStops: yup.ArraySchema<import("yup/lib/object").OptionalObjectSchema<{
49
+ tenderStops: yup.ArraySchema<yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
50
+ type: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
51
+ locationId: yup.NumberSchema<number | undefined, import("yup/lib/types").AnyObject, number | undefined>;
52
+ referenceNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
53
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
54
54
  type: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
55
55
  locationId: yup.NumberSchema<number | undefined, import("yup/lib/types").AnyObject, number | undefined>;
56
56
  referenceNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
57
- timeFrom: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
58
- date: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
59
- }, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<{
57
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
60
58
  type: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
61
59
  locationId: yup.NumberSchema<number | undefined, import("yup/lib/types").AnyObject, number | undefined>;
62
60
  referenceNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
63
- timeFrom: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
64
- date: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
65
- }>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<{
61
+ }>>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
66
62
  type: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
67
63
  locationId: yup.NumberSchema<number | undefined, import("yup/lib/types").AnyObject, number | undefined>;
68
64
  referenceNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
69
- timeFrom: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
70
- date: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
71
- }>[] | undefined, import("yup/lib/object").AssertsShape<{
65
+ }>>[] | undefined, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
72
66
  type: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
73
67
  locationId: yup.NumberSchema<number | undefined, import("yup/lib/types").AnyObject, number | undefined>;
74
68
  referenceNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
75
- timeFrom: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
76
- date: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
77
- }>[] | undefined>;
69
+ }>>[] | undefined>;
78
70
  }>, import("yup/lib/object").AssertsShape<{
79
71
  [x: string]: yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>;
80
72
  } & {
@@ -83,31 +75,27 @@ export declare const tenderBodyStep2: (customerPortal: boolean) => yup.ObjectSch
83
75
  } & {
84
76
  [x: string]: yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>;
85
77
  } & {
86
- tenderStops: yup.ArraySchema<import("yup/lib/object").OptionalObjectSchema<{
78
+ tenderStops: yup.ArraySchema<yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
87
79
  type: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
88
80
  locationId: yup.NumberSchema<number | undefined, import("yup/lib/types").AnyObject, number | undefined>;
89
81
  referenceNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
90
- timeFrom: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
91
- date: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
92
- }, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<{
82
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
93
83
  type: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
94
84
  locationId: yup.NumberSchema<number | undefined, import("yup/lib/types").AnyObject, number | undefined>;
95
85
  referenceNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
96
- timeFrom: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
97
- date: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
98
- }>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<{
86
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
99
87
  type: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
100
88
  locationId: yup.NumberSchema<number | undefined, import("yup/lib/types").AnyObject, number | undefined>;
101
89
  referenceNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
102
- timeFrom: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
103
- date: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
104
- }>[] | undefined, import("yup/lib/object").AssertsShape<{
90
+ }>>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
105
91
  type: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
106
92
  locationId: yup.NumberSchema<number | undefined, import("yup/lib/types").AnyObject, number | undefined>;
107
93
  referenceNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
108
- timeFrom: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
109
- date: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
110
- }>[] | undefined>;
94
+ }>>[] | undefined, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
95
+ type: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
96
+ locationId: yup.NumberSchema<number | undefined, import("yup/lib/types").AnyObject, number | undefined>;
97
+ referenceNumber: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
98
+ }>>[] | undefined>;
111
99
  }>>;
112
100
  export declare const tenderBodyStep3: (customerPortal: boolean) => yup.ObjectSchema<{
113
101
  [x: string]: yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>;
@@ -117,27 +105,22 @@ export declare const tenderBodyStep3: (customerPortal: boolean) => yup.ObjectSch
117
105
  } & {
118
106
  [x: string]: yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>;
119
107
  } & {
120
- tenderStops: yup.ArraySchema<import("yup/lib/object").OptionalObjectSchema<{
108
+ tenderStops: yup.ArraySchema<yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
109
+ locationId: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
110
+ referenceNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
111
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
121
112
  locationId: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
122
113
  referenceNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
123
- timeFrom: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
124
- date: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
125
- }, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<{
114
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
126
115
  locationId: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
127
116
  referenceNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
128
- timeFrom: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
129
- date: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
130
- }>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<{
117
+ }>>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
131
118
  locationId: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
132
119
  referenceNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
133
- timeFrom: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
134
- date: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
135
- }>[] | undefined, import("yup/lib/object").AssertsShape<{
120
+ }>>[] | undefined, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
136
121
  locationId: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
137
122
  referenceNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
138
- timeFrom: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
139
- date: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
140
- }>[] | undefined>;
123
+ }>>[] | undefined>;
141
124
  }, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<{
142
125
  [x: string]: yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>;
143
126
  } & {
@@ -146,27 +129,22 @@ export declare const tenderBodyStep3: (customerPortal: boolean) => yup.ObjectSch
146
129
  } & {
147
130
  [x: string]: yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>;
148
131
  } & {
149
- tenderStops: yup.ArraySchema<import("yup/lib/object").OptionalObjectSchema<{
132
+ tenderStops: yup.ArraySchema<yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
150
133
  locationId: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
151
134
  referenceNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
152
- timeFrom: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
153
- date: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
154
- }, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<{
135
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
155
136
  locationId: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
156
137
  referenceNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
157
- timeFrom: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
158
- date: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
159
- }>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<{
138
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
160
139
  locationId: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
161
140
  referenceNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
162
- timeFrom: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
163
- date: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
164
- }>[] | undefined, import("yup/lib/object").AssertsShape<{
141
+ }>>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
165
142
  locationId: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
166
143
  referenceNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
167
- timeFrom: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
168
- date: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
169
- }>[] | undefined>;
144
+ }>>[] | undefined, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
145
+ locationId: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
146
+ referenceNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
147
+ }>>[] | undefined>;
170
148
  }>, import("yup/lib/object").AssertsShape<{
171
149
  [x: string]: yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>;
172
150
  } & {
@@ -175,26 +153,21 @@ export declare const tenderBodyStep3: (customerPortal: boolean) => yup.ObjectSch
175
153
  } & {
176
154
  [x: string]: yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>;
177
155
  } & {
178
- tenderStops: yup.ArraySchema<import("yup/lib/object").OptionalObjectSchema<{
156
+ tenderStops: yup.ArraySchema<yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
157
+ locationId: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
158
+ referenceNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
159
+ }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
179
160
  locationId: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
180
161
  referenceNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
181
- timeFrom: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
182
- date: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
183
- }, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<{
162
+ }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
184
163
  locationId: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
185
164
  referenceNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
186
- timeFrom: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
187
- date: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
188
- }>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<{
165
+ }>>>, import("yup/lib/types").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
189
166
  locationId: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
190
167
  referenceNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
191
- timeFrom: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
192
- date: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
193
- }>[] | undefined, import("yup/lib/object").AssertsShape<{
168
+ }>>[] | undefined, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
194
169
  locationId: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
195
170
  referenceNumber: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
196
- timeFrom: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
197
- date: yup.StringSchema<string | undefined, import("yup/lib/types").AnyObject, string | undefined>;
198
- }>[] | undefined>;
171
+ }>>[] | undefined>;
199
172
  }>>;
200
173
  export declare const documentDescriptions: string[];
@@ -11,7 +11,7 @@ export const tenderBodyStep1 = (customerPortal) => yup.object().shape({
11
11
  : "Pro number is required"),
12
12
  });
13
13
  export const tenderBodyStep2 = (customerPortal) => tenderBodyStep1(customerPortal).concat(yup.object().shape({
14
- tenderStops: yup.array().of(yup.object({
14
+ tenderStops: yup.array().of(yup.object().shape({
15
15
  type: yup.string(),
16
16
  locationId: yup
17
17
  .number()
@@ -27,18 +27,10 @@ export const tenderBodyStep2 = (customerPortal) => tenderBodyStep1(customerPorta
27
27
  is: "shipper",
28
28
  then: yup.string().required("Reference number is required"),
29
29
  }),
30
- timeFrom: yup.string().when("type", {
31
- is: "shipper",
32
- then: yup.string().required("Appointment time is required"),
33
- }),
34
- date: yup.string().when("type", {
35
- is: "shipper",
36
- then: yup.string().required("Appointment date is required"),
37
- }),
38
30
  })),
39
31
  }));
40
32
  export const tenderBodyStep3 = (customerPortal) => tenderBodyStep1(customerPortal).concat(yup.object().shape({
41
- tenderStops: yup.array().of(yup.object({
33
+ tenderStops: yup.array().of(yup.object().shape({
42
34
  locationId: yup
43
35
  .number()
44
36
  .transform((value) => (isNaN(value) ? undefined : value))
@@ -46,16 +38,6 @@ export const tenderBodyStep3 = (customerPortal) => tenderBodyStep1(customerPorta
46
38
  referenceNumber: yup
47
39
  .string()
48
40
  .required("Reference number is required"),
49
- timeFrom: yup.string().required("Appointment time is required"),
50
- date: yup.string().when("dateFrom", {
51
- is: undefined,
52
- then: yup.string().required("Appointment date is required"),
53
- otherwise: yup.string().when("dateTo", {
54
- is: undefined,
55
- then: yup.string().required("Appointment date is required"),
56
- otherwise: yup.string(),
57
- }),
58
- }),
59
41
  })),
60
42
  }));
61
43
  export const documentDescriptions = [
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/hooks/tender/constants.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B,MAAM,CAAC,MAA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AC,CAAC,KAAK,CAAC,CAAC;aACxD,QAAQ,CAAC,sBAAsB,CAAC;QACnC,eAAe,EAAE,GAAG;aACjB,MAAM,EAAE;aACR,QAAQ,CAAC,8BAA8B,CAAC;KAC5C,CAAC,CACH;CACF,CAAC,CACH,CAAC;AAEJ,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,YAAY;IACZ,mBAAmB;IACnB,iBAAiB;IACjB,KAAK;IACL,WAAW;IACX,aAAa;IACb,SAAS;IACT,iBAAiB;IACjB,YAAY;IACZ,iCAAiC;IACjC,4BAA4B;IAC5B,eAAe;IACf,cAAc;IACd,oBAAoB;IACpB,iCAAiC;IACjC,wBAAwB;IACxB,yBAAyB;IACzB,0BAA0B;IAC1B,6BAA6B;IAC7B,0BAA0B;CAC3B,CAAC"}
@@ -562,7 +562,7 @@ function Toolbar() {
562
562
  ? alpha(theme.palette.background.paper, 0.6)
563
563
  : "none",
564
564
  zIndex: 1000,
565
- top: 48,
565
+ top: 97,
566
566
  p: { xs: 1, md: 2 },
567
567
  pt: shrink ? 1 : 2,
568
568
  pb: shrink ? 1 : 2,
@@ -5,7 +5,8 @@ import { ServiceLevel_Entity } from "../../entities/quoteResponse/quoteResponse"
5
5
  import { Path_Entity } from "../../entities/path";
6
6
  interface DateTimeCellProps extends GridRenderEditCellParams<{
7
7
  date?: string;
8
- time: string;
8
+ timeFrom?: string;
9
+ timeTo?: string;
9
10
  dateRange?: {
10
11
  from: string;
11
12
  to: string;