@gls_spain/gps-common 32.1.1 → 32.3.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.
@@ -2,9 +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 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/expeditions.js" beforeDir="false" afterPath="$PROJECT_DIR$/schemas/definitions/expeditions.js" afterDir="false" />
7
- <change beforePath="$PROJECT_DIR$/schemas/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/schemas/index.js" afterDir="false" />
5
+ <change beforePath="$PROJECT_DIR$/schemas/definitions/shops.js" beforeDir="false" afterPath="$PROJECT_DIR$/schemas/definitions/shops.js" afterDir="false" />
8
6
  </list>
9
7
  <option name="SHOW_DIALOG" value="false" />
10
8
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -40,6 +38,7 @@
40
38
  <property name="NewWatcherDialog.advanced.open" value="true" />
41
39
  <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
42
40
  <property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
41
+ <property name="TERMINAL_CUSTOM_COMMANDS_GOT_IT" value="true" />
43
42
  <property name="WebServerToolWindowFactoryState" value="false" />
44
43
  <property name="javascript.nodejs.core.library.configured.version" value="10.15.3" />
45
44
  <property name="last_opened_file_path" value="$PROJECT_DIR$" />
@@ -123,8 +122,8 @@
123
122
  </configuration>
124
123
  <recent_temporary>
125
124
  <list>
126
- <item itemvalue="npm.build-documentation" />
127
125
  <item itemvalue="JavaScript Debug.documentation.html (1)" />
126
+ <item itemvalue="npm.build-documentation" />
128
127
  <item itemvalue="npm.test" />
129
128
  <item itemvalue="Jest.index.test.js" />
130
129
  <item itemvalue="Jest.#errors" />
@@ -554,7 +553,17 @@
554
553
  <workItem from="1587569584217" duration="5000" />
555
554
  <workItem from="1588001875839" duration="425000" />
556
555
  <workItem from="1588014009601" duration="1578000" />
557
- <workItem from="1588016472441" duration="409000" />
556
+ <workItem from="1588016472441" duration="477000" />
557
+ <workItem from="1588613126613" duration="538000" />
558
+ <workItem from="1588661146603" duration="148000" />
559
+ <workItem from="1589785291101" duration="1725000" />
560
+ <workItem from="1589830264435" duration="1000" />
561
+ <workItem from="1591786805051" duration="1076000" />
562
+ <workItem from="1591791423061" duration="146000" />
563
+ <workItem from="1591864959459" duration="63000" />
564
+ <workItem from="1591865082734" duration="29000" />
565
+ <workItem from="1594828405112" duration="147000" />
566
+ <workItem from="1594885748220" duration="1333000" />
558
567
  </task>
559
568
  <servers />
560
569
  </component>
@@ -601,30 +610,22 @@
601
610
  <screen x="0" y="23" width="2048" height="1129" />
602
611
  </state>
603
612
  <state x="762" y="341" key="#com.intellij.refactoring.safeDelete.UnsafeUsagesDialog/0.23.2048.1129@0.23.2048.1129" timestamp="1584283363756" />
604
- <state x="606" y="280" key="EditFileWatcherDialog" timestamp="1580283934403">
605
- <screen x="0" y="23" width="2048" height="1129" />
606
- </state>
607
- <state x="606" y="280" key="EditFileWatcherDialog/0.23.2048.1129@0.23.2048.1129" timestamp="1580283934403" />
608
- <state width="2006" height="269" key="GridCell.Tab.0.bottom" timestamp="1588016102260">
609
- <screen x="0" y="23" width="2048" height="1129" />
610
- </state>
611
- <state width="2006" height="269" key="GridCell.Tab.0.bottom/0.23.2048.1129@0.23.2048.1129" timestamp="1588016102260" />
612
- <state width="2006" height="269" key="GridCell.Tab.0.center" timestamp="1588016102260">
613
+ <state width="2006" height="269" key="GridCell.Tab.0.bottom" timestamp="1591788974478">
613
614
  <screen x="0" y="23" width="2048" height="1129" />
614
615
  </state>
615
- <state width="2006" height="269" key="GridCell.Tab.0.center/0.23.2048.1129@0.23.2048.1129" timestamp="1588016102260" />
616
- <state width="2006" height="269" key="GridCell.Tab.0.left" timestamp="1588016102260">
616
+ <state width="2006" height="269" key="GridCell.Tab.0.bottom/0.23.2048.1129@0.23.2048.1129" timestamp="1591788974478" />
617
+ <state width="2006" height="269" key="GridCell.Tab.0.center" timestamp="1591788974478">
617
618
  <screen x="0" y="23" width="2048" height="1129" />
618
619
  </state>
619
- <state width="2006" height="269" key="GridCell.Tab.0.left/0.23.2048.1129@0.23.2048.1129" timestamp="1588016102260" />
620
- <state width="2006" height="269" key="GridCell.Tab.0.right" timestamp="1588016102260">
620
+ <state width="2006" height="269" key="GridCell.Tab.0.center/0.23.2048.1129@0.23.2048.1129" timestamp="1591788974478" />
621
+ <state width="2006" height="269" key="GridCell.Tab.0.left" timestamp="1591788974478">
621
622
  <screen x="0" y="23" width="2048" height="1129" />
622
623
  </state>
