@gls_spain/gps-common 34.8.0 → 34.8.1
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/.idea/workspace.xml +4 -7
- package/CHANGELOG.md +7 -0
- package/open-api-spec/index.js +4 -7
- package/package.json +1 -1
- package/schemas/definitions/expeditions.js +17 -0
- package/schemas/definitions/sales.js +17 -0
- package/schemas/index.js +6 -0
package/.idea/workspace.xml
CHANGED
|
@@ -2,12 +2,7 @@
|
|
|
2
2
|
<project version="4">
|
|
3
3
|
<component name="ChangeListManager">
|
|
4
4
|
<list default="true" id="c2833e40-3178-44f3-9bc5-203849985c7f" name="Default Changelist" comment="">
|
|
5
|
-
<change afterPath="$PROJECT_DIR$/.idea/prettier.xml" afterDir="false" />
|
|
6
|
-
<change afterPath="$PROJECT_DIR$/errors/LabelDoesNotExistError.js" afterDir="false" />
|
|
7
|
-
<change beforePath="$PROJECT_DIR$/.idea/watcherTasks.xml" beforeDir="false" />
|
|
8
|
-
<change beforePath="$PROJECT_DIR$/errors/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/errors/index.js" afterDir="false" />
|
|
9
5
|
<change beforePath="$PROJECT_DIR$/open-api-spec/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/open-api-spec/index.js" afterDir="false" />
|
|
10
|
-
<change beforePath="$PROJECT_DIR$/package-lock.json" beforeDir="false" afterPath="$PROJECT_DIR$/package-lock.json" afterDir="false" />
|
|
11
6
|
<change beforePath="$PROJECT_DIR$/schemas/definitions/expeditions.js" beforeDir="false" afterPath="$PROJECT_DIR$/schemas/definitions/expeditions.js" afterDir="false" />
|
|
12
7
|
<change beforePath="$PROJECT_DIR$/schemas/definitions/sales.js" beforeDir="false" afterPath="$PROJECT_DIR$/schemas/definitions/sales.js" afterDir="false" />
|
|
13
8
|
<change beforePath="$PROJECT_DIR$/schemas/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/schemas/index.js" afterDir="false" />
|
|
@@ -131,8 +126,8 @@
|
|
|
131
126
|
<recent_temporary>
|
|
132
127
|
<list>
|
|
133
128
|
<item itemvalue="npm.build-documentation" />
|
|
134
|
-
<item itemvalue="npm.test" />
|
|
135
129
|
<item itemvalue="JavaScript Debug.documentation.html (1)" />
|
|
130
|
+
<item itemvalue="npm.test" />
|
|
136
131
|
<item itemvalue="npm.semantic-release" />
|
|
137
132
|
<item itemvalue="npm.commit" />
|
|
138
133
|
</list>
|
|
@@ -651,7 +646,9 @@
|
|
|
651
646
|
<workItem from="1606477130384" duration="74000" />
|
|
652
647
|
<workItem from="1606835326733" duration="48000" />
|
|
653
648
|
<workItem from="1607951320583" duration="589000" />
|
|
654
|
-
<workItem from="1610108917407" duration="
|
|
649
|
+
<workItem from="1610108917407" duration="2502000" />
|
|
650
|
+
<workItem from="1610134729440" duration="18000" />
|
|
651
|
+
<workItem from="1610542075615" duration="374000" />
|
|
655
652
|
</task>
|
|
656
653
|
<servers />
|
|
657
654
|
</component>
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [34.8.1](https://github.com/GLS-Spain/gps-common/compare/v34.8.0...v34.8.1) (2021-01-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* change expedition and sale download label response to base 64 ([7306949](https://github.com/GLS-Spain/gps-common/commit/73069495d21900dd5e0c93c1c0e02436e109333c))
|
|
7
|
+
|
|
1
8
|
# [34.8.0](https://github.com/GLS-Spain/gps-common/compare/v34.7.0...v34.8.0) (2021-01-08)
|
|
2
9
|
|
|
3
10
|
|
package/open-api-spec/index.js
CHANGED
|
@@ -128,6 +128,7 @@ const {
|
|
|
128
128
|
receiveAllExpeditionsFromDriverRequest,
|
|
129
129
|
receiveAllExpeditionsFromDriverResponse,
|
|
130
130
|
downloadExpeditionLabelRequest,
|
|
131
|
+
downloadExpeditionLabelResponse,
|
|
131
132
|
} = require('../schemas/definitions/expeditions');
|
|
132
133
|
const { defaults, getDefaultsResponse, updateDefaultsRequest, updateDefaultsResponse } = require('../schemas/definitions/defaults');
|
|
133
134
|
const { counters, getCountersResponse } = require('../schemas/definitions/counters');
|
|
@@ -186,6 +187,7 @@ const {
|
|
|
186
187
|
updateSaleRequest,
|
|
187
188
|
updateSaleResponse,
|
|
188
189
|
downloadSaleLabelRequest,
|
|
190
|
+
downloadSaleLabelResponse,
|
|
189
191
|
} = require('../schemas/definitions/sales');
|
|
190
192
|
|
|
191
193
|
const openApiSpec = { openapi: '3.0.2' };
|
|
@@ -234,7 +236,6 @@ openApiSpec['x-tagGroups'] = [
|
|
|
234
236
|
'GLS Spain integration',
|
|
235
237
|
'GLS International integration',
|
|
236
238
|
'Ingenico integration',
|
|
237
|
-
'GLS SMS integration',
|
|
238
239
|
],
|
|
239
240
|
},
|
|
240
241
|
{
|
|
@@ -538,10 +539,6 @@ Since the URLs of the payment pages at Ingenico are very long, each sale also ha
|
|
|
538
539
|
[redirect to ingenico](#tag/Integrations/paths/~1link~1{shortId}/get) endpoint, which is much shorter and redirects to the actual payment
|
|
539
540
|
page at Ingenico.`,
|
|
540
541
|
},
|
|
541
|
-
{
|
|
542
|
-
name: 'GLS SMS integration', // todo
|
|
543
|
-
description: `TODO`,
|
|
544
|
-
},
|
|
545
542
|
{
|
|
546
543
|
name: 'Authentication',
|
|
547
544
|
description: `
|
|
@@ -3135,7 +3132,7 @@ ${securitySchemes.anyRole}`,
|
|
|
3135
3132
|
responses: {
|
|
3136
3133
|
' 200': {
|
|
3137
3134
|
description: 'The printable label of the expedition.',
|
|
3138
|
-
content: { 'application/
|
|
3135
|
+
content: { 'application/json': { schema: downloadExpeditionLabelResponse() } },
|
|
3139
3136
|
},
|
|
3140
3137
|
' 400': responses.badRequest,
|
|
3141
3138
|
' 401': responses.invalidUserInCookieOrHeader,
|
|
@@ -3425,7 +3422,7 @@ ${securitySchemes.anyRole}`,
|
|
|
3425
3422
|
responses: {
|
|
3426
3423
|
' 200': {
|
|
3427
3424
|
description: 'The printable label of the expedition associated to the sale.',
|
|
3428
|
-
content: { 'application/
|
|
3425
|
+
content: { 'application/json': { schema: downloadSaleLabelResponse() } },
|
|
3429
3426
|
},
|
|
3430
3427
|
' 400': responses.badRequest,
|
|
3431
3428
|
' 401': responses.invalidUserInCookieOrHeader,
|
package/package.json
CHANGED
|
@@ -768,6 +768,22 @@ const downloadExpeditionLabelRequest = () => ({
|
|
|
768
768
|
additionalProperties: false,
|
|
769
769
|
});
|
|
770
770
|
|
|
771
|
+
const downloadExpeditionLabelResponse = () => ({
|
|
772
|
+
type: 'object',
|
|
773
|
+
properties: {
|
|
774
|
+
download: {
|
|
775
|
+
type: 'object',
|
|
776
|
+
properties: {
|
|
777
|
+
label: { type: 'string', description: 'a PDF file encoded as a Base64 string' },
|
|
778
|
+
},
|
|
779
|
+
required: ['label'],
|
|
780
|
+
additionalProperties: false,
|
|
781
|
+
},
|
|
782
|
+
},
|
|
783
|
+
required: ['download'],
|
|
784
|
+
additionalProperties: false,
|
|
785
|
+
});
|
|
786
|
+
|
|
771
787
|
module.exports = {
|
|
772
788
|
processedWithDriver,
|
|
773
789
|
processedWithCustomer,
|
|
@@ -794,4 +810,5 @@ module.exports = {
|
|
|
794
810
|
receiveAllExpeditionsFromDriverRequest,
|
|
795
811
|
receiveAllExpeditionsFromDriverResponse,
|
|
796
812
|
downloadExpeditionLabelRequest,
|
|
813
|
+
downloadExpeditionLabelResponse,
|
|
797
814
|
};
|
|
@@ -202,6 +202,22 @@ const downloadSaleLabelRequest = () => ({
|
|
|
202
202
|
additionalProperties: false,
|
|
203
203
|
});
|
|
204
204
|
|
|
205
|
+
const downloadSaleLabelResponse = () => ({
|
|
206
|
+
type: 'object',
|
|
207
|
+
properties: {
|
|
208
|
+
download: {
|
|
209
|
+
type: 'object',
|
|
210
|
+
properties: {
|
|
211
|
+
label: { type: 'string', description: 'a PDF file encoded as a Base64 string' },
|
|
212
|
+
},
|
|
213
|
+
required: ['label'],
|
|
214
|
+
additionalProperties: false,
|
|
215
|
+
},
|
|
216
|
+
},
|
|
217
|
+
required: ['download'],
|
|
218
|
+
additionalProperties: false,
|
|
219
|
+
});
|
|
220
|
+
|
|
205
221
|
module.exports = {
|
|
206
222
|
sale,
|
|
207
223
|
createSaleRequest,
|
|
@@ -215,4 +231,5 @@ module.exports = {
|
|
|
215
231
|
updateSaleRequest,
|
|
216
232
|
updateSaleResponse,
|
|
217
233
|
downloadSaleLabelRequest,
|
|
234
|
+
downloadSaleLabelResponse,
|
|
218
235
|
};
|
package/schemas/index.js
CHANGED
|
@@ -76,6 +76,7 @@ const {
|
|
|
76
76
|
receiveAllExpeditionsFromDriverRequest,
|
|
77
77
|
receiveAllExpeditionsFromDriverResponse,
|
|
78
78
|
downloadExpeditionLabelRequest,
|
|
79
|
+
downloadExpeditionLabelResponse,
|
|
79
80
|
} = require('./definitions/expeditions');
|
|
80
81
|
const { findPodsRequest, findPodsResponse } = require('./definitions/pods');
|
|
81
82
|
const {
|
|
@@ -117,6 +118,7 @@ const {
|
|
|
117
118
|
updateSaleRequest,
|
|
118
119
|
updateSaleResponse,
|
|
119
120
|
downloadSaleLabelRequest,
|
|
121
|
+
downloadSaleLabelResponse,
|
|
120
122
|
} = require('./definitions/sales');
|
|
121
123
|
|
|
122
124
|
function request(schema, $id) {
|
|
@@ -211,6 +213,7 @@ const expeditionsReceiveAllFromDriverResponse = response(
|
|
|
211
213
|
'expeditionsReceiveAllFromDriverResponse',
|
|
212
214
|
);
|
|
213
215
|
const expeditionsDownloadLabelRequest = request(downloadExpeditionLabelRequest(), 'expeditionsDownloadLabelRequest');
|
|
216
|
+
const expeditionsDownloadLabelResponse = response(downloadExpeditionLabelResponse(), 'expeditionsDownloadLabelResponse');
|
|
214
217
|
|
|
215
218
|
const podsFindRequest = request(findPodsRequest(), 'podsFindRequest');
|
|
216
219
|
const podsFindResponse = response(findPodsResponse(), 'podsFindResponse');
|
|
@@ -255,6 +258,7 @@ const salesCheckPriceResponse = response(checkSalePriceResponse(), 'salesCheckPr
|
|
|
255
258
|
const salesUpdateRequest = request(updateSaleRequest(), 'salesUpdateRequest');
|
|
256
259
|
const salesUpdateResponse = response(updateSaleResponse(), 'salesUpdateResponse');
|
|
257
260
|
const salesDownloadLabelRequest = request(downloadSaleLabelRequest(), 'salesDownloadLabelRequest');
|
|
261
|
+
const salesDownloadLabelResponse = request(downloadSaleLabelResponse(), 'salesDownloadLabelResponse');
|
|
258
262
|
|
|
259
263
|
module.exports = {
|
|
260
264
|
errorResponse,
|
|
@@ -338,6 +342,7 @@ module.exports = {
|
|
|
338
342
|
expeditionsReceiveAllFromDriverRequest,
|
|
339
343
|
expeditionsReceiveAllFromDriverResponse,
|
|
340
344
|
expeditionsDownloadLabelRequest,
|
|
345
|
+
expeditionsDownloadLabelResponse,
|
|
341
346
|
|
|
342
347
|
podsFindRequest,
|
|
343
348
|
podsFindResponse,
|
|
@@ -382,4 +387,5 @@ module.exports = {
|
|
|
382
387
|
salesUpdateRequest,
|
|
383
388
|
salesUpdateResponse,
|
|
384
389
|
salesDownloadLabelRequest,
|
|
390
|
+
salesDownloadLabelResponse,
|
|
385
391
|
};
|