@gls_spain/gps-common 35.16.0 → 35.17.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.
@@ -17,14 +17,14 @@ jobs:
17
17
  # github.event.pull_request.user.login == 'external-contributor' ||
18
18
  # github.event.pull_request.user.login == 'new-developer' ||
19
19
  # github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
20
-
20
+
21
21
  runs-on: ubuntu-latest
22
22
  permissions:
23
23
  contents: read
24
24
  pull-requests: read
25
25
  issues: read
26
26
  id-token: write
27
-
27
+
28
28
  steps:
29
29
  - name: Checkout repository
30
30
  uses: actions/checkout@v4
@@ -33,12 +33,48 @@ jobs:
33
33
 
34
34
  - name: Run Claude Code Review
35
35
  id: claude-review
36
- uses: anthropics/claude-code-action@v1
36
+ uses: anthropics/claude-code-action@beta
37
37
  with:
38
38
  claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
39
- plugin_marketplaces: 'https://github.com/anthropics/claude-code.git'
40
- plugins: 'code-review@claude-code-plugins'
41
- prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}'
42
- # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
43
- # or https://code.claude.com/docs/en/cli-reference for available options
44
39
 
40
+ # Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4.1)
41
+ # model: "claude-opus-4-1-20250805"
42
+
43
+ # Direct prompt for automated review (no @claude mention needed)
44
+ direct_prompt: |
45
+ Actúa como un code reviewer senior exigente pero constructivo.Por favor revisa esta pull request y provee feedback en base a estas dimensiones:
46
+ - Calidad del código y mejores prácticas
47
+ - Posibles errores o problemas
48
+ - Consideraciones de rendimiento
49
+ - Preocupaciones de seguridad
50
+
51
+ Sé constructivo y útil en tus comentarios.
52
+
53
+ Al final, da una puntuación global de 1 a 10 con un resumen de una línea.
54
+
55
+ El idioma a usar es el español.
56
+
57
+ # Optional: Use sticky comments to make Claude reuse the same comment on subsequent pushes to the same PR
58
+ use_sticky_comment: false
59
+
60
+ # Optional: Customize review based on file types
61
+ # direct_prompt: |
62
+ # Review this PR focusing on:
63
+ # - For TypeScript files: Type safety and proper interface usage
64
+ # - For API endpoints: Security, input validation, and error handling
65
+ # - For React components: Performance, accessibility, and best practices
66
+ # - For tests: Coverage, edge cases, and test quality
67
+
68
+ # Optional: Different prompts for different authors
69
+ # direct_prompt: |
70
+ # ${{ github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR' &&
71
+ # 'Welcome! Please review this PR from a first-time contributor. Be encouraging and provide detailed explanations for any suggestions.' ||
72
+ # 'Please provide a thorough code review focusing on our coding standards and best practices.' }}
73
+
74
+ # Optional: Add specific tools for running tests or linting
75
+ # allowed_tools: "Bash(npm run test),Bash(npm run lint),Bash(npm run typecheck)"
76
+
77
+ # Optional: Skip review for certain conditions
78
+ # if: |
79
+ # !contains(github.event.pull_request.title, '[skip-review]') &&
80
+ # !contains(github.event.pull_request.title, '[WIP]')
@@ -32,19 +32,32 @@ jobs:
32
32
 
33
33
  - name: Run Claude Code
34
34
  id: claude
35
- uses: anthropics/claude-code-action@v1
35
+ uses: anthropics/claude-code-action@beta
36
36
  with:
37
37
  claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
38
38
 
39
39
  # This is an optional setting that allows Claude to read CI results on PRs
40
40
  additional_permissions: |
41
41
  actions: read
