cityworks 1.0.4 → 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.
Files changed (43) hide show
  1. package/dist/activity_link.d.ts +5 -0
  2. package/dist/attachments.d.ts +17 -1
  3. package/dist/case_data.d.ts +4 -2
  4. package/dist/index.js +1 -1
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.m.js +1 -1
  7. package/dist/index.m.js.map +1 -1
  8. package/dist/index.modern.mjs +1 -1
  9. package/dist/index.modern.mjs.map +1 -1
  10. package/dist/index.umd.js +1 -1
  11. package/dist/index.umd.js.map +1 -1
  12. package/package.json +1 -1
  13. package/dist/activity_link.js +0 -219
  14. package/dist/briefcase.js +0 -327
  15. package/dist/case.d.ts +0 -114
  16. package/dist/case_admin.js +0 -821
  17. package/dist/case_assets.js +0 -129
  18. package/dist/case_data.js +0 -416
  19. package/dist/case_financial.js +0 -848
  20. package/dist/case_workflow.js +0 -455
  21. package/dist/cityworks.d.ts +0 -224
  22. package/dist/comments.js +0 -126
  23. package/dist/error.js +0 -30
  24. package/dist/event_layer.d.ts +0 -97
  25. package/dist/event_layer.js +0 -207
  26. package/dist/general.js +0 -212
  27. package/dist/gis.js +0 -250
  28. package/dist/index.cjs +0 -2
  29. package/dist/index.cjs.map +0 -1
  30. package/dist/index.modern.js +0 -2
  31. package/dist/index.modern.js.map +0 -1
  32. package/dist/inspection.js +0 -933
  33. package/dist/inspection_admin.js +0 -43
  34. package/dist/inspection_costs.js +0 -200
  35. package/dist/message_queue.js +0 -248
  36. package/dist/query.js +0 -242
  37. package/dist/request.js +0 -899
  38. package/dist/request_admin.js +0 -32
  39. package/dist/request_costs.js +0 -113
  40. package/dist/search.js +0 -371
  41. package/dist/workorder.js +0 -951
  42. package/dist/workorder_admin.js +0 -248
  43. package/dist/workorder_costs.js +0 -274
@@ -29,6 +29,11 @@ export declare class ActivityLinks implements ActivityLink {
29
29
  * @hidden
30
30
  */
31
31
  constructor(cw: any);
32
+ private setActivityTypes;
33
+ private setLinkTypes;
34
+ private validateType;
35
+ private transformLinksData;
36
+ private runRequest;
32
37
  /**
33
38
  * Create a new activity link between two items.
34
39
  *
@@ -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
  *