@gls_spain/gps-common 32.2.0 → 32.4.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,7 +2,12 @@
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$/schemas/definitions/shops.js" beforeDir="false" afterPath="$PROJECT_DIR$/schemas/definitions/shops.js" afterDir="false" />
5
+ <change afterPath="$PROJECT_DIR$/errors/CountersDoNotExistError.js" afterDir="false" />
6
+ <change afterPath="$PROJECT_DIR$/schemas/definitions/counters.js" afterDir="false" />
7
+ <change beforePath="$PROJECT_DIR$/errors/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/errors/index.js" afterDir="false" />
8
+ <change beforePath="$PROJECT_DIR$/open-api-spec/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/open-api-spec/index.js" afterDir="false" />
9
+ <change beforePath="$PROJECT_DIR$/schemas/definitions/init.js" beforeDir="false" afterPath="$PROJECT_DIR$/schemas/definitions/init.js" afterDir="false" />
10
+ <change beforePath="$PROJECT_DIR$/schemas/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/schemas/index.js" afterDir="false" />
6
11
  </list>
7
12
  <option name="SHOW_DIALOG" value="false" />
8
13
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -38,9 +43,10 @@
38
43
  <property name="NewWatcherDialog.advanced.open" value="true" />
39
44
  <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
40
45
  <property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
46
+ <property name="TERMINAL_CUSTOM_COMMANDS_GOT_IT" value="true" />
41
47
  <property name="WebServerToolWindowFactoryState" value="false" />
42
48
  <property name="javascript.nodejs.core.library.configured.version" value="10.15.3" />
43
- <property name="last_opened_file_path" value="$PROJECT_DIR$" />
49
+ <property name="last_opened_file_path" value="$PROJECT_DIR$/errors" />
44
50
  <property name="node.js.detected.package.eslint" value="true" />
45
51
  <property name="node.js.detected.package.standard" value="true" />
46
52
  <property name="node.js.path.for.package.eslint" value="project" />
@@ -57,6 +63,13 @@
57
63
  <property name="ts.external.directory.path" value="$APPLICATION_HOME_DIR$/plugins/JavaScriptLanguage/jsLanguageServicesImpl/external" />
58
64
  </component>
59
65
  <component name="RecentsManager">
66
+ <key name="CopyFile.RECENT_KEYS">
67
+ <recent name="$PROJECT_DIR$/errors" />
68
+ <recent name="$PROJECT_DIR$/schemas/definitions" />
69
+ <recent name="$PROJECT_DIR$" />
70
+ <recent name="$PROJECT_DIR$/schemas" />
71
+ <recent name="$PROJECT_DIR$/lib/scripts" />
72
+ </key>
60
73
  <key name="MoveFile.RECENT_KEYS">
61
74
  <recent name="$PROJECT_DIR$/open-api" />
62
75
  <recent name="$PROJECT_DIR$" />
@@ -64,13 +77,6 @@
64
77
  <recent name="$PROJECT_DIR$/open-api-spec" />
65
78
  <recent name="$PROJECT_DIR$/errors" />
66
79
  </key>
67
- <key name="CopyFile.RECENT_KEYS">
68
- <recent name="$PROJECT_DIR$" />
69
- <recent name="$PROJECT_DIR$/errors" />
70
- <recent name="$PROJECT_DIR$/schemas/definitions" />
71
- <recent name="$PROJECT_DIR$/schemas" />
72
- <recent name="$PROJECT_DIR$/lib/scripts" />
73
- </key>
74
80
  </component>
75
81
  <component name="RunManager" selected="JavaScript Debug.documentation.html (1)">
76
82
  <configuration name="#errors" type="JavaScriptTestRunnerJest" temporary="true" nameIsGenerated="true">
@@ -121,8 +127,8 @@
121
127
  </configuration>
122
128
  <recent_temporary>
123
129
  <list>
124
- <item itemvalue="JavaScript Debug.documentation.html (1)" />
125
130
  <item itemvalue="npm.build-documentation" />
131
+ <item itemvalue="JavaScript Debug.documentation.html (1)" />
126
132
  <item itemvalue="npm.test" />
