@gls_spain/gps-common 35.2.0 → 35.3.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 +44 -30
- package/package.json +1 -1
- package/schemas/definitions/sales.js +14 -1
- package/schemas/definitions/shops.js +20 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,38 +1,52 @@
|
|
|
1
|
-
# [35.
|
|
1
|
+
# [35.3.0](https://github.com/GLS-Spain/gps-common/compare/v35.2.1...v35.3.0) (2024-07-22)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Features
|
|
5
5
|
|
|
6
|
-
* add
|
|
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
|
-
|
|
15
|
-
## [35.1.10](https://github.com/GLS-Spain/gps-common/compare/v35.1.9...v35.1.10) (2024-06-20)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
### Bug Fixes
|
|
19
|
-
|
|
20
|
-
* add new error "password must be diferent from the previus" for force change pass PS ([86c918e](https://github.com/GLS-Spain/gps-common/commit/86c918e73c19f406ee938a33d2db5754f60cd52a))
|
|
21
|
-
|
|
22
|
-
## [35.1.9](https://github.com/GLS-Spain/gps-common/compare/v35.1.8...v35.1.9) (2024-06-11)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
### Bug Fixes
|
|
26
|
-
|
|
27
|
-
* add new field to holidays for exportInternational ([8826095](https://github.com/GLS-Spain/gps-common/commit/882609532d43b0b91d5751b31aa5f0bafca00058))
|
|
28
|
-
|
|
29
|
-
## [35.1.8](https://github.com/GLS-Spain/gps-common/compare/v35.1.7...v35.1.8) (2024-06-04)
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
### Bug Fixes
|
|
33
|
-
|
|
34
|
-
* add new fields to shop radical and operations ([5bfcebd](https://github.com/GLS-Spain/gps-common/commit/5bfcebd3ffd6a65951a4f2e9c7d0c797ad2f79cc))
|
|
6
|
+
* add: channeling agency field ([59d79e7](https://github.com/GLS-Spain/gps-common/commit/59d79e715450a6a28076a0f1f98a24549cf26c95))
|
|
35
7
|
|
|
8
|
+
## [35.2.1](https://github.com/GLS-Spain/gps-common/compare/v35.2.0...v35.2.1) (2024-07-16)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* fix object of parcelShopData ([2f52902](https://github.com/GLS-Spain/gps-common/commit/2f52902fe89a524039071589a1e57f2de183f82a))
|
|
14
|
+
|
|
15
|
+
# [35.2.0](https://github.com/GLS-Spain/gps-common/compare/v35.1.11...v35.2.0) (2024-07-16)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* add new fields for s2s ([0ac3b06](https://github.com/GLS-Spain/gps-common/commit/0ac3b065e58399c5520c518d03afdc451450242c))
|
|
21
|
+
|
|
22
|
+
## [35.1.11](https://github.com/GLS-Spain/gps-common/compare/v35.1.10...v35.1.11) (2024-06-22)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Bug Fixes
|
|
26
|
+
|
|
27
|
+
* add new field to create and update passwordExpired ([46b9377](https://github.com/GLS-Spain/gps-common/commit/46b937794278182051b912bbaea1e5009011d662))
|
|
28
|
+
|
|
29
|
+
## [35.1.10](https://github.com/GLS-Spain/gps-common/compare/v35.1.9...v35.1.10) (2024-06-20)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Bug Fixes
|
|
33
|
+
|
|
34
|
+
* add new error "password must be diferent from the previus" for force change pass PS ([86c918e](https://github.com/GLS-Spain/gps-common/commit/86c918e73c19f406ee938a33d2db5754f60cd52a))
|
|
35
|
+
|
|
36
|
+
## [35.1.9](https://github.com/GLS-Spain/gps-common/compare/v35.1.8...v35.1.9) (2024-06-11)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Bug Fixes
|
|
40
|
+
|
|
41
|
+
* add new field to holidays for exportInternational ([8826095](https://github.com/GLS-Spain/gps-common/commit/882609532d43b0b91d5751b31aa5f0bafca00058))
|
|
42
|
+
|
|
43
|
+
## [35.1.8](https://github.com/GLS-Spain/gps-common/compare/v35.1.7...v35.1.8) (2024-06-04)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Bug Fixes
|
|
47
|
+
|
|
48
|
+
* add new fields to shop radical and operations ([5bfcebd](https://github.com/GLS-Spain/gps-common/commit/5bfcebd3ffd6a65951a4f2e9c7d0c797ad2f79cc))
|
|
49
|
+
|
|
36
50
|
## [35.1.7](https://github.com/GLS-Spain/gps-common/compare/v35.1.6...v35.1.7) (2024-05-28)
|
|
37
51
|
|
|
38
52
|
|
package/package.json
CHANGED
|
@@ -70,7 +70,7 @@ const sale = () => ({
|
|
|
70
70
|
phones: { type: 'array', items: phone(), uniqueItems: true },
|
|
71
71
|
observations: { type: 'string', trim: true },
|
|
72
72
|
notes: { type: 'string', trim: true },
|
|
73
|
-
parcelShopData:
|
|
73
|
+
parcelShopData: parcelShopData(),
|
|
74
74
|
// suitcasetag: { type: 'string', trim: true, uniqueItems: true },
|
|
75
75
|
},
|
|
76
76
|
required: ['name', 'address', 'emails', 'phones'],
|
|
@@ -266,6 +266,19 @@ const downloadSaleLabelResponse = () => ({
|
|
|
266
266
|
additionalProperties: false,
|
|
267
267
|
});
|
|
268
268
|
|
|
269
|
+
const parcelShopData = () => ({
|
|
270
|
+
type: 'object',
|
|
271
|
+
properties: {
|
|
272
|
+
_id: uuid(),
|
|
273
|
+
email: { type: 'string' },
|
|
274
|
+
name:{ type: 'string' },
|
|
275
|
+
phone:{ type: 'string' },
|
|
276
|
+
postalCode:{ type: 'string' },
|
|
277
|
+
|
|
278
|
+
},
|
|
279
|
+
required: ['_id', 'email','name', 'phone','postalCode'],
|
|
280
|
+
});
|
|
281
|
+
|
|
269
282
|
const paymentRequest = () => ({
|
|
270
283
|
type: 'object',
|
|
271
284
|
properties: {
|
|
@@ -83,7 +83,7 @@ const shopHoliday = () => ({
|
|
|
83
83
|
to: datetime(),
|
|
84
84
|
description: { type: 'string' },
|
|
85
85
|
createAt: datetime(),
|
|
86
|
-
_idHolidaysInternational:uuid(),
|
|
86
|
+
_idHolidaysInternational: uuid(),
|
|
87
87
|
},
|
|
88
88
|
required: ['from', 'to', '_id', 'createAt'],
|
|
89
89
|
additionalProperties: false,
|
|
@@ -267,6 +267,8 @@ const shop = () => ({
|
|
|
267
267
|
// TODO en el momento que el frontend sea capaz de mandar integer, se quita "string"
|
|
268
268
|
squareCode: { type: ['integer', 'string'], minimum: 0, maximum: 32767, description: 'agency code' },
|
|
269
269
|
clientCode: { type: ['integer', 'string'], minimum: 0, description: 'client code' },
|
|
270
|
+
// 2024-07-22 JJC campo de agencia de canalización
|
|
271
|
+
chanellingAgencyCode: { type: 'integer', minimum: 0 },
|
|
270
272
|
},
|
|
271
273
|
required: [
|
|
272
274
|
'_id',
|
|
@@ -339,6 +341,7 @@ const createShopRequest = () =>
|
|
|
339
341
|
'operations',
|
|
340
342
|
'squareCode',
|
|
341
343
|
'clientCode',
|
|
344
|
+
'chanellingAgencyCode',
|
|
342
345
|
]),
|
|
343
346
|
},
|
|
344
347
|
required: ['network', 'status', 'name', 'address', 'openingSchedule', 'timezone'],
|
|
@@ -441,8 +444,21 @@ const updateShopRequest = () =>
|
|
|
441
444
|
status: setShopStatus(),
|
|
442
445
|
...pickProperties(
|
|
443
446
|
shop(),
|
|
444
|
-
[
|
|
445
|
-
|
|
447
|
+
[
|
|
448
|
+
'name',
|
|
449
|
+
'address',
|
|
450
|
+
'capabilities',
|
|
451
|
+
'openingSchedule',
|
|
452
|
+
'holidays',
|
|
453
|
+
'contacts',
|
|
454
|
+
'eco',
|
|
455
|
+
'gold',
|
|
456
|
+
'radical',
|
|
457
|
+
'operations',
|
|
458
|
+
'squareCode',
|
|
459
|
+
'clientCode',
|
|
460
|
+
],
|
|
461
|
+
['fiscal', 'activity', 'notes', 'derivationSettings', 'expirationSettings', 'chanellingAgencyCode'],
|
|
446
462
|
),
|
|
447
463
|
},
|
|
448
464
|
minProperties: 1,
|
|
@@ -493,6 +509,7 @@ const upsertShopRequest = () => ({
|
|
|
493
509
|
'operations',
|
|
494
510
|
'squareCode',
|
|
495
511
|
'clientCode',
|
|
512
|
+
'chanellingAgencyCode',
|
|
496
513
|
]),
|
|
497
514
|
},
|
|
498
515
|
required: ['network', 'status', 'name', 'address'],
|