@gls_spain/gps-common 35.1.10 → 35.2.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,3 +1,17 @@
1
+ # [35.2.0](https://github.com/GLS-Spain/gps-common/compare/v35.1.11...v35.2.0) (2024-07-16)
2
+
3
+
4
+ ### Features
5
+
6
+ * add new fields for s2s ([0ac3b06](https://github.com/GLS-Spain/gps-common/commit/0ac3b065e58399c5520c518d03afdc451450242c))
7
+
8
+ ## [35.1.11](https://github.com/GLS-Spain/gps-common/compare/v35.1.10...v35.1.11) (2024-06-22)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add new field to create and update passwordExpired ([46b9377](https://github.com/GLS-Spain/gps-common/commit/46b937794278182051b912bbaea1e5009011d662))
14
+
1
15
  ## [35.1.10](https://github.com/GLS-Spain/gps-common/compare/v35.1.9...v35.1.10) (2024-06-20)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "35.1.10",
3
+ "version": "35.2.0",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -53,6 +53,7 @@ const sale = () => ({
53
53
  additionalProperties: false,
54
54
  },
55
55
  size: saleSize(),
56
+ isS2S: { type: 'boolean' },
56
57
  fourteenService: { type: 'boolean' },
57
58
  official_invoice: { type: 'boolean' },
58
59
  referenceTypeSix: { type: 'string' },
@@ -69,6 +70,7 @@ const sale = () => ({
69
70
  phones: { type: 'array', items: phone(), uniqueItems: true },
70
71
  observations: { type: 'string', trim: true },
71
72
  notes: { type: 'string', trim: true },
73
+ parcelShopData: uuid(),
72
74
  // suitcasetag: { type: 'string', trim: true, uniqueItems: true },
73
75
  },
74
76
  required: ['name', 'address', 'emails', 'phones'],
@@ -170,6 +172,7 @@ const createSaleRequest = () =>
170
172
  'destination',
171
173
  'sender',
172
174
  'price',
175
+ 'isS2S',
173
176
  ]),
174
177
  },
175
178
  required: ['size', 'destination', 'sender'],
@@ -214,6 +214,7 @@ const createShopUserRequest = () =>
214
214
  properties: {
215
215
  ...pickProperties(shopUser(), ['_id', 'createdAt', 'username', 'loginEnabled', 'name', 'emails', 'phones', 'nif', 'address']),
216
216
  password: password(),
217
+ passwordExpired: { type: 'string', trim: true },
217
218
  },
218
219
  required: ['username', 'loginEnabled', 'name', 'password'],
219
220
  additionalProperties: false,
@@ -260,6 +261,7 @@ const updateShopUserRequest = () =>
260
261
  properties: {
261
262
  ...pickProperties(shopUser(), ['loginEnabled', 'name', 'emails', 'phones'], ['nif', 'address']),
262
263
  password: password(),
264
+ passwordExpired: { type: 'string',trim: true },
263
265
  },
264
266
  minProperties: 1,
265
267
  additionalProperties: false,