@gls_spain/gps-common 27.0.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.
Files changed (66) hide show
  1. package/.eslintrc.json +11 -0
  2. package/.idea/codeStyles/Project.xml +37 -0
  3. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  4. package/.idea/gps-common.iml +12 -0
  5. package/.idea/inspectionProfiles/Project_Default.xml +7 -0
  6. package/.idea/jsLibraryMappings.xml +6 -0
  7. package/.idea/misc.xml +6 -0
  8. package/.idea/modules.xml +8 -0
  9. package/.idea/vcs.xml +6 -0
  10. package/.idea/watcherTasks.xml +45 -0
  11. package/.prettierignore +5 -0
  12. package/.prettierrc.json +13 -0
  13. package/.releaserc +17 -0
  14. package/CHANGELOG.md +848 -0
  15. package/README.md +122 -0
  16. package/errors/DatabaseNotEmptyError.js +9 -0
  17. package/errors/DefaultsDoNotExistError.js +9 -0
  18. package/errors/ExpeditionAlreadyExistsError.js +9 -0
  19. package/errors/ExpeditionCannotBeDeletedError.js +9 -0
  20. package/errors/ExpeditionCannotBeUpdatedError.js +9 -0
  21. package/errors/ExpeditionDoesNotExistError.js +9 -0
  22. package/errors/JobDoesNotExistError.js +9 -0
  23. package/errors/NetworkAlreadyExistsError.js +9 -0
  24. package/errors/NetworkCannotBeDeletedError.js +9 -0
  25. package/errors/NetworkDoesNotExistError.js +9 -0
  26. package/errors/RepresentativeAlreadyExistsError.js +9 -0
  27. package/errors/RepresentativeCannotBeDeletedError.js +9 -0
  28. package/errors/RepresentativeDoesNotExistError.js +9 -0
  29. package/errors/ShopAlreadyExistsError.js +9 -0
  30. package/errors/ShopCannotBeDeletedError.js +9 -0
  31. package/errors/ShopDoesNotExistError.js +9 -0
  32. package/errors/ShopNotEnabledError.js +9 -0
  33. package/errors/UserAlreadyExistsError.js +9 -0
  34. package/errors/UserCannotBeDeletedError.js +9 -0
  35. package/errors/UserCannotBeUpdatedError.js +9 -0
  36. package/errors/UserDoesNotExistError.js +9 -0
  37. package/errors/WrongNetworkError.js +9 -0
  38. package/errors/WrongPasswordError.js +9 -0
  39. package/errors/WrongShopError.js +9 -0
  40. package/errors/ZoneAlreadyExistsError.js +9 -0
  41. package/errors/ZoneCannotBeDeletedError.js +9 -0
  42. package/errors/ZoneDoesNotExistError.js +9 -0
  43. package/errors/index.js +88 -0
  44. package/index.js +9 -0
  45. package/index.test.js +35 -0
  46. package/jest.config.js +5 -0
  47. package/open-api-spec/index.js +2920 -0
  48. package/package.json +68 -0
  49. package/schemas/definitions/become.js +5 -0
  50. package/schemas/definitions/common.js +172 -0
  51. package/schemas/definitions/defaults.js +84 -0
  52. package/schemas/definitions/expeditions.js +637 -0
  53. package/schemas/definitions/init.js +37 -0
  54. package/schemas/definitions/integration-events.js +127 -0
  55. package/schemas/definitions/jobs.js +124 -0
  56. package/schemas/definitions/login.js +38 -0
  57. package/schemas/definitions/logout.js +8 -0
  58. package/schemas/definitions/networks.js +107 -0
  59. package/schemas/definitions/pods.js +37 -0
  60. package/schemas/definitions/representatives.js +178 -0
  61. package/schemas/definitions/shops.js +352 -0
  62. package/schemas/definitions/users.js +373 -0
  63. package/schemas/definitions/zones.js +92 -0
  64. package/schemas/index.js +335 -0
  65. package/scripts/build-documentation.js +40 -0
  66. package/scripts/build-json-schemas.js +35 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,848 @@
