@gls_spain/gps-common 35.4.18 → 35.6.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/CHANGELOG.md CHANGED
@@ -1,148 +1,167 @@
1
- ## [35.4.18](https://github.com/GLS-Spain/gps-common/compare/v35.4.17...v35.4.18) (2024-08-14)
1
+ # [35.6.0](https://github.com/GLS-Spain/gps-common/compare/v35.5.0...v35.6.0) (2024-09-17)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * add null to channeling agency code schema ([3fcce8b](https://github.com/GLS-Spain/gps-common/commit/3fcce8b95b9cb9e197aca8ac5a8db854681e360b))
7
-
8
- ## [35.4.17](https://github.com/GLS-Spain/gps-common/compare/v35.4.16...v35.4.17) (2024-08-14)
9
-
10
-
11
- ### Bug Fixes
12
-
13
- * add integer format in shcema ([0d8c512](https://github.com/GLS-Spain/gps-common/commit/0d8c512b0f20582de4c4f20d9e316565738772b2))
14
-
15
- ## [35.4.16](https://github.com/GLS-Spain/gps-common/compare/v35.4.15...v35.4.16) (2024-08-14)
16
-
17
-
18
- ### Bug Fixes
19
-
20
- * change minProperties in schema ([5b34ece](https://github.com/GLS-Spain/gps-common/commit/5b34eced6b59bc888076eb4944a4ff55e64570bf))
21
-
22
- ## [35.4.15](https://github.com/GLS-Spain/gps-common/compare/v35.4.14...v35.4.15) (2024-08-09)
23
-
24
-
25
- ### Bug Fixes
26
-
27
- * add string format to value ([0764bb7](https://github.com/GLS-Spain/gps-common/commit/0764bb792c9a31d24d27b8e8320247e91ccb7e71))
28
-
29
- ## [35.4.14](https://github.com/GLS-Spain/gps-common/compare/v35.4.13...v35.4.14) (2024-08-08)
30
-
31
-
32
- ### Bug Fixes
33
-
34
- * fix schema channeling agency code ([b7b3948](https://github.com/GLS-Spain/gps-common/commit/b7b39487db9f8f8b9b4aa31fb08f7d5316792dfe))
35
-
36
- ## [35.4.13](https://github.com/GLS-Spain/gps-common/compare/v35.4.12...v35.4.13) (2024-08-06)
37
-
38
-
39
- ### Bug Fixes
40
-
41
- * fix schema ([e49d89b](https://github.com/GLS-Spain/gps-common/commit/e49d89b3789d0ed0491957ac6b66ad718d473058))
42
-
43
- ## [35.4.12](https://github.com/GLS-Spain/gps-common/compare/v35.4.11...v35.4.12) (2024-08-06)
44
-
45
-
46
- ### Bug Fixes
47
-
48
- * fixing ([ee2759c](https://github.com/GLS-Spain/gps-common/commit/ee2759ca3bd8b73694d01208990f95b77a86cca3))
49
-
50
- ## [35.4.11](https://github.com/GLS-Spain/gps-common/compare/v35.4.10...v35.4.11) (2024-08-06)
51
-
52
-
53
- ### Bug Fixes
54
-
55
- * fix schema ([bc78f2d](https://github.com/GLS-Spain/gps-common/commit/bc78f2d68d5842f70417a411ff6b77a951691acc))
56
-
57
- ## [35.4.10](https://github.com/GLS-Spain/gps-common/compare/v35.4.9...v35.4.10) (2024-08-06)
58
-
59
-
60
- ### Bug Fixes
61
-
62
- * fixing schemas ([2f87751](https://github.com/GLS-Spain/gps-common/commit/2f87751723c1cd476a91f466d28c9785a5f61ffc))
63
-
64
- ## [35.4.9](https://github.com/GLS-Spain/gps-common/compare/v35.4.8...v35.4.9) (2024-08-06)
65
-
66
-
67
- ### Bug Fixes
68
-
69
- * fix on find by id internatinal schema ([90265b2](https://github.com/GLS-Spain/gps-common/commit/90265b2ea982861b6806018ccd7fca5eae4f3fa1))
70
-
71
- ## [35.4.8](https://github.com/GLS-Spain/gps-common/compare/v35.4.7...v35.4.8) (2024-08-06)
72
-
73
-
74
- ### Bug Fixes
75
-
76
- * fixing schemas ([f166343](https://github.com/GLS-Spain/gps-common/commit/f166343852095a8fadfdf2c0b51b54aa1f995eae))
77
-
78
- ## [35.4.7](https://github.com/GLS-Spain/gps-common/compare/v35.4.6...v35.4.7) (2024-08-06)
79
-
80
-
81
- ### Bug Fixes
82
-
83
- * fix schema ([373061a](https://github.com/GLS-Spain/gps-common/commit/373061aef148ce6ae27b15ad56851d8a6589d2af))
84
-
85
- ## [35.4.6](https://github.com/GLS-Spain/gps-common/compare/v35.4.5...v35.4.6) (2024-08-06)
86
-
87
-
88
- ### Bug Fixes
89
-
90
- * delete network query in controller ([04ca2f1](https://github.com/GLS-Spain/gps-common/commit/04ca2f1d4a484874fc3ed8d2d1b88ef8b1435691))
91
-
92
- ## [35.4.5](https://github.com/GLS-Spain/gps-common/compare/v35.4.4...v35.4.5) (2024-08-05)
93
-
94
-
95
- ### Bug Fixes
96
-
97
- * delete require ([2ac9e7d](https://github.com/GLS-Spain/gps-common/commit/2ac9e7dbe0774da6ed9dbf2b8757e9a67e6e8f67))
98
-
99
- ## [35.4.4](https://github.com/GLS-Spain/gps-common/compare/v35.4.3...v35.4.4) (2024-08-05)
100
-
101
-
102
- ### Bug Fixes
103
-
104
- * delete import ([37ee12e](https://github.com/GLS-Spain/gps-common/commit/37ee12e30db5db8649e630ee514641f1b79de2cc))
105
-
106
- ## [35.4.3](https://github.com/GLS-Spain/gps-common/compare/v35.4.2...v35.4.3) (2024-08-05)
107
-
108
-
109
- ### Bug Fixes
110
-
111
- * fix duplicate fn ([a807fad](https://github.com/GLS-Spain/gps-common/commit/a807fad19ca20e7acf92f0c2383ef167f082dbc3))
112
-
113
- ## [35.4.2](https://github.com/GLS-Spain/gps-common/compare/v35.4.1...v35.4.2) (2024-08-05)
114
-
115
-
116
- ### Bug Fixes
117
-
118
- * onworking on search shop schema ([0674d24](https://github.com/GLS-Spain/gps-common/commit/0674d241d4777b6eb69bce9dd9fed84bdd759967))
119
-
120
- ## [35.4.1](https://github.com/GLS-Spain/gps-common/compare/v35.4.0...v35.4.1) (2024-08-05)
121
-
122
-
123
- ### Bug Fixes
124
-
125
- * fix model international partner key ([5dfc61b](https://github.com/GLS-Spain/gps-common/commit/5dfc61b80e71e034daaf9ac6809efc47c349b50f))
126
-
127
- # [35.4.0](https://github.com/GLS-Spain/gps-common/compare/v35.3.2...v35.4.0) (2024-08-05)
128
-
129
-
130
- ### Bug Fixes
131
-
132
- * onWorking on model international partner key ([95f53a9](https://github.com/GLS-Spain/gps-common/commit/95f53a97429f5f5d66bf025b45a08407f52f7775))
6
+ * working on derivationRate schema ([b27dffb](https://github.com/GLS-Spain/gps-common/commit/b27dffbb6f16564933efd591a13d9f37e95948e4))
133
7
 
134
8
 
135
9
  ### Features
136
10
 
137
- * add international partner key to search by international id ([d612923](https://github.com/GLS-Spain/gps-common/commit/d612923be592da7900250beb528ddd06341bee39))
138
-
139
- ## [35.3.2](https://github.com/GLS-Spain/gps-common/compare/v35.3.1...v35.3.2) (2024-07-24)
140
-
141
-
142
- ### Bug Fixes
143
-
144
- * test ([85b7070](https://github.com/GLS-Spain/gps-common/commit/85b7070c7bb3561f2660c2646c9cfaab8b1b19c3))
11
+ * add new field constantShopReturn ([4190b17](https://github.com/GLS-Spain/gps-common/commit/4190b178b536a8265b3448d2ad8944d3153a8b6b))
145
12
 
13
+ # [35.5.0](https://github.com/GLS-Spain/gps-common/compare/v35.4.18...v35.5.0) (2024-09-11)
14
+
15
+
16
+ ### Features
17
+
18
+ * new request for reverse logistic request depositedTo ([4d3bdc1](https://github.com/GLS-Spain/gps-common/commit/4d3bdc1bc8346f03c5bb26aeae89584d4392ad56))
19
+
20
+ ## [35.4.18](https://github.com/GLS-Spain/gps-common/compare/v35.4.17...v35.4.18) (2024-08-14)
21
+
22
+
23
+ ### Bug Fixes
24
+
25
+ * add null to channeling agency code schema ([3fcce8b](https://github.com/GLS-Spain/gps-common/commit/3fcce8b95b9cb9e197aca8ac5a8db854681e360b))
26
+
27
+ ## [35.4.17](https://github.com/GLS-Spain/gps-common/compare/v35.4.16...v35.4.17) (2024-08-14)
28
+
29
+
30
+ ### Bug Fixes
31
+
32
+ * add integer format in shcema ([0d8c512](https://github.com/GLS-Spain/gps-common/commit/0d8c512b0f20582de4c4f20d9e316565738772b2))
33
+
34
+ ## [35.4.16](https://github.com/GLS-Spain/gps-common/compare/v35.4.15...v35.4.16) (2024-08-14)
35
+
36
+
37
+ ### Bug Fixes
38
+
39
+ * change minProperties in schema ([5b34ece](https://github.com/GLS-Spain/gps-common/commit/5b34eced6b59bc888076eb4944a4ff55e64570bf))
40
+
41
+ ## [35.4.15](https://github.com/GLS-Spain/gps-common/compare/v35.4.14...v35.4.15) (2024-08-09)
42
+
43
+
44
+ ### Bug Fixes
45
+
46
+ * add string format to value ([0764bb7](https://github.com/GLS-Spain/gps-common/commit/0764bb792c9a31d24d27b8e8320247e91ccb7e71))
47
+
48
+ ## [35.4.14](https://github.com/GLS-Spain/gps-common/compare/v35.4.13...v35.4.14) (2024-08-08)
49
+
50
+
51
+ ### Bug Fixes
52
+
53
+ * fix schema channeling agency code ([b7b3948](https://github.com/GLS-Spain/gps-common/commit/b7b39487db9f8f8b9b4aa31fb08f7d5316792dfe))
54
+
55
+ ## [35.4.13](https://github.com/GLS-Spain/gps-common/compare/v35.4.12...v35.4.13) (2024-08-06)
56
+
57
+
58
+ ### Bug Fixes
59
+
60
+ * fix schema ([e49d89b](https://github.com/GLS-Spain/gps-common/commit/e49d89b3789d0ed0491957ac6b66ad718d473058))
61
+
62
+ ## [35.4.12](https://github.com/GLS-Spain/gps-common/compare/v35.4.11...v35.4.12) (2024-08-06)
63
+
64
+
65
+ ### Bug Fixes
66
+
67
+ * fixing ([ee2759c](https://github.com/GLS-Spain/gps-common/commit/ee2759ca3bd8b73694d01208990f95b77a86cca3))
68
+
69
+ ## [35.4.11](https://github.com/GLS-Spain/gps-common/compare/v35.4.10...v35.4.11) (2024-08-06)
70
+
71
+
72
+ ### Bug Fixes
73
+
74
+ * fix schema ([bc78f2d](https://github.com/GLS-Spain/gps-common/commit/bc78f2d68d5842f70417a411ff6b77a951691acc))
75
+
76
+ ## [35.4.10](https://github.com/GLS-Spain/gps-common/compare/v35.4.9...v35.4.10) (2024-08-06)
77
+
78
+
79
+ ### Bug Fixes
80
+
81
+ * fixing schemas ([2f87751](https://github.com/GLS-Spain/gps-common/commit/2f87751723c1cd476a91f466d28c9785a5f61ffc))
82
+
83
+ ## [35.4.9](https://github.com/GLS-Spain/gps-common/compare/v35.4.8...v35.4.9) (2024-08-06)
84
+
85
+
86
+ ### Bug Fixes
87
+
88
+ * fix on find by id internatinal schema ([90265b2](https://github.com/GLS-Spain/gps-common/commit/90265b2ea982861b6806018ccd7fca5eae4f3fa1))
89
+
90
+ ## [35.4.8](https://github.com/GLS-Spain/gps-common/compare/v35.4.7...v35.4.8) (2024-08-06)
91
+
92
+
93
+ ### Bug Fixes
94
+
95
+ * fixing schemas ([f166343](https://github.com/GLS-Spain/gps-common/commit/f166343852095a8fadfdf2c0b51b54aa1f995eae))
96
+
97
+ ## [35.4.7](https://github.com/GLS-Spain/gps-common/compare/v35.4.6...v35.4.7) (2024-08-06)
98
+
99
+
100
+ ### Bug Fixes
101
+
102
+ * fix schema ([373061a](https://github.com/GLS-Spain/gps-common/commit/373061aef148ce6ae27b15ad56851d8a6589d2af))
103
+
104
+ ## [35.4.6](https://github.com/GLS-Spain/gps-common/compare/v35.4.5...v35.4.6) (2024-08-06)
105
+
106
+
107
+ ### Bug Fixes
108
+
109
+ * delete network query in controller ([04ca2f1](https://github.com/GLS-Spain/gps-common/commit/04ca2f1d4a484874fc3ed8d2d1b88ef8b1435691))
110
+
111
+ ## [35.4.5](https://github.com/GLS-Spain/gps-common/compare/v35.4.4...v35.4.5) (2024-08-05)
112
+
113
+
114
+ ### Bug Fixes
115
+
116
+ * delete require ([2ac9e7d](https://github.com/GLS-Spain/gps-common/commit/2ac9e7dbe0774da6ed9dbf2b8757e9a67e6e8f67))
117
+
118
+ ## [35.4.4](https://github.com/GLS-Spain/gps-common/compare/v35.4.3...v35.4.4) (2024-08-05)
119
+
120
+
121
+ ### Bug Fixes
122
+
123
+ * delete import ([37ee12e](https://github.com/GLS-Spain/gps-common/commit/37ee12e30db5db8649e630ee514641f1b79de2cc))
124
+
125
+ ## [35.4.3](https://github.com/GLS-Spain/gps-common/compare/v35.4.2...v35.4.3) (2024-08-05)
126
+
127
+
128
+ ### Bug Fixes
129
+
130
+ * fix duplicate fn ([a807fad](https://github.com/GLS-Spain/gps-common/commit/a807fad19ca20e7acf92f0c2383ef167f082dbc3))
131
+
132
+ ## [35.4.2](https://github.com/GLS-Spain/gps-common/compare/v35.4.1...v35.4.2) (2024-08-05)
133
+
134
+
135
+ ### Bug Fixes
136
+
137
+ * onworking on search shop schema ([0674d24](https://github.com/GLS-Spain/gps-common/commit/0674d241d4777b6eb69bce9dd9fed84bdd759967))
138
+
139
+ ## [35.4.1](https://github.com/GLS-Spain/gps-common/compare/v35.4.0...v35.4.1) (2024-08-05)
140
+
141
+
142
+ ### Bug Fixes
143
+
144
+ * fix model international partner key ([5dfc61b](https://github.com/GLS-Spain/gps-common/commit/5dfc61b80e71e034daaf9ac6809efc47c349b50f))
145
+
146
+ # [35.4.0](https://github.com/GLS-Spain/gps-common/compare/v35.3.2...v35.4.0) (2024-08-05)
147
+
148
+
149
+ ### Bug Fixes
150
+
151
+ * onWorking on model international partner key ([95f53a9](https://github.com/GLS-Spain/gps-common/commit/95f53a97429f5f5d66bf025b45a08407f52f7775))
152
+
153
+
154
+ ### Features
155
+
156
+ * add international partner key to search by international id ([d612923](https://github.com/GLS-Spain/gps-common/commit/d612923be592da7900250beb528ddd06341bee39))
157
+
158
+ ## [35.3.2](https://github.com/GLS-Spain/gps-common/compare/v35.3.1...v35.3.2) (2024-07-24)
159
+
160
+
161
+ ### Bug Fixes
162
+
163
+ * test ([85b7070](https://github.com/GLS-Spain/gps-common/commit/85b7070c7bb3561f2660c2646c9cfaab8b1b19c3))
164
+
146
165
  ## [35.3.1](https://github.com/GLS-Spain/gps-common/compare/v35.3.0...v35.3.1) (2024-07-23)
147
166
 
148
167
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "35.4.18",
3
+ "version": "35.6.0",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -6,10 +6,11 @@ const derivationRate = () => ({
6
6
  type: 'object',
7
7
  properties: {
8
8
  constant: { ...money(), description: 'fixed amount paid in cents, per package' },
9
+ constantShopReturn: { ...money(), description: 'fixed amount paid in cents, per package' },
9
10
  variableStart: { type: 'number', description: 'weight threshold in kg to start paying the variable, per package' },
10
11
  variable: { ...money(), description: 'amount paid in cents for each additional kg beyond the weight threshold, per package' },
11
12
  },
12
- required: ['constant', 'variableStart', 'variable'],
13
+ required: ['constant', 'variableStart', 'variable', 'constantShopReturn'],
13
14
  additionalProperties: false,
14
15
  description: 'pricePerPackage = constant + max(0, weight - variableStart) * variable',
15
16
  });
@@ -786,6 +786,17 @@ const processExpeditionsDepositedFromRequest = () => ({
786
786
  additionalProperties: false,
787
787
  });
788
788
 
789
+ const processExpeditionsDepositedToRequest = () => ({
790
+ type: 'object',
791
+ properties: {
792
+ expeditions: omit(findByIds(), 'title'),
793
+ driver: driver(),
794
+ QRconfirmed: { type: 'boolean' },
795
+ },
796
+ required: ['expeditions', 'driver', 'QRconfirmed'],
797
+ additionalProperties: false,
798
+ });
799
+
789
800
  const processExpeditionResultOk = () => mergeSchemas(objectWithUuid(), resultOk());
790
801
 
791
802
  const processExpeditionResultNotFound = () => mergeSchemas(objectWithUuid(), resultNotFound());
@@ -963,6 +974,7 @@ module.exports = {
963
974
  scanExpeditionResponse,
964
975
  processExpeditionsWithDriverRequest,
965
976
  processExpeditionsDepositedFromRequest,
977
+ processExpeditionsDepositedToRequest,
966
978
  processExpeditionsWithCustomerRequest,
967
979
  processExpeditionsResponse,
968
980
  receiveAllExpeditionsFromDriverRequest,
package/schemas/index.js CHANGED
@@ -90,6 +90,7 @@ const {
90
90
  reminderResponse,
91
91
  // notNotificationResponse,
92
92
  processExpeditionsDepositedFromRequest,
93
+ processExpeditionsDepositedToRequest,
93
94
  } = require('./definitions/expeditions');
94
95
  const { findPodsRequest, findPodsResponse } = require('./definitions/pods');
95
96
  const {
@@ -229,6 +230,8 @@ const expeditionsScanResponse = response(scanExpeditionResponse(), 'expeditionsS
229
230
  const expeditionsProcessWithDriverRequest = request(processExpeditionsWithCustomerRequest(), 'expeditionsProcessWithCustomerRequest');
230
231
  const expeditionsProcessWithCustomerRequest = request(processExpeditionsWithDriverRequest(), 'expeditionsProcessWithDriverRequest');
231
232
  const expeditionsProcessDepositedFromRequest = request(processExpeditionsDepositedFromRequest(), 'expeditionsProcessDepositedFromRequest');
233
+ const expeditionsProcessDepositedToRequest = request(processExpeditionsDepositedToRequest(), 'expeditionsProcessDepositedToRequest');
234
+
232
235
  const expeditionsProcessResponse = response(processExpeditionsResponse(), 'expeditionsProcessResponse');
233
236
  const expeditionsReceiveAllFromDriverRequest = request(receiveAllExpeditionsFromDriverRequest(), 'expeditionsReceiveAllFromDriverRequest');
234
237
  const expeditionsReceiveAllFromDriverResponse = response(
@@ -385,6 +388,7 @@ module.exports = {
385
388
  expeditionsProcessWithDriverRequest,
386
389
  expeditionsProcessWithCustomerRequest,
387
390
  expeditionsProcessDepositedFromRequest,
391
+ expeditionsProcessDepositedToRequest,
388
392
  expeditionsProcessResponse,
389
393
  expeditionsReceiveAllFromDriverRequest,
390
394
  expeditionsReceiveAllFromDriverResponse,