127
133
  <item itemvalue="Jest.index.test.js" />
128
134
  <item itemvalue="Jest.#errors" />
@@ -557,7 +563,12 @@
557
563
  <workItem from="1588661146603" duration="148000" />
558
564
  <workItem from="1589785291101" duration="1725000" />
559
565
  <workItem from="1589830264435" duration="1000" />
560
- <workItem from="1591786805051" duration="676000" />
566
+ <workItem from="1591786805051" duration="1076000" />
567
+ <workItem from="1591791423061" duration="146000" />
568
+ <workItem from="1591864959459" duration="63000" />
569
+ <workItem from="1591865082734" duration="29000" />
570
+ <workItem from="1594828405112" duration="147000" />
571
+ <workItem from="1594885748220" duration="3069000" />
561
572
  </task>
562
573
  <servers />
563
574
  </component>
@@ -596,45 +607,21 @@
596
607
  <option name="oldMeFiltersMigrated" value="true" />
597
608
  </component>
598
609
  <component name="WindowStateProjectService">
599
- <state x="712" y="322" key="#com.intellij.openapi.updateSettings.impl.PluginUpdateInfoDialog" timestamp="1584696790922">
600
- <screen x="0" y="23" width="2048" height="1129" />
601
- </state>
602
- <state x="712" y="322" key="#com.intellij.openapi.updateSettings.impl.PluginUpdateInfoDialog/0.23.2048.1129@0.23.2048.1129" timestamp="1584696790922" />
603
- <state x="762" y="341" key="#com.intellij.refactoring.safeDelete.UnsafeUsagesDialog" timestamp="1584283363756">
604
- <screen x="0" y="23" width="2048" height="1129" />
605
- </state>
606
- <state x="762" y="341" key="#com.intellij.refactoring.safeDelete.UnsafeUsagesDialog/0.23.2048.1129@0.23.2048.1129" timestamp="1584283363756" />
607
- <state x="606" y="280" key="EditFileWatcherDialog" timestamp="1580283934403">
608
- <screen x="0" y="23" width="2048" height="1129" />
609
- </state>
610
- <state x="606" y="280" key="EditFileWatcherDialog/0.23.2048.1129@0.23.2048.1129" timestamp="1580283934403" />
611
- <state width="2006" height="269" key="GridCell.Tab.0.bottom" timestamp="1588016801036">
612
- <screen x="0" y="23" width="2048" height="1129" />
613
- </state>
614
- <state width="2006" height="269" key="GridCell.Tab.0.bottom/0.23.2048.1129@0.23.2048.1129" timestamp="1588016801036" />
615
- <state width="2006" height="269" key="GridCell.Tab.0.center" timestamp="1588016801036">
616
- <screen x="0" y="23" width="2048" height="1129" />
617
- </state>
618
- <state width="2006" height="269" key="GridCell.Tab.0.center/0.23.2048.1129@0.23.2048.1129" timestamp="1588016801036" />
619
- <state width="2006" height="269" key="GridCell.Tab.0.left" timestamp="1588016801036">
620
- <screen x="0" y="23" width="2048" height="1129" />
621
- </state>
622
- <state width="2006" height="269" key="GridCell.Tab.0.left/0.23.2048.1129@0.23.2048.1129" timestamp="1588016801036" />
623
- <state width="2006" height="269" key="GridCell.Tab.0.right" timestamp="1588016801036">
610
+ <state width="2006" height="269" key="GridCell.Tab.0.bottom" timestamp="1594890828677">
624
611
  <screen x="0" y="23" width="2048" height="1129" />
625
612
  </state>
626
- <state width="2006" height="269" key="GridCell.Tab.0.right/0.23.2048.1129@0.23.2048.1129" timestamp="1588016801036" />
627
- <state x="0" y="23" width="2048" height="1129" key="SettingsEditor" timestamp="1580283935326">
613
+ <state width="2006" height="269" key="GridCell.Tab.0.bottom/0.23.2048.1129@0.23.2048.1129" timestamp="1594890828677" />
614
+ <state width="2006" height="269" key="GridCell.Tab.0.center" timestamp="1594890828676">
628
615
  <screen x="0" y="23" width="2048" height="1129" />
