scout-types 1.0.17 → 1.0.18
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/dist/src/types/Scout.js +1 -1
- package/package.json +1 -1
- package/src/types/Scout.ts +1 -1
package/dist/src/types/Scout.js
CHANGED
|
@@ -47,7 +47,7 @@ export class Scout {
|
|
|
47
47
|
typeof scout.tone_description_refresh === "boolean" &&
|
|
48
48
|
Array.isArray(scout.jurisdiction_ids) &&
|
|
49
49
|
scout.jurisdiction_ids.every((jurisdiction_id) => typeof jurisdiction_id === "number") &&
|
|
50
|
-
(scout.sub_scout_ids || Array.isArray(scout.sub_scout_ids) && scout.sub_scout_ids.every((sub_scout_id) => typeof sub_scout_id === "string")) &&
|
|
50
|
+
(scout.sub_scout_ids === undefined || Array.isArray(scout.sub_scout_ids) && scout.sub_scout_ids.every((sub_scout_id) => typeof sub_scout_id === "string")) &&
|
|
51
51
|
is_office_class_id(scout.office_class_id) &&
|
|
52
52
|
(scout.office_name === undefined || typeof scout.office_name === "string"));
|
|
53
53
|
}
|
package/package.json
CHANGED
package/src/types/Scout.ts
CHANGED
|
@@ -52,7 +52,7 @@ export class Scout {
|
|
|
52
52
|
typeof scout.tone_description_refresh === "boolean" &&
|
|
53
53
|
Array.isArray(scout.jurisdiction_ids) &&
|
|
54
54
|
scout.jurisdiction_ids.every((jurisdiction_id : any) => typeof jurisdiction_id === "number") &&
|
|
55
|
-
(scout.sub_scout_ids || Array.isArray(scout.sub_scout_ids) && scout.sub_scout_ids.every((sub_scout_id : any) => typeof sub_scout_id === "string")) &&
|
|
55
|
+
(scout.sub_scout_ids === undefined || Array.isArray(scout.sub_scout_ids) && scout.sub_scout_ids.every((sub_scout_id : any) => typeof sub_scout_id === "string")) &&
|
|
56
56
|
is_office_class_id(scout.office_class_id) &&
|
|
57
57
|
(scout.office_name === undefined || typeof scout.office_name === "string")
|
|
58
58
|
)
|