gtfs-realtime-bindings 2.0.0 → 2.1.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.
@@ -1,17 +1,3 @@
1
- // Copyright 2019 Google, MobilityData
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
-
15
1
  import * as $protobuf from "protobufjs";
16
2
  import Long = require("long");
17
3
  /** Namespace transit_realtime. */
@@ -1591,7 +1577,8 @@ export namespace transit_realtime {
1591
1577
  MAINTENANCE = 9,
1592
1578
  CONSTRUCTION = 10,
1593
1579
  POLICE_ACTIVITY = 11,
1594
- MEDICAL_EMERGENCY = 12
1580
+ MEDICAL_EMERGENCY = 12,
1581
+ SPECIAL_EVENT = 13
1595
1582
  }
1596
1583
 
1597
1584
  /** Effect enum. */
package/gtfs-realtime.js CHANGED
@@ -1,17 +1,3 @@
1
- // Copyright 2019 Google, MobilityData
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
-
15
1
  /*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars, default-case, jsdoc/require-param*/
16
2
  "use strict";
17
3
 
@@ -4581,6 +4567,7 @@ $root.transit_realtime = (function() {
4581
4567
  case 10:
4582
4568
  case 11:
4583
4569
  case 12:
4570
+ case 13:
4584
4571
  break;
4585
4572
  }
4586
4573
  if (message.effect != null && message.hasOwnProperty("effect"))
@@ -4749,6 +4736,10 @@ $root.transit_realtime = (function() {
4749
4736
  case 12:
4750
4737
  message.cause = 12;
4751
4738
  break;
4739
+ case "SPECIAL_EVENT":
4740
+ case 13:
4741
+ message.cause = 13;
4742
+ break;
4752
4743
  }
4753
4744
  switch (object.effect) {
4754
4745
  case "NO_SERVICE":
@@ -4983,6 +4974,7 @@ $root.transit_realtime = (function() {
4983
4974
  * @property {number} CONSTRUCTION=10 CONSTRUCTION value
4984
4975
  * @property {number} POLICE_ACTIVITY=11 POLICE_ACTIVITY value
4985
4976
  * @property {number} MEDICAL_EMERGENCY=12 MEDICAL_EMERGENCY value
4977
+ * @property {number} SPECIAL_EVENT=13 SPECIAL_EVENT value
4986
4978
  */
4987
4979
  Alert.Cause = (function() {
4988
4980
  var valuesById = {}, values = Object.create(valuesById);
@@ -4998,6 +4990,7 @@ $root.transit_realtime = (function() {
4998
4990
  values[valuesById[10] = "CONSTRUCTION"] = 10;
4999
4991
  values[valuesById[11] = "POLICE_ACTIVITY"] = 11;
5000
4992
  values[valuesById[12] = "MEDICAL_EMERGENCY"] = 12;
4993
+ values[valuesById[13] = "SPECIAL_EVENT"] = 13;
5001
4994
  return values;
5002
4995
  })();
5003
4996
 
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "tags": [
9
9
  "gtfs-realtime"
10
10
  ],
11
- "version": "2.0.0",
11
+ "version": "2.1.0",
12
12
  "repository": {
13
13
  "type": "git",
14
14
  "url": "https://github.com/MobilityData/gtfs-realtime-bindings.git"