629
616
  </state>
630
- <state x="0" y="23" width="2048" height="1129" key="SettingsEditor/0.23.2048.1129@0.23.2048.1129" timestamp="1580283935326" />
631
- <state x="1351" y="124" width="697" height="951" key="find.popup" timestamp="1584747151804">
617
+ <state width="2006" height="269" key="GridCell.Tab.0.center/0.23.2048.1129@0.23.2048.1129" timestamp="1594890828676" />
618
+ <state width="2006" height="269" key="GridCell.Tab.0.left" timestamp="1594890828676">
632
619
  <screen x="0" y="23" width="2048" height="1129" />
633
620
  </state>
634
- <state x="1351" y="124" width="697" height="951" key="find.popup/0.23.2048.1129@0.23.2048.1129" timestamp="1584747151804" />
635
- <state x="689" y="276" width="670" height="676" key="search.everywhere.popup" timestamp="1584284016106">
621
+ <state width="2006" height="269" key="GridCell.Tab.0.left/0.23.2048.1129@0.23.2048.1129" timestamp="1594890828676" />
622
+ <state width="2006" height="269" key="GridCell.Tab.0.right" timestamp="1594890828677">
636
623
  <screen x="0" y="23" width="2048" height="1129" />
637
624
  </state>
638
- <state x="689" y="276" width="670" height="676" key="search.everywhere.popup/0.23.2048.1129@0.23.2048.1129" timestamp="1584284016106" />
625
+ <state width="2006" height="269" key="GridCell.Tab.0.right/0.23.2048.1129@0.23.2048.1129" timestamp="1594890828677" />
639
626
  </component>
