cityworks 1.0.5 → 1.0.6

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.
@@ -48,12 +48,28 @@ export declare class Attachments {
48
48
  * @return {Object} Returns object that represents an object that describes the matched inspection attachment
49
49
  */
50
50
  getById(attachmentId: number): Promise<unknown>;
51
+ /**
52
+ * Get attachments related to Inspection, WorkOrder, or Request
53
+ *
54
+ * @category Attachments
55
+ * @param {Array<number>|number} ids - An array of IDs or a single ID (inspectionIds, WorkOrderSids, WorkOrderIds, or RequestIds) for which to get attachments. Only one node (Inspection, WorkOrder, Request, or Case) type at a time. Don't mix-and-match WorkOrderIds with WorkOrderSids.
56
+ * @return {Object} Returns Promise that represents a collection of attachments from the matched inspections, service requests, or work orders
57
+ */
58
+ getAttachments(ids: Array<number> | number): Promise<unknown>;
59
+ /**
60
+ * Get Related Documents from Case
61
+ *
62
+ * @category Attachments
63
+ * @param {number} id - An array of CaseIDs or a single CaseID for which to get related documents.
64
+ * @return {Object} Returns Promise that represents a collection of related documents from the matched cases
65
+ */
66
+ getRelatedDocs(id: number): Promise<unknown>;
51
67
  /**
52
68
  * Get attachment by node (Inspection, WorkOrder, Request, or Case) IDs
53
69
  *
54
70
  * @category Attachments
55
71
  * @param {Array<number>|number} ids - An array of IDs or a single ID (inspectionIds, WorkOrderSids, WorkOrderIds, RequestIds, or CaseIds) to get attachments for. Only one node (Inspection, WorkOrder, Request, or Case) type at a time. Don't mix-and-match WorkOrderIds with WorkOrderSids.
56
- * @return {Object} Returns object that represents a collection of attachments from the matched inspections
72
+ * @return {Object} Returns Promise that represents a collection of attachments from the matched inspections
57
73
  */
58
74
  getByNodesId(ids: Array<number> | number): Promise<unknown>;
59
75
  }
@@ -174,10 +174,12 @@ export declare class CaseData {
174
174
  *
175
175
  * @category Data Details
176
176
  * @param dataDetailId - The data detail item's ID
177
- * @param value - the value to set the data detail item to
177
+ * @param {any} value - the value to set the data detail item to
178
+ * @param {number} rate - the rate to set the data detail item to
179
+ * @param {number} quantity - the quantitye to set the data detail item to
178
180
  * @returns Promise that represents
179
181
  */
180
- updateDetailItemValue(dataDetailId: number, value: any): Promise<unknown>;
182
+ updateDetailItemValue(dataDetailId: number, value: any, rate?: number, quantity?: number): Promise<unknown>;
181
183
  /**
182
184
  * Get the Case Data Details for a Case by Case ID
183
185
  *