@gls_spain/gps-common 34.5.0 → 34.5.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 +7 -2
- package/CHANGELOG.md +7 -0
- package/open-api-spec/index.js +6 -4
- package/package.json +1 -1
- package/schemas/definitions/sales.js +1 -3
package/.idea/workspace.xml
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
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=""
|
|
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
|
+
<change beforePath="$PROJECT_DIR$/schemas/definitions/sales.js" beforeDir="false" afterPath="$PROJECT_DIR$/schemas/definitions/sales.js" afterDir="false" />
|
|
7
|
+
</list>
|
|
5
8
|
<option name="SHOW_DIALOG" value="false" />
|
|
6
9
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
7
10
|
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
@@ -628,7 +631,9 @@
|
|
|
628
631
|
<workItem from="1601366983507" duration="49000" />
|
|
629
632
|
<workItem from="1601370976937" duration="339000" />
|
|
630
633
|
<workItem from="1601551727472" duration="27000" />
|
|
631
|
-
<workItem from="1603700811892" duration="
|
|
634
|
+
<workItem from="1603700811892" duration="525000" />
|
|
635
|
+
<workItem from="1603705612447" duration="352000" />
|
|
636
|
+
<workItem from="1603706953993" duration="293000" />
|
|
632
637
|
</task>
|
|
633
638
|
<servers />
|
|
634
639
|
</component>
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [34.5.1](https://github.com/GLS-Spain/gps-common/compare/v34.5.0...v34.5.1) (2020-10-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* change super admin find sales by network and shop to only shop ([18e52f6](https://github.com/GLS-Spain/gps-common/commit/18e52f65718ba2a49cc11980198922d4e2aed1f7))
|
|
7
|
+
|
|
1
8
|
# [34.5.0](https://github.com/GLS-Spain/gps-common/compare/v34.4.1...v34.5.0) (2020-10-26)
|
|
2
9
|
|
|
3
10
|
|
package/open-api-spec/index.js
CHANGED
|
@@ -2624,7 +2624,10 @@ An expedition can be associated on creation to either one shop, one network or m
|
|
|
2624
2624
|
|
|
2625
2625
|
- Provide \`shop\` when it can be received only in a specific shop. The network will be inserted automatically.
|
|
2626
2626
|
- Provide \`network\` when it can be received at any shop in one network. On reception the shop will be added to the expedition.
|
|
2627
|
-
- Provide \`network\` and \`otherNetworks\` when it can be received in any shop in more than one network. On reception the network and shop
|
|
2627
|
+
- Provide \`network\` and \`otherNetworks\` when it can be received in any shop in more than one network. On reception the network and shop
|
|
2628
|
+
will be set and the other networks removed.
|
|
2629
|
+
|
|
2630
|
+
If a provided network does not exist the API will return a \`500 NetworkDoesNotExistError\`.
|
|
2628
2631
|
|
|
2629
2632
|
If the provided shop does not exist the API will return a \`500 ShopDoesNotExistError\`, if it is not enabled it will return a
|
|
2630
2633
|
\`500 ShopNotEnabledError\`, and if it is readonly it will return a \`500 ShopCannotBeUpdatedError\`.
|
|
@@ -2632,9 +2635,8 @@ If the provided shop does not exist the API will return a \`500 ShopDoesNotExist
|
|
|
2632
2635
|
When providing a shop one can also provide a sale if the expedition is created because of it. If the provided sale does not
|
|
2633
2636
|
exist the API will return a \`500 SaleDoesNotExistError\`.
|
|
2634
2637
|
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
The \`status.code\` of a new expedition cannot be specified and it will always be \`incoming\`.
|
|
2638
|
+
The \`status.code\` of a new expedition cannot be specified and will be \`incoming\` when the expedition has no \`sale\` and \`inShop\`
|
|
2639
|
+
when it does.
|
|
2638
2640
|
|
|
2639
2641
|
${securitySchemes.tokens}
|
|
2640
2642
|
${securitySchemes.superAdminRole}`,
|
package/package.json
CHANGED
|
@@ -152,9 +152,7 @@ const findByNetwork = () => mergeSchemas(objectWithNetworkId(), { title: 'find b
|
|
|
152
152
|
|
|
153
153
|
const findByShop = () => mergeSchemas(objectWithShopId(), { title: 'find by shop' });
|
|
154
154
|
|
|
155
|
-
const
|
|
156
|
-
|
|
157
|
-
const findSalesSuperAdminRequest = () => findRequest({ oneOf: [findByNetwork(), findByNetworkAndShop(), findById()] });
|
|
155
|
+
const findSalesSuperAdminRequest = () => findRequest({ oneOf: [findByNetwork(), findByShop(), findById()] });
|
|
158
156
|
|
|
159
157
|
const findSalesNetworkAdminRequest = () => findRequest({ oneOf: [findAll(), findByShop(), findById()] });
|
|
160
158
|
|