640
627
  </project>
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [32.4.0](https://github.com/GLS-Spain/gps-common/compare/v32.3.0...v32.4.0) (2020-07-16)
2
+
3
+
4
+ ### Features
5
+
6
+ * add counters ([54638a1](https://github.com/GLS-Spain/gps-common/commit/54638a1c54317c8adb136258837b230e025b8553))
7
+
8
+ # [32.3.0](https://github.com/GLS-Spain/gps-common/compare/v32.2.0...v32.3.0) (2020-07-16)
9
+
10
+
11
+ ### Features
12
+
13
+ * add international fields to shop schema ([b95be40](https://github.com/GLS-Spain/gps-common/commit/b95be40e6d68c14a7132c04dc7a1bc90220a973b))
14
+
1
15
  # [32.2.0](https://github.com/GLS-Spain/gps-common/compare/v32.1.1...v32.2.0) (2020-06-10)
2
16
 
3
17
 
@@ -0,0 +1,11 @@
1
+ const { DatabaseError } = require('@gls_spain/mongodb');
2
+
3
+ class CountersDoNotExistError extends DatabaseError {
4
+ constructor(message = 'Counters do not exist.') {
5
+ // noinspection JSCheckFunctionSignatures
6
+ super(message);
7
+ this.name = 'CountersDoNotExistError';
8
+ }
9
+ }
10
+
11
+ module.exports = CountersDoNotExistError;
package/errors/index.js CHANGED
@@ -18,6 +18,7 @@ const ExpeditionAlreadyExistsError = require('./ExpeditionAlreadyExistsError');
18
18
  const ExpeditionCannotBeUpdatedError = require('./ExpeditionCannotBeUpdatedError');
19
19
  const ExpeditionCannotBeDeletedError = require('./ExpeditionCannotBeDeletedError');
20
20
  const DefaultsDoNotExistError = require('./DefaultsDoNotExistError');
21
+ const CountersDoNotExistError = require('./CountersDoNotExistError');
21
22
  const RepresentativeDoesNotExistError = require('./RepresentativeDoesNotExistError');
22
23
  const RepresentativeAlreadyExistsError = require('./RepresentativeAlreadyExistsError');
23
24
  const RepresentativeCannotBeDeletedError = require('./RepresentativeCannotBeDeletedError');
@@ -46,6 +47,7 @@ const errorsNames = {
46
47
  ExpeditionCannotBeUpdatedError: 'ExpeditionCannotBeUpdatedError',
47
48
  ExpeditionCannotBeDeletedError: 'ExpeditionCannotBeDeletedError',
48
49
  DefaultsDoNotExistError: 'DefaultsDoNotExistError',
50
+ CountersDoNotExistError: 'CountersDoNotExistError',
49
51
  RepresentativeDoesNotExistError: 'RepresentativeDoesNotExistError',
50
52
  RepresentativeAlreadyExistsError: 'RepresentativeAlreadyExistsError',
51
53
  RepresentativeCannotBeDeletedError: 'RepresentativeCannotBeDeletedError',
@@ -75,6 +77,7 @@ module.exports = {
75
77
  ExpeditionCannotBeUpdatedError,
76
78
  ExpeditionCannotBeDeletedError,
77
79
  DefaultsDoNotExistError,
80
+ CountersDoNotExistError,
78
81
  RepresentativeDoesNotExistError,
79
82
  RepresentativeAlreadyExistsError,
80
83
  RepresentativeCannotBeDeletedError,
@@ -29,6 +29,7 @@ const {
29
29
  ExpeditionCannotBeUpdatedError,
30
30
  ExpeditionCannotBeDeletedError,
31
31
  DefaultsDoNotExistError,
32
+ CountersDoNotExistError,
32
33
  RepresentativeDoesNotExistError,
33
34
  RepresentativeAlreadyExistsError,
34
35
  RepresentativeCannotBeDeletedError,
@@ -120,6 +121,7 @@ const {
120
121
  receiveAllExpeditionsFromDriverResponse,
121
122
  } = require('../schemas/definitions/expeditions');
122
123
  const { defaults, getDefaultsResponse, updateDefaultsRequest, updateDefaultsResponse } = require('../schemas/definitions/defaults');
124
+ const { counters, getCountersResponse } = require('../schemas/definitions/counters');
123
125
  const { pod, findPodsRequest, findPodsResponse } = require('../schemas/definitions/pods');
124
126
  const {
125
127
  receiveFromDriverEvent,
@@ -200,7 +202,19 @@ openApiSpec['x-tagGroups'] = [
200
202
  },
201
203
  {
202
204
  name: 'RESOURCES',
203
- tags: ['Defaults', 'Super admin', 'Network', 'Network admin', 'Zone', 'Sales representative', 'Shop', 'Shop user', 'Expedition', 'Pod'],
205
+ tags: [
206
+ 'Defaults',
207
+ 'Counters',
208
+ 'Super admin',
209
+ 'Network',
210
+ 'Network admin',
211
+ 'Zone',
212
+ 'Sales representative',
213
+ 'Shop',
214
+ 'Shop user',
215
+ 'Expedition',
216
+ 'Pod',
217
+ ],
204
218
  },
205
219
  {
206
220
  name: 'HISTORIC RECORDS',
@@ -336,6 +350,16 @@ the maximum number of days that an expedition can be in a shop before returning
336
350
  Super administrators can view and update this default settings using the [config](#tag/Config) endpoints.
337
351
 
338
352
  <SchemaDefinition schemaRef="#/components/schemas/defaults" />`,
353
+ },
354
+ {
355
+ name: 'Counters',
356
+ description: `
357
+ Some of the API resources have fields that are auto incremental values. The API keeps a counter for each of these fields to know what the
358
+ next value to use is.
359
+
360
+ Super administrators can view the last values used for each auto incremental field using the [config](#tag/Config) endpoints.
361
+
362
+ <SchemaDefinition schemaRef="#/components/schemas/counters" />`,
339
363
  },
340
364
  {
341
365
  name: 'Super admin',
@@ -637,7 +661,9 @@ These settings can be set at various levels of specificity:
637
661
 
638
662
  - Default values: these are set in this section and apply to networks and shops that do not have custom settings.
639
663
  - Network specific values: each network can have its custom settings, which override the default ones.
640
- - Shop specific values: each shop can have its custom settings, which override the network and default ones.`,
664
+ - Shop specific values: each shop can have its custom settings, which override the network and default ones.
665
+
666
+ There is also an endpoint to view the last value used for each auto incremental field`,
641
667
  },
642
668
  {
643
669
  name: 'Super admins',
@@ -831,6 +857,7 @@ const errors = {
831
857
  expeditionCannotBeUpdated: new ExpeditionCannotBeUpdatedError(),
832
858
  expeditionCannotBeDeleted: new ExpeditionCannotBeDeletedError(),
833
859
  defaultsDoNotExist: new DefaultsDoNotExistError(),
860
+ countersDoNotExist: new CountersDoNotExistError(),
834
861
  representativeDoesNotExist: new RepresentativeDoesNotExistError(),
835
862
  representativeAlreadyExists: new RepresentativeAlreadyExistsError(),
836
863
  representativeCannotBeDeleted: new RepresentativeCannotBeDeletedError(),
@@ -948,6 +975,10 @@ const responses = {
948
975
  description: 'The defaults do not exist.',
949
976
  content: { 'application/json': { schema: specificHttpError(errors.defaultsDoNotExist) } },
950
977
  },
978
+ countersDoNotExist: {
979
+ description: 'The counters do not exist.',
980
+ content: { 'application/json': { schema: specificHttpError(errors.countersDoNotExist) } },
981
+ },
951
982
  representativeDoesNotExist: {
952
983
  description: 'The representative does not exist.',
953
984
  content: { 'application/json': { schema: specificHttpError(errors.representativeDoesNotExist) } },
@@ -1009,6 +1040,7 @@ openApiSpec.components = {
1009
1040
  schemas: {
1010
1041
  errorResponse: errorResponse(),
1011
1042
  defaults: defaults(),
1043
+ counters: counters(),
1012
1044
  superAdmin: superAdmin(),
1013
1045
  networkAdmin: networkAdmin(),
1014
1046
  shopUser: shopUser(),
@@ -1269,6 +1301,30 @@ ${securitySchemes.superAdminRole}`,
1269
1301
  },
1270
1302
  },
1271
1303
  },
1304
+ '/config/counters/get': {
1305
+ get: {
1306
+ tags: ['Config'],
1307
+ summary: '[S] Get counters',
1308
+ description: `
1309
+ Get the last value used for each auto incremental field in the API resources.
1310
+
1311
+ ${securitySchemes.tokens}
1312
+ ${securitySchemes.superAdminRole}`,
1313
+ responses: {
1314
+ ' 200': {
1315
+ description: 'Contains the counters.',
1316
+ content: { 'application/json': { schema: getCountersResponse() } },
1317
+ },
1318
+ ' 401': responses.invalidUserInCookieOrHeader,
1319
+ ' 401 ': responses.invalidCookieOrHeader,
1320
+ ' 401 ': responses.missingCookieOrHeader,
1321
+ ' 401 ': responses.unauthorized,
1322
+ ' 403': responses.forbidden,
1323
+ ' 500': responses.internalServerError,
1324
+ ' 500 ': responses.countersDoNotExist,
1325
+ },
1326
+ },
1327
+ },
1272
1328
  '/superAdmins/create': {
1273
1329
  post: {
1274
1330
  tags: ['Super admins'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "32.2.0",
3
+ "version": "32.4.0",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -0,0 +1,43 @@
1
+ const { uuid, datetime } = require('@gls_spain/common-json-schemas');
2
+
3
+ const counters = () => ({
4
+ title: 'counters',
5
+ type: 'object',
6
+ properties: {
7
+ _id: uuid(),
8
+ createdAt: datetime(),
9
+ updatedAt: datetime(),
10
+ deletable: { type: 'boolean' },
11
+ shops: {
12
+ type: 'object',
13
+ properties: {
14
+ international: {
15
+ type: 'object',
16
+ properties: {
17
+ parcelShopId: { type: 'integer', minimum: 0, description: 'last id used, auto increments itself as shops are created' },
18
+ },
19
+ required: ['parcelShopId'],
20
+ additionalProperties: false,
21
+ },
22
+ },
23
+ required: ['international'],
24
+ additionalProperties: false,
25
+ },
26
+ },
27
+ required: ['_id', 'createdAt', 'updatedAt', 'deletable', 'shops'],
28
+ additionalProperties: false,
29
+ });
30
+
31
+ const getCountersResponse = () => ({
32
+ type: 'object',
33
+ properties: {
34
+ get: counters(),
35
+ },
36
+ required: ['get'],
37
+ additionalProperties: false,
38
+ });
39
+
40
+ module.exports = {
41
+ counters,
42
+ getCountersResponse,
43
+ };
@@ -1,6 +1,7 @@
1
1
  const { password, pickProperties } = require('@gls_spain/common-json-schemas');
2
2
  const { superAdmin } = require('./users');
3
3
  const { defaults } = require('./defaults');
4
+ const { counters } = require('./counters');
4
5
 
5
6
  const initRequest = () => ({
6
7
  type: 'object',
@@ -20,8 +21,14 @@ const initRequest = () => ({
20
21
  required: ['derivationSettings', 'expirationSettings'],
21
22
  additionalProperties: false,
22
23
  },
24
+ counters: {
25
+ type: 'object',
26
+ properties: { ...pickProperties(counters(), ['shops']) },
27
+ required: ['shops'],
28
+ additionalProperties: false,
29
+ },
23
30
  },
24
- required: ['superAdmin', 'defaults'],
31
+ required: ['superAdmin', 'defaults', 'counters'],
25
32
  additionalProperties: false,
26
33
  });
27
34
 
@@ -30,9 +37,10 @@ const initResponse = () => ({
30
37
  properties: {
31
38
  superAdmin: superAdmin(),
32
39
  defaults: defaults(),
40
+ counters: counters(),
33
41
  indexes: { type: 'array', items: { type: 'string' } },
34
42
  },
35
- required: ['superAdmin', 'defaults', 'indexes'],
43
+ required: ['superAdmin', 'defaults', 'counters', 'indexes'],
36
44
  additionalProperties: false,
37
45
  });
38
46
 
@@ -127,6 +127,15 @@ const shop = () => ({
127
127
  createdAt: datetime(),
128
128
  updatedAt: datetime(),
129
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
+ },
130
139
  defaults: {
131
140
  type: 'object',
132
141
  properties: { ...pickProperties(defaults(), ['derivationSettings', 'expirationSettings']) },
@@ -197,6 +206,7 @@ const shop = () => ({
197
206
  'createdAt',
198
207
  'updatedAt',
199
208
  'deletable',
209
+ 'international',
200
210
  'defaults',
201
211
  'network',
202
212
  'status',
package/schemas/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  const { addMetadata, errorResponse: sourceErrorResponse } = require('@gls_spain/common-json-schemas');
2
2
  const { initRequest, initResponse } = require('./definitions/init');
3
3
  const { getDefaultsResponse, updateDefaultsRequest, updateDefaultsResponse } = require('./definitions/defaults');
4
+ const { getCountersResponse } = require('./definitions/counters');
4
5
  const { loginResponse: sourceLoginResponse } = require('./definitions/login');
5
6
  const { logoutResponse: sourceLogoutResponse } = require('./definitions/logout');
6
7
  const { becomeRequest: sourceBecomeRequest } = require('./definitions/become');
@@ -119,6 +120,7 @@ const configInitResponse = response(initResponse(), 'configInitResponse');
119
120
  const configDefaultsGetResponse = response(getDefaultsResponse(), 'configDefaultsGetResponse');
120
121
  const configDefaultsUpdateRequest = request(updateDefaultsRequest(), 'configDefaultsUpdateRequest');
121
122
  const configDefaultsUpdateResponse = response(updateDefaultsResponse(), 'configDefaultsUpdateResponse');
123
+ const configCountersGetResponse = response(getCountersResponse(), 'configCountersGetResponse');
122
124
 
123
125
  const loginResponse = response(sourceLoginResponse(), 'loginResponse');
124
126
  const logoutResponse = response(sourceLogoutResponse(), 'logoutResponse');
@@ -236,6 +238,7 @@ module.exports = {
236
238
  configDefaultsGetResponse,
237
239
  configDefaultsUpdateRequest,
238
240
  configDefaultsUpdateResponse,
241
+ configCountersGetResponse,
239
242
 
240
243
  loginResponse,
241
244
  logoutResponse,