623
- <state width="2006" height="269" key="GridCell.Tab.0.right/0.23.2048.1129@0.23.2048.1129" timestamp="1588016102260" />
624
- <state x="0" y="23" width="2048" height="1129" key="SettingsEditor" timestamp="1580283935326">
624
+ <state width="2006" height="269" key="GridCell.Tab.0.left/0.23.2048.1129@0.23.2048.1129" timestamp="1591788974478" />
625
+ <state width="2006" height="269" key="GridCell.Tab.0.right" timestamp="1591788974478">
625
626
  <screen x="0" y="23" width="2048" height="1129" />
626
627
  </state>
627
- <state x="0" y="23" width="2048" height="1129" key="SettingsEditor/0.23.2048.1129@0.23.2048.1129" timestamp="1580283935326" />
628
+ <state width="2006" height="269" key="GridCell.Tab.0.right/0.23.2048.1129@0.23.2048.1129" timestamp="1591788974478" />
628
629
  <state x="1351" y="124" width="697" height="951" key="find.popup" timestamp="1584747151804">
629
630
  <screen x="0" y="23" width="2048" height="1129" />
630
631
  </state>
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [32.3.0](https://github.com/GLS-Spain/gps-common/compare/v32.2.0...v32.3.0) (2020-07-16)
2
+
3
+
4
+ ### Features
5
+
6
+ * add international fields to shop schema ([b95be40](https://github.com/GLS-Spain/gps-common/commit/b95be40e6d68c14a7132c04dc7a1bc90220a973b))
7
+
8
+ # [32.2.0](https://github.com/GLS-Spain/gps-common/compare/v32.1.1...v32.2.0) (2020-06-10)
9
+
10
+
11
+ ### Features
12
+
13
+ * add activity to shops ([7d9d73e](https://github.com/GLS-Spain/gps-common/commit/7d9d73e37276ea4565839e75466bfe3dd025b14c)), closes [#GPS-369](https://github.com/GLS-Spain/gps-common/issues/GPS-369)
14
+
1
15
  ## [32.1.1](https://github.com/GLS-Spain/gps-common/compare/v32.1.0...v32.1.1) (2020-04-27)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "32.1.1",
3
+ "version": "32.3.0",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -84,6 +84,41 @@ const shopRepresentative = () => ({
84
84
  additionalProperties: false,
85
85
  });
86
86
 
87
+ const shopActivity = () => ({
88
+ type: 'string',
89
+ enum: [
90
+ 'bookshop',
91
+ 'press',
92
+ 'bazaar',
93
+ 'telecom',
94
+ 'mobileAccessories',
95
+ 'inkSupplies',
96
+ 'computer',
97
+ 'optics',
98
+ 'pharmacy',
99
+ 'food',
100
+ 'hardware',
101
+ 'tobacco',
102
+ 'lottery',
103
+ 'clothing',
104
+ 'barberShop',
105
+ 'bar',
106
+ 'appliances',
107
+ 'repairShop',
108
+ 'gasStation',
109
+ 'realState',
110
+ 'travelAgency',
111
+ 'legal',
112
+ 'academy',
113
+ 'sportsShop',
114
+ 'gardenAndPets',
115
+ 'photos',
116
+ 'jewelryStore',
117
+ 'shoeShop',
118
+ 'other',
119
+ ],
120
+ });
121
+
87
122
  const shop = () => ({
88
123
  title: 'shop',
89
124
  type: 'object',
@@ -92,6 +127,15 @@ const shop = () => ({
92
127
  createdAt: datetime(),
93
128
  updatedAt: datetime(),
94
129
  deletable: { type: 'boolean' },
130
+ international: {
131
+ type: 'object',
132
+ properties: {
133
+ partnerKey: { type: 'string' },
134
+ parcelShopId: { type: 'string' },
135
+ },
136
+ required: ['partnerKey', 'parcelShopId'],
137
+ additionalProperties: false,
138
+ },
95
139
  defaults: {
96
140
  type: 'object',
97
141
  properties: { ...pickProperties(defaults(), ['derivationSettings', 'expirationSettings']) },
@@ -152,6 +196,7 @@ const shop = () => ({
152
196
  items: contact(),
153
197
  },
154
198
  fiscal: fiscal(),
199
+ activity: shopActivity(),
155
200
  notes: { type: 'string', trim: true },
156
201
  derivationSettings: derivationSettings(),
157
202
  expirationSettings: expirationSettings(),
@@ -161,6 +206,7 @@ const shop = () => ({
161
206
  'createdAt',
162
207
  'updatedAt',
163
208
  'deletable',
209
+ 'international',
164
210
  'defaults',
165
211
  'network',
166
212
  'status',
@@ -215,6 +261,7 @@ const createShopRequest = () =>
215
261
  'timezone',
216
262
  'contacts',
217
263
  'fiscal',
264
+ 'activity',
218
265
  'notes',
219
266
  'derivationSettings',
220
267
  'expirationSettings',
@@ -320,7 +367,7 @@ const updateShopRequest = () =>
320
367
  ...pickProperties(
321
368
  shop(),
322
369
  ['name', 'address', 'capabilities', 'openingSchedule', 'contacts'],
323
- ['fiscal', 'notes', 'derivationSettings', 'expirationSettings'],
370
+ ['fiscal', 'activity', 'notes', 'derivationSettings', 'expirationSettings'],
324
371
  ),
325
372
  },
326
373
  minProperties: 1,