42
-
43
- # Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it.
44
- # prompt: 'Update the pull request description to include a summary of changes.'
45
-
46
- # Optional: Add claude_args to customize behavior and configuration
47
- # See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
48
- # or https://code.claude.com/docs/en/cli-reference for available options
49
- # claude_args: '--allowed-tools Bash(gh pr:*)'
50
-
42
+
43
+ # Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4.1)
44
+ # model: "claude-opus-4-1-20250805"
45
+
46
+ # Optional: Customize the trigger phrase (default: @claude)
47
+ # trigger_phrase: "/claude"
48
+
49
+ # Optional: Trigger when specific user is assigned to an issue
50
+ # assignee_trigger: "claude-bot"
51
+
52
+ # Optional: Allow Claude to run specific commands
53
+ # allowed_tools: "Bash(npm install),Bash(npm run build),Bash(npm run test:*),Bash(npm run lint:*)"
54
+
55
+ # Optional: Add custom instructions for Claude to customize its behavior for your project
56
+ # custom_instructions: |
57
+ # Follow our coding standards
58
+ # Ensure all new code has tests
59
+ # Use TypeScript for new files
60
+
61
+ # Optional: Custom environment variables for Claude
62
+ # claude_env: |
63
+ # NODE_ENV: test
package/CHANGELOG.md CHANGED
@@ -1,10 +1,42 @@
1
- # [35.16.0](https://github.com/GLS-Spain/gps-common/compare/v35.15.10...v35.16.0) (2026-04-10)
1
+ # [35.17.0](https://github.com/GLS-Spain/gps-common/compare/v35.16.0...v35.17.0) (2026-05-04)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * ajustar body de salesforce ([1f5072c](https://github.com/GLS-Spain/gps-common/commit/1f5072cd2abeefbeaa4ab4909df75184c9465959))
7
+ * quitar validacion de pod para entrega DTT ([688af4f](https://github.com/GLS-Spain/gps-common/commit/688af4fbc68139bf61012c086a1d2ad52dc6116e))
8
+ * quitar validacion de pod en customerWithPod para entrega DTT ([6ae1db1](https://github.com/GLS-Spain/gps-common/commit/6ae1db1ec0767bed6b0976b8ad44f99678ea9c36))
2
9
 
3
10
 
4
11
  ### Features
5
12
 
6
- * add optional per-service rates (delivery, pickup, s2s) to derivationRate ([1e8af9c](https://github.com/GLS-Spain/gps-common/commit/1e8af9c1ec10f21b79a30513b9d15de3cc0d8910))
13
+ * upgrade version common fix bug version ([b23a3c7](https://github.com/GLS-Spain/gps-common/commit/b23a3c7abeff91f47d9aec73006c7c7456332e34))
14
+
15
+ ## [35.16.1](https://github.com/GLS-Spain/gps-common/compare/v35.16.0...v35.16.1) (2026-05-04)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * ajustar body de salesforce ([1f5072c](https://github.com/GLS-Spain/gps-common/commit/1f5072cd2abeefbeaa4ab4909df75184c9465959))
21
+ * quitar validacion de pod para entrega DTT ([688af4f](https://github.com/GLS-Spain/gps-common/commit/688af4fbc68139bf61012c086a1d2ad52dc6116e))
22
+ * quitar validacion de pod en customerWithPod para entrega DTT ([6ae1db1](https://github.com/GLS-Spain/gps-common/commit/6ae1db1ec0767bed6b0976b8ad44f99678ea9c36))
23
+
24
+ ## [35.16.1](https://github.com/GLS-Spain/gps-common/compare/v35.16.0...v35.16.1) (2026-05-04)
7
25
 
26
+
27
+ ### Bug Fixes
28
+
29
+ * ajustar body de salesforce ([1f5072c](https://github.com/GLS-Spain/gps-common/commit/1f5072cd2abeefbeaa4ab4909df75184c9465959))
30
+ * quitar validacion de pod para entrega DTT ([688af4f](https://github.com/GLS-Spain/gps-common/commit/688af4fbc68139bf61012c086a1d2ad52dc6116e))
31
+ * quitar validacion de pod en customerWithPod para entrega DTT ([6ae1db1](https://github.com/GLS-Spain/gps-common/commit/6ae1db1ec0767bed6b0976b8ad44f99678ea9c36))
32
+
33
+ # [35.16.0](https://github.com/GLS-Spain/gps-common/compare/v35.15.10...v35.16.0) (2026-04-10)
34
+
35
+
36
+ ### Features
37
+
38
+ * add optional per-service rates (delivery, pickup, s2s) to derivationRate ([1e8af9c](https://github.com/GLS-Spain/gps-common/commit/1e8af9c1ec10f21b79a30513b9d15de3cc0d8910))
39
+
8
40
  ## [35.15.10](https://github.com/GLS-Spain/gps-common/compare/v35.15.9...v35.15.10) (2026-03-13)
9
41
 
10
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "35.16.0",
3
+ "version": "35.17.0",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "keywords": [
6
6
  "gls"
@@ -92,7 +92,7 @@ const customer = () => ({
92
92
  barcode: { type: 'string', trim: true },
93
93
  pod: objectWithUuid(),
94
94
  },
95
- required: ['name', 'nif', 'pod'],
95
+ required: ['name', 'nif'],
96
96
  additionalProperties: false,
97
97
  });
98
98
 
@@ -104,7 +104,7 @@ const customerWithPod = () => ({
104
104
  barcode: { type: 'string', trim: true },
105
105
  pod: { type: 'string', contentMediaType: 'image/jpg', contentEncoding: 'base64' },
106
106
  },
107
- required: ['name', 'nif', 'pod'],
107
+ required: ['name', 'nif'],
108
108
  additionalProperties: false,
109
109
  });
110
110
 
@@ -771,7 +771,6 @@ const createLockerRequest = () =>
771
771
  locality: { type: 'string', trim: true, maxLength: 100 },
772
772
  // ✅ código país ISO 3166-1 alpha-2/3
773
773
  country: { type: 'string', trim: true, maxLength: 3 },
774
- access_descript_locker: { type: 'string', trim: true, maxLength: 500 },
775
774
  location: {
776
775
  type: 'object',
777
776
  properties: {
@@ -821,7 +820,6 @@ const createLockerRequest = () =>
821
820
  door: { type: 'string', trim: true, maxLength: 20 },
822
821
  postalCode: { type: 'string', trim: true, maxLength: 15 },
823
822
  locality: { type: 'string', trim: true, maxLength: 100 },
824
- // ✅ añadido country que faltaba y causaba el 400
825
823
  country: { type: 'string', trim: true, maxLength: 3 },
826
824
  },
827
825
  required: ['street', 'postalCode', 'locality', 'country'],
@@ -833,7 +831,7 @@ const createLockerRequest = () =>
833
831
  activity: { type: 'string', trim: true, maxLength: 50 },
834
832
  retention: { type: 'integer' },
835
833
  },
836
- required: ['iban', 'businessName', 'nif', 'contacts', 'address', 'dueDays', 'retention'],
834
+ required: ['contacts', 'address', 'dueDays'],
837
835
  additionalProperties: false,
838
836
  },
839
837
 
@@ -958,14 +956,6 @@ const createLockerRequest = () =>
958
956
  });
959
957
 
960
958
 
961
-
962
-
963
-
964
-
965
-
966
-
967
-
968
-
969
959
  const createLockerResponse = () => createResponse(locker());
970
960
 
971
961
  const updateLockerRequest = () =>
@@ -1025,7 +1015,11 @@ const updateLockerRequest = () =>
1025
1015
  required: ['street', 'postalCode', 'locality', 'country', 'location'],
1026
1016
  additionalProperties: false,
1027
1017
  }),
1028
-
1018
+ capabilities: {
1019
+ type: 'array',
1020
+ items: { type: 'string', enum: ['deliver', 'pickup', 'sell', 'sellplus'] },
1021
+ uniqueItems: true,
1022
+ },
1029
1023
  openingSchedule: schemaOrNull(shop().properties.openingSchedule),
1030
1024
  timezone: schemaOrNull(shop().properties.timezone),
1031
1025
  activity: schemaOrNull(shop().properties.activity),
@@ -1048,7 +1042,6 @@ const updateLockerRequest = () =>
1048
1042
  door: { type: 'string', trim: true, maxLength: 20 },
1049
1043
  postalCode: { type: 'string', trim: true, maxLength: 15 },
1050
1044
  locality: { type: 'string', trim: true, maxLength: 100 },
1051
- // ✅ country declarado explícitamente — evita additionalProperties 400
1052
1045
  country: { type: 'string', trim: true, maxLength: 3 },
1053
1046
  },
1054
1047
  required: ['street', 'postalCode', 'locality', 'country'],
@@ -1059,7 +1052,8 @@ const updateLockerRequest = () =>
1059
1052
  activity: { type: 'string', trim: true, maxLength: 50 },
1060
1053
  retention: { type: 'integer' },
1061
1054
  },
1062
- required: ['iban', 'businessName', 'nif', 'contacts', 'address', 'dueDays', 'retention'],
1055
+ // iban y nif fuera de required
1056
+ required: ['contacts', 'address', 'dueDays'],
1063
1057
  additionalProperties: false,
1064
1058
  }),
1065
1059
 
@@ -1150,10 +1144,10 @@ const updateLockerRequest = () =>
1150
1144
  // ✅ Nombre varchar(100) — ps_puntos Apolo
1151
1145
  lockerName: { type: 'string', trim: true, maxLength: 100 },
1152
1146
  activationDate: { type: 'string', format: 'date-time' },
1153
- // ✅ UUID 36 chars
1147
+ // [6] lockerId fuera de required — el body real de updateLocker no lo envía
1154
1148
  lockerId: { type: 'string', maxLength: 36 },
1155
1149
  },
1156
- required: ['lockerName', 'lockerId'],
1150
+ required: ['lockerName'],
1157
1151
  additionalProperties: false,
1158
1152
  },
1159
1153
 
@@ -1171,7 +1165,6 @@ const updateLockerRequest = () =>
1171
1165
  const updateLockerResponse = () => updateResponse(locker());
1172
1166
 
1173
1167
 
1174
-
1175
1168
  module.exports = {
1176
1169
  shop,
1177
1170
  locker,