@sonoransoftware/sonoran.js 1.0.67 → 1.0.68

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.
@@ -70,6 +70,11 @@ export declare class DispatchCallBuilder {
70
70
  * @param metaData Dictionary of metadata to store with a dispatch call, can be used later on
71
71
  */
72
72
  setMetadata(metaData: Record<string, string>): this;
73
+ /**
74
+ * Sets the auto-delete timer for this dispatch call
75
+ * @param deleteAfterMinutes Minutes until the dispatch call is deleted
76
+ */
77
+ setDeleteAfterMinutes(deleteAfterMinutes: number): this;
73
78
  /**
74
79
  * Sets specified units for this dispatch call
75
80
  * @param units Units to be removed from a call
@@ -108,6 +108,14 @@ class DispatchCallBuilder {
108
108
  this.data.metaData = metaData;
109
109
  return this;
110
110
  }
111
+ /**
112
+ * Sets the auto-delete timer for this dispatch call
113
+ * @param deleteAfterMinutes Minutes until the dispatch call is deleted
114
+ */
115
+ setDeleteAfterMinutes(deleteAfterMinutes) {
116
+ this.data.deleteAfterMinutes = deleteAfterMinutes;
117
+ return this;
118
+ }
111
119
  /**
112
120
  * Sets specified units for this dispatch call
113
121
  * @param units Units to be removed from a call
@@ -23,6 +23,7 @@ export interface CADNewDispatchBuilderOptions {
23
23
  description?: string;
24
24
  metaData?: Record<string, string>;
25
25
  units?: string[];
26
+ deleteAfterMinutes?: number;
26
27
  }
27
28
  export type Constructable<T> = abstract new (...args: any[]) => T;
28
29
  export interface Caches {
@@ -307,6 +307,7 @@ interface CADNewDispatchBaseStruct {
307
307
  description: string;
308
308
  notes: CADDispatchNoteStruct[];
309
309
  metaData: Record<string, string>;
310
+ deleteAfterMinutes?: number;
310
311
  }
311
312
  export type CADNewDispatchStruct = (CADNewDispatchBaseStruct & {
312
313
  units: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonoransoftware/sonoran.js",
3
- "version": "1.0.67",
3
+ "version": "1.0.68",
4
4
  "description": "Sonoran.js is a library that allows you to interact with the Sonoran CAD and Sonoran CMS API. Based off of and utilizes several Discord.js library techniques for ease of use.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -123,6 +123,15 @@ export class DispatchCallBuilder {
123
123
  return this;
124
124
  }
125
125
 
126
+ /**
127
+ * Sets the auto-delete timer for this dispatch call
128
+ * @param deleteAfterMinutes Minutes until the dispatch call is deleted
129
+ */
130
+ public setDeleteAfterMinutes(deleteAfterMinutes: number): this {
131
+ this.data.deleteAfterMinutes = deleteAfterMinutes;
132
+ return this;
133
+ }
134
+
126
135
  /**
127
136
  * Sets specified units for this dispatch call
128
137
  * @param units Units to be removed from a call
package/src/constants.ts CHANGED
@@ -25,6 +25,7 @@ export interface CADNewDispatchBuilderOptions {
25
25
  description?: string;
26
26
  metaData?: Record<string, string>;
27
27
  units?: string[];
28
+ deleteAfterMinutes?: number;
28
29
  }
29
30
 
30
31
  export type Constructable<T> = abstract new (...args: any[]) => T;
@@ -1020,6 +1020,7 @@ interface CADNewDispatchBaseStruct {
1020
1020
  description: string;
1021
1021
  notes: CADDispatchNoteStruct[];
1022
1022
  metaData: Record<string, string>;
1023
+ deleteAfterMinutes?: number;
1023
1024
  }
1024
1025
 
1025
1026
  export type CADNewDispatchStruct =