@gls_spain/gps-common 33.0.3 → 33.0.5

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.
@@ -1,9 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
- <list default="true" id="c2833e40-3178-44f3-9bc5-203849985c7f" name="Default Changelist" comment="">
5
- <change beforePath="$PROJECT_DIR$/open-api-spec/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/open-api-spec/index.js" afterDir="false" />
6
- </list>
4
+ <list default="true" id="c2833e40-3178-44f3-9bc5-203849985c7f" name="Default Changelist" comment="" />
7
5
  <option name="SHOW_DIALOG" value="false" />
8
6
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
9
7
  <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
@@ -586,7 +584,7 @@
586
584
  <workItem from="1595832239784" duration="11480000" />
587
585
  <workItem from="1595858491503" duration="4159000" />
588
586
  <workItem from="1595865087442" duration="564000" />
589
- <workItem from="1595914052000" duration="1859000" />
587
+ <workItem from="1595914052000" duration="3114000" />
590
588
  </task>
591
589
  <servers />
592
590
  </component>
@@ -629,22 +627,22 @@
629
627
  <screen x="0" y="23" width="2048" height="1129" />
630
628
  </state>
631
629
  <state x="762" y="341" key="#com.intellij.refactoring.safeDelete.UnsafeUsagesDialog/0.23.2048.1129@0.23.2048.1129" timestamp="1595577705727" />
632
- <state width="2006" height="269" key="GridCell.Tab.0.bottom" timestamp="1595922326294">
630
+ <state width="2006" height="269" key="GridCell.Tab.0.bottom" timestamp="1595926732369">
633
631
  <screen x="0" y="23" width="2048" height="1129" />
634
632
  </state>
635
- <state width="2006" height="269" key="GridCell.Tab.0.bottom/0.23.2048.1129@0.23.2048.1129" timestamp="1595922326294" />
636
- <state width="2006" height="269" key="GridCell.Tab.0.center" timestamp="1595922326294">
633
+ <state width="2006" height="269" key="GridCell.Tab.0.bottom/0.23.2048.1129@0.23.2048.1129" timestamp="1595926732369" />
634
+ <state width="2006" height="269" key="GridCell.Tab.0.center" timestamp="1595926732369">
637
635
  <screen x="0" y="23" width="2048" height="1129" />
638
636
  </state>
639
- <state width="2006" height="269" key="GridCell.Tab.0.center/0.23.2048.1129@0.23.2048.1129" timestamp="1595922326294" />
640
- <state width="2006" height="269" key="GridCell.Tab.0.left" timestamp="1595922326294">
637
+ <state width="2006" height="269" key="GridCell.Tab.0.center/0.23.2048.1129@0.23.2048.1129" timestamp="1595926732369" />
638
+ <state width="2006" height="269" key="GridCell.Tab.0.left" timestamp="1595926732369">
641
639
  <screen x="0" y="23" width="2048" height="1129" />
642
640
  </state>
643
- <state width="2006" height="269" key="GridCell.Tab.0.left/0.23.2048.1129@0.23.2048.1129" timestamp="1595922326294" />
644
- <state width="2006" height="269" key="GridCell.Tab.0.right" timestamp="1595922326294">
641
+ <state width="2006" height="269" key="GridCell.Tab.0.left/0.23.2048.1129@0.23.2048.1129" timestamp="1595926732369" />
642
+ <state width="2006" height="269" key="GridCell.Tab.0.right" timestamp="1595926732369">
645
643
  <screen x="0" y="23" width="2048" height="1129" />
646
644
  </state>
647
- <state width="2006" height="269" key="GridCell.Tab.0.right/0.23.2048.1129@0.23.2048.1129" timestamp="1595922326294" />
645
+ <state width="2006" height="269" key="GridCell.Tab.0.right/0.23.2048.1129@0.23.2048.1129" timestamp="1595926732369" />
648
646
  <state x="689" y="276" width="670" height="676" key="search.everywhere.popup" timestamp="1595579270021">
649
647
  <screen x="0" y="23" width="2048" height="1129" />
650
648
  </state>
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [33.0.5](https://github.com/GLS-Spain/gps-common/compare/v33.0.4...v33.0.5) (2020-07-28)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * remove find all sales for super admins ([ce54dd6](https://github.com/GLS-Spain/gps-common/commit/ce54dd641241d842bd9ec403bc05eed3db9f69a1))
7
+
8
+ ## [33.0.4](https://github.com/GLS-Spain/gps-common/compare/v33.0.3...v33.0.4) (2020-07-28)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add zone to sales check price response ([152da0c](https://github.com/GLS-Spain/gps-common/commit/152da0c566054e65f22a7a0b2ac963bd00c4a7a2))
14
+
1
15
  ## [33.0.3](https://github.com/GLS-Spain/gps-common/compare/v33.0.2...v33.0.3) (2020-07-28)
2
16
 
3
17
 
@@ -3215,7 +3215,7 @@ ${securitySchemes.anyRole}`,
3215
3215
  },
3216
3216
  responses: {
3217
3217
  ' 200': {
3218
- description: 'Contains the price of the sale.',
3218
+ description: 'Contains the zone and price of the sale.',
3219
3219
  content: { 'application/json': { schema: checkSalePriceResponse() } },
3220
3220
  },
3221
3221
  ' 400': responses.badRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "33.0.3",
3
+ "version": "33.0.5",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -124,7 +124,7 @@ const findByShop = () => mergeSchemas(objectWithShopId(), { title: 'find by shop
124
124
 
125
125
  const findByNetworkAndShop = () => mergeSchemas(objectWithNetworkId(), objectWithShopId(), { title: 'find by network and shop' });
126
126
 
127
- const findSalesSuperAdminRequest = () => findRequest({ oneOf: [findAll(), findByNetwork(), findByNetworkAndShop(), findById()] });
127
+ const findSalesSuperAdminRequest = () => findRequest({ oneOf: [findByNetwork(), findByNetworkAndShop(), findById()] });
128
128
 
129
129
  const findSalesNetworkAdminRequest = () => findRequest({ oneOf: [findAll(), findByShop(), findById()] });
130
130
 
@@ -146,9 +146,10 @@ const checkSalePriceRequest = () => ({
146
146
  const checkSalePriceResponse = () => ({
147
147
  type: 'object',
148
148
  properties: {
149
+ zone: { type: 'string' },
149
150
  price: money(),
150
151
  },
151
- required: ['price'],
152
+ required: ['zone', 'price'],
152
153
  additionalProperties: false,
153
154
  });
154
155