1
+ # [27.0.0](https://github.com/GLS-Spain/gps-common/compare/v26.1.0...v27.0.0) (2020-01-29)
2
+
3
+
4
+ ### chore
5
+
6
+ * migrate to [@gls](https://github.com/gls)_spain packages ([cc1a484](https://github.com/GLS-Spain/gps-common/commit/cc1a484471d35d82bf51124e403f7de21d376289))
7
+
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ * package scope has changed to @gls_spain
12
+
13
+ # [26.1.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v26.0.1...v26.1.0) (2020-01-29)
14
+
15
+
16
+ ### Features
17
+
18
+ * add contacts to networks and shops ([f9f2b07](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/f9f2b073204af5eb52b1dbb55ce4de3309babd10)), closes [#GPS-425](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-425)
19
+
20
+ ## [26.0.1](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v26.0.0...v26.0.1) (2020-01-21)
21
+
22
+
23
+ ### Bug Fixes
24
+
25
+ * fix price event schema ([f7fce50](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/f7fce504e228fd93a42d3734604121b5409ea9e7))
26
+
27
+ # [26.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v25.4.0...v26.0.0) (2020-01-17)
28
+
29
+
30
+ ### Features
31
+
32
+ * add fiscal data to networks, refactor shop fiscal data ([428b171](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/428b17100cbd7795c76f5a1501269b3ee80e2292))
33
+ * add network event and price event, add network job, split derivation total price ([dbebebd](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/dbebebd6b3747f02fe5a537084ee3ea845154f15))
34
+ * add nif to fiscal data, add find shop by fiscal ([b0e44e1](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/b0e44e1230a52e5b3d0416d9186b26af6312200e))
35
+ * change expedition.status.expiration to use datetimes for reminders ([f3c8549](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/f3c8549f55c66e072b2c947513feac3154719b0a))
36
+ * enable email validation ([f24dddb](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/f24dddb692385e5c9f03591b0fd20ccab0971c31))
37
+ * split defaults, network and shop derivation settings into network rate and shop rate ([4946fa2](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/4946fa2819654620093f9585782c7d327d7a8562))
38
+
39
+
40
+ ### BREAKING CHANGES
41
+
42
+ * expiration reminders are now datetimes
43
+ * fiscal data now has nif
44
+ * networks now have fiscal data, shop fiscal data has changed
45
+ * defaults, network and shop derivation settings now have network and shop rate
46
+
47
+ # [25.4.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v25.3.1...v25.4.0) (2019-12-30)
48
+
49
+
50
+ ### Features
51
+
52
+ * add expeditions find by code ([64e12b6](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/64e12b64a09fd3224a8007073c6d36cc39556e95))
53
+
54
+ ## [25.3.1](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v25.3.0...v25.3.1) (2019-12-05)
55
+
56
+
57
+ ### Bug Fixes
58
+
59
+ * fix the /expeditions/receiveAllFromDriver response schema ([1f8b6fa](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/1f8b6fa))
60
+
61
+ # [25.3.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v25.2.1...v25.3.0) (2019-12-05)
62
+
63
+
64
+ ### Features
65
+
66
+ * Add /expeditions/receiveAllFromDriver and shop user integration 'canReceiveAllFromDriver' ([6e1bbb6](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/6e1bbb6))
67
+
68
+ ## [25.2.1](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v25.2.0...v25.2.1) (2019-11-26)
69
+
70
+
71
+ ### Bug Fixes
72
+
73
+ * fix get representatives commission response ([be6973a](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/be6973a)), closes [#GPS-368](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-368)
74
+
75
+ # [25.2.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v25.1.0...v25.2.0) (2019-11-26)
76
+
77
+
78
+ ### Features
79
+
80
+ * add /representatives/getCommissions ([ee10c28](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/ee10c28)), closes [#GPS-368](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-368)
81
+
82
+ # [25.1.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v25.0.0...v25.1.0) (2019-11-21)
83
+
84
+
85
+ ### Features
86
+
87
+ * change email schema to accept any string ([0b383fe](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/0b383fe))
88
+
89
+ # [25.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v24.2.0...v25.0.0) (2019-11-15)
90
+
91
+
92
+ ### Features
93
+
94
+ * add zones with commissions and link shops and representatives to them ([6e4c4fb](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/6e4c4fb)), closes [#GPS-367](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-367)
95
+
96
+
97
+ ### BREAKING CHANGES
98
+
99
+ * representatives have a relation to zones instead of commissions
100
+
101
+ # [24.2.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v24.1.0...v24.2.0) (2019-11-12)
102
+
103
+
104
+ ### Features
105
+
106
+ * usernames are limited to [a-zA-Z0-9] characters and minimum length 3 ([6a2237c](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/6a2237c))
107
+
108
+ # [24.1.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v24.0.0...v24.1.0) (2019-11-11)
109
+
110
+
111
+ ### Features
112
+
113
+ * allow tags on resources creation for backwards compatibility ([7fdf449](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/7fdf449))
114
+
115
+ # [24.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v23.0.1...v24.0.0) (2019-11-06)
116
+
117
+
118
+ ### Features
119
+
120
+ * reduce the capabilities of network admins ([afe4544](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/afe4544))
121
+
122
+
123
+ ### BREAKING CHANGES
124
+
125
+ * network admins cannot create/update/delete shops or shop users
126
+
127
+ ## [23.0.1](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v23.0.0...v23.0.1) (2019-11-04)
128
+
129
+
130
+ ### Bug Fixes
131
+
132
+ * fix error name ([bc1839b](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/bc1839b))
133
+
134
+ # [23.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v22.1.0...v23.0.0) (2019-10-24)
135
+
136
+
137
+ ### Features
138
+
139
+ * redo how derivation and expiration settings work ([a9073f8](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/a9073f8))
140
+
141
+
142
+ ### BREAKING CHANGES
143
+
144
+ * network and shops may no longer have derivation and expiration settings on their
145
+ root
146
+
147
+ # [22.1.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v22.0.0...v22.1.0) (2019-10-22)
148
+
149
+
150
+ ### Features
151
+
152
+ * add sales representatives CRUD and to shops ([60573a5](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/60573a5))
153
+
154
+ # [22.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v21.1.0...v22.0.0) (2019-10-21)
155
+
156
+
157
+ ### Features
158
+
159
+ * change shop openingSchedule structure ([dd4a938](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/dd4a938))
160
+
161
+
162
+ ### BREAKING CHANGES
163
+
164
+ * shop opening schedule structure has changed
165
+
166
+ # [21.1.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v21.0.0...v21.1.0) (2019-10-15)
167
+
168
+
169
+ ### Features
170
+
171
+ * add fiscal to shop update ([dfd61d5](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/dfd61d5))
172
+
173
+ # [21.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v20.3.0...v21.0.0) (2019-10-15)
174
+
175
+
176
+ ### Features
177
+
178
+ * add fiscal to shop ([0a998e1](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/0a998e1))
179
+ * Add timezone to shop ([fb9f742](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/fb9f742)), closes [#GPS-291](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-291)
180
+
181
+
182
+ ### BREAKING CHANGES
183
+
184
+ * create shop now required fiscal
185
+ * Shop creation now requires a timezone
186
+
187
+ # [20.3.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v20.2.1...v20.3.0) (2019-10-08)
188
+
189
+
190
+ ### Features
191
+
192
+ * add errorsNames ([b3722e4](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/b3722e4))
193
+
194
+ ## [20.2.1](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v20.2.0...v20.2.1) (2019-10-08)
195
+
196
+
197
+ ### Bug Fixes
198
+
199
+ * hardcode errors names to prevent loss when uglifying ([c90f69d](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/c90f69d))
200
+
201
+ # [20.2.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v20.1.0...v20.2.0) (2019-10-07)
202
+
203
+
204
+ ### Features
205
+
206
+ * add upsert shop event and find shop jobs ([f7d2ccc](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/f7d2ccc))
207
+
208
+ # [20.1.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v20.0.0...v20.1.0) (2019-10-03)
209
+
210
+
211
+ ### Features
212
+
213
+ * add expeditions receiveFromCustomer and extend giveToDriver for pickups ([6ad4fab](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/6ad4fab)), closes [#GPS-95](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-95)
214
+
215
+ # [20.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v19.3.1...v20.0.0) (2019-10-02)
216
+
217
+
218
+ ### Features
219
+
220
+ * use new private packages, change date times to date-time format ([ab4c08b](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/ab4c08b)), closes [#GPS-326](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-326)
221
+
222
+
223
+ ### BREAKING CHANGES
224
+
225
+ * Date times changed to date-time format
226
+
227
+ ## [19.3.1](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v19.3.0...v19.3.1) (2019-09-28)
228
+
229
+
230
+ ### Bug Fixes
231
+
232
+ * fix network schema format ([f7022f0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/f7022f0))
233
+
234
+ # [19.3.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v19.2.0...v19.3.0) (2019-09-28)
235
+
236
+
237
+ ### Features
238
+
239
+ * adapt schemas to new normalize keyword ([999fa5a](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/999fa5a))
240
+
241
+ # [19.2.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v19.1.0...v19.2.0) (2019-09-27)
242
+
243
+
244
+ ### Features
245
+
246
+ * use new package common-json-schemas ([1dfdac0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/1dfdac0))
247
+
248
+ # [19.1.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v19.0.1...v19.1.0) (2019-09-26)
249
+
250
+
251
+ ### Features
252
+
253
+ * add expirationDate to receiveFromDriver event ([5d8c99b](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/5d8c99b))
254
+
255
+ ## [19.0.1](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v19.0.0...v19.0.1) (2019-09-23)
256
+
257
+
258
+ ### Bug Fixes
259
+
260
+ * change the format of the datetime properties of the sent events ([b2bc943](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/b2bc943))
261
+
262
+ # [19.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v18.1.0...v19.0.0) (2019-09-18)
263
+
264
+
265
+ ### Features
266
+
267
+ * Add more specific 401 error responses ([e3c1359](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/e3c1359))
268
+
269
+
270
+ ### BREAKING CHANGES
271
+
272
+ * Some 401 errors are more specific and their names have changed
273
+
274
+ # [18.1.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v18.0.0...v18.1.0) (2019-09-17)
275
+
276
+
277
+ ### Features
278
+
279
+ * **expeditions:** Packages weight is now optional ([dbd05a8](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/dbd05a8))
280
+
281
+ # [18.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v17.0.0...v18.0.0) (2019-09-12)
282
+
283
+
284
+ ### Features
285
+
286
+ * Change networks and users sendIntegrationEvents to integrations array ([dc1a072](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/dc1a072)), closes [#GPS-279](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-279)
287
+
288
+
289
+ ### BREAKING CHANGES
290
+
291
+ * Networks and users sendIntegrationEvents changed to integrations array
292
+
293
+ # [17.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v16.0.1...v17.0.0) (2019-09-12)
294
+
295
+
296
+ ### Features
297
+
298
+ * Add sendIntegration events to networks and users ([5c23b42](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/5c23b42)), closes [#GPS-279](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-279)
299
+
300
+
301
+ ### BREAKING CHANGES
302
+
303
+ * Users sendEvents changed to sendIntegrationEvents
304
+
305
+ ## [16.0.1](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v16.0.0...v16.0.1) (2019-09-06)
306
+
307
+
308
+ ### Bug Fixes
309
+
310
+ * Fix missing required for integration events _id ([420b43a](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/420b43a))
311
+
312
+ # [16.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v15.0.0...v16.0.0) (2019-09-06)
313
+
314
+
315
+ ### Features
316
+
317
+ * **documentation:** Refactor documentation with resources, integration and endpoints sections ([d6f8e98](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/d6f8e98))
318
+
319
+
320
+ ### BREAKING CHANGES
321
+
322
+ * **documentation:** /system and /defaults endpoints moved to /config
323
+
324
+ # [15.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v14.0.0...v15.0.0) (2019-09-03)
325
+
326
+
327
+ ### Bug Fixes
328
+
329
+ * Rename costumer to customer everywhere ([da55bae](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/da55bae))
330
+
331
+
332
+ ### BREAKING CHANGES
333
+
334
+ * Costumer renamed to customer in all schemas and endpoints
335
+
336
+ # [14.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v13.2.1...v14.0.0) (2019-08-18)
337
+
338
+
339
+ ### Bug Fixes
340
+
341
+ * **Expedition job:** Rename pickupReminder to expirationReminder ([d412c77](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/d412c77))
342
+
343
+
344
+ ### BREAKING CHANGES
345
+
346
+ * **Expedition job:** Renamed pickupReminder to expirationReminder
347
+
348
+ ## [13.2.1](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v13.2.0...v13.2.1) (2019-08-14)
349
+
350
+
351
+ ### Bug Fixes
352
+
353
+ * **jobs:** Fix jobsFindExpeditionsResponse schema wrong use of oneOf ([f74cf89](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/f74cf89))
354
+
355
+ # [13.2.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v13.1.0...v13.2.0) (2019-08-14)
356
+
357
+
358
+ ### Features
359
+
360
+ * **errors:** Add job does not exist error ([6628364](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/6628364))
361
+
362
+ # [13.1.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v13.0.3...v13.1.0) (2019-08-14)
363
+
364
+
365
+ ### Features
366
+
367
+ * **background jobs:** Add schemas and documentation for background jobs ([0172b67](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/0172b67)), closes [#GPS-255](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-255)
368
+
369
+ ## [13.0.3](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v13.0.2...v13.0.3) (2019-08-12)
370
+
371
+
372
+ ### Bug Fixes
373
+
374
+ * **pods:** Add network and shop to pod schema ([ebb2b23](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/ebb2b23)), closes [#GPS-265](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-265)
375
+
376
+ ## [13.0.2](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v13.0.1...v13.0.2) (2019-08-11)
377
+
378
+
379
+ ### Bug Fixes
380
+
381
+ * **expeditions:** Change pod single expedition reference to an array ([08da410](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/08da410))
382
+
383
+ ## [13.0.1](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v13.0.0...v13.0.1) (2019-08-11)
384
+
385
+
386
+ ### Bug Fixes
387
+
388
+ * **pods:** Add missing pod schema properties ([66592a1](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/66592a1))
389
+
390
+ # [13.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v12.0.2...v13.0.0) (2019-08-11)
391
+
392
+
393
+ ### Code Refactoring
394
+
395
+ * **expeditions:** Refactor status properties and operations names ([acc325b](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/acc325b))
396
+
397
+
398
+ ### BREAKING CHANGES
399
+
400
+ * **expeditions:** Changed expeditions schema and receive/give operations endpoints
401
+
402
+ ## [12.0.2](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v12.0.1...v12.0.2) (2019-08-10)
403
+
404
+
405
+ ### Bug Fixes
406
+
407
+ * **expeditions:** Fix and improve expeditions pickup and deliver documentation ([4609876](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/4609876))
408
+
409
+ ## [12.0.1](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v12.0.0...v12.0.1) (2019-08-09)
410
+
411
+
412
+ ### Bug Fixes
413
+
414
+ * **expeditions:** Fix scan request schema ([b9164b4](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/b9164b4)), closes [#GPS-88](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-88)
415
+
416
+ # [12.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v11.1.0...v12.0.0) (2019-08-09)
417
+
418
+
419
+ ### Features
420
+
421
+ * **expeditions:** Refactor scan and pickup from driver, add deliver to costumer and driver, add POD ([f6bc54e](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/f6bc54e)), closes [#GPS-88](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-88)
422
+
423
+
424
+ ### BREAKING CHANGES
425
+
426
+ * **expeditions:** Expedition schema, scan and pickup from driver have changed
427
+
428
+ # [11.1.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v11.0.2...v11.1.0) (2019-08-07)
429
+
430
+
431
+ ### Features
432
+
433
+ * Add sendEvents property to users ([00641d4](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/00641d4)), closes [#GPS-181](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-181)
434
+
435
+ ## [11.0.2](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v11.0.1...v11.0.2) (2019-08-06)
436
+
437
+
438
+ ### Bug Fixes
439
+
440
+ * Fix /expeditions/processDriver schemas ([eb3d07e](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/eb3d07e)), closes [#GPS-82](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-82)
441
+
442
+ ## [11.0.1](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v11.0.0...v11.0.1) (2019-08-06)
443
+
444
+
445
+ ### Bug Fixes
446
+
447
+ * **documentation:** Fix expeditions update and redirect error responses ([70f19bc](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/70f19bc))
448
+
449
+ # [11.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v10.0.0...v11.0.0) (2019-08-06)
450
+
451
+
452
+ ### Features
453
+
454
+ * **expeditions:** Change status update to specific endpoints, refactor status content ([e5e1957](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/e5e1957)), closes [#GPS-246](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-246)
455
+
456
+
457
+ ### BREAKING CHANGES
458
+
459
+ * **expeditions:** Move expedition fields inside status, change update status to specific endpoints
460
+
461
+ # [10.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v9.4.0...v10.0.0) (2019-08-05)
462
+
463
+
464
+ ### Features
465
+
466
+ * Add derivation and expiration to expeditions ([17a1502](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/17a1502)), closes [#GPS-246](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-246)
467
+
468
+
469
+ ### BREAKING CHANGES
470
+
471
+ * Expeditions no longer have expirationDate, and date and expectedDeliveryDate are no
472
+ longer datetimes
473
+
474
+ # [9.4.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v9.3.0...v9.4.0) (2019-08-02)
475
+
476
+
477
+ ### Features
478
+
479
+ * **documentation:** Add shop is not enabled error to expedition create and update ([cc64713](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/cc64713)), closes [#GPS-245](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-245)
480
+
481
+ # [9.3.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v9.2.0...v9.3.0) (2019-07-31)
482
+
483
+
484
+ ### Features
485
+
486
+ * Add defaults to initDatabase request and response ([8171cd7](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/8171cd7))
487
+
488
+ # [9.2.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v9.1.0...v9.2.0) (2019-07-31)
489
+
490
+
491
+ ### Features
492
+
493
+ * **errors:** Add defaults do not exist error and it to the documentation ([885e857](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/885e857))
494
+
495
+ # [9.1.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v9.0.0...v9.1.0) (2019-07-31)
496
+
497
+
498
+ ### Features
499
+
500
+ * **documentation:** Add default settings documentation ([36aead6](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/36aead6)), closes [#GPS-209](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-209)
501
+ * **documentation:** Add settings to network and shop documentation ([1a8d5fa](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/1a8d5fa)), closes [#GPS-209](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-209)
502
+ * **schemas:** Add default settings schemas ([c068802](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/c068802)), closes [#GPS-209](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-209)
503
+ * **schemas:** Add settings to network and shop schemas ([3280339](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/3280339)), closes [#GPS-209](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-209)
504
+
505
+ # [9.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v8.4.1...v9.0.0) (2019-07-29)
506
+
507
+
508
+ ### Bug Fixes
509
+
510
+ * Remove total from find requests ([7763b94](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/7763b94))
511
+
512
+
513
+ ### Code Refactoring
514
+
515
+ * Change /expeditions/scan request and response schemas ([c6aaabc](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/c6aaabc))
516
+
517
+
518
+ ### BREAKING CHANGES
519
+
520
+ * /expeditions/scan schemas have changed
521
+
522
+ ## [8.4.1](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v8.4.0...v8.4.1) (2019-07-29)
523
+
524
+
525
+ ### Bug Fixes
526
+
527
+ * **expeditions:** Add missing properties ([12eb565](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/12eb565))
528
+
529
+ # [8.4.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v8.3.0...v8.4.0) (2019-07-25)
530
+
531
+
532
+ ### Features
533
+
534
+ * **documentation:** Add authorization caption to documentation endpoints ([4452450](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/4452450)), closes [#GPS-199](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-199)
535
+
536
+ # [8.3.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v8.2.0...v8.3.0) (2019-07-25)
537
+
538
+
539
+ ### Features
540
+
541
+ * **documentation:** Add expeditions documentation ([8ef9d1c](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/8ef9d1c)), closes [#GPS-78](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-78)
542
+ * **errors:** Add expedition errors ([4723434](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/4723434)), closes [#GPS-78](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-78)
543
+ * **schemas:** Add expedition CRUD schemas ([f22a070](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/f22a070)), closes [#GPS-78](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-78)
544
+
545
+ # [8.2.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v8.1.0...v8.2.0) (2019-07-18)
546
+
547
+
548
+ ### Bug Fixes
549
+
550
+ * **documentation:** Fix missing /login and /self authorization ([a8617b8](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/a8617b8))
551
+
552
+
553
+ ### Features
554
+
555
+ * **documentation:** Add /logout documentation ([dcd693f](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/dcd693f)), closes [#GPS-205](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-205)
556
+ * **schemas:** Add logout schemas ([88e2f86](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/88e2f86)), closes [#GPS-205](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-205)
557
+
558
+ # [8.1.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v8.0.0...v8.1.0) (2019-07-10)
559
+
560
+
561
+ ### Features
562
+
563
+ * **errors:** Add wrong password error ([a4307ca](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/a4307ca))
564
+
565
+ # [8.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v7.2.0...v8.0.0) (2019-07-10)
566
+
567
+
568
+ ### Code Refactoring
569
+
570
+ * Refactor networks and shops to remove sync fields ([02b8603](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/02b8603)), closes [#GPS-196](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-196)
571
+
572
+
573
+ ### BREAKING CHANGES
574
+
575
+ * Remove sync fields from network and shop schemas
576
+
577
+ # [7.2.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v7.1.0...v7.2.0) (2019-07-08)
578
+
579
+
580
+ ### Features
581
+
582
+ * **documentation:** Add /networks/listNames endpoint ([b0d8977](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/b0d8977)), closes [#GPS-192](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-192)
583
+ * **schemas:** Add list networks name schemas ([81fd94b](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/81fd94b)), closes [#GPS-192](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-192)
584
+
585
+ # [7.1.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v7.0.1...v7.1.0) (2019-07-08)
586
+
587
+
588
+ ### Features
589
+
590
+ * **documentation:** Add /networkAdmins/updateSelf documentation ([e9f7e3a](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/e9f7e3a)), closes [#GPS-193](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-193)
591
+ * **documentation:** Add /shopUsers/updateSelf documentation ([632d2e6](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/632d2e6)), closes [#GPS-194](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-194)
592
+ * **schemas:** Add network admin update self schemas ([7efa4fe](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/7efa4fe)), closes [#GPS-193](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-193)
593
+ * **schemas:** Add shop user update self schemas ([16367d8](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/16367d8)), closes [#GPS-194](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-194)
594
+
595
+ ## [7.0.1](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v7.0.0...v7.0.1) (2019-07-03)
596
+
597
+
598
+ ### Bug Fixes
599
+
600
+ * **documentation:** Fix example objects ([98d69ce](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/98d69ce))
601
+
602
+ # [7.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v6.0.1...v7.0.0) (2019-07-02)
603
+
604
+
605
+ ### Bug Fixes
606
+
607
+ * **shops:** Change the shop status format ([fd81c83](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/fd81c83))
608
+
609
+
610
+ ### BREAKING CHANGES
611
+
612
+ * **shops:** Shop status has changed to as single 'status' property
613
+
614
+ ## [6.0.1](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v6.0.0...v6.0.1) (2019-07-01)
615
+
616
+
617
+ ### Bug Fixes
618
+
619
+ * **schemas:** Fix typo in update shop schema that hide openingSchedule ([3853d94](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/3853d94))
620
+
621
+ # [6.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v5.0.0...v6.0.0) (2019-07-01)
622
+
623
+
624
+ ### Bug Fixes
625
+
626
+ * **schemas and documentation:** Change find shops by status to only accept 'enabled' or 'disabled' ([fc04514](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/fc04514))
627
+ * **schemas and documentation:** Change update shop 'disabled' to allow one item at a time ([dfed6c4](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/dfed6c4))
628
+
629
+
630
+ ### BREAKING CHANGES
631
+
632
+ * **schemas and documentation:** Update shop 'disable' array accepts only one item instead of an array
633
+ * **schemas and documentation:** Find shops by status no longer accepts 'manuallyDisabled' or 'disabledUntilSync',
634
+ instead 'disable' includes the three values
635
+
636
+ # [5.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v4.0.0...v5.0.0) (2019-06-27)
637
+
638
+
639
+ ### Bug Fixes
640
+
641
+ * **schemas:** Fix missing shop exports in schemas/index.js ([4e038d2](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/4e038d2))
642
+
643
+
644
+ ### Code Refactoring
645
+
646
+ * **schemas and documentation:** Refactor the entire API to not use endpoints based on role ([f14a2cf](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/f14a2cf))
647
+ * **shop schema:** Refactor shop status with an array of disabled reasons ([b77fe22](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/b77fe22)), closes [#GPS-65](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-65)
648
+
649
+
650
+ ### Features
651
+
652
+ * **documentation:** Add /networkAdmin/shops and /networkAdmin/shopUsers documentation ([145be2a](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/145be2a)), closes [#GPS-67](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-67)
653
+ * **documentation:** Add /superAdmin/shopUsers documentation ([c1328e2](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/c1328e2)), closes [#GPS-67](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-67)
654
+ * **schemas:** Add /networkAdmin/shops and /networkAdmin/shopUsers schemas ([6b5bca7](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/6b5bca7)), closes [#GPS-67](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-67)
655
+ * **schemas:** Add /superAdmin/shopUsers schemas ([b3699be](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/b3699be)), closes [#GPS-67](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-67)
656
+
657
+
658
+ ### BREAKING CHANGES
659
+
660
+ * **schemas and documentation:** All the endpoints have changed to not include the role
661
+ * **shop schema:** The shop schema has changed to a status and an array of disabled reasons
662
+
663
+ # [4.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v3.5.1...v4.0.0) (2019-06-21)
664
+
665
+
666
+ ### Features
667
+
668
+ * **documentation:** Add /superAdmin/shops documentation ([7d8e482](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/7d8e482)), closes [#GPS-65](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-65)
669
+ * **errors:** Add shop errors ([5b75920](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/5b75920)), closes [#GPS-65](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-65)
670
+ * **schemas:** Add createdAt when creating users and networks ([4941209](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/4941209)), closes [#GPS-180](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-180)
671
+ * **schemas:** Add gls.id to networks ([34de71f](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/34de71f)), closes [#GPS-183](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-183)
672
+ * **schemas:** Add shop CRUD schemas ([897668a](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/897668a)), closes [#GPS-65](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-65)
673
+ * **schemas:** Add shop schema ([8d57a97](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/8d57a97)), closes [#GPS-63](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-63)
674
+
675
+
676
+ ### BREAKING CHANGES
677
+
678
+ * **schemas:** creating a network now requires the gls.id property
679
+
680
+ ## [3.5.1](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v3.5.0...v3.5.1) (2019-06-12)
681
+
682
+
683
+ ### Bug Fixes
684
+
685
+ * **documentation:** Add missing user does not exist error response to /become ([db056c4](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/db056c4))
686
+
687
+ # [3.5.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v3.4.0...v3.5.0) (2019-06-12)
688
+
689
+
690
+ ### Features
691
+
692
+ * **/become:** Add schemas and documentation for /become ([6b0b850](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/6b0b850)), closes [#GPS-166](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-166)
693
+
694
+ # [3.4.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v3.3.0...v3.4.0) (2019-06-07)
695
+
696
+
697
+ ### Features
698
+
699
+ * **schemas:** Update users schemas can remove nif and address by setting them to null ([3d080fc](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/3d080fc))
700
+
701
+ # [3.3.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v3.2.0...v3.3.0) (2019-05-31)
702
+
703
+
704
+ ### Features
705
+
706
+ * **documentation:** Add versioning info and changelog link to the documentation ([3e16c43](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/3e16c43)), closes [#GPS-171](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-171)
707
+
708
+ # [3.2.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v3.1.0...v3.2.0) (2019-05-31)
709
+
710
+
711
+ ### Features
712
+
713
+ * **/login:** The login may return a network does not exist error ([0986b28](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/0986b28)), closes [#GPS-164](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-164)
714
+
715
+ # [3.1.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v3.0.0...v3.1.0) (2019-05-31)
716
+
717
+
718
+ ### Features
719
+
720
+ * **/login:** Add network admins login ([20a9031](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/20a9031)), closes [#GPS-164](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-164)
721
+
722
+ # [3.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v2.4.1...v3.0.0) (2019-05-31)
723
+
724
+
725
+ ### Bug Fixes
726
+
727
+ * **/superAdmin/users:** Change update user address to always require a valid full address ([b86613c](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/b86613c)), closes [#GPS-168](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-168)
728
+
729
+
730
+ ### Code Refactoring
731
+
732
+ * **documentation:** Split /superAdmin/users routes into superAdmin/superAdmins, superAdmin/netw ([5400ad2](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/5400ad2))
733
+ * **schemas:** Simplify schemas names, remove selfResponse schema (same as loginResponse) ([70ab16a](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/70ab16a))
734
+
735
+
736
+ ### BREAKING CHANGES
737
+
738
+ * **documentation:** /superAdmin/users routes are now superAdmin/superAdmins, superAdmin/networkAdmins
739
+ and /self
740
+ * **schemas:** The schemas names have changed and selfResponse has been removed
741
+ * **/superAdmin/users:** When updating a user address a fully valid address must be provided even if only
742
+ some fields change
743
+
744
+ ## [2.4.1](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v2.4.0...v2.4.1) (2019-05-31)
745
+
746
+
747
+ ### Bug Fixes
748
+
749
+ * **/superAdmin/users:** Fix the update of an address to ensure that the address is complete ([8f45e21](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/8f45e21)), closes [#GPS-168](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-168)
750
+
751
+ # [2.4.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v2.3.1...v2.4.0) (2019-05-29)
752
+
753
+
754
+ ### Bug Fixes
755
+
756
+ * **schemas:** Fix createNetworkRequest schema ([ecfeff6](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/ecfeff6))
757
+
758
+
759
+ ### Features
760
+
761
+ * **/networks:** Add network schema ([32d6559](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/32d6559)), closes [#GPS-40](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-40)
762
+ * **/superAdmin/networks:** Add /superAdmin/networks documentation ([daf925a](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/daf925a))
763
+ * **/superAdmin/users:** Add /superAdmin/users network admins CRUD ([0bee1cc](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/0bee1cc)), closes [#GPS-66](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-66)
764
+ * **errors:** Add network errors ([e1b0dcc](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/e1b0dcc))
765
+ * **schemas:** Add /superAdmin/networks CRUD schemas ([2f6d86c](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/2f6d86c)), closes [#GPS-54](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-54)
766
+ * **schemas:** Add networkAdmin schema ([00c09ab](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/00c09ab)), closes [#GPS-39](https://bitbucket.org/glsalbo/gls-parcel-shops-common/issue/GPS-39)
767
+
768
+ ## [2.3.1](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v2.3.0...v2.3.1) (2019-05-28)
769
+
770
+
771
+ ### Bug Fixes
772
+
773
+ * **errors:** Fix UserAlreadyExistsError class name ([8fcfe23](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/8fcfe23))
774
+
775
+ # [2.3.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v2.2.0...v2.3.0) (2019-05-27)
776
+
777
+
778
+ ### Features
779
+
780
+ * **/superAdmin/users:** Add schemas and documentation for super admins CRUD ([942491d](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/942491d))
781
+
782
+ # [2.2.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v2.1.1...v2.2.0) (2019-05-27)
783
+
784
+
785
+ ### Features
786
+
787
+ * **schemas:** Add error response schema ([83ccb98](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/83ccb98))
788
+
789
+ ## [2.1.1](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v2.1.0...v2.1.1) (2019-05-26)
790
+
791
+
792
+ ### Bug Fixes
793
+
794
+ * Fix initDatabaseResponse schema ([1ad8843](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/1ad8843))
795
+
796
+ # [2.1.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v2.0.0...v2.1.0) (2019-05-26)
797
+
798
+
799
+ ### Features
800
+
801
+ * Add user errors ([bcab83d](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/bcab83d))
802
+
803
+ # [2.0.0](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v1.0.3...v2.0.0) (2019-05-26)
804
+
805
+
806
+ ### Features
807
+
808
+ * Allow selective import of errors, open api spec and schemas ([4b5d85b](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/4b5d85b))
809
+
810
+
811
+ ### BREAKING CHANGES
812
+
813
+ * The schemas export is now an object instead of an array
814
+
815
+ ## [1.0.3](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v1.0.2...v1.0.3) (2019-05-24)
816
+
817
+
818
+ ### Bug Fixes
819
+
820
+ * **config:** Remove .npmrc ([340e682](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/340e682))
821
+
822
+ ## [1.0.2](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v1.0.1...v1.0.2) (2019-05-24)
823
+
824
+
825
+ ### Bug Fixes
826
+
827
+ * **config:** Add [@toomanymelons](https://bitbucket.org/toomanymelons) scope to package name ([46fa868](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/46fa868))
828
+
829
+ ## [1.0.1](https://bitbucket.org/glsalbo/gls-parcel-shops-common/compare/v1.0.0...v1.0.1) (2019-05-24)
830
+
831
+
832
+ ### Bug Fixes
833
+
834
+ * **config:** Set package.json private=false to allow publishing ([8b74590](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/8b74590))
835
+
836
+ # 1.0.0 (2019-05-23)
837
+
838
+
839
+ ### Features
840
+
841
+ * Initial version ([730f1ad](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/730f1ad))
842
+
843
+ # 1.0.0 (2019-05-23)
844
+
845
+
846
+ ### Features
847
+
848
+ * Initial version ([730f1ad](https://bitbucket.org/glsalbo/gls-parcel-shops-common/commits/730f1ad))