@gls_spain/gps-common 34.7.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.
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="PrettierConfiguration">
4
+ <option name="myRunOnSave" value="true" />
5
+ <option name="myRunOnReformat" value="true" />
6
+ </component>
7
+ </project>
@@ -2,13 +2,10 @@
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$/.idea/watcherTasks.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/watcherTasks.xml" afterDir="false" />
6
- <change beforePath="$PROJECT_DIR$/errors/GLSRecordingError.js" beforeDir="false" afterPath="$PROJECT_DIR$/errors/GLSRecordingError.js" afterDir="false" />
7
- <change beforePath="$PROJECT_DIR$/errors/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/errors/index.js" afterDir="false" />
8
5
  <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$/package-lock.json" beforeDir="false" afterPath="$PROJECT_DIR$/package-lock.json" afterDir="false" />
10
- <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
6
+ <change beforePath="$PROJECT_DIR$/schemas/definitions/expeditions.js" beforeDir="false" afterPath="$PROJECT_DIR$/schemas/definitions/expeditions.js" afterDir="false" />
11
7
  <change beforePath="$PROJECT_DIR$/schemas/definitions/sales.js" beforeDir="false" afterPath="$PROJECT_DIR$/schemas/definitions/sales.js" afterDir="false" />
8
+ <change beforePath="$PROJECT_DIR$/schemas/index.js" beforeDir="false" afterPath="$PROJECT_DIR$/schemas/index.js" afterDir="false" />
12
9
  </list>
13
10
  <option name="SHOW_DIALOG" value="false" />
14
11
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -31,11 +28,6 @@
31
28
  <other-services-enabled>true</other-services-enabled>
32
29
  <auto-save>true</auto-save>
33
30
  </component>
34
- <component name="NamedScopeManager">
35
- <order>
36
- <scope name="Source files" />
37
- </order>
38
- </component>
39
31
  <component name="ProjectId" id="1ONNcC0Dj8TpB0ikqd9Zaci2JZf" />
40
32
  <component name="ProjectLevelVcsManager">
41
33
  <ConfirmationsSetting value="2" id="Add" />
@@ -48,14 +40,13 @@
48
40
  <property name="ASKED_ADD_EXTERNAL_FILES" value="true" />
49
41
  <property name="ASKED_SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
50
42
  <property name="NewWatcherDialog.advanced.open" value="true" />
51
- <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
52
43
  <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
53
44
  <property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
54
45
  <property name="TERMINAL_CUSTOM_COMMANDS_GOT_IT" value="true" />
55
46
  <property name="WebServerToolWindowFactoryState" value="false" />
56
- <property name="javascript.nodejs.core.library.configured.version" value="12.14.0" />
57
- <property name="javascript.nodejs.core.library.typings.version" value="12.19.9" />
58
- <property name="last_opened_file_path" value="$PROJECT_DIR$" />
47
+ <property name="javascript.nodejs.core.library.configured.version" value="14.11.0" />
48
+ <property name="javascript.nodejs.core.library.typings.version" value="14.11.0" />
49
+ <property name="last_opened_file_path" value="$PROJECT_DIR$/errors" />
59
50
  <property name="node.js.detected.package.eslint" value="true" />
60
51
  <property name="node.js.detected.package.standard" value="true" />
61
52
  <property name="node.js.path.for.package.eslint" value="project" />
@@ -68,18 +59,11 @@
68
59
  <property name="nodejs_package_manager_path" value="npm" />
69
60
  <property name="prettier.import.notification.dismissed" value="true" />
70
61
  <property name="prettierjs.PrettierConfiguration.Package" value="$PROJECT_DIR$/node_modules/prettier" />
71
- <property name="settings.editor.selected.configurable" value="watcher.settings" />
62
+ <property name="settings.editor.selected.configurable" value="settings.javascript.prettier" />
72
63
  <property name="ts.external.directory.path" value="$APPLICATION_HOME_DIR$/plugins/JavaScriptLanguage/jsLanguageServicesImpl/external" />
