picker-db 5.0.8 → 5.0.9

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/.semgrepignore ADDED
@@ -0,0 +1,23 @@
1
+ # Tests — not production code
2
+ test/
3
+
4
+ # Build artifacts
5
+ dist/
6
+
7
+ # Dependencies
8
+ node_modules/
9
+
10
+ # Docker & deployment configs
11
+ Dockerfile
12
+ Dockerfile.prod
13
+ docker-compose.yml
14
+ docker-compose.prod.yml
15
+
16
+ # Lock files
17
+ package-lock.json
18
+
19
+ # Tooling configs
20
+ tsconfig.json
21
+ .eslintrc*
22
+ .prettierrc*
23
+ .editorconfig
@@ -5,6 +5,17 @@
5
5
 
6
6
  image: node:16.13.1
7
7
 
8
+ definitions:
9
+ steps:
10
+ - step: &semgrep-scan
11
+ name: Semgrep SAST
12
+ image: semgrep/semgrep
13
+ script:
14
+ - semgrep scan --config p/typescript --config p/nodejs --config p/secrets --sarif --output semgrep-results.sarif . || true
15
+ - semgrep scan --config p/typescript --config p/nodejs --config p/secrets --text . || true
16
+ artifacts:
17
+ - semgrep-results.sarif
18
+
8
19
  pipelines:
9
20
  pull-requests:
10
21
  '**':
@@ -14,6 +25,7 @@ pipelines:
14
25
  - node
15
26
  script:
16
27
  - npm install
28
+ - step: *semgrep-scan
17
29
  tags:
18
30
  'v*':
19
31
  - step:
@@ -22,6 +34,9 @@ pipelines:
22
34
  - pipe: atlassian/npm-publish:0.3.3
23
35
  variables:
24
36
  NPM_TOKEN: $NPM_TOKEN
37
+ branches:
38
+ master:
39
+ - step: *semgrep-scan
25
40
  custom:
26
41
  weekly-security-audit:
27
42
  - step:
package/constants.js CHANGED
@@ -466,5 +466,12 @@ module.exports = {
466
466
  PICKUP_AND_DELIVER: "PICKUP_AND_DELIVER",
467
467
  MULTI_PICKING: "MULTI_PICKING",
468
468
  },
469
+ BOOKING_STOP_STATUSES: {
470
+ PENDING: "PENDING",
471
+ ACCEPTED: "ACCEPTED",
472
+ PICKED_UP: "PICKED_UP",
473
+ COMPLETED: "COMPLETED",
474
+ FAILED: "FAILED",
475
+ },
469
476
  },
470
477
  };
@@ -43,6 +43,11 @@ module.exports = (connection) => {
43
43
  type: Number,
44
44
  required: true,
45
45
  },
46
+ status: {
47
+ type: String,
48
+ enum: Object.values(BOOKING.BOOKING_STOP_STATUSES),
49
+ default: BOOKING.BOOKING_STOP_STATUSES.PENDING,
50
+ },
46
51
  }, { timestamps: true, strict: false });
47
52
 
48
53
  return BookingStopSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "picker-db",
3
- "version": "5.0.8",
3
+ "version": "5.0.9",
4
4
  "description": "Picker DB services",
5
5
  "main": "index.js",
6
6
  "scripts": {