scout-types 1.0.7 → 1.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.
@@ -1,5 +1,5 @@
1
1
  import { JurisdictionLevel } from "./Jurisdiction.js";
2
- declare const office_class_ids: readonly ["ORG", "USH", "USS", "STG", "STH", "STS", "STB", "COG", "CIG", "LOB"];
2
+ declare const office_class_ids: readonly ["NOR", "LOR", "USH", "USS", "STG", "STH", "STS", "STB", "COG", "CIG", "LOB"];
3
3
  export type OfficeClassID = typeof office_class_ids[number];
4
4
  export declare function is_office_class_id(office_class_id: any): office_class_id is OfficeClassID;
5
5
  export interface OfficeClass {
@@ -1,12 +1,22 @@
1
1
  import { JurisdictionLevel } from "./Jurisdiction.js";
2
- const office_class_ids = ["ORG", "USH", "USS", "STG", "STH", "STS", "STB", "COG", "CIG", "LOB"];
2
+ const office_class_ids = ["NOR", "LOR", "USH", "USS", "STG", "STH", "STS", "STB", "COG", "CIG", "LOB"];
3
3
  export function is_office_class_id(office_class_id) {
4
4
  return office_class_ids.includes(office_class_id);
5
5
  }
6
6
  export const office_classes_by_office_class_id = {
7
- "ORG": {
8
- office_class_id: "ORG",
9
- name: "Organization",
7
+ "NOR": {
8
+ office_class_id: "NOR",
9
+ name: "National Organization",
10
+ type: "organization",
11
+ office_id_template: "O-US",
12
+ jurisdiction_level: JurisdictionLevel.NATION,
13
+ jurisdictions_mutable: true,
14
+ require_district: false,
15
+ require_initial_jurisdiction: false
16
+ },
17
+ "LOR": {
18
+ office_class_id: "LOR",
19
+ name: "Local Organization",
10
20
  type: "organization",
11
21
  office_id_template: "O-[state_id]",
12
22
  jurisdictions_mutable: true,
@@ -14,6 +14,7 @@ export interface ScoutConfig extends ScoutUtilsConfig {
14
14
  cognito_client_id: string;
15
15
  cognito_client_secret: string;
16
16
  secret_key: string;
17
+ dynamodb_bills: string;
17
18
  dynamodb_scouts: string;
18
19
  dynamodb_scout_documents: string;
19
20
  dynamodb_conversations: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scout-types",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
@@ -1,6 +1,6 @@
1
1
  import { JurisdictionLevel } from "./Jurisdiction"
2
2
 
3
- const office_class_ids = ["ORG", "USH", "USS", "STG", "STH", "STS", "STB", "COG", "CIG", "LOB"] as const
3
+ const office_class_ids = ["NOR", "LOR", "USH", "USS", "STG", "STH", "STS", "STB", "COG", "CIG", "LOB"] as const
4
4
 
5
5
  export type OfficeClassID = typeof office_class_ids[number]
6
6
 
@@ -22,9 +22,19 @@ export interface OfficeClass {
22
22
  }
23
23
 
24
24
  export const office_classes_by_office_class_id : Record<OfficeClassID, OfficeClass> = {
25
- "ORG" : {
26
- office_class_id : "ORG",
27
- name : "Organization",
25
+ "NOR" : {
26
+ office_class_id : "NOR",
27
+ name : "National Organization",
28
+ type : "organization",
29
+ office_id_template : "O-US",
30
+ jurisdiction_level : JurisdictionLevel.NATION,
31
+ jurisdictions_mutable : true,
32
+ require_district : false,
33
+ require_initial_jurisdiction : false
34
+ },
35
+ "LOR" : {
36
+ office_class_id : "LOR",
37
+ name : "Local Organization",
28
38
  type : "organization",
29
39
  office_id_template : "O-[state_id]",
30
40
  jurisdictions_mutable : true,
@@ -16,6 +16,7 @@ export interface ScoutConfig extends ScoutUtilsConfig {
16
16
  cognito_client_secret : string,
17
17
  secret_key : string,
18
18
  // admin_key : string,
19
+ dynamodb_bills : string,
19
20
  dynamodb_scouts : string,
20
21
  dynamodb_scout_documents : string,
21
22
  dynamodb_conversations : string,