73
64
  <property name="vue.rearranger.settings.migration" value="true" />
74
65
  </component>
75
66
  <component name="RecentsManager">
76
- <key name="MoveFile.RECENT_KEYS">
77
- <recent name="$PROJECT_DIR$/open-api" />
78
- <recent name="$PROJECT_DIR$" />
79
- <recent name="$PROJECT_DIR$/schemas" />
80
- <recent name="$PROJECT_DIR$/open-api-spec" />
81
- <recent name="$PROJECT_DIR$/errors" />
82
- </key>
83
67
  <key name="CopyFile.RECENT_KEYS">
84
68
  <recent name="$PROJECT_DIR$/errors" />
85
69
  <recent name="$PROJECT_DIR$/schemas/definitions" />
@@ -87,6 +71,13 @@
87
71
  <recent name="$PROJECT_DIR$/schemas" />
88
72
  <recent name="$PROJECT_DIR$/lib/scripts" />
89
73
  </key>
74
+ <key name="MoveFile.RECENT_KEYS">
75
+ <recent name="$PROJECT_DIR$/open-api" />
76
+ <recent name="$PROJECT_DIR$" />
77
+ <recent name="$PROJECT_DIR$/schemas" />
78
+ <recent name="$PROJECT_DIR$/open-api-spec" />
79
+ <recent name="$PROJECT_DIR$/errors" />
80
+ </key>
90
81
  </component>
91
82
  <component name="RunManager" selected="JavaScript Debug.documentation.html (1)">
92
83
  <configuration name="documentation.html (1)" type="JavascriptDebugType" temporary="true" nameIsGenerated="true" uri="http://localhost:63342/gps-common/build/documentation/documentation.html" useBuiltInWebServerPort="true">
@@ -134,9 +125,9 @@
134
125
  </configuration>
135
126
  <recent_temporary>
136
127
  <list>
137
- <item itemvalue="npm.test" />
138
- <item itemvalue="JavaScript Debug.documentation.html (1)" />
139
128
  <item itemvalue="npm.build-documentation" />
129
+ <item itemvalue="JavaScript Debug.documentation.html (1)" />
130
+ <item itemvalue="npm.test" />
140
131
  <item itemvalue="npm.semantic-release" />
141
132
  <item itemvalue="npm.commit" />
142
133
  </list>
@@ -655,8 +646,9 @@
655
646
  <workItem from="1606477130384" duration="74000" />
656
647
  <workItem from="1606835326733" duration="48000" />
657
648
  <workItem from="1607951320583" duration="589000" />
658
- <workItem from="1608286770164" duration="53000" />
659
- <workItem from="1608574754236" duration="463000" />
649
+ <workItem from="1610108917407" duration="2502000" />
650
+ <workItem from="1610134729440" duration="18000" />
651
+ <workItem from="1610542075615" duration="374000" />
660
652
  </task>
661
653
  <servers />
662
654
  </component>
@@ -694,4 +686,8 @@
694
686
  </option>
695
687
  <option name="oldMeFiltersMigrated" value="true" />
696
688
  </component>
