doers-comms-types 1.0.9 → 1.0.10

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.
@@ -11,7 +11,7 @@ export declare class Bot {
11
11
  readonly state_id: StateID;
12
12
  readonly district?: number;
13
13
  readonly party_id: PartyID;
14
- readonly tone_prompt_refresh: boolean;
14
+ readonly tone_description_refresh: boolean;
15
15
  readonly topics: string[];
16
16
  readonly jurisdiction_ids: number[];
17
17
  readonly office_class_id: OfficeClassID;
@@ -23,7 +23,7 @@ export declare class Bot {
23
23
  export declare class BotAux extends Bot {
24
24
  readonly jurisdictions: Jurisdiction[];
25
25
  readonly photo_download_url?: string;
26
- readonly tone_prompt?: string;
26
+ readonly tone_description?: string;
27
27
  constructor(bot: any);
28
28
  static is(bot: any): bot is BotAux;
29
29
  }
@@ -11,7 +11,7 @@ export class Bot {
11
11
  state_id;
12
12
  district;
13
13
  party_id;
14
- tone_prompt_refresh;
14
+ tone_description_refresh;
15
15
  topics;
16
16
  jurisdiction_ids;
17
17
  office_class_id;
@@ -28,7 +28,7 @@ export class Bot {
28
28
  this.state_id = bot.state_id;
29
29
  this.district = bot.district;
30
30
  this.party_id = bot.party_id;
31
- this.tone_prompt_refresh = bot.tone_prompt_refresh;
31
+ this.tone_description_refresh = bot.tone_description_refresh;
32
32
  this.topics = bot.topics;
33
33
  this.jurisdiction_ids = bot.jurisdiction_ids;
34
34
  this.office_class_id = bot.office_class_id;
@@ -44,7 +44,7 @@ export class Bot {
44
44
  is_state_id(bot.state_id) &&
45
45
  (bot.district === undefined || typeof bot.district === "number") &&
46
46
  is_party_id(bot.party_id) &&
47
- typeof bot.tone_prompt_refresh === "boolean" &&
47
+ typeof bot.tone_description_refresh === "boolean" &&
48
48
  Array.isArray(bot.topics) &&
49
49
  bot.topics.every((topic) => typeof topic === "string") &&
50
50
  Array.isArray(bot.jurisdiction_ids) &&
@@ -56,7 +56,7 @@ export class Bot {
56
56
  export class BotAux extends Bot {
57
57
  jurisdictions;
58
58
  photo_download_url;
59
- tone_prompt;
59
+ tone_description;
60
60
  constructor(bot) {
61
61
  if (!BotAux.is(bot)) {
62
62
  throw Error("Invalid input.");
@@ -64,13 +64,13 @@ export class BotAux extends Bot {
64
64
  super(bot);
65
65
  this.jurisdictions = bot.jurisdictions;
66
66
  this.photo_download_url = bot.photo_download_url;
67
- this.tone_prompt = bot.tone_prompt;
67
+ this.tone_description = bot.tone_description;
68
68
  }
69
69
  static is(bot) {
70
70
  return (Bot.is(bot) &&
71
71
  Array.isArray(bot.jurisdictions) &&
72
72
  bot.jurisdictions.every(Jurisdiction.is) &&
73
73
  (bot.photo_download_url === undefined || typeof bot.photo_download_url === "string") &&
74
- (bot.tone_prompt === undefined || typeof bot.tone_prompt === "string"));
74
+ (bot.tone_description === undefined || typeof bot.tone_description === "string"));
75
75
  }
76
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doers-comms-types",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "main": "dist/src/index.js",
5
5
  "types": "dist/src/index.d.ts",
6
6
  "directories": {
package/src/types/Bot.ts CHANGED
@@ -12,7 +12,7 @@ export class Bot {
12
12
  readonly state_id : StateID
13
13
  readonly district? : number
14
14
  readonly party_id : PartyID
15
- readonly tone_prompt_refresh : boolean
15
+ readonly tone_description_refresh : boolean
16
16
  readonly topics : string[]
17
17
  readonly jurisdiction_ids : number[]
18
18
  readonly office_class_id : OfficeClassID
@@ -31,7 +31,7 @@ export class Bot {
31
31
  this.state_id = bot.state_id
32
32
  this.district = bot.district
33
33
  this.party_id = bot.party_id
34
- this.tone_prompt_refresh = bot.tone_prompt_refresh
34
+ this.tone_description_refresh = bot.tone_description_refresh
35
35
  this.topics = bot.topics
36
36
  this.jurisdiction_ids = bot.jurisdiction_ids
37
37
  this.office_class_id = bot.office_class_id
@@ -49,7 +49,7 @@ export class Bot {
49
49
  is_state_id(bot.state_id) &&
50
50
  (bot.district === undefined || typeof bot.district === "number") &&
51
51
  is_party_id(bot.party_id) &&
52
- typeof bot.tone_prompt_refresh === "boolean" &&
52
+ typeof bot.tone_description_refresh === "boolean" &&
53
53
  Array.isArray(bot.topics) &&
54
54
  bot.topics.every((topic : any) => typeof topic === "string") &&
55
55
  Array.isArray(bot.jurisdiction_ids) &&
@@ -63,7 +63,7 @@ export class Bot {
63
63
  export class BotAux extends Bot {
64
64
  readonly jurisdictions : Jurisdiction[]
65
65
  readonly photo_download_url? : string
66
- readonly tone_prompt? : string
66
+ readonly tone_description? : string
67
67
 
68
68
  constructor(bot : any) {
69
69
  if (!BotAux.is(bot)) {
@@ -72,7 +72,7 @@ export class BotAux extends Bot {
72
72
  super(bot)
73
73
  this.jurisdictions = bot.jurisdictions
74
74
  this.photo_download_url = bot.photo_download_url
75
- this.tone_prompt = bot.tone_prompt
75
+ this.tone_description = bot.tone_description
76
76
  }
77
77
 
78
78
  static is(bot : any) : bot is BotAux {
@@ -81,7 +81,7 @@ export class BotAux extends Bot {
81
81
  Array.isArray(bot.jurisdictions) &&
82
82
  bot.jurisdictions.every(Jurisdiction.is) &&
83
83
  (bot.photo_download_url === undefined || typeof bot.photo_download_url === "string") &&
84
- (bot.tone_prompt === undefined || typeof bot.tone_prompt === "string")
84
+ (bot.tone_description === undefined || typeof bot.tone_description === "string")
85
85
  )
86
86
  }
87
87
  }