cityworks 2.1.4 → 2.1.5

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.
@@ -89,6 +89,10 @@ export declare class Briefcase {
89
89
  * Asset (Address) methods
90
90
  */
91
91
  asset?: any;
92
+ /**
93
+ * Flag methods
94
+ */
95
+ flag?: any;
92
96
  /**
93
97
  * Asset (Address) methods
94
98
  */
@@ -11,7 +11,7 @@ export declare class CaseAssets {
11
11
  * Attach asset to case
12
12
  *
13
13
  * @category Case Assets
14
- * @param {number} caObjectId - The Case Object to attach the data group to.
14
+ * @param {number} caObjectId - The Case Object to attach the asset to.
15
15
  * @param {boolean} updateXY - Whether or not to update the Case's X/Y values when attaching the asset. Defaults to true.
16
16
  * @param {Object} [options] - Options for CaseDataGroup including Address, AddressId, AssetId, AssetObjectId, AssetType, CityName, CrossStreet, DateExpired, ExpiredFlag, Facility_Id, FeatureAssetId, FeatureClass, FeatureObjectId, LegacyId, Level_Id, LndObjectId, Location, MasterFlag, ObjectId, StateCode, StreetDirection, StreetFraction, StreetName, StreetNumber, StreetPostDir, StreetType, Suite, TileNo, UpdateCaseData, XCoord, YCoord, ZCoord, and ZipCode
17
17
  * @return {Object} Returns Promise that represents an object describing CaAddress.
@@ -0,0 +1,61 @@
1
+ export declare class CaseFlags {
2
+ /**
3
+ * @hidden
4
+ */
5
+ cw: any;
6
+ /**
7
+ * @hidden
8
+ */
9
+ constructor(cw: any);
10
+ /**
11
+ * Add flag to case
12
+ *
13
+ * @category Case Flags
14
+ * @param {number} caObjectId - The Case Object to add the flag to.
15
+ * @param {number} flagId - The flag ID
16
+ * @param {string} severity - The severity of the flag
17
+ * @param {number} appliedBy - Which userID is applying the flag
18
+ * @param {DateTime} DateApplied - The date that the flag should be applied
19
+ * @param {Object} [options] - Options for CaseFlags includes Notes, DisciplineId, CompletedBy, DateCompleted
20
+ * @return {Object} Returns Promise that represents an object describing CaFlag.
21
+ */
22
+ add(caObjectId: number, flagId: number, severity: string, appliedBy: number, DateApplied: Date, options?: {
23
+ Notes?: string;
24
+ DisciplineId?: number;
25
+ CompletedBy?: number;
26
+ DateCompleted?: Date;
27
+ }): Promise<unknown>;
28
+ /**
29
+ * Delete specific flag from case
30
+ *
31
+ * @category Case Flags
32
+ * @param {number} caObjectId - The Case Object to attach the data group to.
33
+ * @param {boolean} updateXY - Whether or not to update the Case's X/Y values when detaching the flags. Defaults to true.
34
+ * @return {Object} Returns Promise that represents the CaFlag that has been deleted.
35
+ */
36
+ delete(caFlagId: number): Promise<unknown>;
37
+ /**
38
+ * Delete all flags from case
39
+ *
40
+ * @category Case Flags
41
+ * @param {number} caObjectId - The Case Object to detach the flags from.
42
+ * @return {Object} Returns Promise that represents the number of flags deleted from the case provided.
43
+ */
44
+ deleteAll(caObjectId: number): Promise<unknown>;
45
+ /**
46
+ * Get flags attached to a specific case
47
+ *
48
+ * @category Case Flags
49
+ * @param {number} caObjectId - The Case Object from which to get attached flags
50
+ * @return {Object} Returns Promise that represents a collection of the default CaFlags.
51
+ */
52
+ getForCase(caObjectId: number): Promise<unknown>;
53
+ /**
54
+ * Search for Case Flags. Include one or more of the search fields. A logical 'and' operation is applied to muliple search fields
55
+ *
56
+ * @category Case Flags
57
+ * @param {Object} filters - The parameters to search by. (CaFlagId, Flag, FlagDesc)
58
+ * @return {Object} Returns Promise that represents an Array of resulting Flags
59
+ */
60
+ search(filters?: Object): Promise<unknown>;
61
+ }