689
+ <component name="XSLT-Support.FileAssociations.UIState">
690
+ <expand />
691
+ <select />
692
+ </component>
697
693
  </project>
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
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
+
8
+ # [34.8.0](https://github.com/GLS-Spain/gps-common/compare/v34.7.0...v34.8.0) (2021-01-08)
9
+
10
+
11
+ ### Features
12
+
13
+ * add download label to expeditions and sales ([68c49db](https://github.com/GLS-Spain/gps-common/commit/68c49dbc306caa24f28d07fb72dfc9f19cbf3c10))
14
+
1
15
  # [34.7.0](https://github.com/GLS-Spain/gps-common/compare/v34.6.0...v34.7.0) (2020-12-21)
2
16
 
3
17
 
@@ -0,0 +1,11 @@
1
+ const { DatabaseError } = require('@gls_spain/mongodb');
2
+
3
+ class LabelDoesNotExistError extends DatabaseError {
4
+ constructor(message = 'Label does not exist.') {
5
+ // noinspection JSCheckFunctionSignatures
6
+ super(message);
7
+ this.name = 'LabelDoesNotExistError';
8
+ }
9
+ }
10
+
11
+ module.exports = LabelDoesNotExistError;
package/errors/index.js CHANGED
@@ -34,6 +34,7 @@ const InconsistentSalesSettingsError = require('./InconsistentSalesSettingsError
34
34
  const InvalidSaleDestinationError = require('./InvalidSaleDestinationError');
35
35
  const GLSSpainError = require('./GLSSpainError');
36
36
  const GLSRecordingError = require('./GLSRecordingError');
37
+ const LabelDoesNotExistError = require('./LabelDoesNotExistError');
37
38
 
38
39
  const errorsNames = {
39
40
  DatabaseNotEmptyError: 'DatabaseNotEmptyError',
@@ -72,6 +73,7 @@ const errorsNames = {
72
73
  InvalidSaleDestinationError: 'InvalidSaleDestinationError',
73
74
  GLSSpainError: 'GLSSpainError',
74
75
  GLSRecordingError: 'GLSRecordingError',
76
+ LabelDoesNotExistError: 'LabelDoesNotExistError',
75
77
  };
76
78
 
77
79
  module.exports = {
@@ -111,5 +113,6 @@ module.exports = {
111
113
  InvalidSaleDestinationError,
112
114
  GLSSpainError,
113
115
  GLSRecordingError,
116
+ LabelDoesNotExistError,
114
117
  errorsNames,
115
118
  };
@@ -44,6 +44,7 @@ const {
44
44
  InconsistentSalesSettingsError,
45
45
  InvalidSaleDestinationError,
46
46
  GLSSpainError,
47
+ LabelDoesNotExistError,
47
48
  } = require('../errors');
48
49
  const { timezoneNames } = require('../schemas/definitions/common');
49
50
  const { loginResponse } = require('../schemas/definitions/login');
@@ -126,6 +127,8 @@ const {
126
127
  processExpeditionsResponse,
127
128
  receiveAllExpeditionsFromDriverRequest,
128
129
  receiveAllExpeditionsFromDriverResponse,
130
+ downloadExpeditionLabelRequest,
131
+ downloadExpeditionLabelResponse,
129
132
  } = require('../schemas/definitions/expeditions');
130
133
  const { defaults, getDefaultsResponse, updateDefaultsRequest, updateDefaultsResponse } = require('../schemas/definitions/defaults');
131
134
  const { counters, getCountersResponse } = require('../schemas/definitions/counters');
@@ -183,6 +186,8 @@ const {
183
186
  checkSalePriceResponse,
184
187
  updateSaleRequest,
185
188
  updateSaleResponse,
189
+ downloadSaleLabelRequest,
190
+ downloadSaleLabelResponse,
186
191
  } = require('../schemas/definitions/sales');
187
192
 
188
193
  const openApiSpec = { openapi: '3.0.2' };
@@ -231,7 +236,6 @@ openApiSpec['x-tagGroups'] = [
231
236
  'GLS Spain integration',
232
237
  'GLS International integration',
233
238
  'Ingenico integration',
234
- 'GLS SMS integration',
235
239
  ],
236
240
  },
237
241
  {
@@ -535,10 +539,6 @@ Since the URLs of the payment pages at Ingenico are very long, each sale also ha
535
539
  [redirect to ingenico](#tag/Integrations/paths/~1link~1{shortId}/get) endpoint, which is much shorter and redirects to the actual payment
536
540
  page at Ingenico.`,
537
541
  },
538
- {
539
- name: 'GLS SMS integration', // todo
540
- description: `TODO`,
541
- },
542
542
  {
543
543
  name: 'Authentication',
544
544
  description: `
@@ -910,6 +910,7 @@ const errors = {
910
910
  inconsistentSalesSettings: new InconsistentSalesSettingsError(),
911
911
  invalidSaleDestination: new InvalidSaleDestinationError(),
912
912
  glsSpainError: new GLSSpainError(),
913
+ labelDoesNotExist: new LabelDoesNotExistError(),
913
914
  };
914
915
 
915
916
  const responses = {
@@ -1081,6 +1082,10 @@ const responses = {
1081
1082
  description: 'Cannot create the sale due to an error from the GLS Spain integration.',
1082
1083
  content: { 'application/json': { schema: specificHttpError(errors.glsSpainError) } },
1083
1084
  },
1085
+ labelDoesNotExist: {
1086
+ description: 'The label does not exist.',
1087
+ content: { 'application/json': { schema: specificHttpError(errors.labelDoesNotExist) } },
1088
+ },
1084
1089
  };
1085
1090
 
1086
1091
  const securitySchemes = {
@@ -3109,6 +3114,39 @@ ${securitySchemes.superAdminRole}`,
3109
3114
  },
3110
3115
  },
3111
3116
  },
3117
+ '/expeditions/downloadLabel': {
3118
+ post: {
3119
+ tags: ['Expeditions'],
3120
+ summary: '[SNU] Download label',
3121
+ description: `
3122
+ Downloads the PDF label of the expedition.
3123
+
3124
+ Once the expedition has been delivered to its destination the label becomes unavailable and the API will return a \`500 LabelDoesNotExistError\`.
3125
+
3126
+ ${securitySchemes.tokens}
3127
+ ${securitySchemes.anyRole}`,
3128
+ requestBody: {
3129
+ content: { 'application/json': { schema: downloadExpeditionLabelRequest() } },
3130
+ required: true,
3131
+ },
3132
+ responses: {
3133
+ ' 200': {
3134
+ description: 'The printable label of the expedition.',
3135
+ content: { 'application/json': { schema: downloadExpeditionLabelResponse() } },
3136
+ },
3137
+ ' 400': responses.badRequest,
3138
+ ' 401': responses.invalidUserInCookieOrHeader,
3139
+ ' 401 ': responses.invalidCookieOrHeader,
3140
+ ' 401 ': responses.missingCookieOrHeader,
3141
+ ' 401 ': responses.unauthorized,
3142
+ ' 403': responses.forbidden,
3143
+ ' 415': responses.unsupportedMediaType,
3144
+ ' 500': responses.internalServerError,
3145
+ ' 500 ': responses.expeditionDoesNotExist,
3146
+ ' 500 ': responses.labelDoesNotExist,
3147
+ },
3148
+ },
3149
+ },
3112
3150
  '/pods/find': {
3113
3151
  post: {
3114
3152
  tags: ['Pods'],
@@ -3364,6 +3402,42 @@ ${securitySchemes.superAdminRole}`,
3364
3402
  },
3365
3403
  },
3366
3404
  },
3405
+ '/sales/downloadLabel': {
3406
+ post: {
3407
+ tags: ['Sales'],
3408
+ summary: '[SNU] Download label',
3409
+ description: `
3410
+ Downloads the PDF label of the expedition associated to the sale.
3411
+
3412
+ If the sale has no expedition yet because it has not been paid then the API will return a \`500 ExpeditionDoesNotExistError\`.
3413
+
3414
+ Once the expedition has been delivered to its destination the label becomes unavailable and the API will return a \`500 LabelDoesNotExistError\`.
3415
+
3416
+ ${securitySchemes.tokens}
3417
+ ${securitySchemes.anyRole}`,
3418
+ requestBody: {
3419
+ content: { 'application/json': { schema: downloadSaleLabelRequest() } },
3420
+ required: true,
3421
+ },
3422
+ responses: {
3423
+ ' 200': {
3424
+ description: 'The printable label of the expedition associated to the sale.',
3425
+ content: { 'application/json': { schema: downloadSaleLabelResponse() } },
3426
+ },
3427
+ ' 400': responses.badRequest,
3428
+ ' 401': responses.invalidUserInCookieOrHeader,
3429
+ ' 401 ': responses.invalidCookieOrHeader,
3430
+ ' 401 ': responses.missingCookieOrHeader,
3431
+ ' 401 ': responses.unauthorized,
3432
+ ' 403': responses.forbidden,
3433
+ ' 415': responses.unsupportedMediaType,
3434
+ ' 500': responses.internalServerError,
3435
+ ' 500 ': responses.saleDoesNotExist,
3436
+ ' 500 ': responses.expeditionDoesNotExist,
3437
+ ' 500 ': responses.labelDoesNotExist,
3438
+ },
3439
+ },
3440
+ },
3367
3441
  '/historicRecords/find': {
3368
3442
  post: {
3369
3443
  tags: ['Historic records'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gls_spain/gps-common",
3
- "version": "34.7.0",
3
+ "version": "34.8.1",
4
4
  "description": "Errors, schemas and documentation for the Parcel Shops project",
5
5
  "main": "index.js",
6
6
  "keywords": [
@@ -759,6 +759,31 @@ const receiveAllExpeditionsFromDriverResponse = () => ({
759
759
  additionalProperties: false,
760
760
  });
761
761
 
762
+ const downloadExpeditionLabelRequest = () => ({
763
+ type: 'object',
764
+ properties: {
765
+ download: objectWithUuid(),
766
+ },
767
+ required: ['download'],
768
+ additionalProperties: false,
769
+ });
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
+
762
787
  module.exports = {
763
788
  processedWithDriver,
764
789
  processedWithCustomer,
@@ -784,4 +809,6 @@ module.exports = {
784
809
  processExpeditionsResponse,
785
810
  receiveAllExpeditionsFromDriverRequest,
786
811
  receiveAllExpeditionsFromDriverResponse,
812
+ downloadExpeditionLabelRequest,
813
+ downloadExpeditionLabelResponse,
787
814
  };
@@ -12,6 +12,7 @@ const {
12
12
  updateResponse,
13
13
  mergeSchemas,
14
14
  pickProperties,
15
+ objectWithUuid,
15
16
  } = require('@gls_spain/common-json-schemas');
16
17
  const { country, findAll, findById } = require('./common');
17
18
  const { address } = require('./common');
@@ -192,6 +193,31 @@ const updateSaleRequest = () =>
192
193
 
193
194
  const updateSaleResponse = () => updateResponse(sale());
194
195
 
196
+ const downloadSaleLabelRequest = () => ({
197
+ type: 'object',
198
+ properties: {
199
+ download: objectWithUuid(),
200
+ },
201
+ required: ['download'],
202
+ additionalProperties: false,
203
+ });
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
+
195
221
  module.exports = {
196
222
  sale,
197
223
  createSaleRequest,
@@ -204,4 +230,6 @@ module.exports = {
204
230
  checkSalePriceResponse,
205
231
  updateSaleRequest,
206
232
  updateSaleResponse,
233
+ downloadSaleLabelRequest,
234
+ downloadSaleLabelResponse,
207
235
  };
package/schemas/index.js CHANGED
@@ -75,6 +75,8 @@ const {
75
75
  processExpeditionsResponse,
76
76
  receiveAllExpeditionsFromDriverRequest,
77
77
  receiveAllExpeditionsFromDriverResponse,
78
+ downloadExpeditionLabelRequest,
79
+ downloadExpeditionLabelResponse,
78
80
  } = require('./definitions/expeditions');
79
81
  const { findPodsRequest, findPodsResponse } = require('./definitions/pods');
80
82
  const {
@@ -115,6 +117,8 @@ const {
115
117
  checkSalePriceResponse,
116
118
  updateSaleRequest,
117
119
  updateSaleResponse,
120
+ downloadSaleLabelRequest,
121
+ downloadSaleLabelResponse,
118
122
  } = require('./definitions/sales');
119
123
 
120
124
  function request(schema, $id) {
@@ -208,6 +212,8 @@ const expeditionsReceiveAllFromDriverResponse = response(
208
212
  receiveAllExpeditionsFromDriverResponse(),
209
213
  'expeditionsReceiveAllFromDriverResponse',
210
214
  );
215
+ const expeditionsDownloadLabelRequest = request(downloadExpeditionLabelRequest(), 'expeditionsDownloadLabelRequest');
216
+ const expeditionsDownloadLabelResponse = response(downloadExpeditionLabelResponse(), 'expeditionsDownloadLabelResponse');
211
217
 
212
218
  const podsFindRequest = request(findPodsRequest(), 'podsFindRequest');
213
219
  const podsFindResponse = response(findPodsResponse(), 'podsFindResponse');
@@ -251,6 +257,8 @@ const salesCheckPriceRequest = request(checkSalePriceRequest(), 'salesCheckPrice
251
257
  const salesCheckPriceResponse = response(checkSalePriceResponse(), 'salesCheckPriceResponse');
252
258
  const salesUpdateRequest = request(updateSaleRequest(), 'salesUpdateRequest');
253
259
  const salesUpdateResponse = response(updateSaleResponse(), 'salesUpdateResponse');
260
+ const salesDownloadLabelRequest = request(downloadSaleLabelRequest(), 'salesDownloadLabelRequest');
261
+ const salesDownloadLabelResponse = request(downloadSaleLabelResponse(), 'salesDownloadLabelResponse');
254
262
 
255
263
  module.exports = {
256
264
  errorResponse,
@@ -333,6 +341,8 @@ module.exports = {
333
341
  expeditionsProcessResponse,
334
342
  expeditionsReceiveAllFromDriverRequest,
335
343
  expeditionsReceiveAllFromDriverResponse,
344
+ expeditionsDownloadLabelRequest,
345
+ expeditionsDownloadLabelResponse,
336
346
 
337
347
  podsFindRequest,
338
348
  podsFindResponse,
@@ -376,4 +386,6 @@ module.exports = {
376
386
  salesCheckPriceResponse,
377
387
  salesUpdateRequest,
378
388
  salesUpdateResponse,
389
+ salesDownloadLabelRequest,
390
+ salesDownloadLabelResponse,
379
391
  };
@@ -1,45 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectTasksOptions">
4
- <TaskOptions isEnabled="true">
5
- <option name="arguments" value="--write $FilePathRelativeToProjectRoot$" />
6
- <option name="checkSyntaxErrors" value="true" />
7
- <option name="description" />
8
- <option name="exitCodeBehavior" value="ERROR" />
9
- <option name="fileExtension" value="js" />
10
- <option name="immediateSync" value="false" />
11
- <option name="name" value="Prettier Javascript" />
12
- <option name="output" value="$FilePathRelativeToProjectRoot$" />
13
- <option name="outputFilters">
14
- <array />
15
- </option>
16
- <option name="outputFromStdout" value="false" />
17
- <option name="program" value="$ProjectFileDir$/node_modules/.bin/prettier" />
18
- <option name="runOnExternalChanges" value="true" />
19
- <option name="scopeName" value="Source files" />
20
- <option name="trackOnlyRoot" value="false" />
21
- <option name="workingDir" value="$ProjectFileDir$" />
22
- <envs />
23
- </TaskOptions>
24
- <TaskOptions isEnabled="true">
25
- <option name="arguments" value="--write $FilePathRelativeToProjectRoot$" />
26
- <option name="checkSyntaxErrors" value="true" />
27
- <option name="description" />
28
- <option name="exitCodeBehavior" value="ERROR" />
29
- <option name="fileExtension" value="json" />
30
- <option name="immediateSync" value="false" />
31
- <option name="name" value="Prettier JSON" />
32
- <option name="output" value="$FilePathRelativeToProjectRoot$" />
33
- <option name="outputFilters">
34
- <array />
35
- </option>
36
- <option name="outputFromStdout" value="false" />
37
- <option name="program" value="$ProjectFileDir$/node_modules/.bin/prettier" />
38
- <option name="runOnExternalChanges" value="true" />
39
- <option name="scopeName" value="Source files" />
40
- <option name="trackOnlyRoot" value="false" />
41
- <option name="workingDir" value="$ProjectFileDir$" />
42
- <envs />
43
- </TaskOptions>
44
- </component>
45
- </project>