@gls_spain/gps-common 34.30.4 → 34.31.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,31 +1,45 @@
1
- ## [34.30.4](https://github.com/GLS-Spain/gps-common/compare/v34.30.3...v34.30.4) (2023-05-23)
1
+ # [34.31.0](https://github.com/GLS-Spain/gps-common/compare/v34.30.5...v34.31.0) (2023-07-31)
2
2
 
3
3
 
4
- ### Bug Fixes
4
+ ### Features
5
5
 
6
- * add atvalidation ([51f4425](https://github.com/GLS-Spain/gps-common/commit/51f4425c069b7a2deb54b532d7eb88542a16d941))
7
-
8
- ## [34.30.3](https://github.com/GLS-Spain/gps-common/compare/v34.30.2...v34.30.3) (2023-05-19)
9
-
10
-
11
- ### Bug Fixes
12
-
13
- * add qractive to another place ([0c1ea64](https://github.com/GLS-Spain/gps-common/commit/0c1ea64c6b2b4f5d309c291caa406f4d1d9dd136))
14
-
15
- ## [34.30.2](https://github.com/GLS-Spain/gps-common/compare/v34.30.1...v34.30.2) (2023-05-17)
16
-
17
-
18
- ### Bug Fixes
19
-
20
- * add new field "QRactive_to" to expedition ([ed8d520](https://github.com/GLS-Spain/gps-common/commit/ed8d52005e4d28d009343f92e94f8bda2859a4d1))
21
-
22
- ## [34.30.1](https://github.com/GLS-Spain/gps-common/compare/v34.30.0...v34.30.1) (2023-04-20)
23
-
24
-
25
- ### Bug Fixes
26
-
27
- * add fields to status.manuallyDisabled in shop ([d979a8e](https://github.com/GLS-Spain/gps-common/commit/d979a8e00019a4c52c7b74f70067624f2a530c88))
6
+ * add required filds to schema ([b68c30e](https://github.com/GLS-Spain/gps-common/commit/b68c30eddf6dd9acf89e01a589181c2480a88897))
28
7
 
8
+ ## [34.30.5](https://github.com/GLS-Spain/gps-common/compare/v34.30.4...v34.30.5) (2023-06-14)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add fourteenService ([3ea355e](https://github.com/GLS-Spain/gps-common/commit/3ea355ecdf899a0bc78f20751cccbafbfb819404))
14
+
15
+ ## [34.30.4](https://github.com/GLS-Spain/gps-common/compare/v34.30.3...v34.30.4) (2023-05-23)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * add atvalidation ([51f4425](https://github.com/GLS-Spain/gps-common/commit/51f4425c069b7a2deb54b532d7eb88542a16d941))
21
+
22
+ ## [34.30.3](https://github.com/GLS-Spain/gps-common/compare/v34.30.2...v34.30.3) (2023-05-19)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * add qractive to another place ([0c1ea64](https://github.com/GLS-Spain/gps-common/commit/0c1ea64c6b2b4f5d309c291caa406f4d1d9dd136))
28
+
29
+ ## [34.30.2](https://github.com/GLS-Spain/gps-common/compare/v34.30.1...v34.30.2) (2023-05-17)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * add new field "QRactive_to" to expedition ([ed8d520](https://github.com/GLS-Spain/gps-common/commit/ed8d52005e4d28d009343f92e94f8bda2859a4d1))
35
+
36
+ ## [34.30.1](https://github.com/GLS-Spain/gps-common/compare/v34.30.0...v34.30.1) (2023-04-20)
37
+
38
+
39
+ ### Bug Fixes
40
+
41
+ * add fields to status.manuallyDisabled in shop ([d979a8e](https://github.com/GLS-Spain/gps-common/commit/d979a8e00019a4c52c7b74f70067624f2a530c88))
42
+
29
43
  # [34.30.0](https://github.com/GLS-Spain/gps-common/compare/v34.29.0...v34.30.0) (2023-02-01)
30
44
 
31
45
 
package/README.md CHANGED
@@ -51,17 +51,17 @@ validator.addSchema(loginResponse);
51
51
 
52
52
  const myResponse = {
53
53
  user: {
54
- _id: '2d34620b-c67d-42ec-853d-2541a964df56',
55
- createdAt: '2019-05-23 09:00:00',
56
- updatedAt: '2019-05-23 09:00:00',
57
- username: 'bob',
58
- deletable: false,
59
- loginEnabled: true,
60
- role: 'superAdmin',
61
- name: 'Super administrator',
62
- emails: [],
63
- phones: [],
64
- }
54
+ _id: '2d34620b-c67d-42ec-853d-2541a964df56',
55
+ createdAt: '2019-05-23 09:00:00',
56
+ updatedAt: '2019-05-23 09:00:00',
57
+ username: 'bob',
58
+ deletable: false,
59
+ loginEnabled: true,
60
+ role: 'superAdmin',
61
+ name: 'Super administrator',
62
+ emails: [],
63
+ phones: [],
64
+ },
65
65
  };
66
66
 
67
67
  const valid = validator.validate(loginResponse, myResponse); // true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "34.30.4",
3
+ "version": "34.31.0",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -46,6 +46,7 @@
46
46
  "@gls_spain/ajv-options": "^1.1.2",
47
47
  "@gls_spain/common-errors": "^1.1.0",
48
48
  "@gls_spain/common-json-schemas": "^1.2.4",
49
+ "@gls_spain/gps-common": "^34.30.5",
49
50
  "@gls_spain/mongodb": "^1.2.0",
50
51
  "@gls_spain/winston-transports": "^1.0.2",
51
52
  "lodash": "^4.17.21",
@@ -47,7 +47,9 @@ const expirationSettings = () => ({
47
47
 
48
48
  const saleSize = () => ({
49
49
  type: 'string',
50
- enum: ['envelope', 'xs', 's', 'm', 'l', 'xl', 'letter', 'M1', 'M2', 'M3', 'fourteen'],
50
+ // enum: ['envelope', 'xs', 's', 'm', 'l', 'xl', 'letter', 'M1', 'M2', 'M3', 'fourteen'],
51
+ // 2023-06-07 JLA quito "fourteen", es un flag, no una talla
52
+ enum: ['envelope', 'xs', 's', 'm', 'l', 'xl', 'letter', 'M1', 'M2', 'M3'],
51
53
  });
52
54
 
53
55
  const saleZoneRegion = () => ({
@@ -121,7 +123,7 @@ const defaults = () => ({
121
123
  derivationSettings: derivationSettings(),
122
124
  expirationSettings: expirationSettings(),
123
125
  salesSettings: salesSettings(),
124
- ATvalidation: {type: 'string'}
126
+ ATvalidation: { type: 'string' },
125
127
  },
126
128
  required: ['_id', 'createdAt', 'updatedAt', 'deletable', 'derivationSettings', 'expirationSettings', 'salesSettings'],
127
129
  additionalProperties: false,
@@ -69,6 +69,7 @@ const sale = () => ({
69
69
  phones: { type: 'array', items: phone(), uniqueItems: true },
70
70
  observations: { type: 'string', trim: true },
71
71
  notes: { type: 'string', trim: true },
72
+ // suitcasetag: { type: 'string', trim: true, uniqueItems: true },
72
73
  },
73
74
  required: ['name', 'address', 'emails', 'phones'],
74
75
  additionalProperties: false,
@@ -209,6 +210,8 @@ const checkSalePriceRequest = () => ({
209
210
  size: saleSize(),
210
211
  country: country(),
211
212
  postalCode: { type: 'string', trim: true },
213
+ // 2023-06-07 JLA, añado fourteen como flag (opcional)
214
+ fourteenService: { type: 'boolean' },
212
215
  },
213
216
  required: ['size', 'country', 'postalCode'],
214
217
  additionalProperties: false,
@@ -317,7 +317,7 @@ const createShopRequest = () =>
317
317
  'clientCode',
318
318
  ]),
319
319
  },
320
- required: ['network', 'status', 'name', 'address', 'openingSchedule', 'timezone'],
320
+ required: ['network','activity', 'status','contacts', 'name', 'address', 'openingSchedule', 'timezone','managingRepresentative','openingRepresentative'],
321
321
  additionalProperties: false,
322
322
  });
323
323
 
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  const fs = require('fs');
4
4
  const path = require('path');
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  const fs = require('fs');
4
4
  const path = require('path');